configure revision 21e67964
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXi 1.2.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libXi'
752PACKAGE_TARNAME='libXi'
753PACKAGE_VERSION='1.2.1'
754PACKAGE_STRING='libXi 1.2.1'
755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757# Factoring default headers for most tests.
758ac_includes_default="\
759#include <stdio.h>
760#ifdef HAVE_SYS_TYPES_H
761# include <sys/types.h>
762#endif
763#ifdef HAVE_SYS_STAT_H
764# include <sys/stat.h>
765#endif
766#ifdef STDC_HEADERS
767# include <stdlib.h>
768# include <stddef.h>
769#else
770# ifdef HAVE_STDLIB_H
771#  include <stdlib.h>
772# endif
773#endif
774#ifdef HAVE_STRING_H
775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776#  include <memory.h>
777# endif
778# include <string.h>
779#endif
780#ifdef HAVE_STRINGS_H
781# include <strings.h>
782#endif
783#ifdef HAVE_INTTYPES_H
784# include <inttypes.h>
785#endif
786#ifdef HAVE_STDINT_H
787# include <stdint.h>
788#endif
789#ifdef HAVE_UNISTD_H
790# include <unistd.h>
791#endif"
792
793ac_subst_vars='LTLIBOBJS
794LIBOBJS
795ADMIN_MAN_DIR
796DRIVER_MAN_DIR
797MISC_MAN_DIR
798FILE_MAN_DIR
799LIB_MAN_DIR
800APP_MAN_DIR
801ADMIN_MAN_SUFFIX
802DRIVER_MAN_SUFFIX
803MISC_MAN_SUFFIX
804FILE_MAN_SUFFIX
805LIB_MAN_SUFFIX
806APP_MAN_SUFFIX
807XTMALLOC_ZERO_CFLAGS
808XMALLOC_ZERO_CFLAGS
809MALLOC_ZERO_CFLAGS
810XI_LIBS
811XI_CFLAGS
812PKG_CONFIG
813LIBTOOL
814ac_ct_F77
815FFLAGS
816F77
817CXXCPP
818am__fastdepCXX_FALSE
819am__fastdepCXX_TRUE
820CXXDEPMODE
821ac_ct_CXX
822CXXFLAGS
823CXX
824CPP
825NMEDIT
826DSYMUTIL
827RANLIB
828AR
829ECHO
830LN_S
831EGREP
832GREP
833SED
834host_os
835host_vendor
836host_cpu
837host
838build_os
839build_vendor
840build_cpu
841build
842am__fastdepCC_FALSE
843am__fastdepCC_TRUE
844CCDEPMODE
845AMDEPBACKSLASH
846AMDEP_FALSE
847AMDEP_TRUE
848am__quote
849am__include
850DEPDIR
851OBJEXT
852EXEEXT
853ac_ct_CC
854CPPFLAGS
855LDFLAGS
856CFLAGS
857CC
858MAINT
859MAINTAINER_MODE_FALSE
860MAINTAINER_MODE_TRUE
861am__untar
862am__tar
863AMTAR
864am__leading_dot
865SET_MAKE
866AWK
867mkdir_p
868MKDIR_P
869INSTALL_STRIP_PROGRAM
870STRIP
871install_sh
872MAKEINFO
873AUTOHEADER
874AUTOMAKE
875AUTOCONF
876ACLOCAL
877VERSION
878PACKAGE
879CYGPATH_W
880am__isrc
881INSTALL_DATA
882INSTALL_SCRIPT
883INSTALL_PROGRAM
884target_alias
885host_alias
886build_alias
887LIBS
888ECHO_T
889ECHO_N
890ECHO_C
891DEFS
892mandir
893localedir
894libdir
895psdir
896pdfdir
897dvidir
898htmldir
899infodir
900docdir
901oldincludedir
902includedir
903localstatedir
904sharedstatedir
905sysconfdir
906datadir
907datarootdir
908libexecdir
909sbindir
910bindir
911program_transform_name
912prefix
913exec_prefix
914PACKAGE_BUGREPORT
915PACKAGE_STRING
916PACKAGE_VERSION
917PACKAGE_TARNAME
918PACKAGE_NAME
919PATH_SEPARATOR
920SHELL'
921ac_subst_files=''
922ac_user_opts='
923enable_option_checking
924enable_maintainer_mode
925enable_dependency_tracking
926enable_shared
927enable_static
928enable_fast_install
929with_gnu_ld
930enable_libtool_lock
931with_pic
932with_tags
933enable_malloc0returnsnull
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
952XI_CFLAGS
953XI_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 libXi 1.2.1 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 [DATAROOTDIR/doc/libXi]
1555  --htmldir=DIR           html documentation [DOCDIR]
1556  --dvidir=DIR            dvi documentation [DOCDIR]
1557  --pdfdir=DIR            pdf documentation [DOCDIR]
1558  --psdir=DIR             ps documentation [DOCDIR]
1559_ACEOF
1560
1561  cat <<\_ACEOF
1562
1563Program names:
1564  --program-prefix=PREFIX            prepend PREFIX to installed program names
1565  --program-suffix=SUFFIX            append SUFFIX to installed program names
1566  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1567
1568System types:
1569  --build=BUILD     configure for building on BUILD [guessed]
1570  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1571_ACEOF
1572fi
1573
1574if test -n "$ac_init_help"; then
1575  case $ac_init_help in
1576     short | recursive ) echo "Configuration of libXi 1.2.1:";;
1577   esac
1578  cat <<\_ACEOF
1579
1580Optional Features:
1581  --disable-option-checking  ignore unrecognized --enable/--with options
1582  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1583  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1584  --enable-maintainer-mode  enable make rules and dependencies not useful
1585			  (and sometimes confusing) to the casual installer
1586  --disable-dependency-tracking  speeds up one-time build
1587  --enable-dependency-tracking   do not reject slow dependency extractors
1588  --enable-shared[=PKGS]  build shared libraries [default=yes]
1589  --enable-static[=PKGS]  build static libraries [default=yes]
1590  --enable-fast-install[=PKGS]
1591                          optimize for fast installation [default=yes]
1592  --disable-libtool-lock  avoid locking (might break parallel builds)
1593  --enable-malloc0returnsnull
1594                          malloc(0) returns NULL (default: auto)
1595
1596Optional Packages:
1597  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1598  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1599  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1600  --with-pic              try to use only PIC/non-PIC objects [default=use
1601                          both]
1602  --with-tags[=TAGS]      include additional configurations [automatic]
1603  --with-release-version=STRING
1604                          Use release version string in package name
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  LIBS        libraries to pass to the linker, e.g. -l<library>
1612  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613              you have headers in a nonstandard directory <include dir>
1614  CPP         C preprocessor
1615  CXX         C++ compiler command
1616  CXXFLAGS    C++ compiler flags
1617  CXXCPP      C++ preprocessor
1618  F77         Fortran 77 compiler command
1619  FFLAGS      Fortran 77 compiler flags
1620  PKG_CONFIG  path to pkg-config utility
1621  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1622  XI_LIBS     linker flags for XI, overriding pkg-config
1623
1624Use these variables to override the choices made by `configure' or to help
1625it to find libraries and programs with nonstandard names/locations.
1626
1627Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1628_ACEOF
1629ac_status=$?
1630fi
1631
1632if test "$ac_init_help" = "recursive"; then
1633  # If there are subdirs, report their specific --help.
1634  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635    test -d "$ac_dir" ||
1636      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637      continue
1638    ac_builddir=.
1639
1640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
1643  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1644  # A ".." for each directory in $ac_dir_suffix.
1645  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1646  case $ac_top_builddir_sub in
1647  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649  esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
1655
1656case $srcdir in
1657  .)  # We are building in place.
1658    ac_srcdir=.
1659    ac_top_srcdir=$ac_top_builddir_sub
1660    ac_abs_top_srcdir=$ac_pwd ;;
1661  [\\/]* | ?:[\\/]* )  # Absolute name.
1662    ac_srcdir=$srcdir$ac_dir_suffix;
1663    ac_top_srcdir=$srcdir
1664    ac_abs_top_srcdir=$srcdir ;;
1665  *) # Relative name.
1666    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667    ac_top_srcdir=$ac_top_build_prefix$srcdir
1668    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669esac
1670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672    cd "$ac_dir" || { ac_status=$?; continue; }
1673    # Check for guested configure.
1674    if test -f "$ac_srcdir/configure.gnu"; then
1675      echo &&
1676      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677    elif test -f "$ac_srcdir/configure"; then
1678      echo &&
1679      $SHELL "$ac_srcdir/configure" --help=recursive
1680    else
1681      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682    fi || ac_status=$?
1683    cd "$ac_pwd" || { ac_status=$?; break; }
1684  done
1685fi
1686
1687test -n "$ac_init_help" && exit $ac_status
1688if $ac_init_version; then
1689  cat <<\_ACEOF
1690libXi configure 1.2.1
1691generated by GNU Autoconf 2.63
1692
1693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697_ACEOF
1698  exit
1699fi
1700cat >config.log <<_ACEOF
1701This file contains any messages produced by compilers while
1702running configure, to aid debugging if configure makes a mistake.
1703
1704It was created by libXi $as_me 1.2.1, which was
1705generated by GNU Autoconf 2.63.  Invocation command line was
1706
1707  $ $0 $@
1708
1709_ACEOF
1710exec 5>>config.log
1711{
1712cat <<_ASUNAME
1713## --------- ##
1714## Platform. ##
1715## --------- ##
1716
1717hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1718uname -m = `(uname -m) 2>/dev/null || echo unknown`
1719uname -r = `(uname -r) 2>/dev/null || echo unknown`
1720uname -s = `(uname -s) 2>/dev/null || echo unknown`
1721uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722
1723/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1724/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1725
1726/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1727/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1728/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1729/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1730/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1731/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1732/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1733
1734_ASUNAME
1735
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
1739  IFS=$as_save_IFS
1740  test -z "$as_dir" && as_dir=.
1741  $as_echo "PATH: $as_dir"
1742done
1743IFS=$as_save_IFS
1744
1745} >&5
1746
1747cat >&5 <<_ACEOF
1748
1749
1750## ----------- ##
1751## Core tests. ##
1752## ----------- ##
1753
1754_ACEOF
1755
1756
1757# Keep a trace of the command line.
1758# Strip out --no-create and --no-recursion so they do not pile up.
1759# Strip out --silent because we don't want to record it for future runs.
1760# Also quote any args containing shell meta-characters.
1761# Make two passes to allow for proper duplicate-argument suppression.
1762ac_configure_args=
1763ac_configure_args0=
1764ac_configure_args1=
1765ac_must_keep_next=false
1766for ac_pass in 1 2
1767do
1768  for ac_arg
1769  do
1770    case $ac_arg in
1771    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1772    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1773    | -silent | --silent | --silen | --sile | --sil)
1774      continue ;;
1775    *\'*)
1776      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777    esac
1778    case $ac_pass in
1779    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1780    2)
1781      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1782      if test $ac_must_keep_next = true; then
1783	ac_must_keep_next=false # Got value, back to normal.
1784      else
1785	case $ac_arg in
1786	  *=* | --config-cache | -C | -disable-* | --disable-* \
1787	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1788	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1789	  | -with-* | --with-* | -without-* | --without-* | --x)
1790	    case "$ac_configure_args0 " in
1791	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1792	    esac
1793	    ;;
1794	  -* ) ac_must_keep_next=true ;;
1795	esac
1796      fi
1797      ac_configure_args="$ac_configure_args '$ac_arg'"
1798      ;;
1799    esac
1800  done
1801done
1802$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1803$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1804
1805# When interrupted or exit'd, cleanup temporary files, and complete
1806# config.log.  We remove comments because anyway the quotes in there
1807# would cause problems or look ugly.
1808# WARNING: Use '\'' to represent an apostrophe within the trap.
1809# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1810trap 'exit_status=$?
1811  # Save into config.log some information that might help in debugging.
1812  {
1813    echo
1814
1815    cat <<\_ASBOX
1816## ---------------- ##
1817## Cache variables. ##
1818## ---------------- ##
1819_ASBOX
1820    echo
1821    # The following way of writing the cache mishandles newlines in values,
1822(
1823  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1824    eval ac_val=\$$ac_var
1825    case $ac_val in #(
1826    *${as_nl}*)
1827      case $ac_var in #(
1828      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1829$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1830      esac
1831      case $ac_var in #(
1832      _ | IFS | as_nl) ;; #(
1833      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1834      *) $as_unset $ac_var ;;
1835      esac ;;
1836    esac
1837  done
1838  (set) 2>&1 |
1839    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1840    *${as_nl}ac_space=\ *)
1841      sed -n \
1842	"s/'\''/'\''\\\\'\'''\''/g;
1843	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844      ;; #(
1845    *)
1846      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1847      ;;
1848    esac |
1849    sort
1850)
1851    echo
1852
1853    cat <<\_ASBOX
1854## ----------------- ##
1855## Output variables. ##
1856## ----------------- ##
1857_ASBOX
1858    echo
1859    for ac_var in $ac_subst_vars
1860    do
1861      eval ac_val=\$$ac_var
1862      case $ac_val in
1863      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864      esac
1865      $as_echo "$ac_var='\''$ac_val'\''"
1866    done | sort
1867    echo
1868
1869    if test -n "$ac_subst_files"; then
1870      cat <<\_ASBOX
1871## ------------------- ##
1872## File substitutions. ##
1873## ------------------- ##
1874_ASBOX
1875      echo
1876      for ac_var in $ac_subst_files
1877      do
1878	eval ac_val=\$$ac_var
1879	case $ac_val in
1880	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881	esac
1882	$as_echo "$ac_var='\''$ac_val'\''"
1883      done | sort
1884      echo
1885    fi
1886
1887    if test -s confdefs.h; then
1888      cat <<\_ASBOX
1889## ----------- ##
1890## confdefs.h. ##
1891## ----------- ##
1892_ASBOX
1893      echo
1894      cat confdefs.h
1895      echo
1896    fi
1897    test "$ac_signal" != 0 &&
1898      $as_echo "$as_me: caught signal $ac_signal"
1899    $as_echo "$as_me: exit $exit_status"
1900  } >&5
1901  rm -f core *.core core.conftest.* &&
1902    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903    exit $exit_status
1904' 0
1905for ac_signal in 1 2 13 15; do
1906  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1907done
1908ac_signal=0
1909
1910# confdefs.h avoids OS command line length limits that DEFS can exceed.
1911rm -f -r conftest* confdefs.h
1912
1913# Predefined preprocessor variables.
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_NAME "$PACKAGE_NAME"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_VERSION "$PACKAGE_VERSION"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_STRING "$PACKAGE_STRING"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1937_ACEOF
1938
1939
1940# Let the site file select an alternate cache file if it wants to.
1941# Prefer an explicitly selected file to automatically selected ones.
1942ac_site_file1=NONE
1943ac_site_file2=NONE
1944if test -n "$CONFIG_SITE"; then
1945  ac_site_file1=$CONFIG_SITE
1946elif test "x$prefix" != xNONE; then
1947  ac_site_file1=$prefix/share/config.site
1948  ac_site_file2=$prefix/etc/config.site
1949else
1950  ac_site_file1=$ac_default_prefix/share/config.site
1951  ac_site_file2=$ac_default_prefix/etc/config.site
1952fi
1953for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1954do
1955  test "x$ac_site_file" = xNONE && continue
1956  if test -r "$ac_site_file"; then
1957    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1958$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1959    sed 's/^/| /' "$ac_site_file" >&5
1960    . "$ac_site_file"
1961  fi
1962done
1963
1964if test -r "$cache_file"; then
1965  # Some versions of bash will fail to source /dev/null (special
1966  # files actually), so we avoid doing that.
1967  if test -f "$cache_file"; then
1968    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1969$as_echo "$as_me: loading cache $cache_file" >&6;}
1970    case $cache_file in
1971      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972      *)                      . "./$cache_file";;
1973    esac
1974  fi
1975else
1976  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1977$as_echo "$as_me: creating cache $cache_file" >&6;}
1978  >$cache_file
1979fi
1980
1981# Check that the precious variables saved in the cache have kept the same
1982# value.
1983ac_cache_corrupted=false
1984for ac_var in $ac_precious_vars; do
1985  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986  eval ac_new_set=\$ac_env_${ac_var}_set
1987  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988  eval ac_new_val=\$ac_env_${ac_var}_value
1989  case $ac_old_set,$ac_new_set in
1990    set,)
1991      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993      ac_cache_corrupted=: ;;
1994    ,set)
1995      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1996$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997      ac_cache_corrupted=: ;;
1998    ,);;
1999    *)
2000      if test "x$ac_old_val" != "x$ac_new_val"; then
2001	# differences in whitespace do not lead to failure.
2002	ac_old_val_w=`echo x $ac_old_val`
2003	ac_new_val_w=`echo x $ac_new_val`
2004	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2005	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007	  ac_cache_corrupted=:
2008	else
2009	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2010$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2011	  eval $ac_var=\$ac_old_val
2012	fi
2013	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2014$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2015	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2016$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2017      fi;;
2018  esac
2019  # Pass precious variables to config.status.
2020  if test "$ac_new_set" = set; then
2021    case $ac_new_val in
2022    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2023    *) ac_arg=$ac_var=$ac_new_val ;;
2024    esac
2025    case " $ac_configure_args " in
2026      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2027      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2028    esac
2029  fi
2030done
2031if $ac_cache_corrupted; then
2032  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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
2072am__api_version='1.10'
2073
2074ac_aux_dir=
2075for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2076  if test -f "$ac_dir/install-sh"; then
2077    ac_aux_dir=$ac_dir
2078    ac_install_sh="$ac_aux_dir/install-sh -c"
2079    break
2080  elif test -f "$ac_dir/install.sh"; then
2081    ac_aux_dir=$ac_dir
2082    ac_install_sh="$ac_aux_dir/install.sh -c"
2083    break
2084  elif test -f "$ac_dir/shtool"; then
2085    ac_aux_dir=$ac_dir
2086    ac_install_sh="$ac_aux_dir/shtool install -c"
2087    break
2088  fi
2089done
2090if test -z "$ac_aux_dir"; then
2091  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2092$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2093   { (exit 1); exit 1; }; }
2094fi
2095
2096# These three variables are undocumented and unsupported,
2097# and are intended to be withdrawn in a future Autoconf release.
2098# They can cause serious problems if a builder's source tree is in a directory
2099# whose full name contains unusual characters.
2100ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2101ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2102ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2103
2104
2105# Find a good install program.  We prefer a C program (faster),
2106# so one script is as good as another.  But avoid the broken or
2107# incompatible versions:
2108# SysV /etc/install, /usr/sbin/install
2109# SunOS /usr/etc/install
2110# IRIX /sbin/install
2111# AIX /bin/install
2112# AmigaOS /C/install, which installs bootblocks on floppy discs
2113# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2114# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2115# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2116# OS/2's system install, which has a completely different semantic
2117# ./install, which can be erroneously created by make from ./install.sh.
2118# Reject install programs that cannot install multiple files.
2119{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2120$as_echo_n "checking for a BSD-compatible install... " >&6; }
2121if test -z "$INSTALL"; then
2122if test "${ac_cv_path_install+set}" = set; then
2123  $as_echo_n "(cached) " >&6
2124else
2125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130  # Account for people who put trailing slashes in PATH elements.
2131case $as_dir/ in
2132  ./ | .// | /cC/* | \
2133  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2135  /usr/ucb/* ) ;;
2136  *)
2137    # OSF1 and SCO ODT 3.0 have their own names for install.
2138    # Don't use installbsd from OSF since it installs stuff as root
2139    # by default.
2140    for ac_prog in ginstall scoinst install; do
2141      for ac_exec_ext in '' $ac_executable_extensions; do
2142	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143	  if test $ac_prog = install &&
2144	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145	    # AIX install.  It has an incompatible calling convention.
2146	    :
2147	  elif test $ac_prog = install &&
2148	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149	    # program-specific install script used by HP pwplus--don't use.
2150	    :
2151	  else
2152	    rm -rf conftest.one conftest.two conftest.dir
2153	    echo one > conftest.one
2154	    echo two > conftest.two
2155	    mkdir conftest.dir
2156	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2157	      test -s conftest.one && test -s conftest.two &&
2158	      test -s conftest.dir/conftest.one &&
2159	      test -s conftest.dir/conftest.two
2160	    then
2161	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162	      break 3
2163	    fi
2164	  fi
2165	fi
2166      done
2167    done
2168    ;;
2169esac
2170
2171done
2172IFS=$as_save_IFS
2173
2174rm -rf conftest.one conftest.two conftest.dir
2175
2176fi
2177  if test "${ac_cv_path_install+set}" = set; then
2178    INSTALL=$ac_cv_path_install
2179  else
2180    # As a last resort, use the slow shell script.  Don't cache a
2181    # value for INSTALL within a source directory, because that will
2182    # break other packages using the cache if that directory is
2183    # removed, or if the value is a relative name.
2184    INSTALL=$ac_install_sh
2185  fi
2186fi
2187{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2188$as_echo "$INSTALL" >&6; }
2189
2190# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191# It thinks the first close brace ends the variable substitution.
2192test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2193
2194test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2195
2196test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2197
2198{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2199$as_echo_n "checking whether build environment is sane... " >&6; }
2200# Just in case
2201sleep 1
2202echo timestamp > conftest.file
2203# Do `set' in a subshell so we don't clobber the current shell's
2204# arguments.  Must try -L first in case configure is actually a
2205# symlink; some systems play weird games with the mod time of symlinks
2206# (eg FreeBSD returns the mod time of the symlink's containing
2207# directory).
2208if (
2209   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2210   if test "$*" = "X"; then
2211      # -L didn't work.
2212      set X `ls -t $srcdir/configure conftest.file`
2213   fi
2214   rm -f conftest.file
2215   if test "$*" != "X $srcdir/configure conftest.file" \
2216      && test "$*" != "X conftest.file $srcdir/configure"; then
2217
2218      # If neither matched, then we have a broken ls.  This can happen
2219      # if, for instance, CONFIG_SHELL is bash and it inherits a
2220      # broken ls alias from the environment.  This has actually
2221      # happened.  Such a system could not be considered "sane".
2222      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2223alias in your environment" >&5
2224$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2225alias in your environment" >&2;}
2226   { (exit 1); exit 1; }; }
2227   fi
2228
2229   test "$2" = conftest.file
2230   )
2231then
2232   # Ok.
2233   :
2234else
2235   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2236Check your system clock" >&5
2237$as_echo "$as_me: error: newly created file is older than distributed files!
2238Check your system clock" >&2;}
2239   { (exit 1); exit 1; }; }
2240fi
2241{ $as_echo "$as_me:$LINENO: result: yes" >&5
2242$as_echo "yes" >&6; }
2243test "$program_prefix" != NONE &&
2244  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2245# Use a double $ so make ignores it.
2246test "$program_suffix" != NONE &&
2247  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2248# Double any \ or $.
2249# By default was `s,x,x', remove it if useless.
2250ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2251program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2252
2253# expand $ac_aux_dir to an absolute path
2254am_aux_dir=`cd $ac_aux_dir && pwd`
2255
2256test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2257# Use eval to expand $SHELL
2258if eval "$MISSING --run true"; then
2259  am_missing_run="$MISSING --run "
2260else
2261  am_missing_run=
2262  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2263$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2264fi
2265
2266{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2267$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2268if test -z "$MKDIR_P"; then
2269  if test "${ac_cv_path_mkdir+set}" = set; then
2270  $as_echo_n "(cached) " >&6
2271else
2272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277  for ac_prog in mkdir gmkdir; do
2278	 for ac_exec_ext in '' $ac_executable_extensions; do
2279	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2280	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2281	     'mkdir (GNU coreutils) '* | \
2282	     'mkdir (coreutils) '* | \
2283	     'mkdir (fileutils) '4.1*)
2284	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2285	       break 3;;
2286	   esac
2287	 done
2288       done
2289done
2290IFS=$as_save_IFS
2291
2292fi
2293
2294  if test "${ac_cv_path_mkdir+set}" = set; then
2295    MKDIR_P="$ac_cv_path_mkdir -p"
2296  else
2297    # As a last resort, use the slow shell script.  Don't cache a
2298    # value for MKDIR_P within a source directory, because that will
2299    # break other packages using the cache if that directory is
2300    # removed, or if the value is a relative name.
2301    test -d ./--version && rmdir ./--version
2302    MKDIR_P="$ac_install_sh -d"
2303  fi
2304fi
2305{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2306$as_echo "$MKDIR_P" >&6; }
2307
2308mkdir_p="$MKDIR_P"
2309case $mkdir_p in
2310  [\\/$]* | ?:[\\/]*) ;;
2311  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2312esac
2313
2314for ac_prog in gawk mawk nawk awk
2315do
2316  # Extract the first word of "$ac_prog", so it can be a program name with args.
2317set dummy $ac_prog; ac_word=$2
2318{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2319$as_echo_n "checking for $ac_word... " >&6; }
2320if test "${ac_cv_prog_AWK+set}" = set; then
2321  $as_echo_n "(cached) " >&6
2322else
2323  if test -n "$AWK"; then
2324  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331  for ac_exec_ext in '' $ac_executable_extensions; do
2332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333    ac_cv_prog_AWK="$ac_prog"
2334    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335    break 2
2336  fi
2337done
2338done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343AWK=$ac_cv_prog_AWK
2344if test -n "$AWK"; then
2345  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2346$as_echo "$AWK" >&6; }
2347else
2348  { $as_echo "$as_me:$LINENO: result: no" >&5
2349$as_echo "no" >&6; }
2350fi
2351
2352
2353  test -n "$AWK" && break
2354done
2355
2356{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2357$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2358set x ${MAKE-make}
2359ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2360if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2361  $as_echo_n "(cached) " >&6
2362else
2363  cat >conftest.make <<\_ACEOF
2364SHELL = /bin/sh
2365all:
2366	@echo '@@@%%%=$(MAKE)=@@@%%%'
2367_ACEOF
2368# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2369case `${MAKE-make} -f conftest.make 2>/dev/null` in
2370  *@@@%%%=?*=@@@%%%*)
2371    eval ac_cv_prog_make_${ac_make}_set=yes;;
2372  *)
2373    eval ac_cv_prog_make_${ac_make}_set=no;;
2374esac
2375rm -f conftest.make
2376fi
2377if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2378  { $as_echo "$as_me:$LINENO: result: yes" >&5
2379$as_echo "yes" >&6; }
2380  SET_MAKE=
2381else
2382  { $as_echo "$as_me:$LINENO: result: no" >&5
2383$as_echo "no" >&6; }
2384  SET_MAKE="MAKE=${MAKE-make}"
2385fi
2386
2387rm -rf .tst 2>/dev/null
2388mkdir .tst 2>/dev/null
2389if test -d .tst; then
2390  am__leading_dot=.
2391else
2392  am__leading_dot=_
2393fi
2394rmdir .tst 2>/dev/null
2395
2396if test "`cd $srcdir && pwd`" != "`pwd`"; then
2397  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2398  # is not polluted with repeated "-I."
2399  am__isrc=' -I$(srcdir)'
2400  # test to see if srcdir already configured
2401  if test -f $srcdir/config.status; then
2402    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2403$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2404   { (exit 1); exit 1; }; }
2405  fi
2406fi
2407
2408# test whether we have cygpath
2409if test -z "$CYGPATH_W"; then
2410  if (cygpath --version) >/dev/null 2>/dev/null; then
2411    CYGPATH_W='cygpath -w'
2412  else
2413    CYGPATH_W=echo
2414  fi
2415fi
2416
2417
2418# Define the identity of the package.
2419 PACKAGE='libXi'
2420 VERSION='1.2.1'
2421
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE "$PACKAGE"
2425_ACEOF
2426
2427
2428cat >>confdefs.h <<_ACEOF
2429#define VERSION "$VERSION"
2430_ACEOF
2431
2432# Some tools Automake needs.
2433
2434ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2435
2436
2437AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2438
2439
2440AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2441
2442
2443AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2444
2445
2446MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2447
2448install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2449
2450# Installed binaries are usually stripped using `strip' when the user
2451# run `make install-strip'.  However `strip' might not be the right
2452# tool to use in cross-compilation environments, therefore Automake
2453# will honor the `STRIP' environment variable to overrule this program.
2454if test "$cross_compiling" != no; then
2455  if test -n "$ac_tool_prefix"; then
2456  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457set dummy ${ac_tool_prefix}strip; ac_word=$2
2458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
2460if test "${ac_cv_prog_STRIP+set}" = set; then
2461  $as_echo_n "(cached) " >&6
2462else
2463  if test -n "$STRIP"; then
2464  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471  for ac_exec_ext in '' $ac_executable_extensions; do
2472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475    break 2
2476  fi
2477done
2478done
2479IFS=$as_save_IFS
2480
2481fi
2482fi
2483STRIP=$ac_cv_prog_STRIP
2484if test -n "$STRIP"; then
2485  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2486$as_echo "$STRIP" >&6; }
2487else
2488  { $as_echo "$as_me:$LINENO: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493fi
2494if test -z "$ac_cv_prog_STRIP"; then
2495  ac_ct_STRIP=$STRIP
2496  # Extract the first word of "strip", so it can be a program name with args.
2497set dummy strip; ac_word=$2
2498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2501  $as_echo_n "(cached) " >&6
2502else
2503  if test -n "$ac_ct_STRIP"; then
2504  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511  for ac_exec_ext in '' $ac_executable_extensions; do
2512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513    ac_cv_prog_ac_ct_STRIP="strip"
2514    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524if test -n "$ac_ct_STRIP"; then
2525  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2526$as_echo "$ac_ct_STRIP" >&6; }
2527else
2528  { $as_echo "$as_me:$LINENO: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532  if test "x$ac_ct_STRIP" = x; then
2533    STRIP=":"
2534  else
2535    case $cross_compiling:$ac_tool_warned in
2536yes:)
2537{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539ac_tool_warned=yes ;;
2540esac
2541    STRIP=$ac_ct_STRIP
2542  fi
2543else
2544  STRIP="$ac_cv_prog_STRIP"
2545fi
2546
2547fi
2548INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
2550# We need awk for the "check" target.  The system "awk" is bad on
2551# some platforms.
2552# Always define AMTAR for backward compatibility.
2553
2554AMTAR=${AMTAR-"${am_missing_run}tar"}
2555
2556am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2557
2558
2559
2560
2561
2562{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2563$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2564    # Check whether --enable-maintainer-mode was given.
2565if test "${enable_maintainer_mode+set}" = set; then
2566  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2567else
2568  USE_MAINTAINER_MODE=no
2569fi
2570
2571  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2572$as_echo "$USE_MAINTAINER_MODE" >&6; }
2573   if test $USE_MAINTAINER_MODE = yes; then
2574  MAINTAINER_MODE_TRUE=
2575  MAINTAINER_MODE_FALSE='#'
2576else
2577  MAINTAINER_MODE_TRUE='#'
2578  MAINTAINER_MODE_FALSE=
2579fi
2580
2581  MAINT=$MAINTAINER_MODE_TRUE
2582
2583
2584
2585ac_config_headers="$ac_config_headers src/config.h"
2586
2587
2588# Check for progs
2589ac_ext=c
2590ac_cpp='$CPP $CPPFLAGS'
2591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594if test -n "$ac_tool_prefix"; then
2595  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2596set dummy ${ac_tool_prefix}gcc; ac_word=$2
2597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if test "${ac_cv_prog_CC+set}" = set; then
2600  $as_echo_n "(cached) " >&6
2601else
2602  if test -n "$CC"; then
2603  ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610  for ac_exec_ext in '' $ac_executable_extensions; do
2611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2613    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614    break 2
2615  fi
2616done
2617done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
2624  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2625$as_echo "$CC" >&6; }
2626else
2627  { $as_echo "$as_me:$LINENO: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632fi
2633if test -z "$ac_cv_prog_CC"; then
2634  ac_ct_CC=$CC
2635  # Extract the first word of "gcc", so it can be a program name with args.
2636set dummy gcc; ac_word=$2
2637{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640  $as_echo_n "(cached) " >&6
2641else
2642  if test -n "$ac_ct_CC"; then
2643  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650  for ac_exec_ext in '' $ac_executable_extensions; do
2651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652    ac_cv_prog_ac_ct_CC="gcc"
2653    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654    break 2
2655  fi
2656done
2657done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663if test -n "$ac_ct_CC"; then
2664  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665$as_echo "$ac_ct_CC" >&6; }
2666else
2667  { $as_echo "$as_me:$LINENO: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671  if test "x$ac_ct_CC" = x; then
2672    CC=""
2673  else
2674    case $cross_compiling:$ac_tool_warned in
2675yes:)
2676{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678ac_tool_warned=yes ;;
2679esac
2680    CC=$ac_ct_CC
2681  fi
2682else
2683  CC="$ac_cv_prog_CC"
2684fi
2685
2686if test -z "$CC"; then
2687          if test -n "$ac_tool_prefix"; then
2688    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2689set dummy ${ac_tool_prefix}cc; ac_word=$2
2690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if test "${ac_cv_prog_CC+set}" = set; then
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$CC"; then
2696  ac_cv_prog_CC="$CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703  for ac_exec_ext in '' $ac_executable_extensions; do
2704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705    ac_cv_prog_CC="${ac_tool_prefix}cc"
2706    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
2717  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2718$as_echo "$CC" >&6; }
2719else
2720  { $as_echo "$as_me:$LINENO: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725  fi
2726fi
2727if test -z "$CC"; then
2728  # Extract the first word of "cc", so it can be a program name with args.
2729set dummy cc; ac_word=$2
2730{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if test "${ac_cv_prog_CC+set}" = set; then
2733  $as_echo_n "(cached) " >&6
2734else
2735  if test -n "$CC"; then
2736  ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738  ac_prog_rejected=no
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744  for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2747       ac_prog_rejected=yes
2748       continue
2749     fi
2750    ac_cv_prog_CC="cc"
2751    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755done
2756IFS=$as_save_IFS
2757
2758if test $ac_prog_rejected = yes; then
2759  # We found a bogon in the path, so make sure we never use it.
2760  set dummy $ac_cv_prog_CC
2761  shift
2762  if test $# != 0; then
2763    # We chose a different compiler from the bogus one.
2764    # However, it has the same basename, so the bogon will be chosen
2765    # first if we set CC to just the basename; use the full file name.
2766    shift
2767    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2768  fi
2769fi
2770fi
2771fi
2772CC=$ac_cv_prog_CC
2773if test -n "$CC"; then
2774  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2775$as_echo "$CC" >&6; }
2776else
2777  { $as_echo "$as_me:$LINENO: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781
2782fi
2783if test -z "$CC"; then
2784  if test -n "$ac_tool_prefix"; then
2785  for ac_prog in cl.exe
2786  do
2787    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790$as_echo_n "checking for $ac_word... " >&6; }
2791if test "${ac_cv_prog_CC+set}" = set; then
2792  $as_echo_n "(cached) " >&6
2793else
2794  if test -n "$CC"; then
2795  ac_cv_prog_CC="$CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800  IFS=$as_save_IFS
2801  test -z "$as_dir" && as_dir=.
2802  for ac_exec_ext in '' $ac_executable_extensions; do
2803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2805    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806    break 2
2807  fi
2808done
2809done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2817$as_echo "$CC" >&6; }
2818else
2819  { $as_echo "$as_me:$LINENO: result: no" >&5
2820$as_echo "no" >&6; }
2821fi
2822
2823
2824    test -n "$CC" && break
2825  done
2826fi
2827if test -z "$CC"; then
2828  ac_ct_CC=$CC
2829  for ac_prog in cl.exe
2830do
2831  # Extract the first word of "$ac_prog", so it can be a program name with args.
2832set dummy $ac_prog; ac_word=$2
2833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_CC"; then
2839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846  for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_ac_ct_CC="$ac_prog"
2849    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859if test -n "$ac_ct_CC"; then
2860  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2861$as_echo "$ac_ct_CC" >&6; }
2862else
2863  { $as_echo "$as_me:$LINENO: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868  test -n "$ac_ct_CC" && break
2869done
2870
2871  if test "x$ac_ct_CC" = x; then
2872    CC=""
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    CC=$ac_ct_CC
2881  fi
2882fi
2883
2884fi
2885
2886
2887test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890See \`config.log' for more details." >&5
2891$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2892See \`config.log' for more details." >&2;}
2893   { (exit 1); exit 1; }; }; }
2894
2895# Provide some information about the compiler.
2896$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2897set X $ac_compile
2898ac_compiler=$2
2899{ (ac_try="$ac_compiler --version >&5"
2900case "(($ac_try" in
2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902  *) ac_try_echo=$ac_try;;
2903esac
2904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905$as_echo "$ac_try_echo") >&5
2906  (eval "$ac_compiler --version >&5") 2>&5
2907  ac_status=$?
2908  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }
2910{ (ac_try="$ac_compiler -v >&5"
2911case "(($ac_try" in
2912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913  *) ac_try_echo=$ac_try;;
2914esac
2915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
2917  (eval "$ac_compiler -v >&5") 2>&5
2918  ac_status=$?
2919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }
2921{ (ac_try="$ac_compiler -V >&5"
2922case "(($ac_try" in
2923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924  *) ac_try_echo=$ac_try;;
2925esac
2926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927$as_echo "$ac_try_echo") >&5
2928  (eval "$ac_compiler -V >&5") 2>&5
2929  ac_status=$?
2930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }
2932
2933cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948ac_clean_files_save=$ac_clean_files
2949ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950# Try to create an executable without -o first, disregard a.out.
2951# It will help us diagnose broken compilers, and finding out an intuition
2952# of exeext.
2953{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2954$as_echo_n "checking for C compiler default output file name... " >&6; }
2955ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956
2957# The possible output files:
2958ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959
2960ac_rmfiles=
2961for ac_file in $ac_files
2962do
2963  case $ac_file in
2964    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966  esac
2967done
2968rm -f $ac_rmfiles
2969
2970if { (ac_try="$ac_link_default"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976$as_echo "$ac_try_echo") >&5
2977  (eval "$ac_link_default") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; then
2981  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2984# so that the user can short-circuit this test for compilers unknown to
2985# Autoconf.
2986for ac_file in $ac_files ''
2987do
2988  test -f "$ac_file" || continue
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991	;;
2992    [ab].out )
2993	# We found the default executable, but exeext='' is most
2994	# certainly right.
2995	break;;
2996    *.* )
2997        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998	then :; else
2999	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000	fi
3001	# We set ac_cv_exeext here because the later test for it is not
3002	# safe: cross compilers may not add the suffix if given an `-o'
3003	# argument, so we may need to know it at that point already.
3004	# Even if this section looks crufty: it has the advantage of
3005	# actually working.
3006	break;;
3007    * )
3008	break;;
3009  esac
3010done
3011test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013else
3014  ac_file=''
3015fi
3016
3017{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3018$as_echo "$ac_file" >&6; }
3019if test -z "$ac_file"; then
3020  $as_echo "$as_me: failed program was:" >&5
3021sed 's/^/| /' conftest.$ac_ext >&5
3022
3023{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3026See \`config.log' for more details." >&5
3027$as_echo "$as_me: error: C compiler cannot create executables
3028See \`config.log' for more details." >&2;}
3029   { (exit 77); exit 77; }; }; }
3030fi
3031
3032ac_exeext=$ac_cv_exeext
3033
3034# Check that the compiler produces executables we can run.  If not, either
3035# the compiler is broken, or we cross compile.
3036{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3037$as_echo_n "checking whether the C compiler works... " >&6; }
3038# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3039# If not cross compiling, check that we can run a simple program.
3040if test "$cross_compiling" != yes; then
3041  if { ac_try='./$ac_file'
3042  { (case "(($ac_try" in
3043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044  *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047$as_echo "$ac_try_echo") >&5
3048  (eval "$ac_try") 2>&5
3049  ac_status=$?
3050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); }; }; then
3052    cross_compiling=no
3053  else
3054    if test "$cross_compiling" = maybe; then
3055	cross_compiling=yes
3056    else
3057	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3060If you meant to cross compile, use \`--host'.
3061See \`config.log' for more details." >&5
3062$as_echo "$as_me: error: cannot run C compiled programs.
3063If you meant to cross compile, use \`--host'.
3064See \`config.log' for more details." >&2;}
3065   { (exit 1); exit 1; }; }; }
3066    fi
3067  fi
3068fi
3069{ $as_echo "$as_me:$LINENO: result: yes" >&5
3070$as_echo "yes" >&6; }
3071
3072rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073ac_clean_files=$ac_clean_files_save
3074# Check that the compiler produces executables we can run.  If not, either
3075# the compiler is broken, or we cross compile.
3076{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3077$as_echo_n "checking whether we are cross compiling... " >&6; }
3078{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3079$as_echo "$cross_compiling" >&6; }
3080
3081{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3082$as_echo_n "checking for suffix of executables... " >&6; }
3083if { (ac_try="$ac_link"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089$as_echo "$ac_try_echo") >&5
3090  (eval "$ac_link") 2>&5
3091  ac_status=$?
3092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; then
3094  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3095# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3096# work properly (i.e., refer to `conftest.exe'), while it won't with
3097# `rm'.
3098for ac_file in conftest.exe conftest conftest.*; do
3099  test -f "$ac_file" || continue
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103	  break;;
3104    * ) break;;
3105  esac
3106done
3107else
3108  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3111See \`config.log' for more details." >&5
3112$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3113See \`config.log' for more details." >&2;}
3114   { (exit 1); exit 1; }; }; }
3115fi
3116
3117rm -f conftest$ac_cv_exeext
3118{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3119$as_echo "$ac_cv_exeext" >&6; }
3120
3121rm -f conftest.$ac_ext
3122EXEEXT=$ac_cv_exeext
3123ac_exeext=$EXEEXT
3124{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3125$as_echo_n "checking for suffix of object files... " >&6; }
3126if test "${ac_cv_objext+set}" = set; then
3127  $as_echo_n "(cached) " >&6
3128else
3129  cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest.o conftest.obj
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151$as_echo "$ac_try_echo") >&5
3152  (eval "$ac_compile") 2>&5
3153  ac_status=$?
3154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; then
3156  for ac_file in conftest.o conftest.obj conftest.*; do
3157  test -f "$ac_file" || continue;
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3160    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3161       break;;
3162  esac
3163done
3164else
3165  $as_echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3171See \`config.log' for more details." >&5
3172$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3173See \`config.log' for more details." >&2;}
3174   { (exit 1); exit 1; }; }; }
3175fi
3176
3177rm -f conftest.$ac_cv_objext conftest.$ac_ext
3178fi
3179{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3180$as_echo "$ac_cv_objext" >&6; }
3181OBJEXT=$ac_cv_objext
3182ac_objext=$OBJEXT
3183{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3184$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3185if test "${ac_cv_c_compiler_gnu+set}" = set; then
3186  $as_echo_n "(cached) " >&6
3187else
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198#ifndef __GNUC__
3199       choke me
3200#endif
3201
3202  ;
3203  return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (ac_try="$ac_compile"
3208case "(($ac_try" in
3209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210  *) ac_try_echo=$ac_try;;
3211esac
3212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213$as_echo "$ac_try_echo") >&5
3214  (eval "$ac_compile") 2>conftest.er1
3215  ac_status=$?
3216  grep -v '^ *+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } && {
3221	 test -z "$ac_c_werror_flag" ||
3222	 test ! -s conftest.err
3223       } && test -s conftest.$ac_objext; then
3224  ac_compiler_gnu=yes
3225else
3226  $as_echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229	ac_compiler_gnu=no
3230fi
3231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234
3235fi
3236{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3237$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3238if test $ac_compiler_gnu = yes; then
3239  GCC=yes
3240else
3241  GCC=
3242fi
3243ac_test_CFLAGS=${CFLAGS+set}
3244ac_save_CFLAGS=$CFLAGS
3245{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3246$as_echo_n "checking whether $CC accepts -g... " >&6; }
3247if test "${ac_cv_prog_cc_g+set}" = set; then
3248  $as_echo_n "(cached) " >&6
3249else
3250  ac_save_c_werror_flag=$ac_c_werror_flag
3251   ac_c_werror_flag=yes
3252   ac_cv_prog_cc_g=no
3253   CFLAGS="-g"
3254   cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h.  */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($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_compile") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } && {
3284	 test -z "$ac_c_werror_flag" ||
3285	 test ! -s conftest.err
3286       } && test -s conftest.$ac_objext; then
3287  ac_cv_prog_cc_g=yes
3288else
3289  $as_echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292	CFLAGS=""
3293      cat >conftest.$ac_ext <<_ACEOF
3294/* confdefs.h.  */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h.  */
3299
3300int
3301main ()
3302{
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (ac_try="$ac_compile"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3315$as_echo "$ac_try_echo") >&5
3316  (eval "$ac_compile") 2>conftest.er1
3317  ac_status=$?
3318  grep -v '^ *+' conftest.er1 >conftest.err
3319  rm -f conftest.er1
3320  cat conftest.err >&5
3321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } && {
3323	 test -z "$ac_c_werror_flag" ||
3324	 test ! -s conftest.err
3325       } && test -s conftest.$ac_objext; then
3326  :
3327else
3328  $as_echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331	ac_c_werror_flag=$ac_save_c_werror_flag
3332	 CFLAGS="-g"
3333	 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339
3340int
3341main ()
3342{
3343
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (ac_try="$ac_compile"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355$as_echo "$ac_try_echo") >&5
3356  (eval "$ac_compile") 2>conftest.er1
3357  ac_status=$?
3358  grep -v '^ *+' conftest.er1 >conftest.err
3359  rm -f conftest.er1
3360  cat conftest.err >&5
3361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); } && {
3363	 test -z "$ac_c_werror_flag" ||
3364	 test ! -s conftest.err
3365       } && test -s conftest.$ac_objext; then
3366  ac_cv_prog_cc_g=yes
3367else
3368  $as_echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371
3372fi
3373
3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375fi
3376
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378fi
3379
3380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381   ac_c_werror_flag=$ac_save_c_werror_flag
3382fi
3383{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3384$as_echo "$ac_cv_prog_cc_g" >&6; }
3385if test "$ac_test_CFLAGS" = set; then
3386  CFLAGS=$ac_save_CFLAGS
3387elif test $ac_cv_prog_cc_g = yes; then
3388  if test "$GCC" = yes; then
3389    CFLAGS="-g -O2"
3390  else
3391    CFLAGS="-g"
3392  fi
3393else
3394  if test "$GCC" = yes; then
3395    CFLAGS="-O2"
3396  else
3397    CFLAGS=
3398  fi
3399fi
3400{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3401$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3402if test "${ac_cv_prog_cc_c89+set}" = set; then
3403  $as_echo_n "(cached) " >&6
3404else
3405  ac_cv_prog_cc_c89=no
3406ac_save_CC=$CC
3407cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413#include <stdarg.h>
3414#include <stdio.h>
3415#include <sys/types.h>
3416#include <sys/stat.h>
3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3418struct buf { int x; };
3419FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421     char **p;
3422     int i;
3423{
3424  return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428  char *s;
3429  va_list v;
3430  va_start (v,p);
3431  s = g (p, va_arg (v,int));
3432  va_end (v);
3433  return s;
3434}
3435
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3437   function prototypes and stuff, but not '\xHH' hex character constants.
3438   These don't provoke an error unfortunately, instead are silently treated
3439   as 'x'.  The following induces an error, until -std is added to get
3440   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3441   array size at least.  It's necessary to write '\x00'==0 to get something
3442   that's true only with -std.  */
3443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446   inside strings and character constants.  */
3447#define FOO(x) 'x'
3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466do
3467  CC="$ac_save_CC $ac_arg"
3468  rm -f conftest.$ac_objext
3469if { (ac_try="$ac_compile"
3470case "(($ac_try" in
3471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472  *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475$as_echo "$ac_try_echo") >&5
3476  (eval "$ac_compile") 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } && {
3483	 test -z "$ac_c_werror_flag" ||
3484	 test ! -s conftest.err
3485       } && test -s conftest.$ac_objext; then
3486  ac_cv_prog_cc_c89=$ac_arg
3487else
3488  $as_echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492fi
3493
3494rm -f core conftest.err conftest.$ac_objext
3495  test "x$ac_cv_prog_cc_c89" != "xno" && break
3496done
3497rm -f conftest.$ac_ext
3498CC=$ac_save_CC
3499
3500fi
3501# AC_CACHE_VAL
3502case "x$ac_cv_prog_cc_c89" in
3503  x)
3504    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3505$as_echo "none needed" >&6; } ;;
3506  xno)
3507    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3508$as_echo "unsupported" >&6; } ;;
3509  *)
3510    CC="$CC $ac_cv_prog_cc_c89"
3511    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3512$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3513esac
3514
3515
3516ac_ext=c
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521DEPDIR="${am__leading_dot}deps"
3522
3523ac_config_commands="$ac_config_commands depfiles"
3524
3525
3526am_make=${MAKE-make}
3527cat > confinc << 'END'
3528am__doit:
3529	@echo done
3530.PHONY: am__doit
3531END
3532# If we don't find an include directive, just comment out the code.
3533{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3534$as_echo_n "checking for style of include used by $am_make... " >&6; }
3535am__include="#"
3536am__quote=
3537_am_result=none
3538# First try GNU make style include.
3539echo "include confinc" > confmf
3540# We grep out `Entering directory' and `Leaving directory'
3541# messages which can occur if `w' ends up in MAKEFLAGS.
3542# In particular we don't look at `^make:' because GNU make might
3543# be invoked under some other name (usually "gmake"), in which
3544# case it prints its new name instead of `make'.
3545if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3546   am__include=include
3547   am__quote=
3548   _am_result=GNU
3549fi
3550# Now try BSD make style include.
3551if test "$am__include" = "#"; then
3552   echo '.include "confinc"' > confmf
3553   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3554      am__include=.include
3555      am__quote="\""
3556      _am_result=BSD
3557   fi
3558fi
3559
3560
3561{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3562$as_echo "$_am_result" >&6; }
3563rm -f confinc confmf
3564
3565# Check whether --enable-dependency-tracking was given.
3566if test "${enable_dependency_tracking+set}" = set; then
3567  enableval=$enable_dependency_tracking;
3568fi
3569
3570if test "x$enable_dependency_tracking" != xno; then
3571  am_depcomp="$ac_aux_dir/depcomp"
3572  AMDEPBACKSLASH='\'
3573fi
3574 if test "x$enable_dependency_tracking" != xno; then
3575  AMDEP_TRUE=
3576  AMDEP_FALSE='#'
3577else
3578  AMDEP_TRUE='#'
3579  AMDEP_FALSE=
3580fi
3581
3582
3583
3584depcc="$CC"   am_compiler_list=
3585
3586{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3587$as_echo_n "checking dependency style of $depcc... " >&6; }
3588if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3589  $as_echo_n "(cached) " >&6
3590else
3591  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3592  # We make a subdir and do the tests there.  Otherwise we can end up
3593  # making bogus files that we don't know about and never remove.  For
3594  # instance it was reported that on HP-UX the gcc test will end up
3595  # making a dummy file named `D' -- because `-MD' means `put the output
3596  # in D'.
3597  mkdir conftest.dir
3598  # Copy depcomp to subdir because otherwise we won't find it if we're
3599  # using a relative directory.
3600  cp "$am_depcomp" conftest.dir
3601  cd conftest.dir
3602  # We will build objects and dependencies in a subdirectory because
3603  # it helps to detect inapplicable dependency modes.  For instance
3604  # both Tru64's cc and ICC support -MD to output dependencies as a
3605  # side effect of compilation, but ICC will put the dependencies in
3606  # the current directory while Tru64 will put them in the object
3607  # directory.
3608  mkdir sub
3609
3610  am_cv_CC_dependencies_compiler_type=none
3611  if test "$am_compiler_list" = ""; then
3612     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3613  fi
3614  for depmode in $am_compiler_list; do
3615    # Setup a source with many dependencies, because some compilers
3616    # like to wrap large dependency lists on column 80 (with \), and
3617    # we should not choose a depcomp mode which is confused by this.
3618    #
3619    # We need to recreate these files for each test, as the compiler may
3620    # overwrite some of them when testing with obscure command lines.
3621    # This happens at least with the AIX C compiler.
3622    : > sub/conftest.c
3623    for i in 1 2 3 4 5 6; do
3624      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3625      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3626      # Solaris 8's {/usr,}/bin/sh.
3627      touch sub/conftst$i.h
3628    done
3629    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3630
3631    case $depmode in
3632    nosideeffect)
3633      # after this tag, mechanisms are not by side-effect, so they'll
3634      # only be used when explicitly requested
3635      if test "x$enable_dependency_tracking" = xyes; then
3636	continue
3637      else
3638	break
3639      fi
3640      ;;
3641    none) break ;;
3642    esac
3643    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3644    # mode.  It turns out that the SunPro C++ compiler does not properly
3645    # handle `-M -o', and we need to detect this.
3646    if depmode=$depmode \
3647       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3648       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3649       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3650         >/dev/null 2>conftest.err &&
3651       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3652       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3653       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3654       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3655      # icc doesn't choke on unknown options, it will just issue warnings
3656      # or remarks (even with -Werror).  So we grep stderr for any message
3657      # that says an option was ignored or not supported.
3658      # When given -MP, icc 7.0 and 7.1 complain thusly:
3659      #   icc: Command line warning: ignoring option '-M'; no argument required
3660      # The diagnosis changed in icc 8.0:
3661      #   icc: Command line remark: option '-MP' not supported
3662      if (grep 'ignoring option' conftest.err ||
3663          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3664        am_cv_CC_dependencies_compiler_type=$depmode
3665        break
3666      fi
3667    fi
3668  done
3669
3670  cd ..
3671  rm -rf conftest.dir
3672else
3673  am_cv_CC_dependencies_compiler_type=none
3674fi
3675
3676fi
3677{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3678$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3679CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3680
3681 if
3682  test "x$enable_dependency_tracking" != xno \
3683  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3684  am__fastdepCC_TRUE=
3685  am__fastdepCC_FALSE='#'
3686else
3687  am__fastdepCC_TRUE='#'
3688  am__fastdepCC_FALSE=
3689fi
3690
3691
3692# Check whether --enable-shared was given.
3693if test "${enable_shared+set}" = set; then
3694  enableval=$enable_shared; p=${PACKAGE-default}
3695    case $enableval in
3696    yes) enable_shared=yes ;;
3697    no) enable_shared=no ;;
3698    *)
3699      enable_shared=no
3700      # Look at the argument we got.  We use all the common list separators.
3701      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3702      for pkg in $enableval; do
3703	IFS="$lt_save_ifs"
3704	if test "X$pkg" = "X$p"; then
3705	  enable_shared=yes
3706	fi
3707      done
3708      IFS="$lt_save_ifs"
3709      ;;
3710    esac
3711else
3712  enable_shared=yes
3713fi
3714
3715
3716# Check whether --enable-static was given.
3717if test "${enable_static+set}" = set; then
3718  enableval=$enable_static; p=${PACKAGE-default}
3719    case $enableval in
3720    yes) enable_static=yes ;;
3721    no) enable_static=no ;;
3722    *)
3723     enable_static=no
3724      # Look at the argument we got.  We use all the common list separators.
3725      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726      for pkg in $enableval; do
3727	IFS="$lt_save_ifs"
3728	if test "X$pkg" = "X$p"; then
3729	  enable_static=yes
3730	fi
3731      done
3732      IFS="$lt_save_ifs"
3733      ;;
3734    esac
3735else
3736  enable_static=yes
3737fi
3738
3739
3740# Check whether --enable-fast-install was given.
3741if test "${enable_fast_install+set}" = set; then
3742  enableval=$enable_fast_install; p=${PACKAGE-default}
3743    case $enableval in
3744    yes) enable_fast_install=yes ;;
3745    no) enable_fast_install=no ;;
3746    *)
3747      enable_fast_install=no
3748      # Look at the argument we got.  We use all the common list separators.
3749      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750      for pkg in $enableval; do
3751	IFS="$lt_save_ifs"
3752	if test "X$pkg" = "X$p"; then
3753	  enable_fast_install=yes
3754	fi
3755      done
3756      IFS="$lt_save_ifs"
3757      ;;
3758    esac
3759else
3760  enable_fast_install=yes
3761fi
3762
3763
3764# Make sure we can run config.sub.
3765$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3766  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3767$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3768   { (exit 1); exit 1; }; }
3769
3770{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3771$as_echo_n "checking build system type... " >&6; }
3772if test "${ac_cv_build+set}" = set; then
3773  $as_echo_n "(cached) " >&6
3774else
3775  ac_build_alias=$build_alias
3776test "x$ac_build_alias" = x &&
3777  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778test "x$ac_build_alias" = x &&
3779  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3780$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3781   { (exit 1); exit 1; }; }
3782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3783  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3784$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3785   { (exit 1); exit 1; }; }
3786
3787fi
3788{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3789$as_echo "$ac_cv_build" >&6; }
3790case $ac_cv_build in
3791*-*-*) ;;
3792*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3793$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3794   { (exit 1); exit 1; }; };;
3795esac
3796build=$ac_cv_build
3797ac_save_IFS=$IFS; IFS='-'
3798set x $ac_cv_build
3799shift
3800build_cpu=$1
3801build_vendor=$2
3802shift; shift
3803# Remember, the first character of IFS is used to create $*,
3804# except with old shells:
3805build_os=$*
3806IFS=$ac_save_IFS
3807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3808
3809
3810{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3811$as_echo_n "checking host system type... " >&6; }
3812if test "${ac_cv_host+set}" = set; then
3813  $as_echo_n "(cached) " >&6
3814else
3815  if test "x$host_alias" = x; then
3816  ac_cv_host=$ac_cv_build
3817else
3818  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3819    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3820$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3821   { (exit 1); exit 1; }; }
3822fi
3823
3824fi
3825{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3826$as_echo "$ac_cv_host" >&6; }
3827case $ac_cv_host in
3828*-*-*) ;;
3829*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3830$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3831   { (exit 1); exit 1; }; };;
3832esac
3833host=$ac_cv_host
3834ac_save_IFS=$IFS; IFS='-'
3835set x $ac_cv_host
3836shift
3837host_cpu=$1
3838host_vendor=$2
3839shift; shift
3840# Remember, the first character of IFS is used to create $*,
3841# except with old shells:
3842host_os=$*
3843IFS=$ac_save_IFS
3844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845
3846
3847{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3848$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3849if test "${lt_cv_path_SED+set}" = set; then
3850  $as_echo_n "(cached) " >&6
3851else
3852  # Loop through the user's path and test for sed and gsed.
3853# Then use that list of sed's as ones to test for truncation.
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859  for lt_ac_prog in sed gsed; do
3860    for ac_exec_ext in '' $ac_executable_extensions; do
3861      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3862        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3863      fi
3864    done
3865  done
3866done
3867IFS=$as_save_IFS
3868lt_ac_max=0
3869lt_ac_count=0
3870# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3871# along with /bin/sed that truncates output.
3872for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3873  test ! -f $lt_ac_sed && continue
3874  cat /dev/null > conftest.in
3875  lt_ac_count=0
3876  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3877  # Check for GNU sed and select it if it is found.
3878  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3879    lt_cv_path_SED=$lt_ac_sed
3880    break
3881  fi
3882  while true; do
3883    cat conftest.in conftest.in >conftest.tmp
3884    mv conftest.tmp conftest.in
3885    cp conftest.in conftest.nl
3886    echo >>conftest.nl
3887    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3888    cmp -s conftest.out conftest.nl || break
3889    # 10000 chars as input seems more than enough
3890    test $lt_ac_count -gt 10 && break
3891    lt_ac_count=`expr $lt_ac_count + 1`
3892    if test $lt_ac_count -gt $lt_ac_max; then
3893      lt_ac_max=$lt_ac_count
3894      lt_cv_path_SED=$lt_ac_sed
3895    fi
3896  done
3897done
3898
3899fi
3900
3901SED=$lt_cv_path_SED
3902
3903{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3904$as_echo "$SED" >&6; }
3905
3906{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3908if test "${ac_cv_path_GREP+set}" = set; then
3909  $as_echo_n "(cached) " >&6
3910else
3911  if test -z "$GREP"; then
3912  ac_path_GREP_found=false
3913  # Loop through the user's path and test for each of PROGNAME-LIST
3914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919  for ac_prog in grep ggrep; do
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3922      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3923# Check for GNU ac_path_GREP and select it if it is found.
3924  # Check for GNU $ac_path_GREP
3925case `"$ac_path_GREP" --version 2>&1` in
3926*GNU*)
3927  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928*)
3929  ac_count=0
3930  $as_echo_n 0123456789 >"conftest.in"
3931  while :
3932  do
3933    cat "conftest.in" "conftest.in" >"conftest.tmp"
3934    mv "conftest.tmp" "conftest.in"
3935    cp "conftest.in" "conftest.nl"
3936    $as_echo 'GREP' >> "conftest.nl"
3937    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939    ac_count=`expr $ac_count + 1`
3940    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3941      # Best one so far, save it but keep looking for a better one
3942      ac_cv_path_GREP="$ac_path_GREP"
3943      ac_path_GREP_max=$ac_count
3944    fi
3945    # 10*(2^10) chars as input seems more than enough
3946    test $ac_count -gt 10 && break
3947  done
3948  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949esac
3950
3951      $ac_path_GREP_found && break 3
3952    done
3953  done
3954done
3955IFS=$as_save_IFS
3956  if test -z "$ac_cv_path_GREP"; then
3957    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3958$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3959   { (exit 1); exit 1; }; }
3960  fi
3961else
3962  ac_cv_path_GREP=$GREP
3963fi
3964
3965fi
3966{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967$as_echo "$ac_cv_path_GREP" >&6; }
3968 GREP="$ac_cv_path_GREP"
3969
3970
3971{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3972$as_echo_n "checking for egrep... " >&6; }
3973if test "${ac_cv_path_EGREP+set}" = set; then
3974  $as_echo_n "(cached) " >&6
3975else
3976  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977   then ac_cv_path_EGREP="$GREP -E"
3978   else
3979     if test -z "$EGREP"; then
3980  ac_path_EGREP_found=false
3981  # Loop through the user's path and test for each of PROGNAME-LIST
3982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984do
3985  IFS=$as_save_IFS
3986  test -z "$as_dir" && as_dir=.
3987  for ac_prog in egrep; do
3988    for ac_exec_ext in '' $ac_executable_extensions; do
3989      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991# Check for GNU ac_path_EGREP and select it if it is found.
3992  # Check for GNU $ac_path_EGREP
3993case `"$ac_path_EGREP" --version 2>&1` in
3994*GNU*)
3995  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3996*)
3997  ac_count=0
3998  $as_echo_n 0123456789 >"conftest.in"
3999  while :
4000  do
4001    cat "conftest.in" "conftest.in" >"conftest.tmp"
4002    mv "conftest.tmp" "conftest.in"
4003    cp "conftest.in" "conftest.nl"
4004    $as_echo 'EGREP' >> "conftest.nl"
4005    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007    ac_count=`expr $ac_count + 1`
4008    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009      # Best one so far, save it but keep looking for a better one
4010      ac_cv_path_EGREP="$ac_path_EGREP"
4011      ac_path_EGREP_max=$ac_count
4012    fi
4013    # 10*(2^10) chars as input seems more than enough
4014    test $ac_count -gt 10 && break
4015  done
4016  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017esac
4018
4019      $ac_path_EGREP_found && break 3
4020    done
4021  done
4022done
4023IFS=$as_save_IFS
4024  if test -z "$ac_cv_path_EGREP"; then
4025    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027   { (exit 1); exit 1; }; }
4028  fi
4029else
4030  ac_cv_path_EGREP=$EGREP
4031fi
4032
4033   fi
4034fi
4035{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036$as_echo "$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4038
4039
4040
4041# Check whether --with-gnu-ld was given.
4042if test "${with_gnu_ld+set}" = set; then
4043  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4044else
4045  with_gnu_ld=no
4046fi
4047
4048ac_prog=ld
4049if test "$GCC" = yes; then
4050  # Check if gcc -print-prog-name=ld gives a path.
4051  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4052$as_echo_n "checking for ld used by $CC... " >&6; }
4053  case $host in
4054  *-*-mingw*)
4055    # gcc leaves a trailing carriage return which upsets mingw
4056    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4057  *)
4058    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4059  esac
4060  case $ac_prog in
4061    # Accept absolute paths.
4062    [\\/]* | ?:[\\/]*)
4063      re_direlt='/[^/][^/]*/\.\./'
4064      # Canonicalize the pathname of ld
4065      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4066      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4067	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4068      done
4069      test -z "$LD" && LD="$ac_prog"
4070      ;;
4071  "")
4072    # If it fails, then pretend we aren't using GCC.
4073    ac_prog=ld
4074    ;;
4075  *)
4076    # If it is relative, then search for the first ld in PATH.
4077    with_gnu_ld=unknown
4078    ;;
4079  esac
4080elif test "$with_gnu_ld" = yes; then
4081  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4082$as_echo_n "checking for GNU ld... " >&6; }
4083else
4084  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4085$as_echo_n "checking for non-GNU ld... " >&6; }
4086fi
4087if test "${lt_cv_path_LD+set}" = set; then
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -z "$LD"; then
4091  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092  for ac_dir in $PATH; do
4093    IFS="$lt_save_ifs"
4094    test -z "$ac_dir" && ac_dir=.
4095    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096      lt_cv_path_LD="$ac_dir/$ac_prog"
4097      # Check to see if the program is GNU ld.  I'd rather use --version,
4098      # but apparently some variants of GNU ld only accept -v.
4099      # Break only if it was the GNU/non-GNU ld that we prefer.
4100      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101      *GNU* | *'with BFD'*)
4102	test "$with_gnu_ld" != no && break
4103	;;
4104      *)
4105	test "$with_gnu_ld" != yes && break
4106	;;
4107      esac
4108    fi
4109  done
4110  IFS="$lt_save_ifs"
4111else
4112  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113fi
4114fi
4115
4116LD="$lt_cv_path_LD"
4117if test -n "$LD"; then
4118  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4119$as_echo "$LD" >&6; }
4120else
4121  { $as_echo "$as_me:$LINENO: result: no" >&5
4122$as_echo "no" >&6; }
4123fi
4124test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126   { (exit 1); exit 1; }; }
4127{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4129if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130  $as_echo_n "(cached) " >&6
4131else
4132  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4133case `$LD -v 2>&1 </dev/null` in
4134*GNU* | *'with BFD'*)
4135  lt_cv_prog_gnu_ld=yes
4136  ;;
4137*)
4138  lt_cv_prog_gnu_ld=no
4139  ;;
4140esac
4141fi
4142{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4143$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4144with_gnu_ld=$lt_cv_prog_gnu_ld
4145
4146
4147{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4148$as_echo_n "checking for $LD option to reload object files... " >&6; }
4149if test "${lt_cv_ld_reload_flag+set}" = set; then
4150  $as_echo_n "(cached) " >&6
4151else
4152  lt_cv_ld_reload_flag='-r'
4153fi
4154{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4155$as_echo "$lt_cv_ld_reload_flag" >&6; }
4156reload_flag=$lt_cv_ld_reload_flag
4157case $reload_flag in
4158"" | " "*) ;;
4159*) reload_flag=" $reload_flag" ;;
4160esac
4161reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162case $host_os in
4163  darwin*)
4164    if test "$GCC" = yes; then
4165      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4166    else
4167      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168    fi
4169    ;;
4170esac
4171
4172{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4173$as_echo_n "checking for BSD-compatible nm... " >&6; }
4174if test "${lt_cv_path_NM+set}" = set; then
4175  $as_echo_n "(cached) " >&6
4176else
4177  if test -n "$NM"; then
4178  # Let the user override the test.
4179  lt_cv_path_NM="$NM"
4180else
4181  lt_nm_to_check="${ac_tool_prefix}nm"
4182  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4183    lt_nm_to_check="$lt_nm_to_check nm"
4184  fi
4185  for lt_tmp_nm in $lt_nm_to_check; do
4186    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4187    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4188      IFS="$lt_save_ifs"
4189      test -z "$ac_dir" && ac_dir=.
4190      tmp_nm="$ac_dir/$lt_tmp_nm"
4191      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4192	# Check to see if the nm accepts a BSD-compat flag.
4193	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4194	#   nm: unknown option "B" ignored
4195	# Tru64's nm complains that /dev/null is an invalid object file
4196	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4197	*/dev/null* | *'Invalid file or object type'*)
4198	  lt_cv_path_NM="$tmp_nm -B"
4199	  break
4200	  ;;
4201	*)
4202	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203	  */dev/null*)
4204	    lt_cv_path_NM="$tmp_nm -p"
4205	    break
4206	    ;;
4207	  *)
4208	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4209	    continue # so that we can try to find one that supports BSD flags
4210	    ;;
4211	  esac
4212	  ;;
4213	esac
4214      fi
4215    done
4216    IFS="$lt_save_ifs"
4217  done
4218  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4219fi
4220fi
4221{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4222$as_echo "$lt_cv_path_NM" >&6; }
4223NM="$lt_cv_path_NM"
4224
4225{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4226$as_echo_n "checking whether ln -s works... " >&6; }
4227LN_S=$as_ln_s
4228if test "$LN_S" = "ln -s"; then
4229  { $as_echo "$as_me:$LINENO: result: yes" >&5
4230$as_echo "yes" >&6; }
4231else
4232  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4233$as_echo "no, using $LN_S" >&6; }
4234fi
4235
4236{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4237$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4238if test "${lt_cv_deplibs_check_method+set}" = set; then
4239  $as_echo_n "(cached) " >&6
4240else
4241  lt_cv_file_magic_cmd='$MAGIC_CMD'
4242lt_cv_file_magic_test_file=
4243lt_cv_deplibs_check_method='unknown'
4244# Need to set the preceding variable on all platforms that support
4245# interlibrary dependencies.
4246# 'none' -- dependencies not supported.
4247# `unknown' -- same as none, but documents that we really don't know.
4248# 'pass_all' -- all dependencies passed with no checks.
4249# 'test_compile' -- check by making test program.
4250# 'file_magic [[regex]]' -- check by looking for files in library path
4251# which responds to the $file_magic_cmd with a given extended regex.
4252# If you have `file' or equivalent on your system and you're not sure
4253# whether `pass_all' will *always* work, you probably want this one.
4254
4255case $host_os in
4256aix[4-9]*)
4257  lt_cv_deplibs_check_method=pass_all
4258  ;;
4259
4260beos*)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264bsdi[45]*)
4265  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266  lt_cv_file_magic_cmd='/usr/bin/file -L'
4267  lt_cv_file_magic_test_file=/shlib/libc.so
4268  ;;
4269
4270cygwin*)
4271  # func_win32_libid is a shell function defined in ltmain.sh
4272  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4273  lt_cv_file_magic_cmd='func_win32_libid'
4274  ;;
4275
4276mingw* | pw32*)
4277  # Base MSYS/MinGW do not provide the 'file' command needed by
4278  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4279  # unless we find 'file', for example because we are cross-compiling.
4280  if ( file / ) >/dev/null 2>&1; then
4281    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4282    lt_cv_file_magic_cmd='func_win32_libid'
4283  else
4284    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4285    lt_cv_file_magic_cmd='$OBJDUMP -f'
4286  fi
4287  ;;
4288
4289darwin* | rhapsody*)
4290  lt_cv_deplibs_check_method=pass_all
4291  ;;
4292
4293freebsd* | dragonfly*)
4294  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4295    case $host_cpu in
4296    i*86 )
4297      # Not sure whether the presence of OpenBSD here was a mistake.
4298      # Let's accept both of them until this is cleared up.
4299      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4300      lt_cv_file_magic_cmd=/usr/bin/file
4301      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302      ;;
4303    esac
4304  else
4305    lt_cv_deplibs_check_method=pass_all
4306  fi
4307  ;;
4308
4309gnu*)
4310  lt_cv_deplibs_check_method=pass_all
4311  ;;
4312
4313hpux10.20* | hpux11*)
4314  lt_cv_file_magic_cmd=/usr/bin/file
4315  case $host_cpu in
4316  ia64*)
4317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4318    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4319    ;;
4320  hppa*64*)
4321    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]'
4322    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4323    ;;
4324  *)
4325    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4326    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4327    ;;
4328  esac
4329  ;;
4330
4331interix[3-9]*)
4332  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4333  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4334  ;;
4335
4336irix5* | irix6* | nonstopux*)
4337  case $LD in
4338  *-32|*"-32 ") libmagic=32-bit;;
4339  *-n32|*"-n32 ") libmagic=N32;;
4340  *-64|*"-64 ") libmagic=64-bit;;
4341  *) libmagic=never-match;;
4342  esac
4343  lt_cv_deplibs_check_method=pass_all
4344  ;;
4345
4346# This must be Linux ELF.
4347linux* | k*bsd*-gnu)
4348  lt_cv_deplibs_check_method=pass_all
4349  ;;
4350
4351netbsd*)
4352  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4354  else
4355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4356  fi
4357  ;;
4358
4359newos6*)
4360  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4361  lt_cv_file_magic_cmd=/usr/bin/file
4362  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4363  ;;
4364
4365nto-qnx*)
4366  lt_cv_deplibs_check_method=unknown
4367  ;;
4368
4369openbsd*)
4370  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4372  else
4373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4374  fi
4375  ;;
4376
4377osf3* | osf4* | osf5*)
4378  lt_cv_deplibs_check_method=pass_all
4379  ;;
4380
4381rdos*)
4382  lt_cv_deplibs_check_method=pass_all
4383  ;;
4384
4385solaris*)
4386  lt_cv_deplibs_check_method=pass_all
4387  ;;
4388
4389sysv4 | sysv4.3*)
4390  case $host_vendor in
4391  motorola)
4392    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]'
4393    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4394    ;;
4395  ncr)
4396    lt_cv_deplibs_check_method=pass_all
4397    ;;
4398  sequent)
4399    lt_cv_file_magic_cmd='/bin/file'
4400    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4401    ;;
4402  sni)
4403    lt_cv_file_magic_cmd='/bin/file'
4404    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4405    lt_cv_file_magic_test_file=/lib/libc.so
4406    ;;
4407  siemens)
4408    lt_cv_deplibs_check_method=pass_all
4409    ;;
4410  pc)
4411    lt_cv_deplibs_check_method=pass_all
4412    ;;
4413  esac
4414  ;;
4415
4416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419esac
4420
4421fi
4422{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4423$as_echo "$lt_cv_deplibs_check_method" >&6; }
4424file_magic_cmd=$lt_cv_file_magic_cmd
4425deplibs_check_method=$lt_cv_deplibs_check_method
4426test -z "$deplibs_check_method" && deplibs_check_method=unknown
4427
4428
4429
4430
4431# If no C compiler was specified, use CC.
4432LTCC=${LTCC-"$CC"}
4433
4434# If no C compiler flags were specified, use CFLAGS.
4435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4436
4437# Allow CC to be a program name with arguments.
4438compiler=$CC
4439
4440
4441# Check whether --enable-libtool-lock was given.
4442if test "${enable_libtool_lock+set}" = set; then
4443  enableval=$enable_libtool_lock;
4444fi
4445
4446test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4447
4448# Some flags need to be propagated to the compiler or linker for good
4449# libtool support.
4450case $host in
4451ia64-*-hpux*)
4452  # Find out which ABI we are using.
4453  echo 'int i;' > conftest.$ac_ext
4454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>&5
4456  ac_status=$?
4457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); }; then
4459    case `/usr/bin/file conftest.$ac_objext` in
4460    *ELF-32*)
4461      HPUX_IA64_MODE="32"
4462      ;;
4463    *ELF-64*)
4464      HPUX_IA64_MODE="64"
4465      ;;
4466    esac
4467  fi
4468  rm -rf conftest*
4469  ;;
4470*-*-irix6*)
4471  # Find out which ABI we are using.
4472  echo '#line 4472 "configure"' > conftest.$ac_ext
4473  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474  (eval $ac_compile) 2>&5
4475  ac_status=$?
4476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; then
4478   if test "$lt_cv_prog_gnu_ld" = yes; then
4479    case `/usr/bin/file conftest.$ac_objext` in
4480    *32-bit*)
4481      LD="${LD-ld} -melf32bsmip"
4482      ;;
4483    *N32*)
4484      LD="${LD-ld} -melf32bmipn32"
4485      ;;
4486    *64-bit*)
4487      LD="${LD-ld} -melf64bmip"
4488      ;;
4489    esac
4490   else
4491    case `/usr/bin/file conftest.$ac_objext` in
4492    *32-bit*)
4493      LD="${LD-ld} -32"
4494      ;;
4495    *N32*)
4496      LD="${LD-ld} -n32"
4497      ;;
4498    *64-bit*)
4499      LD="${LD-ld} -64"
4500      ;;
4501    esac
4502   fi
4503  fi
4504  rm -rf conftest*
4505  ;;
4506
4507x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4508s390*-*linux*|sparc*-*linux*)
4509  # Find out which ABI we are using.
4510  echo 'int i;' > conftest.$ac_ext
4511  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512  (eval $ac_compile) 2>&5
4513  ac_status=$?
4514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; then
4516    case `/usr/bin/file conftest.o` in
4517    *32-bit*)
4518      case $host in
4519        x86_64-*kfreebsd*-gnu)
4520          LD="${LD-ld} -m elf_i386_fbsd"
4521          ;;
4522        x86_64-*linux*)
4523          LD="${LD-ld} -m elf_i386"
4524          ;;
4525        ppc64-*linux*|powerpc64-*linux*)
4526          LD="${LD-ld} -m elf32ppclinux"
4527          ;;
4528        s390x-*linux*)
4529          LD="${LD-ld} -m elf_s390"
4530          ;;
4531        sparc64-*linux*)
4532          LD="${LD-ld} -m elf32_sparc"
4533          ;;
4534      esac
4535      ;;
4536    *64-bit*)
4537      libsuff=64
4538      case $host in
4539        x86_64-*kfreebsd*-gnu)
4540          LD="${LD-ld} -m elf_x86_64_fbsd"
4541          ;;
4542        x86_64-*linux*)
4543          LD="${LD-ld} -m elf_x86_64"
4544          ;;
4545        ppc*-*linux*|powerpc*-*linux*)
4546          LD="${LD-ld} -m elf64ppc"
4547          ;;
4548        s390*-*linux*)
4549          LD="${LD-ld} -m elf64_s390"
4550          ;;
4551        sparc*-*linux*)
4552          LD="${LD-ld} -m elf64_sparc"
4553          ;;
4554      esac
4555      ;;
4556    esac
4557  fi
4558  rm -rf conftest*
4559  ;;
4560
4561*-*-sco3.2v5*)
4562  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4563  SAVE_CFLAGS="$CFLAGS"
4564  CFLAGS="$CFLAGS -belf"
4565  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4566$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4567if test "${lt_cv_cc_needs_belf+set}" = set; then
4568  $as_echo_n "(cached) " >&6
4569else
4570  ac_ext=c
4571ac_cpp='$CPP $CPPFLAGS'
4572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
4576     cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h.  */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h.  */
4582
4583int
4584main ()
4585{
4586
4587  ;
4588  return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext conftest$ac_exeext
4592if { (ac_try="$ac_link"
4593case "(($ac_try" in
4594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595  *) ac_try_echo=$ac_try;;
4596esac
4597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598$as_echo "$ac_try_echo") >&5
4599  (eval "$ac_link") 2>conftest.er1
4600  ac_status=$?
4601  grep -v '^ *+' conftest.er1 >conftest.err
4602  rm -f conftest.er1
4603  cat conftest.err >&5
4604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } && {
4606	 test -z "$ac_c_werror_flag" ||
4607	 test ! -s conftest.err
4608       } && test -s conftest$ac_exeext && {
4609	 test "$cross_compiling" = yes ||
4610	 $as_test_x conftest$ac_exeext
4611       }; then
4612  lt_cv_cc_needs_belf=yes
4613else
4614  $as_echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617	lt_cv_cc_needs_belf=no
4618fi
4619
4620rm -rf conftest.dSYM
4621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4622      conftest$ac_exeext conftest.$ac_ext
4623     ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629fi
4630{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4631$as_echo "$lt_cv_cc_needs_belf" >&6; }
4632  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4633    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4634    CFLAGS="$SAVE_CFLAGS"
4635  fi
4636  ;;
4637sparc*-*solaris*)
4638  # Find out which ABI we are using.
4639  echo 'int i;' > conftest.$ac_ext
4640  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641  (eval $ac_compile) 2>&5
4642  ac_status=$?
4643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; then
4645    case `/usr/bin/file conftest.o` in
4646    *64-bit*)
4647      case $lt_cv_prog_gnu_ld in
4648      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4649      *)
4650        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4651	  LD="${LD-ld} -64"
4652	fi
4653	;;
4654      esac
4655      ;;
4656    esac
4657  fi
4658  rm -rf conftest*
4659  ;;
4660
4661
4662esac
4663
4664need_locks="$enable_libtool_lock"
4665
4666
4667ac_ext=c
4668ac_cpp='$CPP $CPPFLAGS'
4669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4673$as_echo_n "checking how to run the C preprocessor... " >&6; }
4674# On Suns, sometimes $CPP names a directory.
4675if test -n "$CPP" && test -d "$CPP"; then
4676  CPP=
4677fi
4678if test -z "$CPP"; then
4679  if test "${ac_cv_prog_CPP+set}" = set; then
4680  $as_echo_n "(cached) " >&6
4681else
4682      # Double quotes because CPP needs to be expanded
4683    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4684    do
4685      ac_preproc_ok=false
4686for ac_c_preproc_warn_flag in '' yes
4687do
4688  # Use a header file that comes with gcc, so configuring glibc
4689  # with a fresh cross-compiler works.
4690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691  # <limits.h> exists even on freestanding compilers.
4692  # On the NeXT, cc -E runs the code through the compiler's parser,
4693  # not just through cpp. "Syntax error" is here to catch this case.
4694  cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
4705		     Syntax error
4706_ACEOF
4707if { (ac_try="$ac_cpp conftest.$ac_ext"
4708case "(($ac_try" in
4709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710  *) ac_try_echo=$ac_try;;
4711esac
4712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713$as_echo "$ac_try_echo") >&5
4714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715  ac_status=$?
4716  grep -v '^ *+' conftest.er1 >conftest.err
4717  rm -f conftest.er1
4718  cat conftest.err >&5
4719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); } >/dev/null && {
4721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722	 test ! -s conftest.err
4723       }; then
4724  :
4725else
4726  $as_echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729  # Broken: fails on valid input.
4730continue
4731fi
4732
4733rm -f conftest.err conftest.$ac_ext
4734
4735  # OK, works on sane cases.  Now check whether nonexistent headers
4736  # can be detected and how.
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <ac_nonexistent.h>
4744_ACEOF
4745if { (ac_try="$ac_cpp conftest.$ac_ext"
4746case "(($ac_try" in
4747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748  *) ac_try_echo=$ac_try;;
4749esac
4750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751$as_echo "$ac_try_echo") >&5
4752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } >/dev/null && {
4759	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760	 test ! -s conftest.err
4761       }; then
4762  # Broken: success on invalid input.
4763continue
4764else
4765  $as_echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768  # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
4772
4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779  break
4780fi
4781
4782    done
4783    ac_cv_prog_CPP=$CPP
4784
4785fi
4786  CPP=$ac_cv_prog_CPP
4787else
4788  ac_cv_prog_CPP=$CPP
4789fi
4790{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4791$as_echo "$CPP" >&6; }
4792ac_preproc_ok=false
4793for ac_c_preproc_warn_flag in '' yes
4794do
4795  # Use a header file that comes with gcc, so configuring glibc
4796  # with a fresh cross-compiler works.
4797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798  # <limits.h> exists even on freestanding compilers.
4799  # On the NeXT, cc -E runs the code through the compiler's parser,
4800  # not just through cpp. "Syntax error" is here to catch this case.
4801  cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h.  */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h.  */
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
4812		     Syntax error
4813_ACEOF
4814if { (ac_try="$ac_cpp conftest.$ac_ext"
4815case "(($ac_try" in
4816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817  *) ac_try_echo=$ac_try;;
4818esac
4819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4820$as_echo "$ac_try_echo") >&5
4821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822  ac_status=$?
4823  grep -v '^ *+' conftest.er1 >conftest.err
4824  rm -f conftest.er1
4825  cat conftest.err >&5
4826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } >/dev/null && {
4828	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4829	 test ! -s conftest.err
4830       }; then
4831  :
4832else
4833  $as_echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836  # Broken: fails on valid input.
4837continue
4838fi
4839
4840rm -f conftest.err conftest.$ac_ext
4841
4842  # OK, works on sane cases.  Now check whether nonexistent headers
4843  # can be detected and how.
4844  cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h.  */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h.  */
4850#include <ac_nonexistent.h>
4851_ACEOF
4852if { (ac_try="$ac_cpp conftest.$ac_ext"
4853case "(($ac_try" in
4854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855  *) ac_try_echo=$ac_try;;
4856esac
4857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858$as_echo "$ac_try_echo") >&5
4859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860  ac_status=$?
4861  grep -v '^ *+' conftest.er1 >conftest.err
4862  rm -f conftest.er1
4863  cat conftest.err >&5
4864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } >/dev/null && {
4866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867	 test ! -s conftest.err
4868       }; then
4869  # Broken: success on invalid input.
4870continue
4871else
4872  $as_echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875  # Passes both tests.
4876ac_preproc_ok=:
4877break
4878fi
4879
4880rm -f conftest.err conftest.$ac_ext
4881
4882done
4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884rm -f conftest.err conftest.$ac_ext
4885if $ac_preproc_ok; then
4886  :
4887else
4888  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4890{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4891See \`config.log' for more details." >&5
4892$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4893See \`config.log' for more details." >&2;}
4894   { (exit 1); exit 1; }; }; }
4895fi
4896
4897ac_ext=c
4898ac_cpp='$CPP $CPPFLAGS'
4899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
4903
4904{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4905$as_echo_n "checking for ANSI C header files... " >&6; }
4906if test "${ac_cv_header_stdc+set}" = set; then
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#include <stdlib.h>
4916#include <stdarg.h>
4917#include <string.h>
4918#include <float.h>
4919
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935$as_echo "$ac_try_echo") >&5
4936  (eval "$ac_compile") 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } && {
4943	 test -z "$ac_c_werror_flag" ||
4944	 test ! -s conftest.err
4945       } && test -s conftest.$ac_objext; then
4946  ac_cv_header_stdc=yes
4947else
4948  $as_echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951	ac_cv_header_stdc=no
4952fi
4953
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
4956if test $ac_cv_header_stdc = yes; then
4957  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958  cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <string.h>
4965
4966_ACEOF
4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968  $EGREP "memchr" >/dev/null 2>&1; then
4969  :
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f conftest*
4974
4975fi
4976
4977if test $ac_cv_header_stdc = yes; then
4978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4979  cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h.  */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h.  */
4985#include <stdlib.h>
4986
4987_ACEOF
4988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989  $EGREP "free" >/dev/null 2>&1; then
4990  :
4991else
4992  ac_cv_header_stdc=no
4993fi
4994rm -f conftest*
4995
4996fi
4997
4998if test $ac_cv_header_stdc = yes; then
4999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5000  if test "$cross_compiling" = yes; then
5001  :
5002else
5003  cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h.  */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h.  */
5009#include <ctype.h>
5010#include <stdlib.h>
5011#if ((' ' & 0x0FF) == 0x020)
5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014#else
5015# define ISLOWER(c) \
5016		   (('a' <= (c) && (c) <= 'i') \
5017		     || ('j' <= (c) && (c) <= 'r') \
5018		     || ('s' <= (c) && (c) <= 'z'))
5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020#endif
5021
5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023int
5024main ()
5025{
5026  int i;
5027  for (i = 0; i < 256; i++)
5028    if (XOR (islower (i), ISLOWER (i))
5029	|| toupper (i) != TOUPPER (i))
5030      return 2;
5031  return 0;
5032}
5033_ACEOF
5034rm -f conftest$ac_exeext
5035if { (ac_try="$ac_link"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041$as_echo "$ac_try_echo") >&5
5042  (eval "$ac_link") 2>&5
5043  ac_status=$?
5044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5046  { (case "(($ac_try" in
5047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048  *) ac_try_echo=$ac_try;;
5049esac
5050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051$as_echo "$ac_try_echo") >&5
5052  (eval "$ac_try") 2>&5
5053  ac_status=$?
5054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; }; then
5056  :
5057else
5058  $as_echo "$as_me: program exited with status $ac_status" >&5
5059$as_echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062( exit $ac_status )
5063ac_cv_header_stdc=no
5064fi
5065rm -rf conftest.dSYM
5066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067fi
5068
5069
5070fi
5071fi
5072{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073$as_echo "$ac_cv_header_stdc" >&6; }
5074if test $ac_cv_header_stdc = yes; then
5075
5076cat >>confdefs.h <<\_ACEOF
5077#define STDC_HEADERS 1
5078_ACEOF
5079
5080fi
5081
5082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093		  inttypes.h stdint.h unistd.h
5094do
5095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5097$as_echo_n "checking for $ac_header... " >&6; }
5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107$ac_includes_default
5108
5109#include <$ac_header>
5110_ACEOF
5111rm -f conftest.$ac_objext
5112if { (ac_try="$ac_compile"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118$as_echo "$ac_try_echo") >&5
5119  (eval "$ac_compile") 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } && {
5126	 test -z "$ac_c_werror_flag" ||
5127	 test ! -s conftest.err
5128       } && test -s conftest.$ac_objext; then
5129  eval "$as_ac_Header=yes"
5130else
5131  $as_echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134	eval "$as_ac_Header=no"
5135fi
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139ac_res=`eval 'as_val=${'$as_ac_Header'}
5140		 $as_echo "$as_val"'`
5141	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5142$as_echo "$ac_res" >&6; }
5143as_val=`eval 'as_val=${'$as_ac_Header'}
5144		 $as_echo "$as_val"'`
5145   if test "x$as_val" = x""yes; then
5146  cat >>confdefs.h <<_ACEOF
5147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148_ACEOF
5149
5150fi
5151
5152done
5153
5154
5155
5156for ac_header in dlfcn.h
5157do
5158as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5160  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5161$as_echo_n "checking for $ac_header... " >&6; }
5162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5163  $as_echo_n "(cached) " >&6
5164fi
5165ac_res=`eval 'as_val=${'$as_ac_Header'}
5166		 $as_echo "$as_val"'`
5167	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5168$as_echo "$ac_res" >&6; }
5169else
5170  # Is the header compilable?
5171{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5172$as_echo_n "checking $ac_header usability... " >&6; }
5173cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179$ac_includes_default
5180#include <$ac_header>
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (ac_try="$ac_compile"
5184case "(($ac_try" in
5185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186  *) ac_try_echo=$ac_try;;
5187esac
5188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189$as_echo "$ac_try_echo") >&5
5190  (eval "$ac_compile") 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } && {
5197	 test -z "$ac_c_werror_flag" ||
5198	 test ! -s conftest.err
5199       } && test -s conftest.$ac_objext; then
5200  ac_header_compiler=yes
5201else
5202  $as_echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205	ac_header_compiler=no
5206fi
5207
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210$as_echo "$ac_header_compiler" >&6; }
5211
5212# Is the header present?
5213{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5214$as_echo_n "checking $ac_header presence... " >&6; }
5215cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#include <$ac_header>
5222_ACEOF
5223if { (ac_try="$ac_cpp conftest.$ac_ext"
5224case "(($ac_try" in
5225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226  *) ac_try_echo=$ac_try;;
5227esac
5228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229$as_echo "$ac_try_echo") >&5
5230  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } >/dev/null && {
5237	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238	 test ! -s conftest.err
5239       }; then
5240  ac_header_preproc=yes
5241else
5242  $as_echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245  ac_header_preproc=no
5246fi
5247
5248rm -f conftest.err conftest.$ac_ext
5249{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250$as_echo "$ac_header_preproc" >&6; }
5251
5252# So?  What about this header?
5253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254  yes:no: )
5255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5256$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5258$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5259    ac_header_preproc=yes
5260    ;;
5261  no:yes:* )
5262    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5263$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5264    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5265$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5266    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5267$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5268    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5269$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5270    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5271$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5272    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5273$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5274    ( cat <<\_ASBOX
5275## ---------------------------------------------------------------------- ##
5276## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5277## ---------------------------------------------------------------------- ##
5278_ASBOX
5279     ) | sed "s/^/$as_me: WARNING:     /" >&2
5280    ;;
5281esac
5282{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5283$as_echo_n "checking for $ac_header... " >&6; }
5284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5285  $as_echo_n "(cached) " >&6
5286else
5287  eval "$as_ac_Header=\$ac_header_preproc"
5288fi
5289ac_res=`eval 'as_val=${'$as_ac_Header'}
5290		 $as_echo "$as_val"'`
5291	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5292$as_echo "$ac_res" >&6; }
5293
5294fi
5295as_val=`eval 'as_val=${'$as_ac_Header'}
5296		 $as_echo "$as_val"'`
5297   if test "x$as_val" = x""yes; then
5298  cat >>confdefs.h <<_ACEOF
5299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300_ACEOF
5301
5302fi
5303
5304done
5305
5306ac_ext=cpp
5307ac_cpp='$CXXCPP $CPPFLAGS'
5308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311if test -z "$CXX"; then
5312  if test -n "$CCC"; then
5313    CXX=$CCC
5314  else
5315    if test -n "$ac_tool_prefix"; then
5316  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317  do
5318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_prog_CXX+set}" = set; then
5323  $as_echo_n "(cached) " >&6
5324else
5325  if test -n "$CXX"; then
5326  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333  for ac_exec_ext in '' $ac_executable_extensions; do
5334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345CXX=$ac_cv_prog_CXX
5346if test -n "$CXX"; then
5347  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5348$as_echo "$CXX" >&6; }
5349else
5350  { $as_echo "$as_me:$LINENO: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354
5355    test -n "$CXX" && break
5356  done
5357fi
5358if test -z "$CXX"; then
5359  ac_ct_CXX=$CXX
5360  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361do
5362  # Extract the first word of "$ac_prog", so it can be a program name with args.
5363set dummy $ac_prog; ac_word=$2
5364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5367  $as_echo_n "(cached) " >&6
5368else
5369  if test -n "$ac_ct_CXX"; then
5370  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_prog_ac_ct_CXX="$ac_prog"
5380    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390if test -n "$ac_ct_CXX"; then
5391  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5392$as_echo "$ac_ct_CXX" >&6; }
5393else
5394  { $as_echo "$as_me:$LINENO: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398
5399  test -n "$ac_ct_CXX" && break
5400done
5401
5402  if test "x$ac_ct_CXX" = x; then
5403    CXX="g++"
5404  else
5405    case $cross_compiling:$ac_tool_warned in
5406yes:)
5407{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409ac_tool_warned=yes ;;
5410esac
5411    CXX=$ac_ct_CXX
5412  fi
5413fi
5414
5415  fi
5416fi
5417# Provide some information about the compiler.
5418$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5419set X $ac_compile
5420ac_compiler=$2
5421{ (ac_try="$ac_compiler --version >&5"
5422case "(($ac_try" in
5423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424  *) ac_try_echo=$ac_try;;
5425esac
5426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427$as_echo "$ac_try_echo") >&5
5428  (eval "$ac_compiler --version >&5") 2>&5
5429  ac_status=$?
5430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }
5432{ (ac_try="$ac_compiler -v >&5"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438$as_echo "$ac_try_echo") >&5
5439  (eval "$ac_compiler -v >&5") 2>&5
5440  ac_status=$?
5441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); }
5443{ (ac_try="$ac_compiler -V >&5"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5449$as_echo "$ac_try_echo") >&5
5450  (eval "$ac_compiler -V >&5") 2>&5
5451  ac_status=$?
5452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }
5454
5455{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5456$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5457if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5458  $as_echo_n "(cached) " >&6
5459else
5460  cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h.  */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h.  */
5466
5467int
5468main ()
5469{
5470#ifndef __GNUC__
5471       choke me
5472#endif
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485$as_echo "$ac_try_echo") >&5
5486  (eval "$ac_compile") 2>conftest.er1
5487  ac_status=$?
5488  grep -v '^ *+' conftest.er1 >conftest.err
5489  rm -f conftest.er1
5490  cat conftest.err >&5
5491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); } && {
5493	 test -z "$ac_cxx_werror_flag" ||
5494	 test ! -s conftest.err
5495       } && test -s conftest.$ac_objext; then
5496  ac_compiler_gnu=yes
5497else
5498  $as_echo "$as_me: failed program was:" >&5
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
5501	ac_compiler_gnu=no
5502fi
5503
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5506
5507fi
5508{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5509$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5510if test $ac_compiler_gnu = yes; then
5511  GXX=yes
5512else
5513  GXX=
5514fi
5515ac_test_CXXFLAGS=${CXXFLAGS+set}
5516ac_save_CXXFLAGS=$CXXFLAGS
5517{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5518$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5519if test "${ac_cv_prog_cxx_g+set}" = set; then
5520  $as_echo_n "(cached) " >&6
5521else
5522  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5523   ac_cxx_werror_flag=yes
5524   ac_cv_prog_cxx_g=no
5525   CXXFLAGS="-g"
5526   cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h.  */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h.  */
5532
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545  *) ac_try_echo=$ac_try;;
5546esac
5547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548$as_echo "$ac_try_echo") >&5
5549  (eval "$ac_compile") 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } && {
5556	 test -z "$ac_cxx_werror_flag" ||
5557	 test ! -s conftest.err
5558       } && test -s conftest.$ac_objext; then
5559  ac_cv_prog_cxx_g=yes
5560else
5561  $as_echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564	CXXFLAGS=""
5565      cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h.  */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h.  */
5571
5572int
5573main ()
5574{
5575
5576  ;
5577  return 0;
5578}
5579_ACEOF
5580rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584  *) ac_try_echo=$ac_try;;
5585esac
5586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587$as_echo "$ac_try_echo") >&5
5588  (eval "$ac_compile") 2>conftest.er1
5589  ac_status=$?
5590  grep -v '^ *+' conftest.er1 >conftest.err
5591  rm -f conftest.er1
5592  cat conftest.err >&5
5593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && {
5595	 test -z "$ac_cxx_werror_flag" ||
5596	 test ! -s conftest.err
5597       } && test -s conftest.$ac_objext; then
5598  :
5599else
5600  $as_echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5604	 CXXFLAGS="-g"
5605	 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
5628  (eval "$ac_compile") 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } && {
5635	 test -z "$ac_cxx_werror_flag" ||
5636	 test ! -s conftest.err
5637       } && test -s conftest.$ac_objext; then
5638  ac_cv_prog_cxx_g=yes
5639else
5640  $as_echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647fi
5648
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654fi
5655{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5656$as_echo "$ac_cv_prog_cxx_g" >&6; }
5657if test "$ac_test_CXXFLAGS" = set; then
5658  CXXFLAGS=$ac_save_CXXFLAGS
5659elif test $ac_cv_prog_cxx_g = yes; then
5660  if test "$GXX" = yes; then
5661    CXXFLAGS="-g -O2"
5662  else
5663    CXXFLAGS="-g"
5664  fi
5665else
5666  if test "$GXX" = yes; then
5667    CXXFLAGS="-O2"
5668  else
5669    CXXFLAGS=
5670  fi
5671fi
5672ac_ext=cpp
5673ac_cpp='$CXXCPP $CPPFLAGS'
5674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677
5678depcc="$CXX"  am_compiler_list=
5679
5680{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5681$as_echo_n "checking dependency style of $depcc... " >&6; }
5682if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5683  $as_echo_n "(cached) " >&6
5684else
5685  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5686  # We make a subdir and do the tests there.  Otherwise we can end up
5687  # making bogus files that we don't know about and never remove.  For
5688  # instance it was reported that on HP-UX the gcc test will end up
5689  # making a dummy file named `D' -- because `-MD' means `put the output
5690  # in D'.
5691  mkdir conftest.dir
5692  # Copy depcomp to subdir because otherwise we won't find it if we're
5693  # using a relative directory.
5694  cp "$am_depcomp" conftest.dir
5695  cd conftest.dir
5696  # We will build objects and dependencies in a subdirectory because
5697  # it helps to detect inapplicable dependency modes.  For instance
5698  # both Tru64's cc and ICC support -MD to output dependencies as a
5699  # side effect of compilation, but ICC will put the dependencies in
5700  # the current directory while Tru64 will put them in the object
5701  # directory.
5702  mkdir sub
5703
5704  am_cv_CXX_dependencies_compiler_type=none
5705  if test "$am_compiler_list" = ""; then
5706     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5707  fi
5708  for depmode in $am_compiler_list; do
5709    # Setup a source with many dependencies, because some compilers
5710    # like to wrap large dependency lists on column 80 (with \), and
5711    # we should not choose a depcomp mode which is confused by this.
5712    #
5713    # We need to recreate these files for each test, as the compiler may
5714    # overwrite some of them when testing with obscure command lines.
5715    # This happens at least with the AIX C compiler.
5716    : > sub/conftest.c
5717    for i in 1 2 3 4 5 6; do
5718      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5719      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5720      # Solaris 8's {/usr,}/bin/sh.
5721      touch sub/conftst$i.h
5722    done
5723    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5724
5725    case $depmode in
5726    nosideeffect)
5727      # after this tag, mechanisms are not by side-effect, so they'll
5728      # only be used when explicitly requested
5729      if test "x$enable_dependency_tracking" = xyes; then
5730	continue
5731      else
5732	break
5733      fi
5734      ;;
5735    none) break ;;
5736    esac
5737    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5738    # mode.  It turns out that the SunPro C++ compiler does not properly
5739    # handle `-M -o', and we need to detect this.
5740    if depmode=$depmode \
5741       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5742       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5743       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5744         >/dev/null 2>conftest.err &&
5745       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5746       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5747       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5748       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5749      # icc doesn't choke on unknown options, it will just issue warnings
5750      # or remarks (even with -Werror).  So we grep stderr for any message
5751      # that says an option was ignored or not supported.
5752      # When given -MP, icc 7.0 and 7.1 complain thusly:
5753      #   icc: Command line warning: ignoring option '-M'; no argument required
5754      # The diagnosis changed in icc 8.0:
5755      #   icc: Command line remark: option '-MP' not supported
5756      if (grep 'ignoring option' conftest.err ||
5757          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5758        am_cv_CXX_dependencies_compiler_type=$depmode
5759        break
5760      fi
5761    fi
5762  done
5763
5764  cd ..
5765  rm -rf conftest.dir
5766else
5767  am_cv_CXX_dependencies_compiler_type=none
5768fi
5769
5770fi
5771{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5772$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5773CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774
5775 if
5776  test "x$enable_dependency_tracking" != xno \
5777  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5778  am__fastdepCXX_TRUE=
5779  am__fastdepCXX_FALSE='#'
5780else
5781  am__fastdepCXX_TRUE='#'
5782  am__fastdepCXX_FALSE=
5783fi
5784
5785
5786
5787
5788if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5789    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5790    (test "X$CXX" != "Xg++"))) ; then
5791  ac_ext=cpp
5792ac_cpp='$CXXCPP $CPPFLAGS'
5793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5796{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5797$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5798if test -z "$CXXCPP"; then
5799  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5800  $as_echo_n "(cached) " >&6
5801else
5802      # Double quotes because CXXCPP needs to be expanded
5803    for CXXCPP in "$CXX -E" "/lib/cpp"
5804    do
5805      ac_preproc_ok=false
5806for ac_cxx_preproc_warn_flag in '' yes
5807do
5808  # Use a header file that comes with gcc, so configuring glibc
5809  # with a fresh cross-compiler works.
5810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811  # <limits.h> exists even on freestanding compilers.
5812  # On the NeXT, cc -E runs the code through the compiler's parser,
5813  # not just through cpp. "Syntax error" is here to catch this case.
5814  cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h.  */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h.  */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825		     Syntax error
5826_ACEOF
5827if { (ac_try="$ac_cpp conftest.$ac_ext"
5828case "(($ac_try" in
5829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830  *) ac_try_echo=$ac_try;;
5831esac
5832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833$as_echo "$ac_try_echo") >&5
5834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835  ac_status=$?
5836  grep -v '^ *+' conftest.er1 >conftest.err
5837  rm -f conftest.er1
5838  cat conftest.err >&5
5839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); } >/dev/null && {
5841	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842	 test ! -s conftest.err
5843       }; then
5844  :
5845else
5846  $as_echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849  # Broken: fails on valid input.
5850continue
5851fi
5852
5853rm -f conftest.err conftest.$ac_ext
5854
5855  # OK, works on sane cases.  Now check whether nonexistent headers
5856  # can be detected and how.
5857  cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h.  */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h.  */
5863#include <ac_nonexistent.h>
5864_ACEOF
5865if { (ac_try="$ac_cpp conftest.$ac_ext"
5866case "(($ac_try" in
5867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868  *) ac_try_echo=$ac_try;;
5869esac
5870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871$as_echo "$ac_try_echo") >&5
5872  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873  ac_status=$?
5874  grep -v '^ *+' conftest.er1 >conftest.err
5875  rm -f conftest.er1
5876  cat conftest.err >&5
5877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); } >/dev/null && {
5879	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880	 test ! -s conftest.err
5881       }; then
5882  # Broken: success on invalid input.
5883continue
5884else
5885  $as_echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888  # Passes both tests.
5889ac_preproc_ok=:
5890break
5891fi
5892
5893rm -f conftest.err conftest.$ac_ext
5894
5895done
5896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897rm -f conftest.err conftest.$ac_ext
5898if $ac_preproc_ok; then
5899  break
5900fi
5901
5902    done
5903    ac_cv_prog_CXXCPP=$CXXCPP
5904
5905fi
5906  CXXCPP=$ac_cv_prog_CXXCPP
5907else
5908  ac_cv_prog_CXXCPP=$CXXCPP
5909fi
5910{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911$as_echo "$CXXCPP" >&6; }
5912ac_preproc_ok=false
5913for ac_cxx_preproc_warn_flag in '' yes
5914do
5915  # Use a header file that comes with gcc, so configuring glibc
5916  # with a fresh cross-compiler works.
5917  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918  # <limits.h> exists even on freestanding compilers.
5919  # On the NeXT, cc -E runs the code through the compiler's parser,
5920  # not just through cpp. "Syntax error" is here to catch this case.
5921  cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h.  */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h.  */
5927#ifdef __STDC__
5928# include <limits.h>
5929#else
5930# include <assert.h>
5931#endif
5932		     Syntax error
5933_ACEOF
5934if { (ac_try="$ac_cpp conftest.$ac_ext"
5935case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
5941  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } >/dev/null && {
5948	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949	 test ! -s conftest.err
5950       }; then
5951  :
5952else
5953  $as_echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956  # Broken: fails on valid input.
5957continue
5958fi
5959
5960rm -f conftest.err conftest.$ac_ext
5961
5962  # OK, works on sane cases.  Now check whether nonexistent headers
5963  # can be detected and how.
5964  cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970#include <ac_nonexistent.h>
5971_ACEOF
5972if { (ac_try="$ac_cpp conftest.$ac_ext"
5973case "(($ac_try" in
5974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975  *) ac_try_echo=$ac_try;;
5976esac
5977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978$as_echo "$ac_try_echo") >&5
5979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5980  ac_status=$?
5981  grep -v '^ *+' conftest.er1 >conftest.err
5982  rm -f conftest.er1
5983  cat conftest.err >&5
5984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } >/dev/null && {
5986	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5987	 test ! -s conftest.err
5988       }; then
5989  # Broken: success on invalid input.
5990continue
5991else
5992  $as_echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995  # Passes both tests.
5996ac_preproc_ok=:
5997break
5998fi
5999
6000rm -f conftest.err conftest.$ac_ext
6001
6002done
6003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6004rm -f conftest.err conftest.$ac_ext
6005if $ac_preproc_ok; then
6006  :
6007else
6008  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6011See \`config.log' for more details." >&5
6012$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6013See \`config.log' for more details." >&2;}
6014   { (exit 1); exit 1; }; }; }
6015fi
6016
6017ac_ext=cpp
6018ac_cpp='$CXXCPP $CPPFLAGS'
6019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022
6023fi
6024
6025
6026ac_ext=f
6027ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6028ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6030if test -n "$ac_tool_prefix"; then
6031  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
6032  do
6033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6036$as_echo_n "checking for $ac_word... " >&6; }
6037if test "${ac_cv_prog_F77+set}" = set; then
6038  $as_echo_n "(cached) " >&6
6039else
6040  if test -n "$F77"; then
6041  ac_cv_prog_F77="$F77" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  test -z "$as_dir" && as_dir=.
6048  for ac_exec_ext in '' $ac_executable_extensions; do
6049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6051    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052    break 2
6053  fi
6054done
6055done
6056IFS=$as_save_IFS
6057
6058fi
6059fi
6060F77=$ac_cv_prog_F77
6061if test -n "$F77"; then
6062  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6063$as_echo "$F77" >&6; }
6064else
6065  { $as_echo "$as_me:$LINENO: result: no" >&5
6066$as_echo "no" >&6; }
6067fi
6068
6069
6070    test -n "$F77" && break
6071  done
6072fi
6073if test -z "$F77"; then
6074  ac_ct_F77=$F77
6075  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
6076do
6077  # Extract the first word of "$ac_prog", so it can be a program name with args.
6078set dummy $ac_prog; ac_word=$2
6079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$ac_ct_F77"; then
6085  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092  for ac_exec_ext in '' $ac_executable_extensions; do
6093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094    ac_cv_prog_ac_ct_F77="$ac_prog"
6095    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104ac_ct_F77=$ac_cv_prog_ac_ct_F77
6105if test -n "$ac_ct_F77"; then
6106  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6107$as_echo "$ac_ct_F77" >&6; }
6108else
6109  { $as_echo "$as_me:$LINENO: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114  test -n "$ac_ct_F77" && break
6115done
6116
6117  if test "x$ac_ct_F77" = x; then
6118    F77=""
6119  else
6120    case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126    F77=$ac_ct_F77
6127  fi
6128fi
6129
6130
6131# Provide some information about the compiler.
6132$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6133set X $ac_compile
6134ac_compiler=$2
6135{ (ac_try="$ac_compiler --version >&5"
6136case "(($ac_try" in
6137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138  *) ac_try_echo=$ac_try;;
6139esac
6140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6141$as_echo "$ac_try_echo") >&5
6142  (eval "$ac_compiler --version >&5") 2>&5
6143  ac_status=$?
6144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }
6146{ (ac_try="$ac_compiler -v >&5"
6147case "(($ac_try" in
6148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149  *) ac_try_echo=$ac_try;;
6150esac
6151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6152$as_echo "$ac_try_echo") >&5
6153  (eval "$ac_compiler -v >&5") 2>&5
6154  ac_status=$?
6155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }
6157{ (ac_try="$ac_compiler -V >&5"
6158case "(($ac_try" in
6159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160  *) ac_try_echo=$ac_try;;
6161esac
6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163$as_echo "$ac_try_echo") >&5
6164  (eval "$ac_compiler -V >&5") 2>&5
6165  ac_status=$?
6166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); }
6168rm -f a.out
6169
6170# If we don't use `.F' as extension, the preprocessor is not run on the
6171# input file.  (Note that this only needs to work for GNU compilers.)
6172ac_save_ext=$ac_ext
6173ac_ext=F
6174{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6175$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6176if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat >conftest.$ac_ext <<_ACEOF
6180      program main
6181#ifndef __GNUC__
6182       choke me
6183#endif
6184
6185      end
6186_ACEOF
6187rm -f conftest.$ac_objext
6188if { (ac_try="$ac_compile"
6189case "(($ac_try" in
6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191  *) ac_try_echo=$ac_try;;
6192esac
6193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194$as_echo "$ac_try_echo") >&5
6195  (eval "$ac_compile") 2>conftest.er1
6196  ac_status=$?
6197  grep -v '^ *+' conftest.er1 >conftest.err
6198  rm -f conftest.er1
6199  cat conftest.err >&5
6200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); } && {
6202	 test -z "$ac_f77_werror_flag" ||
6203	 test ! -s conftest.err
6204       } && test -s conftest.$ac_objext; then
6205  ac_compiler_gnu=yes
6206else
6207  $as_echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210	ac_compiler_gnu=no
6211fi
6212
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6215
6216fi
6217{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6218$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6219ac_ext=$ac_save_ext
6220ac_test_FFLAGS=${FFLAGS+set}
6221ac_save_FFLAGS=$FFLAGS
6222FFLAGS=
6223{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6224$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6225if test "${ac_cv_prog_f77_g+set}" = set; then
6226  $as_echo_n "(cached) " >&6
6227else
6228  FFLAGS=-g
6229cat >conftest.$ac_ext <<_ACEOF
6230      program main
6231
6232      end
6233_ACEOF
6234rm -f conftest.$ac_objext
6235if { (ac_try="$ac_compile"
6236case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241$as_echo "$ac_try_echo") >&5
6242  (eval "$ac_compile") 2>conftest.er1
6243  ac_status=$?
6244  grep -v '^ *+' conftest.er1 >conftest.err
6245  rm -f conftest.er1
6246  cat conftest.err >&5
6247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } && {
6249	 test -z "$ac_f77_werror_flag" ||
6250	 test ! -s conftest.err
6251       } && test -s conftest.$ac_objext; then
6252  ac_cv_prog_f77_g=yes
6253else
6254  $as_echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257	ac_cv_prog_f77_g=no
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261
6262fi
6263{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6264$as_echo "$ac_cv_prog_f77_g" >&6; }
6265if test "$ac_test_FFLAGS" = set; then
6266  FFLAGS=$ac_save_FFLAGS
6267elif test $ac_cv_prog_f77_g = yes; then
6268  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6269    FFLAGS="-g -O2"
6270  else
6271    FFLAGS="-g"
6272  fi
6273else
6274  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6275    FFLAGS="-O2"
6276  else
6277    FFLAGS=
6278  fi
6279fi
6280
6281if test $ac_compiler_gnu = yes; then
6282  G77=yes
6283else
6284  G77=
6285fi
6286ac_ext=c
6287ac_cpp='$CPP $CPPFLAGS'
6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292
6293
6294# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6295# find the maximum length of command line arguments
6296{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6297$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6298if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6299  $as_echo_n "(cached) " >&6
6300else
6301    i=0
6302  teststring="ABCD"
6303
6304  case $build_os in
6305  msdosdjgpp*)
6306    # On DJGPP, this test can blow up pretty badly due to problems in libc
6307    # (any single argument exceeding 2000 bytes causes a buffer overrun
6308    # during glob expansion).  Even if it were fixed, the result of this
6309    # check would be larger than it should be.
6310    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6311    ;;
6312
6313  gnu*)
6314    # Under GNU Hurd, this test is not required because there is
6315    # no limit to the length of command line arguments.
6316    # Libtool will interpret -1 as no limit whatsoever
6317    lt_cv_sys_max_cmd_len=-1;
6318    ;;
6319
6320  cygwin* | mingw*)
6321    # On Win9x/ME, this test blows up -- it succeeds, but takes
6322    # about 5 minutes as the teststring grows exponentially.
6323    # Worse, since 9x/ME are not pre-emptively multitasking,
6324    # you end up with a "frozen" computer, even though with patience
6325    # the test eventually succeeds (with a max line length of 256k).
6326    # Instead, let's just punt: use the minimum linelength reported by
6327    # all of the supported platforms: 8192 (on NT/2K/XP).
6328    lt_cv_sys_max_cmd_len=8192;
6329    ;;
6330
6331  amigaos*)
6332    # On AmigaOS with pdksh, this test takes hours, literally.
6333    # So we just punt and use a minimum line length of 8192.
6334    lt_cv_sys_max_cmd_len=8192;
6335    ;;
6336
6337  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6338    # This has been around since 386BSD, at least.  Likely further.
6339    if test -x /sbin/sysctl; then
6340      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6341    elif test -x /usr/sbin/sysctl; then
6342      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6343    else
6344      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6345    fi
6346    # And add a safety zone
6347    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6348    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6349    ;;
6350
6351  interix*)
6352    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6353    lt_cv_sys_max_cmd_len=196608
6354    ;;
6355
6356  osf*)
6357    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6358    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6359    # nice to cause kernel panics so lets avoid the loop below.
6360    # First set a reasonable default.
6361    lt_cv_sys_max_cmd_len=16384
6362    #
6363    if test -x /sbin/sysconfig; then
6364      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6365        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6366      esac
6367    fi
6368    ;;
6369  sco3.2v5*)
6370    lt_cv_sys_max_cmd_len=102400
6371    ;;
6372  sysv5* | sco5v6* | sysv4.2uw2*)
6373    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6374    if test -n "$kargmax"; then
6375      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6376    else
6377      lt_cv_sys_max_cmd_len=32768
6378    fi
6379    ;;
6380  *)
6381    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6382    if test -n "$lt_cv_sys_max_cmd_len"; then
6383      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6384      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6385    else
6386      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6387      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6388	       = "XX$teststring") >/dev/null 2>&1 &&
6389	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6390	      lt_cv_sys_max_cmd_len=$new_result &&
6391	      test $i != 17 # 1/2 MB should be enough
6392      do
6393        i=`expr $i + 1`
6394        teststring=$teststring$teststring
6395      done
6396      teststring=
6397      # Add a significant safety factor because C++ compilers can tack on massive
6398      # amounts of additional arguments before passing them to the linker.
6399      # It appears as though 1/2 is a usable value.
6400      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401    fi
6402    ;;
6403  esac
6404
6405fi
6406
6407if test -n $lt_cv_sys_max_cmd_len ; then
6408  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6409$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410else
6411  { $as_echo "$as_me:$LINENO: result: none" >&5
6412$as_echo "none" >&6; }
6413fi
6414
6415
6416
6417
6418
6419# Check for command to grab the raw symbol name followed by C symbol from nm.
6420{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6421$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6422if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6423  $as_echo_n "(cached) " >&6
6424else
6425
6426# These are sane defaults that work on at least a few old systems.
6427# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6428
6429# Character class describing NM global symbol codes.
6430symcode='[BCDEGRST]'
6431
6432# Regexp to match symbols that can be accessed directly from C.
6433sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6434
6435# Transform an extracted symbol line into a proper C declaration
6436lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6437
6438# Transform an extracted symbol line into symbol name and symbol address
6439lt_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'"
6440
6441# Define system-specific variables.
6442case $host_os in
6443aix*)
6444  symcode='[BCDT]'
6445  ;;
6446cygwin* | mingw* | pw32*)
6447  symcode='[ABCDGISTW]'
6448  ;;
6449hpux*) # Its linker distinguishes data from code symbols
6450  if test "$host_cpu" = ia64; then
6451    symcode='[ABCDEGRST]'
6452  fi
6453  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454  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'"
6455  ;;
6456linux* | k*bsd*-gnu)
6457  if test "$host_cpu" = ia64; then
6458    symcode='[ABCDGIRSTW]'
6459    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460    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'"
6461  fi
6462  ;;
6463irix* | nonstopux*)
6464  symcode='[BCDEGRST]'
6465  ;;
6466osf*)
6467  symcode='[BCDEGQRST]'
6468  ;;
6469solaris*)
6470  symcode='[BDRT]'
6471  ;;
6472sco3.2v5*)
6473  symcode='[DT]'
6474  ;;
6475sysv4.2uw2*)
6476  symcode='[DT]'
6477  ;;
6478sysv5* | sco5v6* | unixware* | OpenUNIX*)
6479  symcode='[ABDT]'
6480  ;;
6481sysv4)
6482  symcode='[DFNSTU]'
6483  ;;
6484esac
6485
6486# Handle CRLF in mingw tool chain
6487opt_cr=
6488case $build_os in
6489mingw*)
6490  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6491  ;;
6492esac
6493
6494# If we're using GNU nm, then use its standard symbol codes.
6495case `$NM -V 2>&1` in
6496*GNU* | *'with BFD'*)
6497  symcode='[ABCDGIRSTW]' ;;
6498esac
6499
6500# Try without a prefix undercore, then with it.
6501for ac_symprfx in "" "_"; do
6502
6503  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6504  symxfrm="\\1 $ac_symprfx\\2 \\2"
6505
6506  # Write the raw and C identifiers.
6507  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6508
6509  # Check to see that the pipe works correctly.
6510  pipe_works=no
6511
6512  rm -f conftest*
6513  cat > conftest.$ac_ext <<EOF
6514#ifdef __cplusplus
6515extern "C" {
6516#endif
6517char nm_test_var;
6518void nm_test_func(){}
6519#ifdef __cplusplus
6520}
6521#endif
6522int main(){nm_test_var='a';nm_test_func();return(0);}
6523EOF
6524
6525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526  (eval $ac_compile) 2>&5
6527  ac_status=$?
6528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; then
6530    # Now try to grab the symbols.
6531    nlist=conftest.nm
6532    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6533  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } && test -s "$nlist"; then
6537      # Try sorting and uniquifying the output.
6538      if sort "$nlist" | uniq > "$nlist"T; then
6539	mv -f "$nlist"T "$nlist"
6540      else
6541	rm -f "$nlist"T
6542      fi
6543
6544      # Make sure that we snagged all the symbols we need.
6545      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6546	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6547	  cat <<EOF > conftest.$ac_ext
6548#ifdef __cplusplus
6549extern "C" {
6550#endif
6551
6552EOF
6553	  # Now generate the symbol file.
6554	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6555
6556	  cat <<EOF >> conftest.$ac_ext
6557#if defined (__STDC__) && __STDC__
6558# define lt_ptr_t void *
6559#else
6560# define lt_ptr_t char *
6561# define const
6562#endif
6563
6564/* The mapping between symbol names and symbols. */
6565const struct {
6566  const char *name;
6567  lt_ptr_t address;
6568}
6569lt_preloaded_symbols[] =
6570{
6571EOF
6572	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6573	  cat <<\EOF >> conftest.$ac_ext
6574  {0, (lt_ptr_t) 0}
6575};
6576
6577#ifdef __cplusplus
6578}
6579#endif
6580EOF
6581	  # Now try linking the two files.
6582	  mv conftest.$ac_objext conftstm.$ac_objext
6583	  lt_save_LIBS="$LIBS"
6584	  lt_save_CFLAGS="$CFLAGS"
6585	  LIBS="conftstm.$ac_objext"
6586	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588  (eval $ac_link) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6592	    pipe_works=yes
6593	  fi
6594	  LIBS="$lt_save_LIBS"
6595	  CFLAGS="$lt_save_CFLAGS"
6596	else
6597	  echo "cannot find nm_test_func in $nlist" >&5
6598	fi
6599      else
6600	echo "cannot find nm_test_var in $nlist" >&5
6601      fi
6602    else
6603      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604    fi
6605  else
6606    echo "$progname: failed program was:" >&5
6607    cat conftest.$ac_ext >&5
6608  fi
6609  rm -rf conftest* conftst*
6610
6611  # Do not use the global_symbol_pipe unless it works.
6612  if test "$pipe_works" = yes; then
6613    break
6614  else
6615    lt_cv_sys_global_symbol_pipe=
6616  fi
6617done
6618
6619fi
6620
6621if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622  lt_cv_sys_global_symbol_to_cdecl=
6623fi
6624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625  { $as_echo "$as_me:$LINENO: result: failed" >&5
6626$as_echo "failed" >&6; }
6627else
6628  { $as_echo "$as_me:$LINENO: result: ok" >&5
6629$as_echo "ok" >&6; }
6630fi
6631
6632{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6633$as_echo_n "checking for objdir... " >&6; }
6634if test "${lt_cv_objdir+set}" = set; then
6635  $as_echo_n "(cached) " >&6
6636else
6637  rm -f .libs 2>/dev/null
6638mkdir .libs 2>/dev/null
6639if test -d .libs; then
6640  lt_cv_objdir=.libs
6641else
6642  # MS-DOS does not allow filenames that begin with a dot.
6643  lt_cv_objdir=_libs
6644fi
6645rmdir .libs 2>/dev/null
6646fi
6647{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6648$as_echo "$lt_cv_objdir" >&6; }
6649objdir=$lt_cv_objdir
6650
6651
6652
6653
6654
6655case $host_os in
6656aix3*)
6657  # AIX sometimes has problems with the GCC collect2 program.  For some
6658  # reason, if we set the COLLECT_NAMES environment variable, the problems
6659  # vanish in a puff of smoke.
6660  if test "X${COLLECT_NAMES+set}" != Xset; then
6661    COLLECT_NAMES=
6662    export COLLECT_NAMES
6663  fi
6664  ;;
6665esac
6666
6667# Sed substitution that helps us do robust quoting.  It backslashifies
6668# metacharacters that are still active within double-quoted strings.
6669Xsed='sed -e 1s/^X//'
6670sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6671
6672# Same as above, but do not quote variable references.
6673double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6674
6675# Sed substitution to delay expansion of an escaped shell variable in a
6676# double_quote_subst'ed string.
6677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
6679# Sed substitution to avoid accidental globbing in evaled expressions
6680no_glob_subst='s/\*/\\\*/g'
6681
6682# Constants:
6683rm="rm -f"
6684
6685# Global variables:
6686default_ofile=libtool
6687can_build_shared=yes
6688
6689# All known linkers require a `.a' archive for static linking (except MSVC,
6690# which needs '.lib').
6691libext=a
6692ltmain="$ac_aux_dir/ltmain.sh"
6693ofile="$default_ofile"
6694with_gnu_ld="$lt_cv_prog_gnu_ld"
6695
6696if test -n "$ac_tool_prefix"; then
6697  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6698set dummy ${ac_tool_prefix}ar; ac_word=$2
6699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6700$as_echo_n "checking for $ac_word... " >&6; }
6701if test "${ac_cv_prog_AR+set}" = set; then
6702  $as_echo_n "(cached) " >&6
6703else
6704  if test -n "$AR"; then
6705  ac_cv_prog_AR="$AR" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712  for ac_exec_ext in '' $ac_executable_extensions; do
6713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714    ac_cv_prog_AR="${ac_tool_prefix}ar"
6715    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716    break 2
6717  fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724AR=$ac_cv_prog_AR
6725if test -n "$AR"; then
6726  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6727$as_echo "$AR" >&6; }
6728else
6729  { $as_echo "$as_me:$LINENO: result: no" >&5
6730$as_echo "no" >&6; }
6731fi
6732
6733
6734fi
6735if test -z "$ac_cv_prog_AR"; then
6736  ac_ct_AR=$AR
6737  # Extract the first word of "ar", so it can be a program name with args.
6738set dummy ar; ac_word=$2
6739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6740$as_echo_n "checking for $ac_word... " >&6; }
6741if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6742  $as_echo_n "(cached) " >&6
6743else
6744  if test -n "$ac_ct_AR"; then
6745  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750  IFS=$as_save_IFS
6751  test -z "$as_dir" && as_dir=.
6752  for ac_exec_ext in '' $ac_executable_extensions; do
6753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754    ac_cv_prog_ac_ct_AR="ar"
6755    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756    break 2
6757  fi
6758done
6759done
6760IFS=$as_save_IFS
6761
6762fi
6763fi
6764ac_ct_AR=$ac_cv_prog_ac_ct_AR
6765if test -n "$ac_ct_AR"; then
6766  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6767$as_echo "$ac_ct_AR" >&6; }
6768else
6769  { $as_echo "$as_me:$LINENO: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772
6773  if test "x$ac_ct_AR" = x; then
6774    AR="false"
6775  else
6776    case $cross_compiling:$ac_tool_warned in
6777yes:)
6778{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780ac_tool_warned=yes ;;
6781esac
6782    AR=$ac_ct_AR
6783  fi
6784else
6785  AR="$ac_cv_prog_AR"
6786fi
6787
6788if test -n "$ac_tool_prefix"; then
6789  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if test "${ac_cv_prog_RANLIB+set}" = set; then
6794  $as_echo_n "(cached) " >&6
6795else
6796  if test -n "$RANLIB"; then
6797  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802  IFS=$as_save_IFS
6803  test -z "$as_dir" && as_dir=.
6804  for ac_exec_ext in '' $ac_executable_extensions; do
6805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6807    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808    break 2
6809  fi
6810done
6811done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816RANLIB=$ac_cv_prog_RANLIB
6817if test -n "$RANLIB"; then
6818  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6819$as_echo "$RANLIB" >&6; }
6820else
6821  { $as_echo "$as_me:$LINENO: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_RANLIB"; then
6828  ac_ct_RANLIB=$RANLIB
6829  # Extract the first word of "ranlib", so it can be a program name with args.
6830set dummy ranlib; ac_word=$2
6831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6834  $as_echo_n "(cached) " >&6
6835else
6836  if test -n "$ac_ct_RANLIB"; then
6837  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844  for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_prog_ac_ct_RANLIB="ranlib"
6847    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6857if test -n "$ac_ct_RANLIB"; then
6858  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6859$as_echo "$ac_ct_RANLIB" >&6; }
6860else
6861  { $as_echo "$as_me:$LINENO: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865  if test "x$ac_ct_RANLIB" = x; then
6866    RANLIB=":"
6867  else
6868    case $cross_compiling:$ac_tool_warned in
6869yes:)
6870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874    RANLIB=$ac_ct_RANLIB
6875  fi
6876else
6877  RANLIB="$ac_cv_prog_RANLIB"
6878fi
6879
6880if test -n "$ac_tool_prefix"; then
6881  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}strip; ac_word=$2
6883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if test "${ac_cv_prog_STRIP+set}" = set; then
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$STRIP"; then
6889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896  for ac_exec_ext in '' $ac_executable_extensions; do
6897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908STRIP=$ac_cv_prog_STRIP
6909if test -n "$STRIP"; then
6910  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6911$as_echo "$STRIP" >&6; }
6912else
6913  { $as_echo "$as_me:$LINENO: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_STRIP"; then
6920  ac_ct_STRIP=$STRIP
6921  # Extract the first word of "strip", so it can be a program name with args.
6922set dummy strip; ac_word=$2
6923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$ac_ct_STRIP"; then
6929  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936  for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_prog_ac_ct_STRIP="strip"
6939    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949if test -n "$ac_ct_STRIP"; then
6950  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6951$as_echo "$ac_ct_STRIP" >&6; }
6952else
6953  { $as_echo "$as_me:$LINENO: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957  if test "x$ac_ct_STRIP" = x; then
6958    STRIP=":"
6959  else
6960    case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966    STRIP=$ac_ct_STRIP
6967  fi
6968else
6969  STRIP="$ac_cv_prog_STRIP"
6970fi
6971
6972
6973old_CC="$CC"
6974old_CFLAGS="$CFLAGS"
6975
6976# Set sane defaults for various variables
6977test -z "$AR" && AR=ar
6978test -z "$AR_FLAGS" && AR_FLAGS=cru
6979test -z "$AS" && AS=as
6980test -z "$CC" && CC=cc
6981test -z "$LTCC" && LTCC=$CC
6982test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6983test -z "$DLLTOOL" && DLLTOOL=dlltool
6984test -z "$LD" && LD=ld
6985test -z "$LN_S" && LN_S="ln -s"
6986test -z "$MAGIC_CMD" && MAGIC_CMD=file
6987test -z "$NM" && NM=nm
6988test -z "$SED" && SED=sed
6989test -z "$OBJDUMP" && OBJDUMP=objdump
6990test -z "$RANLIB" && RANLIB=:
6991test -z "$STRIP" && STRIP=:
6992test -z "$ac_objext" && ac_objext=o
6993
6994# Determine commands to create old-style static archives.
6995old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996old_postinstall_cmds='chmod 644 $oldlib'
6997old_postuninstall_cmds=
6998
6999if test -n "$RANLIB"; then
7000  case $host_os in
7001  openbsd*)
7002    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003    ;;
7004  *)
7005    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006    ;;
7007  esac
7008  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009fi
7010
7011for cc_temp in $compiler""; do
7012  case $cc_temp in
7013    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015    \-*) ;;
7016    *) break;;
7017  esac
7018done
7019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7020
7021
7022# Only perform the check for file, if the check method requires it
7023case $deplibs_check_method in
7024file_magic*)
7025  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7026    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029  $as_echo_n "(cached) " >&6
7030else
7031  case $MAGIC_CMD in
7032[\\/*] |  ?:[\\/]*)
7033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034  ;;
7035*)
7036  lt_save_MAGIC_CMD="$MAGIC_CMD"
7037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039  for ac_dir in $ac_dummy; do
7040    IFS="$lt_save_ifs"
7041    test -z "$ac_dir" && ac_dir=.
7042    if test -f $ac_dir/${ac_tool_prefix}file; then
7043      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7044      if test -n "$file_magic_test_file"; then
7045	case $deplibs_check_method in
7046	"file_magic "*)
7047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050	    $EGREP "$file_magic_regex" > /dev/null; then
7051	    :
7052	  else
7053	    cat <<EOF 1>&2
7054
7055*** Warning: the command libtool uses to detect shared libraries,
7056*** $file_magic_cmd, produces output that libtool cannot recognize.
7057*** The result is that libtool may fail to recognize shared libraries
7058*** as such.  This will affect the creation of libtool libraries that
7059*** depend on shared libraries, but programs linked with such libtool
7060*** libraries will work regardless of this problem.  Nevertheless, you
7061*** may want to report the problem to your system manager and/or to
7062*** bug-libtool@gnu.org
7063
7064EOF
7065	  fi ;;
7066	esac
7067      fi
7068      break
7069    fi
7070  done
7071  IFS="$lt_save_ifs"
7072  MAGIC_CMD="$lt_save_MAGIC_CMD"
7073  ;;
7074esac
7075fi
7076
7077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078if test -n "$MAGIC_CMD"; then
7079  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080$as_echo "$MAGIC_CMD" >&6; }
7081else
7082  { $as_echo "$as_me:$LINENO: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085
7086if test -z "$lt_cv_path_MAGIC_CMD"; then
7087  if test -n "$ac_tool_prefix"; then
7088    { $as_echo "$as_me:$LINENO: checking for file" >&5
7089$as_echo_n "checking for file... " >&6; }
7090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091  $as_echo_n "(cached) " >&6
7092else
7093  case $MAGIC_CMD in
7094[\\/*] |  ?:[\\/]*)
7095  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096  ;;
7097*)
7098  lt_save_MAGIC_CMD="$MAGIC_CMD"
7099  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101  for ac_dir in $ac_dummy; do
7102    IFS="$lt_save_ifs"
7103    test -z "$ac_dir" && ac_dir=.
7104    if test -f $ac_dir/file; then
7105      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7106      if test -n "$file_magic_test_file"; then
7107	case $deplibs_check_method in
7108	"file_magic "*)
7109	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112	    $EGREP "$file_magic_regex" > /dev/null; then
7113	    :
7114	  else
7115	    cat <<EOF 1>&2
7116
7117*** Warning: the command libtool uses to detect shared libraries,
7118*** $file_magic_cmd, produces output that libtool cannot recognize.
7119*** The result is that libtool may fail to recognize shared libraries
7120*** as such.  This will affect the creation of libtool libraries that
7121*** depend on shared libraries, but programs linked with such libtool
7122*** libraries will work regardless of this problem.  Nevertheless, you
7123*** may want to report the problem to your system manager and/or to
7124*** bug-libtool@gnu.org
7125
7126EOF
7127	  fi ;;
7128	esac
7129      fi
7130      break
7131    fi
7132  done
7133  IFS="$lt_save_ifs"
7134  MAGIC_CMD="$lt_save_MAGIC_CMD"
7135  ;;
7136esac
7137fi
7138
7139MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140if test -n "$MAGIC_CMD"; then
7141  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142$as_echo "$MAGIC_CMD" >&6; }
7143else
7144  { $as_echo "$as_me:$LINENO: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148  else
7149    MAGIC_CMD=:
7150  fi
7151fi
7152
7153  fi
7154  ;;
7155esac
7156
7157
7158  case $host_os in
7159    rhapsody* | darwin*)
7160    if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$DSYMUTIL"; then
7169  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7179    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188DSYMUTIL=$ac_cv_prog_DSYMUTIL
7189if test -n "$DSYMUTIL"; then
7190  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7191$as_echo "$DSYMUTIL" >&6; }
7192else
7193  { $as_echo "$as_me:$LINENO: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_DSYMUTIL"; then
7200  ac_ct_DSYMUTIL=$DSYMUTIL
7201  # Extract the first word of "dsymutil", so it can be a program name with args.
7202set dummy dsymutil; ac_word=$2
7203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_DSYMUTIL"; then
7209  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216  for ac_exec_ext in '' $ac_executable_extensions; do
7217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7219    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7229if test -n "$ac_ct_DSYMUTIL"; then
7230  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7231$as_echo "$ac_ct_DSYMUTIL" >&6; }
7232else
7233  { $as_echo "$as_me:$LINENO: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_DSYMUTIL" = x; then
7238    DSYMUTIL=":"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    DSYMUTIL=$ac_ct_DSYMUTIL
7247  fi
7248else
7249  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7250fi
7251
7252    if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if test "${ac_cv_prog_NMEDIT+set}" = set; then
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$NMEDIT"; then
7261  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268  for ac_exec_ext in '' $ac_executable_extensions; do
7269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7271    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280NMEDIT=$ac_cv_prog_NMEDIT
7281if test -n "$NMEDIT"; then
7282  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7283$as_echo "$NMEDIT" >&6; }
7284else
7285  { $as_echo "$as_me:$LINENO: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_NMEDIT"; then
7292  ac_ct_NMEDIT=$NMEDIT
7293  # Extract the first word of "nmedit", so it can be a program name with args.
7294set dummy nmedit; ac_word=$2
7295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$ac_ct_NMEDIT"; then
7301  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308  for ac_exec_ext in '' $ac_executable_extensions; do
7309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7311    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7321if test -n "$ac_ct_NMEDIT"; then
7322  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7323$as_echo "$ac_ct_NMEDIT" >&6; }
7324else
7325  { $as_echo "$as_me:$LINENO: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329  if test "x$ac_ct_NMEDIT" = x; then
7330    NMEDIT=":"
7331  else
7332    case $cross_compiling:$ac_tool_warned in
7333yes:)
7334{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    NMEDIT=$ac_ct_NMEDIT
7339  fi
7340else
7341  NMEDIT="$ac_cv_prog_NMEDIT"
7342fi
7343
7344
7345    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7346$as_echo_n "checking for -single_module linker flag... " >&6; }
7347if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7348  $as_echo_n "(cached) " >&6
7349else
7350  lt_cv_apple_cc_single_mod=no
7351      if test -z "${LT_MULTI_MODULE}"; then
7352   # By default we will add the -single_module flag. You can override
7353   # by either setting the environment variable LT_MULTI_MODULE
7354   # non-empty at configure time, or by adding -multi_module to the
7355   # link flags.
7356   echo "int foo(void){return 1;}" > conftest.c
7357   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7358     -dynamiclib ${wl}-single_module conftest.c
7359   if test -f libconftest.dylib; then
7360     lt_cv_apple_cc_single_mod=yes
7361     rm -rf libconftest.dylib*
7362   fi
7363   rm conftest.c
7364      fi
7365fi
7366{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7367$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7368    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7369$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7370if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7371  $as_echo_n "(cached) " >&6
7372else
7373  lt_cv_ld_exported_symbols_list=no
7374      save_LDFLAGS=$LDFLAGS
7375      echo "_main" > conftest.sym
7376      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7377      cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h.  */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h.  */
7383
7384int
7385main ()
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext conftest$ac_exeext
7393if { (ac_try="$ac_link"
7394case "(($ac_try" in
7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396  *) ac_try_echo=$ac_try;;
7397esac
7398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7399$as_echo "$ac_try_echo") >&5
7400  (eval "$ac_link") 2>conftest.er1
7401  ac_status=$?
7402  grep -v '^ *+' conftest.er1 >conftest.err
7403  rm -f conftest.er1
7404  cat conftest.err >&5
7405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); } && {
7407	 test -z "$ac_c_werror_flag" ||
7408	 test ! -s conftest.err
7409       } && test -s conftest$ac_exeext && {
7410	 test "$cross_compiling" = yes ||
7411	 $as_test_x conftest$ac_exeext
7412       }; then
7413  lt_cv_ld_exported_symbols_list=yes
7414else
7415  $as_echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418	lt_cv_ld_exported_symbols_list=no
7419fi
7420
7421rm -rf conftest.dSYM
7422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7423      conftest$ac_exeext conftest.$ac_ext
7424   LDFLAGS="$save_LDFLAGS"
7425
7426fi
7427{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429    case $host_os in
7430    rhapsody* | darwin1.[0123])
7431      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7432    darwin1.*)
7433     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7434    darwin*)
7435      # if running on 10.5 or later, the deployment target defaults
7436      # to the OS version, if on x86, and 10.4, the deployment
7437      # target defaults to 10.4. Don't you love it?
7438      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7439   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7440     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7441   10.[012]*)
7442     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7443   10.*)
7444     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7445      esac
7446    ;;
7447  esac
7448    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7449      _lt_dar_single_mod='$single_module'
7450    fi
7451    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7452      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7453    else
7454      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7455    fi
7456    if test "$DSYMUTIL" != ":"; then
7457      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7458    else
7459      _lt_dsymutil=
7460    fi
7461    ;;
7462  esac
7463
7464
7465enable_dlopen=no
7466enable_win32_dll=no
7467
7468# Check whether --enable-libtool-lock was given.
7469if test "${enable_libtool_lock+set}" = set; then
7470  enableval=$enable_libtool_lock;
7471fi
7472
7473test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7474
7475
7476# Check whether --with-pic was given.
7477if test "${with_pic+set}" = set; then
7478  withval=$with_pic; pic_mode="$withval"
7479else
7480  pic_mode=default
7481fi
7482
7483test -z "$pic_mode" && pic_mode=default
7484
7485# Use C for the default configuration in the libtool script
7486tagname=
7487lt_save_CC="$CC"
7488ac_ext=c
7489ac_cpp='$CPP $CPPFLAGS'
7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493
7494
7495# Source file extension for C test sources.
7496ac_ext=c
7497
7498# Object file extension for compiled C test sources.
7499objext=o
7500objext=$objext
7501
7502# Code to be used in simple compile tests
7503lt_simple_compile_test_code="int some_variable = 0;"
7504
7505# Code to be used in simple link tests
7506lt_simple_link_test_code='int main(){return(0);}'
7507
7508
7509# If no C compiler was specified, use CC.
7510LTCC=${LTCC-"$CC"}
7511
7512# If no C compiler flags were specified, use CFLAGS.
7513LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7514
7515# Allow CC to be a program name with arguments.
7516compiler=$CC
7517
7518
7519# save warnings/boilerplate of simple test code
7520ac_outfile=conftest.$ac_objext
7521echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7522eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7523_lt_compiler_boilerplate=`cat conftest.err`
7524$rm conftest*
7525
7526ac_outfile=conftest.$ac_objext
7527echo "$lt_simple_link_test_code" >conftest.$ac_ext
7528eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7529_lt_linker_boilerplate=`cat conftest.err`
7530$rm -r conftest*
7531
7532
7533
7534lt_prog_compiler_no_builtin_flag=
7535
7536if test "$GCC" = yes; then
7537  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7538
7539
7540{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7542if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7543  $as_echo_n "(cached) " >&6
7544else
7545  lt_cv_prog_compiler_rtti_exceptions=no
7546  ac_outfile=conftest.$ac_objext
7547   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7548   lt_compiler_flag="-fno-rtti -fno-exceptions"
7549   # Insert the option either (1) after the last *FLAGS variable, or
7550   # (2) before a word containing "conftest.", or (3) at the end.
7551   # Note that $ac_compile itself does not contain backslashes and begins
7552   # with a dollar sign (not a hyphen), so the echo should work correctly.
7553   # The option is referenced via a variable to avoid confusing sed.
7554   lt_compile=`echo "$ac_compile" | $SED \
7555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7557   -e 's:$: $lt_compiler_flag:'`
7558   (eval echo "\"\$as_me:7558: $lt_compile\"" >&5)
7559   (eval "$lt_compile" 2>conftest.err)
7560   ac_status=$?
7561   cat conftest.err >&5
7562   echo "$as_me:7562: \$? = $ac_status" >&5
7563   if (exit $ac_status) && test -s "$ac_outfile"; then
7564     # The compiler can only warn and ignore the option if not recognized
7565     # So say no if there are warnings other than the usual output.
7566     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7567     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7568     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7569       lt_cv_prog_compiler_rtti_exceptions=yes
7570     fi
7571   fi
7572   $rm conftest*
7573
7574fi
7575{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7577
7578if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7579    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7580else
7581    :
7582fi
7583
7584fi
7585
7586lt_prog_compiler_wl=
7587lt_prog_compiler_pic=
7588lt_prog_compiler_static=
7589
7590{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7591$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7592
7593  if test "$GCC" = yes; then
7594    lt_prog_compiler_wl='-Wl,'
7595    lt_prog_compiler_static='-static'
7596
7597    case $host_os in
7598      aix*)
7599      # All AIX code is PIC.
7600      if test "$host_cpu" = ia64; then
7601	# AIX 5 now supports IA64 processor
7602	lt_prog_compiler_static='-Bstatic'
7603      fi
7604      ;;
7605
7606    amigaos*)
7607      # FIXME: we need at least 68020 code to build shared libraries, but
7608      # adding the `-m68020' flag to GCC prevents building anything better,
7609      # like `-m68040'.
7610      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611      ;;
7612
7613    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7614      # PIC is the default for these OSes.
7615      ;;
7616
7617    mingw* | cygwin* | pw32* | os2*)
7618      # This hack is so that the source file can tell whether it is being
7619      # built for inclusion in a dll (and should export symbols for example).
7620      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7621      # (--disable-auto-import) libraries
7622      lt_prog_compiler_pic='-DDLL_EXPORT'
7623      ;;
7624
7625    darwin* | rhapsody*)
7626      # PIC is the default on this platform
7627      # Common symbols not allowed in MH_DYLIB files
7628      lt_prog_compiler_pic='-fno-common'
7629      ;;
7630
7631    interix[3-9]*)
7632      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7633      # Instead, we relocate shared libraries at runtime.
7634      ;;
7635
7636    msdosdjgpp*)
7637      # Just because we use GCC doesn't mean we suddenly get shared libraries
7638      # on systems that don't support them.
7639      lt_prog_compiler_can_build_shared=no
7640      enable_shared=no
7641      ;;
7642
7643    sysv4*MP*)
7644      if test -d /usr/nec; then
7645	lt_prog_compiler_pic=-Kconform_pic
7646      fi
7647      ;;
7648
7649    hpux*)
7650      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7651      # not for PA HP-UX.
7652      case $host_cpu in
7653      hppa*64*|ia64*)
7654	# +Z the default
7655	;;
7656      *)
7657	lt_prog_compiler_pic='-fPIC'
7658	;;
7659      esac
7660      ;;
7661
7662    *)
7663      lt_prog_compiler_pic='-fPIC'
7664      ;;
7665    esac
7666  else
7667    # PORTME Check for flag to pass linker flags through the system compiler.
7668    case $host_os in
7669    aix*)
7670      lt_prog_compiler_wl='-Wl,'
7671      if test "$host_cpu" = ia64; then
7672	# AIX 5 now supports IA64 processor
7673	lt_prog_compiler_static='-Bstatic'
7674      else
7675	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676      fi
7677      ;;
7678      darwin*)
7679        # PIC is the default on this platform
7680        # Common symbols not allowed in MH_DYLIB files
7681       case $cc_basename in
7682         xlc*)
7683         lt_prog_compiler_pic='-qnocommon'
7684         lt_prog_compiler_wl='-Wl,'
7685         ;;
7686       esac
7687       ;;
7688
7689    mingw* | cygwin* | pw32* | os2*)
7690      # This hack is so that the source file can tell whether it is being
7691      # built for inclusion in a dll (and should export symbols for example).
7692      lt_prog_compiler_pic='-DDLL_EXPORT'
7693      ;;
7694
7695    hpux9* | hpux10* | hpux11*)
7696      lt_prog_compiler_wl='-Wl,'
7697      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698      # not for PA HP-UX.
7699      case $host_cpu in
7700      hppa*64*|ia64*)
7701	# +Z the default
7702	;;
7703      *)
7704	lt_prog_compiler_pic='+Z'
7705	;;
7706      esac
7707      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7708      lt_prog_compiler_static='${wl}-a ${wl}archive'
7709      ;;
7710
7711    irix5* | irix6* | nonstopux*)
7712      lt_prog_compiler_wl='-Wl,'
7713      # PIC (with -KPIC) is the default.
7714      lt_prog_compiler_static='-non_shared'
7715      ;;
7716
7717    newsos6)
7718      lt_prog_compiler_pic='-KPIC'
7719      lt_prog_compiler_static='-Bstatic'
7720      ;;
7721
7722    linux* | k*bsd*-gnu)
7723      case $cc_basename in
7724      icc* | ecc*)
7725	lt_prog_compiler_wl='-Wl,'
7726	lt_prog_compiler_pic='-KPIC'
7727	lt_prog_compiler_static='-static'
7728        ;;
7729      pgcc* | pgf77* | pgf90* | pgf95*)
7730        # Portland Group compilers (*not* the Pentium gcc compiler,
7731	# which looks to be a dead project)
7732	lt_prog_compiler_wl='-Wl,'
7733	lt_prog_compiler_pic='-fpic'
7734	lt_prog_compiler_static='-Bstatic'
7735        ;;
7736      ccc*)
7737        lt_prog_compiler_wl='-Wl,'
7738        # All Alpha code is PIC.
7739        lt_prog_compiler_static='-non_shared'
7740        ;;
7741      *)
7742        case `$CC -V 2>&1 | sed 5q` in
7743	*Sun\ C*)
7744	  # Sun C 5.9
7745	  lt_prog_compiler_pic='-KPIC'
7746	  lt_prog_compiler_static='-Bstatic'
7747	  lt_prog_compiler_wl='-Wl,'
7748	  ;;
7749	*Sun\ F*)
7750	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7751	  lt_prog_compiler_pic='-KPIC'
7752	  lt_prog_compiler_static='-Bstatic'
7753	  lt_prog_compiler_wl=''
7754	  ;;
7755	esac
7756	;;
7757      esac
7758      ;;
7759
7760    osf3* | osf4* | osf5*)
7761      lt_prog_compiler_wl='-Wl,'
7762      # All OSF/1 code is PIC.
7763      lt_prog_compiler_static='-non_shared'
7764      ;;
7765
7766    rdos*)
7767      lt_prog_compiler_static='-non_shared'
7768      ;;
7769
7770    solaris*)
7771      lt_prog_compiler_pic='-KPIC'
7772      lt_prog_compiler_static='-Bstatic'
7773      case $cc_basename in
7774      f77* | f90* | f95*)
7775	lt_prog_compiler_wl='-Qoption ld ';;
7776      *)
7777	lt_prog_compiler_wl='-Wl,';;
7778      esac
7779      ;;
7780
7781    sunos4*)
7782      lt_prog_compiler_wl='-Qoption ld '
7783      lt_prog_compiler_pic='-PIC'
7784      lt_prog_compiler_static='-Bstatic'
7785      ;;
7786
7787    sysv4 | sysv4.2uw2* | sysv4.3*)
7788      lt_prog_compiler_wl='-Wl,'
7789      lt_prog_compiler_pic='-KPIC'
7790      lt_prog_compiler_static='-Bstatic'
7791      ;;
7792
7793    sysv4*MP*)
7794      if test -d /usr/nec ;then
7795	lt_prog_compiler_pic='-Kconform_pic'
7796	lt_prog_compiler_static='-Bstatic'
7797      fi
7798      ;;
7799
7800    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7801      lt_prog_compiler_wl='-Wl,'
7802      lt_prog_compiler_pic='-KPIC'
7803      lt_prog_compiler_static='-Bstatic'
7804      ;;
7805
7806    unicos*)
7807      lt_prog_compiler_wl='-Wl,'
7808      lt_prog_compiler_can_build_shared=no
7809      ;;
7810
7811    uts4*)
7812      lt_prog_compiler_pic='-pic'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    *)
7817      lt_prog_compiler_can_build_shared=no
7818      ;;
7819    esac
7820  fi
7821
7822{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7823$as_echo "$lt_prog_compiler_pic" >&6; }
7824
7825#
7826# Check to make sure the PIC flag actually works.
7827#
7828if test -n "$lt_prog_compiler_pic"; then
7829
7830{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7832if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7833  $as_echo_n "(cached) " >&6
7834else
7835  lt_cv_prog_compiler_pic_works=no
7836  ac_outfile=conftest.$ac_objext
7837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7839   # Insert the option either (1) after the last *FLAGS variable, or
7840   # (2) before a word containing "conftest.", or (3) at the end.
7841   # Note that $ac_compile itself does not contain backslashes and begins
7842   # with a dollar sign (not a hyphen), so the echo should work correctly.
7843   # The option is referenced via a variable to avoid confusing sed.
7844   lt_compile=`echo "$ac_compile" | $SED \
7845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847   -e 's:$: $lt_compiler_flag:'`
7848   (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7849   (eval "$lt_compile" 2>conftest.err)
7850   ac_status=$?
7851   cat conftest.err >&5
7852   echo "$as_me:7852: \$? = $ac_status" >&5
7853   if (exit $ac_status) && test -s "$ac_outfile"; then
7854     # The compiler can only warn and ignore the option if not recognized
7855     # So say no if there are warnings other than the usual output.
7856     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859       lt_cv_prog_compiler_pic_works=yes
7860     fi
7861   fi
7862   $rm conftest*
7863
7864fi
7865{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7866$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7867
7868if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7869    case $lt_prog_compiler_pic in
7870     "" | " "*) ;;
7871     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7872     esac
7873else
7874    lt_prog_compiler_pic=
7875     lt_prog_compiler_can_build_shared=no
7876fi
7877
7878fi
7879case $host_os in
7880  # For platforms which do not support PIC, -DPIC is meaningless:
7881  *djgpp*)
7882    lt_prog_compiler_pic=
7883    ;;
7884  *)
7885    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7886    ;;
7887esac
7888
7889#
7890# Check to make sure the static flag actually works.
7891#
7892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7893{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7895if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7896  $as_echo_n "(cached) " >&6
7897else
7898  lt_cv_prog_compiler_static_works=no
7899   save_LDFLAGS="$LDFLAGS"
7900   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7901   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7902   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7903     # The linker can only warn and ignore the option if not recognized
7904     # So say no if there are warnings
7905     if test -s conftest.err; then
7906       # Append any errors to the config.log.
7907       cat conftest.err 1>&5
7908       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7909       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910       if diff conftest.exp conftest.er2 >/dev/null; then
7911         lt_cv_prog_compiler_static_works=yes
7912       fi
7913     else
7914       lt_cv_prog_compiler_static_works=yes
7915     fi
7916   fi
7917   $rm -r conftest*
7918   LDFLAGS="$save_LDFLAGS"
7919
7920fi
7921{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7922$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7923
7924if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7925    :
7926else
7927    lt_prog_compiler_static=
7928fi
7929
7930
7931{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7932$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_prog_compiler_c_o=no
7937   $rm -r conftest 2>/dev/null
7938   mkdir conftest
7939   cd conftest
7940   mkdir out
7941   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942
7943   lt_compiler_flag="-o out/conftest2.$ac_objext"
7944   # Insert the option either (1) after the last *FLAGS variable, or
7945   # (2) before a word containing "conftest.", or (3) at the end.
7946   # Note that $ac_compile itself does not contain backslashes and begins
7947   # with a dollar sign (not a hyphen), so the echo should work correctly.
7948   lt_compile=`echo "$ac_compile" | $SED \
7949   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951   -e 's:$: $lt_compiler_flag:'`
7952   (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953   (eval "$lt_compile" 2>out/conftest.err)
7954   ac_status=$?
7955   cat out/conftest.err >&5
7956   echo "$as_me:7956: \$? = $ac_status" >&5
7957   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958   then
7959     # The compiler can only warn and ignore the option if not recognized
7960     # So say no if there are warnings
7961     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7962     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7963     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7964       lt_cv_prog_compiler_c_o=yes
7965     fi
7966   fi
7967   chmod u+w . 2>&5
7968   $rm conftest*
7969   # SGI C++ compiler will create directory out/ii_files/ for
7970   # template instantiation
7971   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7972   $rm out/* && rmdir out
7973   cd ..
7974   rmdir conftest
7975   $rm conftest*
7976
7977fi
7978{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7979$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7980
7981
7982hard_links="nottested"
7983if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7984  # do not overwrite the value of need_locks provided by the user
7985  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7986$as_echo_n "checking if we can lock with hard links... " >&6; }
7987  hard_links=yes
7988  $rm conftest*
7989  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990  touch conftest.a
7991  ln conftest.a conftest.b 2>&5 || hard_links=no
7992  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7993  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7994$as_echo "$hard_links" >&6; }
7995  if test "$hard_links" = no; then
7996    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7997$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7998    need_locks=warn
7999  fi
8000else
8001  need_locks=no
8002fi
8003
8004{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8006
8007  runpath_var=
8008  allow_undefined_flag=
8009  enable_shared_with_static_runtimes=no
8010  archive_cmds=
8011  archive_expsym_cmds=
8012  old_archive_From_new_cmds=
8013  old_archive_from_expsyms_cmds=
8014  export_dynamic_flag_spec=
8015  whole_archive_flag_spec=
8016  thread_safe_flag_spec=
8017  hardcode_libdir_flag_spec=
8018  hardcode_libdir_flag_spec_ld=
8019  hardcode_libdir_separator=
8020  hardcode_direct=no
8021  hardcode_minus_L=no
8022  hardcode_shlibpath_var=unsupported
8023  link_all_deplibs=unknown
8024  hardcode_automatic=no
8025  module_cmds=
8026  module_expsym_cmds=
8027  always_export_symbols=no
8028  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8029  # include_expsyms should be a list of space-separated symbols to be *always*
8030  # included in the symbol list
8031  include_expsyms=
8032  # exclude_expsyms can be an extended regexp of symbols to exclude
8033  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8034  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8035  # as well as any symbol that contains `d'.
8036  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8037  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8038  # platforms (ab)use it in PIC code, but their linkers get confused if
8039  # the symbol is explicitly referenced.  Since portable code cannot
8040  # rely on this symbol name, it's probably fine to never include it in
8041  # preloaded symbol tables.
8042  # Exclude shared library initialization/finalization symbols.
8043  extract_expsyms_cmds=
8044  # Just being paranoid about ensuring that cc_basename is set.
8045  for cc_temp in $compiler""; do
8046  case $cc_temp in
8047    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8048    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8049    \-*) ;;
8050    *) break;;
8051  esac
8052done
8053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054
8055  case $host_os in
8056  cygwin* | mingw* | pw32*)
8057    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8058    # When not using gcc, we currently assume that we are using
8059    # Microsoft Visual C++.
8060    if test "$GCC" != yes; then
8061      with_gnu_ld=no
8062    fi
8063    ;;
8064  interix*)
8065    # we just hope/assume this is gcc and not c89 (= MSVC++)
8066    with_gnu_ld=yes
8067    ;;
8068  openbsd*)
8069    with_gnu_ld=no
8070    ;;
8071  esac
8072
8073  ld_shlibs=yes
8074  if test "$with_gnu_ld" = yes; then
8075    # If archive_cmds runs LD, not CC, wlarc should be empty
8076    wlarc='${wl}'
8077
8078    # Set some defaults for GNU ld with shared library support. These
8079    # are reset later if shared libraries are not supported. Putting them
8080    # here allows them to be overridden if necessary.
8081    runpath_var=LD_RUN_PATH
8082    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8083    export_dynamic_flag_spec='${wl}--export-dynamic'
8084    # ancient GNU ld didn't support --whole-archive et. al.
8085    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8086	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8087      else
8088  	whole_archive_flag_spec=
8089    fi
8090    supports_anon_versioning=no
8091    case `$LD -v 2>/dev/null` in
8092      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8093      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8094      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8095      *\ 2.11.*) ;; # other 2.11 versions
8096      *) supports_anon_versioning=yes ;;
8097    esac
8098
8099    # See if GNU ld supports shared libraries.
8100    case $host_os in
8101    aix[3-9]*)
8102      # On AIX/PPC, the GNU linker is very broken
8103      if test "$host_cpu" != ia64; then
8104	ld_shlibs=no
8105	cat <<EOF 1>&2
8106
8107*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8108*** to be unable to reliably create shared libraries on AIX.
8109*** Therefore, libtool is disabling shared libraries support.  If you
8110*** really care for shared libraries, you may want to modify your PATH
8111*** so that a non-GNU linker is found, and then restart.
8112
8113EOF
8114      fi
8115      ;;
8116
8117    amigaos*)
8118      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)'
8119      hardcode_libdir_flag_spec='-L$libdir'
8120      hardcode_minus_L=yes
8121
8122      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8123      # that the semantics of dynamic libraries on AmigaOS, at least up
8124      # to version 4, is to share data among multiple programs linked
8125      # with the same dynamic library.  Since this doesn't match the
8126      # behavior of shared libraries on other platforms, we can't use
8127      # them.
8128      ld_shlibs=no
8129      ;;
8130
8131    beos*)
8132      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133	allow_undefined_flag=unsupported
8134	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8135	# support --undefined.  This deserves some investigation.  FIXME
8136	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137      else
8138	ld_shlibs=no
8139      fi
8140      ;;
8141
8142    cygwin* | mingw* | pw32*)
8143      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8144      # as there is no search path for DLLs.
8145      hardcode_libdir_flag_spec='-L$libdir'
8146      allow_undefined_flag=unsupported
8147      always_export_symbols=no
8148      enable_shared_with_static_runtimes=yes
8149      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8150
8151      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8152        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8153	# If the export-symbols file already is a .def file (1st line
8154	# is EXPORTS), use it as is; otherwise, prepend...
8155	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8156	  cp $export_symbols $output_objdir/$soname.def;
8157	else
8158	  echo EXPORTS > $output_objdir/$soname.def;
8159	  cat $export_symbols >> $output_objdir/$soname.def;
8160	fi~
8161	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162      else
8163	ld_shlibs=no
8164      fi
8165      ;;
8166
8167    interix[3-9]*)
8168      hardcode_direct=no
8169      hardcode_shlibpath_var=no
8170      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8171      export_dynamic_flag_spec='${wl}-E'
8172      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8173      # Instead, shared libraries are loaded at an image base (0x10000000 by
8174      # default) and relocated if they conflict, which is a slow very memory
8175      # consuming and fragmenting process.  To avoid this, we pick a random,
8176      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8177      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8178      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8179      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'
8180      ;;
8181
8182    gnu* | linux* | k*bsd*-gnu)
8183      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184	tmp_addflag=
8185	case $cc_basename,$host_cpu in
8186	pgcc*)				# Portland Group C compiler
8187	  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'
8188	  tmp_addflag=' $pic_flag'
8189	  ;;
8190	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8191	  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'
8192	  tmp_addflag=' $pic_flag -Mnomain' ;;
8193	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8194	  tmp_addflag=' -i_dynamic' ;;
8195	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8196	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8197	ifc* | ifort*)			# Intel Fortran compiler
8198	  tmp_addflag=' -nofor_main' ;;
8199	esac
8200	case `$CC -V 2>&1 | sed 5q` in
8201	*Sun\ C*)			# Sun C 5.9
8202	  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'
8203	  tmp_sharedflag='-G' ;;
8204	*Sun\ F*)			# Sun Fortran 8.3
8205	  tmp_sharedflag='-G' ;;
8206	*)
8207	  tmp_sharedflag='-shared' ;;
8208	esac
8209	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210
8211	if test $supports_anon_versioning = yes; then
8212	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8213  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214  $echo "local: *; };" >> $output_objdir/$libname.ver~
8215	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8216	fi
8217      else
8218	ld_shlibs=no
8219      fi
8220      ;;
8221
8222    netbsd*)
8223      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8225	wlarc=
8226      else
8227	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229      fi
8230      ;;
8231
8232    solaris*)
8233      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8234	ld_shlibs=no
8235	cat <<EOF 1>&2
8236
8237*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8238*** create shared libraries on Solaris systems.  Therefore, libtool
8239*** is disabling shared libraries support.  We urge you to upgrade GNU
8240*** binutils to release 2.9.1 or newer.  Another option is to modify
8241*** your PATH or compiler configuration so that the native linker is
8242*** used, and then restart.
8243
8244EOF
8245      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8248      else
8249	ld_shlibs=no
8250      fi
8251      ;;
8252
8253    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8254      case `$LD -v 2>&1` in
8255        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8256	ld_shlibs=no
8257	cat <<_LT_EOF 1>&2
8258
8259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8260*** reliably create shared libraries on SCO systems.  Therefore, libtool
8261*** is disabling shared libraries support.  We urge you to upgrade GNU
8262*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8263*** your PATH or compiler configuration so that the native linker is
8264*** used, and then restart.
8265
8266_LT_EOF
8267	;;
8268	*)
8269	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8270	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8271	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8272	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8273	  else
8274	    ld_shlibs=no
8275	  fi
8276	;;
8277      esac
8278      ;;
8279
8280    sunos4*)
8281      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282      wlarc=
8283      hardcode_direct=yes
8284      hardcode_shlibpath_var=no
8285      ;;
8286
8287    *)
8288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291      else
8292	ld_shlibs=no
8293      fi
8294      ;;
8295    esac
8296
8297    if test "$ld_shlibs" = no; then
8298      runpath_var=
8299      hardcode_libdir_flag_spec=
8300      export_dynamic_flag_spec=
8301      whole_archive_flag_spec=
8302    fi
8303  else
8304    # PORTME fill in a description of your system's linker (not GNU ld)
8305    case $host_os in
8306    aix3*)
8307      allow_undefined_flag=unsupported
8308      always_export_symbols=yes
8309      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'
8310      # Note: this linker hardcodes the directories in LIBPATH if there
8311      # are no directories specified by -L.
8312      hardcode_minus_L=yes
8313      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8314	# Neither direct hardcoding nor static linking is supported with a
8315	# broken collect2.
8316	hardcode_direct=unsupported
8317      fi
8318      ;;
8319
8320    aix[4-9]*)
8321      if test "$host_cpu" = ia64; then
8322	# On IA64, the linker does run time linking by default, so we don't
8323	# have to do anything special.
8324	aix_use_runtimelinking=no
8325	exp_sym_flag='-Bexport'
8326	no_entry_flag=""
8327      else
8328	# If we're using GNU nm, then we don't want the "-C" option.
8329	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8330	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8331	  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'
8332	else
8333	  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'
8334	fi
8335	aix_use_runtimelinking=no
8336
8337	# Test if we are trying to use run time linking or normal
8338	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8339	# need to do runtime linking.
8340	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8341	  for ld_flag in $LDFLAGS; do
8342  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8343  	    aix_use_runtimelinking=yes
8344  	    break
8345  	  fi
8346	  done
8347	  ;;
8348	esac
8349
8350	exp_sym_flag='-bexport'
8351	no_entry_flag='-bnoentry'
8352      fi
8353
8354      # When large executables or shared objects are built, AIX ld can
8355      # have problems creating the table of contents.  If linking a library
8356      # or program results in "error TOC overflow" add -mminimal-toc to
8357      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8358      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8359
8360      archive_cmds=''
8361      hardcode_direct=yes
8362      hardcode_libdir_separator=':'
8363      link_all_deplibs=yes
8364
8365      if test "$GCC" = yes; then
8366	case $host_os in aix4.[012]|aix4.[012].*)
8367	# We only want to do this on AIX 4.2 and lower, the check
8368	# below for broken collect2 doesn't work under 4.3+
8369	  collect2name=`${CC} -print-prog-name=collect2`
8370	  if test -f "$collect2name" && \
8371  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8372	  then
8373  	  # We have reworked collect2
8374  	  :
8375	  else
8376  	  # We have old collect2
8377  	  hardcode_direct=unsupported
8378  	  # It fails to find uninstalled libraries when the uninstalled
8379  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8380  	  # to unsupported forces relinking
8381  	  hardcode_minus_L=yes
8382  	  hardcode_libdir_flag_spec='-L$libdir'
8383  	  hardcode_libdir_separator=
8384	  fi
8385	  ;;
8386	esac
8387	shared_flag='-shared'
8388	if test "$aix_use_runtimelinking" = yes; then
8389	  shared_flag="$shared_flag "'${wl}-G'
8390	fi
8391      else
8392	# not using gcc
8393	if test "$host_cpu" = ia64; then
8394  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8395  	# chokes on -Wl,-G. The following line is correct:
8396	  shared_flag='-G'
8397	else
8398	  if test "$aix_use_runtimelinking" = yes; then
8399	    shared_flag='${wl}-G'
8400	  else
8401	    shared_flag='${wl}-bM:SRE'
8402	  fi
8403	fi
8404      fi
8405
8406      # It seems that -bexpall does not export symbols beginning with
8407      # underscore (_), so it is better to generate a list of symbols to export.
8408      always_export_symbols=yes
8409      if test "$aix_use_runtimelinking" = yes; then
8410	# Warning - without using the other runtime loading flags (-brtl),
8411	# -berok will link without error, but may produce a broken library.
8412	allow_undefined_flag='-berok'
8413       # Determine the default libpath from the value encoded in an empty executable.
8414       cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h.  */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h.  */
8420
8421int
8422main ()
8423{
8424
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429rm -f conftest.$ac_objext conftest$ac_exeext
8430if { (ac_try="$ac_link"
8431case "(($ac_try" in
8432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433  *) ac_try_echo=$ac_try;;
8434esac
8435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8436$as_echo "$ac_try_echo") >&5
8437  (eval "$ac_link") 2>conftest.er1
8438  ac_status=$?
8439  grep -v '^ *+' conftest.er1 >conftest.err
8440  rm -f conftest.er1
8441  cat conftest.err >&5
8442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); } && {
8444	 test -z "$ac_c_werror_flag" ||
8445	 test ! -s conftest.err
8446       } && test -s conftest$ac_exeext && {
8447	 test "$cross_compiling" = yes ||
8448	 $as_test_x conftest$ac_exeext
8449       }; then
8450
8451lt_aix_libpath_sed='
8452    /Import File Strings/,/^$/ {
8453	/^0/ {
8454	    s/^0  *\(.*\)$/\1/
8455	    p
8456	}
8457    }'
8458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459# Check for a 64-bit object if we didn't find anything.
8460if test -z "$aix_libpath"; then
8461  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462fi
8463else
8464  $as_echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468fi
8469
8470rm -rf conftest.dSYM
8471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472      conftest$ac_exeext conftest.$ac_ext
8473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474
8475       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476	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"
8477       else
8478	if test "$host_cpu" = ia64; then
8479	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480	  allow_undefined_flag="-z nodefs"
8481	  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"
8482	else
8483	 # Determine the default libpath from the value encoded in an empty executable.
8484	 cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h.  */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h.  */
8490
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503  *) ac_try_echo=$ac_try;;
8504esac
8505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
8507  (eval "$ac_link") 2>conftest.er1
8508  ac_status=$?
8509  grep -v '^ *+' conftest.er1 >conftest.err
8510  rm -f conftest.er1
8511  cat conftest.err >&5
8512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); } && {
8514	 test -z "$ac_c_werror_flag" ||
8515	 test ! -s conftest.err
8516       } && test -s conftest$ac_exeext && {
8517	 test "$cross_compiling" = yes ||
8518	 $as_test_x conftest$ac_exeext
8519       }; then
8520
8521lt_aix_libpath_sed='
8522    /Import File Strings/,/^$/ {
8523	/^0/ {
8524	    s/^0  *\(.*\)$/\1/
8525	    p
8526	}
8527    }'
8528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529# Check for a 64-bit object if we didn't find anything.
8530if test -z "$aix_libpath"; then
8531  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532fi
8533else
8534  $as_echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538fi
8539
8540rm -rf conftest.dSYM
8541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542      conftest$ac_exeext conftest.$ac_ext
8543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544
8545	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546	  # Warning - without using the other run time loading flags,
8547	  # -berok will link without error, but may produce a broken library.
8548	  no_undefined_flag=' ${wl}-bernotok'
8549	  allow_undefined_flag=' ${wl}-berok'
8550	  # Exported symbols can be pulled into shared objects from archives
8551	  whole_archive_flag_spec='$convenience'
8552	  archive_cmds_need_lc=yes
8553	  # This is similar to how AIX traditionally builds its shared libraries.
8554	  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'
8555	fi
8556      fi
8557      ;;
8558
8559    amigaos*)
8560      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)'
8561      hardcode_libdir_flag_spec='-L$libdir'
8562      hardcode_minus_L=yes
8563      # see comment about different semantics on the GNU ld section
8564      ld_shlibs=no
8565      ;;
8566
8567    bsdi[45]*)
8568      export_dynamic_flag_spec=-rdynamic
8569      ;;
8570
8571    cygwin* | mingw* | pw32*)
8572      # When not using gcc, we currently assume that we are using
8573      # Microsoft Visual C++.
8574      # hardcode_libdir_flag_spec is actually meaningless, as there is
8575      # no search path for DLLs.
8576      hardcode_libdir_flag_spec=' '
8577      allow_undefined_flag=unsupported
8578      # Tell ltmain to make .lib files, not .a files.
8579      libext=lib
8580      # Tell ltmain to make .dll files, not .so files.
8581      shrext_cmds=".dll"
8582      # FIXME: Setting linknames here is a bad hack.
8583      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584      # The linker will automatically build a .lib file if we build a DLL.
8585      old_archive_From_new_cmds='true'
8586      # FIXME: Should let the user specify the lib program.
8587      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588      fix_srcfile_path='`cygpath -w "$srcfile"`'
8589      enable_shared_with_static_runtimes=yes
8590      ;;
8591
8592    darwin* | rhapsody*)
8593      case $host_os in
8594        rhapsody* | darwin1.[012])
8595         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8596         ;;
8597       *) # Darwin 1.3 on
8598         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600         else
8601           case ${MACOSX_DEPLOYMENT_TARGET} in
8602             10.[012])
8603               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604               ;;
8605             10.*)
8606               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8607               ;;
8608           esac
8609         fi
8610         ;;
8611      esac
8612      archive_cmds_need_lc=no
8613      hardcode_direct=no
8614      hardcode_automatic=yes
8615      hardcode_shlibpath_var=unsupported
8616      whole_archive_flag_spec=''
8617      link_all_deplibs=yes
8618    if test "$GCC" = yes ; then
8619    	output_verbose_link_cmd='echo'
8620        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8621        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8622        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}"
8623        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}"
8624    else
8625      case $cc_basename in
8626        xlc*)
8627         output_verbose_link_cmd='echo'
8628         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8629         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631         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}'
8632          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}'
8633          ;;
8634       *)
8635         ld_shlibs=no
8636          ;;
8637      esac
8638    fi
8639      ;;
8640
8641    dgux*)
8642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_libdir_flag_spec='-L$libdir'
8644      hardcode_shlibpath_var=no
8645      ;;
8646
8647    freebsd1*)
8648      ld_shlibs=no
8649      ;;
8650
8651    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652    # support.  Future versions do this automatically, but an explicit c++rt0.o
8653    # does not break anything, and helps significantly (at the cost of a little
8654    # extra space).
8655    freebsd2.2*)
8656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657      hardcode_libdir_flag_spec='-R$libdir'
8658      hardcode_direct=yes
8659      hardcode_shlibpath_var=no
8660      ;;
8661
8662    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8663    freebsd2*)
8664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665      hardcode_direct=yes
8666      hardcode_minus_L=yes
8667      hardcode_shlibpath_var=no
8668      ;;
8669
8670    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671    freebsd* | dragonfly*)
8672      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673      hardcode_libdir_flag_spec='-R$libdir'
8674      hardcode_direct=yes
8675      hardcode_shlibpath_var=no
8676      ;;
8677
8678    hpux9*)
8679      if test "$GCC" = yes; then
8680	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'
8681      else
8682	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'
8683      fi
8684      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      hardcode_direct=yes
8687
8688      # hardcode_minus_L: Not really in the search PATH,
8689      # but as the default location of the library.
8690      hardcode_minus_L=yes
8691      export_dynamic_flag_spec='${wl}-E'
8692      ;;
8693
8694    hpux10*)
8695      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697      else
8698	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8699      fi
8700      if test "$with_gnu_ld" = no; then
8701	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702	hardcode_libdir_separator=:
8703
8704	hardcode_direct=yes
8705	export_dynamic_flag_spec='${wl}-E'
8706
8707	# hardcode_minus_L: Not really in the search PATH,
8708	# but as the default location of the library.
8709	hardcode_minus_L=yes
8710      fi
8711      ;;
8712
8713    hpux11*)
8714      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8715	case $host_cpu in
8716	hppa*64*)
8717	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718	  ;;
8719	ia64*)
8720	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721	  ;;
8722	*)
8723	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724	  ;;
8725	esac
8726      else
8727	case $host_cpu in
8728	hppa*64*)
8729	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730	  ;;
8731	ia64*)
8732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8733	  ;;
8734	*)
8735	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736	  ;;
8737	esac
8738      fi
8739      if test "$with_gnu_ld" = no; then
8740	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741	hardcode_libdir_separator=:
8742
8743	case $host_cpu in
8744	hppa*64*|ia64*)
8745	  hardcode_libdir_flag_spec_ld='+b $libdir'
8746	  hardcode_direct=no
8747	  hardcode_shlibpath_var=no
8748	  ;;
8749	*)
8750	  hardcode_direct=yes
8751	  export_dynamic_flag_spec='${wl}-E'
8752
8753	  # hardcode_minus_L: Not really in the search PATH,
8754	  # but as the default location of the library.
8755	  hardcode_minus_L=yes
8756	  ;;
8757	esac
8758      fi
8759      ;;
8760
8761    irix5* | irix6* | nonstopux*)
8762      if test "$GCC" = yes; then
8763	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'
8764      else
8765	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'
8766	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8767      fi
8768      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769      hardcode_libdir_separator=:
8770      link_all_deplibs=yes
8771      ;;
8772
8773    netbsd*)
8774      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8775	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8776      else
8777	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8778      fi
8779      hardcode_libdir_flag_spec='-R$libdir'
8780      hardcode_direct=yes
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    newsos6)
8785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786      hardcode_direct=yes
8787      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788      hardcode_libdir_separator=:
8789      hardcode_shlibpath_var=no
8790      ;;
8791
8792    openbsd*)
8793      if test -f /usr/libexec/ld.so; then
8794	hardcode_direct=yes
8795	hardcode_shlibpath_var=no
8796	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800	  export_dynamic_flag_spec='${wl}-E'
8801	else
8802	  case $host_os in
8803	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8804	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805	     hardcode_libdir_flag_spec='-R$libdir'
8806	     ;;
8807	   *)
8808	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810	     ;;
8811	  esac
8812        fi
8813      else
8814	ld_shlibs=no
8815      fi
8816      ;;
8817
8818    os2*)
8819      hardcode_libdir_flag_spec='-L$libdir'
8820      hardcode_minus_L=yes
8821      allow_undefined_flag=unsupported
8822      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'
8823      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8824      ;;
8825
8826    osf3*)
8827      if test "$GCC" = yes; then
8828	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829	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'
8830      else
8831	allow_undefined_flag=' -expect_unresolved \*'
8832	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'
8833      fi
8834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835      hardcode_libdir_separator=:
8836      ;;
8837
8838    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8839      if test "$GCC" = yes; then
8840	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841	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'
8842	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843      else
8844	allow_undefined_flag=' -expect_unresolved \*'
8845	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'
8846	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847	$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'
8848
8849	# Both c and cxx compiler support -rpath directly
8850	hardcode_libdir_flag_spec='-rpath $libdir'
8851      fi
8852      hardcode_libdir_separator=:
8853      ;;
8854
8855    solaris*)
8856      no_undefined_flag=' -z text'
8857      if test "$GCC" = yes; then
8858	wlarc='${wl}'
8859	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862      else
8863	wlarc=''
8864	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8867      fi
8868      hardcode_libdir_flag_spec='-R$libdir'
8869      hardcode_shlibpath_var=no
8870      case $host_os in
8871      solaris2.[0-5] | solaris2.[0-5].*) ;;
8872      *)
8873	# The compiler driver will combine and reorder linker options,
8874	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8875	# but is careful enough not to reorder.
8876 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8877	if test "$GCC" = yes; then
8878	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8879	else
8880	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8881	fi
8882	;;
8883      esac
8884      link_all_deplibs=yes
8885      ;;
8886
8887    sunos4*)
8888      if test "x$host_vendor" = xsequent; then
8889	# Use $CC to link under sequent, because it throws in some extra .o
8890	# files that make .init and .fini sections work.
8891	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8892      else
8893	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8894      fi
8895      hardcode_libdir_flag_spec='-L$libdir'
8896      hardcode_direct=yes
8897      hardcode_minus_L=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    sysv4)
8902      case $host_vendor in
8903	sni)
8904	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905	  hardcode_direct=yes # is this really true???
8906	;;
8907	siemens)
8908	  ## LD is ld it makes a PLAMLIB
8909	  ## CC just makes a GrossModule.
8910	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8911	  reload_cmds='$CC -r -o $output$reload_objs'
8912	  hardcode_direct=no
8913        ;;
8914	motorola)
8915	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8917	;;
8918      esac
8919      runpath_var='LD_RUN_PATH'
8920      hardcode_shlibpath_var=no
8921      ;;
8922
8923    sysv4.3*)
8924      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925      hardcode_shlibpath_var=no
8926      export_dynamic_flag_spec='-Bexport'
8927      ;;
8928
8929    sysv4*MP*)
8930      if test -d /usr/nec; then
8931	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932	hardcode_shlibpath_var=no
8933	runpath_var=LD_RUN_PATH
8934	hardcode_runpath_var=yes
8935	ld_shlibs=yes
8936      fi
8937      ;;
8938
8939    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8940      no_undefined_flag='${wl}-z,text'
8941      archive_cmds_need_lc=no
8942      hardcode_shlibpath_var=no
8943      runpath_var='LD_RUN_PATH'
8944
8945      if test "$GCC" = yes; then
8946	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948      else
8949	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951      fi
8952      ;;
8953
8954    sysv5* | sco3.2v5* | sco5v6*)
8955      # Note: We can NOT use -z defs as we might desire, because we do not
8956      # link with -lc, and that would cause any symbols used from libc to
8957      # always be unresolved, which means just about no library would
8958      # ever link correctly.  If we're not using GNU ld we use -z text
8959      # though, which does catch some bad symbols but isn't as heavy-handed
8960      # as -z defs.
8961      no_undefined_flag='${wl}-z,text'
8962      allow_undefined_flag='${wl}-z,nodefs'
8963      archive_cmds_need_lc=no
8964      hardcode_shlibpath_var=no
8965      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8966      hardcode_libdir_separator=':'
8967      link_all_deplibs=yes
8968      export_dynamic_flag_spec='${wl}-Bexport'
8969      runpath_var='LD_RUN_PATH'
8970
8971      if test "$GCC" = yes; then
8972	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974      else
8975	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977      fi
8978      ;;
8979
8980    uts4*)
8981      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982      hardcode_libdir_flag_spec='-L$libdir'
8983      hardcode_shlibpath_var=no
8984      ;;
8985
8986    *)
8987      ld_shlibs=no
8988      ;;
8989    esac
8990  fi
8991
8992{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993$as_echo "$ld_shlibs" >&6; }
8994test "$ld_shlibs" = no && can_build_shared=no
8995
8996#
8997# Do we need to explicitly link libc?
8998#
8999case "x$archive_cmds_need_lc" in
9000x|xyes)
9001  # Assume -lc should be added
9002  archive_cmds_need_lc=yes
9003
9004  if test "$enable_shared" = yes && test "$GCC" = yes; then
9005    case $archive_cmds in
9006    *'~'*)
9007      # FIXME: we may have to deal with multi-command sequences.
9008      ;;
9009    '$CC '*)
9010      # Test whether the compiler implicitly links with -lc since on some
9011      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9012      # to ld, don't add -lc before -lgcc.
9013      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9014$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9015      $rm conftest*
9016      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017
9018      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019  (eval $ac_compile) 2>&5
9020  ac_status=$?
9021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); } 2>conftest.err; then
9023        soname=conftest
9024        lib=conftest
9025        libobjs=conftest.$ac_objext
9026        deplibs=
9027        wl=$lt_prog_compiler_wl
9028	pic_flag=$lt_prog_compiler_pic
9029        compiler_flags=-v
9030        linker_flags=-v
9031        verstring=
9032        output_objdir=.
9033        libname=conftest
9034        lt_save_allow_undefined_flag=$allow_undefined_flag
9035        allow_undefined_flag=
9036        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9037  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9038  ac_status=$?
9039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); }
9041        then
9042	  archive_cmds_need_lc=no
9043        else
9044	  archive_cmds_need_lc=yes
9045        fi
9046        allow_undefined_flag=$lt_save_allow_undefined_flag
9047      else
9048        cat conftest.err 1>&5
9049      fi
9050      $rm conftest*
9051      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9052$as_echo "$archive_cmds_need_lc" >&6; }
9053      ;;
9054    esac
9055  fi
9056  ;;
9057esac
9058
9059{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9060$as_echo_n "checking dynamic linker characteristics... " >&6; }
9061library_names_spec=
9062libname_spec='lib$name'
9063soname_spec=
9064shrext_cmds=".so"
9065postinstall_cmds=
9066postuninstall_cmds=
9067finish_cmds=
9068finish_eval=
9069shlibpath_var=
9070shlibpath_overrides_runpath=unknown
9071version_type=none
9072dynamic_linker="$host_os ld.so"
9073sys_lib_dlsearch_path_spec="/lib /usr/lib"
9074
9075if test "$GCC" = yes; then
9076  case $host_os in
9077    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9078    *) lt_awk_arg="/^libraries:/" ;;
9079  esac
9080  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9081  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9082    # if the path contains ";" then we assume it to be the separator
9083    # otherwise default to the standard path separator (i.e. ":") - it is
9084    # assumed that no part of a normal pathname contains ";" but that should
9085    # okay in the real world where ";" in dirpaths is itself problematic.
9086    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9087  else
9088    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9089  fi
9090  # Ok, now we have the path, separated by spaces, we can step through it
9091  # and add multilib dir if necessary.
9092  lt_tmp_lt_search_path_spec=
9093  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9094  for lt_sys_path in $lt_search_path_spec; do
9095    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9096      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9097    else
9098      test -d "$lt_sys_path" && \
9099	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9100    fi
9101  done
9102  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9103BEGIN {RS=" "; FS="/|\n";} {
9104  lt_foo="";
9105  lt_count=0;
9106  for (lt_i = NF; lt_i > 0; lt_i--) {
9107    if ($lt_i != "" && $lt_i != ".") {
9108      if ($lt_i == "..") {
9109        lt_count++;
9110      } else {
9111        if (lt_count == 0) {
9112          lt_foo="/" $lt_i lt_foo;
9113        } else {
9114          lt_count--;
9115        }
9116      }
9117    }
9118  }
9119  if (lt_foo != "") { lt_freq[lt_foo]++; }
9120  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9121}'`
9122  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9123else
9124  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9125fi
9126need_lib_prefix=unknown
9127hardcode_into_libs=no
9128
9129# when you set need_version to no, make sure it does not cause -set_version
9130# flags to be left without arguments
9131need_version=unknown
9132
9133case $host_os in
9134aix3*)
9135  version_type=linux
9136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9137  shlibpath_var=LIBPATH
9138
9139  # AIX 3 has no versioning support, so we append a major version to the name.
9140  soname_spec='${libname}${release}${shared_ext}$major'
9141  ;;
9142
9143aix[4-9]*)
9144  version_type=linux
9145  need_lib_prefix=no
9146  need_version=no
9147  hardcode_into_libs=yes
9148  if test "$host_cpu" = ia64; then
9149    # AIX 5 supports IA64
9150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9151    shlibpath_var=LD_LIBRARY_PATH
9152  else
9153    # With GCC up to 2.95.x, collect2 would create an import file
9154    # for dependence libraries.  The import file would start with
9155    # the line `#! .'.  This would cause the generated library to
9156    # depend on `.', always an invalid library.  This was fixed in
9157    # development snapshots of GCC prior to 3.0.
9158    case $host_os in
9159      aix4 | aix4.[01] | aix4.[01].*)
9160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9161	   echo ' yes '
9162	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9163	:
9164      else
9165	can_build_shared=no
9166      fi
9167      ;;
9168    esac
9169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9170    # soname into executable. Probably we can add versioning support to
9171    # collect2, so additional links can be useful in future.
9172    if test "$aix_use_runtimelinking" = yes; then
9173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9174      # instead of lib<name>.a to let people know that these are not
9175      # typical AIX shared libraries.
9176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177    else
9178      # We preserve .a as extension for shared libraries through AIX4.2
9179      # and later when we are not doing run time linking.
9180      library_names_spec='${libname}${release}.a $libname.a'
9181      soname_spec='${libname}${release}${shared_ext}$major'
9182    fi
9183    shlibpath_var=LIBPATH
9184  fi
9185  ;;
9186
9187amigaos*)
9188  library_names_spec='$libname.ixlibrary $libname.a'
9189  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9190  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'
9191  ;;
9192
9193beos*)
9194  library_names_spec='${libname}${shared_ext}'
9195  dynamic_linker="$host_os ld.so"
9196  shlibpath_var=LIBRARY_PATH
9197  ;;
9198
9199bsdi[45]*)
9200  version_type=linux
9201  need_version=no
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203  soname_spec='${libname}${release}${shared_ext}$major'
9204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9205  shlibpath_var=LD_LIBRARY_PATH
9206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9208  # the default ld.so.conf also contains /usr/contrib/lib and
9209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9210  # libtool to hard-code these into programs
9211  ;;
9212
9213cygwin* | mingw* | pw32*)
9214  version_type=windows
9215  shrext_cmds=".dll"
9216  need_version=no
9217  need_lib_prefix=no
9218
9219  case $GCC,$host_os in
9220  yes,cygwin* | yes,mingw* | yes,pw32*)
9221    library_names_spec='$libname.dll.a'
9222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9223    postinstall_cmds='base_file=`basename \${file}`~
9224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9225      dldir=$destdir/`dirname \$dlpath`~
9226      test -d \$dldir || mkdir -p \$dldir~
9227      $install_prog $dir/$dlname \$dldir/$dlname~
9228      chmod a+x \$dldir/$dlname'
9229    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9230      dlpath=$dir/\$dldll~
9231       $rm \$dlpath'
9232    shlibpath_overrides_runpath=yes
9233
9234    case $host_os in
9235    cygwin*)
9236      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9237      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9239      ;;
9240    mingw*)
9241      # MinGW DLLs use traditional 'lib' prefix
9242      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9245        # It is most probably a Windows format PATH printed by
9246        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9247        # path with ; separators, and with drive letters. We can handle the
9248        # drive letters (cygwin fileutils understands them), so leave them,
9249        # especially as we might pass files found there to a mingw objdump,
9250        # which wouldn't understand a cygwinified path. Ahh.
9251        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9252      else
9253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9254      fi
9255      ;;
9256    pw32*)
9257      # pw32 DLLs use 'pw' prefix rather than 'lib'
9258      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9259      ;;
9260    esac
9261    ;;
9262
9263  *)
9264    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9265    ;;
9266  esac
9267  dynamic_linker='Win32 ld.exe'
9268  # FIXME: first we should search . and the directory the executable is in
9269  shlibpath_var=PATH
9270  ;;
9271
9272darwin* | rhapsody*)
9273  dynamic_linker="$host_os dyld"
9274  version_type=darwin
9275  need_lib_prefix=no
9276  need_version=no
9277  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9278  soname_spec='${libname}${release}${major}$shared_ext'
9279  shlibpath_overrides_runpath=yes
9280  shlibpath_var=DYLD_LIBRARY_PATH
9281  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9282
9283  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9284  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9285  ;;
9286
9287dgux*)
9288  version_type=linux
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  shlibpath_var=LD_LIBRARY_PATH
9294  ;;
9295
9296freebsd1*)
9297  dynamic_linker=no
9298  ;;
9299
9300freebsd* | dragonfly*)
9301  # DragonFly does not have aout.  When/if they implement a new
9302  # versioning mechanism, adjust this.
9303  if test -x /usr/bin/objformat; then
9304    objformat=`/usr/bin/objformat`
9305  else
9306    case $host_os in
9307    freebsd[123]*) objformat=aout ;;
9308    *) objformat=elf ;;
9309    esac
9310  fi
9311  version_type=freebsd-$objformat
9312  case $version_type in
9313    freebsd-elf*)
9314      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9315      need_version=no
9316      need_lib_prefix=no
9317      ;;
9318    freebsd-*)
9319      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9320      need_version=yes
9321      ;;
9322  esac
9323  shlibpath_var=LD_LIBRARY_PATH
9324  case $host_os in
9325  freebsd2*)
9326    shlibpath_overrides_runpath=yes
9327    ;;
9328  freebsd3.[01]* | freebsdelf3.[01]*)
9329    shlibpath_overrides_runpath=yes
9330    hardcode_into_libs=yes
9331    ;;
9332  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9333  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9334    shlibpath_overrides_runpath=no
9335    hardcode_into_libs=yes
9336    ;;
9337  *) # from 4.6 on, and DragonFly
9338    shlibpath_overrides_runpath=yes
9339    hardcode_into_libs=yes
9340    ;;
9341  esac
9342  ;;
9343
9344gnu*)
9345  version_type=linux
9346  need_lib_prefix=no
9347  need_version=no
9348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9349  soname_spec='${libname}${release}${shared_ext}$major'
9350  shlibpath_var=LD_LIBRARY_PATH
9351  hardcode_into_libs=yes
9352  ;;
9353
9354hpux9* | hpux10* | hpux11*)
9355  # Give a soname corresponding to the major version so that dld.sl refuses to
9356  # link against other versions.
9357  version_type=sunos
9358  need_lib_prefix=no
9359  need_version=no
9360  case $host_cpu in
9361  ia64*)
9362    shrext_cmds='.so'
9363    hardcode_into_libs=yes
9364    dynamic_linker="$host_os dld.so"
9365    shlibpath_var=LD_LIBRARY_PATH
9366    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368    soname_spec='${libname}${release}${shared_ext}$major'
9369    if test "X$HPUX_IA64_MODE" = X32; then
9370      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9371    else
9372      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9373    fi
9374    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9375    ;;
9376   hppa*64*)
9377     shrext_cmds='.sl'
9378     hardcode_into_libs=yes
9379     dynamic_linker="$host_os dld.sl"
9380     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9381     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383     soname_spec='${libname}${release}${shared_ext}$major'
9384     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9386     ;;
9387   *)
9388    shrext_cmds='.sl'
9389    dynamic_linker="$host_os dld.sl"
9390    shlibpath_var=SHLIB_PATH
9391    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393    soname_spec='${libname}${release}${shared_ext}$major'
9394    ;;
9395  esac
9396  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9397  postinstall_cmds='chmod 555 $lib'
9398  ;;
9399
9400interix[3-9]*)
9401  version_type=linux
9402  need_lib_prefix=no
9403  need_version=no
9404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405  soname_spec='${libname}${release}${shared_ext}$major'
9406  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9407  shlibpath_var=LD_LIBRARY_PATH
9408  shlibpath_overrides_runpath=no
9409  hardcode_into_libs=yes
9410  ;;
9411
9412irix5* | irix6* | nonstopux*)
9413  case $host_os in
9414    nonstopux*) version_type=nonstopux ;;
9415    *)
9416	if test "$lt_cv_prog_gnu_ld" = yes; then
9417		version_type=linux
9418	else
9419		version_type=irix
9420	fi ;;
9421  esac
9422  need_lib_prefix=no
9423  need_version=no
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9426  case $host_os in
9427  irix5* | nonstopux*)
9428    libsuff= shlibsuff=
9429    ;;
9430  *)
9431    case $LD in # libtool.m4 will add one of these switches to LD
9432    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9433      libsuff= shlibsuff= libmagic=32-bit;;
9434    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9435      libsuff=32 shlibsuff=N32 libmagic=N32;;
9436    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9437      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9438    *) libsuff= shlibsuff= libmagic=never-match;;
9439    esac
9440    ;;
9441  esac
9442  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9443  shlibpath_overrides_runpath=no
9444  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9445  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9446  hardcode_into_libs=yes
9447  ;;
9448
9449# No shared lib support for Linux oldld, aout, or coff.
9450linux*oldld* | linux*aout* | linux*coff*)
9451  dynamic_linker=no
9452  ;;
9453
9454# This must be Linux ELF.
9455linux* | k*bsd*-gnu)
9456  version_type=linux
9457  need_lib_prefix=no
9458  need_version=no
9459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460  soname_spec='${libname}${release}${shared_ext}$major'
9461  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9462  shlibpath_var=LD_LIBRARY_PATH
9463  shlibpath_overrides_runpath=no
9464  # This implies no fast_install, which is unacceptable.
9465  # Some rework will be needed to allow for fast_install
9466  # before this can be enabled.
9467  hardcode_into_libs=yes
9468  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9469  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9470
9471  # Append ld.so.conf contents to the search path
9472  if test -f /etc/ld.so.conf; then
9473    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' ' '`
9474    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9475  fi
9476
9477  # We used to test for /lib/ld.so.1 and disable shared libraries on
9478  # powerpc, because MkLinux only supported shared libraries with the
9479  # GNU dynamic linker.  Since this was broken with cross compilers,
9480  # most powerpc-linux boxes support dynamic linking these days and
9481  # people can always --disable-shared, the test was removed, and we
9482  # assume the GNU/Linux dynamic linker is in use.
9483  dynamic_linker='GNU/Linux ld.so'
9484  ;;
9485
9486netbsd*)
9487  version_type=sunos
9488  need_lib_prefix=no
9489  need_version=no
9490  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9492    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9493    dynamic_linker='NetBSD (a.out) ld.so'
9494  else
9495    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496    soname_spec='${libname}${release}${shared_ext}$major'
9497    dynamic_linker='NetBSD ld.elf_so'
9498  fi
9499  shlibpath_var=LD_LIBRARY_PATH
9500  shlibpath_overrides_runpath=yes
9501  hardcode_into_libs=yes
9502  ;;
9503
9504newsos6)
9505  version_type=linux
9506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=yes
9509  ;;
9510
9511nto-qnx*)
9512  version_type=linux
9513  need_lib_prefix=no
9514  need_version=no
9515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516  soname_spec='${libname}${release}${shared_ext}$major'
9517  shlibpath_var=LD_LIBRARY_PATH
9518  shlibpath_overrides_runpath=yes
9519  ;;
9520
9521openbsd*)
9522  version_type=sunos
9523  sys_lib_dlsearch_path_spec="/usr/lib"
9524  need_lib_prefix=no
9525  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9526  case $host_os in
9527    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9528    *)                         need_version=no  ;;
9529  esac
9530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534    case $host_os in
9535      openbsd2.[89] | openbsd2.[89].*)
9536	shlibpath_overrides_runpath=no
9537	;;
9538      *)
9539	shlibpath_overrides_runpath=yes
9540	;;
9541      esac
9542  else
9543    shlibpath_overrides_runpath=yes
9544  fi
9545  ;;
9546
9547os2*)
9548  libname_spec='$name'
9549  shrext_cmds=".dll"
9550  need_lib_prefix=no
9551  library_names_spec='$libname${shared_ext} $libname.a'
9552  dynamic_linker='OS/2 ld.exe'
9553  shlibpath_var=LIBPATH
9554  ;;
9555
9556osf3* | osf4* | osf5*)
9557  version_type=osf
9558  need_lib_prefix=no
9559  need_version=no
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562  shlibpath_var=LD_LIBRARY_PATH
9563  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9564  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9565  ;;
9566
9567rdos*)
9568  dynamic_linker=no
9569  ;;
9570
9571solaris*)
9572  version_type=linux
9573  need_lib_prefix=no
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  shlibpath_overrides_runpath=yes
9579  hardcode_into_libs=yes
9580  # ldd complains unless libraries are executable
9581  postinstall_cmds='chmod +x $lib'
9582  ;;
9583
9584sunos4*)
9585  version_type=sunos
9586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9587  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9588  shlibpath_var=LD_LIBRARY_PATH
9589  shlibpath_overrides_runpath=yes
9590  if test "$with_gnu_ld" = yes; then
9591    need_lib_prefix=no
9592  fi
9593  need_version=yes
9594  ;;
9595
9596sysv4 | sysv4.3*)
9597  version_type=linux
9598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599  soname_spec='${libname}${release}${shared_ext}$major'
9600  shlibpath_var=LD_LIBRARY_PATH
9601  case $host_vendor in
9602    sni)
9603      shlibpath_overrides_runpath=no
9604      need_lib_prefix=no
9605      export_dynamic_flag_spec='${wl}-Blargedynsym'
9606      runpath_var=LD_RUN_PATH
9607      ;;
9608    siemens)
9609      need_lib_prefix=no
9610      ;;
9611    motorola)
9612      need_lib_prefix=no
9613      need_version=no
9614      shlibpath_overrides_runpath=no
9615      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9616      ;;
9617  esac
9618  ;;
9619
9620sysv4*MP*)
9621  if test -d /usr/nec ;then
9622    version_type=linux
9623    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9624    soname_spec='$libname${shared_ext}.$major'
9625    shlibpath_var=LD_LIBRARY_PATH
9626  fi
9627  ;;
9628
9629sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9630  version_type=freebsd-elf
9631  need_lib_prefix=no
9632  need_version=no
9633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9634  soname_spec='${libname}${release}${shared_ext}$major'
9635  shlibpath_var=LD_LIBRARY_PATH
9636  hardcode_into_libs=yes
9637  if test "$with_gnu_ld" = yes; then
9638    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9639    shlibpath_overrides_runpath=no
9640  else
9641    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9642    shlibpath_overrides_runpath=yes
9643    case $host_os in
9644      sco3.2v5*)
9645        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9646	;;
9647    esac
9648  fi
9649  sys_lib_dlsearch_path_spec='/usr/lib'
9650  ;;
9651
9652uts4*)
9653  version_type=linux
9654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655  soname_spec='${libname}${release}${shared_ext}$major'
9656  shlibpath_var=LD_LIBRARY_PATH
9657  ;;
9658
9659*)
9660  dynamic_linker=no
9661  ;;
9662esac
9663{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9664$as_echo "$dynamic_linker" >&6; }
9665test "$dynamic_linker" = no && can_build_shared=no
9666
9667if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9668  $as_echo_n "(cached) " >&6
9669else
9670  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9671fi
9672
9673sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9674if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9675  $as_echo_n "(cached) " >&6
9676else
9677  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9678fi
9679
9680sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9681
9682variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9683if test "$GCC" = yes; then
9684  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9685fi
9686
9687{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9688$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9689hardcode_action=
9690if test -n "$hardcode_libdir_flag_spec" || \
9691   test -n "$runpath_var" || \
9692   test "X$hardcode_automatic" = "Xyes" ; then
9693
9694  # We can hardcode non-existant directories.
9695  if test "$hardcode_direct" != no &&
9696     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9697     # have to relink, otherwise we might link with an installed library
9698     # when we should be linking with a yet-to-be-installed one
9699     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9700     test "$hardcode_minus_L" != no; then
9701    # Linking always hardcodes the temporary library directory.
9702    hardcode_action=relink
9703  else
9704    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9705    hardcode_action=immediate
9706  fi
9707else
9708  # We cannot hardcode anything, or else we can only hardcode existing
9709  # directories.
9710  hardcode_action=unsupported
9711fi
9712{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9713$as_echo "$hardcode_action" >&6; }
9714
9715if test "$hardcode_action" = relink; then
9716  # Fast installation is not supported
9717  enable_fast_install=no
9718elif test "$shlibpath_overrides_runpath" = yes ||
9719     test "$enable_shared" = no; then
9720  # Fast installation is not necessary
9721  enable_fast_install=needless
9722fi
9723
9724striplib=
9725old_striplib=
9726{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9727$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9728if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9729  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9730  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9731  { $as_echo "$as_me:$LINENO: result: yes" >&5
9732$as_echo "yes" >&6; }
9733else
9734# FIXME - insert some real tests, host_os isn't really good enough
9735  case $host_os in
9736   darwin*)
9737       if test -n "$STRIP" ; then
9738         striplib="$STRIP -x"
9739         old_striplib="$STRIP -S"
9740         { $as_echo "$as_me:$LINENO: result: yes" >&5
9741$as_echo "yes" >&6; }
9742       else
9743  { $as_echo "$as_me:$LINENO: result: no" >&5
9744$as_echo "no" >&6; }
9745fi
9746       ;;
9747   *)
9748  { $as_echo "$as_me:$LINENO: result: no" >&5
9749$as_echo "no" >&6; }
9750    ;;
9751  esac
9752fi
9753
9754if test "x$enable_dlopen" != xyes; then
9755  enable_dlopen=unknown
9756  enable_dlopen_self=unknown
9757  enable_dlopen_self_static=unknown
9758else
9759  lt_cv_dlopen=no
9760  lt_cv_dlopen_libs=
9761
9762  case $host_os in
9763  beos*)
9764    lt_cv_dlopen="load_add_on"
9765    lt_cv_dlopen_libs=
9766    lt_cv_dlopen_self=yes
9767    ;;
9768
9769  mingw* | pw32*)
9770    lt_cv_dlopen="LoadLibrary"
9771    lt_cv_dlopen_libs=
9772   ;;
9773
9774  cygwin*)
9775    lt_cv_dlopen="dlopen"
9776    lt_cv_dlopen_libs=
9777   ;;
9778
9779  darwin*)
9780  # if libdl is installed we need to link against it
9781    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9782$as_echo_n "checking for dlopen in -ldl... " >&6; }
9783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9784  $as_echo_n "(cached) " >&6
9785else
9786  ac_check_lib_save_LIBS=$LIBS
9787LIBS="-ldl  $LIBS"
9788cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h.  */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h.  */
9794
9795/* Override any GCC internal prototype to avoid an error.
9796   Use char because int might match the return type of a GCC
9797   builtin and then its argument prototype would still apply.  */
9798#ifdef __cplusplus
9799extern "C"
9800#endif
9801char dlopen ();
9802int
9803main ()
9804{
9805return dlopen ();
9806  ;
9807  return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext conftest$ac_exeext
9811if { (ac_try="$ac_link"
9812case "(($ac_try" in
9813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814  *) ac_try_echo=$ac_try;;
9815esac
9816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9817$as_echo "$ac_try_echo") >&5
9818  (eval "$ac_link") 2>conftest.er1
9819  ac_status=$?
9820  grep -v '^ *+' conftest.er1 >conftest.err
9821  rm -f conftest.er1
9822  cat conftest.err >&5
9823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824  (exit $ac_status); } && {
9825	 test -z "$ac_c_werror_flag" ||
9826	 test ! -s conftest.err
9827       } && test -s conftest$ac_exeext && {
9828	 test "$cross_compiling" = yes ||
9829	 $as_test_x conftest$ac_exeext
9830       }; then
9831  ac_cv_lib_dl_dlopen=yes
9832else
9833  $as_echo "$as_me: failed program was:" >&5
9834sed 's/^/| /' conftest.$ac_ext >&5
9835
9836	ac_cv_lib_dl_dlopen=no
9837fi
9838
9839rm -rf conftest.dSYM
9840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9841      conftest$ac_exeext conftest.$ac_ext
9842LIBS=$ac_check_lib_save_LIBS
9843fi
9844{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9846if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9847  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9848else
9849
9850    lt_cv_dlopen="dyld"
9851    lt_cv_dlopen_libs=
9852    lt_cv_dlopen_self=yes
9853
9854fi
9855
9856   ;;
9857
9858  *)
9859    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9860$as_echo_n "checking for shl_load... " >&6; }
9861if test "${ac_cv_func_shl_load+set}" = set; then
9862  $as_echo_n "(cached) " >&6
9863else
9864  cat >conftest.$ac_ext <<_ACEOF
9865/* confdefs.h.  */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h.  */
9870/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9872#define shl_load innocuous_shl_load
9873
9874/* System header to define __stub macros and hopefully few prototypes,
9875    which can conflict with char shl_load (); below.
9876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9877    <limits.h> exists even on freestanding compilers.  */
9878
9879#ifdef __STDC__
9880# include <limits.h>
9881#else
9882# include <assert.h>
9883#endif
9884
9885#undef shl_load
9886
9887/* Override any GCC internal prototype to avoid an error.
9888   Use char because int might match the return type of a GCC
9889   builtin and then its argument prototype would still apply.  */
9890#ifdef __cplusplus
9891extern "C"
9892#endif
9893char shl_load ();
9894/* The GNU C library defines this for functions which it implements
9895    to always fail with ENOSYS.  Some functions are actually named
9896    something starting with __ and the normal name is an alias.  */
9897#if defined __stub_shl_load || defined __stub___shl_load
9898choke me
9899#endif
9900
9901int
9902main ()
9903{
9904return shl_load ();
9905  ;
9906  return 0;
9907}
9908_ACEOF
9909rm -f conftest.$ac_objext conftest$ac_exeext
9910if { (ac_try="$ac_link"
9911case "(($ac_try" in
9912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913  *) ac_try_echo=$ac_try;;
9914esac
9915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9916$as_echo "$ac_try_echo") >&5
9917  (eval "$ac_link") 2>conftest.er1
9918  ac_status=$?
9919  grep -v '^ *+' conftest.er1 >conftest.err
9920  rm -f conftest.er1
9921  cat conftest.err >&5
9922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); } && {
9924	 test -z "$ac_c_werror_flag" ||
9925	 test ! -s conftest.err
9926       } && test -s conftest$ac_exeext && {
9927	 test "$cross_compiling" = yes ||
9928	 $as_test_x conftest$ac_exeext
9929       }; then
9930  ac_cv_func_shl_load=yes
9931else
9932  $as_echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935	ac_cv_func_shl_load=no
9936fi
9937
9938rm -rf conftest.dSYM
9939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9940      conftest$ac_exeext conftest.$ac_ext
9941fi
9942{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9943$as_echo "$ac_cv_func_shl_load" >&6; }
9944if test "x$ac_cv_func_shl_load" = x""yes; then
9945  lt_cv_dlopen="shl_load"
9946else
9947  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9948$as_echo_n "checking for shl_load in -ldld... " >&6; }
9949if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9950  $as_echo_n "(cached) " >&6
9951else
9952  ac_check_lib_save_LIBS=$LIBS
9953LIBS="-ldld  $LIBS"
9954cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h.  */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h.  */
9960
9961/* Override any GCC internal prototype to avoid an error.
9962   Use char because int might match the return type of a GCC
9963   builtin and then its argument prototype would still apply.  */
9964#ifdef __cplusplus
9965extern "C"
9966#endif
9967char shl_load ();
9968int
9969main ()
9970{
9971return shl_load ();
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext conftest$ac_exeext
9977if { (ac_try="$ac_link"
9978case "(($ac_try" in
9979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980  *) ac_try_echo=$ac_try;;
9981esac
9982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9983$as_echo "$ac_try_echo") >&5
9984  (eval "$ac_link") 2>conftest.er1
9985  ac_status=$?
9986  grep -v '^ *+' conftest.er1 >conftest.err
9987  rm -f conftest.er1
9988  cat conftest.err >&5
9989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990  (exit $ac_status); } && {
9991	 test -z "$ac_c_werror_flag" ||
9992	 test ! -s conftest.err
9993       } && test -s conftest$ac_exeext && {
9994	 test "$cross_compiling" = yes ||
9995	 $as_test_x conftest$ac_exeext
9996       }; then
9997  ac_cv_lib_dld_shl_load=yes
9998else
9999  $as_echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
10002	ac_cv_lib_dld_shl_load=no
10003fi
10004
10005rm -rf conftest.dSYM
10006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007      conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
10010{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10011$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10012if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10013  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10014else
10015  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10016$as_echo_n "checking for dlopen... " >&6; }
10017if test "${ac_cv_func_dlopen+set}" = set; then
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat >conftest.$ac_ext <<_ACEOF
10021/* confdefs.h.  */
10022_ACEOF
10023cat confdefs.h >>conftest.$ac_ext
10024cat >>conftest.$ac_ext <<_ACEOF
10025/* end confdefs.h.  */
10026/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10027   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10028#define dlopen innocuous_dlopen
10029
10030/* System header to define __stub macros and hopefully few prototypes,
10031    which can conflict with char dlopen (); below.
10032    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10033    <limits.h> exists even on freestanding compilers.  */
10034
10035#ifdef __STDC__
10036# include <limits.h>
10037#else
10038# include <assert.h>
10039#endif
10040
10041#undef dlopen
10042
10043/* Override any GCC internal prototype to avoid an error.
10044   Use char because int might match the return type of a GCC
10045   builtin and then its argument prototype would still apply.  */
10046#ifdef __cplusplus
10047extern "C"
10048#endif
10049char dlopen ();
10050/* The GNU C library defines this for functions which it implements
10051    to always fail with ENOSYS.  Some functions are actually named
10052    something starting with __ and the normal name is an alias.  */
10053#if defined __stub_dlopen || defined __stub___dlopen
10054choke me
10055#endif
10056
10057int
10058main ()
10059{
10060return dlopen ();
10061  ;
10062  return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext
10066if { (ac_try="$ac_link"
10067case "(($ac_try" in
10068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069  *) ac_try_echo=$ac_try;;
10070esac
10071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072$as_echo "$ac_try_echo") >&5
10073  (eval "$ac_link") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } && {
10080	 test -z "$ac_c_werror_flag" ||
10081	 test ! -s conftest.err
10082       } && test -s conftest$ac_exeext && {
10083	 test "$cross_compiling" = yes ||
10084	 $as_test_x conftest$ac_exeext
10085       }; then
10086  ac_cv_func_dlopen=yes
10087else
10088  $as_echo "$as_me: failed program was:" >&5
10089sed 's/^/| /' conftest.$ac_ext >&5
10090
10091	ac_cv_func_dlopen=no
10092fi
10093
10094rm -rf conftest.dSYM
10095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096      conftest$ac_exeext conftest.$ac_ext
10097fi
10098{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10099$as_echo "$ac_cv_func_dlopen" >&6; }
10100if test "x$ac_cv_func_dlopen" = x""yes; then
10101  lt_cv_dlopen="dlopen"
10102else
10103  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10104$as_echo_n "checking for dlopen in -ldl... " >&6; }
10105if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10106  $as_echo_n "(cached) " >&6
10107else
10108  ac_check_lib_save_LIBS=$LIBS
10109LIBS="-ldl  $LIBS"
10110cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h.  */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h.  */
10116
10117/* Override any GCC internal prototype to avoid an error.
10118   Use char because int might match the return type of a GCC
10119   builtin and then its argument prototype would still apply.  */
10120#ifdef __cplusplus
10121extern "C"
10122#endif
10123char dlopen ();
10124int
10125main ()
10126{
10127return dlopen ();
10128  ;
10129  return 0;
10130}
10131_ACEOF
10132rm -f conftest.$ac_objext conftest$ac_exeext
10133if { (ac_try="$ac_link"
10134case "(($ac_try" in
10135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136  *) ac_try_echo=$ac_try;;
10137esac
10138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10139$as_echo "$ac_try_echo") >&5
10140  (eval "$ac_link") 2>conftest.er1
10141  ac_status=$?
10142  grep -v '^ *+' conftest.er1 >conftest.err
10143  rm -f conftest.er1
10144  cat conftest.err >&5
10145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); } && {
10147	 test -z "$ac_c_werror_flag" ||
10148	 test ! -s conftest.err
10149       } && test -s conftest$ac_exeext && {
10150	 test "$cross_compiling" = yes ||
10151	 $as_test_x conftest$ac_exeext
10152       }; then
10153  ac_cv_lib_dl_dlopen=yes
10154else
10155  $as_echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158	ac_cv_lib_dl_dlopen=no
10159fi
10160
10161rm -rf conftest.dSYM
10162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10163      conftest$ac_exeext conftest.$ac_ext
10164LIBS=$ac_check_lib_save_LIBS
10165fi
10166{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10167$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10168if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10169  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10170else
10171  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10172$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10173if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10174  $as_echo_n "(cached) " >&6
10175else
10176  ac_check_lib_save_LIBS=$LIBS
10177LIBS="-lsvld  $LIBS"
10178cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h.  */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h.  */
10184
10185/* Override any GCC internal prototype to avoid an error.
10186   Use char because int might match the return type of a GCC
10187   builtin and then its argument prototype would still apply.  */
10188#ifdef __cplusplus
10189extern "C"
10190#endif
10191char dlopen ();
10192int
10193main ()
10194{
10195return dlopen ();
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (ac_try="$ac_link"
10202case "(($ac_try" in
10203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204  *) ac_try_echo=$ac_try;;
10205esac
10206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207$as_echo "$ac_try_echo") >&5
10208  (eval "$ac_link") 2>conftest.er1
10209  ac_status=$?
10210  grep -v '^ *+' conftest.er1 >conftest.err
10211  rm -f conftest.er1
10212  cat conftest.err >&5
10213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214  (exit $ac_status); } && {
10215	 test -z "$ac_c_werror_flag" ||
10216	 test ! -s conftest.err
10217       } && test -s conftest$ac_exeext && {
10218	 test "$cross_compiling" = yes ||
10219	 $as_test_x conftest$ac_exeext
10220       }; then
10221  ac_cv_lib_svld_dlopen=yes
10222else
10223  $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226	ac_cv_lib_svld_dlopen=no
10227fi
10228
10229rm -rf conftest.dSYM
10230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231      conftest$ac_exeext conftest.$ac_ext
10232LIBS=$ac_check_lib_save_LIBS
10233fi
10234{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10235$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10236if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10237  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10238else
10239  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10240$as_echo_n "checking for dld_link in -ldld... " >&6; }
10241if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10242  $as_echo_n "(cached) " >&6
10243else
10244  ac_check_lib_save_LIBS=$LIBS
10245LIBS="-ldld  $LIBS"
10246cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h.  */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h.  */
10252
10253/* Override any GCC internal prototype to avoid an error.
10254   Use char because int might match the return type of a GCC
10255   builtin and then its argument prototype would still apply.  */
10256#ifdef __cplusplus
10257extern "C"
10258#endif
10259char dld_link ();
10260int
10261main ()
10262{
10263return dld_link ();
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (ac_try="$ac_link"
10270case "(($ac_try" in
10271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272  *) ac_try_echo=$ac_try;;
10273esac
10274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275$as_echo "$ac_try_echo") >&5
10276  (eval "$ac_link") 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } && {
10283	 test -z "$ac_c_werror_flag" ||
10284	 test ! -s conftest.err
10285       } && test -s conftest$ac_exeext && {
10286	 test "$cross_compiling" = yes ||
10287	 $as_test_x conftest$ac_exeext
10288       }; then
10289  ac_cv_lib_dld_dld_link=yes
10290else
10291  $as_echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294	ac_cv_lib_dld_dld_link=no
10295fi
10296
10297rm -rf conftest.dSYM
10298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299      conftest$ac_exeext conftest.$ac_ext
10300LIBS=$ac_check_lib_save_LIBS
10301fi
10302{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10303$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10304if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10305  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10306fi
10307
10308
10309fi
10310
10311
10312fi
10313
10314
10315fi
10316
10317
10318fi
10319
10320
10321fi
10322
10323    ;;
10324  esac
10325
10326  if test "x$lt_cv_dlopen" != xno; then
10327    enable_dlopen=yes
10328  else
10329    enable_dlopen=no
10330  fi
10331
10332  case $lt_cv_dlopen in
10333  dlopen)
10334    save_CPPFLAGS="$CPPFLAGS"
10335    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10336
10337    save_LDFLAGS="$LDFLAGS"
10338    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10339
10340    save_LIBS="$LIBS"
10341    LIBS="$lt_cv_dlopen_libs $LIBS"
10342
10343    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10344$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10345if test "${lt_cv_dlopen_self+set}" = set; then
10346  $as_echo_n "(cached) " >&6
10347else
10348  	  if test "$cross_compiling" = yes; then :
10349  lt_cv_dlopen_self=cross
10350else
10351  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10352  lt_status=$lt_dlunknown
10353  cat > conftest.$ac_ext <<EOF
10354#line 10354 "configure"
10355#include "confdefs.h"
10356
10357#if HAVE_DLFCN_H
10358#include <dlfcn.h>
10359#endif
10360
10361#include <stdio.h>
10362
10363#ifdef RTLD_GLOBAL
10364#  define LT_DLGLOBAL		RTLD_GLOBAL
10365#else
10366#  ifdef DL_GLOBAL
10367#    define LT_DLGLOBAL		DL_GLOBAL
10368#  else
10369#    define LT_DLGLOBAL		0
10370#  endif
10371#endif
10372
10373/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10374   find out it does not work in some platform. */
10375#ifndef LT_DLLAZY_OR_NOW
10376#  ifdef RTLD_LAZY
10377#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10378#  else
10379#    ifdef DL_LAZY
10380#      define LT_DLLAZY_OR_NOW		DL_LAZY
10381#    else
10382#      ifdef RTLD_NOW
10383#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10384#      else
10385#        ifdef DL_NOW
10386#          define LT_DLLAZY_OR_NOW	DL_NOW
10387#        else
10388#          define LT_DLLAZY_OR_NOW	0
10389#        endif
10390#      endif
10391#    endif
10392#  endif
10393#endif
10394
10395#ifdef __cplusplus
10396extern "C" void exit (int);
10397#endif
10398
10399void fnord() { int i=42;}
10400int main ()
10401{
10402  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10403  int status = $lt_dlunknown;
10404
10405  if (self)
10406    {
10407      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10408      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10409      /* dlclose (self); */
10410    }
10411  else
10412    puts (dlerror ());
10413
10414    exit (status);
10415}
10416EOF
10417  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418  (eval $ac_link) 2>&5
10419  ac_status=$?
10420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10422    (./conftest; exit; ) >&5 2>/dev/null
10423    lt_status=$?
10424    case x$lt_status in
10425      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10426      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10427      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10428    esac
10429  else :
10430    # compilation failed
10431    lt_cv_dlopen_self=no
10432  fi
10433fi
10434rm -fr conftest*
10435
10436
10437fi
10438{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10439$as_echo "$lt_cv_dlopen_self" >&6; }
10440
10441    if test "x$lt_cv_dlopen_self" = xyes; then
10442      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10443      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10444$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10445if test "${lt_cv_dlopen_self_static+set}" = set; then
10446  $as_echo_n "(cached) " >&6
10447else
10448  	  if test "$cross_compiling" = yes; then :
10449  lt_cv_dlopen_self_static=cross
10450else
10451  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452  lt_status=$lt_dlunknown
10453  cat > conftest.$ac_ext <<EOF
10454#line 10454 "configure"
10455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462
10463#ifdef RTLD_GLOBAL
10464#  define LT_DLGLOBAL		RTLD_GLOBAL
10465#else
10466#  ifdef DL_GLOBAL
10467#    define LT_DLGLOBAL		DL_GLOBAL
10468#  else
10469#    define LT_DLGLOBAL		0
10470#  endif
10471#endif
10472
10473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474   find out it does not work in some platform. */
10475#ifndef LT_DLLAZY_OR_NOW
10476#  ifdef RTLD_LAZY
10477#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10478#  else
10479#    ifdef DL_LAZY
10480#      define LT_DLLAZY_OR_NOW		DL_LAZY
10481#    else
10482#      ifdef RTLD_NOW
10483#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10484#      else
10485#        ifdef DL_NOW
10486#          define LT_DLLAZY_OR_NOW	DL_NOW
10487#        else
10488#          define LT_DLLAZY_OR_NOW	0
10489#        endif
10490#      endif
10491#    endif
10492#  endif
10493#endif
10494
10495#ifdef __cplusplus
10496extern "C" void exit (int);
10497#endif
10498
10499void fnord() { int i=42;}
10500int main ()
10501{
10502  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503  int status = $lt_dlunknown;
10504
10505  if (self)
10506    {
10507      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10508      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509      /* dlclose (self); */
10510    }
10511  else
10512    puts (dlerror ());
10513
10514    exit (status);
10515}
10516EOF
10517  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518  (eval $ac_link) 2>&5
10519  ac_status=$?
10520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522    (./conftest; exit; ) >&5 2>/dev/null
10523    lt_status=$?
10524    case x$lt_status in
10525      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10526      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10527      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10528    esac
10529  else :
10530    # compilation failed
10531    lt_cv_dlopen_self_static=no
10532  fi
10533fi
10534rm -fr conftest*
10535
10536
10537fi
10538{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10539$as_echo "$lt_cv_dlopen_self_static" >&6; }
10540    fi
10541
10542    CPPFLAGS="$save_CPPFLAGS"
10543    LDFLAGS="$save_LDFLAGS"
10544    LIBS="$save_LIBS"
10545    ;;
10546  esac
10547
10548  case $lt_cv_dlopen_self in
10549  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10550  *) enable_dlopen_self=unknown ;;
10551  esac
10552
10553  case $lt_cv_dlopen_self_static in
10554  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10555  *) enable_dlopen_self_static=unknown ;;
10556  esac
10557fi
10558
10559
10560# Report which library types will actually be built
10561{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10562$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10563{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10564$as_echo "$can_build_shared" >&6; }
10565
10566{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10567$as_echo_n "checking whether to build shared libraries... " >&6; }
10568test "$can_build_shared" = "no" && enable_shared=no
10569
10570# On AIX, shared libraries and static libraries use the same namespace, and
10571# are all built from PIC.
10572case $host_os in
10573aix3*)
10574  test "$enable_shared" = yes && enable_static=no
10575  if test -n "$RANLIB"; then
10576    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10577    postinstall_cmds='$RANLIB $lib'
10578  fi
10579  ;;
10580
10581aix[4-9]*)
10582  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10583    test "$enable_shared" = yes && enable_static=no
10584  fi
10585    ;;
10586esac
10587{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10588$as_echo "$enable_shared" >&6; }
10589
10590{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10591$as_echo_n "checking whether to build static libraries... " >&6; }
10592# Make sure either enable_shared or enable_static is yes.
10593test "$enable_shared" = yes || enable_static=yes
10594{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10595$as_echo "$enable_static" >&6; }
10596
10597# The else clause should only fire when bootstrapping the
10598# libtool distribution, otherwise you forgot to ship ltmain.sh
10599# with your package, and you will get complaints that there are
10600# no rules to generate ltmain.sh.
10601if test -f "$ltmain"; then
10602  # See if we are running on zsh, and set the options which allow our commands through
10603  # without removal of \ escapes.
10604  if test -n "${ZSH_VERSION+set}" ; then
10605    setopt NO_GLOB_SUBST
10606  fi
10607  # Now quote all the things that may contain metacharacters while being
10608  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10609  # variables and quote the copies for generation of the libtool script.
10610  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10611    SED SHELL STRIP \
10612    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10613    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10614    deplibs_check_method reload_flag reload_cmds need_locks \
10615    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10616    lt_cv_sys_global_symbol_to_c_name_address \
10617    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10618    old_postinstall_cmds old_postuninstall_cmds \
10619    compiler \
10620    CC \
10621    LD \
10622    lt_prog_compiler_wl \
10623    lt_prog_compiler_pic \
10624    lt_prog_compiler_static \
10625    lt_prog_compiler_no_builtin_flag \
10626    export_dynamic_flag_spec \
10627    thread_safe_flag_spec \
10628    whole_archive_flag_spec \
10629    enable_shared_with_static_runtimes \
10630    old_archive_cmds \
10631    old_archive_from_new_cmds \
10632    predep_objects \
10633    postdep_objects \
10634    predeps \
10635    postdeps \
10636    compiler_lib_search_path \
10637    compiler_lib_search_dirs \
10638    archive_cmds \
10639    archive_expsym_cmds \
10640    postinstall_cmds \
10641    postuninstall_cmds \
10642    old_archive_from_expsyms_cmds \
10643    allow_undefined_flag \
10644    no_undefined_flag \
10645    export_symbols_cmds \
10646    hardcode_libdir_flag_spec \
10647    hardcode_libdir_flag_spec_ld \
10648    hardcode_libdir_separator \
10649    hardcode_automatic \
10650    module_cmds \
10651    module_expsym_cmds \
10652    lt_cv_prog_compiler_c_o \
10653    fix_srcfile_path \
10654    exclude_expsyms \
10655    include_expsyms; do
10656
10657    case $var in
10658    old_archive_cmds | \
10659    old_archive_from_new_cmds | \
10660    archive_cmds | \
10661    archive_expsym_cmds | \
10662    module_cmds | \
10663    module_expsym_cmds | \
10664    old_archive_from_expsyms_cmds | \
10665    export_symbols_cmds | \
10666    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10667    postinstall_cmds | postuninstall_cmds | \
10668    old_postinstall_cmds | old_postuninstall_cmds | \
10669    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10670      # Double-quote double-evaled strings.
10671      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10672      ;;
10673    *)
10674      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10675      ;;
10676    esac
10677  done
10678
10679  case $lt_echo in
10680  *'\$0 --fallback-echo"')
10681    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10682    ;;
10683  esac
10684
10685cfgfile="${ofile}T"
10686  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10687  $rm -f "$cfgfile"
10688  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10689$as_echo "$as_me: creating $ofile" >&6;}
10690
10691  cat <<__EOF__ >> "$cfgfile"
10692#! $SHELL
10693
10694# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10695# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10696# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10697#
10698# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10699# Free Software Foundation, Inc.
10700#
10701# This file is part of GNU Libtool:
10702# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10703#
10704# This program is free software; you can redistribute it and/or modify
10705# it under the terms of the GNU General Public License as published by
10706# the Free Software Foundation; either version 2 of the License, or
10707# (at your option) any later version.
10708#
10709# This program is distributed in the hope that it will be useful, but
10710# WITHOUT ANY WARRANTY; without even the implied warranty of
10711# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10712# General Public License for more details.
10713#
10714# You should have received a copy of the GNU General Public License
10715# along with this program; if not, write to the Free Software
10716# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10717#
10718# As a special exception to the GNU General Public License, if you
10719# distribute this file as part of a program that contains a
10720# configuration script generated by Autoconf, you may include it under
10721# the same distribution terms that you use for the rest of that program.
10722
10723# A sed program that does not truncate output.
10724SED=$lt_SED
10725
10726# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10727Xsed="$SED -e 1s/^X//"
10728
10729# The HP-UX ksh and POSIX shell print the target directory to stdout
10730# if CDPATH is set.
10731(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10732
10733# The names of the tagged configurations supported by this script.
10734available_tags=
10735
10736# ### BEGIN LIBTOOL CONFIG
10737
10738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10739
10740# Shell to use when invoking shell scripts.
10741SHELL=$lt_SHELL
10742
10743# Whether or not to build shared libraries.
10744build_libtool_libs=$enable_shared
10745
10746# Whether or not to build static libraries.
10747build_old_libs=$enable_static
10748
10749# Whether or not to add -lc for building shared libraries.
10750build_libtool_need_lc=$archive_cmds_need_lc
10751
10752# Whether or not to disallow shared libs when runtime libs are static
10753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10754
10755# Whether or not to optimize for fast installation.
10756fast_install=$enable_fast_install
10757
10758# The host system.
10759host_alias=$host_alias
10760host=$host
10761host_os=$host_os
10762
10763# The build system.
10764build_alias=$build_alias
10765build=$build
10766build_os=$build_os
10767
10768# An echo program that does not interpret backslashes.
10769echo=$lt_echo
10770
10771# The archiver.
10772AR=$lt_AR
10773AR_FLAGS=$lt_AR_FLAGS
10774
10775# A C compiler.
10776LTCC=$lt_LTCC
10777
10778# LTCC compiler flags.
10779LTCFLAGS=$lt_LTCFLAGS
10780
10781# A language-specific compiler.
10782CC=$lt_compiler
10783
10784# Is the compiler the GNU C compiler?
10785with_gcc=$GCC
10786
10787# An ERE matcher.
10788EGREP=$lt_EGREP
10789
10790# The linker used to build libraries.
10791LD=$lt_LD
10792
10793# Whether we need hard or soft links.
10794LN_S=$lt_LN_S
10795
10796# A BSD-compatible nm program.
10797NM=$lt_NM
10798
10799# A symbol stripping program
10800STRIP=$lt_STRIP
10801
10802# Used to examine libraries when file_magic_cmd begins "file"
10803MAGIC_CMD=$MAGIC_CMD
10804
10805# Used on cygwin: DLL creation program.
10806DLLTOOL="$DLLTOOL"
10807
10808# Used on cygwin: object dumper.
10809OBJDUMP="$OBJDUMP"
10810
10811# Used on cygwin: assembler.
10812AS="$AS"
10813
10814# The name of the directory that contains temporary libtool files.
10815objdir=$objdir
10816
10817# How to create reloadable object files.
10818reload_flag=$lt_reload_flag
10819reload_cmds=$lt_reload_cmds
10820
10821# How to pass a linker flag through the compiler.
10822wl=$lt_lt_prog_compiler_wl
10823
10824# Object file suffix (normally "o").
10825objext="$ac_objext"
10826
10827# Old archive suffix (normally "a").
10828libext="$libext"
10829
10830# Shared library suffix (normally ".so").
10831shrext_cmds='$shrext_cmds'
10832
10833# Executable file suffix (normally "").
10834exeext="$exeext"
10835
10836# Additional compiler flags for building library objects.
10837pic_flag=$lt_lt_prog_compiler_pic
10838pic_mode=$pic_mode
10839
10840# What is the maximum length of a command?
10841max_cmd_len=$lt_cv_sys_max_cmd_len
10842
10843# Does compiler simultaneously support -c and -o options?
10844compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10845
10846# Must we lock files when doing compilation?
10847need_locks=$lt_need_locks
10848
10849# Do we need the lib prefix for modules?
10850need_lib_prefix=$need_lib_prefix
10851
10852# Do we need a version for libraries?
10853need_version=$need_version
10854
10855# Whether dlopen is supported.
10856dlopen_support=$enable_dlopen
10857
10858# Whether dlopen of programs is supported.
10859dlopen_self=$enable_dlopen_self
10860
10861# Whether dlopen of statically linked programs is supported.
10862dlopen_self_static=$enable_dlopen_self_static
10863
10864# Compiler flag to prevent dynamic linking.
10865link_static_flag=$lt_lt_prog_compiler_static
10866
10867# Compiler flag to turn off builtin functions.
10868no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10869
10870# Compiler flag to allow reflexive dlopens.
10871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10872
10873# Compiler flag to generate shared objects directly from archives.
10874whole_archive_flag_spec=$lt_whole_archive_flag_spec
10875
10876# Compiler flag to generate thread-safe objects.
10877thread_safe_flag_spec=$lt_thread_safe_flag_spec
10878
10879# Library versioning type.
10880version_type=$version_type
10881
10882# Format of library name prefix.
10883libname_spec=$lt_libname_spec
10884
10885# List of archive names.  First name is the real one, the rest are links.
10886# The last name is the one that the linker finds with -lNAME.
10887library_names_spec=$lt_library_names_spec
10888
10889# The coded name of the library, if different from the real name.
10890soname_spec=$lt_soname_spec
10891
10892# Commands used to build and install an old-style archive.
10893RANLIB=$lt_RANLIB
10894old_archive_cmds=$lt_old_archive_cmds
10895old_postinstall_cmds=$lt_old_postinstall_cmds
10896old_postuninstall_cmds=$lt_old_postuninstall_cmds
10897
10898# Create an old-style archive from a shared archive.
10899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10900
10901# Create a temporary old-style archive to link instead of a shared archive.
10902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10903
10904# Commands used to build and install a shared archive.
10905archive_cmds=$lt_archive_cmds
10906archive_expsym_cmds=$lt_archive_expsym_cmds
10907postinstall_cmds=$lt_postinstall_cmds
10908postuninstall_cmds=$lt_postuninstall_cmds
10909
10910# Commands used to build a loadable module (assumed same as above if empty)
10911module_cmds=$lt_module_cmds
10912module_expsym_cmds=$lt_module_expsym_cmds
10913
10914# Commands to strip libraries.
10915old_striplib=$lt_old_striplib
10916striplib=$lt_striplib
10917
10918# Dependencies to place before the objects being linked to create a
10919# shared library.
10920predep_objects=$lt_predep_objects
10921
10922# Dependencies to place after the objects being linked to create a
10923# shared library.
10924postdep_objects=$lt_postdep_objects
10925
10926# Dependencies to place before the objects being linked to create a
10927# shared library.
10928predeps=$lt_predeps
10929
10930# Dependencies to place after the objects being linked to create a
10931# shared library.
10932postdeps=$lt_postdeps
10933
10934# The directories searched by this compiler when creating a shared
10935# library
10936compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10937
10938# The library search path used internally by the compiler when linking
10939# a shared library.
10940compiler_lib_search_path=$lt_compiler_lib_search_path
10941
10942# Method to check whether dependent libraries are shared objects.
10943deplibs_check_method=$lt_deplibs_check_method
10944
10945# Command to use when deplibs_check_method == file_magic.
10946file_magic_cmd=$lt_file_magic_cmd
10947
10948# Flag that allows shared libraries with undefined symbols to be built.
10949allow_undefined_flag=$lt_allow_undefined_flag
10950
10951# Flag that forces no undefined symbols.
10952no_undefined_flag=$lt_no_undefined_flag
10953
10954# Commands used to finish a libtool library installation in a directory.
10955finish_cmds=$lt_finish_cmds
10956
10957# Same as above, but a single script fragment to be evaled but not shown.
10958finish_eval=$lt_finish_eval
10959
10960# Take the output of nm and produce a listing of raw symbols and C names.
10961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10962
10963# Transform the output of nm in a proper C declaration
10964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10965
10966# Transform the output of nm in a C name address pair
10967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10968
10969# This is the shared library runtime path variable.
10970runpath_var=$runpath_var
10971
10972# This is the shared library path variable.
10973shlibpath_var=$shlibpath_var
10974
10975# Is shlibpath searched before the hard-coded library search path?
10976shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10977
10978# How to hardcode a shared library path into an executable.
10979hardcode_action=$hardcode_action
10980
10981# Whether we should hardcode library paths into libraries.
10982hardcode_into_libs=$hardcode_into_libs
10983
10984# Flag to hardcode \$libdir into a binary during linking.
10985# This must work even if \$libdir does not exist.
10986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10987
10988# If ld is used when linking, flag to hardcode \$libdir into
10989# a binary during linking. This must work even if \$libdir does
10990# not exist.
10991hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10992
10993# Whether we need a single -rpath flag with a separated argument.
10994hardcode_libdir_separator=$lt_hardcode_libdir_separator
10995
10996# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10997# resulting binary.
10998hardcode_direct=$hardcode_direct
10999
11000# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11001# resulting binary.
11002hardcode_minus_L=$hardcode_minus_L
11003
11004# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11005# the resulting binary.
11006hardcode_shlibpath_var=$hardcode_shlibpath_var
11007
11008# Set to yes if building a shared library automatically hardcodes DIR into the library
11009# and all subsequent libraries and executables linked against it.
11010hardcode_automatic=$hardcode_automatic
11011
11012# Variables whose values should be saved in libtool wrapper scripts and
11013# restored at relink time.
11014variables_saved_for_relink="$variables_saved_for_relink"
11015
11016# Whether libtool must link a program against all its dependency libraries.
11017link_all_deplibs=$link_all_deplibs
11018
11019# Compile-time system search path for libraries
11020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11021
11022# Run-time system search path for libraries
11023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11024
11025# Fix the shell variable \$srcfile for the compiler.
11026fix_srcfile_path=$lt_fix_srcfile_path
11027
11028# Set to yes if exported symbols are required.
11029always_export_symbols=$always_export_symbols
11030
11031# The commands to list exported symbols.
11032export_symbols_cmds=$lt_export_symbols_cmds
11033
11034# The commands to extract the exported symbol list from a shared archive.
11035extract_expsyms_cmds=$lt_extract_expsyms_cmds
11036
11037# Symbols that should not be listed in the preloaded symbols.
11038exclude_expsyms=$lt_exclude_expsyms
11039
11040# Symbols that must always be exported.
11041include_expsyms=$lt_include_expsyms
11042
11043# ### END LIBTOOL CONFIG
11044
11045__EOF__
11046
11047
11048  case $host_os in
11049  aix3*)
11050    cat <<\EOF >> "$cfgfile"
11051
11052# AIX sometimes has problems with the GCC collect2 program.  For some
11053# reason, if we set the COLLECT_NAMES environment variable, the problems
11054# vanish in a puff of smoke.
11055if test "X${COLLECT_NAMES+set}" != Xset; then
11056  COLLECT_NAMES=
11057  export COLLECT_NAMES
11058fi
11059EOF
11060    ;;
11061  esac
11062
11063  # We use sed instead of cat because bash on DJGPP gets confused if
11064  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11065  # text mode, it properly converts lines to CR/LF.  This bash problem
11066  # is reportedly fixed, but why not run on old versions too?
11067  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11068
11069  mv -f "$cfgfile" "$ofile" || \
11070    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11071  chmod +x "$ofile"
11072
11073else
11074  # If there is no Makefile yet, we rely on a make rule to execute
11075  # `config.status --recheck' to rerun these tests and create the
11076  # libtool script then.
11077  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11078  if test -f "$ltmain_in"; then
11079    test -f Makefile && make "$ltmain"
11080  fi
11081fi
11082
11083
11084ac_ext=c
11085ac_cpp='$CPP $CPPFLAGS'
11086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088ac_compiler_gnu=$ac_cv_c_compiler_gnu
11089
11090CC="$lt_save_CC"
11091
11092
11093# Check whether --with-tags was given.
11094if test "${with_tags+set}" = set; then
11095  withval=$with_tags; tagnames="$withval"
11096fi
11097
11098
11099if test -f "$ltmain" && test -n "$tagnames"; then
11100  if test ! -f "${ofile}"; then
11101    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11102$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11103  fi
11104
11105  if test -z "$LTCC"; then
11106    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11107    if test -z "$LTCC"; then
11108      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11109$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11110    else
11111      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11112$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11113    fi
11114  fi
11115  if test -z "$LTCFLAGS"; then
11116    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11117  fi
11118
11119  # Extract list of available tagged configurations in $ofile.
11120  # Note that this assumes the entire list is on one line.
11121  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11122
11123  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11124  for tagname in $tagnames; do
11125    IFS="$lt_save_ifs"
11126    # Check whether tagname contains only valid characters
11127    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11128    "") ;;
11129    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11130$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11131   { (exit 1); exit 1; }; }
11132	;;
11133    esac
11134
11135    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11136    then
11137      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11138$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11139   { (exit 1); exit 1; }; }
11140    fi
11141
11142    # Update the list of available tags.
11143    if test -n "$tagname"; then
11144      echo appending configuration tag \"$tagname\" to $ofile
11145
11146      case $tagname in
11147      CXX)
11148	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11149	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11150	    (test "X$CXX" != "Xg++"))) ; then
11151	  ac_ext=cpp
11152ac_cpp='$CXXCPP $CPPFLAGS'
11153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11156
11157
11158
11159
11160archive_cmds_need_lc_CXX=no
11161allow_undefined_flag_CXX=
11162always_export_symbols_CXX=no
11163archive_expsym_cmds_CXX=
11164export_dynamic_flag_spec_CXX=
11165hardcode_direct_CXX=no
11166hardcode_libdir_flag_spec_CXX=
11167hardcode_libdir_flag_spec_ld_CXX=
11168hardcode_libdir_separator_CXX=
11169hardcode_minus_L_CXX=no
11170hardcode_shlibpath_var_CXX=unsupported
11171hardcode_automatic_CXX=no
11172module_cmds_CXX=
11173module_expsym_cmds_CXX=
11174link_all_deplibs_CXX=unknown
11175old_archive_cmds_CXX=$old_archive_cmds
11176no_undefined_flag_CXX=
11177whole_archive_flag_spec_CXX=
11178enable_shared_with_static_runtimes_CXX=no
11179
11180# Dependencies to place before and after the object being linked:
11181predep_objects_CXX=
11182postdep_objects_CXX=
11183predeps_CXX=
11184postdeps_CXX=
11185compiler_lib_search_path_CXX=
11186compiler_lib_search_dirs_CXX=
11187
11188# Source file extension for C++ test sources.
11189ac_ext=cpp
11190
11191# Object file extension for compiled C++ test sources.
11192objext=o
11193objext_CXX=$objext
11194
11195# Code to be used in simple compile tests
11196lt_simple_compile_test_code="int some_variable = 0;"
11197
11198# Code to be used in simple link tests
11199lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11200
11201# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11202
11203# If no C compiler was specified, use CC.
11204LTCC=${LTCC-"$CC"}
11205
11206# If no C compiler flags were specified, use CFLAGS.
11207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11208
11209# Allow CC to be a program name with arguments.
11210compiler=$CC
11211
11212
11213# save warnings/boilerplate of simple test code
11214ac_outfile=conftest.$ac_objext
11215echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11216eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11217_lt_compiler_boilerplate=`cat conftest.err`
11218$rm conftest*
11219
11220ac_outfile=conftest.$ac_objext
11221echo "$lt_simple_link_test_code" >conftest.$ac_ext
11222eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11223_lt_linker_boilerplate=`cat conftest.err`
11224$rm -r conftest*
11225
11226
11227# Allow CC to be a program name with arguments.
11228lt_save_CC=$CC
11229lt_save_LD=$LD
11230lt_save_GCC=$GCC
11231GCC=$GXX
11232lt_save_with_gnu_ld=$with_gnu_ld
11233lt_save_path_LD=$lt_cv_path_LD
11234if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11235  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11236else
11237  $as_unset lt_cv_prog_gnu_ld
11238fi
11239if test -n "${lt_cv_path_LDCXX+set}"; then
11240  lt_cv_path_LD=$lt_cv_path_LDCXX
11241else
11242  $as_unset lt_cv_path_LD
11243fi
11244test -z "${LDCXX+set}" || LD=$LDCXX
11245CC=${CXX-"c++"}
11246compiler=$CC
11247compiler_CXX=$CC
11248for cc_temp in $compiler""; do
11249  case $cc_temp in
11250    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11251    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11252    \-*) ;;
11253    *) break;;
11254  esac
11255done
11256cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11257
11258
11259# We don't want -fno-exception wen compiling C++ code, so set the
11260# no_builtin_flag separately
11261if test "$GXX" = yes; then
11262  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11263else
11264  lt_prog_compiler_no_builtin_flag_CXX=
11265fi
11266
11267if test "$GXX" = yes; then
11268  # Set up default GNU C++ configuration
11269
11270
11271# Check whether --with-gnu-ld was given.
11272if test "${with_gnu_ld+set}" = set; then
11273  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11274else
11275  with_gnu_ld=no
11276fi
11277
11278ac_prog=ld
11279if test "$GCC" = yes; then
11280  # Check if gcc -print-prog-name=ld gives a path.
11281  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11282$as_echo_n "checking for ld used by $CC... " >&6; }
11283  case $host in
11284  *-*-mingw*)
11285    # gcc leaves a trailing carriage return which upsets mingw
11286    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11287  *)
11288    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11289  esac
11290  case $ac_prog in
11291    # Accept absolute paths.
11292    [\\/]* | ?:[\\/]*)
11293      re_direlt='/[^/][^/]*/\.\./'
11294      # Canonicalize the pathname of ld
11295      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11296      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11297	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11298      done
11299      test -z "$LD" && LD="$ac_prog"
11300      ;;
11301  "")
11302    # If it fails, then pretend we aren't using GCC.
11303    ac_prog=ld
11304    ;;
11305  *)
11306    # If it is relative, then search for the first ld in PATH.
11307    with_gnu_ld=unknown
11308    ;;
11309  esac
11310elif test "$with_gnu_ld" = yes; then
11311  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11312$as_echo_n "checking for GNU ld... " >&6; }
11313else
11314  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11315$as_echo_n "checking for non-GNU ld... " >&6; }
11316fi
11317if test "${lt_cv_path_LD+set}" = set; then
11318  $as_echo_n "(cached) " >&6
11319else
11320  if test -z "$LD"; then
11321  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11322  for ac_dir in $PATH; do
11323    IFS="$lt_save_ifs"
11324    test -z "$ac_dir" && ac_dir=.
11325    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11326      lt_cv_path_LD="$ac_dir/$ac_prog"
11327      # Check to see if the program is GNU ld.  I'd rather use --version,
11328      # but apparently some variants of GNU ld only accept -v.
11329      # Break only if it was the GNU/non-GNU ld that we prefer.
11330      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11331      *GNU* | *'with BFD'*)
11332	test "$with_gnu_ld" != no && break
11333	;;
11334      *)
11335	test "$with_gnu_ld" != yes && break
11336	;;
11337      esac
11338    fi
11339  done
11340  IFS="$lt_save_ifs"
11341else
11342  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11343fi
11344fi
11345
11346LD="$lt_cv_path_LD"
11347if test -n "$LD"; then
11348  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11349$as_echo "$LD" >&6; }
11350else
11351  { $as_echo "$as_me:$LINENO: result: no" >&5
11352$as_echo "no" >&6; }
11353fi
11354test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11355$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11356   { (exit 1); exit 1; }; }
11357{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11358$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11359if test "${lt_cv_prog_gnu_ld+set}" = set; then
11360  $as_echo_n "(cached) " >&6
11361else
11362  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11363case `$LD -v 2>&1 </dev/null` in
11364*GNU* | *'with BFD'*)
11365  lt_cv_prog_gnu_ld=yes
11366  ;;
11367*)
11368  lt_cv_prog_gnu_ld=no
11369  ;;
11370esac
11371fi
11372{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11373$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11374with_gnu_ld=$lt_cv_prog_gnu_ld
11375
11376
11377
11378  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11379  # archiving commands below assume that GNU ld is being used.
11380  if test "$with_gnu_ld" = yes; then
11381    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382    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'
11383
11384    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11385    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11386
11387    # If archive_cmds runs LD, not CC, wlarc should be empty
11388    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11389    #     investigate it a little bit more. (MM)
11390    wlarc='${wl}'
11391
11392    # ancient GNU ld didn't support --whole-archive et. al.
11393    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11394	grep 'no-whole-archive' > /dev/null; then
11395      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11396    else
11397      whole_archive_flag_spec_CXX=
11398    fi
11399  else
11400    with_gnu_ld=no
11401    wlarc=
11402
11403    # A generic and very simple default shared library creation
11404    # command for GNU C++ for the case where it uses the native
11405    # linker, instead of GNU ld.  If possible, this setting should
11406    # overridden to take advantage of the native linker features on
11407    # the platform it is being used on.
11408    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11409  fi
11410
11411  # Commands to make compiler produce verbose output that lists
11412  # what "hidden" libraries, object files and flags are used when
11413  # linking a shared library.
11414  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11415
11416else
11417  GXX=no
11418  with_gnu_ld=no
11419  wlarc=
11420fi
11421
11422# PORTME: fill in a description of your system's C++ link characteristics
11423{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11424$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11425ld_shlibs_CXX=yes
11426case $host_os in
11427  aix3*)
11428    # FIXME: insert proper C++ library support
11429    ld_shlibs_CXX=no
11430    ;;
11431  aix[4-9]*)
11432    if test "$host_cpu" = ia64; then
11433      # On IA64, the linker does run time linking by default, so we don't
11434      # have to do anything special.
11435      aix_use_runtimelinking=no
11436      exp_sym_flag='-Bexport'
11437      no_entry_flag=""
11438    else
11439      aix_use_runtimelinking=no
11440
11441      # Test if we are trying to use run time linking or normal
11442      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11443      # need to do runtime linking.
11444      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11445	for ld_flag in $LDFLAGS; do
11446	  case $ld_flag in
11447	  *-brtl*)
11448	    aix_use_runtimelinking=yes
11449	    break
11450	    ;;
11451	  esac
11452	done
11453	;;
11454      esac
11455
11456      exp_sym_flag='-bexport'
11457      no_entry_flag='-bnoentry'
11458    fi
11459
11460    # When large executables or shared objects are built, AIX ld can
11461    # have problems creating the table of contents.  If linking a library
11462    # or program results in "error TOC overflow" add -mminimal-toc to
11463    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11464    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11465
11466    archive_cmds_CXX=''
11467    hardcode_direct_CXX=yes
11468    hardcode_libdir_separator_CXX=':'
11469    link_all_deplibs_CXX=yes
11470
11471    if test "$GXX" = yes; then
11472      case $host_os in aix4.[012]|aix4.[012].*)
11473      # We only want to do this on AIX 4.2 and lower, the check
11474      # below for broken collect2 doesn't work under 4.3+
11475	collect2name=`${CC} -print-prog-name=collect2`
11476	if test -f "$collect2name" && \
11477	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11478	then
11479	  # We have reworked collect2
11480	  :
11481	else
11482	  # We have old collect2
11483	  hardcode_direct_CXX=unsupported
11484	  # It fails to find uninstalled libraries when the uninstalled
11485	  # path is not listed in the libpath.  Setting hardcode_minus_L
11486	  # to unsupported forces relinking
11487	  hardcode_minus_L_CXX=yes
11488	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11489	  hardcode_libdir_separator_CXX=
11490	fi
11491	;;
11492      esac
11493      shared_flag='-shared'
11494      if test "$aix_use_runtimelinking" = yes; then
11495	shared_flag="$shared_flag "'${wl}-G'
11496      fi
11497    else
11498      # not using gcc
11499      if test "$host_cpu" = ia64; then
11500	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11501	# chokes on -Wl,-G. The following line is correct:
11502	shared_flag='-G'
11503      else
11504	if test "$aix_use_runtimelinking" = yes; then
11505	  shared_flag='${wl}-G'
11506	else
11507	  shared_flag='${wl}-bM:SRE'
11508	fi
11509      fi
11510    fi
11511
11512    # It seems that -bexpall does not export symbols beginning with
11513    # underscore (_), so it is better to generate a list of symbols to export.
11514    always_export_symbols_CXX=yes
11515    if test "$aix_use_runtimelinking" = yes; then
11516      # Warning - without using the other runtime loading flags (-brtl),
11517      # -berok will link without error, but may produce a broken library.
11518      allow_undefined_flag_CXX='-berok'
11519      # Determine the default libpath from the value encoded in an empty executable.
11520      cat >conftest.$ac_ext <<_ACEOF
11521/* confdefs.h.  */
11522_ACEOF
11523cat confdefs.h >>conftest.$ac_ext
11524cat >>conftest.$ac_ext <<_ACEOF
11525/* end confdefs.h.  */
11526
11527int
11528main ()
11529{
11530
11531  ;
11532  return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext conftest$ac_exeext
11536if { (ac_try="$ac_link"
11537case "(($ac_try" in
11538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539  *) ac_try_echo=$ac_try;;
11540esac
11541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542$as_echo "$ac_try_echo") >&5
11543  (eval "$ac_link") 2>conftest.er1
11544  ac_status=$?
11545  grep -v '^ *+' conftest.er1 >conftest.err
11546  rm -f conftest.er1
11547  cat conftest.err >&5
11548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549  (exit $ac_status); } && {
11550	 test -z "$ac_cxx_werror_flag" ||
11551	 test ! -s conftest.err
11552       } && test -s conftest$ac_exeext && {
11553	 test "$cross_compiling" = yes ||
11554	 $as_test_x conftest$ac_exeext
11555       }; then
11556
11557lt_aix_libpath_sed='
11558    /Import File Strings/,/^$/ {
11559	/^0/ {
11560	    s/^0  *\(.*\)$/\1/
11561	    p
11562	}
11563    }'
11564aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11565# Check for a 64-bit object if we didn't find anything.
11566if test -z "$aix_libpath"; then
11567  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568fi
11569else
11570  $as_echo "$as_me: failed program was:" >&5
11571sed 's/^/| /' conftest.$ac_ext >&5
11572
11573
11574fi
11575
11576rm -rf conftest.dSYM
11577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578      conftest$ac_exeext conftest.$ac_ext
11579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11580
11581      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11582
11583      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"
11584     else
11585      if test "$host_cpu" = ia64; then
11586	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11587	allow_undefined_flag_CXX="-z nodefs"
11588	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"
11589      else
11590	# Determine the default libpath from the value encoded in an empty executable.
11591	cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h.  */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h.  */
11597
11598int
11599main ()
11600{
11601
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606rm -f conftest.$ac_objext conftest$ac_exeext
11607if { (ac_try="$ac_link"
11608case "(($ac_try" in
11609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610  *) ac_try_echo=$ac_try;;
11611esac
11612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613$as_echo "$ac_try_echo") >&5
11614  (eval "$ac_link") 2>conftest.er1
11615  ac_status=$?
11616  grep -v '^ *+' conftest.er1 >conftest.err
11617  rm -f conftest.er1
11618  cat conftest.err >&5
11619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620  (exit $ac_status); } && {
11621	 test -z "$ac_cxx_werror_flag" ||
11622	 test ! -s conftest.err
11623       } && test -s conftest$ac_exeext && {
11624	 test "$cross_compiling" = yes ||
11625	 $as_test_x conftest$ac_exeext
11626       }; then
11627
11628lt_aix_libpath_sed='
11629    /Import File Strings/,/^$/ {
11630	/^0/ {
11631	    s/^0  *\(.*\)$/\1/
11632	    p
11633	}
11634    }'
11635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11636# Check for a 64-bit object if we didn't find anything.
11637if test -z "$aix_libpath"; then
11638  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11639fi
11640else
11641  $as_echo "$as_me: failed program was:" >&5
11642sed 's/^/| /' conftest.$ac_ext >&5
11643
11644
11645fi
11646
11647rm -rf conftest.dSYM
11648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649      conftest$ac_exeext conftest.$ac_ext
11650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11651
11652	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653	# Warning - without using the other run time loading flags,
11654	# -berok will link without error, but may produce a broken library.
11655	no_undefined_flag_CXX=' ${wl}-bernotok'
11656	allow_undefined_flag_CXX=' ${wl}-berok'
11657	# Exported symbols can be pulled into shared objects from archives
11658	whole_archive_flag_spec_CXX='$convenience'
11659	archive_cmds_need_lc_CXX=yes
11660	# This is similar to how AIX traditionally builds its shared libraries.
11661	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'
11662      fi
11663    fi
11664    ;;
11665
11666  beos*)
11667    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11668      allow_undefined_flag_CXX=unsupported
11669      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11670      # support --undefined.  This deserves some investigation.  FIXME
11671      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11672    else
11673      ld_shlibs_CXX=no
11674    fi
11675    ;;
11676
11677  chorus*)
11678    case $cc_basename in
11679      *)
11680	# FIXME: insert proper C++ library support
11681	ld_shlibs_CXX=no
11682	;;
11683    esac
11684    ;;
11685
11686  cygwin* | mingw* | pw32*)
11687    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11688    # as there is no search path for DLLs.
11689    hardcode_libdir_flag_spec_CXX='-L$libdir'
11690    allow_undefined_flag_CXX=unsupported
11691    always_export_symbols_CXX=no
11692    enable_shared_with_static_runtimes_CXX=yes
11693
11694    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11695      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'
11696      # If the export-symbols file already is a .def file (1st line
11697      # is EXPORTS), use it as is; otherwise, prepend...
11698      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11699	cp $export_symbols $output_objdir/$soname.def;
11700      else
11701	echo EXPORTS > $output_objdir/$soname.def;
11702	cat $export_symbols >> $output_objdir/$soname.def;
11703      fi~
11704      $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'
11705    else
11706      ld_shlibs_CXX=no
11707    fi
11708  ;;
11709      darwin* | rhapsody*)
11710      archive_cmds_need_lc_CXX=no
11711      hardcode_direct_CXX=no
11712      hardcode_automatic_CXX=yes
11713      hardcode_shlibpath_var_CXX=unsupported
11714      whole_archive_flag_spec_CXX=''
11715      link_all_deplibs_CXX=yes
11716      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11717      if test "$GXX" = yes ; then
11718      output_verbose_link_cmd='echo'
11719      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}"
11720      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11721      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}"
11722      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}"
11723      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11724        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}"
11725        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}"
11726      fi
11727      else
11728      case $cc_basename in
11729        xlc*)
11730         output_verbose_link_cmd='echo'
11731          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'
11732          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11733          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11734          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}'
11735          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}'
11736          ;;
11737       *)
11738         ld_shlibs_CXX=no
11739          ;;
11740      esac
11741      fi
11742        ;;
11743
11744  dgux*)
11745    case $cc_basename in
11746      ec++*)
11747	# FIXME: insert proper C++ library support
11748	ld_shlibs_CXX=no
11749	;;
11750      ghcx*)
11751	# Green Hills C++ Compiler
11752	# FIXME: insert proper C++ library support
11753	ld_shlibs_CXX=no
11754	;;
11755      *)
11756	# FIXME: insert proper C++ library support
11757	ld_shlibs_CXX=no
11758	;;
11759    esac
11760    ;;
11761  freebsd[12]*)
11762    # C++ shared libraries reported to be fairly broken before switch to ELF
11763    ld_shlibs_CXX=no
11764    ;;
11765  freebsd-elf*)
11766    archive_cmds_need_lc_CXX=no
11767    ;;
11768  freebsd* | dragonfly*)
11769    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11770    # conventions
11771    ld_shlibs_CXX=yes
11772    ;;
11773  gnu*)
11774    ;;
11775  hpux9*)
11776    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11777    hardcode_libdir_separator_CXX=:
11778    export_dynamic_flag_spec_CXX='${wl}-E'
11779    hardcode_direct_CXX=yes
11780    hardcode_minus_L_CXX=yes # Not in the search PATH,
11781				# but as the default
11782				# location of the library.
11783
11784    case $cc_basename in
11785    CC*)
11786      # FIXME: insert proper C++ library support
11787      ld_shlibs_CXX=no
11788      ;;
11789    aCC*)
11790      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'
11791      # Commands to make compiler produce verbose output that lists
11792      # what "hidden" libraries, object files and flags are used when
11793      # linking a shared library.
11794      #
11795      # There doesn't appear to be a way to prevent this compiler from
11796      # explicitly linking system object files so we need to strip them
11797      # from the output so that they don't get included in the library
11798      # dependencies.
11799      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'
11800      ;;
11801    *)
11802      if test "$GXX" = yes; then
11803        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'
11804      else
11805        # FIXME: insert proper C++ library support
11806        ld_shlibs_CXX=no
11807      fi
11808      ;;
11809    esac
11810    ;;
11811  hpux10*|hpux11*)
11812    if test $with_gnu_ld = no; then
11813      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814      hardcode_libdir_separator_CXX=:
11815
11816      case $host_cpu in
11817      hppa*64*|ia64*) ;;
11818      *)
11819	export_dynamic_flag_spec_CXX='${wl}-E'
11820        ;;
11821      esac
11822    fi
11823    case $host_cpu in
11824    hppa*64*|ia64*)
11825      hardcode_direct_CXX=no
11826      hardcode_shlibpath_var_CXX=no
11827      ;;
11828    *)
11829      hardcode_direct_CXX=yes
11830      hardcode_minus_L_CXX=yes # Not in the search PATH,
11831					      # but as the default
11832					      # location of the library.
11833      ;;
11834    esac
11835
11836    case $cc_basename in
11837      CC*)
11838	# FIXME: insert proper C++ library support
11839	ld_shlibs_CXX=no
11840	;;
11841      aCC*)
11842	case $host_cpu in
11843	hppa*64*)
11844	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11845	  ;;
11846	ia64*)
11847	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848	  ;;
11849	*)
11850	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851	  ;;
11852	esac
11853	# Commands to make compiler produce verbose output that lists
11854	# what "hidden" libraries, object files and flags are used when
11855	# linking a shared library.
11856	#
11857	# There doesn't appear to be a way to prevent this compiler from
11858	# explicitly linking system object files so we need to strip them
11859	# from the output so that they don't get included in the library
11860	# dependencies.
11861	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'
11862	;;
11863      *)
11864	if test "$GXX" = yes; then
11865	  if test $with_gnu_ld = no; then
11866	    case $host_cpu in
11867	    hppa*64*)
11868	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11869	      ;;
11870	    ia64*)
11871	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11872	      ;;
11873	    *)
11874	      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'
11875	      ;;
11876	    esac
11877	  fi
11878	else
11879	  # FIXME: insert proper C++ library support
11880	  ld_shlibs_CXX=no
11881	fi
11882	;;
11883    esac
11884    ;;
11885  interix[3-9]*)
11886    hardcode_direct_CXX=no
11887    hardcode_shlibpath_var_CXX=no
11888    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11889    export_dynamic_flag_spec_CXX='${wl}-E'
11890    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11891    # Instead, shared libraries are loaded at an image base (0x10000000 by
11892    # default) and relocated if they conflict, which is a slow very memory
11893    # consuming and fragmenting process.  To avoid this, we pick a random,
11894    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11895    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11896    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'
11897    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'
11898    ;;
11899  irix5* | irix6*)
11900    case $cc_basename in
11901      CC*)
11902	# SGI C++
11903	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'
11904
11905	# Archives containing C++ object files must be created using
11906	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11907	# necessary to make sure instantiated templates are included
11908	# in the archive.
11909	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11910	;;
11911      *)
11912	if test "$GXX" = yes; then
11913	  if test "$with_gnu_ld" = no; then
11914	    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'
11915	  else
11916	    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'
11917	  fi
11918	fi
11919	link_all_deplibs_CXX=yes
11920	;;
11921    esac
11922    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923    hardcode_libdir_separator_CXX=:
11924    ;;
11925  linux* | k*bsd*-gnu)
11926    case $cc_basename in
11927      KCC*)
11928	# Kuck and Associates, Inc. (KAI) C++ Compiler
11929
11930	# KCC will only create a shared library if the output file
11931	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11932	# to its proper name (with version) after linking.
11933	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'
11934	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'
11935	# Commands to make compiler produce verbose output that lists
11936	# what "hidden" libraries, object files and flags are used when
11937	# linking a shared library.
11938	#
11939	# There doesn't appear to be a way to prevent this compiler from
11940	# explicitly linking system object files so we need to strip them
11941	# from the output so that they don't get included in the library
11942	# dependencies.
11943	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'
11944
11945	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11947
11948	# Archives containing C++ object files must be created using
11949	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951	;;
11952      icpc*)
11953	# Intel C++
11954	with_gnu_ld=yes
11955	# version 8.0 and above of icpc choke on multiply defined symbols
11956	# if we add $predep_objects and $postdep_objects, however 7.1 and
11957	# earlier do not add the objects themselves.
11958	case `$CC -V 2>&1` in
11959	*"Version 7."*)
11960  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11961  	  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'
11962	  ;;
11963	*)  # Version 8.0 or newer
11964	  tmp_idyn=
11965	  case $host_cpu in
11966	    ia64*) tmp_idyn=' -i_dynamic';;
11967	  esac
11968  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969	  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'
11970	  ;;
11971	esac
11972	archive_cmds_need_lc_CXX=no
11973	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11976	;;
11977      pgCC* | pgcpp*)
11978        # Portland Group C++ compiler
11979	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11980  	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'
11981
11982	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11983	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984	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'
11985        ;;
11986      cxx*)
11987	# Compaq C++
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  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11990
11991	runpath_var=LD_RUN_PATH
11992	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11993	hardcode_libdir_separator_CXX=:
11994
11995	# Commands to make compiler produce verbose output that lists
11996	# what "hidden" libraries, object files and flags are used when
11997	# linking a shared library.
11998	#
11999	# There doesn't appear to be a way to prevent this compiler from
12000	# explicitly linking system object files so we need to strip them
12001	# from the output so that they don't get included in the library
12002	# dependencies.
12003	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'
12004	;;
12005      *)
12006	case `$CC -V 2>&1 | sed 5q` in
12007	*Sun\ C*)
12008	  # Sun C++ 5.9
12009	  no_undefined_flag_CXX=' -zdefs'
12010	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12011	  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'
12012	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12013	  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'
12014
12015	  # Not sure whether something based on
12016	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12017	  # would be better.
12018	  output_verbose_link_cmd='echo'
12019
12020	  # Archives containing C++ object files must be created using
12021	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12022	  # necessary to make sure instantiated templates are included
12023	  # in the archive.
12024	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12025	  ;;
12026	esac
12027	;;
12028    esac
12029    ;;
12030  lynxos*)
12031    # FIXME: insert proper C++ library support
12032    ld_shlibs_CXX=no
12033    ;;
12034  m88k*)
12035    # FIXME: insert proper C++ library support
12036    ld_shlibs_CXX=no
12037    ;;
12038  mvs*)
12039    case $cc_basename in
12040      cxx*)
12041	# FIXME: insert proper C++ library support
12042	ld_shlibs_CXX=no
12043	;;
12044      *)
12045	# FIXME: insert proper C++ library support
12046	ld_shlibs_CXX=no
12047	;;
12048    esac
12049    ;;
12050  netbsd*)
12051    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12052      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12053      wlarc=
12054      hardcode_libdir_flag_spec_CXX='-R$libdir'
12055      hardcode_direct_CXX=yes
12056      hardcode_shlibpath_var_CXX=no
12057    fi
12058    # Workaround some broken pre-1.5 toolchains
12059    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12060    ;;
12061  openbsd2*)
12062    # C++ shared libraries are fairly broken
12063    ld_shlibs_CXX=no
12064    ;;
12065  openbsd*)
12066    if test -f /usr/libexec/ld.so; then
12067      hardcode_direct_CXX=yes
12068      hardcode_shlibpath_var_CXX=no
12069      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12070      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12072	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12073	export_dynamic_flag_spec_CXX='${wl}-E'
12074	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12075      fi
12076      output_verbose_link_cmd='echo'
12077    else
12078      ld_shlibs_CXX=no
12079    fi
12080    ;;
12081  osf3*)
12082    case $cc_basename in
12083      KCC*)
12084	# Kuck and Associates, Inc. (KAI) C++ Compiler
12085
12086	# KCC will only create a shared library if the output file
12087	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12088	# to its proper name (with version) after linking.
12089	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'
12090
12091	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12092	hardcode_libdir_separator_CXX=:
12093
12094	# Archives containing C++ object files must be created using
12095	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12096	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12097
12098	;;
12099      RCC*)
12100	# Rational C++ 2.4.1
12101	# FIXME: insert proper C++ library support
12102	ld_shlibs_CXX=no
12103	;;
12104      cxx*)
12105	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12106	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'
12107
12108	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12109	hardcode_libdir_separator_CXX=:
12110
12111	# Commands to make compiler produce verbose output that lists
12112	# what "hidden" libraries, object files and flags are used when
12113	# linking a shared library.
12114	#
12115	# There doesn't appear to be a way to prevent this compiler from
12116	# explicitly linking system object files so we need to strip them
12117	# from the output so that they don't get included in the library
12118	# dependencies.
12119	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'
12120	;;
12121      *)
12122	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12123	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12124	  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'
12125
12126	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127	  hardcode_libdir_separator_CXX=:
12128
12129	  # Commands to make compiler produce verbose output that lists
12130	  # what "hidden" libraries, object files and flags are used when
12131	  # linking a shared library.
12132	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12133
12134	else
12135	  # FIXME: insert proper C++ library support
12136	  ld_shlibs_CXX=no
12137	fi
12138	;;
12139    esac
12140    ;;
12141  osf4* | osf5*)
12142    case $cc_basename in
12143      KCC*)
12144	# Kuck and Associates, Inc. (KAI) C++ Compiler
12145
12146	# KCC will only create a shared library if the output file
12147	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12148	# to its proper name (with version) after linking.
12149	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'
12150
12151	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12152	hardcode_libdir_separator_CXX=:
12153
12154	# Archives containing C++ object files must be created using
12155	# the KAI C++ compiler.
12156	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12157	;;
12158      RCC*)
12159	# Rational C++ 2.4.1
12160	# FIXME: insert proper C++ library support
12161	ld_shlibs_CXX=no
12162	;;
12163      cxx*)
12164	allow_undefined_flag_CXX=' -expect_unresolved \*'
12165	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'
12166	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12167	  echo "-hidden">> $lib.exp~
12168	  $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~
12169	  $rm $lib.exp'
12170
12171	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12172	hardcode_libdir_separator_CXX=:
12173
12174	# Commands to make compiler produce verbose output that lists
12175	# what "hidden" libraries, object files and flags are used when
12176	# linking a shared library.
12177	#
12178	# There doesn't appear to be a way to prevent this compiler from
12179	# explicitly linking system object files so we need to strip them
12180	# from the output so that they don't get included in the library
12181	# dependencies.
12182	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'
12183	;;
12184      *)
12185	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12186	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12187	 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'
12188
12189	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12190	  hardcode_libdir_separator_CXX=:
12191
12192	  # Commands to make compiler produce verbose output that lists
12193	  # what "hidden" libraries, object files and flags are used when
12194	  # linking a shared library.
12195	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12196
12197	else
12198	  # FIXME: insert proper C++ library support
12199	  ld_shlibs_CXX=no
12200	fi
12201	;;
12202    esac
12203    ;;
12204  psos*)
12205    # FIXME: insert proper C++ library support
12206    ld_shlibs_CXX=no
12207    ;;
12208  sunos4*)
12209    case $cc_basename in
12210      CC*)
12211	# Sun C++ 4.x
12212	# FIXME: insert proper C++ library support
12213	ld_shlibs_CXX=no
12214	;;
12215      lcc*)
12216	# Lucid
12217	# FIXME: insert proper C++ library support
12218	ld_shlibs_CXX=no
12219	;;
12220      *)
12221	# FIXME: insert proper C++ library support
12222	ld_shlibs_CXX=no
12223	;;
12224    esac
12225    ;;
12226  solaris*)
12227    case $cc_basename in
12228      CC*)
12229	# Sun C++ 4.2, 5.x and Centerline C++
12230        archive_cmds_need_lc_CXX=yes
12231	no_undefined_flag_CXX=' -zdefs'
12232	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12234	$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'
12235
12236	hardcode_libdir_flag_spec_CXX='-R$libdir'
12237	hardcode_shlibpath_var_CXX=no
12238	case $host_os in
12239	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12240	  *)
12241	    # The compiler driver will combine and reorder linker options,
12242	    # but understands `-z linker_flag'.
12243	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12244	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12245	    ;;
12246	esac
12247	link_all_deplibs_CXX=yes
12248
12249	output_verbose_link_cmd='echo'
12250
12251	# Archives containing C++ object files must be created using
12252	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12253	# necessary to make sure instantiated templates are included
12254	# in the archive.
12255	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12256	;;
12257      gcx*)
12258	# Green Hills C++ Compiler
12259	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12260
12261	# The C++ compiler must be used to create the archive.
12262	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12263	;;
12264      *)
12265	# GNU C++ compiler with Solaris linker
12266	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12267	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12268	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12269	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12270	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12272
12273	    # Commands to make compiler produce verbose output that lists
12274	    # what "hidden" libraries, object files and flags are used when
12275	    # linking a shared library.
12276	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12277	  else
12278	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12279	    # platform.
12280	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12281	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12282		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12283
12284	    # Commands to make compiler produce verbose output that lists
12285	    # what "hidden" libraries, object files and flags are used when
12286	    # linking a shared library.
12287	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12288	  fi
12289
12290	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12291	  case $host_os in
12292	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12293	  *)
12294	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12295	    ;;
12296	  esac
12297	fi
12298	;;
12299    esac
12300    ;;
12301  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12302    no_undefined_flag_CXX='${wl}-z,text'
12303    archive_cmds_need_lc_CXX=no
12304    hardcode_shlibpath_var_CXX=no
12305    runpath_var='LD_RUN_PATH'
12306
12307    case $cc_basename in
12308      CC*)
12309	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311	;;
12312      *)
12313	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315	;;
12316    esac
12317    ;;
12318  sysv5* | sco3.2v5* | sco5v6*)
12319    # Note: We can NOT use -z defs as we might desire, because we do not
12320    # link with -lc, and that would cause any symbols used from libc to
12321    # always be unresolved, which means just about no library would
12322    # ever link correctly.  If we're not using GNU ld we use -z text
12323    # though, which does catch some bad symbols but isn't as heavy-handed
12324    # as -z defs.
12325    # For security reasons, it is highly recommended that you always
12326    # use absolute paths for naming shared libraries, and exclude the
12327    # DT_RUNPATH tag from executables and libraries.  But doing so
12328    # requires that you compile everything twice, which is a pain.
12329    # So that behaviour is only enabled if SCOABSPATH is set to a
12330    # non-empty value in the environment.  Most likely only useful for
12331    # creating official distributions of packages.
12332    # This is a hack until libtool officially supports absolute path
12333    # names for shared libraries.
12334    no_undefined_flag_CXX='${wl}-z,text'
12335    allow_undefined_flag_CXX='${wl}-z,nodefs'
12336    archive_cmds_need_lc_CXX=no
12337    hardcode_shlibpath_var_CXX=no
12338    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12339    hardcode_libdir_separator_CXX=':'
12340    link_all_deplibs_CXX=yes
12341    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12342    runpath_var='LD_RUN_PATH'
12343
12344    case $cc_basename in
12345      CC*)
12346	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12348	;;
12349      *)
12350	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12351	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12352	;;
12353    esac
12354    ;;
12355  tandem*)
12356    case $cc_basename in
12357      NCC*)
12358	# NonStop-UX NCC 3.20
12359	# FIXME: insert proper C++ library support
12360	ld_shlibs_CXX=no
12361	;;
12362      *)
12363	# FIXME: insert proper C++ library support
12364	ld_shlibs_CXX=no
12365	;;
12366    esac
12367    ;;
12368  vxworks*)
12369    # FIXME: insert proper C++ library support
12370    ld_shlibs_CXX=no
12371    ;;
12372  *)
12373    # FIXME: insert proper C++ library support
12374    ld_shlibs_CXX=no
12375    ;;
12376esac
12377{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12378$as_echo "$ld_shlibs_CXX" >&6; }
12379test "$ld_shlibs_CXX" = no && can_build_shared=no
12380
12381GCC_CXX="$GXX"
12382LD_CXX="$LD"
12383
12384cat > conftest.$ac_ext <<EOF
12385class Foo
12386{
12387public:
12388  Foo (void) { a = 0; }
12389private:
12390  int a;
12391};
12392EOF
12393
12394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395  (eval $ac_compile) 2>&5
12396  ac_status=$?
12397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398  (exit $ac_status); }; then
12399  # Parse the compiler output and extract the necessary
12400  # objects, libraries and library flags.
12401
12402  # Sentinel used to keep track of whether or not we are before
12403  # the conftest object file.
12404  pre_test_object_deps_done=no
12405
12406  # The `*' in the case matches for architectures that use `case' in
12407  # $output_verbose_cmd can trigger glob expansion during the loop
12408  # eval without this substitution.
12409  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12410
12411  for p in `eval $output_verbose_link_cmd`; do
12412    case $p in
12413
12414    -L* | -R* | -l*)
12415       # Some compilers place space between "-{L,R}" and the path.
12416       # Remove the space.
12417       if test $p = "-L" \
12418	  || test $p = "-R"; then
12419	 prev=$p
12420	 continue
12421       else
12422	 prev=
12423       fi
12424
12425       if test "$pre_test_object_deps_done" = no; then
12426	 case $p in
12427	 -L* | -R*)
12428	   # Internal compiler library paths should come after those
12429	   # provided the user.  The postdeps already come after the
12430	   # user supplied libs so there is no need to process them.
12431	   if test -z "$compiler_lib_search_path_CXX"; then
12432	     compiler_lib_search_path_CXX="${prev}${p}"
12433	   else
12434	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12435	   fi
12436	   ;;
12437	 # The "-l" case would never come before the object being
12438	 # linked, so don't bother handling this case.
12439	 esac
12440       else
12441	 if test -z "$postdeps_CXX"; then
12442	   postdeps_CXX="${prev}${p}"
12443	 else
12444	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12445	 fi
12446       fi
12447       ;;
12448
12449    *.$objext)
12450       # This assumes that the test object file only shows up
12451       # once in the compiler output.
12452       if test "$p" = "conftest.$objext"; then
12453	 pre_test_object_deps_done=yes
12454	 continue
12455       fi
12456
12457       if test "$pre_test_object_deps_done" = no; then
12458	 if test -z "$predep_objects_CXX"; then
12459	   predep_objects_CXX="$p"
12460	 else
12461	   predep_objects_CXX="$predep_objects_CXX $p"
12462	 fi
12463       else
12464	 if test -z "$postdep_objects_CXX"; then
12465	   postdep_objects_CXX="$p"
12466	 else
12467	   postdep_objects_CXX="$postdep_objects_CXX $p"
12468	 fi
12469       fi
12470       ;;
12471
12472    *) ;; # Ignore the rest.
12473
12474    esac
12475  done
12476
12477  # Clean up.
12478  rm -f a.out a.exe
12479else
12480  echo "libtool.m4: error: problem compiling CXX test program"
12481fi
12482
12483$rm -f confest.$objext
12484
12485compiler_lib_search_dirs_CXX=
12486if test -n "$compiler_lib_search_path_CXX"; then
12487  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12488fi
12489
12490# PORTME: override above test on systems where it is broken
12491case $host_os in
12492interix[3-9]*)
12493  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12494  # hack all around it, let's just trust "g++" to DTRT.
12495  predep_objects_CXX=
12496  postdep_objects_CXX=
12497  postdeps_CXX=
12498  ;;
12499
12500linux*)
12501  case `$CC -V 2>&1 | sed 5q` in
12502  *Sun\ C*)
12503    # Sun C++ 5.9
12504    #
12505    # The more standards-conforming stlport4 library is
12506    # incompatible with the Cstd library. Avoid specifying
12507    # it if it's in CXXFLAGS. Ignore libCrun as
12508    # -library=stlport4 depends on it.
12509    case " $CXX $CXXFLAGS " in
12510    *" -library=stlport4 "*)
12511      solaris_use_stlport4=yes
12512      ;;
12513    esac
12514    if test "$solaris_use_stlport4" != yes; then
12515      postdeps_CXX='-library=Cstd -library=Crun'
12516    fi
12517    ;;
12518  esac
12519  ;;
12520
12521solaris*)
12522  case $cc_basename in
12523  CC*)
12524    # The more standards-conforming stlport4 library is
12525    # incompatible with the Cstd library. Avoid specifying
12526    # it if it's in CXXFLAGS. Ignore libCrun as
12527    # -library=stlport4 depends on it.
12528    case " $CXX $CXXFLAGS " in
12529    *" -library=stlport4 "*)
12530      solaris_use_stlport4=yes
12531      ;;
12532    esac
12533
12534    # Adding this requires a known-good setup of shared libraries for
12535    # Sun compiler versions before 5.6, else PIC objects from an old
12536    # archive will be linked into the output, leading to subtle bugs.
12537    if test "$solaris_use_stlport4" != yes; then
12538      postdeps_CXX='-library=Cstd -library=Crun'
12539    fi
12540    ;;
12541  esac
12542  ;;
12543esac
12544
12545case " $postdeps_CXX " in
12546*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12547esac
12548
12549lt_prog_compiler_wl_CXX=
12550lt_prog_compiler_pic_CXX=
12551lt_prog_compiler_static_CXX=
12552
12553{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12554$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12555
12556  # C++ specific cases for pic, static, wl, etc.
12557  if test "$GXX" = yes; then
12558    lt_prog_compiler_wl_CXX='-Wl,'
12559    lt_prog_compiler_static_CXX='-static'
12560
12561    case $host_os in
12562    aix*)
12563      # All AIX code is PIC.
12564      if test "$host_cpu" = ia64; then
12565	# AIX 5 now supports IA64 processor
12566	lt_prog_compiler_static_CXX='-Bstatic'
12567      fi
12568      ;;
12569    amigaos*)
12570      # FIXME: we need at least 68020 code to build shared libraries, but
12571      # adding the `-m68020' flag to GCC prevents building anything better,
12572      # like `-m68040'.
12573      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12574      ;;
12575    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12576      # PIC is the default for these OSes.
12577      ;;
12578    mingw* | cygwin* | os2* | pw32*)
12579      # This hack is so that the source file can tell whether it is being
12580      # built for inclusion in a dll (and should export symbols for example).
12581      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12582      # (--disable-auto-import) libraries
12583      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12584      ;;
12585    darwin* | rhapsody*)
12586      # PIC is the default on this platform
12587      # Common symbols not allowed in MH_DYLIB files
12588      lt_prog_compiler_pic_CXX='-fno-common'
12589      ;;
12590    *djgpp*)
12591      # DJGPP does not support shared libraries at all
12592      lt_prog_compiler_pic_CXX=
12593      ;;
12594    interix[3-9]*)
12595      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12596      # Instead, we relocate shared libraries at runtime.
12597      ;;
12598    sysv4*MP*)
12599      if test -d /usr/nec; then
12600	lt_prog_compiler_pic_CXX=-Kconform_pic
12601      fi
12602      ;;
12603    hpux*)
12604      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12605      # not for PA HP-UX.
12606      case $host_cpu in
12607      hppa*64*|ia64*)
12608	;;
12609      *)
12610	lt_prog_compiler_pic_CXX='-fPIC'
12611	;;
12612      esac
12613      ;;
12614    *)
12615      lt_prog_compiler_pic_CXX='-fPIC'
12616      ;;
12617    esac
12618  else
12619    case $host_os in
12620      aix[4-9]*)
12621	# All AIX code is PIC.
12622	if test "$host_cpu" = ia64; then
12623	  # AIX 5 now supports IA64 processor
12624	  lt_prog_compiler_static_CXX='-Bstatic'
12625	else
12626	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12627	fi
12628	;;
12629      chorus*)
12630	case $cc_basename in
12631	cxch68*)
12632	  # Green Hills C++ Compiler
12633	  # _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"
12634	  ;;
12635	esac
12636	;;
12637       darwin*)
12638         # PIC is the default on this platform
12639         # Common symbols not allowed in MH_DYLIB files
12640         case $cc_basename in
12641           xlc*)
12642           lt_prog_compiler_pic_CXX='-qnocommon'
12643           lt_prog_compiler_wl_CXX='-Wl,'
12644           ;;
12645         esac
12646       ;;
12647      dgux*)
12648	case $cc_basename in
12649	  ec++*)
12650	    lt_prog_compiler_pic_CXX='-KPIC'
12651	    ;;
12652	  ghcx*)
12653	    # Green Hills C++ Compiler
12654	    lt_prog_compiler_pic_CXX='-pic'
12655	    ;;
12656	  *)
12657	    ;;
12658	esac
12659	;;
12660      freebsd* | dragonfly*)
12661	# FreeBSD uses GNU C++
12662	;;
12663      hpux9* | hpux10* | hpux11*)
12664	case $cc_basename in
12665	  CC*)
12666	    lt_prog_compiler_wl_CXX='-Wl,'
12667	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12668	    if test "$host_cpu" != ia64; then
12669	      lt_prog_compiler_pic_CXX='+Z'
12670	    fi
12671	    ;;
12672	  aCC*)
12673	    lt_prog_compiler_wl_CXX='-Wl,'
12674	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12675	    case $host_cpu in
12676	    hppa*64*|ia64*)
12677	      # +Z the default
12678	      ;;
12679	    *)
12680	      lt_prog_compiler_pic_CXX='+Z'
12681	      ;;
12682	    esac
12683	    ;;
12684	  *)
12685	    ;;
12686	esac
12687	;;
12688      interix*)
12689	# This is c89, which is MS Visual C++ (no shared libs)
12690	# Anyone wants to do a port?
12691	;;
12692      irix5* | irix6* | nonstopux*)
12693	case $cc_basename in
12694	  CC*)
12695	    lt_prog_compiler_wl_CXX='-Wl,'
12696	    lt_prog_compiler_static_CXX='-non_shared'
12697	    # CC pic flag -KPIC is the default.
12698	    ;;
12699	  *)
12700	    ;;
12701	esac
12702	;;
12703      linux* | k*bsd*-gnu)
12704	case $cc_basename in
12705	  KCC*)
12706	    # KAI C++ Compiler
12707	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12708	    lt_prog_compiler_pic_CXX='-fPIC'
12709	    ;;
12710	  icpc* | ecpc*)
12711	    # Intel C++
12712	    lt_prog_compiler_wl_CXX='-Wl,'
12713	    lt_prog_compiler_pic_CXX='-KPIC'
12714	    lt_prog_compiler_static_CXX='-static'
12715	    ;;
12716	  pgCC* | pgcpp*)
12717	    # Portland Group C++ compiler.
12718	    lt_prog_compiler_wl_CXX='-Wl,'
12719	    lt_prog_compiler_pic_CXX='-fpic'
12720	    lt_prog_compiler_static_CXX='-Bstatic'
12721	    ;;
12722	  cxx*)
12723	    # Compaq C++
12724	    # Make sure the PIC flag is empty.  It appears that all Alpha
12725	    # Linux and Compaq Tru64 Unix objects are PIC.
12726	    lt_prog_compiler_pic_CXX=
12727	    lt_prog_compiler_static_CXX='-non_shared'
12728	    ;;
12729	  *)
12730	    case `$CC -V 2>&1 | sed 5q` in
12731	    *Sun\ C*)
12732	      # Sun C++ 5.9
12733	      lt_prog_compiler_pic_CXX='-KPIC'
12734	      lt_prog_compiler_static_CXX='-Bstatic'
12735	      lt_prog_compiler_wl_CXX='-Qoption ld '
12736	      ;;
12737	    esac
12738	    ;;
12739	esac
12740	;;
12741      lynxos*)
12742	;;
12743      m88k*)
12744	;;
12745      mvs*)
12746	case $cc_basename in
12747	  cxx*)
12748	    lt_prog_compiler_pic_CXX='-W c,exportall'
12749	    ;;
12750	  *)
12751	    ;;
12752	esac
12753	;;
12754      netbsd*)
12755	;;
12756      osf3* | osf4* | osf5*)
12757	case $cc_basename in
12758	  KCC*)
12759	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12760	    ;;
12761	  RCC*)
12762	    # Rational C++ 2.4.1
12763	    lt_prog_compiler_pic_CXX='-pic'
12764	    ;;
12765	  cxx*)
12766	    # Digital/Compaq C++
12767	    lt_prog_compiler_wl_CXX='-Wl,'
12768	    # Make sure the PIC flag is empty.  It appears that all Alpha
12769	    # Linux and Compaq Tru64 Unix objects are PIC.
12770	    lt_prog_compiler_pic_CXX=
12771	    lt_prog_compiler_static_CXX='-non_shared'
12772	    ;;
12773	  *)
12774	    ;;
12775	esac
12776	;;
12777      psos*)
12778	;;
12779      solaris*)
12780	case $cc_basename in
12781	  CC*)
12782	    # Sun C++ 4.2, 5.x and Centerline C++
12783	    lt_prog_compiler_pic_CXX='-KPIC'
12784	    lt_prog_compiler_static_CXX='-Bstatic'
12785	    lt_prog_compiler_wl_CXX='-Qoption ld '
12786	    ;;
12787	  gcx*)
12788	    # Green Hills C++ Compiler
12789	    lt_prog_compiler_pic_CXX='-PIC'
12790	    ;;
12791	  *)
12792	    ;;
12793	esac
12794	;;
12795      sunos4*)
12796	case $cc_basename in
12797	  CC*)
12798	    # Sun C++ 4.x
12799	    lt_prog_compiler_pic_CXX='-pic'
12800	    lt_prog_compiler_static_CXX='-Bstatic'
12801	    ;;
12802	  lcc*)
12803	    # Lucid
12804	    lt_prog_compiler_pic_CXX='-pic'
12805	    ;;
12806	  *)
12807	    ;;
12808	esac
12809	;;
12810      tandem*)
12811	case $cc_basename in
12812	  NCC*)
12813	    # NonStop-UX NCC 3.20
12814	    lt_prog_compiler_pic_CXX='-KPIC'
12815	    ;;
12816	  *)
12817	    ;;
12818	esac
12819	;;
12820      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12821	case $cc_basename in
12822	  CC*)
12823	    lt_prog_compiler_wl_CXX='-Wl,'
12824	    lt_prog_compiler_pic_CXX='-KPIC'
12825	    lt_prog_compiler_static_CXX='-Bstatic'
12826	    ;;
12827	esac
12828	;;
12829      vxworks*)
12830	;;
12831      *)
12832	lt_prog_compiler_can_build_shared_CXX=no
12833	;;
12834    esac
12835  fi
12836
12837{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12838$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12839
12840#
12841# Check to make sure the PIC flag actually works.
12842#
12843if test -n "$lt_prog_compiler_pic_CXX"; then
12844
12845{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12846$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12847if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12848  $as_echo_n "(cached) " >&6
12849else
12850  lt_cv_prog_compiler_pic_works_CXX=no
12851  ac_outfile=conftest.$ac_objext
12852   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12853   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12854   # Insert the option either (1) after the last *FLAGS variable, or
12855   # (2) before a word containing "conftest.", or (3) at the end.
12856   # Note that $ac_compile itself does not contain backslashes and begins
12857   # with a dollar sign (not a hyphen), so the echo should work correctly.
12858   # The option is referenced via a variable to avoid confusing sed.
12859   lt_compile=`echo "$ac_compile" | $SED \
12860   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12861   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12862   -e 's:$: $lt_compiler_flag:'`
12863   (eval echo "\"\$as_me:12863: $lt_compile\"" >&5)
12864   (eval "$lt_compile" 2>conftest.err)
12865   ac_status=$?
12866   cat conftest.err >&5
12867   echo "$as_me:12867: \$? = $ac_status" >&5
12868   if (exit $ac_status) && test -s "$ac_outfile"; then
12869     # The compiler can only warn and ignore the option if not recognized
12870     # So say no if there are warnings other than the usual output.
12871     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12872     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12874       lt_cv_prog_compiler_pic_works_CXX=yes
12875     fi
12876   fi
12877   $rm conftest*
12878
12879fi
12880{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12881$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12882
12883if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12884    case $lt_prog_compiler_pic_CXX in
12885     "" | " "*) ;;
12886     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12887     esac
12888else
12889    lt_prog_compiler_pic_CXX=
12890     lt_prog_compiler_can_build_shared_CXX=no
12891fi
12892
12893fi
12894case $host_os in
12895  # For platforms which do not support PIC, -DPIC is meaningless:
12896  *djgpp*)
12897    lt_prog_compiler_pic_CXX=
12898    ;;
12899  *)
12900    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12901    ;;
12902esac
12903
12904#
12905# Check to make sure the static flag actually works.
12906#
12907wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12908{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12909$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12910if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12911  $as_echo_n "(cached) " >&6
12912else
12913  lt_cv_prog_compiler_static_works_CXX=no
12914   save_LDFLAGS="$LDFLAGS"
12915   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12916   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12917   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12918     # The linker can only warn and ignore the option if not recognized
12919     # So say no if there are warnings
12920     if test -s conftest.err; then
12921       # Append any errors to the config.log.
12922       cat conftest.err 1>&5
12923       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12924       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12925       if diff conftest.exp conftest.er2 >/dev/null; then
12926         lt_cv_prog_compiler_static_works_CXX=yes
12927       fi
12928     else
12929       lt_cv_prog_compiler_static_works_CXX=yes
12930     fi
12931   fi
12932   $rm -r conftest*
12933   LDFLAGS="$save_LDFLAGS"
12934
12935fi
12936{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12937$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12938
12939if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12940    :
12941else
12942    lt_prog_compiler_static_CXX=
12943fi
12944
12945
12946{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12948if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12949  $as_echo_n "(cached) " >&6
12950else
12951  lt_cv_prog_compiler_c_o_CXX=no
12952   $rm -r conftest 2>/dev/null
12953   mkdir conftest
12954   cd conftest
12955   mkdir out
12956   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
12958   lt_compiler_flag="-o out/conftest2.$ac_objext"
12959   # Insert the option either (1) after the last *FLAGS variable, or
12960   # (2) before a word containing "conftest.", or (3) at the end.
12961   # Note that $ac_compile itself does not contain backslashes and begins
12962   # with a dollar sign (not a hyphen), so the echo should work correctly.
12963   lt_compile=`echo "$ac_compile" | $SED \
12964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12966   -e 's:$: $lt_compiler_flag:'`
12967   (eval echo "\"\$as_me:12967: $lt_compile\"" >&5)
12968   (eval "$lt_compile" 2>out/conftest.err)
12969   ac_status=$?
12970   cat out/conftest.err >&5
12971   echo "$as_me:12971: \$? = $ac_status" >&5
12972   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12973   then
12974     # The compiler can only warn and ignore the option if not recognized
12975     # So say no if there are warnings
12976     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12977     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12979       lt_cv_prog_compiler_c_o_CXX=yes
12980     fi
12981   fi
12982   chmod u+w . 2>&5
12983   $rm conftest*
12984   # SGI C++ compiler will create directory out/ii_files/ for
12985   # template instantiation
12986   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12987   $rm out/* && rmdir out
12988   cd ..
12989   rmdir conftest
12990   $rm conftest*
12991
12992fi
12993{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12994$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12995
12996
12997hard_links="nottested"
12998if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12999  # do not overwrite the value of need_locks provided by the user
13000  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13001$as_echo_n "checking if we can lock with hard links... " >&6; }
13002  hard_links=yes
13003  $rm conftest*
13004  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13005  touch conftest.a
13006  ln conftest.a conftest.b 2>&5 || hard_links=no
13007  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13008  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13009$as_echo "$hard_links" >&6; }
13010  if test "$hard_links" = no; then
13011    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13012$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13013    need_locks=warn
13014  fi
13015else
13016  need_locks=no
13017fi
13018
13019{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13021
13022  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13023  case $host_os in
13024  aix[4-9]*)
13025    # If we're using GNU nm, then we don't want the "-C" option.
13026    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13027    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13028      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'
13029    else
13030      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'
13031    fi
13032    ;;
13033  pw32*)
13034    export_symbols_cmds_CXX="$ltdll_cmds"
13035  ;;
13036  cygwin* | mingw*)
13037    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'
13038  ;;
13039  *)
13040    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13041  ;;
13042  esac
13043  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13044
13045{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13046$as_echo "$ld_shlibs_CXX" >&6; }
13047test "$ld_shlibs_CXX" = no && can_build_shared=no
13048
13049#
13050# Do we need to explicitly link libc?
13051#
13052case "x$archive_cmds_need_lc_CXX" in
13053x|xyes)
13054  # Assume -lc should be added
13055  archive_cmds_need_lc_CXX=yes
13056
13057  if test "$enable_shared" = yes && test "$GCC" = yes; then
13058    case $archive_cmds_CXX in
13059    *'~'*)
13060      # FIXME: we may have to deal with multi-command sequences.
13061      ;;
13062    '$CC '*)
13063      # Test whether the compiler implicitly links with -lc since on some
13064      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13065      # to ld, don't add -lc before -lgcc.
13066      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13067$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13068      $rm conftest*
13069      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13070
13071      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072  (eval $ac_compile) 2>&5
13073  ac_status=$?
13074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075  (exit $ac_status); } 2>conftest.err; then
13076        soname=conftest
13077        lib=conftest
13078        libobjs=conftest.$ac_objext
13079        deplibs=
13080        wl=$lt_prog_compiler_wl_CXX
13081	pic_flag=$lt_prog_compiler_pic_CXX
13082        compiler_flags=-v
13083        linker_flags=-v
13084        verstring=
13085        output_objdir=.
13086        libname=conftest
13087        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13088        allow_undefined_flag_CXX=
13089        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13091  ac_status=$?
13092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093  (exit $ac_status); }
13094        then
13095	  archive_cmds_need_lc_CXX=no
13096        else
13097	  archive_cmds_need_lc_CXX=yes
13098        fi
13099        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13100      else
13101        cat conftest.err 1>&5
13102      fi
13103      $rm conftest*
13104      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13105$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13106      ;;
13107    esac
13108  fi
13109  ;;
13110esac
13111
13112{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13113$as_echo_n "checking dynamic linker characteristics... " >&6; }
13114library_names_spec=
13115libname_spec='lib$name'
13116soname_spec=
13117shrext_cmds=".so"
13118postinstall_cmds=
13119postuninstall_cmds=
13120finish_cmds=
13121finish_eval=
13122shlibpath_var=
13123shlibpath_overrides_runpath=unknown
13124version_type=none
13125dynamic_linker="$host_os ld.so"
13126sys_lib_dlsearch_path_spec="/lib /usr/lib"
13127
13128need_lib_prefix=unknown
13129hardcode_into_libs=no
13130
13131# when you set need_version to no, make sure it does not cause -set_version
13132# flags to be left without arguments
13133need_version=unknown
13134
13135case $host_os in
13136aix3*)
13137  version_type=linux
13138  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13139  shlibpath_var=LIBPATH
13140
13141  # AIX 3 has no versioning support, so we append a major version to the name.
13142  soname_spec='${libname}${release}${shared_ext}$major'
13143  ;;
13144
13145aix[4-9]*)
13146  version_type=linux
13147  need_lib_prefix=no
13148  need_version=no
13149  hardcode_into_libs=yes
13150  if test "$host_cpu" = ia64; then
13151    # AIX 5 supports IA64
13152    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13153    shlibpath_var=LD_LIBRARY_PATH
13154  else
13155    # With GCC up to 2.95.x, collect2 would create an import file
13156    # for dependence libraries.  The import file would start with
13157    # the line `#! .'.  This would cause the generated library to
13158    # depend on `.', always an invalid library.  This was fixed in
13159    # development snapshots of GCC prior to 3.0.
13160    case $host_os in
13161      aix4 | aix4.[01] | aix4.[01].*)
13162      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13163	   echo ' yes '
13164	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13165	:
13166      else
13167	can_build_shared=no
13168      fi
13169      ;;
13170    esac
13171    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13172    # soname into executable. Probably we can add versioning support to
13173    # collect2, so additional links can be useful in future.
13174    if test "$aix_use_runtimelinking" = yes; then
13175      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13176      # instead of lib<name>.a to let people know that these are not
13177      # typical AIX shared libraries.
13178      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179    else
13180      # We preserve .a as extension for shared libraries through AIX4.2
13181      # and later when we are not doing run time linking.
13182      library_names_spec='${libname}${release}.a $libname.a'
13183      soname_spec='${libname}${release}${shared_ext}$major'
13184    fi
13185    shlibpath_var=LIBPATH
13186  fi
13187  ;;
13188
13189amigaos*)
13190  library_names_spec='$libname.ixlibrary $libname.a'
13191  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13192  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'
13193  ;;
13194
13195beos*)
13196  library_names_spec='${libname}${shared_ext}'
13197  dynamic_linker="$host_os ld.so"
13198  shlibpath_var=LIBRARY_PATH
13199  ;;
13200
13201bsdi[45]*)
13202  version_type=linux
13203  need_version=no
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205  soname_spec='${libname}${release}${shared_ext}$major'
13206  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13207  shlibpath_var=LD_LIBRARY_PATH
13208  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13209  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13210  # the default ld.so.conf also contains /usr/contrib/lib and
13211  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13212  # libtool to hard-code these into programs
13213  ;;
13214
13215cygwin* | mingw* | pw32*)
13216  version_type=windows
13217  shrext_cmds=".dll"
13218  need_version=no
13219  need_lib_prefix=no
13220
13221  case $GCC,$host_os in
13222  yes,cygwin* | yes,mingw* | yes,pw32*)
13223    library_names_spec='$libname.dll.a'
13224    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13225    postinstall_cmds='base_file=`basename \${file}`~
13226      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13227      dldir=$destdir/`dirname \$dlpath`~
13228      test -d \$dldir || mkdir -p \$dldir~
13229      $install_prog $dir/$dlname \$dldir/$dlname~
13230      chmod a+x \$dldir/$dlname'
13231    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13232      dlpath=$dir/\$dldll~
13233       $rm \$dlpath'
13234    shlibpath_overrides_runpath=yes
13235
13236    case $host_os in
13237    cygwin*)
13238      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13239      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13240      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13241      ;;
13242    mingw*)
13243      # MinGW DLLs use traditional 'lib' prefix
13244      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13246      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13247        # It is most probably a Windows format PATH printed by
13248        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13249        # path with ; separators, and with drive letters. We can handle the
13250        # drive letters (cygwin fileutils understands them), so leave them,
13251        # especially as we might pass files found there to a mingw objdump,
13252        # which wouldn't understand a cygwinified path. Ahh.
13253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13254      else
13255        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13256      fi
13257      ;;
13258    pw32*)
13259      # pw32 DLLs use 'pw' prefix rather than 'lib'
13260      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13261      ;;
13262    esac
13263    ;;
13264
13265  *)
13266    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13267    ;;
13268  esac
13269  dynamic_linker='Win32 ld.exe'
13270  # FIXME: first we should search . and the directory the executable is in
13271  shlibpath_var=PATH
13272  ;;
13273
13274darwin* | rhapsody*)
13275  dynamic_linker="$host_os dyld"
13276  version_type=darwin
13277  need_lib_prefix=no
13278  need_version=no
13279  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13280  soname_spec='${libname}${release}${major}$shared_ext'
13281  shlibpath_overrides_runpath=yes
13282  shlibpath_var=DYLD_LIBRARY_PATH
13283  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13284
13285  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13286  ;;
13287
13288dgux*)
13289  version_type=linux
13290  need_lib_prefix=no
13291  need_version=no
13292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13293  soname_spec='${libname}${release}${shared_ext}$major'
13294  shlibpath_var=LD_LIBRARY_PATH
13295  ;;
13296
13297freebsd1*)
13298  dynamic_linker=no
13299  ;;
13300
13301freebsd* | dragonfly*)
13302  # DragonFly does not have aout.  When/if they implement a new
13303  # versioning mechanism, adjust this.
13304  if test -x /usr/bin/objformat; then
13305    objformat=`/usr/bin/objformat`
13306  else
13307    case $host_os in
13308    freebsd[123]*) objformat=aout ;;
13309    *) objformat=elf ;;
13310    esac
13311  fi
13312  version_type=freebsd-$objformat
13313  case $version_type in
13314    freebsd-elf*)
13315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13316      need_version=no
13317      need_lib_prefix=no
13318      ;;
13319    freebsd-*)
13320      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13321      need_version=yes
13322      ;;
13323  esac
13324  shlibpath_var=LD_LIBRARY_PATH
13325  case $host_os in
13326  freebsd2*)
13327    shlibpath_overrides_runpath=yes
13328    ;;
13329  freebsd3.[01]* | freebsdelf3.[01]*)
13330    shlibpath_overrides_runpath=yes
13331    hardcode_into_libs=yes
13332    ;;
13333  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13334  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13335    shlibpath_overrides_runpath=no
13336    hardcode_into_libs=yes
13337    ;;
13338  *) # from 4.6 on, and DragonFly
13339    shlibpath_overrides_runpath=yes
13340    hardcode_into_libs=yes
13341    ;;
13342  esac
13343  ;;
13344
13345gnu*)
13346  version_type=linux
13347  need_lib_prefix=no
13348  need_version=no
13349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13350  soname_spec='${libname}${release}${shared_ext}$major'
13351  shlibpath_var=LD_LIBRARY_PATH
13352  hardcode_into_libs=yes
13353  ;;
13354
13355hpux9* | hpux10* | hpux11*)
13356  # Give a soname corresponding to the major version so that dld.sl refuses to
13357  # link against other versions.
13358  version_type=sunos
13359  need_lib_prefix=no
13360  need_version=no
13361  case $host_cpu in
13362  ia64*)
13363    shrext_cmds='.so'
13364    hardcode_into_libs=yes
13365    dynamic_linker="$host_os dld.so"
13366    shlibpath_var=LD_LIBRARY_PATH
13367    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369    soname_spec='${libname}${release}${shared_ext}$major'
13370    if test "X$HPUX_IA64_MODE" = X32; then
13371      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13372    else
13373      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13374    fi
13375    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13376    ;;
13377   hppa*64*)
13378     shrext_cmds='.sl'
13379     hardcode_into_libs=yes
13380     dynamic_linker="$host_os dld.sl"
13381     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13382     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13384     soname_spec='${libname}${release}${shared_ext}$major'
13385     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13386     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13387     ;;
13388   *)
13389    shrext_cmds='.sl'
13390    dynamic_linker="$host_os dld.sl"
13391    shlibpath_var=SHLIB_PATH
13392    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394    soname_spec='${libname}${release}${shared_ext}$major'
13395    ;;
13396  esac
13397  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13398  postinstall_cmds='chmod 555 $lib'
13399  ;;
13400
13401interix[3-9]*)
13402  version_type=linux
13403  need_lib_prefix=no
13404  need_version=no
13405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13406  soname_spec='${libname}${release}${shared_ext}$major'
13407  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13408  shlibpath_var=LD_LIBRARY_PATH
13409  shlibpath_overrides_runpath=no
13410  hardcode_into_libs=yes
13411  ;;
13412
13413irix5* | irix6* | nonstopux*)
13414  case $host_os in
13415    nonstopux*) version_type=nonstopux ;;
13416    *)
13417	if test "$lt_cv_prog_gnu_ld" = yes; then
13418		version_type=linux
13419	else
13420		version_type=irix
13421	fi ;;
13422  esac
13423  need_lib_prefix=no
13424  need_version=no
13425  soname_spec='${libname}${release}${shared_ext}$major'
13426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13427  case $host_os in
13428  irix5* | nonstopux*)
13429    libsuff= shlibsuff=
13430    ;;
13431  *)
13432    case $LD in # libtool.m4 will add one of these switches to LD
13433    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13434      libsuff= shlibsuff= libmagic=32-bit;;
13435    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13436      libsuff=32 shlibsuff=N32 libmagic=N32;;
13437    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13438      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13439    *) libsuff= shlibsuff= libmagic=never-match;;
13440    esac
13441    ;;
13442  esac
13443  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13444  shlibpath_overrides_runpath=no
13445  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13446  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13447  hardcode_into_libs=yes
13448  ;;
13449
13450# No shared lib support for Linux oldld, aout, or coff.
13451linux*oldld* | linux*aout* | linux*coff*)
13452  dynamic_linker=no
13453  ;;
13454
13455# This must be Linux ELF.
13456linux* | k*bsd*-gnu)
13457  version_type=linux
13458  need_lib_prefix=no
13459  need_version=no
13460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461  soname_spec='${libname}${release}${shared_ext}$major'
13462  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13463  shlibpath_var=LD_LIBRARY_PATH
13464  shlibpath_overrides_runpath=no
13465  # This implies no fast_install, which is unacceptable.
13466  # Some rework will be needed to allow for fast_install
13467  # before this can be enabled.
13468  hardcode_into_libs=yes
13469  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13470  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13471
13472  # Append ld.so.conf contents to the search path
13473  if test -f /etc/ld.so.conf; then
13474    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' ' '`
13475    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13476  fi
13477
13478  # We used to test for /lib/ld.so.1 and disable shared libraries on
13479  # powerpc, because MkLinux only supported shared libraries with the
13480  # GNU dynamic linker.  Since this was broken with cross compilers,
13481  # most powerpc-linux boxes support dynamic linking these days and
13482  # people can always --disable-shared, the test was removed, and we
13483  # assume the GNU/Linux dynamic linker is in use.
13484  dynamic_linker='GNU/Linux ld.so'
13485  ;;
13486
13487netbsd*)
13488  version_type=sunos
13489  need_lib_prefix=no
13490  need_version=no
13491  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494    dynamic_linker='NetBSD (a.out) ld.so'
13495  else
13496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13497    soname_spec='${libname}${release}${shared_ext}$major'
13498    dynamic_linker='NetBSD ld.elf_so'
13499  fi
13500  shlibpath_var=LD_LIBRARY_PATH
13501  shlibpath_overrides_runpath=yes
13502  hardcode_into_libs=yes
13503  ;;
13504
13505newsos6)
13506  version_type=linux
13507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508  shlibpath_var=LD_LIBRARY_PATH
13509  shlibpath_overrides_runpath=yes
13510  ;;
13511
13512nto-qnx*)
13513  version_type=linux
13514  need_lib_prefix=no
13515  need_version=no
13516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517  soname_spec='${libname}${release}${shared_ext}$major'
13518  shlibpath_var=LD_LIBRARY_PATH
13519  shlibpath_overrides_runpath=yes
13520  ;;
13521
13522openbsd*)
13523  version_type=sunos
13524  sys_lib_dlsearch_path_spec="/usr/lib"
13525  need_lib_prefix=no
13526  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13527  case $host_os in
13528    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13529    *)                         need_version=no  ;;
13530  esac
13531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13533  shlibpath_var=LD_LIBRARY_PATH
13534  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13535    case $host_os in
13536      openbsd2.[89] | openbsd2.[89].*)
13537	shlibpath_overrides_runpath=no
13538	;;
13539      *)
13540	shlibpath_overrides_runpath=yes
13541	;;
13542      esac
13543  else
13544    shlibpath_overrides_runpath=yes
13545  fi
13546  ;;
13547
13548os2*)
13549  libname_spec='$name'
13550  shrext_cmds=".dll"
13551  need_lib_prefix=no
13552  library_names_spec='$libname${shared_ext} $libname.a'
13553  dynamic_linker='OS/2 ld.exe'
13554  shlibpath_var=LIBPATH
13555  ;;
13556
13557osf3* | osf4* | osf5*)
13558  version_type=osf
13559  need_lib_prefix=no
13560  need_version=no
13561  soname_spec='${libname}${release}${shared_ext}$major'
13562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563  shlibpath_var=LD_LIBRARY_PATH
13564  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13565  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13566  ;;
13567
13568rdos*)
13569  dynamic_linker=no
13570  ;;
13571
13572solaris*)
13573  version_type=linux
13574  need_lib_prefix=no
13575  need_version=no
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  shlibpath_var=LD_LIBRARY_PATH
13579  shlibpath_overrides_runpath=yes
13580  hardcode_into_libs=yes
13581  # ldd complains unless libraries are executable
13582  postinstall_cmds='chmod +x $lib'
13583  ;;
13584
13585sunos4*)
13586  version_type=sunos
13587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13589  shlibpath_var=LD_LIBRARY_PATH
13590  shlibpath_overrides_runpath=yes
13591  if test "$with_gnu_ld" = yes; then
13592    need_lib_prefix=no
13593  fi
13594  need_version=yes
13595  ;;
13596
13597sysv4 | sysv4.3*)
13598  version_type=linux
13599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600  soname_spec='${libname}${release}${shared_ext}$major'
13601  shlibpath_var=LD_LIBRARY_PATH
13602  case $host_vendor in
13603    sni)
13604      shlibpath_overrides_runpath=no
13605      need_lib_prefix=no
13606      export_dynamic_flag_spec='${wl}-Blargedynsym'
13607      runpath_var=LD_RUN_PATH
13608      ;;
13609    siemens)
13610      need_lib_prefix=no
13611      ;;
13612    motorola)
13613      need_lib_prefix=no
13614      need_version=no
13615      shlibpath_overrides_runpath=no
13616      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13617      ;;
13618  esac
13619  ;;
13620
13621sysv4*MP*)
13622  if test -d /usr/nec ;then
13623    version_type=linux
13624    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13625    soname_spec='$libname${shared_ext}.$major'
13626    shlibpath_var=LD_LIBRARY_PATH
13627  fi
13628  ;;
13629
13630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13631  version_type=freebsd-elf
13632  need_lib_prefix=no
13633  need_version=no
13634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13635  soname_spec='${libname}${release}${shared_ext}$major'
13636  shlibpath_var=LD_LIBRARY_PATH
13637  hardcode_into_libs=yes
13638  if test "$with_gnu_ld" = yes; then
13639    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13640    shlibpath_overrides_runpath=no
13641  else
13642    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13643    shlibpath_overrides_runpath=yes
13644    case $host_os in
13645      sco3.2v5*)
13646        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13647	;;
13648    esac
13649  fi
13650  sys_lib_dlsearch_path_spec='/usr/lib'
13651  ;;
13652
13653uts4*)
13654  version_type=linux
13655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656  soname_spec='${libname}${release}${shared_ext}$major'
13657  shlibpath_var=LD_LIBRARY_PATH
13658  ;;
13659
13660*)
13661  dynamic_linker=no
13662  ;;
13663esac
13664{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13665$as_echo "$dynamic_linker" >&6; }
13666test "$dynamic_linker" = no && can_build_shared=no
13667
13668if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13669  $as_echo_n "(cached) " >&6
13670else
13671  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13672fi
13673
13674sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13675if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13676  $as_echo_n "(cached) " >&6
13677else
13678  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13679fi
13680
13681sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13682
13683variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13684if test "$GCC" = yes; then
13685  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13686fi
13687
13688{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13689$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13690hardcode_action_CXX=
13691if test -n "$hardcode_libdir_flag_spec_CXX" || \
13692   test -n "$runpath_var_CXX" || \
13693   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13694
13695  # We can hardcode non-existant directories.
13696  if test "$hardcode_direct_CXX" != no &&
13697     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13698     # have to relink, otherwise we might link with an installed library
13699     # when we should be linking with a yet-to-be-installed one
13700     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13701     test "$hardcode_minus_L_CXX" != no; then
13702    # Linking always hardcodes the temporary library directory.
13703    hardcode_action_CXX=relink
13704  else
13705    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13706    hardcode_action_CXX=immediate
13707  fi
13708else
13709  # We cannot hardcode anything, or else we can only hardcode existing
13710  # directories.
13711  hardcode_action_CXX=unsupported
13712fi
13713{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13714$as_echo "$hardcode_action_CXX" >&6; }
13715
13716if test "$hardcode_action_CXX" = relink; then
13717  # Fast installation is not supported
13718  enable_fast_install=no
13719elif test "$shlibpath_overrides_runpath" = yes ||
13720     test "$enable_shared" = no; then
13721  # Fast installation is not necessary
13722  enable_fast_install=needless
13723fi
13724
13725
13726# The else clause should only fire when bootstrapping the
13727# libtool distribution, otherwise you forgot to ship ltmain.sh
13728# with your package, and you will get complaints that there are
13729# no rules to generate ltmain.sh.
13730if test -f "$ltmain"; then
13731  # See if we are running on zsh, and set the options which allow our commands through
13732  # without removal of \ escapes.
13733  if test -n "${ZSH_VERSION+set}" ; then
13734    setopt NO_GLOB_SUBST
13735  fi
13736  # Now quote all the things that may contain metacharacters while being
13737  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13738  # variables and quote the copies for generation of the libtool script.
13739  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13740    SED SHELL STRIP \
13741    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13742    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13743    deplibs_check_method reload_flag reload_cmds need_locks \
13744    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13745    lt_cv_sys_global_symbol_to_c_name_address \
13746    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13747    old_postinstall_cmds old_postuninstall_cmds \
13748    compiler_CXX \
13749    CC_CXX \
13750    LD_CXX \
13751    lt_prog_compiler_wl_CXX \
13752    lt_prog_compiler_pic_CXX \
13753    lt_prog_compiler_static_CXX \
13754    lt_prog_compiler_no_builtin_flag_CXX \
13755    export_dynamic_flag_spec_CXX \
13756    thread_safe_flag_spec_CXX \
13757    whole_archive_flag_spec_CXX \
13758    enable_shared_with_static_runtimes_CXX \
13759    old_archive_cmds_CXX \
13760    old_archive_from_new_cmds_CXX \
13761    predep_objects_CXX \
13762    postdep_objects_CXX \
13763    predeps_CXX \
13764    postdeps_CXX \
13765    compiler_lib_search_path_CXX \
13766    compiler_lib_search_dirs_CXX \
13767    archive_cmds_CXX \
13768    archive_expsym_cmds_CXX \
13769    postinstall_cmds_CXX \
13770    postuninstall_cmds_CXX \
13771    old_archive_from_expsyms_cmds_CXX \
13772    allow_undefined_flag_CXX \
13773    no_undefined_flag_CXX \
13774    export_symbols_cmds_CXX \
13775    hardcode_libdir_flag_spec_CXX \
13776    hardcode_libdir_flag_spec_ld_CXX \
13777    hardcode_libdir_separator_CXX \
13778    hardcode_automatic_CXX \
13779    module_cmds_CXX \
13780    module_expsym_cmds_CXX \
13781    lt_cv_prog_compiler_c_o_CXX \
13782    fix_srcfile_path_CXX \
13783    exclude_expsyms_CXX \
13784    include_expsyms_CXX; do
13785
13786    case $var in
13787    old_archive_cmds_CXX | \
13788    old_archive_from_new_cmds_CXX | \
13789    archive_cmds_CXX | \
13790    archive_expsym_cmds_CXX | \
13791    module_cmds_CXX | \
13792    module_expsym_cmds_CXX | \
13793    old_archive_from_expsyms_cmds_CXX | \
13794    export_symbols_cmds_CXX | \
13795    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13796    postinstall_cmds | postuninstall_cmds | \
13797    old_postinstall_cmds | old_postuninstall_cmds | \
13798    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13799      # Double-quote double-evaled strings.
13800      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13801      ;;
13802    *)
13803      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13804      ;;
13805    esac
13806  done
13807
13808  case $lt_echo in
13809  *'\$0 --fallback-echo"')
13810    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13811    ;;
13812  esac
13813
13814cfgfile="$ofile"
13815
13816  cat <<__EOF__ >> "$cfgfile"
13817# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13818
13819# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13820
13821# Shell to use when invoking shell scripts.
13822SHELL=$lt_SHELL
13823
13824# Whether or not to build shared libraries.
13825build_libtool_libs=$enable_shared
13826
13827# Whether or not to build static libraries.
13828build_old_libs=$enable_static
13829
13830# Whether or not to add -lc for building shared libraries.
13831build_libtool_need_lc=$archive_cmds_need_lc_CXX
13832
13833# Whether or not to disallow shared libs when runtime libs are static
13834allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13835
13836# Whether or not to optimize for fast installation.
13837fast_install=$enable_fast_install
13838
13839# The host system.
13840host_alias=$host_alias
13841host=$host
13842host_os=$host_os
13843
13844# The build system.
13845build_alias=$build_alias
13846build=$build
13847build_os=$build_os
13848
13849# An echo program that does not interpret backslashes.
13850echo=$lt_echo
13851
13852# The archiver.
13853AR=$lt_AR
13854AR_FLAGS=$lt_AR_FLAGS
13855
13856# A C compiler.
13857LTCC=$lt_LTCC
13858
13859# LTCC compiler flags.
13860LTCFLAGS=$lt_LTCFLAGS
13861
13862# A language-specific compiler.
13863CC=$lt_compiler_CXX
13864
13865# Is the compiler the GNU C compiler?
13866with_gcc=$GCC_CXX
13867
13868# An ERE matcher.
13869EGREP=$lt_EGREP
13870
13871# The linker used to build libraries.
13872LD=$lt_LD_CXX
13873
13874# Whether we need hard or soft links.
13875LN_S=$lt_LN_S
13876
13877# A BSD-compatible nm program.
13878NM=$lt_NM
13879
13880# A symbol stripping program
13881STRIP=$lt_STRIP
13882
13883# Used to examine libraries when file_magic_cmd begins "file"
13884MAGIC_CMD=$MAGIC_CMD
13885
13886# Used on cygwin: DLL creation program.
13887DLLTOOL="$DLLTOOL"
13888
13889# Used on cygwin: object dumper.
13890OBJDUMP="$OBJDUMP"
13891
13892# Used on cygwin: assembler.
13893AS="$AS"
13894
13895# The name of the directory that contains temporary libtool files.
13896objdir=$objdir
13897
13898# How to create reloadable object files.
13899reload_flag=$lt_reload_flag
13900reload_cmds=$lt_reload_cmds
13901
13902# How to pass a linker flag through the compiler.
13903wl=$lt_lt_prog_compiler_wl_CXX
13904
13905# Object file suffix (normally "o").
13906objext="$ac_objext"
13907
13908# Old archive suffix (normally "a").
13909libext="$libext"
13910
13911# Shared library suffix (normally ".so").
13912shrext_cmds='$shrext_cmds'
13913
13914# Executable file suffix (normally "").
13915exeext="$exeext"
13916
13917# Additional compiler flags for building library objects.
13918pic_flag=$lt_lt_prog_compiler_pic_CXX
13919pic_mode=$pic_mode
13920
13921# What is the maximum length of a command?
13922max_cmd_len=$lt_cv_sys_max_cmd_len
13923
13924# Does compiler simultaneously support -c and -o options?
13925compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13926
13927# Must we lock files when doing compilation?
13928need_locks=$lt_need_locks
13929
13930# Do we need the lib prefix for modules?
13931need_lib_prefix=$need_lib_prefix
13932
13933# Do we need a version for libraries?
13934need_version=$need_version
13935
13936# Whether dlopen is supported.
13937dlopen_support=$enable_dlopen
13938
13939# Whether dlopen of programs is supported.
13940dlopen_self=$enable_dlopen_self
13941
13942# Whether dlopen of statically linked programs is supported.
13943dlopen_self_static=$enable_dlopen_self_static
13944
13945# Compiler flag to prevent dynamic linking.
13946link_static_flag=$lt_lt_prog_compiler_static_CXX
13947
13948# Compiler flag to turn off builtin functions.
13949no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13950
13951# Compiler flag to allow reflexive dlopens.
13952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13953
13954# Compiler flag to generate shared objects directly from archives.
13955whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13956
13957# Compiler flag to generate thread-safe objects.
13958thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13959
13960# Library versioning type.
13961version_type=$version_type
13962
13963# Format of library name prefix.
13964libname_spec=$lt_libname_spec
13965
13966# List of archive names.  First name is the real one, the rest are links.
13967# The last name is the one that the linker finds with -lNAME.
13968library_names_spec=$lt_library_names_spec
13969
13970# The coded name of the library, if different from the real name.
13971soname_spec=$lt_soname_spec
13972
13973# Commands used to build and install an old-style archive.
13974RANLIB=$lt_RANLIB
13975old_archive_cmds=$lt_old_archive_cmds_CXX
13976old_postinstall_cmds=$lt_old_postinstall_cmds
13977old_postuninstall_cmds=$lt_old_postuninstall_cmds
13978
13979# Create an old-style archive from a shared archive.
13980old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13981
13982# Create a temporary old-style archive to link instead of a shared archive.
13983old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13984
13985# Commands used to build and install a shared archive.
13986archive_cmds=$lt_archive_cmds_CXX
13987archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13988postinstall_cmds=$lt_postinstall_cmds
13989postuninstall_cmds=$lt_postuninstall_cmds
13990
13991# Commands used to build a loadable module (assumed same as above if empty)
13992module_cmds=$lt_module_cmds_CXX
13993module_expsym_cmds=$lt_module_expsym_cmds_CXX
13994
13995# Commands to strip libraries.
13996old_striplib=$lt_old_striplib
13997striplib=$lt_striplib
13998
13999# Dependencies to place before the objects being linked to create a
14000# shared library.
14001predep_objects=$lt_predep_objects_CXX
14002
14003# Dependencies to place after the objects being linked to create a
14004# shared library.
14005postdep_objects=$lt_postdep_objects_CXX
14006
14007# Dependencies to place before the objects being linked to create a
14008# shared library.
14009predeps=$lt_predeps_CXX
14010
14011# Dependencies to place after the objects being linked to create a
14012# shared library.
14013postdeps=$lt_postdeps_CXX
14014
14015# The directories searched by this compiler when creating a shared
14016# library
14017compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14018
14019# The library search path used internally by the compiler when linking
14020# a shared library.
14021compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14022
14023# Method to check whether dependent libraries are shared objects.
14024deplibs_check_method=$lt_deplibs_check_method
14025
14026# Command to use when deplibs_check_method == file_magic.
14027file_magic_cmd=$lt_file_magic_cmd
14028
14029# Flag that allows shared libraries with undefined symbols to be built.
14030allow_undefined_flag=$lt_allow_undefined_flag_CXX
14031
14032# Flag that forces no undefined symbols.
14033no_undefined_flag=$lt_no_undefined_flag_CXX
14034
14035# Commands used to finish a libtool library installation in a directory.
14036finish_cmds=$lt_finish_cmds
14037
14038# Same as above, but a single script fragment to be evaled but not shown.
14039finish_eval=$lt_finish_eval
14040
14041# Take the output of nm and produce a listing of raw symbols and C names.
14042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14043
14044# Transform the output of nm in a proper C declaration
14045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14046
14047# Transform the output of nm in a C name address pair
14048global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14049
14050# This is the shared library runtime path variable.
14051runpath_var=$runpath_var
14052
14053# This is the shared library path variable.
14054shlibpath_var=$shlibpath_var
14055
14056# Is shlibpath searched before the hard-coded library search path?
14057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14058
14059# How to hardcode a shared library path into an executable.
14060hardcode_action=$hardcode_action_CXX
14061
14062# Whether we should hardcode library paths into libraries.
14063hardcode_into_libs=$hardcode_into_libs
14064
14065# Flag to hardcode \$libdir into a binary during linking.
14066# This must work even if \$libdir does not exist.
14067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14068
14069# If ld is used when linking, flag to hardcode \$libdir into
14070# a binary during linking. This must work even if \$libdir does
14071# not exist.
14072hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14073
14074# Whether we need a single -rpath flag with a separated argument.
14075hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14076
14077# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14078# resulting binary.
14079hardcode_direct=$hardcode_direct_CXX
14080
14081# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14082# resulting binary.
14083hardcode_minus_L=$hardcode_minus_L_CXX
14084
14085# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14086# the resulting binary.
14087hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14088
14089# Set to yes if building a shared library automatically hardcodes DIR into the library
14090# and all subsequent libraries and executables linked against it.
14091hardcode_automatic=$hardcode_automatic_CXX
14092
14093# Variables whose values should be saved in libtool wrapper scripts and
14094# restored at relink time.
14095variables_saved_for_relink="$variables_saved_for_relink"
14096
14097# Whether libtool must link a program against all its dependency libraries.
14098link_all_deplibs=$link_all_deplibs_CXX
14099
14100# Compile-time system search path for libraries
14101sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14102
14103# Run-time system search path for libraries
14104sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14105
14106# Fix the shell variable \$srcfile for the compiler.
14107fix_srcfile_path=$lt_fix_srcfile_path
14108
14109# Set to yes if exported symbols are required.
14110always_export_symbols=$always_export_symbols_CXX
14111
14112# The commands to list exported symbols.
14113export_symbols_cmds=$lt_export_symbols_cmds_CXX
14114
14115# The commands to extract the exported symbol list from a shared archive.
14116extract_expsyms_cmds=$lt_extract_expsyms_cmds
14117
14118# Symbols that should not be listed in the preloaded symbols.
14119exclude_expsyms=$lt_exclude_expsyms_CXX
14120
14121# Symbols that must always be exported.
14122include_expsyms=$lt_include_expsyms_CXX
14123
14124# ### END LIBTOOL TAG CONFIG: $tagname
14125
14126__EOF__
14127
14128
14129else
14130  # If there is no Makefile yet, we rely on a make rule to execute
14131  # `config.status --recheck' to rerun these tests and create the
14132  # libtool script then.
14133  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14134  if test -f "$ltmain_in"; then
14135    test -f Makefile && make "$ltmain"
14136  fi
14137fi
14138
14139
14140ac_ext=c
14141ac_cpp='$CPP $CPPFLAGS'
14142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144ac_compiler_gnu=$ac_cv_c_compiler_gnu
14145
14146CC=$lt_save_CC
14147LDCXX=$LD
14148LD=$lt_save_LD
14149GCC=$lt_save_GCC
14150with_gnu_ldcxx=$with_gnu_ld
14151with_gnu_ld=$lt_save_with_gnu_ld
14152lt_cv_path_LDCXX=$lt_cv_path_LD
14153lt_cv_path_LD=$lt_save_path_LD
14154lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14155lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14156
14157	else
14158	  tagname=""
14159	fi
14160	;;
14161
14162      F77)
14163	if test -n "$F77" && test "X$F77" != "Xno"; then
14164
14165ac_ext=f
14166ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14167ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14169
14170
14171archive_cmds_need_lc_F77=no
14172allow_undefined_flag_F77=
14173always_export_symbols_F77=no
14174archive_expsym_cmds_F77=
14175export_dynamic_flag_spec_F77=
14176hardcode_direct_F77=no
14177hardcode_libdir_flag_spec_F77=
14178hardcode_libdir_flag_spec_ld_F77=
14179hardcode_libdir_separator_F77=
14180hardcode_minus_L_F77=no
14181hardcode_automatic_F77=no
14182module_cmds_F77=
14183module_expsym_cmds_F77=
14184link_all_deplibs_F77=unknown
14185old_archive_cmds_F77=$old_archive_cmds
14186no_undefined_flag_F77=
14187whole_archive_flag_spec_F77=
14188enable_shared_with_static_runtimes_F77=no
14189
14190# Source file extension for f77 test sources.
14191ac_ext=f
14192
14193# Object file extension for compiled f77 test sources.
14194objext=o
14195objext_F77=$objext
14196
14197# Code to be used in simple compile tests
14198lt_simple_compile_test_code="\
14199      subroutine t
14200      return
14201      end
14202"
14203
14204# Code to be used in simple link tests
14205lt_simple_link_test_code="\
14206      program t
14207      end
14208"
14209
14210# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14211
14212# If no C compiler was specified, use CC.
14213LTCC=${LTCC-"$CC"}
14214
14215# If no C compiler flags were specified, use CFLAGS.
14216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14217
14218# Allow CC to be a program name with arguments.
14219compiler=$CC
14220
14221
14222# save warnings/boilerplate of simple test code
14223ac_outfile=conftest.$ac_objext
14224echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14226_lt_compiler_boilerplate=`cat conftest.err`
14227$rm conftest*
14228
14229ac_outfile=conftest.$ac_objext
14230echo "$lt_simple_link_test_code" >conftest.$ac_ext
14231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14232_lt_linker_boilerplate=`cat conftest.err`
14233$rm -r conftest*
14234
14235
14236# Allow CC to be a program name with arguments.
14237lt_save_CC="$CC"
14238CC=${F77-"f77"}
14239compiler=$CC
14240compiler_F77=$CC
14241for cc_temp in $compiler""; do
14242  case $cc_temp in
14243    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14244    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14245    \-*) ;;
14246    *) break;;
14247  esac
14248done
14249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14250
14251
14252{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14253$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14254{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14255$as_echo "$can_build_shared" >&6; }
14256
14257{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14258$as_echo_n "checking whether to build shared libraries... " >&6; }
14259test "$can_build_shared" = "no" && enable_shared=no
14260
14261# On AIX, shared libraries and static libraries use the same namespace, and
14262# are all built from PIC.
14263case $host_os in
14264aix3*)
14265  test "$enable_shared" = yes && enable_static=no
14266  if test -n "$RANLIB"; then
14267    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14268    postinstall_cmds='$RANLIB $lib'
14269  fi
14270  ;;
14271aix[4-9]*)
14272  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14273    test "$enable_shared" = yes && enable_static=no
14274  fi
14275  ;;
14276esac
14277{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14278$as_echo "$enable_shared" >&6; }
14279
14280{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14281$as_echo_n "checking whether to build static libraries... " >&6; }
14282# Make sure either enable_shared or enable_static is yes.
14283test "$enable_shared" = yes || enable_static=yes
14284{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14285$as_echo "$enable_static" >&6; }
14286
14287GCC_F77="$G77"
14288LD_F77="$LD"
14289
14290lt_prog_compiler_wl_F77=
14291lt_prog_compiler_pic_F77=
14292lt_prog_compiler_static_F77=
14293
14294{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14295$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14296
14297  if test "$GCC" = yes; then
14298    lt_prog_compiler_wl_F77='-Wl,'
14299    lt_prog_compiler_static_F77='-static'
14300
14301    case $host_os in
14302      aix*)
14303      # All AIX code is PIC.
14304      if test "$host_cpu" = ia64; then
14305	# AIX 5 now supports IA64 processor
14306	lt_prog_compiler_static_F77='-Bstatic'
14307      fi
14308      ;;
14309
14310    amigaos*)
14311      # FIXME: we need at least 68020 code to build shared libraries, but
14312      # adding the `-m68020' flag to GCC prevents building anything better,
14313      # like `-m68040'.
14314      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14315      ;;
14316
14317    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14318      # PIC is the default for these OSes.
14319      ;;
14320
14321    mingw* | cygwin* | pw32* | os2*)
14322      # This hack is so that the source file can tell whether it is being
14323      # built for inclusion in a dll (and should export symbols for example).
14324      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14325      # (--disable-auto-import) libraries
14326      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14327      ;;
14328
14329    darwin* | rhapsody*)
14330      # PIC is the default on this platform
14331      # Common symbols not allowed in MH_DYLIB files
14332      lt_prog_compiler_pic_F77='-fno-common'
14333      ;;
14334
14335    interix[3-9]*)
14336      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14337      # Instead, we relocate shared libraries at runtime.
14338      ;;
14339
14340    msdosdjgpp*)
14341      # Just because we use GCC doesn't mean we suddenly get shared libraries
14342      # on systems that don't support them.
14343      lt_prog_compiler_can_build_shared_F77=no
14344      enable_shared=no
14345      ;;
14346
14347    sysv4*MP*)
14348      if test -d /usr/nec; then
14349	lt_prog_compiler_pic_F77=-Kconform_pic
14350      fi
14351      ;;
14352
14353    hpux*)
14354      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14355      # not for PA HP-UX.
14356      case $host_cpu in
14357      hppa*64*|ia64*)
14358	# +Z the default
14359	;;
14360      *)
14361	lt_prog_compiler_pic_F77='-fPIC'
14362	;;
14363      esac
14364      ;;
14365
14366    *)
14367      lt_prog_compiler_pic_F77='-fPIC'
14368      ;;
14369    esac
14370  else
14371    # PORTME Check for flag to pass linker flags through the system compiler.
14372    case $host_os in
14373    aix*)
14374      lt_prog_compiler_wl_F77='-Wl,'
14375      if test "$host_cpu" = ia64; then
14376	# AIX 5 now supports IA64 processor
14377	lt_prog_compiler_static_F77='-Bstatic'
14378      else
14379	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14380      fi
14381      ;;
14382      darwin*)
14383        # PIC is the default on this platform
14384        # Common symbols not allowed in MH_DYLIB files
14385       case $cc_basename in
14386         xlc*)
14387         lt_prog_compiler_pic_F77='-qnocommon'
14388         lt_prog_compiler_wl_F77='-Wl,'
14389         ;;
14390       esac
14391       ;;
14392
14393    mingw* | cygwin* | pw32* | os2*)
14394      # This hack is so that the source file can tell whether it is being
14395      # built for inclusion in a dll (and should export symbols for example).
14396      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14397      ;;
14398
14399    hpux9* | hpux10* | hpux11*)
14400      lt_prog_compiler_wl_F77='-Wl,'
14401      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14402      # not for PA HP-UX.
14403      case $host_cpu in
14404      hppa*64*|ia64*)
14405	# +Z the default
14406	;;
14407      *)
14408	lt_prog_compiler_pic_F77='+Z'
14409	;;
14410      esac
14411      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14412      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14413      ;;
14414
14415    irix5* | irix6* | nonstopux*)
14416      lt_prog_compiler_wl_F77='-Wl,'
14417      # PIC (with -KPIC) is the default.
14418      lt_prog_compiler_static_F77='-non_shared'
14419      ;;
14420
14421    newsos6)
14422      lt_prog_compiler_pic_F77='-KPIC'
14423      lt_prog_compiler_static_F77='-Bstatic'
14424      ;;
14425
14426    linux* | k*bsd*-gnu)
14427      case $cc_basename in
14428      icc* | ecc*)
14429	lt_prog_compiler_wl_F77='-Wl,'
14430	lt_prog_compiler_pic_F77='-KPIC'
14431	lt_prog_compiler_static_F77='-static'
14432        ;;
14433      pgcc* | pgf77* | pgf90* | pgf95*)
14434        # Portland Group compilers (*not* the Pentium gcc compiler,
14435	# which looks to be a dead project)
14436	lt_prog_compiler_wl_F77='-Wl,'
14437	lt_prog_compiler_pic_F77='-fpic'
14438	lt_prog_compiler_static_F77='-Bstatic'
14439        ;;
14440      ccc*)
14441        lt_prog_compiler_wl_F77='-Wl,'
14442        # All Alpha code is PIC.
14443        lt_prog_compiler_static_F77='-non_shared'
14444        ;;
14445      *)
14446        case `$CC -V 2>&1 | sed 5q` in
14447	*Sun\ C*)
14448	  # Sun C 5.9
14449	  lt_prog_compiler_pic_F77='-KPIC'
14450	  lt_prog_compiler_static_F77='-Bstatic'
14451	  lt_prog_compiler_wl_F77='-Wl,'
14452	  ;;
14453	*Sun\ F*)
14454	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14455	  lt_prog_compiler_pic_F77='-KPIC'
14456	  lt_prog_compiler_static_F77='-Bstatic'
14457	  lt_prog_compiler_wl_F77=''
14458	  ;;
14459	esac
14460	;;
14461      esac
14462      ;;
14463
14464    osf3* | osf4* | osf5*)
14465      lt_prog_compiler_wl_F77='-Wl,'
14466      # All OSF/1 code is PIC.
14467      lt_prog_compiler_static_F77='-non_shared'
14468      ;;
14469
14470    rdos*)
14471      lt_prog_compiler_static_F77='-non_shared'
14472      ;;
14473
14474    solaris*)
14475      lt_prog_compiler_pic_F77='-KPIC'
14476      lt_prog_compiler_static_F77='-Bstatic'
14477      case $cc_basename in
14478      f77* | f90* | f95*)
14479	lt_prog_compiler_wl_F77='-Qoption ld ';;
14480      *)
14481	lt_prog_compiler_wl_F77='-Wl,';;
14482      esac
14483      ;;
14484
14485    sunos4*)
14486      lt_prog_compiler_wl_F77='-Qoption ld '
14487      lt_prog_compiler_pic_F77='-PIC'
14488      lt_prog_compiler_static_F77='-Bstatic'
14489      ;;
14490
14491    sysv4 | sysv4.2uw2* | sysv4.3*)
14492      lt_prog_compiler_wl_F77='-Wl,'
14493      lt_prog_compiler_pic_F77='-KPIC'
14494      lt_prog_compiler_static_F77='-Bstatic'
14495      ;;
14496
14497    sysv4*MP*)
14498      if test -d /usr/nec ;then
14499	lt_prog_compiler_pic_F77='-Kconform_pic'
14500	lt_prog_compiler_static_F77='-Bstatic'
14501      fi
14502      ;;
14503
14504    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14505      lt_prog_compiler_wl_F77='-Wl,'
14506      lt_prog_compiler_pic_F77='-KPIC'
14507      lt_prog_compiler_static_F77='-Bstatic'
14508      ;;
14509
14510    unicos*)
14511      lt_prog_compiler_wl_F77='-Wl,'
14512      lt_prog_compiler_can_build_shared_F77=no
14513      ;;
14514
14515    uts4*)
14516      lt_prog_compiler_pic_F77='-pic'
14517      lt_prog_compiler_static_F77='-Bstatic'
14518      ;;
14519
14520    *)
14521      lt_prog_compiler_can_build_shared_F77=no
14522      ;;
14523    esac
14524  fi
14525
14526{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14527$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14528
14529#
14530# Check to make sure the PIC flag actually works.
14531#
14532if test -n "$lt_prog_compiler_pic_F77"; then
14533
14534{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14535$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14536if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14537  $as_echo_n "(cached) " >&6
14538else
14539  lt_cv_prog_compiler_pic_works_F77=no
14540  ac_outfile=conftest.$ac_objext
14541   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14543   # Insert the option either (1) after the last *FLAGS variable, or
14544   # (2) before a word containing "conftest.", or (3) at the end.
14545   # Note that $ac_compile itself does not contain backslashes and begins
14546   # with a dollar sign (not a hyphen), so the echo should work correctly.
14547   # The option is referenced via a variable to avoid confusing sed.
14548   lt_compile=`echo "$ac_compile" | $SED \
14549   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551   -e 's:$: $lt_compiler_flag:'`
14552   (eval echo "\"\$as_me:14552: $lt_compile\"" >&5)
14553   (eval "$lt_compile" 2>conftest.err)
14554   ac_status=$?
14555   cat conftest.err >&5
14556   echo "$as_me:14556: \$? = $ac_status" >&5
14557   if (exit $ac_status) && test -s "$ac_outfile"; then
14558     # The compiler can only warn and ignore the option if not recognized
14559     # So say no if there are warnings other than the usual output.
14560     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14561     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14562     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14563       lt_cv_prog_compiler_pic_works_F77=yes
14564     fi
14565   fi
14566   $rm conftest*
14567
14568fi
14569{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14570$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14571
14572if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14573    case $lt_prog_compiler_pic_F77 in
14574     "" | " "*) ;;
14575     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14576     esac
14577else
14578    lt_prog_compiler_pic_F77=
14579     lt_prog_compiler_can_build_shared_F77=no
14580fi
14581
14582fi
14583case $host_os in
14584  # For platforms which do not support PIC, -DPIC is meaningless:
14585  *djgpp*)
14586    lt_prog_compiler_pic_F77=
14587    ;;
14588  *)
14589    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14590    ;;
14591esac
14592
14593#
14594# Check to make sure the static flag actually works.
14595#
14596wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14597{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14598$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14599if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14600  $as_echo_n "(cached) " >&6
14601else
14602  lt_cv_prog_compiler_static_works_F77=no
14603   save_LDFLAGS="$LDFLAGS"
14604   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14605   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14606   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14607     # The linker can only warn and ignore the option if not recognized
14608     # So say no if there are warnings
14609     if test -s conftest.err; then
14610       # Append any errors to the config.log.
14611       cat conftest.err 1>&5
14612       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14613       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14614       if diff conftest.exp conftest.er2 >/dev/null; then
14615         lt_cv_prog_compiler_static_works_F77=yes
14616       fi
14617     else
14618       lt_cv_prog_compiler_static_works_F77=yes
14619     fi
14620   fi
14621   $rm -r conftest*
14622   LDFLAGS="$save_LDFLAGS"
14623
14624fi
14625{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14626$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14627
14628if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14629    :
14630else
14631    lt_prog_compiler_static_F77=
14632fi
14633
14634
14635{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14638  $as_echo_n "(cached) " >&6
14639else
14640  lt_cv_prog_compiler_c_o_F77=no
14641   $rm -r conftest 2>/dev/null
14642   mkdir conftest
14643   cd conftest
14644   mkdir out
14645   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646
14647   lt_compiler_flag="-o out/conftest2.$ac_objext"
14648   # Insert the option either (1) after the last *FLAGS variable, or
14649   # (2) before a word containing "conftest.", or (3) at the end.
14650   # Note that $ac_compile itself does not contain backslashes and begins
14651   # with a dollar sign (not a hyphen), so the echo should work correctly.
14652   lt_compile=`echo "$ac_compile" | $SED \
14653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655   -e 's:$: $lt_compiler_flag:'`
14656   (eval echo "\"\$as_me:14656: $lt_compile\"" >&5)
14657   (eval "$lt_compile" 2>out/conftest.err)
14658   ac_status=$?
14659   cat out/conftest.err >&5
14660   echo "$as_me:14660: \$? = $ac_status" >&5
14661   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14662   then
14663     # The compiler can only warn and ignore the option if not recognized
14664     # So say no if there are warnings
14665     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14666     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668       lt_cv_prog_compiler_c_o_F77=yes
14669     fi
14670   fi
14671   chmod u+w . 2>&5
14672   $rm conftest*
14673   # SGI C++ compiler will create directory out/ii_files/ for
14674   # template instantiation
14675   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14676   $rm out/* && rmdir out
14677   cd ..
14678   rmdir conftest
14679   $rm conftest*
14680
14681fi
14682{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14683$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14684
14685
14686hard_links="nottested"
14687if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14688  # do not overwrite the value of need_locks provided by the user
14689  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14690$as_echo_n "checking if we can lock with hard links... " >&6; }
14691  hard_links=yes
14692  $rm conftest*
14693  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14694  touch conftest.a
14695  ln conftest.a conftest.b 2>&5 || hard_links=no
14696  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14698$as_echo "$hard_links" >&6; }
14699  if test "$hard_links" = no; then
14700    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14702    need_locks=warn
14703  fi
14704else
14705  need_locks=no
14706fi
14707
14708{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14709$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14710
14711  runpath_var=
14712  allow_undefined_flag_F77=
14713  enable_shared_with_static_runtimes_F77=no
14714  archive_cmds_F77=
14715  archive_expsym_cmds_F77=
14716  old_archive_From_new_cmds_F77=
14717  old_archive_from_expsyms_cmds_F77=
14718  export_dynamic_flag_spec_F77=
14719  whole_archive_flag_spec_F77=
14720  thread_safe_flag_spec_F77=
14721  hardcode_libdir_flag_spec_F77=
14722  hardcode_libdir_flag_spec_ld_F77=
14723  hardcode_libdir_separator_F77=
14724  hardcode_direct_F77=no
14725  hardcode_minus_L_F77=no
14726  hardcode_shlibpath_var_F77=unsupported
14727  link_all_deplibs_F77=unknown
14728  hardcode_automatic_F77=no
14729  module_cmds_F77=
14730  module_expsym_cmds_F77=
14731  always_export_symbols_F77=no
14732  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14733  # include_expsyms should be a list of space-separated symbols to be *always*
14734  # included in the symbol list
14735  include_expsyms_F77=
14736  # exclude_expsyms can be an extended regexp of symbols to exclude
14737  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14738  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14739  # as well as any symbol that contains `d'.
14740  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14741  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14742  # platforms (ab)use it in PIC code, but their linkers get confused if
14743  # the symbol is explicitly referenced.  Since portable code cannot
14744  # rely on this symbol name, it's probably fine to never include it in
14745  # preloaded symbol tables.
14746  # Exclude shared library initialization/finalization symbols.
14747  extract_expsyms_cmds=
14748  # Just being paranoid about ensuring that cc_basename is set.
14749  for cc_temp in $compiler""; do
14750  case $cc_temp in
14751    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14752    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14753    \-*) ;;
14754    *) break;;
14755  esac
14756done
14757cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14758
14759  case $host_os in
14760  cygwin* | mingw* | pw32*)
14761    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14762    # When not using gcc, we currently assume that we are using
14763    # Microsoft Visual C++.
14764    if test "$GCC" != yes; then
14765      with_gnu_ld=no
14766    fi
14767    ;;
14768  interix*)
14769    # we just hope/assume this is gcc and not c89 (= MSVC++)
14770    with_gnu_ld=yes
14771    ;;
14772  openbsd*)
14773    with_gnu_ld=no
14774    ;;
14775  esac
14776
14777  ld_shlibs_F77=yes
14778  if test "$with_gnu_ld" = yes; then
14779    # If archive_cmds runs LD, not CC, wlarc should be empty
14780    wlarc='${wl}'
14781
14782    # Set some defaults for GNU ld with shared library support. These
14783    # are reset later if shared libraries are not supported. Putting them
14784    # here allows them to be overridden if necessary.
14785    runpath_var=LD_RUN_PATH
14786    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14787    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14788    # ancient GNU ld didn't support --whole-archive et. al.
14789    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14790	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14791      else
14792  	whole_archive_flag_spec_F77=
14793    fi
14794    supports_anon_versioning=no
14795    case `$LD -v 2>/dev/null` in
14796      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14797      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14798      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14799      *\ 2.11.*) ;; # other 2.11 versions
14800      *) supports_anon_versioning=yes ;;
14801    esac
14802
14803    # See if GNU ld supports shared libraries.
14804    case $host_os in
14805    aix[3-9]*)
14806      # On AIX/PPC, the GNU linker is very broken
14807      if test "$host_cpu" != ia64; then
14808	ld_shlibs_F77=no
14809	cat <<EOF 1>&2
14810
14811*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14812*** to be unable to reliably create shared libraries on AIX.
14813*** Therefore, libtool is disabling shared libraries support.  If you
14814*** really care for shared libraries, you may want to modify your PATH
14815*** so that a non-GNU linker is found, and then restart.
14816
14817EOF
14818      fi
14819      ;;
14820
14821    amigaos*)
14822      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)'
14823      hardcode_libdir_flag_spec_F77='-L$libdir'
14824      hardcode_minus_L_F77=yes
14825
14826      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14827      # that the semantics of dynamic libraries on AmigaOS, at least up
14828      # to version 4, is to share data among multiple programs linked
14829      # with the same dynamic library.  Since this doesn't match the
14830      # behavior of shared libraries on other platforms, we can't use
14831      # them.
14832      ld_shlibs_F77=no
14833      ;;
14834
14835    beos*)
14836      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837	allow_undefined_flag_F77=unsupported
14838	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14839	# support --undefined.  This deserves some investigation.  FIXME
14840	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841      else
14842	ld_shlibs_F77=no
14843      fi
14844      ;;
14845
14846    cygwin* | mingw* | pw32*)
14847      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14848      # as there is no search path for DLLs.
14849      hardcode_libdir_flag_spec_F77='-L$libdir'
14850      allow_undefined_flag_F77=unsupported
14851      always_export_symbols_F77=no
14852      enable_shared_with_static_runtimes_F77=yes
14853      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14854
14855      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14856        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14857	# If the export-symbols file already is a .def file (1st line
14858	# is EXPORTS), use it as is; otherwise, prepend...
14859	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14860	  cp $export_symbols $output_objdir/$soname.def;
14861	else
14862	  echo EXPORTS > $output_objdir/$soname.def;
14863	  cat $export_symbols >> $output_objdir/$soname.def;
14864	fi~
14865	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14866      else
14867	ld_shlibs_F77=no
14868      fi
14869      ;;
14870
14871    interix[3-9]*)
14872      hardcode_direct_F77=no
14873      hardcode_shlibpath_var_F77=no
14874      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14875      export_dynamic_flag_spec_F77='${wl}-E'
14876      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14877      # Instead, shared libraries are loaded at an image base (0x10000000 by
14878      # default) and relocated if they conflict, which is a slow very memory
14879      # consuming and fragmenting process.  To avoid this, we pick a random,
14880      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14881      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14882      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'
14883      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'
14884      ;;
14885
14886    gnu* | linux* | k*bsd*-gnu)
14887      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888	tmp_addflag=
14889	case $cc_basename,$host_cpu in
14890	pgcc*)				# Portland Group C compiler
14891	  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'
14892	  tmp_addflag=' $pic_flag'
14893	  ;;
14894	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14895	  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'
14896	  tmp_addflag=' $pic_flag -Mnomain' ;;
14897	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14898	  tmp_addflag=' -i_dynamic' ;;
14899	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14900	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14901	ifc* | ifort*)			# Intel Fortran compiler
14902	  tmp_addflag=' -nofor_main' ;;
14903	esac
14904	case `$CC -V 2>&1 | sed 5q` in
14905	*Sun\ C*)			# Sun C 5.9
14906	  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'
14907	  tmp_sharedflag='-G' ;;
14908	*Sun\ F*)			# Sun Fortran 8.3
14909	  tmp_sharedflag='-G' ;;
14910	*)
14911	  tmp_sharedflag='-shared' ;;
14912	esac
14913	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914
14915	if test $supports_anon_versioning = yes; then
14916	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14917  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14918  $echo "local: *; };" >> $output_objdir/$libname.ver~
14919	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14920	fi
14921      else
14922	ld_shlibs_F77=no
14923      fi
14924      ;;
14925
14926    netbsd*)
14927      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14928	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14929	wlarc=
14930      else
14931	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14933      fi
14934      ;;
14935
14936    solaris*)
14937      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14938	ld_shlibs_F77=no
14939	cat <<EOF 1>&2
14940
14941*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14942*** create shared libraries on Solaris systems.  Therefore, libtool
14943*** is disabling shared libraries support.  We urge you to upgrade GNU
14944*** binutils to release 2.9.1 or newer.  Another option is to modify
14945*** your PATH or compiler configuration so that the native linker is
14946*** used, and then restart.
14947
14948EOF
14949      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14950	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952      else
14953	ld_shlibs_F77=no
14954      fi
14955      ;;
14956
14957    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14958      case `$LD -v 2>&1` in
14959        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14960	ld_shlibs_F77=no
14961	cat <<_LT_EOF 1>&2
14962
14963*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14964*** reliably create shared libraries on SCO systems.  Therefore, libtool
14965*** is disabling shared libraries support.  We urge you to upgrade GNU
14966*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14967*** your PATH or compiler configuration so that the native linker is
14968*** used, and then restart.
14969
14970_LT_EOF
14971	;;
14972	*)
14973	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14974	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14975	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14976	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14977	  else
14978	    ld_shlibs_F77=no
14979	  fi
14980	;;
14981      esac
14982      ;;
14983
14984    sunos4*)
14985      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14986      wlarc=
14987      hardcode_direct_F77=yes
14988      hardcode_shlibpath_var_F77=no
14989      ;;
14990
14991    *)
14992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14995      else
14996	ld_shlibs_F77=no
14997      fi
14998      ;;
14999    esac
15000
15001    if test "$ld_shlibs_F77" = no; then
15002      runpath_var=
15003      hardcode_libdir_flag_spec_F77=
15004      export_dynamic_flag_spec_F77=
15005      whole_archive_flag_spec_F77=
15006    fi
15007  else
15008    # PORTME fill in a description of your system's linker (not GNU ld)
15009    case $host_os in
15010    aix3*)
15011      allow_undefined_flag_F77=unsupported
15012      always_export_symbols_F77=yes
15013      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'
15014      # Note: this linker hardcodes the directories in LIBPATH if there
15015      # are no directories specified by -L.
15016      hardcode_minus_L_F77=yes
15017      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15018	# Neither direct hardcoding nor static linking is supported with a
15019	# broken collect2.
15020	hardcode_direct_F77=unsupported
15021      fi
15022      ;;
15023
15024    aix[4-9]*)
15025      if test "$host_cpu" = ia64; then
15026	# On IA64, the linker does run time linking by default, so we don't
15027	# have to do anything special.
15028	aix_use_runtimelinking=no
15029	exp_sym_flag='-Bexport'
15030	no_entry_flag=""
15031      else
15032	# If we're using GNU nm, then we don't want the "-C" option.
15033	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15034	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15035	  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'
15036	else
15037	  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'
15038	fi
15039	aix_use_runtimelinking=no
15040
15041	# Test if we are trying to use run time linking or normal
15042	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15043	# need to do runtime linking.
15044	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15045	  for ld_flag in $LDFLAGS; do
15046  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15047  	    aix_use_runtimelinking=yes
15048  	    break
15049  	  fi
15050	  done
15051	  ;;
15052	esac
15053
15054	exp_sym_flag='-bexport'
15055	no_entry_flag='-bnoentry'
15056      fi
15057
15058      # When large executables or shared objects are built, AIX ld can
15059      # have problems creating the table of contents.  If linking a library
15060      # or program results in "error TOC overflow" add -mminimal-toc to
15061      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15062      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15063
15064      archive_cmds_F77=''
15065      hardcode_direct_F77=yes
15066      hardcode_libdir_separator_F77=':'
15067      link_all_deplibs_F77=yes
15068
15069      if test "$GCC" = yes; then
15070	case $host_os in aix4.[012]|aix4.[012].*)
15071	# We only want to do this on AIX 4.2 and lower, the check
15072	# below for broken collect2 doesn't work under 4.3+
15073	  collect2name=`${CC} -print-prog-name=collect2`
15074	  if test -f "$collect2name" && \
15075  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15076	  then
15077  	  # We have reworked collect2
15078  	  :
15079	  else
15080  	  # We have old collect2
15081  	  hardcode_direct_F77=unsupported
15082  	  # It fails to find uninstalled libraries when the uninstalled
15083  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15084  	  # to unsupported forces relinking
15085  	  hardcode_minus_L_F77=yes
15086  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15087  	  hardcode_libdir_separator_F77=
15088	  fi
15089	  ;;
15090	esac
15091	shared_flag='-shared'
15092	if test "$aix_use_runtimelinking" = yes; then
15093	  shared_flag="$shared_flag "'${wl}-G'
15094	fi
15095      else
15096	# not using gcc
15097	if test "$host_cpu" = ia64; then
15098  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15099  	# chokes on -Wl,-G. The following line is correct:
15100	  shared_flag='-G'
15101	else
15102	  if test "$aix_use_runtimelinking" = yes; then
15103	    shared_flag='${wl}-G'
15104	  else
15105	    shared_flag='${wl}-bM:SRE'
15106	  fi
15107	fi
15108      fi
15109
15110      # It seems that -bexpall does not export symbols beginning with
15111      # underscore (_), so it is better to generate a list of symbols to export.
15112      always_export_symbols_F77=yes
15113      if test "$aix_use_runtimelinking" = yes; then
15114	# Warning - without using the other runtime loading flags (-brtl),
15115	# -berok will link without error, but may produce a broken library.
15116	allow_undefined_flag_F77='-berok'
15117       # Determine the default libpath from the value encoded in an empty executable.
15118       cat >conftest.$ac_ext <<_ACEOF
15119      program main
15120
15121      end
15122_ACEOF
15123rm -f conftest.$ac_objext conftest$ac_exeext
15124if { (ac_try="$ac_link"
15125case "(($ac_try" in
15126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127  *) ac_try_echo=$ac_try;;
15128esac
15129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130$as_echo "$ac_try_echo") >&5
15131  (eval "$ac_link") 2>conftest.er1
15132  ac_status=$?
15133  grep -v '^ *+' conftest.er1 >conftest.err
15134  rm -f conftest.er1
15135  cat conftest.err >&5
15136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137  (exit $ac_status); } && {
15138	 test -z "$ac_f77_werror_flag" ||
15139	 test ! -s conftest.err
15140       } && test -s conftest$ac_exeext && {
15141	 test "$cross_compiling" = yes ||
15142	 $as_test_x conftest$ac_exeext
15143       }; then
15144
15145lt_aix_libpath_sed='
15146    /Import File Strings/,/^$/ {
15147	/^0/ {
15148	    s/^0  *\(.*\)$/\1/
15149	    p
15150	}
15151    }'
15152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15153# Check for a 64-bit object if we didn't find anything.
15154if test -z "$aix_libpath"; then
15155  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15156fi
15157else
15158  $as_echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161
15162fi
15163
15164rm -rf conftest.dSYM
15165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166      conftest$ac_exeext conftest.$ac_ext
15167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15168
15169       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15170	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"
15171       else
15172	if test "$host_cpu" = ia64; then
15173	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15174	  allow_undefined_flag_F77="-z nodefs"
15175	  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"
15176	else
15177	 # Determine the default libpath from the value encoded in an empty executable.
15178	 cat >conftest.$ac_ext <<_ACEOF
15179      program main
15180
15181      end
15182_ACEOF
15183rm -f conftest.$ac_objext conftest$ac_exeext
15184if { (ac_try="$ac_link"
15185case "(($ac_try" in
15186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187  *) ac_try_echo=$ac_try;;
15188esac
15189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190$as_echo "$ac_try_echo") >&5
15191  (eval "$ac_link") 2>conftest.er1
15192  ac_status=$?
15193  grep -v '^ *+' conftest.er1 >conftest.err
15194  rm -f conftest.er1
15195  cat conftest.err >&5
15196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197  (exit $ac_status); } && {
15198	 test -z "$ac_f77_werror_flag" ||
15199	 test ! -s conftest.err
15200       } && test -s conftest$ac_exeext && {
15201	 test "$cross_compiling" = yes ||
15202	 $as_test_x conftest$ac_exeext
15203       }; then
15204
15205lt_aix_libpath_sed='
15206    /Import File Strings/,/^$/ {
15207	/^0/ {
15208	    s/^0  *\(.*\)$/\1/
15209	    p
15210	}
15211    }'
15212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15213# Check for a 64-bit object if we didn't find anything.
15214if test -z "$aix_libpath"; then
15215  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15216fi
15217else
15218  $as_echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5
15220
15221
15222fi
15223
15224rm -rf conftest.dSYM
15225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226      conftest$ac_exeext conftest.$ac_ext
15227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15228
15229	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15230	  # Warning - without using the other run time loading flags,
15231	  # -berok will link without error, but may produce a broken library.
15232	  no_undefined_flag_F77=' ${wl}-bernotok'
15233	  allow_undefined_flag_F77=' ${wl}-berok'
15234	  # Exported symbols can be pulled into shared objects from archives
15235	  whole_archive_flag_spec_F77='$convenience'
15236	  archive_cmds_need_lc_F77=yes
15237	  # This is similar to how AIX traditionally builds its shared libraries.
15238	  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'
15239	fi
15240      fi
15241      ;;
15242
15243    amigaos*)
15244      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)'
15245      hardcode_libdir_flag_spec_F77='-L$libdir'
15246      hardcode_minus_L_F77=yes
15247      # see comment about different semantics on the GNU ld section
15248      ld_shlibs_F77=no
15249      ;;
15250
15251    bsdi[45]*)
15252      export_dynamic_flag_spec_F77=-rdynamic
15253      ;;
15254
15255    cygwin* | mingw* | pw32*)
15256      # When not using gcc, we currently assume that we are using
15257      # Microsoft Visual C++.
15258      # hardcode_libdir_flag_spec is actually meaningless, as there is
15259      # no search path for DLLs.
15260      hardcode_libdir_flag_spec_F77=' '
15261      allow_undefined_flag_F77=unsupported
15262      # Tell ltmain to make .lib files, not .a files.
15263      libext=lib
15264      # Tell ltmain to make .dll files, not .so files.
15265      shrext_cmds=".dll"
15266      # FIXME: Setting linknames here is a bad hack.
15267      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15268      # The linker will automatically build a .lib file if we build a DLL.
15269      old_archive_From_new_cmds_F77='true'
15270      # FIXME: Should let the user specify the lib program.
15271      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15272      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15273      enable_shared_with_static_runtimes_F77=yes
15274      ;;
15275
15276    darwin* | rhapsody*)
15277      case $host_os in
15278        rhapsody* | darwin1.[012])
15279         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15280         ;;
15281       *) # Darwin 1.3 on
15282         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15283           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15284         else
15285           case ${MACOSX_DEPLOYMENT_TARGET} in
15286             10.[012])
15287               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15288               ;;
15289             10.*)
15290               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15291               ;;
15292           esac
15293         fi
15294         ;;
15295      esac
15296      archive_cmds_need_lc_F77=no
15297      hardcode_direct_F77=no
15298      hardcode_automatic_F77=yes
15299      hardcode_shlibpath_var_F77=unsupported
15300      whole_archive_flag_spec_F77=''
15301      link_all_deplibs_F77=yes
15302    if test "$GCC" = yes ; then
15303    	output_verbose_link_cmd='echo'
15304        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}"
15305        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15306        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}"
15307        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}"
15308    else
15309      case $cc_basename in
15310        xlc*)
15311         output_verbose_link_cmd='echo'
15312         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15313         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15314          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15315         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}'
15316          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}'
15317          ;;
15318       *)
15319         ld_shlibs_F77=no
15320          ;;
15321      esac
15322    fi
15323      ;;
15324
15325    dgux*)
15326      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327      hardcode_libdir_flag_spec_F77='-L$libdir'
15328      hardcode_shlibpath_var_F77=no
15329      ;;
15330
15331    freebsd1*)
15332      ld_shlibs_F77=no
15333      ;;
15334
15335    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15336    # support.  Future versions do this automatically, but an explicit c++rt0.o
15337    # does not break anything, and helps significantly (at the cost of a little
15338    # extra space).
15339    freebsd2.2*)
15340      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15341      hardcode_libdir_flag_spec_F77='-R$libdir'
15342      hardcode_direct_F77=yes
15343      hardcode_shlibpath_var_F77=no
15344      ;;
15345
15346    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15347    freebsd2*)
15348      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15349      hardcode_direct_F77=yes
15350      hardcode_minus_L_F77=yes
15351      hardcode_shlibpath_var_F77=no
15352      ;;
15353
15354    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15355    freebsd* | dragonfly*)
15356      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15357      hardcode_libdir_flag_spec_F77='-R$libdir'
15358      hardcode_direct_F77=yes
15359      hardcode_shlibpath_var_F77=no
15360      ;;
15361
15362    hpux9*)
15363      if test "$GCC" = yes; then
15364	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'
15365      else
15366	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'
15367      fi
15368      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15369      hardcode_libdir_separator_F77=:
15370      hardcode_direct_F77=yes
15371
15372      # hardcode_minus_L: Not really in the search PATH,
15373      # but as the default location of the library.
15374      hardcode_minus_L_F77=yes
15375      export_dynamic_flag_spec_F77='${wl}-E'
15376      ;;
15377
15378    hpux10*)
15379      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15380	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381      else
15382	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15383      fi
15384      if test "$with_gnu_ld" = no; then
15385	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15386	hardcode_libdir_separator_F77=:
15387
15388	hardcode_direct_F77=yes
15389	export_dynamic_flag_spec_F77='${wl}-E'
15390
15391	# hardcode_minus_L: Not really in the search PATH,
15392	# but as the default location of the library.
15393	hardcode_minus_L_F77=yes
15394      fi
15395      ;;
15396
15397    hpux11*)
15398      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15399	case $host_cpu in
15400	hppa*64*)
15401	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15402	  ;;
15403	ia64*)
15404	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15405	  ;;
15406	*)
15407	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15408	  ;;
15409	esac
15410      else
15411	case $host_cpu in
15412	hppa*64*)
15413	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414	  ;;
15415	ia64*)
15416	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15417	  ;;
15418	*)
15419	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15420	  ;;
15421	esac
15422      fi
15423      if test "$with_gnu_ld" = no; then
15424	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15425	hardcode_libdir_separator_F77=:
15426
15427	case $host_cpu in
15428	hppa*64*|ia64*)
15429	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15430	  hardcode_direct_F77=no
15431	  hardcode_shlibpath_var_F77=no
15432	  ;;
15433	*)
15434	  hardcode_direct_F77=yes
15435	  export_dynamic_flag_spec_F77='${wl}-E'
15436
15437	  # hardcode_minus_L: Not really in the search PATH,
15438	  # but as the default location of the library.
15439	  hardcode_minus_L_F77=yes
15440	  ;;
15441	esac
15442      fi
15443      ;;
15444
15445    irix5* | irix6* | nonstopux*)
15446      if test "$GCC" = yes; then
15447	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'
15448      else
15449	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'
15450	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15451      fi
15452      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15453      hardcode_libdir_separator_F77=:
15454      link_all_deplibs_F77=yes
15455      ;;
15456
15457    netbsd*)
15458      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15460      else
15461	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15462      fi
15463      hardcode_libdir_flag_spec_F77='-R$libdir'
15464      hardcode_direct_F77=yes
15465      hardcode_shlibpath_var_F77=no
15466      ;;
15467
15468    newsos6)
15469      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470      hardcode_direct_F77=yes
15471      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15472      hardcode_libdir_separator_F77=:
15473      hardcode_shlibpath_var_F77=no
15474      ;;
15475
15476    openbsd*)
15477      if test -f /usr/libexec/ld.so; then
15478	hardcode_direct_F77=yes
15479	hardcode_shlibpath_var_F77=no
15480	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15481	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15482	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15483	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15484	  export_dynamic_flag_spec_F77='${wl}-E'
15485	else
15486	  case $host_os in
15487	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15488	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489	     hardcode_libdir_flag_spec_F77='-R$libdir'
15490	     ;;
15491	   *)
15492	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15493	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15494	     ;;
15495	  esac
15496        fi
15497      else
15498	ld_shlibs_F77=no
15499      fi
15500      ;;
15501
15502    os2*)
15503      hardcode_libdir_flag_spec_F77='-L$libdir'
15504      hardcode_minus_L_F77=yes
15505      allow_undefined_flag_F77=unsupported
15506      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'
15507      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15508      ;;
15509
15510    osf3*)
15511      if test "$GCC" = yes; then
15512	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15513	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'
15514      else
15515	allow_undefined_flag_F77=' -expect_unresolved \*'
15516	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'
15517      fi
15518      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15519      hardcode_libdir_separator_F77=:
15520      ;;
15521
15522    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15523      if test "$GCC" = yes; then
15524	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15525	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'
15526	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15527      else
15528	allow_undefined_flag_F77=' -expect_unresolved \*'
15529	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'
15530	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~
15531	$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'
15532
15533	# Both c and cxx compiler support -rpath directly
15534	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15535      fi
15536      hardcode_libdir_separator_F77=:
15537      ;;
15538
15539    solaris*)
15540      no_undefined_flag_F77=' -z text'
15541      if test "$GCC" = yes; then
15542	wlarc='${wl}'
15543	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15545	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15546      else
15547	wlarc=''
15548	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15550  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15551      fi
15552      hardcode_libdir_flag_spec_F77='-R$libdir'
15553      hardcode_shlibpath_var_F77=no
15554      case $host_os in
15555      solaris2.[0-5] | solaris2.[0-5].*) ;;
15556      *)
15557	# The compiler driver will combine and reorder linker options,
15558	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15559	# but is careful enough not to reorder.
15560 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15561	if test "$GCC" = yes; then
15562	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15563	else
15564	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15565	fi
15566	;;
15567      esac
15568      link_all_deplibs_F77=yes
15569      ;;
15570
15571    sunos4*)
15572      if test "x$host_vendor" = xsequent; then
15573	# Use $CC to link under sequent, because it throws in some extra .o
15574	# files that make .init and .fini sections work.
15575	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15576      else
15577	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15578      fi
15579      hardcode_libdir_flag_spec_F77='-L$libdir'
15580      hardcode_direct_F77=yes
15581      hardcode_minus_L_F77=yes
15582      hardcode_shlibpath_var_F77=no
15583      ;;
15584
15585    sysv4)
15586      case $host_vendor in
15587	sni)
15588	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589	  hardcode_direct_F77=yes # is this really true???
15590	;;
15591	siemens)
15592	  ## LD is ld it makes a PLAMLIB
15593	  ## CC just makes a GrossModule.
15594	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15595	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15596	  hardcode_direct_F77=no
15597        ;;
15598	motorola)
15599	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15601	;;
15602      esac
15603      runpath_var='LD_RUN_PATH'
15604      hardcode_shlibpath_var_F77=no
15605      ;;
15606
15607    sysv4.3*)
15608      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609      hardcode_shlibpath_var_F77=no
15610      export_dynamic_flag_spec_F77='-Bexport'
15611      ;;
15612
15613    sysv4*MP*)
15614      if test -d /usr/nec; then
15615	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616	hardcode_shlibpath_var_F77=no
15617	runpath_var=LD_RUN_PATH
15618	hardcode_runpath_var=yes
15619	ld_shlibs_F77=yes
15620      fi
15621      ;;
15622
15623    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15624      no_undefined_flag_F77='${wl}-z,text'
15625      archive_cmds_need_lc_F77=no
15626      hardcode_shlibpath_var_F77=no
15627      runpath_var='LD_RUN_PATH'
15628
15629      if test "$GCC" = yes; then
15630	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632      else
15633	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635      fi
15636      ;;
15637
15638    sysv5* | sco3.2v5* | sco5v6*)
15639      # Note: We can NOT use -z defs as we might desire, because we do not
15640      # link with -lc, and that would cause any symbols used from libc to
15641      # always be unresolved, which means just about no library would
15642      # ever link correctly.  If we're not using GNU ld we use -z text
15643      # though, which does catch some bad symbols but isn't as heavy-handed
15644      # as -z defs.
15645      no_undefined_flag_F77='${wl}-z,text'
15646      allow_undefined_flag_F77='${wl}-z,nodefs'
15647      archive_cmds_need_lc_F77=no
15648      hardcode_shlibpath_var_F77=no
15649      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15650      hardcode_libdir_separator_F77=':'
15651      link_all_deplibs_F77=yes
15652      export_dynamic_flag_spec_F77='${wl}-Bexport'
15653      runpath_var='LD_RUN_PATH'
15654
15655      if test "$GCC" = yes; then
15656	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15658      else
15659	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15661      fi
15662      ;;
15663
15664    uts4*)
15665      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666      hardcode_libdir_flag_spec_F77='-L$libdir'
15667      hardcode_shlibpath_var_F77=no
15668      ;;
15669
15670    *)
15671      ld_shlibs_F77=no
15672      ;;
15673    esac
15674  fi
15675
15676{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15677$as_echo "$ld_shlibs_F77" >&6; }
15678test "$ld_shlibs_F77" = no && can_build_shared=no
15679
15680#
15681# Do we need to explicitly link libc?
15682#
15683case "x$archive_cmds_need_lc_F77" in
15684x|xyes)
15685  # Assume -lc should be added
15686  archive_cmds_need_lc_F77=yes
15687
15688  if test "$enable_shared" = yes && test "$GCC" = yes; then
15689    case $archive_cmds_F77 in
15690    *'~'*)
15691      # FIXME: we may have to deal with multi-command sequences.
15692      ;;
15693    '$CC '*)
15694      # Test whether the compiler implicitly links with -lc since on some
15695      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15696      # to ld, don't add -lc before -lgcc.
15697      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15698$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15699      $rm conftest*
15700      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15701
15702      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703  (eval $ac_compile) 2>&5
15704  ac_status=$?
15705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706  (exit $ac_status); } 2>conftest.err; then
15707        soname=conftest
15708        lib=conftest
15709        libobjs=conftest.$ac_objext
15710        deplibs=
15711        wl=$lt_prog_compiler_wl_F77
15712	pic_flag=$lt_prog_compiler_pic_F77
15713        compiler_flags=-v
15714        linker_flags=-v
15715        verstring=
15716        output_objdir=.
15717        libname=conftest
15718        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15719        allow_undefined_flag_F77=
15720        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15721  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15722  ac_status=$?
15723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724  (exit $ac_status); }
15725        then
15726	  archive_cmds_need_lc_F77=no
15727        else
15728	  archive_cmds_need_lc_F77=yes
15729        fi
15730        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15731      else
15732        cat conftest.err 1>&5
15733      fi
15734      $rm conftest*
15735      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15736$as_echo "$archive_cmds_need_lc_F77" >&6; }
15737      ;;
15738    esac
15739  fi
15740  ;;
15741esac
15742
15743{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15744$as_echo_n "checking dynamic linker characteristics... " >&6; }
15745library_names_spec=
15746libname_spec='lib$name'
15747soname_spec=
15748shrext_cmds=".so"
15749postinstall_cmds=
15750postuninstall_cmds=
15751finish_cmds=
15752finish_eval=
15753shlibpath_var=
15754shlibpath_overrides_runpath=unknown
15755version_type=none
15756dynamic_linker="$host_os ld.so"
15757sys_lib_dlsearch_path_spec="/lib /usr/lib"
15758
15759need_lib_prefix=unknown
15760hardcode_into_libs=no
15761
15762# when you set need_version to no, make sure it does not cause -set_version
15763# flags to be left without arguments
15764need_version=unknown
15765
15766case $host_os in
15767aix3*)
15768  version_type=linux
15769  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15770  shlibpath_var=LIBPATH
15771
15772  # AIX 3 has no versioning support, so we append a major version to the name.
15773  soname_spec='${libname}${release}${shared_ext}$major'
15774  ;;
15775
15776aix[4-9]*)
15777  version_type=linux
15778  need_lib_prefix=no
15779  need_version=no
15780  hardcode_into_libs=yes
15781  if test "$host_cpu" = ia64; then
15782    # AIX 5 supports IA64
15783    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15784    shlibpath_var=LD_LIBRARY_PATH
15785  else
15786    # With GCC up to 2.95.x, collect2 would create an import file
15787    # for dependence libraries.  The import file would start with
15788    # the line `#! .'.  This would cause the generated library to
15789    # depend on `.', always an invalid library.  This was fixed in
15790    # development snapshots of GCC prior to 3.0.
15791    case $host_os in
15792      aix4 | aix4.[01] | aix4.[01].*)
15793      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15794	   echo ' yes '
15795	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15796	:
15797      else
15798	can_build_shared=no
15799      fi
15800      ;;
15801    esac
15802    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15803    # soname into executable. Probably we can add versioning support to
15804    # collect2, so additional links can be useful in future.
15805    if test "$aix_use_runtimelinking" = yes; then
15806      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15807      # instead of lib<name>.a to let people know that these are not
15808      # typical AIX shared libraries.
15809      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810    else
15811      # We preserve .a as extension for shared libraries through AIX4.2
15812      # and later when we are not doing run time linking.
15813      library_names_spec='${libname}${release}.a $libname.a'
15814      soname_spec='${libname}${release}${shared_ext}$major'
15815    fi
15816    shlibpath_var=LIBPATH
15817  fi
15818  ;;
15819
15820amigaos*)
15821  library_names_spec='$libname.ixlibrary $libname.a'
15822  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15823  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'
15824  ;;
15825
15826beos*)
15827  library_names_spec='${libname}${shared_ext}'
15828  dynamic_linker="$host_os ld.so"
15829  shlibpath_var=LIBRARY_PATH
15830  ;;
15831
15832bsdi[45]*)
15833  version_type=linux
15834  need_version=no
15835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836  soname_spec='${libname}${release}${shared_ext}$major'
15837  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838  shlibpath_var=LD_LIBRARY_PATH
15839  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841  # the default ld.so.conf also contains /usr/contrib/lib and
15842  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843  # libtool to hard-code these into programs
15844  ;;
15845
15846cygwin* | mingw* | pw32*)
15847  version_type=windows
15848  shrext_cmds=".dll"
15849  need_version=no
15850  need_lib_prefix=no
15851
15852  case $GCC,$host_os in
15853  yes,cygwin* | yes,mingw* | yes,pw32*)
15854    library_names_spec='$libname.dll.a'
15855    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15856    postinstall_cmds='base_file=`basename \${file}`~
15857      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15858      dldir=$destdir/`dirname \$dlpath`~
15859      test -d \$dldir || mkdir -p \$dldir~
15860      $install_prog $dir/$dlname \$dldir/$dlname~
15861      chmod a+x \$dldir/$dlname'
15862    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15863      dlpath=$dir/\$dldll~
15864       $rm \$dlpath'
15865    shlibpath_overrides_runpath=yes
15866
15867    case $host_os in
15868    cygwin*)
15869      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15870      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15871      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15872      ;;
15873    mingw*)
15874      # MinGW DLLs use traditional 'lib' prefix
15875      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15876      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15877      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15878        # It is most probably a Windows format PATH printed by
15879        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15880        # path with ; separators, and with drive letters. We can handle the
15881        # drive letters (cygwin fileutils understands them), so leave them,
15882        # especially as we might pass files found there to a mingw objdump,
15883        # which wouldn't understand a cygwinified path. Ahh.
15884        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15885      else
15886        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15887      fi
15888      ;;
15889    pw32*)
15890      # pw32 DLLs use 'pw' prefix rather than 'lib'
15891      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15892      ;;
15893    esac
15894    ;;
15895
15896  *)
15897    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15898    ;;
15899  esac
15900  dynamic_linker='Win32 ld.exe'
15901  # FIXME: first we should search . and the directory the executable is in
15902  shlibpath_var=PATH
15903  ;;
15904
15905darwin* | rhapsody*)
15906  dynamic_linker="$host_os dyld"
15907  version_type=darwin
15908  need_lib_prefix=no
15909  need_version=no
15910  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15911  soname_spec='${libname}${release}${major}$shared_ext'
15912  shlibpath_overrides_runpath=yes
15913  shlibpath_var=DYLD_LIBRARY_PATH
15914  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15915
15916  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15917  ;;
15918
15919dgux*)
15920  version_type=linux
15921  need_lib_prefix=no
15922  need_version=no
15923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15924  soname_spec='${libname}${release}${shared_ext}$major'
15925  shlibpath_var=LD_LIBRARY_PATH
15926  ;;
15927
15928freebsd1*)
15929  dynamic_linker=no
15930  ;;
15931
15932freebsd* | dragonfly*)
15933  # DragonFly does not have aout.  When/if they implement a new
15934  # versioning mechanism, adjust this.
15935  if test -x /usr/bin/objformat; then
15936    objformat=`/usr/bin/objformat`
15937  else
15938    case $host_os in
15939    freebsd[123]*) objformat=aout ;;
15940    *) objformat=elf ;;
15941    esac
15942  fi
15943  version_type=freebsd-$objformat
15944  case $version_type in
15945    freebsd-elf*)
15946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15947      need_version=no
15948      need_lib_prefix=no
15949      ;;
15950    freebsd-*)
15951      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15952      need_version=yes
15953      ;;
15954  esac
15955  shlibpath_var=LD_LIBRARY_PATH
15956  case $host_os in
15957  freebsd2*)
15958    shlibpath_overrides_runpath=yes
15959    ;;
15960  freebsd3.[01]* | freebsdelf3.[01]*)
15961    shlibpath_overrides_runpath=yes
15962    hardcode_into_libs=yes
15963    ;;
15964  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15965  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15966    shlibpath_overrides_runpath=no
15967    hardcode_into_libs=yes
15968    ;;
15969  *) # from 4.6 on, and DragonFly
15970    shlibpath_overrides_runpath=yes
15971    hardcode_into_libs=yes
15972    ;;
15973  esac
15974  ;;
15975
15976gnu*)
15977  version_type=linux
15978  need_lib_prefix=no
15979  need_version=no
15980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15981  soname_spec='${libname}${release}${shared_ext}$major'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  hardcode_into_libs=yes
15984  ;;
15985
15986hpux9* | hpux10* | hpux11*)
15987  # Give a soname corresponding to the major version so that dld.sl refuses to
15988  # link against other versions.
15989  version_type=sunos
15990  need_lib_prefix=no
15991  need_version=no
15992  case $host_cpu in
15993  ia64*)
15994    shrext_cmds='.so'
15995    hardcode_into_libs=yes
15996    dynamic_linker="$host_os dld.so"
15997    shlibpath_var=LD_LIBRARY_PATH
15998    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15999    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000    soname_spec='${libname}${release}${shared_ext}$major'
16001    if test "X$HPUX_IA64_MODE" = X32; then
16002      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16003    else
16004      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16005    fi
16006    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16007    ;;
16008   hppa*64*)
16009     shrext_cmds='.sl'
16010     hardcode_into_libs=yes
16011     dynamic_linker="$host_os dld.sl"
16012     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16013     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015     soname_spec='${libname}${release}${shared_ext}$major'
16016     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16017     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018     ;;
16019   *)
16020    shrext_cmds='.sl'
16021    dynamic_linker="$host_os dld.sl"
16022    shlibpath_var=SHLIB_PATH
16023    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025    soname_spec='${libname}${release}${shared_ext}$major'
16026    ;;
16027  esac
16028  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16029  postinstall_cmds='chmod 555 $lib'
16030  ;;
16031
16032interix[3-9]*)
16033  version_type=linux
16034  need_lib_prefix=no
16035  need_version=no
16036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16037  soname_spec='${libname}${release}${shared_ext}$major'
16038  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16039  shlibpath_var=LD_LIBRARY_PATH
16040  shlibpath_overrides_runpath=no
16041  hardcode_into_libs=yes
16042  ;;
16043
16044irix5* | irix6* | nonstopux*)
16045  case $host_os in
16046    nonstopux*) version_type=nonstopux ;;
16047    *)
16048	if test "$lt_cv_prog_gnu_ld" = yes; then
16049		version_type=linux
16050	else
16051		version_type=irix
16052	fi ;;
16053  esac
16054  need_lib_prefix=no
16055  need_version=no
16056  soname_spec='${libname}${release}${shared_ext}$major'
16057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16058  case $host_os in
16059  irix5* | nonstopux*)
16060    libsuff= shlibsuff=
16061    ;;
16062  *)
16063    case $LD in # libtool.m4 will add one of these switches to LD
16064    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16065      libsuff= shlibsuff= libmagic=32-bit;;
16066    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16067      libsuff=32 shlibsuff=N32 libmagic=N32;;
16068    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16069      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16070    *) libsuff= shlibsuff= libmagic=never-match;;
16071    esac
16072    ;;
16073  esac
16074  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16075  shlibpath_overrides_runpath=no
16076  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16077  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16078  hardcode_into_libs=yes
16079  ;;
16080
16081# No shared lib support for Linux oldld, aout, or coff.
16082linux*oldld* | linux*aout* | linux*coff*)
16083  dynamic_linker=no
16084  ;;
16085
16086# This must be Linux ELF.
16087linux* | k*bsd*-gnu)
16088  version_type=linux
16089  need_lib_prefix=no
16090  need_version=no
16091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092  soname_spec='${libname}${release}${shared_ext}$major'
16093  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16094  shlibpath_var=LD_LIBRARY_PATH
16095  shlibpath_overrides_runpath=no
16096  # This implies no fast_install, which is unacceptable.
16097  # Some rework will be needed to allow for fast_install
16098  # before this can be enabled.
16099  hardcode_into_libs=yes
16100  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16101  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16102
16103  # Append ld.so.conf contents to the search path
16104  if test -f /etc/ld.so.conf; then
16105    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' ' '`
16106    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16107  fi
16108
16109  # We used to test for /lib/ld.so.1 and disable shared libraries on
16110  # powerpc, because MkLinux only supported shared libraries with the
16111  # GNU dynamic linker.  Since this was broken with cross compilers,
16112  # most powerpc-linux boxes support dynamic linking these days and
16113  # people can always --disable-shared, the test was removed, and we
16114  # assume the GNU/Linux dynamic linker is in use.
16115  dynamic_linker='GNU/Linux ld.so'
16116  ;;
16117
16118netbsd*)
16119  version_type=sunos
16120  need_lib_prefix=no
16121  need_version=no
16122  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16124    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16125    dynamic_linker='NetBSD (a.out) ld.so'
16126  else
16127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128    soname_spec='${libname}${release}${shared_ext}$major'
16129    dynamic_linker='NetBSD ld.elf_so'
16130  fi
16131  shlibpath_var=LD_LIBRARY_PATH
16132  shlibpath_overrides_runpath=yes
16133  hardcode_into_libs=yes
16134  ;;
16135
16136newsos6)
16137  version_type=linux
16138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139  shlibpath_var=LD_LIBRARY_PATH
16140  shlibpath_overrides_runpath=yes
16141  ;;
16142
16143nto-qnx*)
16144  version_type=linux
16145  need_lib_prefix=no
16146  need_version=no
16147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148  soname_spec='${libname}${release}${shared_ext}$major'
16149  shlibpath_var=LD_LIBRARY_PATH
16150  shlibpath_overrides_runpath=yes
16151  ;;
16152
16153openbsd*)
16154  version_type=sunos
16155  sys_lib_dlsearch_path_spec="/usr/lib"
16156  need_lib_prefix=no
16157  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16158  case $host_os in
16159    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16160    *)                         need_version=no  ;;
16161  esac
16162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16164  shlibpath_var=LD_LIBRARY_PATH
16165  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16166    case $host_os in
16167      openbsd2.[89] | openbsd2.[89].*)
16168	shlibpath_overrides_runpath=no
16169	;;
16170      *)
16171	shlibpath_overrides_runpath=yes
16172	;;
16173      esac
16174  else
16175    shlibpath_overrides_runpath=yes
16176  fi
16177  ;;
16178
16179os2*)
16180  libname_spec='$name'
16181  shrext_cmds=".dll"
16182  need_lib_prefix=no
16183  library_names_spec='$libname${shared_ext} $libname.a'
16184  dynamic_linker='OS/2 ld.exe'
16185  shlibpath_var=LIBPATH
16186  ;;
16187
16188osf3* | osf4* | osf5*)
16189  version_type=osf
16190  need_lib_prefix=no
16191  need_version=no
16192  soname_spec='${libname}${release}${shared_ext}$major'
16193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194  shlibpath_var=LD_LIBRARY_PATH
16195  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16196  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16197  ;;
16198
16199rdos*)
16200  dynamic_linker=no
16201  ;;
16202
16203solaris*)
16204  version_type=linux
16205  need_lib_prefix=no
16206  need_version=no
16207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208  soname_spec='${libname}${release}${shared_ext}$major'
16209  shlibpath_var=LD_LIBRARY_PATH
16210  shlibpath_overrides_runpath=yes
16211  hardcode_into_libs=yes
16212  # ldd complains unless libraries are executable
16213  postinstall_cmds='chmod +x $lib'
16214  ;;
16215
16216sunos4*)
16217  version_type=sunos
16218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16220  shlibpath_var=LD_LIBRARY_PATH
16221  shlibpath_overrides_runpath=yes
16222  if test "$with_gnu_ld" = yes; then
16223    need_lib_prefix=no
16224  fi
16225  need_version=yes
16226  ;;
16227
16228sysv4 | sysv4.3*)
16229  version_type=linux
16230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231  soname_spec='${libname}${release}${shared_ext}$major'
16232  shlibpath_var=LD_LIBRARY_PATH
16233  case $host_vendor in
16234    sni)
16235      shlibpath_overrides_runpath=no
16236      need_lib_prefix=no
16237      export_dynamic_flag_spec='${wl}-Blargedynsym'
16238      runpath_var=LD_RUN_PATH
16239      ;;
16240    siemens)
16241      need_lib_prefix=no
16242      ;;
16243    motorola)
16244      need_lib_prefix=no
16245      need_version=no
16246      shlibpath_overrides_runpath=no
16247      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16248      ;;
16249  esac
16250  ;;
16251
16252sysv4*MP*)
16253  if test -d /usr/nec ;then
16254    version_type=linux
16255    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16256    soname_spec='$libname${shared_ext}.$major'
16257    shlibpath_var=LD_LIBRARY_PATH
16258  fi
16259  ;;
16260
16261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16262  version_type=freebsd-elf
16263  need_lib_prefix=no
16264  need_version=no
16265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266  soname_spec='${libname}${release}${shared_ext}$major'
16267  shlibpath_var=LD_LIBRARY_PATH
16268  hardcode_into_libs=yes
16269  if test "$with_gnu_ld" = yes; then
16270    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16271    shlibpath_overrides_runpath=no
16272  else
16273    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16274    shlibpath_overrides_runpath=yes
16275    case $host_os in
16276      sco3.2v5*)
16277        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16278	;;
16279    esac
16280  fi
16281  sys_lib_dlsearch_path_spec='/usr/lib'
16282  ;;
16283
16284uts4*)
16285  version_type=linux
16286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287  soname_spec='${libname}${release}${shared_ext}$major'
16288  shlibpath_var=LD_LIBRARY_PATH
16289  ;;
16290
16291*)
16292  dynamic_linker=no
16293  ;;
16294esac
16295{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16296$as_echo "$dynamic_linker" >&6; }
16297test "$dynamic_linker" = no && can_build_shared=no
16298
16299if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16300  $as_echo_n "(cached) " >&6
16301else
16302  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16303fi
16304
16305sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16306if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16307  $as_echo_n "(cached) " >&6
16308else
16309  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16310fi
16311
16312sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16313
16314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315if test "$GCC" = yes; then
16316  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16317fi
16318
16319{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16320$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16321hardcode_action_F77=
16322if test -n "$hardcode_libdir_flag_spec_F77" || \
16323   test -n "$runpath_var_F77" || \
16324   test "X$hardcode_automatic_F77" = "Xyes" ; then
16325
16326  # We can hardcode non-existant directories.
16327  if test "$hardcode_direct_F77" != no &&
16328     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16329     # have to relink, otherwise we might link with an installed library
16330     # when we should be linking with a yet-to-be-installed one
16331     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16332     test "$hardcode_minus_L_F77" != no; then
16333    # Linking always hardcodes the temporary library directory.
16334    hardcode_action_F77=relink
16335  else
16336    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16337    hardcode_action_F77=immediate
16338  fi
16339else
16340  # We cannot hardcode anything, or else we can only hardcode existing
16341  # directories.
16342  hardcode_action_F77=unsupported
16343fi
16344{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16345$as_echo "$hardcode_action_F77" >&6; }
16346
16347if test "$hardcode_action_F77" = relink; then
16348  # Fast installation is not supported
16349  enable_fast_install=no
16350elif test "$shlibpath_overrides_runpath" = yes ||
16351     test "$enable_shared" = no; then
16352  # Fast installation is not necessary
16353  enable_fast_install=needless
16354fi
16355
16356
16357# The else clause should only fire when bootstrapping the
16358# libtool distribution, otherwise you forgot to ship ltmain.sh
16359# with your package, and you will get complaints that there are
16360# no rules to generate ltmain.sh.
16361if test -f "$ltmain"; then
16362  # See if we are running on zsh, and set the options which allow our commands through
16363  # without removal of \ escapes.
16364  if test -n "${ZSH_VERSION+set}" ; then
16365    setopt NO_GLOB_SUBST
16366  fi
16367  # Now quote all the things that may contain metacharacters while being
16368  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16369  # variables and quote the copies for generation of the libtool script.
16370  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16371    SED SHELL STRIP \
16372    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16373    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16374    deplibs_check_method reload_flag reload_cmds need_locks \
16375    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16376    lt_cv_sys_global_symbol_to_c_name_address \
16377    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16378    old_postinstall_cmds old_postuninstall_cmds \
16379    compiler_F77 \
16380    CC_F77 \
16381    LD_F77 \
16382    lt_prog_compiler_wl_F77 \
16383    lt_prog_compiler_pic_F77 \
16384    lt_prog_compiler_static_F77 \
16385    lt_prog_compiler_no_builtin_flag_F77 \
16386    export_dynamic_flag_spec_F77 \
16387    thread_safe_flag_spec_F77 \
16388    whole_archive_flag_spec_F77 \
16389    enable_shared_with_static_runtimes_F77 \
16390    old_archive_cmds_F77 \
16391    old_archive_from_new_cmds_F77 \
16392    predep_objects_F77 \
16393    postdep_objects_F77 \
16394    predeps_F77 \
16395    postdeps_F77 \
16396    compiler_lib_search_path_F77 \
16397    compiler_lib_search_dirs_F77 \
16398    archive_cmds_F77 \
16399    archive_expsym_cmds_F77 \
16400    postinstall_cmds_F77 \
16401    postuninstall_cmds_F77 \
16402    old_archive_from_expsyms_cmds_F77 \
16403    allow_undefined_flag_F77 \
16404    no_undefined_flag_F77 \
16405    export_symbols_cmds_F77 \
16406    hardcode_libdir_flag_spec_F77 \
16407    hardcode_libdir_flag_spec_ld_F77 \
16408    hardcode_libdir_separator_F77 \
16409    hardcode_automatic_F77 \
16410    module_cmds_F77 \
16411    module_expsym_cmds_F77 \
16412    lt_cv_prog_compiler_c_o_F77 \
16413    fix_srcfile_path_F77 \
16414    exclude_expsyms_F77 \
16415    include_expsyms_F77; do
16416
16417    case $var in
16418    old_archive_cmds_F77 | \
16419    old_archive_from_new_cmds_F77 | \
16420    archive_cmds_F77 | \
16421    archive_expsym_cmds_F77 | \
16422    module_cmds_F77 | \
16423    module_expsym_cmds_F77 | \
16424    old_archive_from_expsyms_cmds_F77 | \
16425    export_symbols_cmds_F77 | \
16426    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16427    postinstall_cmds | postuninstall_cmds | \
16428    old_postinstall_cmds | old_postuninstall_cmds | \
16429    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16430      # Double-quote double-evaled strings.
16431      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16432      ;;
16433    *)
16434      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16435      ;;
16436    esac
16437  done
16438
16439  case $lt_echo in
16440  *'\$0 --fallback-echo"')
16441    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16442    ;;
16443  esac
16444
16445cfgfile="$ofile"
16446
16447  cat <<__EOF__ >> "$cfgfile"
16448# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16449
16450# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16451
16452# Shell to use when invoking shell scripts.
16453SHELL=$lt_SHELL
16454
16455# Whether or not to build shared libraries.
16456build_libtool_libs=$enable_shared
16457
16458# Whether or not to build static libraries.
16459build_old_libs=$enable_static
16460
16461# Whether or not to add -lc for building shared libraries.
16462build_libtool_need_lc=$archive_cmds_need_lc_F77
16463
16464# Whether or not to disallow shared libs when runtime libs are static
16465allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16466
16467# Whether or not to optimize for fast installation.
16468fast_install=$enable_fast_install
16469
16470# The host system.
16471host_alias=$host_alias
16472host=$host
16473host_os=$host_os
16474
16475# The build system.
16476build_alias=$build_alias
16477build=$build
16478build_os=$build_os
16479
16480# An echo program that does not interpret backslashes.
16481echo=$lt_echo
16482
16483# The archiver.
16484AR=$lt_AR
16485AR_FLAGS=$lt_AR_FLAGS
16486
16487# A C compiler.
16488LTCC=$lt_LTCC
16489
16490# LTCC compiler flags.
16491LTCFLAGS=$lt_LTCFLAGS
16492
16493# A language-specific compiler.
16494CC=$lt_compiler_F77
16495
16496# Is the compiler the GNU C compiler?
16497with_gcc=$GCC_F77
16498
16499# An ERE matcher.
16500EGREP=$lt_EGREP
16501
16502# The linker used to build libraries.
16503LD=$lt_LD_F77
16504
16505# Whether we need hard or soft links.
16506LN_S=$lt_LN_S
16507
16508# A BSD-compatible nm program.
16509NM=$lt_NM
16510
16511# A symbol stripping program
16512STRIP=$lt_STRIP
16513
16514# Used to examine libraries when file_magic_cmd begins "file"
16515MAGIC_CMD=$MAGIC_CMD
16516
16517# Used on cygwin: DLL creation program.
16518DLLTOOL="$DLLTOOL"
16519
16520# Used on cygwin: object dumper.
16521OBJDUMP="$OBJDUMP"
16522
16523# Used on cygwin: assembler.
16524AS="$AS"
16525
16526# The name of the directory that contains temporary libtool files.
16527objdir=$objdir
16528
16529# How to create reloadable object files.
16530reload_flag=$lt_reload_flag
16531reload_cmds=$lt_reload_cmds
16532
16533# How to pass a linker flag through the compiler.
16534wl=$lt_lt_prog_compiler_wl_F77
16535
16536# Object file suffix (normally "o").
16537objext="$ac_objext"
16538
16539# Old archive suffix (normally "a").
16540libext="$libext"
16541
16542# Shared library suffix (normally ".so").
16543shrext_cmds='$shrext_cmds'
16544
16545# Executable file suffix (normally "").
16546exeext="$exeext"
16547
16548# Additional compiler flags for building library objects.
16549pic_flag=$lt_lt_prog_compiler_pic_F77
16550pic_mode=$pic_mode
16551
16552# What is the maximum length of a command?
16553max_cmd_len=$lt_cv_sys_max_cmd_len
16554
16555# Does compiler simultaneously support -c and -o options?
16556compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16557
16558# Must we lock files when doing compilation?
16559need_locks=$lt_need_locks
16560
16561# Do we need the lib prefix for modules?
16562need_lib_prefix=$need_lib_prefix
16563
16564# Do we need a version for libraries?
16565need_version=$need_version
16566
16567# Whether dlopen is supported.
16568dlopen_support=$enable_dlopen
16569
16570# Whether dlopen of programs is supported.
16571dlopen_self=$enable_dlopen_self
16572
16573# Whether dlopen of statically linked programs is supported.
16574dlopen_self_static=$enable_dlopen_self_static
16575
16576# Compiler flag to prevent dynamic linking.
16577link_static_flag=$lt_lt_prog_compiler_static_F77
16578
16579# Compiler flag to turn off builtin functions.
16580no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16581
16582# Compiler flag to allow reflexive dlopens.
16583export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16584
16585# Compiler flag to generate shared objects directly from archives.
16586whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16587
16588# Compiler flag to generate thread-safe objects.
16589thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16590
16591# Library versioning type.
16592version_type=$version_type
16593
16594# Format of library name prefix.
16595libname_spec=$lt_libname_spec
16596
16597# List of archive names.  First name is the real one, the rest are links.
16598# The last name is the one that the linker finds with -lNAME.
16599library_names_spec=$lt_library_names_spec
16600
16601# The coded name of the library, if different from the real name.
16602soname_spec=$lt_soname_spec
16603
16604# Commands used to build and install an old-style archive.
16605RANLIB=$lt_RANLIB
16606old_archive_cmds=$lt_old_archive_cmds_F77
16607old_postinstall_cmds=$lt_old_postinstall_cmds
16608old_postuninstall_cmds=$lt_old_postuninstall_cmds
16609
16610# Create an old-style archive from a shared archive.
16611old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16612
16613# Create a temporary old-style archive to link instead of a shared archive.
16614old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16615
16616# Commands used to build and install a shared archive.
16617archive_cmds=$lt_archive_cmds_F77
16618archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16619postinstall_cmds=$lt_postinstall_cmds
16620postuninstall_cmds=$lt_postuninstall_cmds
16621
16622# Commands used to build a loadable module (assumed same as above if empty)
16623module_cmds=$lt_module_cmds_F77
16624module_expsym_cmds=$lt_module_expsym_cmds_F77
16625
16626# Commands to strip libraries.
16627old_striplib=$lt_old_striplib
16628striplib=$lt_striplib
16629
16630# Dependencies to place before the objects being linked to create a
16631# shared library.
16632predep_objects=$lt_predep_objects_F77
16633
16634# Dependencies to place after the objects being linked to create a
16635# shared library.
16636postdep_objects=$lt_postdep_objects_F77
16637
16638# Dependencies to place before the objects being linked to create a
16639# shared library.
16640predeps=$lt_predeps_F77
16641
16642# Dependencies to place after the objects being linked to create a
16643# shared library.
16644postdeps=$lt_postdeps_F77
16645
16646# The directories searched by this compiler when creating a shared
16647# library
16648compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16649
16650# The library search path used internally by the compiler when linking
16651# a shared library.
16652compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16653
16654# Method to check whether dependent libraries are shared objects.
16655deplibs_check_method=$lt_deplibs_check_method
16656
16657# Command to use when deplibs_check_method == file_magic.
16658file_magic_cmd=$lt_file_magic_cmd
16659
16660# Flag that allows shared libraries with undefined symbols to be built.
16661allow_undefined_flag=$lt_allow_undefined_flag_F77
16662
16663# Flag that forces no undefined symbols.
16664no_undefined_flag=$lt_no_undefined_flag_F77
16665
16666# Commands used to finish a libtool library installation in a directory.
16667finish_cmds=$lt_finish_cmds
16668
16669# Same as above, but a single script fragment to be evaled but not shown.
16670finish_eval=$lt_finish_eval
16671
16672# Take the output of nm and produce a listing of raw symbols and C names.
16673global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16674
16675# Transform the output of nm in a proper C declaration
16676global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16677
16678# Transform the output of nm in a C name address pair
16679global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16680
16681# This is the shared library runtime path variable.
16682runpath_var=$runpath_var
16683
16684# This is the shared library path variable.
16685shlibpath_var=$shlibpath_var
16686
16687# Is shlibpath searched before the hard-coded library search path?
16688shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16689
16690# How to hardcode a shared library path into an executable.
16691hardcode_action=$hardcode_action_F77
16692
16693# Whether we should hardcode library paths into libraries.
16694hardcode_into_libs=$hardcode_into_libs
16695
16696# Flag to hardcode \$libdir into a binary during linking.
16697# This must work even if \$libdir does not exist.
16698hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16699
16700# If ld is used when linking, flag to hardcode \$libdir into
16701# a binary during linking. This must work even if \$libdir does
16702# not exist.
16703hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16704
16705# Whether we need a single -rpath flag with a separated argument.
16706hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16707
16708# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16709# resulting binary.
16710hardcode_direct=$hardcode_direct_F77
16711
16712# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16713# resulting binary.
16714hardcode_minus_L=$hardcode_minus_L_F77
16715
16716# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16717# the resulting binary.
16718hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16719
16720# Set to yes if building a shared library automatically hardcodes DIR into the library
16721# and all subsequent libraries and executables linked against it.
16722hardcode_automatic=$hardcode_automatic_F77
16723
16724# Variables whose values should be saved in libtool wrapper scripts and
16725# restored at relink time.
16726variables_saved_for_relink="$variables_saved_for_relink"
16727
16728# Whether libtool must link a program against all its dependency libraries.
16729link_all_deplibs=$link_all_deplibs_F77
16730
16731# Compile-time system search path for libraries
16732sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16733
16734# Run-time system search path for libraries
16735sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16736
16737# Fix the shell variable \$srcfile for the compiler.
16738fix_srcfile_path=$lt_fix_srcfile_path
16739
16740# Set to yes if exported symbols are required.
16741always_export_symbols=$always_export_symbols_F77
16742
16743# The commands to list exported symbols.
16744export_symbols_cmds=$lt_export_symbols_cmds_F77
16745
16746# The commands to extract the exported symbol list from a shared archive.
16747extract_expsyms_cmds=$lt_extract_expsyms_cmds
16748
16749# Symbols that should not be listed in the preloaded symbols.
16750exclude_expsyms=$lt_exclude_expsyms_F77
16751
16752# Symbols that must always be exported.
16753include_expsyms=$lt_include_expsyms_F77
16754
16755# ### END LIBTOOL TAG CONFIG: $tagname
16756
16757__EOF__
16758
16759
16760else
16761  # If there is no Makefile yet, we rely on a make rule to execute
16762  # `config.status --recheck' to rerun these tests and create the
16763  # libtool script then.
16764  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16765  if test -f "$ltmain_in"; then
16766    test -f Makefile && make "$ltmain"
16767  fi
16768fi
16769
16770
16771ac_ext=c
16772ac_cpp='$CPP $CPPFLAGS'
16773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775ac_compiler_gnu=$ac_cv_c_compiler_gnu
16776
16777CC="$lt_save_CC"
16778
16779	else
16780	  tagname=""
16781	fi
16782	;;
16783
16784      GCJ)
16785	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16786
16787
16788# Source file extension for Java test sources.
16789ac_ext=java
16790
16791# Object file extension for compiled Java test sources.
16792objext=o
16793objext_GCJ=$objext
16794
16795# Code to be used in simple compile tests
16796lt_simple_compile_test_code="class foo {}"
16797
16798# Code to be used in simple link tests
16799lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16800
16801# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16802
16803# If no C compiler was specified, use CC.
16804LTCC=${LTCC-"$CC"}
16805
16806# If no C compiler flags were specified, use CFLAGS.
16807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16808
16809# Allow CC to be a program name with arguments.
16810compiler=$CC
16811
16812
16813# save warnings/boilerplate of simple test code
16814ac_outfile=conftest.$ac_objext
16815echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16816eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817_lt_compiler_boilerplate=`cat conftest.err`
16818$rm conftest*
16819
16820ac_outfile=conftest.$ac_objext
16821echo "$lt_simple_link_test_code" >conftest.$ac_ext
16822eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16823_lt_linker_boilerplate=`cat conftest.err`
16824$rm -r conftest*
16825
16826
16827# Allow CC to be a program name with arguments.
16828lt_save_CC="$CC"
16829CC=${GCJ-"gcj"}
16830compiler=$CC
16831compiler_GCJ=$CC
16832for cc_temp in $compiler""; do
16833  case $cc_temp in
16834    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16835    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16836    \-*) ;;
16837    *) break;;
16838  esac
16839done
16840cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16841
16842
16843# GCJ did not exist at the time GCC didn't implicitly link libc in.
16844archive_cmds_need_lc_GCJ=no
16845
16846old_archive_cmds_GCJ=$old_archive_cmds
16847
16848
16849lt_prog_compiler_no_builtin_flag_GCJ=
16850
16851if test "$GCC" = yes; then
16852  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16853
16854
16855{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16856$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16857if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16858  $as_echo_n "(cached) " >&6
16859else
16860  lt_cv_prog_compiler_rtti_exceptions=no
16861  ac_outfile=conftest.$ac_objext
16862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16863   lt_compiler_flag="-fno-rtti -fno-exceptions"
16864   # Insert the option either (1) after the last *FLAGS variable, or
16865   # (2) before a word containing "conftest.", or (3) at the end.
16866   # Note that $ac_compile itself does not contain backslashes and begins
16867   # with a dollar sign (not a hyphen), so the echo should work correctly.
16868   # The option is referenced via a variable to avoid confusing sed.
16869   lt_compile=`echo "$ac_compile" | $SED \
16870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16872   -e 's:$: $lt_compiler_flag:'`
16873   (eval echo "\"\$as_me:16873: $lt_compile\"" >&5)
16874   (eval "$lt_compile" 2>conftest.err)
16875   ac_status=$?
16876   cat conftest.err >&5
16877   echo "$as_me:16877: \$? = $ac_status" >&5
16878   if (exit $ac_status) && test -s "$ac_outfile"; then
16879     # The compiler can only warn and ignore the option if not recognized
16880     # So say no if there are warnings other than the usual output.
16881     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16882     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16883     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16884       lt_cv_prog_compiler_rtti_exceptions=yes
16885     fi
16886   fi
16887   $rm conftest*
16888
16889fi
16890{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16891$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16892
16893if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16894    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16895else
16896    :
16897fi
16898
16899fi
16900
16901lt_prog_compiler_wl_GCJ=
16902lt_prog_compiler_pic_GCJ=
16903lt_prog_compiler_static_GCJ=
16904
16905{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16906$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16907
16908  if test "$GCC" = yes; then
16909    lt_prog_compiler_wl_GCJ='-Wl,'
16910    lt_prog_compiler_static_GCJ='-static'
16911
16912    case $host_os in
16913      aix*)
16914      # All AIX code is PIC.
16915      if test "$host_cpu" = ia64; then
16916	# AIX 5 now supports IA64 processor
16917	lt_prog_compiler_static_GCJ='-Bstatic'
16918      fi
16919      ;;
16920
16921    amigaos*)
16922      # FIXME: we need at least 68020 code to build shared libraries, but
16923      # adding the `-m68020' flag to GCC prevents building anything better,
16924      # like `-m68040'.
16925      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16926      ;;
16927
16928    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16929      # PIC is the default for these OSes.
16930      ;;
16931
16932    mingw* | cygwin* | pw32* | os2*)
16933      # This hack is so that the source file can tell whether it is being
16934      # built for inclusion in a dll (and should export symbols for example).
16935      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16936      # (--disable-auto-import) libraries
16937
16938      ;;
16939
16940    darwin* | rhapsody*)
16941      # PIC is the default on this platform
16942      # Common symbols not allowed in MH_DYLIB files
16943      lt_prog_compiler_pic_GCJ='-fno-common'
16944      ;;
16945
16946    interix[3-9]*)
16947      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16948      # Instead, we relocate shared libraries at runtime.
16949      ;;
16950
16951    msdosdjgpp*)
16952      # Just because we use GCC doesn't mean we suddenly get shared libraries
16953      # on systems that don't support them.
16954      lt_prog_compiler_can_build_shared_GCJ=no
16955      enable_shared=no
16956      ;;
16957
16958    sysv4*MP*)
16959      if test -d /usr/nec; then
16960	lt_prog_compiler_pic_GCJ=-Kconform_pic
16961      fi
16962      ;;
16963
16964    hpux*)
16965      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966      # not for PA HP-UX.
16967      case $host_cpu in
16968      hppa*64*|ia64*)
16969	# +Z the default
16970	;;
16971      *)
16972	lt_prog_compiler_pic_GCJ='-fPIC'
16973	;;
16974      esac
16975      ;;
16976
16977    *)
16978      lt_prog_compiler_pic_GCJ='-fPIC'
16979      ;;
16980    esac
16981  else
16982    # PORTME Check for flag to pass linker flags through the system compiler.
16983    case $host_os in
16984    aix*)
16985      lt_prog_compiler_wl_GCJ='-Wl,'
16986      if test "$host_cpu" = ia64; then
16987	# AIX 5 now supports IA64 processor
16988	lt_prog_compiler_static_GCJ='-Bstatic'
16989      else
16990	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16991      fi
16992      ;;
16993      darwin*)
16994        # PIC is the default on this platform
16995        # Common symbols not allowed in MH_DYLIB files
16996       case $cc_basename in
16997         xlc*)
16998         lt_prog_compiler_pic_GCJ='-qnocommon'
16999         lt_prog_compiler_wl_GCJ='-Wl,'
17000         ;;
17001       esac
17002       ;;
17003
17004    mingw* | cygwin* | pw32* | os2*)
17005      # This hack is so that the source file can tell whether it is being
17006      # built for inclusion in a dll (and should export symbols for example).
17007
17008      ;;
17009
17010    hpux9* | hpux10* | hpux11*)
17011      lt_prog_compiler_wl_GCJ='-Wl,'
17012      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17013      # not for PA HP-UX.
17014      case $host_cpu in
17015      hppa*64*|ia64*)
17016	# +Z the default
17017	;;
17018      *)
17019	lt_prog_compiler_pic_GCJ='+Z'
17020	;;
17021      esac
17022      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17023      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17024      ;;
17025
17026    irix5* | irix6* | nonstopux*)
17027      lt_prog_compiler_wl_GCJ='-Wl,'
17028      # PIC (with -KPIC) is the default.
17029      lt_prog_compiler_static_GCJ='-non_shared'
17030      ;;
17031
17032    newsos6)
17033      lt_prog_compiler_pic_GCJ='-KPIC'
17034      lt_prog_compiler_static_GCJ='-Bstatic'
17035      ;;
17036
17037    linux* | k*bsd*-gnu)
17038      case $cc_basename in
17039      icc* | ecc*)
17040	lt_prog_compiler_wl_GCJ='-Wl,'
17041	lt_prog_compiler_pic_GCJ='-KPIC'
17042	lt_prog_compiler_static_GCJ='-static'
17043        ;;
17044      pgcc* | pgf77* | pgf90* | pgf95*)
17045        # Portland Group compilers (*not* the Pentium gcc compiler,
17046	# which looks to be a dead project)
17047	lt_prog_compiler_wl_GCJ='-Wl,'
17048	lt_prog_compiler_pic_GCJ='-fpic'
17049	lt_prog_compiler_static_GCJ='-Bstatic'
17050        ;;
17051      ccc*)
17052        lt_prog_compiler_wl_GCJ='-Wl,'
17053        # All Alpha code is PIC.
17054        lt_prog_compiler_static_GCJ='-non_shared'
17055        ;;
17056      *)
17057        case `$CC -V 2>&1 | sed 5q` in
17058	*Sun\ C*)
17059	  # Sun C 5.9
17060	  lt_prog_compiler_pic_GCJ='-KPIC'
17061	  lt_prog_compiler_static_GCJ='-Bstatic'
17062	  lt_prog_compiler_wl_GCJ='-Wl,'
17063	  ;;
17064	*Sun\ F*)
17065	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17066	  lt_prog_compiler_pic_GCJ='-KPIC'
17067	  lt_prog_compiler_static_GCJ='-Bstatic'
17068	  lt_prog_compiler_wl_GCJ=''
17069	  ;;
17070	esac
17071	;;
17072      esac
17073      ;;
17074
17075    osf3* | osf4* | osf5*)
17076      lt_prog_compiler_wl_GCJ='-Wl,'
17077      # All OSF/1 code is PIC.
17078      lt_prog_compiler_static_GCJ='-non_shared'
17079      ;;
17080
17081    rdos*)
17082      lt_prog_compiler_static_GCJ='-non_shared'
17083      ;;
17084
17085    solaris*)
17086      lt_prog_compiler_pic_GCJ='-KPIC'
17087      lt_prog_compiler_static_GCJ='-Bstatic'
17088      case $cc_basename in
17089      f77* | f90* | f95*)
17090	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17091      *)
17092	lt_prog_compiler_wl_GCJ='-Wl,';;
17093      esac
17094      ;;
17095
17096    sunos4*)
17097      lt_prog_compiler_wl_GCJ='-Qoption ld '
17098      lt_prog_compiler_pic_GCJ='-PIC'
17099      lt_prog_compiler_static_GCJ='-Bstatic'
17100      ;;
17101
17102    sysv4 | sysv4.2uw2* | sysv4.3*)
17103      lt_prog_compiler_wl_GCJ='-Wl,'
17104      lt_prog_compiler_pic_GCJ='-KPIC'
17105      lt_prog_compiler_static_GCJ='-Bstatic'
17106      ;;
17107
17108    sysv4*MP*)
17109      if test -d /usr/nec ;then
17110	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17111	lt_prog_compiler_static_GCJ='-Bstatic'
17112      fi
17113      ;;
17114
17115    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17116      lt_prog_compiler_wl_GCJ='-Wl,'
17117      lt_prog_compiler_pic_GCJ='-KPIC'
17118      lt_prog_compiler_static_GCJ='-Bstatic'
17119      ;;
17120
17121    unicos*)
17122      lt_prog_compiler_wl_GCJ='-Wl,'
17123      lt_prog_compiler_can_build_shared_GCJ=no
17124      ;;
17125
17126    uts4*)
17127      lt_prog_compiler_pic_GCJ='-pic'
17128      lt_prog_compiler_static_GCJ='-Bstatic'
17129      ;;
17130
17131    *)
17132      lt_prog_compiler_can_build_shared_GCJ=no
17133      ;;
17134    esac
17135  fi
17136
17137{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17138$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17139
17140#
17141# Check to make sure the PIC flag actually works.
17142#
17143if test -n "$lt_prog_compiler_pic_GCJ"; then
17144
17145{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17147if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17148  $as_echo_n "(cached) " >&6
17149else
17150  lt_cv_prog_compiler_pic_works_GCJ=no
17151  ac_outfile=conftest.$ac_objext
17152   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17154   # Insert the option either (1) after the last *FLAGS variable, or
17155   # (2) before a word containing "conftest.", or (3) at the end.
17156   # Note that $ac_compile itself does not contain backslashes and begins
17157   # with a dollar sign (not a hyphen), so the echo should work correctly.
17158   # The option is referenced via a variable to avoid confusing sed.
17159   lt_compile=`echo "$ac_compile" | $SED \
17160   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17162   -e 's:$: $lt_compiler_flag:'`
17163   (eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
17164   (eval "$lt_compile" 2>conftest.err)
17165   ac_status=$?
17166   cat conftest.err >&5
17167   echo "$as_me:17167: \$? = $ac_status" >&5
17168   if (exit $ac_status) && test -s "$ac_outfile"; then
17169     # The compiler can only warn and ignore the option if not recognized
17170     # So say no if there are warnings other than the usual output.
17171     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17172     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17173     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17174       lt_cv_prog_compiler_pic_works_GCJ=yes
17175     fi
17176   fi
17177   $rm conftest*
17178
17179fi
17180{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17181$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17182
17183if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17184    case $lt_prog_compiler_pic_GCJ in
17185     "" | " "*) ;;
17186     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17187     esac
17188else
17189    lt_prog_compiler_pic_GCJ=
17190     lt_prog_compiler_can_build_shared_GCJ=no
17191fi
17192
17193fi
17194case $host_os in
17195  # For platforms which do not support PIC, -DPIC is meaningless:
17196  *djgpp*)
17197    lt_prog_compiler_pic_GCJ=
17198    ;;
17199  *)
17200    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17201    ;;
17202esac
17203
17204#
17205# Check to make sure the static flag actually works.
17206#
17207wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17208{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17209$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17210if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17211  $as_echo_n "(cached) " >&6
17212else
17213  lt_cv_prog_compiler_static_works_GCJ=no
17214   save_LDFLAGS="$LDFLAGS"
17215   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17216   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17217   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218     # The linker can only warn and ignore the option if not recognized
17219     # So say no if there are warnings
17220     if test -s conftest.err; then
17221       # Append any errors to the config.log.
17222       cat conftest.err 1>&5
17223       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17224       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17225       if diff conftest.exp conftest.er2 >/dev/null; then
17226         lt_cv_prog_compiler_static_works_GCJ=yes
17227       fi
17228     else
17229       lt_cv_prog_compiler_static_works_GCJ=yes
17230     fi
17231   fi
17232   $rm -r conftest*
17233   LDFLAGS="$save_LDFLAGS"
17234
17235fi
17236{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17237$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17238
17239if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17240    :
17241else
17242    lt_prog_compiler_static_GCJ=
17243fi
17244
17245
17246{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17247$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17248if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17249  $as_echo_n "(cached) " >&6
17250else
17251  lt_cv_prog_compiler_c_o_GCJ=no
17252   $rm -r conftest 2>/dev/null
17253   mkdir conftest
17254   cd conftest
17255   mkdir out
17256   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17257
17258   lt_compiler_flag="-o out/conftest2.$ac_objext"
17259   # Insert the option either (1) after the last *FLAGS variable, or
17260   # (2) before a word containing "conftest.", or (3) at the end.
17261   # Note that $ac_compile itself does not contain backslashes and begins
17262   # with a dollar sign (not a hyphen), so the echo should work correctly.
17263   lt_compile=`echo "$ac_compile" | $SED \
17264   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266   -e 's:$: $lt_compiler_flag:'`
17267   (eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
17268   (eval "$lt_compile" 2>out/conftest.err)
17269   ac_status=$?
17270   cat out/conftest.err >&5
17271   echo "$as_me:17271: \$? = $ac_status" >&5
17272   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17273   then
17274     # The compiler can only warn and ignore the option if not recognized
17275     # So say no if there are warnings
17276     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17277     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17278     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17279       lt_cv_prog_compiler_c_o_GCJ=yes
17280     fi
17281   fi
17282   chmod u+w . 2>&5
17283   $rm conftest*
17284   # SGI C++ compiler will create directory out/ii_files/ for
17285   # template instantiation
17286   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17287   $rm out/* && rmdir out
17288   cd ..
17289   rmdir conftest
17290   $rm conftest*
17291
17292fi
17293{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17294$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17295
17296
17297hard_links="nottested"
17298if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17299  # do not overwrite the value of need_locks provided by the user
17300  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17301$as_echo_n "checking if we can lock with hard links... " >&6; }
17302  hard_links=yes
17303  $rm conftest*
17304  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17305  touch conftest.a
17306  ln conftest.a conftest.b 2>&5 || hard_links=no
17307  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17308  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17309$as_echo "$hard_links" >&6; }
17310  if test "$hard_links" = no; then
17311    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17312$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17313    need_locks=warn
17314  fi
17315else
17316  need_locks=no
17317fi
17318
17319{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17320$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17321
17322  runpath_var=
17323  allow_undefined_flag_GCJ=
17324  enable_shared_with_static_runtimes_GCJ=no
17325  archive_cmds_GCJ=
17326  archive_expsym_cmds_GCJ=
17327  old_archive_From_new_cmds_GCJ=
17328  old_archive_from_expsyms_cmds_GCJ=
17329  export_dynamic_flag_spec_GCJ=
17330  whole_archive_flag_spec_GCJ=
17331  thread_safe_flag_spec_GCJ=
17332  hardcode_libdir_flag_spec_GCJ=
17333  hardcode_libdir_flag_spec_ld_GCJ=
17334  hardcode_libdir_separator_GCJ=
17335  hardcode_direct_GCJ=no
17336  hardcode_minus_L_GCJ=no
17337  hardcode_shlibpath_var_GCJ=unsupported
17338  link_all_deplibs_GCJ=unknown
17339  hardcode_automatic_GCJ=no
17340  module_cmds_GCJ=
17341  module_expsym_cmds_GCJ=
17342  always_export_symbols_GCJ=no
17343  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17344  # include_expsyms should be a list of space-separated symbols to be *always*
17345  # included in the symbol list
17346  include_expsyms_GCJ=
17347  # exclude_expsyms can be an extended regexp of symbols to exclude
17348  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17349  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17350  # as well as any symbol that contains `d'.
17351  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17352  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17353  # platforms (ab)use it in PIC code, but their linkers get confused if
17354  # the symbol is explicitly referenced.  Since portable code cannot
17355  # rely on this symbol name, it's probably fine to never include it in
17356  # preloaded symbol tables.
17357  # Exclude shared library initialization/finalization symbols.
17358  extract_expsyms_cmds=
17359  # Just being paranoid about ensuring that cc_basename is set.
17360  for cc_temp in $compiler""; do
17361  case $cc_temp in
17362    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17363    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17364    \-*) ;;
17365    *) break;;
17366  esac
17367done
17368cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17369
17370  case $host_os in
17371  cygwin* | mingw* | pw32*)
17372    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17373    # When not using gcc, we currently assume that we are using
17374    # Microsoft Visual C++.
17375    if test "$GCC" != yes; then
17376      with_gnu_ld=no
17377    fi
17378    ;;
17379  interix*)
17380    # we just hope/assume this is gcc and not c89 (= MSVC++)
17381    with_gnu_ld=yes
17382    ;;
17383  openbsd*)
17384    with_gnu_ld=no
17385    ;;
17386  esac
17387
17388  ld_shlibs_GCJ=yes
17389  if test "$with_gnu_ld" = yes; then
17390    # If archive_cmds runs LD, not CC, wlarc should be empty
17391    wlarc='${wl}'
17392
17393    # Set some defaults for GNU ld with shared library support. These
17394    # are reset later if shared libraries are not supported. Putting them
17395    # here allows them to be overridden if necessary.
17396    runpath_var=LD_RUN_PATH
17397    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17398    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17399    # ancient GNU ld didn't support --whole-archive et. al.
17400    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17401	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17402      else
17403  	whole_archive_flag_spec_GCJ=
17404    fi
17405    supports_anon_versioning=no
17406    case `$LD -v 2>/dev/null` in
17407      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17408      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17409      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17410      *\ 2.11.*) ;; # other 2.11 versions
17411      *) supports_anon_versioning=yes ;;
17412    esac
17413
17414    # See if GNU ld supports shared libraries.
17415    case $host_os in
17416    aix[3-9]*)
17417      # On AIX/PPC, the GNU linker is very broken
17418      if test "$host_cpu" != ia64; then
17419	ld_shlibs_GCJ=no
17420	cat <<EOF 1>&2
17421
17422*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17423*** to be unable to reliably create shared libraries on AIX.
17424*** Therefore, libtool is disabling shared libraries support.  If you
17425*** really care for shared libraries, you may want to modify your PATH
17426*** so that a non-GNU linker is found, and then restart.
17427
17428EOF
17429      fi
17430      ;;
17431
17432    amigaos*)
17433      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)'
17434      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435      hardcode_minus_L_GCJ=yes
17436
17437      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17438      # that the semantics of dynamic libraries on AmigaOS, at least up
17439      # to version 4, is to share data among multiple programs linked
17440      # with the same dynamic library.  Since this doesn't match the
17441      # behavior of shared libraries on other platforms, we can't use
17442      # them.
17443      ld_shlibs_GCJ=no
17444      ;;
17445
17446    beos*)
17447      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448	allow_undefined_flag_GCJ=unsupported
17449	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17450	# support --undefined.  This deserves some investigation.  FIXME
17451	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452      else
17453	ld_shlibs_GCJ=no
17454      fi
17455      ;;
17456
17457    cygwin* | mingw* | pw32*)
17458      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17459      # as there is no search path for DLLs.
17460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461      allow_undefined_flag_GCJ=unsupported
17462      always_export_symbols_GCJ=no
17463      enable_shared_with_static_runtimes_GCJ=yes
17464      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17465
17466      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17467        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17468	# If the export-symbols file already is a .def file (1st line
17469	# is EXPORTS), use it as is; otherwise, prepend...
17470	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17471	  cp $export_symbols $output_objdir/$soname.def;
17472	else
17473	  echo EXPORTS > $output_objdir/$soname.def;
17474	  cat $export_symbols >> $output_objdir/$soname.def;
17475	fi~
17476	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17477      else
17478	ld_shlibs_GCJ=no
17479      fi
17480      ;;
17481
17482    interix[3-9]*)
17483      hardcode_direct_GCJ=no
17484      hardcode_shlibpath_var_GCJ=no
17485      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17486      export_dynamic_flag_spec_GCJ='${wl}-E'
17487      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17488      # Instead, shared libraries are loaded at an image base (0x10000000 by
17489      # default) and relocated if they conflict, which is a slow very memory
17490      # consuming and fragmenting process.  To avoid this, we pick a random,
17491      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17492      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17493      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'
17494      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'
17495      ;;
17496
17497    gnu* | linux* | k*bsd*-gnu)
17498      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17499	tmp_addflag=
17500	case $cc_basename,$host_cpu in
17501	pgcc*)				# Portland Group C compiler
17502	  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'
17503	  tmp_addflag=' $pic_flag'
17504	  ;;
17505	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17506	  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'
17507	  tmp_addflag=' $pic_flag -Mnomain' ;;
17508	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17509	  tmp_addflag=' -i_dynamic' ;;
17510	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17511	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17512	ifc* | ifort*)			# Intel Fortran compiler
17513	  tmp_addflag=' -nofor_main' ;;
17514	esac
17515	case `$CC -V 2>&1 | sed 5q` in
17516	*Sun\ C*)			# Sun C 5.9
17517	  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'
17518	  tmp_sharedflag='-G' ;;
17519	*Sun\ F*)			# Sun Fortran 8.3
17520	  tmp_sharedflag='-G' ;;
17521	*)
17522	  tmp_sharedflag='-shared' ;;
17523	esac
17524	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525
17526	if test $supports_anon_versioning = yes; then
17527	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17528  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17529  $echo "local: *; };" >> $output_objdir/$libname.ver~
17530	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17531	fi
17532      else
17533	ld_shlibs_GCJ=no
17534      fi
17535      ;;
17536
17537    netbsd*)
17538      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17539	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17540	wlarc=
17541      else
17542	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17544      fi
17545      ;;
17546
17547    solaris*)
17548      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17549	ld_shlibs_GCJ=no
17550	cat <<EOF 1>&2
17551
17552*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17553*** create shared libraries on Solaris systems.  Therefore, libtool
17554*** is disabling shared libraries support.  We urge you to upgrade GNU
17555*** binutils to release 2.9.1 or newer.  Another option is to modify
17556*** your PATH or compiler configuration so that the native linker is
17557*** used, and then restart.
17558
17559EOF
17560      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563      else
17564	ld_shlibs_GCJ=no
17565      fi
17566      ;;
17567
17568    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17569      case `$LD -v 2>&1` in
17570        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17571	ld_shlibs_GCJ=no
17572	cat <<_LT_EOF 1>&2
17573
17574*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17575*** reliably create shared libraries on SCO systems.  Therefore, libtool
17576*** is disabling shared libraries support.  We urge you to upgrade GNU
17577*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17578*** your PATH or compiler configuration so that the native linker is
17579*** used, and then restart.
17580
17581_LT_EOF
17582	;;
17583	*)
17584	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17586	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17587	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17588	  else
17589	    ld_shlibs_GCJ=no
17590	  fi
17591	;;
17592      esac
17593      ;;
17594
17595    sunos4*)
17596      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17597      wlarc=
17598      hardcode_direct_GCJ=yes
17599      hardcode_shlibpath_var_GCJ=no
17600      ;;
17601
17602    *)
17603      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17604	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17605	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17606      else
17607	ld_shlibs_GCJ=no
17608      fi
17609      ;;
17610    esac
17611
17612    if test "$ld_shlibs_GCJ" = no; then
17613      runpath_var=
17614      hardcode_libdir_flag_spec_GCJ=
17615      export_dynamic_flag_spec_GCJ=
17616      whole_archive_flag_spec_GCJ=
17617    fi
17618  else
17619    # PORTME fill in a description of your system's linker (not GNU ld)
17620    case $host_os in
17621    aix3*)
17622      allow_undefined_flag_GCJ=unsupported
17623      always_export_symbols_GCJ=yes
17624      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'
17625      # Note: this linker hardcodes the directories in LIBPATH if there
17626      # are no directories specified by -L.
17627      hardcode_minus_L_GCJ=yes
17628      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17629	# Neither direct hardcoding nor static linking is supported with a
17630	# broken collect2.
17631	hardcode_direct_GCJ=unsupported
17632      fi
17633      ;;
17634
17635    aix[4-9]*)
17636      if test "$host_cpu" = ia64; then
17637	# On IA64, the linker does run time linking by default, so we don't
17638	# have to do anything special.
17639	aix_use_runtimelinking=no
17640	exp_sym_flag='-Bexport'
17641	no_entry_flag=""
17642      else
17643	# If we're using GNU nm, then we don't want the "-C" option.
17644	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17645	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17646	  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'
17647	else
17648	  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'
17649	fi
17650	aix_use_runtimelinking=no
17651
17652	# Test if we are trying to use run time linking or normal
17653	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17654	# need to do runtime linking.
17655	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17656	  for ld_flag in $LDFLAGS; do
17657  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17658  	    aix_use_runtimelinking=yes
17659  	    break
17660  	  fi
17661	  done
17662	  ;;
17663	esac
17664
17665	exp_sym_flag='-bexport'
17666	no_entry_flag='-bnoentry'
17667      fi
17668
17669      # When large executables or shared objects are built, AIX ld can
17670      # have problems creating the table of contents.  If linking a library
17671      # or program results in "error TOC overflow" add -mminimal-toc to
17672      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17673      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17674
17675      archive_cmds_GCJ=''
17676      hardcode_direct_GCJ=yes
17677      hardcode_libdir_separator_GCJ=':'
17678      link_all_deplibs_GCJ=yes
17679
17680      if test "$GCC" = yes; then
17681	case $host_os in aix4.[012]|aix4.[012].*)
17682	# We only want to do this on AIX 4.2 and lower, the check
17683	# below for broken collect2 doesn't work under 4.3+
17684	  collect2name=`${CC} -print-prog-name=collect2`
17685	  if test -f "$collect2name" && \
17686  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17687	  then
17688  	  # We have reworked collect2
17689  	  :
17690	  else
17691  	  # We have old collect2
17692  	  hardcode_direct_GCJ=unsupported
17693  	  # It fails to find uninstalled libraries when the uninstalled
17694  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17695  	  # to unsupported forces relinking
17696  	  hardcode_minus_L_GCJ=yes
17697  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698  	  hardcode_libdir_separator_GCJ=
17699	  fi
17700	  ;;
17701	esac
17702	shared_flag='-shared'
17703	if test "$aix_use_runtimelinking" = yes; then
17704	  shared_flag="$shared_flag "'${wl}-G'
17705	fi
17706      else
17707	# not using gcc
17708	if test "$host_cpu" = ia64; then
17709  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17710  	# chokes on -Wl,-G. The following line is correct:
17711	  shared_flag='-G'
17712	else
17713	  if test "$aix_use_runtimelinking" = yes; then
17714	    shared_flag='${wl}-G'
17715	  else
17716	    shared_flag='${wl}-bM:SRE'
17717	  fi
17718	fi
17719      fi
17720
17721      # It seems that -bexpall does not export symbols beginning with
17722      # underscore (_), so it is better to generate a list of symbols to export.
17723      always_export_symbols_GCJ=yes
17724      if test "$aix_use_runtimelinking" = yes; then
17725	# Warning - without using the other runtime loading flags (-brtl),
17726	# -berok will link without error, but may produce a broken library.
17727	allow_undefined_flag_GCJ='-berok'
17728       # Determine the default libpath from the value encoded in an empty executable.
17729       cat >conftest.$ac_ext <<_ACEOF
17730/* confdefs.h.  */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h.  */
17735
17736int
17737main ()
17738{
17739
17740  ;
17741  return 0;
17742}
17743_ACEOF
17744rm -f conftest.$ac_objext conftest$ac_exeext
17745if { (ac_try="$ac_link"
17746case "(($ac_try" in
17747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748  *) ac_try_echo=$ac_try;;
17749esac
17750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17751$as_echo "$ac_try_echo") >&5
17752  (eval "$ac_link") 2>conftest.er1
17753  ac_status=$?
17754  grep -v '^ *+' conftest.er1 >conftest.err
17755  rm -f conftest.er1
17756  cat conftest.err >&5
17757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758  (exit $ac_status); } && {
17759	 test -z "$ac_c_werror_flag" ||
17760	 test ! -s conftest.err
17761       } && test -s conftest$ac_exeext && {
17762	 test "$cross_compiling" = yes ||
17763	 $as_test_x conftest$ac_exeext
17764       }; then
17765
17766lt_aix_libpath_sed='
17767    /Import File Strings/,/^$/ {
17768	/^0/ {
17769	    s/^0  *\(.*\)$/\1/
17770	    p
17771	}
17772    }'
17773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17774# Check for a 64-bit object if we didn't find anything.
17775if test -z "$aix_libpath"; then
17776  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17777fi
17778else
17779  $as_echo "$as_me: failed program was:" >&5
17780sed 's/^/| /' conftest.$ac_ext >&5
17781
17782
17783fi
17784
17785rm -rf conftest.dSYM
17786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17787      conftest$ac_exeext conftest.$ac_ext
17788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17789
17790       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17791	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"
17792       else
17793	if test "$host_cpu" = ia64; then
17794	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17795	  allow_undefined_flag_GCJ="-z nodefs"
17796	  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"
17797	else
17798	 # Determine the default libpath from the value encoded in an empty executable.
17799	 cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h.  */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h.  */
17805
17806int
17807main ()
17808{
17809
17810  ;
17811  return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext conftest$ac_exeext
17815if { (ac_try="$ac_link"
17816case "(($ac_try" in
17817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818  *) ac_try_echo=$ac_try;;
17819esac
17820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17821$as_echo "$ac_try_echo") >&5
17822  (eval "$ac_link") 2>conftest.er1
17823  ac_status=$?
17824  grep -v '^ *+' conftest.er1 >conftest.err
17825  rm -f conftest.er1
17826  cat conftest.err >&5
17827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828  (exit $ac_status); } && {
17829	 test -z "$ac_c_werror_flag" ||
17830	 test ! -s conftest.err
17831       } && test -s conftest$ac_exeext && {
17832	 test "$cross_compiling" = yes ||
17833	 $as_test_x conftest$ac_exeext
17834       }; then
17835
17836lt_aix_libpath_sed='
17837    /Import File Strings/,/^$/ {
17838	/^0/ {
17839	    s/^0  *\(.*\)$/\1/
17840	    p
17841	}
17842    }'
17843aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17844# Check for a 64-bit object if we didn't find anything.
17845if test -z "$aix_libpath"; then
17846  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17847fi
17848else
17849  $as_echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852
17853fi
17854
17855rm -rf conftest.dSYM
17856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857      conftest$ac_exeext conftest.$ac_ext
17858if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17859
17860	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17861	  # Warning - without using the other run time loading flags,
17862	  # -berok will link without error, but may produce a broken library.
17863	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17864	  allow_undefined_flag_GCJ=' ${wl}-berok'
17865	  # Exported symbols can be pulled into shared objects from archives
17866	  whole_archive_flag_spec_GCJ='$convenience'
17867	  archive_cmds_need_lc_GCJ=yes
17868	  # This is similar to how AIX traditionally builds its shared libraries.
17869	  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'
17870	fi
17871      fi
17872      ;;
17873
17874    amigaos*)
17875      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)'
17876      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877      hardcode_minus_L_GCJ=yes
17878      # see comment about different semantics on the GNU ld section
17879      ld_shlibs_GCJ=no
17880      ;;
17881
17882    bsdi[45]*)
17883      export_dynamic_flag_spec_GCJ=-rdynamic
17884      ;;
17885
17886    cygwin* | mingw* | pw32*)
17887      # When not using gcc, we currently assume that we are using
17888      # Microsoft Visual C++.
17889      # hardcode_libdir_flag_spec is actually meaningless, as there is
17890      # no search path for DLLs.
17891      hardcode_libdir_flag_spec_GCJ=' '
17892      allow_undefined_flag_GCJ=unsupported
17893      # Tell ltmain to make .lib files, not .a files.
17894      libext=lib
17895      # Tell ltmain to make .dll files, not .so files.
17896      shrext_cmds=".dll"
17897      # FIXME: Setting linknames here is a bad hack.
17898      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17899      # The linker will automatically build a .lib file if we build a DLL.
17900      old_archive_From_new_cmds_GCJ='true'
17901      # FIXME: Should let the user specify the lib program.
17902      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17903      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17904      enable_shared_with_static_runtimes_GCJ=yes
17905      ;;
17906
17907    darwin* | rhapsody*)
17908      case $host_os in
17909        rhapsody* | darwin1.[012])
17910         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17911         ;;
17912       *) # Darwin 1.3 on
17913         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17914           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17915         else
17916           case ${MACOSX_DEPLOYMENT_TARGET} in
17917             10.[012])
17918               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17919               ;;
17920             10.*)
17921               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17922               ;;
17923           esac
17924         fi
17925         ;;
17926      esac
17927      archive_cmds_need_lc_GCJ=no
17928      hardcode_direct_GCJ=no
17929      hardcode_automatic_GCJ=yes
17930      hardcode_shlibpath_var_GCJ=unsupported
17931      whole_archive_flag_spec_GCJ=''
17932      link_all_deplibs_GCJ=yes
17933    if test "$GCC" = yes ; then
17934    	output_verbose_link_cmd='echo'
17935        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}"
17936        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17937        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}"
17938        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}"
17939    else
17940      case $cc_basename in
17941        xlc*)
17942         output_verbose_link_cmd='echo'
17943         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17944         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17945          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17946         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}'
17947          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}'
17948          ;;
17949       *)
17950         ld_shlibs_GCJ=no
17951          ;;
17952      esac
17953    fi
17954      ;;
17955
17956    dgux*)
17957      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17959      hardcode_shlibpath_var_GCJ=no
17960      ;;
17961
17962    freebsd1*)
17963      ld_shlibs_GCJ=no
17964      ;;
17965
17966    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17967    # support.  Future versions do this automatically, but an explicit c++rt0.o
17968    # does not break anything, and helps significantly (at the cost of a little
17969    # extra space).
17970    freebsd2.2*)
17971      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17972      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973      hardcode_direct_GCJ=yes
17974      hardcode_shlibpath_var_GCJ=no
17975      ;;
17976
17977    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17978    freebsd2*)
17979      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17980      hardcode_direct_GCJ=yes
17981      hardcode_minus_L_GCJ=yes
17982      hardcode_shlibpath_var_GCJ=no
17983      ;;
17984
17985    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17986    freebsd* | dragonfly*)
17987      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17988      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17989      hardcode_direct_GCJ=yes
17990      hardcode_shlibpath_var_GCJ=no
17991      ;;
17992
17993    hpux9*)
17994      if test "$GCC" = yes; then
17995	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'
17996      else
17997	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'
17998      fi
17999      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000      hardcode_libdir_separator_GCJ=:
18001      hardcode_direct_GCJ=yes
18002
18003      # hardcode_minus_L: Not really in the search PATH,
18004      # but as the default location of the library.
18005      hardcode_minus_L_GCJ=yes
18006      export_dynamic_flag_spec_GCJ='${wl}-E'
18007      ;;
18008
18009    hpux10*)
18010      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18011	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18012      else
18013	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18014      fi
18015      if test "$with_gnu_ld" = no; then
18016	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18017	hardcode_libdir_separator_GCJ=:
18018
18019	hardcode_direct_GCJ=yes
18020	export_dynamic_flag_spec_GCJ='${wl}-E'
18021
18022	# hardcode_minus_L: Not really in the search PATH,
18023	# but as the default location of the library.
18024	hardcode_minus_L_GCJ=yes
18025      fi
18026      ;;
18027
18028    hpux11*)
18029      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18030	case $host_cpu in
18031	hppa*64*)
18032	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18033	  ;;
18034	ia64*)
18035	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18036	  ;;
18037	*)
18038	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18039	  ;;
18040	esac
18041      else
18042	case $host_cpu in
18043	hppa*64*)
18044	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045	  ;;
18046	ia64*)
18047	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18048	  ;;
18049	*)
18050	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18051	  ;;
18052	esac
18053      fi
18054      if test "$with_gnu_ld" = no; then
18055	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18056	hardcode_libdir_separator_GCJ=:
18057
18058	case $host_cpu in
18059	hppa*64*|ia64*)
18060	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18061	  hardcode_direct_GCJ=no
18062	  hardcode_shlibpath_var_GCJ=no
18063	  ;;
18064	*)
18065	  hardcode_direct_GCJ=yes
18066	  export_dynamic_flag_spec_GCJ='${wl}-E'
18067
18068	  # hardcode_minus_L: Not really in the search PATH,
18069	  # but as the default location of the library.
18070	  hardcode_minus_L_GCJ=yes
18071	  ;;
18072	esac
18073      fi
18074      ;;
18075
18076    irix5* | irix6* | nonstopux*)
18077      if test "$GCC" = yes; then
18078	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'
18079      else
18080	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'
18081	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18082      fi
18083      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18084      hardcode_libdir_separator_GCJ=:
18085      link_all_deplibs_GCJ=yes
18086      ;;
18087
18088    netbsd*)
18089      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18090	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18091      else
18092	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18093      fi
18094      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095      hardcode_direct_GCJ=yes
18096      hardcode_shlibpath_var_GCJ=no
18097      ;;
18098
18099    newsos6)
18100      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101      hardcode_direct_GCJ=yes
18102      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18103      hardcode_libdir_separator_GCJ=:
18104      hardcode_shlibpath_var_GCJ=no
18105      ;;
18106
18107    openbsd*)
18108      if test -f /usr/libexec/ld.so; then
18109	hardcode_direct_GCJ=yes
18110	hardcode_shlibpath_var_GCJ=no
18111	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18112	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18113	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18114	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18115	  export_dynamic_flag_spec_GCJ='${wl}-E'
18116	else
18117	  case $host_os in
18118	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18119	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18120	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18121	     ;;
18122	   *)
18123	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18125	     ;;
18126	  esac
18127        fi
18128      else
18129	ld_shlibs_GCJ=no
18130      fi
18131      ;;
18132
18133    os2*)
18134      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18135      hardcode_minus_L_GCJ=yes
18136      allow_undefined_flag_GCJ=unsupported
18137      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'
18138      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18139      ;;
18140
18141    osf3*)
18142      if test "$GCC" = yes; then
18143	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18144	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'
18145      else
18146	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18147	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'
18148      fi
18149      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18150      hardcode_libdir_separator_GCJ=:
18151      ;;
18152
18153    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18154      if test "$GCC" = yes; then
18155	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18156	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'
18157	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18158      else
18159	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18160	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'
18161	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~
18162	$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'
18163
18164	# Both c and cxx compiler support -rpath directly
18165	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18166      fi
18167      hardcode_libdir_separator_GCJ=:
18168      ;;
18169
18170    solaris*)
18171      no_undefined_flag_GCJ=' -z text'
18172      if test "$GCC" = yes; then
18173	wlarc='${wl}'
18174	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18175	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18176	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18177      else
18178	wlarc=''
18179	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18181  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18182      fi
18183      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18184      hardcode_shlibpath_var_GCJ=no
18185      case $host_os in
18186      solaris2.[0-5] | solaris2.[0-5].*) ;;
18187      *)
18188	# The compiler driver will combine and reorder linker options,
18189	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18190	# but is careful enough not to reorder.
18191 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18192	if test "$GCC" = yes; then
18193	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18194	else
18195	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18196	fi
18197	;;
18198      esac
18199      link_all_deplibs_GCJ=yes
18200      ;;
18201
18202    sunos4*)
18203      if test "x$host_vendor" = xsequent; then
18204	# Use $CC to link under sequent, because it throws in some extra .o
18205	# files that make .init and .fini sections work.
18206	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18207      else
18208	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18209      fi
18210      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18211      hardcode_direct_GCJ=yes
18212      hardcode_minus_L_GCJ=yes
18213      hardcode_shlibpath_var_GCJ=no
18214      ;;
18215
18216    sysv4)
18217      case $host_vendor in
18218	sni)
18219	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220	  hardcode_direct_GCJ=yes # is this really true???
18221	;;
18222	siemens)
18223	  ## LD is ld it makes a PLAMLIB
18224	  ## CC just makes a GrossModule.
18225	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18226	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18227	  hardcode_direct_GCJ=no
18228        ;;
18229	motorola)
18230	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18232	;;
18233      esac
18234      runpath_var='LD_RUN_PATH'
18235      hardcode_shlibpath_var_GCJ=no
18236      ;;
18237
18238    sysv4.3*)
18239      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240      hardcode_shlibpath_var_GCJ=no
18241      export_dynamic_flag_spec_GCJ='-Bexport'
18242      ;;
18243
18244    sysv4*MP*)
18245      if test -d /usr/nec; then
18246	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247	hardcode_shlibpath_var_GCJ=no
18248	runpath_var=LD_RUN_PATH
18249	hardcode_runpath_var=yes
18250	ld_shlibs_GCJ=yes
18251      fi
18252      ;;
18253
18254    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18255      no_undefined_flag_GCJ='${wl}-z,text'
18256      archive_cmds_need_lc_GCJ=no
18257      hardcode_shlibpath_var_GCJ=no
18258      runpath_var='LD_RUN_PATH'
18259
18260      if test "$GCC" = yes; then
18261	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18262	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18263      else
18264	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18265	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18266      fi
18267      ;;
18268
18269    sysv5* | sco3.2v5* | sco5v6*)
18270      # Note: We can NOT use -z defs as we might desire, because we do not
18271      # link with -lc, and that would cause any symbols used from libc to
18272      # always be unresolved, which means just about no library would
18273      # ever link correctly.  If we're not using GNU ld we use -z text
18274      # though, which does catch some bad symbols but isn't as heavy-handed
18275      # as -z defs.
18276      no_undefined_flag_GCJ='${wl}-z,text'
18277      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18278      archive_cmds_need_lc_GCJ=no
18279      hardcode_shlibpath_var_GCJ=no
18280      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18281      hardcode_libdir_separator_GCJ=':'
18282      link_all_deplibs_GCJ=yes
18283      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18284      runpath_var='LD_RUN_PATH'
18285
18286      if test "$GCC" = yes; then
18287	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18288	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289      else
18290	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18291	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18292      fi
18293      ;;
18294
18295    uts4*)
18296      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18297      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18298      hardcode_shlibpath_var_GCJ=no
18299      ;;
18300
18301    *)
18302      ld_shlibs_GCJ=no
18303      ;;
18304    esac
18305  fi
18306
18307{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18308$as_echo "$ld_shlibs_GCJ" >&6; }
18309test "$ld_shlibs_GCJ" = no && can_build_shared=no
18310
18311#
18312# Do we need to explicitly link libc?
18313#
18314case "x$archive_cmds_need_lc_GCJ" in
18315x|xyes)
18316  # Assume -lc should be added
18317  archive_cmds_need_lc_GCJ=yes
18318
18319  if test "$enable_shared" = yes && test "$GCC" = yes; then
18320    case $archive_cmds_GCJ in
18321    *'~'*)
18322      # FIXME: we may have to deal with multi-command sequences.
18323      ;;
18324    '$CC '*)
18325      # Test whether the compiler implicitly links with -lc since on some
18326      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18327      # to ld, don't add -lc before -lgcc.
18328      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18329$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18330      $rm conftest*
18331      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18332
18333      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334  (eval $ac_compile) 2>&5
18335  ac_status=$?
18336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337  (exit $ac_status); } 2>conftest.err; then
18338        soname=conftest
18339        lib=conftest
18340        libobjs=conftest.$ac_objext
18341        deplibs=
18342        wl=$lt_prog_compiler_wl_GCJ
18343	pic_flag=$lt_prog_compiler_pic_GCJ
18344        compiler_flags=-v
18345        linker_flags=-v
18346        verstring=
18347        output_objdir=.
18348        libname=conftest
18349        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18350        allow_undefined_flag_GCJ=
18351        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18352  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18353  ac_status=$?
18354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); }
18356        then
18357	  archive_cmds_need_lc_GCJ=no
18358        else
18359	  archive_cmds_need_lc_GCJ=yes
18360        fi
18361        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18362      else
18363        cat conftest.err 1>&5
18364      fi
18365      $rm conftest*
18366      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18367$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18368      ;;
18369    esac
18370  fi
18371  ;;
18372esac
18373
18374{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18375$as_echo_n "checking dynamic linker characteristics... " >&6; }
18376library_names_spec=
18377libname_spec='lib$name'
18378soname_spec=
18379shrext_cmds=".so"
18380postinstall_cmds=
18381postuninstall_cmds=
18382finish_cmds=
18383finish_eval=
18384shlibpath_var=
18385shlibpath_overrides_runpath=unknown
18386version_type=none
18387dynamic_linker="$host_os ld.so"
18388sys_lib_dlsearch_path_spec="/lib /usr/lib"
18389
18390need_lib_prefix=unknown
18391hardcode_into_libs=no
18392
18393# when you set need_version to no, make sure it does not cause -set_version
18394# flags to be left without arguments
18395need_version=unknown
18396
18397case $host_os in
18398aix3*)
18399  version_type=linux
18400  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18401  shlibpath_var=LIBPATH
18402
18403  # AIX 3 has no versioning support, so we append a major version to the name.
18404  soname_spec='${libname}${release}${shared_ext}$major'
18405  ;;
18406
18407aix[4-9]*)
18408  version_type=linux
18409  need_lib_prefix=no
18410  need_version=no
18411  hardcode_into_libs=yes
18412  if test "$host_cpu" = ia64; then
18413    # AIX 5 supports IA64
18414    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18415    shlibpath_var=LD_LIBRARY_PATH
18416  else
18417    # With GCC up to 2.95.x, collect2 would create an import file
18418    # for dependence libraries.  The import file would start with
18419    # the line `#! .'.  This would cause the generated library to
18420    # depend on `.', always an invalid library.  This was fixed in
18421    # development snapshots of GCC prior to 3.0.
18422    case $host_os in
18423      aix4 | aix4.[01] | aix4.[01].*)
18424      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18425	   echo ' yes '
18426	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18427	:
18428      else
18429	can_build_shared=no
18430      fi
18431      ;;
18432    esac
18433    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18434    # soname into executable. Probably we can add versioning support to
18435    # collect2, so additional links can be useful in future.
18436    if test "$aix_use_runtimelinking" = yes; then
18437      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18438      # instead of lib<name>.a to let people know that these are not
18439      # typical AIX shared libraries.
18440      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18441    else
18442      # We preserve .a as extension for shared libraries through AIX4.2
18443      # and later when we are not doing run time linking.
18444      library_names_spec='${libname}${release}.a $libname.a'
18445      soname_spec='${libname}${release}${shared_ext}$major'
18446    fi
18447    shlibpath_var=LIBPATH
18448  fi
18449  ;;
18450
18451amigaos*)
18452  library_names_spec='$libname.ixlibrary $libname.a'
18453  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18454  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'
18455  ;;
18456
18457beos*)
18458  library_names_spec='${libname}${shared_ext}'
18459  dynamic_linker="$host_os ld.so"
18460  shlibpath_var=LIBRARY_PATH
18461  ;;
18462
18463bsdi[45]*)
18464  version_type=linux
18465  need_version=no
18466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467  soname_spec='${libname}${release}${shared_ext}$major'
18468  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18469  shlibpath_var=LD_LIBRARY_PATH
18470  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18471  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18472  # the default ld.so.conf also contains /usr/contrib/lib and
18473  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18474  # libtool to hard-code these into programs
18475  ;;
18476
18477cygwin* | mingw* | pw32*)
18478  version_type=windows
18479  shrext_cmds=".dll"
18480  need_version=no
18481  need_lib_prefix=no
18482
18483  case $GCC,$host_os in
18484  yes,cygwin* | yes,mingw* | yes,pw32*)
18485    library_names_spec='$libname.dll.a'
18486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18487    postinstall_cmds='base_file=`basename \${file}`~
18488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18489      dldir=$destdir/`dirname \$dlpath`~
18490      test -d \$dldir || mkdir -p \$dldir~
18491      $install_prog $dir/$dlname \$dldir/$dlname~
18492      chmod a+x \$dldir/$dlname'
18493    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18494      dlpath=$dir/\$dldll~
18495       $rm \$dlpath'
18496    shlibpath_overrides_runpath=yes
18497
18498    case $host_os in
18499    cygwin*)
18500      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18501      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18502      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18503      ;;
18504    mingw*)
18505      # MinGW DLLs use traditional 'lib' prefix
18506      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18507      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18508      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18509        # It is most probably a Windows format PATH printed by
18510        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18511        # path with ; separators, and with drive letters. We can handle the
18512        # drive letters (cygwin fileutils understands them), so leave them,
18513        # especially as we might pass files found there to a mingw objdump,
18514        # which wouldn't understand a cygwinified path. Ahh.
18515        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18516      else
18517        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18518      fi
18519      ;;
18520    pw32*)
18521      # pw32 DLLs use 'pw' prefix rather than 'lib'
18522      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18523      ;;
18524    esac
18525    ;;
18526
18527  *)
18528    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18529    ;;
18530  esac
18531  dynamic_linker='Win32 ld.exe'
18532  # FIXME: first we should search . and the directory the executable is in
18533  shlibpath_var=PATH
18534  ;;
18535
18536darwin* | rhapsody*)
18537  dynamic_linker="$host_os dyld"
18538  version_type=darwin
18539  need_lib_prefix=no
18540  need_version=no
18541  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18542  soname_spec='${libname}${release}${major}$shared_ext'
18543  shlibpath_overrides_runpath=yes
18544  shlibpath_var=DYLD_LIBRARY_PATH
18545  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18546
18547  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18548  ;;
18549
18550dgux*)
18551  version_type=linux
18552  need_lib_prefix=no
18553  need_version=no
18554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18555  soname_spec='${libname}${release}${shared_ext}$major'
18556  shlibpath_var=LD_LIBRARY_PATH
18557  ;;
18558
18559freebsd1*)
18560  dynamic_linker=no
18561  ;;
18562
18563freebsd* | dragonfly*)
18564  # DragonFly does not have aout.  When/if they implement a new
18565  # versioning mechanism, adjust this.
18566  if test -x /usr/bin/objformat; then
18567    objformat=`/usr/bin/objformat`
18568  else
18569    case $host_os in
18570    freebsd[123]*) objformat=aout ;;
18571    *) objformat=elf ;;
18572    esac
18573  fi
18574  version_type=freebsd-$objformat
18575  case $version_type in
18576    freebsd-elf*)
18577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18578      need_version=no
18579      need_lib_prefix=no
18580      ;;
18581    freebsd-*)
18582      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18583      need_version=yes
18584      ;;
18585  esac
18586  shlibpath_var=LD_LIBRARY_PATH
18587  case $host_os in
18588  freebsd2*)
18589    shlibpath_overrides_runpath=yes
18590    ;;
18591  freebsd3.[01]* | freebsdelf3.[01]*)
18592    shlibpath_overrides_runpath=yes
18593    hardcode_into_libs=yes
18594    ;;
18595  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18596  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18597    shlibpath_overrides_runpath=no
18598    hardcode_into_libs=yes
18599    ;;
18600  *) # from 4.6 on, and DragonFly
18601    shlibpath_overrides_runpath=yes
18602    hardcode_into_libs=yes
18603    ;;
18604  esac
18605  ;;
18606
18607gnu*)
18608  version_type=linux
18609  need_lib_prefix=no
18610  need_version=no
18611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18612  soname_spec='${libname}${release}${shared_ext}$major'
18613  shlibpath_var=LD_LIBRARY_PATH
18614  hardcode_into_libs=yes
18615  ;;
18616
18617hpux9* | hpux10* | hpux11*)
18618  # Give a soname corresponding to the major version so that dld.sl refuses to
18619  # link against other versions.
18620  version_type=sunos
18621  need_lib_prefix=no
18622  need_version=no
18623  case $host_cpu in
18624  ia64*)
18625    shrext_cmds='.so'
18626    hardcode_into_libs=yes
18627    dynamic_linker="$host_os dld.so"
18628    shlibpath_var=LD_LIBRARY_PATH
18629    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631    soname_spec='${libname}${release}${shared_ext}$major'
18632    if test "X$HPUX_IA64_MODE" = X32; then
18633      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18634    else
18635      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18636    fi
18637    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18638    ;;
18639   hppa*64*)
18640     shrext_cmds='.sl'
18641     hardcode_into_libs=yes
18642     dynamic_linker="$host_os dld.sl"
18643     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18644     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646     soname_spec='${libname}${release}${shared_ext}$major'
18647     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18648     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18649     ;;
18650   *)
18651    shrext_cmds='.sl'
18652    dynamic_linker="$host_os dld.sl"
18653    shlibpath_var=SHLIB_PATH
18654    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656    soname_spec='${libname}${release}${shared_ext}$major'
18657    ;;
18658  esac
18659  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18660  postinstall_cmds='chmod 555 $lib'
18661  ;;
18662
18663interix[3-9]*)
18664  version_type=linux
18665  need_lib_prefix=no
18666  need_version=no
18667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18668  soname_spec='${libname}${release}${shared_ext}$major'
18669  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18670  shlibpath_var=LD_LIBRARY_PATH
18671  shlibpath_overrides_runpath=no
18672  hardcode_into_libs=yes
18673  ;;
18674
18675irix5* | irix6* | nonstopux*)
18676  case $host_os in
18677    nonstopux*) version_type=nonstopux ;;
18678    *)
18679	if test "$lt_cv_prog_gnu_ld" = yes; then
18680		version_type=linux
18681	else
18682		version_type=irix
18683	fi ;;
18684  esac
18685  need_lib_prefix=no
18686  need_version=no
18687  soname_spec='${libname}${release}${shared_ext}$major'
18688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18689  case $host_os in
18690  irix5* | nonstopux*)
18691    libsuff= shlibsuff=
18692    ;;
18693  *)
18694    case $LD in # libtool.m4 will add one of these switches to LD
18695    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696      libsuff= shlibsuff= libmagic=32-bit;;
18697    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698      libsuff=32 shlibsuff=N32 libmagic=N32;;
18699    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701    *) libsuff= shlibsuff= libmagic=never-match;;
18702    esac
18703    ;;
18704  esac
18705  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706  shlibpath_overrides_runpath=no
18707  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709  hardcode_into_libs=yes
18710  ;;
18711
18712# No shared lib support for Linux oldld, aout, or coff.
18713linux*oldld* | linux*aout* | linux*coff*)
18714  dynamic_linker=no
18715  ;;
18716
18717# This must be Linux ELF.
18718linux* | k*bsd*-gnu)
18719  version_type=linux
18720  need_lib_prefix=no
18721  need_version=no
18722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723  soname_spec='${libname}${release}${shared_ext}$major'
18724  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725  shlibpath_var=LD_LIBRARY_PATH
18726  shlibpath_overrides_runpath=no
18727  # This implies no fast_install, which is unacceptable.
18728  # Some rework will be needed to allow for fast_install
18729  # before this can be enabled.
18730  hardcode_into_libs=yes
18731  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18732  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18733
18734  # Append ld.so.conf contents to the search path
18735  if test -f /etc/ld.so.conf; then
18736    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' ' '`
18737    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18738  fi
18739
18740  # We used to test for /lib/ld.so.1 and disable shared libraries on
18741  # powerpc, because MkLinux only supported shared libraries with the
18742  # GNU dynamic linker.  Since this was broken with cross compilers,
18743  # most powerpc-linux boxes support dynamic linking these days and
18744  # people can always --disable-shared, the test was removed, and we
18745  # assume the GNU/Linux dynamic linker is in use.
18746  dynamic_linker='GNU/Linux ld.so'
18747  ;;
18748
18749netbsd*)
18750  version_type=sunos
18751  need_lib_prefix=no
18752  need_version=no
18753  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18754    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756    dynamic_linker='NetBSD (a.out) ld.so'
18757  else
18758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18759    soname_spec='${libname}${release}${shared_ext}$major'
18760    dynamic_linker='NetBSD ld.elf_so'
18761  fi
18762  shlibpath_var=LD_LIBRARY_PATH
18763  shlibpath_overrides_runpath=yes
18764  hardcode_into_libs=yes
18765  ;;
18766
18767newsos6)
18768  version_type=linux
18769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770  shlibpath_var=LD_LIBRARY_PATH
18771  shlibpath_overrides_runpath=yes
18772  ;;
18773
18774nto-qnx*)
18775  version_type=linux
18776  need_lib_prefix=no
18777  need_version=no
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779  soname_spec='${libname}${release}${shared_ext}$major'
18780  shlibpath_var=LD_LIBRARY_PATH
18781  shlibpath_overrides_runpath=yes
18782  ;;
18783
18784openbsd*)
18785  version_type=sunos
18786  sys_lib_dlsearch_path_spec="/usr/lib"
18787  need_lib_prefix=no
18788  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18789  case $host_os in
18790    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18791    *)                         need_version=no  ;;
18792  esac
18793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18794  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18795  shlibpath_var=LD_LIBRARY_PATH
18796  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18797    case $host_os in
18798      openbsd2.[89] | openbsd2.[89].*)
18799	shlibpath_overrides_runpath=no
18800	;;
18801      *)
18802	shlibpath_overrides_runpath=yes
18803	;;
18804      esac
18805  else
18806    shlibpath_overrides_runpath=yes
18807  fi
18808  ;;
18809
18810os2*)
18811  libname_spec='$name'
18812  shrext_cmds=".dll"
18813  need_lib_prefix=no
18814  library_names_spec='$libname${shared_ext} $libname.a'
18815  dynamic_linker='OS/2 ld.exe'
18816  shlibpath_var=LIBPATH
18817  ;;
18818
18819osf3* | osf4* | osf5*)
18820  version_type=osf
18821  need_lib_prefix=no
18822  need_version=no
18823  soname_spec='${libname}${release}${shared_ext}$major'
18824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825  shlibpath_var=LD_LIBRARY_PATH
18826  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18827  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18828  ;;
18829
18830rdos*)
18831  dynamic_linker=no
18832  ;;
18833
18834solaris*)
18835  version_type=linux
18836  need_lib_prefix=no
18837  need_version=no
18838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839  soname_spec='${libname}${release}${shared_ext}$major'
18840  shlibpath_var=LD_LIBRARY_PATH
18841  shlibpath_overrides_runpath=yes
18842  hardcode_into_libs=yes
18843  # ldd complains unless libraries are executable
18844  postinstall_cmds='chmod +x $lib'
18845  ;;
18846
18847sunos4*)
18848  version_type=sunos
18849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18850  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18851  shlibpath_var=LD_LIBRARY_PATH
18852  shlibpath_overrides_runpath=yes
18853  if test "$with_gnu_ld" = yes; then
18854    need_lib_prefix=no
18855  fi
18856  need_version=yes
18857  ;;
18858
18859sysv4 | sysv4.3*)
18860  version_type=linux
18861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862  soname_spec='${libname}${release}${shared_ext}$major'
18863  shlibpath_var=LD_LIBRARY_PATH
18864  case $host_vendor in
18865    sni)
18866      shlibpath_overrides_runpath=no
18867      need_lib_prefix=no
18868      export_dynamic_flag_spec='${wl}-Blargedynsym'
18869      runpath_var=LD_RUN_PATH
18870      ;;
18871    siemens)
18872      need_lib_prefix=no
18873      ;;
18874    motorola)
18875      need_lib_prefix=no
18876      need_version=no
18877      shlibpath_overrides_runpath=no
18878      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18879      ;;
18880  esac
18881  ;;
18882
18883sysv4*MP*)
18884  if test -d /usr/nec ;then
18885    version_type=linux
18886    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18887    soname_spec='$libname${shared_ext}.$major'
18888    shlibpath_var=LD_LIBRARY_PATH
18889  fi
18890  ;;
18891
18892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18893  version_type=freebsd-elf
18894  need_lib_prefix=no
18895  need_version=no
18896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18897  soname_spec='${libname}${release}${shared_ext}$major'
18898  shlibpath_var=LD_LIBRARY_PATH
18899  hardcode_into_libs=yes
18900  if test "$with_gnu_ld" = yes; then
18901    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18902    shlibpath_overrides_runpath=no
18903  else
18904    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18905    shlibpath_overrides_runpath=yes
18906    case $host_os in
18907      sco3.2v5*)
18908        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18909	;;
18910    esac
18911  fi
18912  sys_lib_dlsearch_path_spec='/usr/lib'
18913  ;;
18914
18915uts4*)
18916  version_type=linux
18917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918  soname_spec='${libname}${release}${shared_ext}$major'
18919  shlibpath_var=LD_LIBRARY_PATH
18920  ;;
18921
18922*)
18923  dynamic_linker=no
18924  ;;
18925esac
18926{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18927$as_echo "$dynamic_linker" >&6; }
18928test "$dynamic_linker" = no && can_build_shared=no
18929
18930if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18931  $as_echo_n "(cached) " >&6
18932else
18933  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18934fi
18935
18936sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18937if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18938  $as_echo_n "(cached) " >&6
18939else
18940  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18941fi
18942
18943sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18944
18945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18946if test "$GCC" = yes; then
18947  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18948fi
18949
18950{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18951$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18952hardcode_action_GCJ=
18953if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18954   test -n "$runpath_var_GCJ" || \
18955   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18956
18957  # We can hardcode non-existant directories.
18958  if test "$hardcode_direct_GCJ" != no &&
18959     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18960     # have to relink, otherwise we might link with an installed library
18961     # when we should be linking with a yet-to-be-installed one
18962     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18963     test "$hardcode_minus_L_GCJ" != no; then
18964    # Linking always hardcodes the temporary library directory.
18965    hardcode_action_GCJ=relink
18966  else
18967    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18968    hardcode_action_GCJ=immediate
18969  fi
18970else
18971  # We cannot hardcode anything, or else we can only hardcode existing
18972  # directories.
18973  hardcode_action_GCJ=unsupported
18974fi
18975{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18976$as_echo "$hardcode_action_GCJ" >&6; }
18977
18978if test "$hardcode_action_GCJ" = relink; then
18979  # Fast installation is not supported
18980  enable_fast_install=no
18981elif test "$shlibpath_overrides_runpath" = yes ||
18982     test "$enable_shared" = no; then
18983  # Fast installation is not necessary
18984  enable_fast_install=needless
18985fi
18986
18987
18988# The else clause should only fire when bootstrapping the
18989# libtool distribution, otherwise you forgot to ship ltmain.sh
18990# with your package, and you will get complaints that there are
18991# no rules to generate ltmain.sh.
18992if test -f "$ltmain"; then
18993  # See if we are running on zsh, and set the options which allow our commands through
18994  # without removal of \ escapes.
18995  if test -n "${ZSH_VERSION+set}" ; then
18996    setopt NO_GLOB_SUBST
18997  fi
18998  # Now quote all the things that may contain metacharacters while being
18999  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19000  # variables and quote the copies for generation of the libtool script.
19001  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19002    SED SHELL STRIP \
19003    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005    deplibs_check_method reload_flag reload_cmds need_locks \
19006    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007    lt_cv_sys_global_symbol_to_c_name_address \
19008    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009    old_postinstall_cmds old_postuninstall_cmds \
19010    compiler_GCJ \
19011    CC_GCJ \
19012    LD_GCJ \
19013    lt_prog_compiler_wl_GCJ \
19014    lt_prog_compiler_pic_GCJ \
19015    lt_prog_compiler_static_GCJ \
19016    lt_prog_compiler_no_builtin_flag_GCJ \
19017    export_dynamic_flag_spec_GCJ \
19018    thread_safe_flag_spec_GCJ \
19019    whole_archive_flag_spec_GCJ \
19020    enable_shared_with_static_runtimes_GCJ \
19021    old_archive_cmds_GCJ \
19022    old_archive_from_new_cmds_GCJ \
19023    predep_objects_GCJ \
19024    postdep_objects_GCJ \
19025    predeps_GCJ \
19026    postdeps_GCJ \
19027    compiler_lib_search_path_GCJ \
19028    compiler_lib_search_dirs_GCJ \
19029    archive_cmds_GCJ \
19030    archive_expsym_cmds_GCJ \
19031    postinstall_cmds_GCJ \
19032    postuninstall_cmds_GCJ \
19033    old_archive_from_expsyms_cmds_GCJ \
19034    allow_undefined_flag_GCJ \
19035    no_undefined_flag_GCJ \
19036    export_symbols_cmds_GCJ \
19037    hardcode_libdir_flag_spec_GCJ \
19038    hardcode_libdir_flag_spec_ld_GCJ \
19039    hardcode_libdir_separator_GCJ \
19040    hardcode_automatic_GCJ \
19041    module_cmds_GCJ \
19042    module_expsym_cmds_GCJ \
19043    lt_cv_prog_compiler_c_o_GCJ \
19044    fix_srcfile_path_GCJ \
19045    exclude_expsyms_GCJ \
19046    include_expsyms_GCJ; do
19047
19048    case $var in
19049    old_archive_cmds_GCJ | \
19050    old_archive_from_new_cmds_GCJ | \
19051    archive_cmds_GCJ | \
19052    archive_expsym_cmds_GCJ | \
19053    module_cmds_GCJ | \
19054    module_expsym_cmds_GCJ | \
19055    old_archive_from_expsyms_cmds_GCJ | \
19056    export_symbols_cmds_GCJ | \
19057    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19058    postinstall_cmds | postuninstall_cmds | \
19059    old_postinstall_cmds | old_postuninstall_cmds | \
19060    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19061      # Double-quote double-evaled strings.
19062      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19063      ;;
19064    *)
19065      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19066      ;;
19067    esac
19068  done
19069
19070  case $lt_echo in
19071  *'\$0 --fallback-echo"')
19072    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19073    ;;
19074  esac
19075
19076cfgfile="$ofile"
19077
19078  cat <<__EOF__ >> "$cfgfile"
19079# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19080
19081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19082
19083# Shell to use when invoking shell scripts.
19084SHELL=$lt_SHELL
19085
19086# Whether or not to build shared libraries.
19087build_libtool_libs=$enable_shared
19088
19089# Whether or not to build static libraries.
19090build_old_libs=$enable_static
19091
19092# Whether or not to add -lc for building shared libraries.
19093build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19094
19095# Whether or not to disallow shared libs when runtime libs are static
19096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19097
19098# Whether or not to optimize for fast installation.
19099fast_install=$enable_fast_install
19100
19101# The host system.
19102host_alias=$host_alias
19103host=$host
19104host_os=$host_os
19105
19106# The build system.
19107build_alias=$build_alias
19108build=$build
19109build_os=$build_os
19110
19111# An echo program that does not interpret backslashes.
19112echo=$lt_echo
19113
19114# The archiver.
19115AR=$lt_AR
19116AR_FLAGS=$lt_AR_FLAGS
19117
19118# A C compiler.
19119LTCC=$lt_LTCC
19120
19121# LTCC compiler flags.
19122LTCFLAGS=$lt_LTCFLAGS
19123
19124# A language-specific compiler.
19125CC=$lt_compiler_GCJ
19126
19127# Is the compiler the GNU C compiler?
19128with_gcc=$GCC_GCJ
19129
19130# An ERE matcher.
19131EGREP=$lt_EGREP
19132
19133# The linker used to build libraries.
19134LD=$lt_LD_GCJ
19135
19136# Whether we need hard or soft links.
19137LN_S=$lt_LN_S
19138
19139# A BSD-compatible nm program.
19140NM=$lt_NM
19141
19142# A symbol stripping program
19143STRIP=$lt_STRIP
19144
19145# Used to examine libraries when file_magic_cmd begins "file"
19146MAGIC_CMD=$MAGIC_CMD
19147
19148# Used on cygwin: DLL creation program.
19149DLLTOOL="$DLLTOOL"
19150
19151# Used on cygwin: object dumper.
19152OBJDUMP="$OBJDUMP"
19153
19154# Used on cygwin: assembler.
19155AS="$AS"
19156
19157# The name of the directory that contains temporary libtool files.
19158objdir=$objdir
19159
19160# How to create reloadable object files.
19161reload_flag=$lt_reload_flag
19162reload_cmds=$lt_reload_cmds
19163
19164# How to pass a linker flag through the compiler.
19165wl=$lt_lt_prog_compiler_wl_GCJ
19166
19167# Object file suffix (normally "o").
19168objext="$ac_objext"
19169
19170# Old archive suffix (normally "a").
19171libext="$libext"
19172
19173# Shared library suffix (normally ".so").
19174shrext_cmds='$shrext_cmds'
19175
19176# Executable file suffix (normally "").
19177exeext="$exeext"
19178
19179# Additional compiler flags for building library objects.
19180pic_flag=$lt_lt_prog_compiler_pic_GCJ
19181pic_mode=$pic_mode
19182
19183# What is the maximum length of a command?
19184max_cmd_len=$lt_cv_sys_max_cmd_len
19185
19186# Does compiler simultaneously support -c and -o options?
19187compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19188
19189# Must we lock files when doing compilation?
19190need_locks=$lt_need_locks
19191
19192# Do we need the lib prefix for modules?
19193need_lib_prefix=$need_lib_prefix
19194
19195# Do we need a version for libraries?
19196need_version=$need_version
19197
19198# Whether dlopen is supported.
19199dlopen_support=$enable_dlopen
19200
19201# Whether dlopen of programs is supported.
19202dlopen_self=$enable_dlopen_self
19203
19204# Whether dlopen of statically linked programs is supported.
19205dlopen_self_static=$enable_dlopen_self_static
19206
19207# Compiler flag to prevent dynamic linking.
19208link_static_flag=$lt_lt_prog_compiler_static_GCJ
19209
19210# Compiler flag to turn off builtin functions.
19211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19212
19213# Compiler flag to allow reflexive dlopens.
19214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19215
19216# Compiler flag to generate shared objects directly from archives.
19217whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19218
19219# Compiler flag to generate thread-safe objects.
19220thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19221
19222# Library versioning type.
19223version_type=$version_type
19224
19225# Format of library name prefix.
19226libname_spec=$lt_libname_spec
19227
19228# List of archive names.  First name is the real one, the rest are links.
19229# The last name is the one that the linker finds with -lNAME.
19230library_names_spec=$lt_library_names_spec
19231
19232# The coded name of the library, if different from the real name.
19233soname_spec=$lt_soname_spec
19234
19235# Commands used to build and install an old-style archive.
19236RANLIB=$lt_RANLIB
19237old_archive_cmds=$lt_old_archive_cmds_GCJ
19238old_postinstall_cmds=$lt_old_postinstall_cmds
19239old_postuninstall_cmds=$lt_old_postuninstall_cmds
19240
19241# Create an old-style archive from a shared archive.
19242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19243
19244# Create a temporary old-style archive to link instead of a shared archive.
19245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19246
19247# Commands used to build and install a shared archive.
19248archive_cmds=$lt_archive_cmds_GCJ
19249archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19250postinstall_cmds=$lt_postinstall_cmds
19251postuninstall_cmds=$lt_postuninstall_cmds
19252
19253# Commands used to build a loadable module (assumed same as above if empty)
19254module_cmds=$lt_module_cmds_GCJ
19255module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19256
19257# Commands to strip libraries.
19258old_striplib=$lt_old_striplib
19259striplib=$lt_striplib
19260
19261# Dependencies to place before the objects being linked to create a
19262# shared library.
19263predep_objects=$lt_predep_objects_GCJ
19264
19265# Dependencies to place after the objects being linked to create a
19266# shared library.
19267postdep_objects=$lt_postdep_objects_GCJ
19268
19269# Dependencies to place before the objects being linked to create a
19270# shared library.
19271predeps=$lt_predeps_GCJ
19272
19273# Dependencies to place after the objects being linked to create a
19274# shared library.
19275postdeps=$lt_postdeps_GCJ
19276
19277# The directories searched by this compiler when creating a shared
19278# library
19279compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19280
19281# The library search path used internally by the compiler when linking
19282# a shared library.
19283compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19284
19285# Method to check whether dependent libraries are shared objects.
19286deplibs_check_method=$lt_deplibs_check_method
19287
19288# Command to use when deplibs_check_method == file_magic.
19289file_magic_cmd=$lt_file_magic_cmd
19290
19291# Flag that allows shared libraries with undefined symbols to be built.
19292allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19293
19294# Flag that forces no undefined symbols.
19295no_undefined_flag=$lt_no_undefined_flag_GCJ
19296
19297# Commands used to finish a libtool library installation in a directory.
19298finish_cmds=$lt_finish_cmds
19299
19300# Same as above, but a single script fragment to be evaled but not shown.
19301finish_eval=$lt_finish_eval
19302
19303# Take the output of nm and produce a listing of raw symbols and C names.
19304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19305
19306# Transform the output of nm in a proper C declaration
19307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19308
19309# Transform the output of nm in a C name address pair
19310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19311
19312# This is the shared library runtime path variable.
19313runpath_var=$runpath_var
19314
19315# This is the shared library path variable.
19316shlibpath_var=$shlibpath_var
19317
19318# Is shlibpath searched before the hard-coded library search path?
19319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19320
19321# How to hardcode a shared library path into an executable.
19322hardcode_action=$hardcode_action_GCJ
19323
19324# Whether we should hardcode library paths into libraries.
19325hardcode_into_libs=$hardcode_into_libs
19326
19327# Flag to hardcode \$libdir into a binary during linking.
19328# This must work even if \$libdir does not exist.
19329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19330
19331# If ld is used when linking, flag to hardcode \$libdir into
19332# a binary during linking. This must work even if \$libdir does
19333# not exist.
19334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19335
19336# Whether we need a single -rpath flag with a separated argument.
19337hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19338
19339# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19340# resulting binary.
19341hardcode_direct=$hardcode_direct_GCJ
19342
19343# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19344# resulting binary.
19345hardcode_minus_L=$hardcode_minus_L_GCJ
19346
19347# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19348# the resulting binary.
19349hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19350
19351# Set to yes if building a shared library automatically hardcodes DIR into the library
19352# and all subsequent libraries and executables linked against it.
19353hardcode_automatic=$hardcode_automatic_GCJ
19354
19355# Variables whose values should be saved in libtool wrapper scripts and
19356# restored at relink time.
19357variables_saved_for_relink="$variables_saved_for_relink"
19358
19359# Whether libtool must link a program against all its dependency libraries.
19360link_all_deplibs=$link_all_deplibs_GCJ
19361
19362# Compile-time system search path for libraries
19363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19364
19365# Run-time system search path for libraries
19366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19367
19368# Fix the shell variable \$srcfile for the compiler.
19369fix_srcfile_path=$lt_fix_srcfile_path
19370
19371# Set to yes if exported symbols are required.
19372always_export_symbols=$always_export_symbols_GCJ
19373
19374# The commands to list exported symbols.
19375export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19376
19377# The commands to extract the exported symbol list from a shared archive.
19378extract_expsyms_cmds=$lt_extract_expsyms_cmds
19379
19380# Symbols that should not be listed in the preloaded symbols.
19381exclude_expsyms=$lt_exclude_expsyms_GCJ
19382
19383# Symbols that must always be exported.
19384include_expsyms=$lt_include_expsyms_GCJ
19385
19386# ### END LIBTOOL TAG CONFIG: $tagname
19387
19388__EOF__
19389
19390
19391else
19392  # If there is no Makefile yet, we rely on a make rule to execute
19393  # `config.status --recheck' to rerun these tests and create the
19394  # libtool script then.
19395  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19396  if test -f "$ltmain_in"; then
19397    test -f Makefile && make "$ltmain"
19398  fi
19399fi
19400
19401
19402ac_ext=c
19403ac_cpp='$CPP $CPPFLAGS'
19404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
19408CC="$lt_save_CC"
19409
19410	else
19411	  tagname=""
19412	fi
19413	;;
19414
19415      RC)
19416
19417
19418# Source file extension for RC test sources.
19419ac_ext=rc
19420
19421# Object file extension for compiled RC test sources.
19422objext=o
19423objext_RC=$objext
19424
19425# Code to be used in simple compile tests
19426lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19427
19428# Code to be used in simple link tests
19429lt_simple_link_test_code="$lt_simple_compile_test_code"
19430
19431# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19432
19433# If no C compiler was specified, use CC.
19434LTCC=${LTCC-"$CC"}
19435
19436# If no C compiler flags were specified, use CFLAGS.
19437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19438
19439# Allow CC to be a program name with arguments.
19440compiler=$CC
19441
19442
19443# save warnings/boilerplate of simple test code
19444ac_outfile=conftest.$ac_objext
19445echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19447_lt_compiler_boilerplate=`cat conftest.err`
19448$rm conftest*
19449
19450ac_outfile=conftest.$ac_objext
19451echo "$lt_simple_link_test_code" >conftest.$ac_ext
19452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19453_lt_linker_boilerplate=`cat conftest.err`
19454$rm -r conftest*
19455
19456
19457# Allow CC to be a program name with arguments.
19458lt_save_CC="$CC"
19459CC=${RC-"windres"}
19460compiler=$CC
19461compiler_RC=$CC
19462for cc_temp in $compiler""; do
19463  case $cc_temp in
19464    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19465    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19466    \-*) ;;
19467    *) break;;
19468  esac
19469done
19470cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19471
19472lt_cv_prog_compiler_c_o_RC=yes
19473
19474# The else clause should only fire when bootstrapping the
19475# libtool distribution, otherwise you forgot to ship ltmain.sh
19476# with your package, and you will get complaints that there are
19477# no rules to generate ltmain.sh.
19478if test -f "$ltmain"; then
19479  # See if we are running on zsh, and set the options which allow our commands through
19480  # without removal of \ escapes.
19481  if test -n "${ZSH_VERSION+set}" ; then
19482    setopt NO_GLOB_SUBST
19483  fi
19484  # Now quote all the things that may contain metacharacters while being
19485  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19486  # variables and quote the copies for generation of the libtool script.
19487  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19488    SED SHELL STRIP \
19489    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19490    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19491    deplibs_check_method reload_flag reload_cmds need_locks \
19492    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19493    lt_cv_sys_global_symbol_to_c_name_address \
19494    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19495    old_postinstall_cmds old_postuninstall_cmds \
19496    compiler_RC \
19497    CC_RC \
19498    LD_RC \
19499    lt_prog_compiler_wl_RC \
19500    lt_prog_compiler_pic_RC \
19501    lt_prog_compiler_static_RC \
19502    lt_prog_compiler_no_builtin_flag_RC \
19503    export_dynamic_flag_spec_RC \
19504    thread_safe_flag_spec_RC \
19505    whole_archive_flag_spec_RC \
19506    enable_shared_with_static_runtimes_RC \
19507    old_archive_cmds_RC \
19508    old_archive_from_new_cmds_RC \
19509    predep_objects_RC \
19510    postdep_objects_RC \
19511    predeps_RC \
19512    postdeps_RC \
19513    compiler_lib_search_path_RC \
19514    compiler_lib_search_dirs_RC \
19515    archive_cmds_RC \
19516    archive_expsym_cmds_RC \
19517    postinstall_cmds_RC \
19518    postuninstall_cmds_RC \
19519    old_archive_from_expsyms_cmds_RC \
19520    allow_undefined_flag_RC \
19521    no_undefined_flag_RC \
19522    export_symbols_cmds_RC \
19523    hardcode_libdir_flag_spec_RC \
19524    hardcode_libdir_flag_spec_ld_RC \
19525    hardcode_libdir_separator_RC \
19526    hardcode_automatic_RC \
19527    module_cmds_RC \
19528    module_expsym_cmds_RC \
19529    lt_cv_prog_compiler_c_o_RC \
19530    fix_srcfile_path_RC \
19531    exclude_expsyms_RC \
19532    include_expsyms_RC; do
19533
19534    case $var in
19535    old_archive_cmds_RC | \
19536    old_archive_from_new_cmds_RC | \
19537    archive_cmds_RC | \
19538    archive_expsym_cmds_RC | \
19539    module_cmds_RC | \
19540    module_expsym_cmds_RC | \
19541    old_archive_from_expsyms_cmds_RC | \
19542    export_symbols_cmds_RC | \
19543    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19544    postinstall_cmds | postuninstall_cmds | \
19545    old_postinstall_cmds | old_postuninstall_cmds | \
19546    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19547      # Double-quote double-evaled strings.
19548      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19549      ;;
19550    *)
19551      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19552      ;;
19553    esac
19554  done
19555
19556  case $lt_echo in
19557  *'\$0 --fallback-echo"')
19558    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19559    ;;
19560  esac
19561
19562cfgfile="$ofile"
19563
19564  cat <<__EOF__ >> "$cfgfile"
19565# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19566
19567# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19568
19569# Shell to use when invoking shell scripts.
19570SHELL=$lt_SHELL
19571
19572# Whether or not to build shared libraries.
19573build_libtool_libs=$enable_shared
19574
19575# Whether or not to build static libraries.
19576build_old_libs=$enable_static
19577
19578# Whether or not to add -lc for building shared libraries.
19579build_libtool_need_lc=$archive_cmds_need_lc_RC
19580
19581# Whether or not to disallow shared libs when runtime libs are static
19582allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19583
19584# Whether or not to optimize for fast installation.
19585fast_install=$enable_fast_install
19586
19587# The host system.
19588host_alias=$host_alias
19589host=$host
19590host_os=$host_os
19591
19592# The build system.
19593build_alias=$build_alias
19594build=$build
19595build_os=$build_os
19596
19597# An echo program that does not interpret backslashes.
19598echo=$lt_echo
19599
19600# The archiver.
19601AR=$lt_AR
19602AR_FLAGS=$lt_AR_FLAGS
19603
19604# A C compiler.
19605LTCC=$lt_LTCC
19606
19607# LTCC compiler flags.
19608LTCFLAGS=$lt_LTCFLAGS
19609
19610# A language-specific compiler.
19611CC=$lt_compiler_RC
19612
19613# Is the compiler the GNU C compiler?
19614with_gcc=$GCC_RC
19615
19616# An ERE matcher.
19617EGREP=$lt_EGREP
19618
19619# The linker used to build libraries.
19620LD=$lt_LD_RC
19621
19622# Whether we need hard or soft links.
19623LN_S=$lt_LN_S
19624
19625# A BSD-compatible nm program.
19626NM=$lt_NM
19627
19628# A symbol stripping program
19629STRIP=$lt_STRIP
19630
19631# Used to examine libraries when file_magic_cmd begins "file"
19632MAGIC_CMD=$MAGIC_CMD
19633
19634# Used on cygwin: DLL creation program.
19635DLLTOOL="$DLLTOOL"
19636
19637# Used on cygwin: object dumper.
19638OBJDUMP="$OBJDUMP"
19639
19640# Used on cygwin: assembler.
19641AS="$AS"
19642
19643# The name of the directory that contains temporary libtool files.
19644objdir=$objdir
19645
19646# How to create reloadable object files.
19647reload_flag=$lt_reload_flag
19648reload_cmds=$lt_reload_cmds
19649
19650# How to pass a linker flag through the compiler.
19651wl=$lt_lt_prog_compiler_wl_RC
19652
19653# Object file suffix (normally "o").
19654objext="$ac_objext"
19655
19656# Old archive suffix (normally "a").
19657libext="$libext"
19658
19659# Shared library suffix (normally ".so").
19660shrext_cmds='$shrext_cmds'
19661
19662# Executable file suffix (normally "").
19663exeext="$exeext"
19664
19665# Additional compiler flags for building library objects.
19666pic_flag=$lt_lt_prog_compiler_pic_RC
19667pic_mode=$pic_mode
19668
19669# What is the maximum length of a command?
19670max_cmd_len=$lt_cv_sys_max_cmd_len
19671
19672# Does compiler simultaneously support -c and -o options?
19673compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19674
19675# Must we lock files when doing compilation?
19676need_locks=$lt_need_locks
19677
19678# Do we need the lib prefix for modules?
19679need_lib_prefix=$need_lib_prefix
19680
19681# Do we need a version for libraries?
19682need_version=$need_version
19683
19684# Whether dlopen is supported.
19685dlopen_support=$enable_dlopen
19686
19687# Whether dlopen of programs is supported.
19688dlopen_self=$enable_dlopen_self
19689
19690# Whether dlopen of statically linked programs is supported.
19691dlopen_self_static=$enable_dlopen_self_static
19692
19693# Compiler flag to prevent dynamic linking.
19694link_static_flag=$lt_lt_prog_compiler_static_RC
19695
19696# Compiler flag to turn off builtin functions.
19697no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19698
19699# Compiler flag to allow reflexive dlopens.
19700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19701
19702# Compiler flag to generate shared objects directly from archives.
19703whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19704
19705# Compiler flag to generate thread-safe objects.
19706thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19707
19708# Library versioning type.
19709version_type=$version_type
19710
19711# Format of library name prefix.
19712libname_spec=$lt_libname_spec
19713
19714# List of archive names.  First name is the real one, the rest are links.
19715# The last name is the one that the linker finds with -lNAME.
19716library_names_spec=$lt_library_names_spec
19717
19718# The coded name of the library, if different from the real name.
19719soname_spec=$lt_soname_spec
19720
19721# Commands used to build and install an old-style archive.
19722RANLIB=$lt_RANLIB
19723old_archive_cmds=$lt_old_archive_cmds_RC
19724old_postinstall_cmds=$lt_old_postinstall_cmds
19725old_postuninstall_cmds=$lt_old_postuninstall_cmds
19726
19727# Create an old-style archive from a shared archive.
19728old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19729
19730# Create a temporary old-style archive to link instead of a shared archive.
19731old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19732
19733# Commands used to build and install a shared archive.
19734archive_cmds=$lt_archive_cmds_RC
19735archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19736postinstall_cmds=$lt_postinstall_cmds
19737postuninstall_cmds=$lt_postuninstall_cmds
19738
19739# Commands used to build a loadable module (assumed same as above if empty)
19740module_cmds=$lt_module_cmds_RC
19741module_expsym_cmds=$lt_module_expsym_cmds_RC
19742
19743# Commands to strip libraries.
19744old_striplib=$lt_old_striplib
19745striplib=$lt_striplib
19746
19747# Dependencies to place before the objects being linked to create a
19748# shared library.
19749predep_objects=$lt_predep_objects_RC
19750
19751# Dependencies to place after the objects being linked to create a
19752# shared library.
19753postdep_objects=$lt_postdep_objects_RC
19754
19755# Dependencies to place before the objects being linked to create a
19756# shared library.
19757predeps=$lt_predeps_RC
19758
19759# Dependencies to place after the objects being linked to create a
19760# shared library.
19761postdeps=$lt_postdeps_RC
19762
19763# The directories searched by this compiler when creating a shared
19764# library
19765compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19766
19767# The library search path used internally by the compiler when linking
19768# a shared library.
19769compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19770
19771# Method to check whether dependent libraries are shared objects.
19772deplibs_check_method=$lt_deplibs_check_method
19773
19774# Command to use when deplibs_check_method == file_magic.
19775file_magic_cmd=$lt_file_magic_cmd
19776
19777# Flag that allows shared libraries with undefined symbols to be built.
19778allow_undefined_flag=$lt_allow_undefined_flag_RC
19779
19780# Flag that forces no undefined symbols.
19781no_undefined_flag=$lt_no_undefined_flag_RC
19782
19783# Commands used to finish a libtool library installation in a directory.
19784finish_cmds=$lt_finish_cmds
19785
19786# Same as above, but a single script fragment to be evaled but not shown.
19787finish_eval=$lt_finish_eval
19788
19789# Take the output of nm and produce a listing of raw symbols and C names.
19790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19791
19792# Transform the output of nm in a proper C declaration
19793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19794
19795# Transform the output of nm in a C name address pair
19796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19797
19798# This is the shared library runtime path variable.
19799runpath_var=$runpath_var
19800
19801# This is the shared library path variable.
19802shlibpath_var=$shlibpath_var
19803
19804# Is shlibpath searched before the hard-coded library search path?
19805shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19806
19807# How to hardcode a shared library path into an executable.
19808hardcode_action=$hardcode_action_RC
19809
19810# Whether we should hardcode library paths into libraries.
19811hardcode_into_libs=$hardcode_into_libs
19812
19813# Flag to hardcode \$libdir into a binary during linking.
19814# This must work even if \$libdir does not exist.
19815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19816
19817# If ld is used when linking, flag to hardcode \$libdir into
19818# a binary during linking. This must work even if \$libdir does
19819# not exist.
19820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19821
19822# Whether we need a single -rpath flag with a separated argument.
19823hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19824
19825# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19826# resulting binary.
19827hardcode_direct=$hardcode_direct_RC
19828
19829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19830# resulting binary.
19831hardcode_minus_L=$hardcode_minus_L_RC
19832
19833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19834# the resulting binary.
19835hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19836
19837# Set to yes if building a shared library automatically hardcodes DIR into the library
19838# and all subsequent libraries and executables linked against it.
19839hardcode_automatic=$hardcode_automatic_RC
19840
19841# Variables whose values should be saved in libtool wrapper scripts and
19842# restored at relink time.
19843variables_saved_for_relink="$variables_saved_for_relink"
19844
19845# Whether libtool must link a program against all its dependency libraries.
19846link_all_deplibs=$link_all_deplibs_RC
19847
19848# Compile-time system search path for libraries
19849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19850
19851# Run-time system search path for libraries
19852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19853
19854# Fix the shell variable \$srcfile for the compiler.
19855fix_srcfile_path=$lt_fix_srcfile_path
19856
19857# Set to yes if exported symbols are required.
19858always_export_symbols=$always_export_symbols_RC
19859
19860# The commands to list exported symbols.
19861export_symbols_cmds=$lt_export_symbols_cmds_RC
19862
19863# The commands to extract the exported symbol list from a shared archive.
19864extract_expsyms_cmds=$lt_extract_expsyms_cmds
19865
19866# Symbols that should not be listed in the preloaded symbols.
19867exclude_expsyms=$lt_exclude_expsyms_RC
19868
19869# Symbols that must always be exported.
19870include_expsyms=$lt_include_expsyms_RC
19871
19872# ### END LIBTOOL TAG CONFIG: $tagname
19873
19874__EOF__
19875
19876
19877else
19878  # If there is no Makefile yet, we rely on a make rule to execute
19879  # `config.status --recheck' to rerun these tests and create the
19880  # libtool script then.
19881  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19882  if test -f "$ltmain_in"; then
19883    test -f Makefile && make "$ltmain"
19884  fi
19885fi
19886
19887
19888ac_ext=c
19889ac_cpp='$CPP $CPPFLAGS'
19890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
19894CC="$lt_save_CC"
19895
19896	;;
19897
19898      *)
19899	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19900$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19901   { (exit 1); exit 1; }; }
19902	;;
19903      esac
19904
19905      # Append the new tag name to the list of available tags.
19906      if test -n "$tagname" ; then
19907      available_tags="$available_tags $tagname"
19908    fi
19909    fi
19910  done
19911  IFS="$lt_save_ifs"
19912
19913  # Now substitute the updated list of available tags.
19914  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19915    mv "${ofile}T" "$ofile"
19916    chmod +x "$ofile"
19917  else
19918    rm -f "${ofile}T"
19919    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19920$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19921   { (exit 1); exit 1; }; }
19922  fi
19923fi
19924
19925
19926
19927# This can be used to rebuild libtool when needed
19928LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19929
19930# Always use our own libtool.
19931LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19932
19933# Prevent multiple expansion
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955# Checks for pkg-config packages
19956
19957
19958if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19959	if test -n "$ac_tool_prefix"; then
19960  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19961set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19963$as_echo_n "checking for $ac_word... " >&6; }
19964if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19965  $as_echo_n "(cached) " >&6
19966else
19967  case $PKG_CONFIG in
19968  [\\/]* | ?:[\\/]*)
19969  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19970  ;;
19971  *)
19972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19973for as_dir in $PATH
19974do
19975  IFS=$as_save_IFS
19976  test -z "$as_dir" && as_dir=.
19977  for ac_exec_ext in '' $ac_executable_extensions; do
19978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19979    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19980    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19981    break 2
19982  fi
19983done
19984done
19985IFS=$as_save_IFS
19986
19987  ;;
19988esac
19989fi
19990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19991if test -n "$PKG_CONFIG"; then
19992  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19993$as_echo "$PKG_CONFIG" >&6; }
19994else
19995  { $as_echo "$as_me:$LINENO: result: no" >&5
19996$as_echo "no" >&6; }
19997fi
19998
19999
20000fi
20001if test -z "$ac_cv_path_PKG_CONFIG"; then
20002  ac_pt_PKG_CONFIG=$PKG_CONFIG
20003  # Extract the first word of "pkg-config", so it can be a program name with args.
20004set dummy pkg-config; ac_word=$2
20005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20006$as_echo_n "checking for $ac_word... " >&6; }
20007if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20008  $as_echo_n "(cached) " >&6
20009else
20010  case $ac_pt_PKG_CONFIG in
20011  [\\/]* | ?:[\\/]*)
20012  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20013  ;;
20014  *)
20015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20016for as_dir in $PATH
20017do
20018  IFS=$as_save_IFS
20019  test -z "$as_dir" && as_dir=.
20020  for ac_exec_ext in '' $ac_executable_extensions; do
20021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20022    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20023    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20024    break 2
20025  fi
20026done
20027done
20028IFS=$as_save_IFS
20029
20030  ;;
20031esac
20032fi
20033ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20034if test -n "$ac_pt_PKG_CONFIG"; then
20035  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20036$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20037else
20038  { $as_echo "$as_me:$LINENO: result: no" >&5
20039$as_echo "no" >&6; }
20040fi
20041
20042  if test "x$ac_pt_PKG_CONFIG" = x; then
20043    PKG_CONFIG=""
20044  else
20045    case $cross_compiling:$ac_tool_warned in
20046yes:)
20047{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20049ac_tool_warned=yes ;;
20050esac
20051    PKG_CONFIG=$ac_pt_PKG_CONFIG
20052  fi
20053else
20054  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20055fi
20056
20057fi
20058if test -n "$PKG_CONFIG"; then
20059	_pkg_min_version=0.9.0
20060	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20061$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20062	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20063		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20064$as_echo "yes" >&6; }
20065	else
20066		{ $as_echo "$as_me:$LINENO: result: no" >&5
20067$as_echo "no" >&6; }
20068		PKG_CONFIG=""
20069	fi
20070
20071fi
20072
20073pkg_failed=no
20074{ $as_echo "$as_me:$LINENO: checking for XI" >&5
20075$as_echo_n "checking for XI... " >&6; }
20076
20077if test -n "$XI_CFLAGS"; then
20078    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
20079 elif test -n "$PKG_CONFIG"; then
20080    if test -n "$PKG_CONFIG" && \
20081    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.5\"") >&5
20082  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.5") 2>&5
20083  ac_status=$?
20084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085  (exit $ac_status); }; then
20086  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext inputproto >= 1.5" 2>/dev/null`
20087else
20088  pkg_failed=yes
20089fi
20090 else
20091    pkg_failed=untried
20092fi
20093if test -n "$XI_LIBS"; then
20094    pkg_cv_XI_LIBS="$XI_LIBS"
20095 elif test -n "$PKG_CONFIG"; then
20096    if test -n "$PKG_CONFIG" && \
20097    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.5\"") >&5
20098  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.5") 2>&5
20099  ac_status=$?
20100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101  (exit $ac_status); }; then
20102  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext inputproto >= 1.5" 2>/dev/null`
20103else
20104  pkg_failed=yes
20105fi
20106 else
20107    pkg_failed=untried
20108fi
20109
20110
20111
20112if test $pkg_failed = yes; then
20113
20114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20115        _pkg_short_errors_supported=yes
20116else
20117        _pkg_short_errors_supported=no
20118fi
20119        if test $_pkg_short_errors_supported = yes; then
20120	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext inputproto >= 1.5" 2>&1`
20121        else
20122	        XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext inputproto >= 1.5" 2>&1`
20123        fi
20124	# Put the nasty error message in config.log where it belongs
20125	echo "$XI_PKG_ERRORS" >&5
20126
20127	{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.5) were not met:
20128
20129$XI_PKG_ERRORS
20130
20131Consider adjusting the PKG_CONFIG_PATH environment variable if you
20132installed software in a non-standard prefix.
20133
20134Alternatively, you may set the environment variables XI_CFLAGS
20135and XI_LIBS to avoid the need to call pkg-config.
20136See the pkg-config man page for more details.
20137" >&5
20138$as_echo "$as_me: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.5) were not met:
20139
20140$XI_PKG_ERRORS
20141
20142Consider adjusting the PKG_CONFIG_PATH environment variable if you
20143installed software in a non-standard prefix.
20144
20145Alternatively, you may set the environment variables XI_CFLAGS
20146and XI_LIBS to avoid the need to call pkg-config.
20147See the pkg-config man page for more details.
20148" >&2;}
20149   { (exit 1); exit 1; }; }
20150elif test $pkg_failed = untried; then
20151	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20153{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20154is in your PATH or set the PKG_CONFIG environment variable to the full
20155path to pkg-config.
20156
20157Alternatively, you may set the environment variables XI_CFLAGS
20158and XI_LIBS to avoid the need to call pkg-config.
20159See the pkg-config man page for more details.
20160
20161To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20162See \`config.log' for more details." >&5
20163$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20164is in your PATH or set the PKG_CONFIG environment variable to the full
20165path to pkg-config.
20166
20167Alternatively, you may set the environment variables XI_CFLAGS
20168and XI_LIBS to avoid the need to call pkg-config.
20169See the pkg-config man page for more details.
20170
20171To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20172See \`config.log' for more details." >&2;}
20173   { (exit 1); exit 1; }; }; }
20174else
20175	XI_CFLAGS=$pkg_cv_XI_CFLAGS
20176	XI_LIBS=$pkg_cv_XI_LIBS
20177        { $as_echo "$as_me:$LINENO: result: yes" >&5
20178$as_echo "yes" >&6; }
20179	:
20180fi
20181
20182
20183
20184
20185# Check whether --enable-malloc0returnsnull was given.
20186if test "${enable_malloc0returnsnull+set}" = set; then
20187  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20188else
20189  MALLOC_ZERO_RETURNS_NULL=auto
20190fi
20191
20192
20193{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
20194$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
20195if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20196	if test "$cross_compiling" = yes; then
20197  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20199{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20200See \`config.log' for more details." >&5
20201$as_echo "$as_me: error: cannot run test program while cross compiling
20202See \`config.log' for more details." >&2;}
20203   { (exit 1); exit 1; }; }; }
20204else
20205  cat >conftest.$ac_ext <<_ACEOF
20206
20207char *malloc();
20208char *realloc();
20209char *calloc();
20210main() {
20211    char *m0, *r0, *c0, *p;
20212    m0 = malloc(0);
20213    p = malloc(10);
20214    r0 = realloc(p,0);
20215    c0 = calloc(0);
20216    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
20217}
20218_ACEOF
20219rm -f conftest$ac_exeext
20220if { (ac_try="$ac_link"
20221case "(($ac_try" in
20222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223  *) ac_try_echo=$ac_try;;
20224esac
20225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226$as_echo "$ac_try_echo") >&5
20227  (eval "$ac_link") 2>&5
20228  ac_status=$?
20229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231  { (case "(($ac_try" in
20232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233  *) ac_try_echo=$ac_try;;
20234esac
20235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20236$as_echo "$ac_try_echo") >&5
20237  (eval "$ac_try") 2>&5
20238  ac_status=$?
20239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240  (exit $ac_status); }; }; then
20241  MALLOC_ZERO_RETURNS_NULL=yes
20242else
20243  $as_echo "$as_me: program exited with status $ac_status" >&5
20244$as_echo "$as_me: failed program was:" >&5
20245sed 's/^/| /' conftest.$ac_ext >&5
20246
20247( exit $ac_status )
20248MALLOC_ZERO_RETURNS_NULL=no
20249fi
20250rm -rf conftest.dSYM
20251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20252fi
20253
20254
20255fi
20256{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20257$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20258
20259if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20260	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20261	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20262	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20263else
20264	MALLOC_ZERO_CFLAGS=""
20265	XMALLOC_ZERO_CFLAGS=""
20266	XTMALLOC_ZERO_CFLAGS=""
20267fi
20268
20269
20270
20271
20272
20273
20274
20275
20276if test x$APP_MAN_SUFFIX = x    ; then
20277    APP_MAN_SUFFIX=1
20278fi
20279if test x$APP_MAN_DIR = x    ; then
20280    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20281fi
20282
20283if test x$LIB_MAN_SUFFIX = x    ; then
20284    LIB_MAN_SUFFIX=3
20285fi
20286if test x$LIB_MAN_DIR = x    ; then
20287    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20288fi
20289
20290if test x$FILE_MAN_SUFFIX = x    ; then
20291    case $host_os in
20292	solaris*)	FILE_MAN_SUFFIX=4  ;;
20293	*)		FILE_MAN_SUFFIX=5  ;;
20294    esac
20295fi
20296if test x$FILE_MAN_DIR = x    ; then
20297    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20298fi
20299
20300if test x$MISC_MAN_SUFFIX = x    ; then
20301    case $host_os in
20302	solaris*)	MISC_MAN_SUFFIX=5  ;;
20303	*)		MISC_MAN_SUFFIX=7  ;;
20304    esac
20305fi
20306if test x$MISC_MAN_DIR = x    ; then
20307    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20308fi
20309
20310if test x$DRIVER_MAN_SUFFIX = x    ; then
20311    case $host_os in
20312	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20313	*)		DRIVER_MAN_SUFFIX=4  ;;
20314    esac
20315fi
20316if test x$DRIVER_MAN_DIR = x    ; then
20317    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20318fi
20319
20320if test x$ADMIN_MAN_SUFFIX = x    ; then
20321    case $host_os in
20322	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20323	*)		ADMIN_MAN_SUFFIX=8  ;;
20324    esac
20325fi
20326if test x$ADMIN_MAN_DIR = x    ; then
20327    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20328fi
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346# Check whether --with-release-version was given.
20347if test "${with_release_version+set}" = set; then
20348  withval=$with_release_version; RELEASE_VERSION="$withval"
20349else
20350  RELEASE_VERSION=""
20351fi
20352
20353	if test "x$RELEASE_VERSION" != "x"; then
20354		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20355		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20356		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20357$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20358	fi
20359
20360cat >>confdefs.h <<_ACEOF
20361#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20362_ACEOF
20363
20364	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20365	if test "x$PVM" = "x"; then
20366		PVM="0"
20367	fi
20368
20369cat >>confdefs.h <<_ACEOF
20370#define PACKAGE_VERSION_MINOR $PVM
20371_ACEOF
20372
20373	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20374	if test "x$PVP" = "x"; then
20375		PVP="0"
20376	fi
20377
20378cat >>confdefs.h <<_ACEOF
20379#define PACKAGE_VERSION_PATCHLEVEL $PVP
20380_ACEOF
20381
20382
20383
20384ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
20385
20386cat >confcache <<\_ACEOF
20387# This file is a shell script that caches the results of configure
20388# tests run on this system so they can be shared between configure
20389# scripts and configure runs, see configure's option --config-cache.
20390# It is not useful on other systems.  If it contains results you don't
20391# want to keep, you may remove or edit it.
20392#
20393# config.status only pays attention to the cache file if you give it
20394# the --recheck option to rerun configure.
20395#
20396# `ac_cv_env_foo' variables (set or unset) will be overridden when
20397# loading this file, other *unset* `ac_cv_foo' will be assigned the
20398# following values.
20399
20400_ACEOF
20401
20402# The following way of writing the cache mishandles newlines in values,
20403# but we know of no workaround that is simple, portable, and efficient.
20404# So, we kill variables containing newlines.
20405# Ultrix sh set writes to stderr and can't be redirected directly,
20406# and sets the high bit in the cache file unless we assign to the vars.
20407(
20408  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20409    eval ac_val=\$$ac_var
20410    case $ac_val in #(
20411    *${as_nl}*)
20412      case $ac_var in #(
20413      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20415      esac
20416      case $ac_var in #(
20417      _ | IFS | as_nl) ;; #(
20418      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20419      *) $as_unset $ac_var ;;
20420      esac ;;
20421    esac
20422  done
20423
20424  (set) 2>&1 |
20425    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20426    *${as_nl}ac_space=\ *)
20427      # `set' does not quote correctly, so add quotes (double-quote
20428      # substitution turns \\\\ into \\, and sed turns \\ into \).
20429      sed -n \
20430	"s/'/'\\\\''/g;
20431	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20432      ;; #(
20433    *)
20434      # `set' quotes correctly as required by POSIX, so do not add quotes.
20435      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20436      ;;
20437    esac |
20438    sort
20439) |
20440  sed '
20441     /^ac_cv_env_/b end
20442     t clear
20443     :clear
20444     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20445     t end
20446     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20447     :end' >>confcache
20448if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20449  if test -w "$cache_file"; then
20450    test "x$cache_file" != "x/dev/null" &&
20451      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20452$as_echo "$as_me: updating cache $cache_file" >&6;}
20453    cat confcache >$cache_file
20454  else
20455    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20456$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20457  fi
20458fi
20459rm -f confcache
20460
20461test "x$prefix" = xNONE && prefix=$ac_default_prefix
20462# Let make expand exec_prefix.
20463test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20464
20465DEFS=-DHAVE_CONFIG_H
20466
20467ac_libobjs=
20468ac_ltlibobjs=
20469for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20470  # 1. Remove the extension, and $U if already installed.
20471  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20472  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20473  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20474  #    will be set to the directory where LIBOBJS objects are built.
20475  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20476  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20477done
20478LIBOBJS=$ac_libobjs
20479
20480LTLIBOBJS=$ac_ltlibobjs
20481
20482
20483if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20484  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20485Usually this means the macro was only invoked conditionally." >&5
20486$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20487Usually this means the macro was only invoked conditionally." >&2;}
20488   { (exit 1); exit 1; }; }
20489fi
20490if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20491  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20492Usually this means the macro was only invoked conditionally." >&5
20493$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20494Usually this means the macro was only invoked conditionally." >&2;}
20495   { (exit 1); exit 1; }; }
20496fi
20497if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20498  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20499Usually this means the macro was only invoked conditionally." >&5
20500$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20501Usually this means the macro was only invoked conditionally." >&2;}
20502   { (exit 1); exit 1; }; }
20503fi
20504if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20505  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20506Usually this means the macro was only invoked conditionally." >&5
20507$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20508Usually this means the macro was only invoked conditionally." >&2;}
20509   { (exit 1); exit 1; }; }
20510fi
20511
20512: ${CONFIG_STATUS=./config.status}
20513ac_write_fail=0
20514ac_clean_files_save=$ac_clean_files
20515ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20516{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20517$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20518cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20519#! $SHELL
20520# Generated by $as_me.
20521# Run this file to recreate the current configuration.
20522# Compiler output produced by configure, useful for debugging
20523# configure, is in config.log if it exists.
20524
20525debug=false
20526ac_cs_recheck=false
20527ac_cs_silent=false
20528SHELL=\${CONFIG_SHELL-$SHELL}
20529_ACEOF
20530
20531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20532## --------------------- ##
20533## M4sh Initialization.  ##
20534## --------------------- ##
20535
20536# Be more Bourne compatible
20537DUALCASE=1; export DUALCASE # for MKS sh
20538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20539  emulate sh
20540  NULLCMD=:
20541  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20542  # is contrary to our usage.  Disable this feature.
20543  alias -g '${1+"$@"}'='"$@"'
20544  setopt NO_GLOB_SUBST
20545else
20546  case `(set -o) 2>/dev/null` in
20547  *posix*) set -o posix ;;
20548esac
20549
20550fi
20551
20552
20553
20554
20555# PATH needs CR
20556# Avoid depending upon Character Ranges.
20557as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20558as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20559as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20560as_cr_digits='0123456789'
20561as_cr_alnum=$as_cr_Letters$as_cr_digits
20562
20563as_nl='
20564'
20565export as_nl
20566# Printing a long string crashes Solaris 7 /usr/bin/printf.
20567as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20569as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20570if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20571  as_echo='printf %s\n'
20572  as_echo_n='printf %s'
20573else
20574  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20575    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20576    as_echo_n='/usr/ucb/echo -n'
20577  else
20578    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20579    as_echo_n_body='eval
20580      arg=$1;
20581      case $arg in
20582      *"$as_nl"*)
20583	expr "X$arg" : "X\\(.*\\)$as_nl";
20584	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20585      esac;
20586      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20587    '
20588    export as_echo_n_body
20589    as_echo_n='sh -c $as_echo_n_body as_echo'
20590  fi
20591  export as_echo_body
20592  as_echo='sh -c $as_echo_body as_echo'
20593fi
20594
20595# The user is always right.
20596if test "${PATH_SEPARATOR+set}" != set; then
20597  PATH_SEPARATOR=:
20598  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20599    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20600      PATH_SEPARATOR=';'
20601  }
20602fi
20603
20604# Support unset when possible.
20605if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20606  as_unset=unset
20607else
20608  as_unset=false
20609fi
20610
20611
20612# IFS
20613# We need space, tab and new line, in precisely that order.  Quoting is
20614# there to prevent editors from complaining about space-tab.
20615# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20616# splitting by setting IFS to empty value.)
20617IFS=" ""	$as_nl"
20618
20619# Find who we are.  Look in the path if we contain no directory separator.
20620case $0 in
20621  *[\\/]* ) as_myself=$0 ;;
20622  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20623for as_dir in $PATH
20624do
20625  IFS=$as_save_IFS
20626  test -z "$as_dir" && as_dir=.
20627  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20628done
20629IFS=$as_save_IFS
20630
20631     ;;
20632esac
20633# We did not find ourselves, most probably we were run as `sh COMMAND'
20634# in which case we are not to be found in the path.
20635if test "x$as_myself" = x; then
20636  as_myself=$0
20637fi
20638if test ! -f "$as_myself"; then
20639  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20640  { (exit 1); exit 1; }
20641fi
20642
20643# Work around bugs in pre-3.0 UWIN ksh.
20644for as_var in ENV MAIL MAILPATH
20645do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20646done
20647PS1='$ '
20648PS2='> '
20649PS4='+ '
20650
20651# NLS nuisances.
20652LC_ALL=C
20653export LC_ALL
20654LANGUAGE=C
20655export LANGUAGE
20656
20657# Required to use basename.
20658if expr a : '\(a\)' >/dev/null 2>&1 &&
20659   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20660  as_expr=expr
20661else
20662  as_expr=false
20663fi
20664
20665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20666  as_basename=basename
20667else
20668  as_basename=false
20669fi
20670
20671
20672# Name of the executable.
20673as_me=`$as_basename -- "$0" ||
20674$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20675	 X"$0" : 'X\(//\)$' \| \
20676	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20677$as_echo X/"$0" |
20678    sed '/^.*\/\([^/][^/]*\)\/*$/{
20679	    s//\1/
20680	    q
20681	  }
20682	  /^X\/\(\/\/\)$/{
20683	    s//\1/
20684	    q
20685	  }
20686	  /^X\/\(\/\).*/{
20687	    s//\1/
20688	    q
20689	  }
20690	  s/.*/./; q'`
20691
20692# CDPATH.
20693$as_unset CDPATH
20694
20695
20696
20697  as_lineno_1=$LINENO
20698  as_lineno_2=$LINENO
20699  test "x$as_lineno_1" != "x$as_lineno_2" &&
20700  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20701
20702  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20703  # uniformly replaced by the line number.  The first 'sed' inserts a
20704  # line-number line after each line using $LINENO; the second 'sed'
20705  # does the real work.  The second script uses 'N' to pair each
20706  # line-number line with the line containing $LINENO, and appends
20707  # trailing '-' during substitution so that $LINENO is not a special
20708  # case at line end.
20709  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20710  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20711  # E. McMahon (1931-1989) for sed's syntax.  :-)
20712  sed -n '
20713    p
20714    /[$]LINENO/=
20715  ' <$as_myself |
20716    sed '
20717      s/[$]LINENO.*/&-/
20718      t lineno
20719      b
20720      :lineno
20721      N
20722      :loop
20723      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20724      t loop
20725      s/-\n.*//
20726    ' >$as_me.lineno &&
20727  chmod +x "$as_me.lineno" ||
20728    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20729   { (exit 1); exit 1; }; }
20730
20731  # Don't try to exec as it changes $[0], causing all sort of problems
20732  # (the dirname of $[0] is not the place where we might find the
20733  # original and so on.  Autoconf is especially sensitive to this).
20734  . "./$as_me.lineno"
20735  # Exit status is that of the last command.
20736  exit
20737}
20738
20739
20740if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20741  as_dirname=dirname
20742else
20743  as_dirname=false
20744fi
20745
20746ECHO_C= ECHO_N= ECHO_T=
20747case `echo -n x` in
20748-n*)
20749  case `echo 'x\c'` in
20750  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20751  *)   ECHO_C='\c';;
20752  esac;;
20753*)
20754  ECHO_N='-n';;
20755esac
20756if expr a : '\(a\)' >/dev/null 2>&1 &&
20757   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20758  as_expr=expr
20759else
20760  as_expr=false
20761fi
20762
20763rm -f conf$$ conf$$.exe conf$$.file
20764if test -d conf$$.dir; then
20765  rm -f conf$$.dir/conf$$.file
20766else
20767  rm -f conf$$.dir
20768  mkdir conf$$.dir 2>/dev/null
20769fi
20770if (echo >conf$$.file) 2>/dev/null; then
20771  if ln -s conf$$.file conf$$ 2>/dev/null; then
20772    as_ln_s='ln -s'
20773    # ... but there are two gotchas:
20774    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20775    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20776    # In both cases, we have to default to `cp -p'.
20777    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20778      as_ln_s='cp -p'
20779  elif ln conf$$.file conf$$ 2>/dev/null; then
20780    as_ln_s=ln
20781  else
20782    as_ln_s='cp -p'
20783  fi
20784else
20785  as_ln_s='cp -p'
20786fi
20787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20788rmdir conf$$.dir 2>/dev/null
20789
20790if mkdir -p . 2>/dev/null; then
20791  as_mkdir_p=:
20792else
20793  test -d ./-p && rmdir ./-p
20794  as_mkdir_p=false
20795fi
20796
20797if test -x / >/dev/null 2>&1; then
20798  as_test_x='test -x'
20799else
20800  if ls -dL / >/dev/null 2>&1; then
20801    as_ls_L_option=L
20802  else
20803    as_ls_L_option=
20804  fi
20805  as_test_x='
20806    eval sh -c '\''
20807      if test -d "$1"; then
20808	test -d "$1/.";
20809      else
20810	case $1 in
20811	-*)set "./$1";;
20812	esac;
20813	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20814	???[sx]*):;;*)false;;esac;fi
20815    '\'' sh
20816  '
20817fi
20818as_executable_p=$as_test_x
20819
20820# Sed expression to map a string onto a valid CPP name.
20821as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20822
20823# Sed expression to map a string onto a valid variable name.
20824as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20825
20826
20827exec 6>&1
20828
20829# Save the log message, to keep $[0] and so on meaningful, and to
20830# report actual input values of CONFIG_FILES etc. instead of their
20831# values after options handling.
20832ac_log="
20833This file was extended by libXi $as_me 1.2.1, which was
20834generated by GNU Autoconf 2.63.  Invocation command line was
20835
20836  CONFIG_FILES    = $CONFIG_FILES
20837  CONFIG_HEADERS  = $CONFIG_HEADERS
20838  CONFIG_LINKS    = $CONFIG_LINKS
20839  CONFIG_COMMANDS = $CONFIG_COMMANDS
20840  $ $0 $@
20841
20842on `(hostname || uname -n) 2>/dev/null | sed 1q`
20843"
20844
20845_ACEOF
20846
20847case $ac_config_files in *"
20848"*) set x $ac_config_files; shift; ac_config_files=$*;;
20849esac
20850
20851case $ac_config_headers in *"
20852"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20853esac
20854
20855
20856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20857# Files that config.status was made for.
20858config_files="$ac_config_files"
20859config_headers="$ac_config_headers"
20860config_commands="$ac_config_commands"
20861
20862_ACEOF
20863
20864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20865ac_cs_usage="\
20866\`$as_me' instantiates files from templates according to the
20867current configuration.
20868
20869Usage: $0 [OPTION]... [FILE]...
20870
20871  -h, --help       print this help, then exit
20872  -V, --version    print version number and configuration settings, then exit
20873  -q, --quiet, --silent
20874                   do not print progress messages
20875  -d, --debug      don't remove temporary files
20876      --recheck    update $as_me by reconfiguring in the same conditions
20877      --file=FILE[:TEMPLATE]
20878                   instantiate the configuration file FILE
20879      --header=FILE[:TEMPLATE]
20880                   instantiate the configuration header FILE
20881
20882Configuration files:
20883$config_files
20884
20885Configuration headers:
20886$config_headers
20887
20888Configuration commands:
20889$config_commands
20890
20891Report bugs to <bug-autoconf@gnu.org>."
20892
20893_ACEOF
20894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20895ac_cs_version="\\
20896libXi config.status 1.2.1
20897configured by $0, generated by GNU Autoconf 2.63,
20898  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20899
20900Copyright (C) 2008 Free Software Foundation, Inc.
20901This config.status script is free software; the Free Software Foundation
20902gives unlimited permission to copy, distribute and modify it."
20903
20904ac_pwd='$ac_pwd'
20905srcdir='$srcdir'
20906INSTALL='$INSTALL'
20907MKDIR_P='$MKDIR_P'
20908AWK='$AWK'
20909test -n "\$AWK" || AWK=awk
20910_ACEOF
20911
20912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20913# The default lists apply if the user does not specify any file.
20914ac_need_defaults=:
20915while test $# != 0
20916do
20917  case $1 in
20918  --*=*)
20919    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20920    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20921    ac_shift=:
20922    ;;
20923  *)
20924    ac_option=$1
20925    ac_optarg=$2
20926    ac_shift=shift
20927    ;;
20928  esac
20929
20930  case $ac_option in
20931  # Handling of the options.
20932  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20933    ac_cs_recheck=: ;;
20934  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20935    $as_echo "$ac_cs_version"; exit ;;
20936  --debug | --debu | --deb | --de | --d | -d )
20937    debug=: ;;
20938  --file | --fil | --fi | --f )
20939    $ac_shift
20940    case $ac_optarg in
20941    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20942    esac
20943    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20944    ac_need_defaults=false;;
20945  --header | --heade | --head | --hea )
20946    $ac_shift
20947    case $ac_optarg in
20948    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20949    esac
20950    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20951    ac_need_defaults=false;;
20952  --he | --h)
20953    # Conflict between --help and --header
20954    { $as_echo "$as_me: error: ambiguous option: $1
20955Try \`$0 --help' for more information." >&2
20956   { (exit 1); exit 1; }; };;
20957  --help | --hel | -h )
20958    $as_echo "$ac_cs_usage"; exit ;;
20959  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20960  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20961    ac_cs_silent=: ;;
20962
20963  # This is an error.
20964  -*) { $as_echo "$as_me: error: unrecognized option: $1
20965Try \`$0 --help' for more information." >&2
20966   { (exit 1); exit 1; }; } ;;
20967
20968  *) ac_config_targets="$ac_config_targets $1"
20969     ac_need_defaults=false ;;
20970
20971  esac
20972  shift
20973done
20974
20975ac_configure_extra_args=
20976
20977if $ac_cs_silent; then
20978  exec 6>/dev/null
20979  ac_configure_extra_args="$ac_configure_extra_args --silent"
20980fi
20981
20982_ACEOF
20983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20984if \$ac_cs_recheck; then
20985  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20986  shift
20987  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20988  CONFIG_SHELL='$SHELL'
20989  export CONFIG_SHELL
20990  exec "\$@"
20991fi
20992
20993_ACEOF
20994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20995exec 5>>config.log
20996{
20997  echo
20998  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20999## Running $as_me. ##
21000_ASBOX
21001  $as_echo "$ac_log"
21002} >&5
21003
21004_ACEOF
21005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21006#
21007# INIT-COMMANDS
21008#
21009AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21010
21011_ACEOF
21012
21013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21014
21015# Handling of arguments.
21016for ac_config_target in $ac_config_targets
21017do
21018  case $ac_config_target in
21019    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21020    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21021    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21022    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21023    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21024    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
21025
21026  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21027$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21028   { (exit 1); exit 1; }; };;
21029  esac
21030done
21031
21032
21033# If the user did not use the arguments to specify the items to instantiate,
21034# then the envvar interface is used.  Set only those that are not.
21035# We use the long form for the default assignment because of an extremely
21036# bizarre bug on SunOS 4.1.3.
21037if $ac_need_defaults; then
21038  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21039  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21040  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21041fi
21042
21043# Have a temporary directory for convenience.  Make it in the build tree
21044# simply because there is no reason against having it here, and in addition,
21045# creating and moving files from /tmp can sometimes cause problems.
21046# Hook for its removal unless debugging.
21047# Note that there is a small window in which the directory will not be cleaned:
21048# after its creation but before its name has been assigned to `$tmp'.
21049$debug ||
21050{
21051  tmp=
21052  trap 'exit_status=$?
21053  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21054' 0
21055  trap '{ (exit 1); exit 1; }' 1 2 13 15
21056}
21057# Create a (secure) tmp directory for tmp files.
21058
21059{
21060  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21061  test -n "$tmp" && test -d "$tmp"
21062}  ||
21063{
21064  tmp=./conf$$-$RANDOM
21065  (umask 077 && mkdir "$tmp")
21066} ||
21067{
21068   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21069   { (exit 1); exit 1; }
21070}
21071
21072# Set up the scripts for CONFIG_FILES section.
21073# No need to generate them if there are no CONFIG_FILES.
21074# This happens for instance with `./config.status config.h'.
21075if test -n "$CONFIG_FILES"; then
21076
21077
21078ac_cr='
21079'
21080ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21081if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21082  ac_cs_awk_cr='\\r'
21083else
21084  ac_cs_awk_cr=$ac_cr
21085fi
21086
21087echo 'BEGIN {' >"$tmp/subs1.awk" &&
21088_ACEOF
21089
21090
21091{
21092  echo "cat >conf$$subs.awk <<_ACEOF" &&
21093  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21094  echo "_ACEOF"
21095} >conf$$subs.sh ||
21096  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21097$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21098   { (exit 1); exit 1; }; }
21099ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21100ac_delim='%!_!# '
21101for ac_last_try in false false false false false :; do
21102  . ./conf$$subs.sh ||
21103    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21104$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21105   { (exit 1); exit 1; }; }
21106
21107  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21108  if test $ac_delim_n = $ac_delim_num; then
21109    break
21110  elif $ac_last_try; then
21111    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21112$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21113   { (exit 1); exit 1; }; }
21114  else
21115    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21116  fi
21117done
21118rm -f conf$$subs.sh
21119
21120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21121cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21122_ACEOF
21123sed -n '
21124h
21125s/^/S["/; s/!.*/"]=/
21126p
21127g
21128s/^[^!]*!//
21129:repl
21130t repl
21131s/'"$ac_delim"'$//
21132t delim
21133:nl
21134h
21135s/\(.\{148\}\).*/\1/
21136t more1
21137s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21138p
21139n
21140b repl
21141:more1
21142s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21143p
21144g
21145s/.\{148\}//
21146t nl
21147:delim
21148h
21149s/\(.\{148\}\).*/\1/
21150t more2
21151s/["\\]/\\&/g; s/^/"/; s/$/"/
21152p
21153b
21154:more2
21155s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21156p
21157g
21158s/.\{148\}//
21159t delim
21160' <conf$$subs.awk | sed '
21161/^[^""]/{
21162  N
21163  s/\n//
21164}
21165' >>$CONFIG_STATUS || ac_write_fail=1
21166rm -f conf$$subs.awk
21167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21168_ACAWK
21169cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21170  for (key in S) S_is_set[key] = 1
21171  FS = ""
21172
21173}
21174{
21175  line = $ 0
21176  nfields = split(line, field, "@")
21177  substed = 0
21178  len = length(field[1])
21179  for (i = 2; i < nfields; i++) {
21180    key = field[i]
21181    keylen = length(key)
21182    if (S_is_set[key]) {
21183      value = S[key]
21184      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21185      len += length(value) + length(field[++i])
21186      substed = 1
21187    } else
21188      len += 1 + keylen
21189  }
21190
21191  print line
21192}
21193
21194_ACAWK
21195_ACEOF
21196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21197if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21198  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21199else
21200  cat
21201fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21202  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21203$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21204   { (exit 1); exit 1; }; }
21205_ACEOF
21206
21207# VPATH may cause trouble with some makes, so we remove $(srcdir),
21208# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21209# trailing colons and then remove the whole line if VPATH becomes empty
21210# (actually we leave an empty line to preserve line numbers).
21211if test "x$srcdir" = x.; then
21212  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21213s/:*\$(srcdir):*/:/
21214s/:*\${srcdir}:*/:/
21215s/:*@srcdir@:*/:/
21216s/^\([^=]*=[	 ]*\):*/\1/
21217s/:*$//
21218s/^[^=]*=[	 ]*$//
21219}'
21220fi
21221
21222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21223fi # test -n "$CONFIG_FILES"
21224
21225# Set up the scripts for CONFIG_HEADERS section.
21226# No need to generate them if there are no CONFIG_HEADERS.
21227# This happens for instance with `./config.status Makefile'.
21228if test -n "$CONFIG_HEADERS"; then
21229cat >"$tmp/defines.awk" <<\_ACAWK ||
21230BEGIN {
21231_ACEOF
21232
21233# Transform confdefs.h into an awk script `defines.awk', embedded as
21234# here-document in config.status, that substitutes the proper values into
21235# config.h.in to produce config.h.
21236
21237# Create a delimiter string that does not exist in confdefs.h, to ease
21238# handling of long lines.
21239ac_delim='%!_!# '
21240for ac_last_try in false false :; do
21241  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21242  if test -z "$ac_t"; then
21243    break
21244  elif $ac_last_try; then
21245    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21246$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21247   { (exit 1); exit 1; }; }
21248  else
21249    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21250  fi
21251done
21252
21253# For the awk script, D is an array of macro values keyed by name,
21254# likewise P contains macro parameters if any.  Preserve backslash
21255# newline sequences.
21256
21257ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21258sed -n '
21259s/.\{148\}/&'"$ac_delim"'/g
21260t rset
21261:rset
21262s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21263t def
21264d
21265:def
21266s/\\$//
21267t bsnl
21268s/["\\]/\\&/g
21269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21270D["\1"]=" \3"/p
21271s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21272d
21273:bsnl
21274s/["\\]/\\&/g
21275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21276D["\1"]=" \3\\\\\\n"\\/p
21277t cont
21278s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21279t cont
21280d
21281:cont
21282n
21283s/.\{148\}/&'"$ac_delim"'/g
21284t clear
21285:clear
21286s/\\$//
21287t bsnlc
21288s/["\\]/\\&/g; s/^/"/; s/$/"/p
21289d
21290:bsnlc
21291s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21292b cont
21293' <confdefs.h | sed '
21294s/'"$ac_delim"'/"\\\
21295"/g' >>$CONFIG_STATUS || ac_write_fail=1
21296
21297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21298  for (key in D) D_is_set[key] = 1
21299  FS = ""
21300}
21301/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21302  line = \$ 0
21303  split(line, arg, " ")
21304  if (arg[1] == "#") {
21305    defundef = arg[2]
21306    mac1 = arg[3]
21307  } else {
21308    defundef = substr(arg[1], 2)
21309    mac1 = arg[2]
21310  }
21311  split(mac1, mac2, "(") #)
21312  macro = mac2[1]
21313  prefix = substr(line, 1, index(line, defundef) - 1)
21314  if (D_is_set[macro]) {
21315    # Preserve the white space surrounding the "#".
21316    print prefix "define", macro P[macro] D[macro]
21317    next
21318  } else {
21319    # Replace #undef with comments.  This is necessary, for example,
21320    # in the case of _POSIX_SOURCE, which is predefined and required
21321    # on some systems where configure will not decide to define it.
21322    if (defundef == "undef") {
21323      print "/*", prefix defundef, macro, "*/"
21324      next
21325    }
21326  }
21327}
21328{ print }
21329_ACAWK
21330_ACEOF
21331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21332  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21333$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21334   { (exit 1); exit 1; }; }
21335fi # test -n "$CONFIG_HEADERS"
21336
21337
21338eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21339shift
21340for ac_tag
21341do
21342  case $ac_tag in
21343  :[FHLC]) ac_mode=$ac_tag; continue;;
21344  esac
21345  case $ac_mode$ac_tag in
21346  :[FHL]*:*);;
21347  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21348$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21349   { (exit 1); exit 1; }; };;
21350  :[FH]-) ac_tag=-:-;;
21351  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21352  esac
21353  ac_save_IFS=$IFS
21354  IFS=:
21355  set x $ac_tag
21356  IFS=$ac_save_IFS
21357  shift
21358  ac_file=$1
21359  shift
21360
21361  case $ac_mode in
21362  :L) ac_source=$1;;
21363  :[FH])
21364    ac_file_inputs=
21365    for ac_f
21366    do
21367      case $ac_f in
21368      -) ac_f="$tmp/stdin";;
21369      *) # Look for the file first in the build tree, then in the source tree
21370	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21371	 # because $ac_f cannot contain `:'.
21372	 test -f "$ac_f" ||
21373	   case $ac_f in
21374	   [\\/$]*) false;;
21375	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21376	   esac ||
21377	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21378$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21379   { (exit 1); exit 1; }; };;
21380      esac
21381      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21382      ac_file_inputs="$ac_file_inputs '$ac_f'"
21383    done
21384
21385    # Let's still pretend it is `configure' which instantiates (i.e., don't
21386    # use $as_me), people would be surprised to read:
21387    #    /* config.h.  Generated by config.status.  */
21388    configure_input='Generated from '`
21389	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21390	`' by configure.'
21391    if test x"$ac_file" != x-; then
21392      configure_input="$ac_file.  $configure_input"
21393      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21394$as_echo "$as_me: creating $ac_file" >&6;}
21395    fi
21396    # Neutralize special characters interpreted by sed in replacement strings.
21397    case $configure_input in #(
21398    *\&* | *\|* | *\\* )
21399       ac_sed_conf_input=`$as_echo "$configure_input" |
21400       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21401    *) ac_sed_conf_input=$configure_input;;
21402    esac
21403
21404    case $ac_tag in
21405    *:-:* | *:-) cat >"$tmp/stdin" \
21406      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21407$as_echo "$as_me: error: could not create $ac_file" >&2;}
21408   { (exit 1); exit 1; }; } ;;
21409    esac
21410    ;;
21411  esac
21412
21413  ac_dir=`$as_dirname -- "$ac_file" ||
21414$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21415	 X"$ac_file" : 'X\(//\)[^/]' \| \
21416	 X"$ac_file" : 'X\(//\)$' \| \
21417	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21418$as_echo X"$ac_file" |
21419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21420	    s//\1/
21421	    q
21422	  }
21423	  /^X\(\/\/\)[^/].*/{
21424	    s//\1/
21425	    q
21426	  }
21427	  /^X\(\/\/\)$/{
21428	    s//\1/
21429	    q
21430	  }
21431	  /^X\(\/\).*/{
21432	    s//\1/
21433	    q
21434	  }
21435	  s/.*/./; q'`
21436  { as_dir="$ac_dir"
21437  case $as_dir in #(
21438  -*) as_dir=./$as_dir;;
21439  esac
21440  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21441    as_dirs=
21442    while :; do
21443      case $as_dir in #(
21444      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21445      *) as_qdir=$as_dir;;
21446      esac
21447      as_dirs="'$as_qdir' $as_dirs"
21448      as_dir=`$as_dirname -- "$as_dir" ||
21449$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450	 X"$as_dir" : 'X\(//\)[^/]' \| \
21451	 X"$as_dir" : 'X\(//\)$' \| \
21452	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21453$as_echo X"$as_dir" |
21454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21455	    s//\1/
21456	    q
21457	  }
21458	  /^X\(\/\/\)[^/].*/{
21459	    s//\1/
21460	    q
21461	  }
21462	  /^X\(\/\/\)$/{
21463	    s//\1/
21464	    q
21465	  }
21466	  /^X\(\/\).*/{
21467	    s//\1/
21468	    q
21469	  }
21470	  s/.*/./; q'`
21471      test -d "$as_dir" && break
21472    done
21473    test -z "$as_dirs" || eval "mkdir $as_dirs"
21474  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21475$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21476   { (exit 1); exit 1; }; }; }
21477  ac_builddir=.
21478
21479case "$ac_dir" in
21480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21481*)
21482  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21483  # A ".." for each directory in $ac_dir_suffix.
21484  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21485  case $ac_top_builddir_sub in
21486  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21488  esac ;;
21489esac
21490ac_abs_top_builddir=$ac_pwd
21491ac_abs_builddir=$ac_pwd$ac_dir_suffix
21492# for backward compatibility:
21493ac_top_builddir=$ac_top_build_prefix
21494
21495case $srcdir in
21496  .)  # We are building in place.
21497    ac_srcdir=.
21498    ac_top_srcdir=$ac_top_builddir_sub
21499    ac_abs_top_srcdir=$ac_pwd ;;
21500  [\\/]* | ?:[\\/]* )  # Absolute name.
21501    ac_srcdir=$srcdir$ac_dir_suffix;
21502    ac_top_srcdir=$srcdir
21503    ac_abs_top_srcdir=$srcdir ;;
21504  *) # Relative name.
21505    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21506    ac_top_srcdir=$ac_top_build_prefix$srcdir
21507    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21508esac
21509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21510
21511
21512  case $ac_mode in
21513  :F)
21514  #
21515  # CONFIG_FILE
21516  #
21517
21518  case $INSTALL in
21519  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21520  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21521  esac
21522  ac_MKDIR_P=$MKDIR_P
21523  case $MKDIR_P in
21524  [\\/$]* | ?:[\\/]* ) ;;
21525  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21526  esac
21527_ACEOF
21528
21529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21530# If the template does not know about datarootdir, expand it.
21531# FIXME: This hack should be removed a few years after 2.60.
21532ac_datarootdir_hack=; ac_datarootdir_seen=
21533
21534ac_sed_dataroot='
21535/datarootdir/ {
21536  p
21537  q
21538}
21539/@datadir@/p
21540/@docdir@/p
21541/@infodir@/p
21542/@localedir@/p
21543/@mandir@/p
21544'
21545case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21546*datarootdir*) ac_datarootdir_seen=yes;;
21547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21548  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21549$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21550_ACEOF
21551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21552  ac_datarootdir_hack='
21553  s&@datadir@&$datadir&g
21554  s&@docdir@&$docdir&g
21555  s&@infodir@&$infodir&g
21556  s&@localedir@&$localedir&g
21557  s&@mandir@&$mandir&g
21558    s&\\\${datarootdir}&$datarootdir&g' ;;
21559esac
21560_ACEOF
21561
21562# Neutralize VPATH when `$srcdir' = `.'.
21563# Shell code in configure.ac might set extrasub.
21564# FIXME: do we really want to maintain this feature?
21565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21566ac_sed_extra="$ac_vpsub
21567$extrasub
21568_ACEOF
21569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21570:t
21571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21572s|@configure_input@|$ac_sed_conf_input|;t t
21573s&@top_builddir@&$ac_top_builddir_sub&;t t
21574s&@top_build_prefix@&$ac_top_build_prefix&;t t
21575s&@srcdir@&$ac_srcdir&;t t
21576s&@abs_srcdir@&$ac_abs_srcdir&;t t
21577s&@top_srcdir@&$ac_top_srcdir&;t t
21578s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21579s&@builddir@&$ac_builddir&;t t
21580s&@abs_builddir@&$ac_abs_builddir&;t t
21581s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21582s&@INSTALL@&$ac_INSTALL&;t t
21583s&@MKDIR_P@&$ac_MKDIR_P&;t t
21584$ac_datarootdir_hack
21585"
21586eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21587  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21588$as_echo "$as_me: error: could not create $ac_file" >&2;}
21589   { (exit 1); exit 1; }; }
21590
21591test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21592  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21593  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21594  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21595which seems to be undefined.  Please make sure it is defined." >&5
21596$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21597which seems to be undefined.  Please make sure it is defined." >&2;}
21598
21599  rm -f "$tmp/stdin"
21600  case $ac_file in
21601  -) cat "$tmp/out" && rm -f "$tmp/out";;
21602  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21603  esac \
21604  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21605$as_echo "$as_me: error: could not create $ac_file" >&2;}
21606   { (exit 1); exit 1; }; }
21607 ;;
21608  :H)
21609  #
21610  # CONFIG_HEADER
21611  #
21612  if test x"$ac_file" != x-; then
21613    {
21614      $as_echo "/* $configure_input  */" \
21615      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21616    } >"$tmp/config.h" \
21617      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21618$as_echo "$as_me: error: could not create $ac_file" >&2;}
21619   { (exit 1); exit 1; }; }
21620    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21621      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21622$as_echo "$as_me: $ac_file is unchanged" >&6;}
21623    else
21624      rm -f "$ac_file"
21625      mv "$tmp/config.h" "$ac_file" \
21626	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21627$as_echo "$as_me: error: could not create $ac_file" >&2;}
21628   { (exit 1); exit 1; }; }
21629    fi
21630  else
21631    $as_echo "/* $configure_input  */" \
21632      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21633      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21634$as_echo "$as_me: error: could not create -" >&2;}
21635   { (exit 1); exit 1; }; }
21636  fi
21637# Compute "$ac_file"'s index in $config_headers.
21638_am_arg="$ac_file"
21639_am_stamp_count=1
21640for _am_header in $config_headers :; do
21641  case $_am_header in
21642    $_am_arg | $_am_arg:* )
21643      break ;;
21644    * )
21645      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21646  esac
21647done
21648echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21649$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21651	 X"$_am_arg" : 'X\(//\)$' \| \
21652	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21653$as_echo X"$_am_arg" |
21654    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655	    s//\1/
21656	    q
21657	  }
21658	  /^X\(\/\/\)[^/].*/{
21659	    s//\1/
21660	    q
21661	  }
21662	  /^X\(\/\/\)$/{
21663	    s//\1/
21664	    q
21665	  }
21666	  /^X\(\/\).*/{
21667	    s//\1/
21668	    q
21669	  }
21670	  s/.*/./; q'`/stamp-h$_am_stamp_count
21671 ;;
21672
21673  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21674$as_echo "$as_me: executing $ac_file commands" >&6;}
21675 ;;
21676  esac
21677
21678
21679  case $ac_file$ac_mode in
21680    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21681  # Strip MF so we end up with the name of the file.
21682  mf=`echo "$mf" | sed -e 's/:.*$//'`
21683  # Check whether this is an Automake generated Makefile or not.
21684  # We used to match only the files named `Makefile.in', but
21685  # some people rename them; so instead we look at the file content.
21686  # Grep'ing the first line is not enough: some people post-process
21687  # each Makefile.in and add a new line on top of each file to say so.
21688  # Grep'ing the whole file is not good either: AIX grep has a line
21689  # limit of 2048, but all sed's we know have understand at least 4000.
21690  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21691    dirpart=`$as_dirname -- "$mf" ||
21692$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21693	 X"$mf" : 'X\(//\)[^/]' \| \
21694	 X"$mf" : 'X\(//\)$' \| \
21695	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21696$as_echo X"$mf" |
21697    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21698	    s//\1/
21699	    q
21700	  }
21701	  /^X\(\/\/\)[^/].*/{
21702	    s//\1/
21703	    q
21704	  }
21705	  /^X\(\/\/\)$/{
21706	    s//\1/
21707	    q
21708	  }
21709	  /^X\(\/\).*/{
21710	    s//\1/
21711	    q
21712	  }
21713	  s/.*/./; q'`
21714  else
21715    continue
21716  fi
21717  # Extract the definition of DEPDIR, am__include, and am__quote
21718  # from the Makefile without running `make'.
21719  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21720  test -z "$DEPDIR" && continue
21721  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21722  test -z "am__include" && continue
21723  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21724  # When using ansi2knr, U may be empty or an underscore; expand it
21725  U=`sed -n 's/^U = //p' < "$mf"`
21726  # Find all dependency output files, they are included files with
21727  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21728  # simplest approach to changing $(DEPDIR) to its actual value in the
21729  # expansion.
21730  for file in `sed -n "
21731    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21732       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21733    # Make sure the directory exists.
21734    test -f "$dirpart/$file" && continue
21735    fdir=`$as_dirname -- "$file" ||
21736$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737	 X"$file" : 'X\(//\)[^/]' \| \
21738	 X"$file" : 'X\(//\)$' \| \
21739	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21740$as_echo X"$file" |
21741    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21742	    s//\1/
21743	    q
21744	  }
21745	  /^X\(\/\/\)[^/].*/{
21746	    s//\1/
21747	    q
21748	  }
21749	  /^X\(\/\/\)$/{
21750	    s//\1/
21751	    q
21752	  }
21753	  /^X\(\/\).*/{
21754	    s//\1/
21755	    q
21756	  }
21757	  s/.*/./; q'`
21758    { as_dir=$dirpart/$fdir
21759  case $as_dir in #(
21760  -*) as_dir=./$as_dir;;
21761  esac
21762  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21763    as_dirs=
21764    while :; do
21765      case $as_dir in #(
21766      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21767      *) as_qdir=$as_dir;;
21768      esac
21769      as_dirs="'$as_qdir' $as_dirs"
21770      as_dir=`$as_dirname -- "$as_dir" ||
21771$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21772	 X"$as_dir" : 'X\(//\)[^/]' \| \
21773	 X"$as_dir" : 'X\(//\)$' \| \
21774	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21775$as_echo X"$as_dir" |
21776    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21777	    s//\1/
21778	    q
21779	  }
21780	  /^X\(\/\/\)[^/].*/{
21781	    s//\1/
21782	    q
21783	  }
21784	  /^X\(\/\/\)$/{
21785	    s//\1/
21786	    q
21787	  }
21788	  /^X\(\/\).*/{
21789	    s//\1/
21790	    q
21791	  }
21792	  s/.*/./; q'`
21793      test -d "$as_dir" && break
21794    done
21795    test -z "$as_dirs" || eval "mkdir $as_dirs"
21796  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21797$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21798   { (exit 1); exit 1; }; }; }
21799    # echo "creating $dirpart/$file"
21800    echo '# dummy' > "$dirpart/$file"
21801  done
21802done
21803 ;;
21804
21805  esac
21806done # for ac_tag
21807
21808
21809{ (exit 0); exit 0; }
21810_ACEOF
21811chmod +x $CONFIG_STATUS
21812ac_clean_files=$ac_clean_files_save
21813
21814test $ac_write_fail = 0 ||
21815  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21816$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21817   { (exit 1); exit 1; }; }
21818
21819
21820# configure is writing to config.log, and then calls config.status.
21821# config.status does its own redirection, appending to config.log.
21822# Unfortunately, on DOS this fails, as config.log is still kept open
21823# by configure, so config.status won't be able to write to it; its
21824# output is simply discarded.  So we exec the FD to /dev/null,
21825# effectively closing config.log, so it can be properly (re)opened and
21826# appended to by config.status.  When coming back to configure, we
21827# need to make the FD available again.
21828if test "$no_create" != yes; then
21829  ac_cs_success=:
21830  ac_config_status_args=
21831  test "$silent" = yes &&
21832    ac_config_status_args="$ac_config_status_args --quiet"
21833  exec 5>/dev/null
21834  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21835  exec 5>>config.log
21836  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21837  # would make configure fail if this is the last instruction.
21838  $ac_cs_success || { (exit 1); exit 1; }
21839fi
21840if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21841  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21842$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21843fi
21844
21845
21846