configure revision 52b01e16
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXcomposite 0.4.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='libXcomposite'
752PACKAGE_TARNAME='libXcomposite'
753PACKAGE_VERSION='0.4.1'
754PACKAGE_STRING='libXcomposite 0.4.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='am__EXEEXT_FALSE
794am__EXEEXT_TRUE
795LTLIBOBJS
796LIBOBJS
797XCOMPOSITE_LIBS
798XCOMPOSITE_CFLAGS
799PKG_CONFIG
800COMPOSITEEXT_VERSION
801HAVE_XMLTO_FALSE
802HAVE_XMLTO_TRUE
803XMLTO
804ADMIN_MAN_DIR
805DRIVER_MAN_DIR
806MISC_MAN_DIR
807FILE_MAN_DIR
808LIB_MAN_DIR
809APP_MAN_DIR
810ADMIN_MAN_SUFFIX
811DRIVER_MAN_SUFFIX
812MISC_MAN_SUFFIX
813FILE_MAN_SUFFIX
814LIB_MAN_SUFFIX
815APP_MAN_SUFFIX
816distcleancheck_listfiles
817CHANGELOG_CMD
818AM_BACKSLASH
819AM_DEFAULT_VERBOSITY
820CWARNFLAGS
821LIBTOOL
822ac_ct_F77
823FFLAGS
824F77
825CXXCPP
826am__fastdepCXX_FALSE
827am__fastdepCXX_TRUE
828CXXDEPMODE
829ac_ct_CXX
830CXXFLAGS
831CXX
832CPP
833NMEDIT
834DSYMUTIL
835RANLIB
836AR
837ECHO
838LN_S
839EGREP
840GREP
841SED
842host_os
843host_vendor
844host_cpu
845host
846build_os
847build_vendor
848build_cpu
849build
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853AMDEPBACKSLASH
854AMDEP_FALSE
855AMDEP_TRUE
856am__quote
857am__include
858DEPDIR
859OBJEXT
860EXEEXT
861ac_ct_CC
862CPPFLAGS
863LDFLAGS
864CFLAGS
865CC
866MAINT
867MAINTAINER_MODE_FALSE
868MAINTAINER_MODE_TRUE
869am__untar
870am__tar
871AMTAR
872am__leading_dot
873SET_MAKE
874AWK
875mkdir_p
876MKDIR_P
877INSTALL_STRIP_PROGRAM
878STRIP
879install_sh
880MAKEINFO
881AUTOHEADER
882AUTOMAKE
883AUTOCONF
884ACLOCAL
885VERSION
886PACKAGE
887CYGPATH_W
888am__isrc
889INSTALL_DATA
890INSTALL_SCRIPT
891INSTALL_PROGRAM
892target_alias
893host_alias
894build_alias
895LIBS
896ECHO_T
897ECHO_N
898ECHO_C
899DEFS
900mandir
901localedir
902libdir
903psdir
904pdfdir
905dvidir
906htmldir
907infodir
908docdir
909oldincludedir
910includedir
911localstatedir
912sharedstatedir
913sysconfdir
914datadir
915datarootdir
916libexecdir
917sbindir
918bindir
919program_transform_name
920prefix
921exec_prefix
922PACKAGE_BUGREPORT
923PACKAGE_STRING
924PACKAGE_VERSION
925PACKAGE_TARNAME
926PACKAGE_NAME
927PATH_SEPARATOR
928SHELL'
929ac_subst_files=''
930ac_user_opts='
931enable_option_checking
932enable_maintainer_mode
933enable_dependency_tracking
934enable_shared
935enable_static
936enable_fast_install
937with_gnu_ld
938enable_libtool_lock
939with_pic
940with_tags
941enable_silent_rules
942enable_strict_compilation
943with_release_version
944'
945      ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CPP
954CXX
955CXXFLAGS
956CCC
957CXXCPP
958F77
959FFLAGS
960XMLTO
961PKG_CONFIG
962XCOMPOSITE_CFLAGS
963XCOMPOSITE_LIBS'
964
965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969ac_unrecognized_opts=
970ac_unrecognized_sep=
971# The variables have the same names as the options, with
972# dashes changed to underlines.
973cache_file=/dev/null
974exec_prefix=NONE
975no_create=
976no_recursion=
977prefix=NONE
978program_prefix=NONE
979program_suffix=NONE
980program_transform_name=s,x,x,
981silent=
982site=
983srcdir=
984verbose=
985x_includes=NONE
986x_libraries=NONE
987
988# Installation directory options.
989# These are left unexpanded so users can "make install exec_prefix=/foo"
990# and all the variables that are supposed to be based on exec_prefix
991# by default will actually change.
992# Use braces instead of parens because sh, perl, etc. also accept them.
993# (The list follows the same order as the GNU Coding Standards.)
994bindir='${exec_prefix}/bin'
995sbindir='${exec_prefix}/sbin'
996libexecdir='${exec_prefix}/libexec'
997datarootdir='${prefix}/share'
998datadir='${datarootdir}'
999sysconfdir='${prefix}/etc'
1000sharedstatedir='${prefix}/com'
1001localstatedir='${prefix}/var'
1002includedir='${prefix}/include'
1003oldincludedir='/usr/include'
1004docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005infodir='${datarootdir}/info'
1006htmldir='${docdir}'
1007dvidir='${docdir}'
1008pdfdir='${docdir}'
1009psdir='${docdir}'
1010libdir='${exec_prefix}/lib'
1011localedir='${datarootdir}/locale'
1012mandir='${datarootdir}/man'
1013
1014ac_prev=
1015ac_dashdash=
1016for ac_option
1017do
1018  # If the previous option needs an argument, assign it.
1019  if test -n "$ac_prev"; then
1020    eval $ac_prev=\$ac_option
1021    ac_prev=
1022    continue
1023  fi
1024
1025  case $ac_option in
1026  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027  *)	ac_optarg=yes ;;
1028  esac
1029
1030  # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032  case $ac_dashdash$ac_option in
1033  --)
1034    ac_dashdash=yes ;;
1035
1036  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037    ac_prev=bindir ;;
1038  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039    bindir=$ac_optarg ;;
1040
1041  -build | --build | --buil | --bui | --bu)
1042    ac_prev=build_alias ;;
1043  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044    build_alias=$ac_optarg ;;
1045
1046  -cache-file | --cache-file | --cache-fil | --cache-fi \
1047  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048    ac_prev=cache_file ;;
1049  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051    cache_file=$ac_optarg ;;
1052
1053  --config-cache | -C)
1054    cache_file=config.cache ;;
1055
1056  -datadir | --datadir | --datadi | --datad)
1057    ac_prev=datadir ;;
1058  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059    datadir=$ac_optarg ;;
1060
1061  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062  | --dataroo | --dataro | --datar)
1063    ac_prev=datarootdir ;;
1064  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066    datarootdir=$ac_optarg ;;
1067
1068  -disable-* | --disable-*)
1069    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1073   { (exit 1); exit 1; }; }
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"enable_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval enable_$ac_useropt=no ;;
1084
1085  -docdir | --docdir | --docdi | --doc | --do)
1086    ac_prev=docdir ;;
1087  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088    docdir=$ac_optarg ;;
1089
1090  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091    ac_prev=dvidir ;;
1092  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093    dvidir=$ac_optarg ;;
1094
1095  -enable-* | --enable-*)
1096    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097    # Reject names that are not valid shell variable names.
1098    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1100   { (exit 1); exit 1; }; }
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"enable_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114  | --exec | --exe | --ex)
1115    ac_prev=exec_prefix ;;
1116  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118  | --exec=* | --exe=* | --ex=*)
1119    exec_prefix=$ac_optarg ;;
1120
1121  -gas | --gas | --ga | --g)
1122    # Obsolete; use --with-gas.
1123    with_gas=yes ;;
1124
1125  -help | --help | --hel | --he | -h)
1126    ac_init_help=long ;;
1127  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128    ac_init_help=recursive ;;
1129  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130    ac_init_help=short ;;
1131
1132  -host | --host | --hos | --ho)
1133    ac_prev=host_alias ;;
1134  -host=* | --host=* | --hos=* | --ho=*)
1135    host_alias=$ac_optarg ;;
1136
1137  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138    ac_prev=htmldir ;;
1139  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140  | --ht=*)
1141    htmldir=$ac_optarg ;;
1142
1143  -includedir | --includedir | --includedi | --included | --include \
1144  | --includ | --inclu | --incl | --inc)
1145    ac_prev=includedir ;;
1146  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147  | --includ=* | --inclu=* | --incl=* | --inc=*)
1148    includedir=$ac_optarg ;;
1149
1150  -infodir | --infodir | --infodi | --infod | --info | --inf)
1151    ac_prev=infodir ;;
1152  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153    infodir=$ac_optarg ;;
1154
1155  -libdir | --libdir | --libdi | --libd)
1156    ac_prev=libdir ;;
1157  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158    libdir=$ac_optarg ;;
1159
1160  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161  | --libexe | --libex | --libe)
1162    ac_prev=libexecdir ;;
1163  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164  | --libexe=* | --libex=* | --libe=*)
1165    libexecdir=$ac_optarg ;;
1166
1167  -localedir | --localedir | --localedi | --localed | --locale)
1168    ac_prev=localedir ;;
1169  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170    localedir=$ac_optarg ;;
1171
1172  -localstatedir | --localstatedir | --localstatedi | --localstated \
1173  | --localstate | --localstat | --localsta | --localst | --locals)
1174    ac_prev=localstatedir ;;
1175  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177    localstatedir=$ac_optarg ;;
1178
1179  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180    ac_prev=mandir ;;
1181  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182    mandir=$ac_optarg ;;
1183
1184  -nfp | --nfp | --nf)
1185    # Obsolete; use --without-fp.
1186    with_fp=no ;;
1187
1188  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189  | --no-cr | --no-c | -n)
1190    no_create=yes ;;
1191
1192  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194    no_recursion=yes ;;
1195
1196  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198  | --oldin | --oldi | --old | --ol | --o)
1199    ac_prev=oldincludedir ;;
1200  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203    oldincludedir=$ac_optarg ;;
1204
1205  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206    ac_prev=prefix ;;
1207  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208    prefix=$ac_optarg ;;
1209
1210  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211  | --program-pre | --program-pr | --program-p)
1212    ac_prev=program_prefix ;;
1213  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215    program_prefix=$ac_optarg ;;
1216
1217  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218  | --program-suf | --program-su | --program-s)
1219    ac_prev=program_suffix ;;
1220  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222    program_suffix=$ac_optarg ;;
1223
1224  -program-transform-name | --program-transform-name \
1225  | --program-transform-nam | --program-transform-na \
1226  | --program-transform-n | --program-transform- \
1227  | --program-transform | --program-transfor \
1228  | --program-transfo | --program-transf \
1229  | --program-trans | --program-tran \
1230  | --progr-tra | --program-tr | --program-t)
1231    ac_prev=program_transform_name ;;
1232  -program-transform-name=* | --program-transform-name=* \
1233  | --program-transform-nam=* | --program-transform-na=* \
1234  | --program-transform-n=* | --program-transform-=* \
1235  | --program-transform=* | --program-transfor=* \
1236  | --program-transfo=* | --program-transf=* \
1237  | --program-trans=* | --program-tran=* \
1238  | --progr-tra=* | --program-tr=* | --program-t=*)
1239    program_transform_name=$ac_optarg ;;
1240
1241  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242    ac_prev=pdfdir ;;
1243  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244    pdfdir=$ac_optarg ;;
1245
1246  -psdir | --psdir | --psdi | --psd | --ps)
1247    ac_prev=psdir ;;
1248  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249    psdir=$ac_optarg ;;
1250
1251  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252  | -silent | --silent | --silen | --sile | --sil)
1253    silent=yes ;;
1254
1255  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1256    ac_prev=sbindir ;;
1257  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1258  | --sbi=* | --sb=*)
1259    sbindir=$ac_optarg ;;
1260
1261  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1262  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1263  | --sharedst | --shareds | --shared | --share | --shar \
1264  | --sha | --sh)
1265    ac_prev=sharedstatedir ;;
1266  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1267  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1268  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1269  | --sha=* | --sh=*)
1270    sharedstatedir=$ac_optarg ;;
1271
1272  -site | --site | --sit)
1273    ac_prev=site ;;
1274  -site=* | --site=* | --sit=*)
1275    site=$ac_optarg ;;
1276
1277  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1278    ac_prev=srcdir ;;
1279  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1280    srcdir=$ac_optarg ;;
1281
1282  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1283  | --syscon | --sysco | --sysc | --sys | --sy)
1284    ac_prev=sysconfdir ;;
1285  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1286  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1287    sysconfdir=$ac_optarg ;;
1288
1289  -target | --target | --targe | --targ | --tar | --ta | --t)
1290    ac_prev=target_alias ;;
1291  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1292    target_alias=$ac_optarg ;;
1293
1294  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295    verbose=yes ;;
1296
1297  -version | --version | --versio | --versi | --vers | -V)
1298    ac_init_version=: ;;
1299
1300  -with-* | --with-*)
1301    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1305   { (exit 1); exit 1; }; }
1306    ac_useropt_orig=$ac_useropt
1307    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308    case $ac_user_opts in
1309      *"
1310"with_$ac_useropt"
1311"*) ;;
1312      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313	 ac_unrecognized_sep=', ';;
1314    esac
1315    eval with_$ac_useropt=\$ac_optarg ;;
1316
1317  -without-* | --without-*)
1318    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319    # Reject names that are not valid shell variable names.
1320    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1322   { (exit 1); exit 1; }; }
1323    ac_useropt_orig=$ac_useropt
1324    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325    case $ac_user_opts in
1326      *"
1327"with_$ac_useropt"
1328"*) ;;
1329      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1330	 ac_unrecognized_sep=', ';;
1331    esac
1332    eval with_$ac_useropt=no ;;
1333
1334  --x)
1335    # Obsolete; use --with-x.
1336    with_x=yes ;;
1337
1338  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339  | --x-incl | --x-inc | --x-in | --x-i)
1340    ac_prev=x_includes ;;
1341  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343    x_includes=$ac_optarg ;;
1344
1345  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347    ac_prev=x_libraries ;;
1348  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350    x_libraries=$ac_optarg ;;
1351
1352  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1353Try \`$0 --help' for more information." >&2
1354   { (exit 1); exit 1; }; }
1355    ;;
1356
1357  *=*)
1358    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359    # Reject names that are not valid shell variable names.
1360    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1361      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1362   { (exit 1); exit 1; }; }
1363    eval $ac_envvar=\$ac_optarg
1364    export $ac_envvar ;;
1365
1366  *)
1367    # FIXME: should be removed in autoconf 3.0.
1368    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1372    ;;
1373
1374  esac
1375done
1376
1377if test -n "$ac_prev"; then
1378  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1380   { (exit 1); exit 1; }; }
1381fi
1382
1383if test -n "$ac_unrecognized_opts"; then
1384  case $enable_option_checking in
1385    no) ;;
1386    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1387   { (exit 1); exit 1; }; } ;;
1388    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389  esac
1390fi
1391
1392# Check all directory arguments for consistency.
1393for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394		datadir sysconfdir sharedstatedir localstatedir includedir \
1395		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396		libdir localedir mandir
1397do
1398  eval ac_val=\$$ac_var
1399  # Remove trailing slashes.
1400  case $ac_val in
1401    */ )
1402      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403      eval $ac_var=\$ac_val;;
1404  esac
1405  # Be sure to have absolute directory names.
1406  case $ac_val in
1407    [\\/$]* | ?:[\\/]* )  continue;;
1408    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409  esac
1410  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1411   { (exit 1); exit 1; }; }
1412done
1413
1414# There might be people who depend on the old broken behavior: `$host'
1415# used to hold the argument of --host etc.
1416# FIXME: To remove some day.
1417build=$build_alias
1418host=$host_alias
1419target=$target_alias
1420
1421# FIXME: To remove some day.
1422if test "x$host_alias" != x; then
1423  if test "x$build_alias" = x; then
1424    cross_compiling=maybe
1425    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426    If a cross compiler is detected then cross compile mode will be used." >&2
1427  elif test "x$build_alias" != "x$host_alias"; then
1428    cross_compiling=yes
1429  fi
1430fi
1431
1432ac_tool_prefix=
1433test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435test "$silent" = yes && exec 6>/dev/null
1436
1437
1438ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439ac_ls_di=`ls -di .` &&
1440ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1442   { (exit 1); exit 1; }; }
1443test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1445   { (exit 1); exit 1; }; }
1446
1447
1448# Find the source files, if location was not specified.
1449if test -z "$srcdir"; then
1450  ac_srcdir_defaulted=yes
1451  # Try the directory containing this script, then the parent directory.
1452  ac_confdir=`$as_dirname -- "$as_myself" ||
1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454	 X"$as_myself" : 'X\(//\)[^/]' \| \
1455	 X"$as_myself" : 'X\(//\)$' \| \
1456	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457$as_echo X"$as_myself" |
1458    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459	    s//\1/
1460	    q
1461	  }
1462	  /^X\(\/\/\)[^/].*/{
1463	    s//\1/
1464	    q
1465	  }
1466	  /^X\(\/\/\)$/{
1467	    s//\1/
1468	    q
1469	  }
1470	  /^X\(\/\).*/{
1471	    s//\1/
1472	    q
1473	  }
1474	  s/.*/./; q'`
1475  srcdir=$ac_confdir
1476  if test ! -r "$srcdir/$ac_unique_file"; then
1477    srcdir=..
1478  fi
1479else
1480  ac_srcdir_defaulted=no
1481fi
1482if test ! -r "$srcdir/$ac_unique_file"; then
1483  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1485   { (exit 1); exit 1; }; }
1486fi
1487ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488ac_abs_confdir=`(
1489	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1490   { (exit 1); exit 1; }; }
1491	pwd)`
1492# When building in place, set srcdir=.
1493if test "$ac_abs_confdir" = "$ac_pwd"; then
1494  srcdir=.
1495fi
1496# Remove unnecessary trailing slashes from srcdir.
1497# Double slashes in file names in object file debugging info
1498# mess up M-x gdb in Emacs.
1499case $srcdir in
1500*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501esac
1502for ac_var in $ac_precious_vars; do
1503  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504  eval ac_env_${ac_var}_value=\$${ac_var}
1505  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507done
1508
1509#
1510# Report the --help message.
1511#
1512if test "$ac_init_help" = "long"; then
1513  # Omit some internal or obsolete options to make the list less imposing.
1514  # This message is too long to be a string in the A/UX 3.1 sh.
1515  cat <<_ACEOF
1516\`configure' configures libXcomposite 0.4.1 to adapt to many kinds of systems.
1517
1518Usage: $0 [OPTION]... [VAR=VALUE]...
1519
1520To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521VAR=VALUE.  See below for descriptions of some of the useful variables.
1522
1523Defaults for the options are specified in brackets.
1524
1525Configuration:
1526  -h, --help              display this help and exit
1527      --help=short        display options specific to this package
1528      --help=recursive    display the short help of all the included packages
1529  -V, --version           display version information and exit
1530  -q, --quiet, --silent   do not print \`checking...' messages
1531      --cache-file=FILE   cache test results in FILE [disabled]
1532  -C, --config-cache      alias for \`--cache-file=config.cache'
1533  -n, --no-create         do not create output files
1534      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1535
1536Installation directories:
1537  --prefix=PREFIX         install architecture-independent files in PREFIX
1538                          [$ac_default_prefix]
1539  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540                          [PREFIX]
1541
1542By default, \`make install' will install all the files in
1543\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545for instance \`--prefix=\$HOME'.
1546
1547For better control, use the options below.
1548
1549Fine tuning of the installation directories:
1550  --bindir=DIR            user executables [EPREFIX/bin]
1551  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1552  --libexecdir=DIR        program executables [EPREFIX/libexec]
1553  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1554  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1555  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1556  --libdir=DIR            object code libraries [EPREFIX/lib]
1557  --includedir=DIR        C header files [PREFIX/include]
1558  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1559  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1560  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1561  --infodir=DIR           info documentation [DATAROOTDIR/info]
1562  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1563  --mandir=DIR            man documentation [DATAROOTDIR/man]
1564  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXcomposite]
1565  --htmldir=DIR           html documentation [DOCDIR]
1566  --dvidir=DIR            dvi documentation [DOCDIR]
1567  --pdfdir=DIR            pdf documentation [DOCDIR]
1568  --psdir=DIR             ps documentation [DOCDIR]
1569_ACEOF
1570
1571  cat <<\_ACEOF
1572
1573Program names:
1574  --program-prefix=PREFIX            prepend PREFIX to installed program names
1575  --program-suffix=SUFFIX            append SUFFIX to installed program names
1576  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1577
1578System types:
1579  --build=BUILD     configure for building on BUILD [guessed]
1580  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581_ACEOF
1582fi
1583
1584if test -n "$ac_init_help"; then
1585  case $ac_init_help in
1586     short | recursive ) echo "Configuration of libXcomposite 0.4.1:";;
1587   esac
1588  cat <<\_ACEOF
1589
1590Optional Features:
1591  --disable-option-checking  ignore unrecognized --enable/--with options
1592  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594  --enable-maintainer-mode  enable make rules and dependencies not useful
1595			  (and sometimes confusing) to the casual installer
1596  --disable-dependency-tracking  speeds up one-time build
1597  --enable-dependency-tracking   do not reject slow dependency extractors
1598  --enable-shared[=PKGS]  build shared libraries [default=yes]
1599  --enable-static[=PKGS]  build static libraries [default=yes]
1600  --enable-fast-install[=PKGS]
1601                          optimize for fast installation [default=yes]
1602  --disable-libtool-lock  avoid locking (might break parallel builds)
1603  --enable-silent-rules          less verbose build output (undo: `make V=1')
1604  --disable-silent-rules         verbose build output (undo: `make V=0')
1605  --enable-strict-compilation
1606                          Enable all warnings from compiler and make them
1607                          errors (default: disabled)
1608
1609Optional Packages:
1610  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1613  --with-pic              try to use only PIC/non-PIC objects [default=use
1614                          both]
1615  --with-tags[=TAGS]      include additional configurations [automatic]
1616  --with-release-version=STRING
1617                          Use release version string in package name
1618
1619Some influential environment variables:
1620  CC          C compiler command
1621  CFLAGS      C compiler flags
1622  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1623              nonstandard directory <lib dir>
1624  LIBS        libraries to pass to the linker, e.g. -l<library>
1625  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1626              you have headers in a nonstandard directory <include dir>
1627  CPP         C preprocessor
1628  CXX         C++ compiler command
1629  CXXFLAGS    C++ compiler flags
1630  CXXCPP      C++ preprocessor
1631  F77         Fortran 77 compiler command
1632  FFLAGS      Fortran 77 compiler flags
1633  XMLTO       Path to xmlto command
1634  PKG_CONFIG  path to pkg-config utility
1635  XCOMPOSITE_CFLAGS
1636              C compiler flags for XCOMPOSITE, overriding pkg-config
1637  XCOMPOSITE_LIBS
1638              linker flags for XCOMPOSITE, overriding pkg-config
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
1643Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1644_ACEOF
1645ac_status=$?
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649  # If there are subdirs, report their specific --help.
1650  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651    test -d "$ac_dir" ||
1652      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653      continue
1654    ac_builddir=.
1655
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660  # A ".." for each directory in $ac_dir_suffix.
1661  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662  case $ac_top_builddir_sub in
1663  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665  esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
1671
1672case $srcdir in
1673  .)  # We are building in place.
1674    ac_srcdir=.
1675    ac_top_srcdir=$ac_top_builddir_sub
1676    ac_abs_top_srcdir=$ac_pwd ;;
1677  [\\/]* | ?:[\\/]* )  # Absolute name.
1678    ac_srcdir=$srcdir$ac_dir_suffix;
1679    ac_top_srcdir=$srcdir
1680    ac_abs_top_srcdir=$srcdir ;;
1681  *) # Relative name.
1682    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683    ac_top_srcdir=$ac_top_build_prefix$srcdir
1684    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685esac
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688    cd "$ac_dir" || { ac_status=$?; continue; }
1689    # Check for guested configure.
1690    if test -f "$ac_srcdir/configure.gnu"; then
1691      echo &&
1692      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693    elif test -f "$ac_srcdir/configure"; then
1694      echo &&
1695      $SHELL "$ac_srcdir/configure" --help=recursive
1696    else
1697      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698    fi || ac_status=$?
1699    cd "$ac_pwd" || { ac_status=$?; break; }
1700  done
1701fi
1702
1703test -n "$ac_init_help" && exit $ac_status
1704if $ac_init_version; then
1705  cat <<\_ACEOF
1706libXcomposite configure 0.4.1
1707generated by GNU Autoconf 2.63
1708
1709Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17102002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1711This configure script is free software; the Free Software Foundation
1712gives unlimited permission to copy, distribute and modify it.
1713_ACEOF
1714  exit
1715fi
1716cat >config.log <<_ACEOF
1717This file contains any messages produced by compilers while
1718running configure, to aid debugging if configure makes a mistake.
1719
1720It was created by libXcomposite $as_me 0.4.1, which was
1721generated by GNU Autoconf 2.63.  Invocation command line was
1722
1723  $ $0 $@
1724
1725_ACEOF
1726exec 5>>config.log
1727{
1728cat <<_ASUNAME
1729## --------- ##
1730## Platform. ##
1731## --------- ##
1732
1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1741
1742/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1743/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1746/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1747/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1748/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1749
1750_ASUNAME
1751
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755  IFS=$as_save_IFS
1756  test -z "$as_dir" && as_dir=.
1757  $as_echo "PATH: $as_dir"
1758done
1759IFS=$as_save_IFS
1760
1761} >&5
1762
1763cat >&5 <<_ACEOF
1764
1765
1766## ----------- ##
1767## Core tests. ##
1768## ----------- ##
1769
1770_ACEOF
1771
1772
1773# Keep a trace of the command line.
1774# Strip out --no-create and --no-recursion so they do not pile up.
1775# Strip out --silent because we don't want to record it for future runs.
1776# Also quote any args containing shell meta-characters.
1777# Make two passes to allow for proper duplicate-argument suppression.
1778ac_configure_args=
1779ac_configure_args0=
1780ac_configure_args1=
1781ac_must_keep_next=false
1782for ac_pass in 1 2
1783do
1784  for ac_arg
1785  do
1786    case $ac_arg in
1787    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789    | -silent | --silent | --silen | --sile | --sil)
1790      continue ;;
1791    *\'*)
1792      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793    esac
1794    case $ac_pass in
1795    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796    2)
1797      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798      if test $ac_must_keep_next = true; then
1799	ac_must_keep_next=false # Got value, back to normal.
1800      else
1801	case $ac_arg in
1802	  *=* | --config-cache | -C | -disable-* | --disable-* \
1803	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805	  | -with-* | --with-* | -without-* | --without-* | --x)
1806	    case "$ac_configure_args0 " in
1807	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808	    esac
1809	    ;;
1810	  -* ) ac_must_keep_next=true ;;
1811	esac
1812      fi
1813      ac_configure_args="$ac_configure_args '$ac_arg'"
1814      ;;
1815    esac
1816  done
1817done
1818$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820
1821# When interrupted or exit'd, cleanup temporary files, and complete
1822# config.log.  We remove comments because anyway the quotes in there
1823# would cause problems or look ugly.
1824# WARNING: Use '\'' to represent an apostrophe within the trap.
1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826trap 'exit_status=$?
1827  # Save into config.log some information that might help in debugging.
1828  {
1829    echo
1830
1831    cat <<\_ASBOX
1832## ---------------- ##
1833## Cache variables. ##
1834## ---------------- ##
1835_ASBOX
1836    echo
1837    # The following way of writing the cache mishandles newlines in values,
1838(
1839  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840    eval ac_val=\$$ac_var
1841    case $ac_val in #(
1842    *${as_nl}*)
1843      case $ac_var in #(
1844      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1846      esac
1847      case $ac_var in #(
1848      _ | IFS | as_nl) ;; #(
1849      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1850      *) $as_unset $ac_var ;;
1851      esac ;;
1852    esac
1853  done
1854  (set) 2>&1 |
1855    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856    *${as_nl}ac_space=\ *)
1857      sed -n \
1858	"s/'\''/'\''\\\\'\'''\''/g;
1859	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860      ;; #(
1861    *)
1862      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863      ;;
1864    esac |
1865    sort
1866)
1867    echo
1868
1869    cat <<\_ASBOX
1870## ----------------- ##
1871## Output variables. ##
1872## ----------------- ##
1873_ASBOX
1874    echo
1875    for ac_var in $ac_subst_vars
1876    do
1877      eval ac_val=\$$ac_var
1878      case $ac_val in
1879      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880      esac
1881      $as_echo "$ac_var='\''$ac_val'\''"
1882    done | sort
1883    echo
1884
1885    if test -n "$ac_subst_files"; then
1886      cat <<\_ASBOX
1887## ------------------- ##
1888## File substitutions. ##
1889## ------------------- ##
1890_ASBOX
1891      echo
1892      for ac_var in $ac_subst_files
1893      do
1894	eval ac_val=\$$ac_var
1895	case $ac_val in
1896	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897	esac
1898	$as_echo "$ac_var='\''$ac_val'\''"
1899      done | sort
1900      echo
1901    fi
1902
1903    if test -s confdefs.h; then
1904      cat <<\_ASBOX
1905## ----------- ##
1906## confdefs.h. ##
1907## ----------- ##
1908_ASBOX
1909      echo
1910      cat confdefs.h
1911      echo
1912    fi
1913    test "$ac_signal" != 0 &&
1914      $as_echo "$as_me: caught signal $ac_signal"
1915    $as_echo "$as_me: exit $exit_status"
1916  } >&5
1917  rm -f core *.core core.conftest.* &&
1918    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919    exit $exit_status
1920' 0
1921for ac_signal in 1 2 13 15; do
1922  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923done
1924ac_signal=0
1925
1926# confdefs.h avoids OS command line length limits that DEFS can exceed.
1927rm -f -r conftest* confdefs.h
1928
1929# Predefined preprocessor variables.
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_NAME "$PACKAGE_NAME"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_VERSION "$PACKAGE_VERSION"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_STRING "$PACKAGE_STRING"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953_ACEOF
1954
1955
1956# Let the site file select an alternate cache file if it wants to.
1957# Prefer an explicitly selected file to automatically selected ones.
1958ac_site_file1=NONE
1959ac_site_file2=NONE
1960if test -n "$CONFIG_SITE"; then
1961  ac_site_file1=$CONFIG_SITE
1962elif test "x$prefix" != xNONE; then
1963  ac_site_file1=$prefix/share/config.site
1964  ac_site_file2=$prefix/etc/config.site
1965else
1966  ac_site_file1=$ac_default_prefix/share/config.site
1967  ac_site_file2=$ac_default_prefix/etc/config.site
1968fi
1969for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1970do
1971  test "x$ac_site_file" = xNONE && continue
1972  if test -r "$ac_site_file"; then
1973    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1974$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1975    sed 's/^/| /' "$ac_site_file" >&5
1976    . "$ac_site_file"
1977  fi
1978done
1979
1980if test -r "$cache_file"; then
1981  # Some versions of bash will fail to source /dev/null (special
1982  # files actually), so we avoid doing that.
1983  if test -f "$cache_file"; then
1984    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1985$as_echo "$as_me: loading cache $cache_file" >&6;}
1986    case $cache_file in
1987      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988      *)                      . "./$cache_file";;
1989    esac
1990  fi
1991else
1992  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1993$as_echo "$as_me: creating cache $cache_file" >&6;}
1994  >$cache_file
1995fi
1996
1997# Check that the precious variables saved in the cache have kept the same
1998# value.
1999ac_cache_corrupted=false
2000for ac_var in $ac_precious_vars; do
2001  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002  eval ac_new_set=\$ac_env_${ac_var}_set
2003  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004  eval ac_new_val=\$ac_env_${ac_var}_value
2005  case $ac_old_set,$ac_new_set in
2006    set,)
2007      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2008$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2009      ac_cache_corrupted=: ;;
2010    ,set)
2011      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2013      ac_cache_corrupted=: ;;
2014    ,);;
2015    *)
2016      if test "x$ac_old_val" != "x$ac_new_val"; then
2017	# differences in whitespace do not lead to failure.
2018	ac_old_val_w=`echo x $ac_old_val`
2019	ac_new_val_w=`echo x $ac_new_val`
2020	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2022$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2023	  ac_cache_corrupted=:
2024	else
2025	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2026$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027	  eval $ac_var=\$ac_old_val
2028	fi
2029	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2030$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2031	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2032$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2033      fi;;
2034  esac
2035  # Pass precious variables to config.status.
2036  if test "$ac_new_set" = set; then
2037    case $ac_new_val in
2038    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039    *) ac_arg=$ac_var=$ac_new_val ;;
2040    esac
2041    case " $ac_configure_args " in
2042      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2043      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044    esac
2045  fi
2046done
2047if $ac_cache_corrupted; then
2048  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2053$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2054   { (exit 1); exit 1; }; }
2055fi
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081ac_ext=c
2082ac_cpp='$CPP $CPPFLAGS'
2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088am__api_version='1.11'
2089
2090ac_aux_dir=
2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092  if test -f "$ac_dir/install-sh"; then
2093    ac_aux_dir=$ac_dir
2094    ac_install_sh="$ac_aux_dir/install-sh -c"
2095    break
2096  elif test -f "$ac_dir/install.sh"; then
2097    ac_aux_dir=$ac_dir
2098    ac_install_sh="$ac_aux_dir/install.sh -c"
2099    break
2100  elif test -f "$ac_dir/shtool"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/shtool install -c"
2103    break
2104  fi
2105done
2106if test -z "$ac_aux_dir"; then
2107  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2108$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2109   { (exit 1); exit 1; }; }
2110fi
2111
2112# These three variables are undocumented and unsupported,
2113# and are intended to be withdrawn in a future Autoconf release.
2114# They can cause serious problems if a builder's source tree is in a directory
2115# whose full name contains unusual characters.
2116ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2117ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2118ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2119
2120
2121# Find a good install program.  We prefer a C program (faster),
2122# so one script is as good as another.  But avoid the broken or
2123# incompatible versions:
2124# SysV /etc/install, /usr/sbin/install
2125# SunOS /usr/etc/install
2126# IRIX /sbin/install
2127# AIX /bin/install
2128# AmigaOS /C/install, which installs bootblocks on floppy discs
2129# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132# OS/2's system install, which has a completely different semantic
2133# ./install, which can be erroneously created by make from ./install.sh.
2134# Reject install programs that cannot install multiple files.
2135{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136$as_echo_n "checking for a BSD-compatible install... " >&6; }
2137if test -z "$INSTALL"; then
2138if test "${ac_cv_path_install+set}" = set; then
2139  $as_echo_n "(cached) " >&6
2140else
2141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  # Account for people who put trailing slashes in PATH elements.
2147case $as_dir/ in
2148  ./ | .// | /cC/* | \
2149  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151  /usr/ucb/* ) ;;
2152  *)
2153    # OSF1 and SCO ODT 3.0 have their own names for install.
2154    # Don't use installbsd from OSF since it installs stuff as root
2155    # by default.
2156    for ac_prog in ginstall scoinst install; do
2157      for ac_exec_ext in '' $ac_executable_extensions; do
2158	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159	  if test $ac_prog = install &&
2160	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161	    # AIX install.  It has an incompatible calling convention.
2162	    :
2163	  elif test $ac_prog = install &&
2164	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165	    # program-specific install script used by HP pwplus--don't use.
2166	    :
2167	  else
2168	    rm -rf conftest.one conftest.two conftest.dir
2169	    echo one > conftest.one
2170	    echo two > conftest.two
2171	    mkdir conftest.dir
2172	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2173	      test -s conftest.one && test -s conftest.two &&
2174	      test -s conftest.dir/conftest.one &&
2175	      test -s conftest.dir/conftest.two
2176	    then
2177	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178	      break 3
2179	    fi
2180	  fi
2181	fi
2182      done
2183    done
2184    ;;
2185esac
2186
2187done
2188IFS=$as_save_IFS
2189
2190rm -rf conftest.one conftest.two conftest.dir
2191
2192fi
2193  if test "${ac_cv_path_install+set}" = set; then
2194    INSTALL=$ac_cv_path_install
2195  else
2196    # As a last resort, use the slow shell script.  Don't cache a
2197    # value for INSTALL within a source directory, because that will
2198    # break other packages using the cache if that directory is
2199    # removed, or if the value is a relative name.
2200    INSTALL=$ac_install_sh
2201  fi
2202fi
2203{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2204$as_echo "$INSTALL" >&6; }
2205
2206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207# It thinks the first close brace ends the variable substitution.
2208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
2214{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2215$as_echo_n "checking whether build environment is sane... " >&6; }
2216# Just in case
2217sleep 1
2218echo timestamp > conftest.file
2219# Reject unsafe characters in $srcdir or the absolute working directory
2220# name.  Accept space and tab only in the latter.
2221am_lf='
2222'
2223case `pwd` in
2224  *[\\\"\#\$\&\'\`$am_lf]*)
2225    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2226$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2227   { (exit 1); exit 1; }; };;
2228esac
2229case $srcdir in
2230  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2231    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2232$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2233   { (exit 1); exit 1; }; };;
2234esac
2235
2236# Do `set' in a subshell so we don't clobber the current shell's
2237# arguments.  Must try -L first in case configure is actually a
2238# symlink; some systems play weird games with the mod time of symlinks
2239# (eg FreeBSD returns the mod time of the symlink's containing
2240# directory).
2241if (
2242   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2243   if test "$*" = "X"; then
2244      # -L didn't work.
2245      set X `ls -t "$srcdir/configure" conftest.file`
2246   fi
2247   rm -f conftest.file
2248   if test "$*" != "X $srcdir/configure conftest.file" \
2249      && test "$*" != "X conftest.file $srcdir/configure"; then
2250
2251      # If neither matched, then we have a broken ls.  This can happen
2252      # if, for instance, CONFIG_SHELL is bash and it inherits a
2253      # broken ls alias from the environment.  This has actually
2254      # happened.  Such a system could not be considered "sane".
2255      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2256alias in your environment" >&5
2257$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2258alias in your environment" >&2;}
2259   { (exit 1); exit 1; }; }
2260   fi
2261
2262   test "$2" = conftest.file
2263   )
2264then
2265   # Ok.
2266   :
2267else
2268   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2269Check your system clock" >&5
2270$as_echo "$as_me: error: newly created file is older than distributed files!
2271Check your system clock" >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274{ $as_echo "$as_me:$LINENO: result: yes" >&5
2275$as_echo "yes" >&6; }
2276test "$program_prefix" != NONE &&
2277  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278# Use a double $ so make ignores it.
2279test "$program_suffix" != NONE &&
2280  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281# Double any \ or $.
2282# By default was `s,x,x', remove it if useless.
2283ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2284program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2285
2286# expand $ac_aux_dir to an absolute path
2287am_aux_dir=`cd $ac_aux_dir && pwd`
2288
2289if test x"${MISSING+set}" != xset; then
2290  case $am_aux_dir in
2291  *\ * | *\	*)
2292    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2293  *)
2294    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2295  esac
2296fi
2297# Use eval to expand $SHELL
2298if eval "$MISSING --run true"; then
2299  am_missing_run="$MISSING --run "
2300else
2301  am_missing_run=
2302  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2303$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2304fi
2305
2306if test x"${install_sh}" != xset; then
2307  case $am_aux_dir in
2308  *\ * | *\	*)
2309    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2310  *)
2311    install_sh="\${SHELL} $am_aux_dir/install-sh"
2312  esac
2313fi
2314
2315# Installed binaries are usually stripped using `strip' when the user
2316# run `make install-strip'.  However `strip' might not be the right
2317# tool to use in cross-compilation environments, therefore Automake
2318# will honor the `STRIP' environment variable to overrule this program.
2319if test "$cross_compiling" != no; then
2320  if test -n "$ac_tool_prefix"; then
2321  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2322set dummy ${ac_tool_prefix}strip; ac_word=$2
2323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2324$as_echo_n "checking for $ac_word... " >&6; }
2325if test "${ac_cv_prog_STRIP+set}" = set; then
2326  $as_echo_n "(cached) " >&6
2327else
2328  if test -n "$STRIP"; then
2329  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330else
2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332for as_dir in $PATH
2333do
2334  IFS=$as_save_IFS
2335  test -z "$as_dir" && as_dir=.
2336  for ac_exec_ext in '' $ac_executable_extensions; do
2337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340    break 2
2341  fi
2342done
2343done
2344IFS=$as_save_IFS
2345
2346fi
2347fi
2348STRIP=$ac_cv_prog_STRIP
2349if test -n "$STRIP"; then
2350  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2351$as_echo "$STRIP" >&6; }
2352else
2353  { $as_echo "$as_me:$LINENO: result: no" >&5
2354$as_echo "no" >&6; }
2355fi
2356
2357
2358fi
2359if test -z "$ac_cv_prog_STRIP"; then
2360  ac_ct_STRIP=$STRIP
2361  # Extract the first word of "strip", so it can be a program name with args.
2362set dummy strip; ac_word=$2
2363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364$as_echo_n "checking for $ac_word... " >&6; }
2365if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2366  $as_echo_n "(cached) " >&6
2367else
2368  if test -n "$ac_ct_STRIP"; then
2369  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374  IFS=$as_save_IFS
2375  test -z "$as_dir" && as_dir=.
2376  for ac_exec_ext in '' $ac_executable_extensions; do
2377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378    ac_cv_prog_ac_ct_STRIP="strip"
2379    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380    break 2
2381  fi
2382done
2383done
2384IFS=$as_save_IFS
2385
2386fi
2387fi
2388ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2389if test -n "$ac_ct_STRIP"; then
2390  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2391$as_echo "$ac_ct_STRIP" >&6; }
2392else
2393  { $as_echo "$as_me:$LINENO: result: no" >&5
2394$as_echo "no" >&6; }
2395fi
2396
2397  if test "x$ac_ct_STRIP" = x; then
2398    STRIP=":"
2399  else
2400    case $cross_compiling:$ac_tool_warned in
2401yes:)
2402{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404ac_tool_warned=yes ;;
2405esac
2406    STRIP=$ac_ct_STRIP
2407  fi
2408else
2409  STRIP="$ac_cv_prog_STRIP"
2410fi
2411
2412fi
2413INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2414
2415{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2416$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2417if test -z "$MKDIR_P"; then
2418  if test "${ac_cv_path_mkdir+set}" = set; then
2419  $as_echo_n "(cached) " >&6
2420else
2421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426  for ac_prog in mkdir gmkdir; do
2427	 for ac_exec_ext in '' $ac_executable_extensions; do
2428	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2429	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2430	     'mkdir (GNU coreutils) '* | \
2431	     'mkdir (coreutils) '* | \
2432	     'mkdir (fileutils) '4.1*)
2433	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2434	       break 3;;
2435	   esac
2436	 done
2437       done
2438done
2439IFS=$as_save_IFS
2440
2441fi
2442
2443  if test "${ac_cv_path_mkdir+set}" = set; then
2444    MKDIR_P="$ac_cv_path_mkdir -p"
2445  else
2446    # As a last resort, use the slow shell script.  Don't cache a
2447    # value for MKDIR_P within a source directory, because that will
2448    # break other packages using the cache if that directory is
2449    # removed, or if the value is a relative name.
2450    test -d ./--version && rmdir ./--version
2451    MKDIR_P="$ac_install_sh -d"
2452  fi
2453fi
2454{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2455$as_echo "$MKDIR_P" >&6; }
2456
2457mkdir_p="$MKDIR_P"
2458case $mkdir_p in
2459  [\\/$]* | ?:[\\/]*) ;;
2460  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2461esac
2462
2463for ac_prog in gawk mawk nawk awk
2464do
2465  # Extract the first word of "$ac_prog", so it can be a program name with args.
2466set dummy $ac_prog; ac_word=$2
2467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
2469if test "${ac_cv_prog_AWK+set}" = set; then
2470  $as_echo_n "(cached) " >&6
2471else
2472  if test -n "$AWK"; then
2473  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478  IFS=$as_save_IFS
2479  test -z "$as_dir" && as_dir=.
2480  for ac_exec_ext in '' $ac_executable_extensions; do
2481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482    ac_cv_prog_AWK="$ac_prog"
2483    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484    break 2
2485  fi
2486done
2487done
2488IFS=$as_save_IFS
2489
2490fi
2491fi
2492AWK=$ac_cv_prog_AWK
2493if test -n "$AWK"; then
2494  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2495$as_echo "$AWK" >&6; }
2496else
2497  { $as_echo "$as_me:$LINENO: result: no" >&5
2498$as_echo "no" >&6; }
2499fi
2500
2501
2502  test -n "$AWK" && break
2503done
2504
2505{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2506$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2507set x ${MAKE-make}
2508ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2509if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2510  $as_echo_n "(cached) " >&6
2511else
2512  cat >conftest.make <<\_ACEOF
2513SHELL = /bin/sh
2514all:
2515	@echo '@@@%%%=$(MAKE)=@@@%%%'
2516_ACEOF
2517# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2518case `${MAKE-make} -f conftest.make 2>/dev/null` in
2519  *@@@%%%=?*=@@@%%%*)
2520    eval ac_cv_prog_make_${ac_make}_set=yes;;
2521  *)
2522    eval ac_cv_prog_make_${ac_make}_set=no;;
2523esac
2524rm -f conftest.make
2525fi
2526if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2527  { $as_echo "$as_me:$LINENO: result: yes" >&5
2528$as_echo "yes" >&6; }
2529  SET_MAKE=
2530else
2531  { $as_echo "$as_me:$LINENO: result: no" >&5
2532$as_echo "no" >&6; }
2533  SET_MAKE="MAKE=${MAKE-make}"
2534fi
2535
2536rm -rf .tst 2>/dev/null
2537mkdir .tst 2>/dev/null
2538if test -d .tst; then
2539  am__leading_dot=.
2540else
2541  am__leading_dot=_
2542fi
2543rmdir .tst 2>/dev/null
2544
2545if test "`cd $srcdir && pwd`" != "`pwd`"; then
2546  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2547  # is not polluted with repeated "-I."
2548  am__isrc=' -I$(srcdir)'
2549  # test to see if srcdir already configured
2550  if test -f $srcdir/config.status; then
2551    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2552$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2553   { (exit 1); exit 1; }; }
2554  fi
2555fi
2556
2557# test whether we have cygpath
2558if test -z "$CYGPATH_W"; then
2559  if (cygpath --version) >/dev/null 2>/dev/null; then
2560    CYGPATH_W='cygpath -w'
2561  else
2562    CYGPATH_W=echo
2563  fi
2564fi
2565
2566
2567# Define the identity of the package.
2568 PACKAGE='libXcomposite'
2569 VERSION='0.4.1'
2570
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE "$PACKAGE"
2574_ACEOF
2575
2576
2577cat >>confdefs.h <<_ACEOF
2578#define VERSION "$VERSION"
2579_ACEOF
2580
2581# Some tools Automake needs.
2582
2583ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2584
2585
2586AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2587
2588
2589AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2590
2591
2592AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2593
2594
2595MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2596
2597# We need awk for the "check" target.  The system "awk" is bad on
2598# some platforms.
2599# Always define AMTAR for backward compatibility.
2600
2601AMTAR=${AMTAR-"${am_missing_run}tar"}
2602
2603am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2604
2605
2606
2607
2608
2609
2610{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2611$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2612    # Check whether --enable-maintainer-mode was given.
2613if test "${enable_maintainer_mode+set}" = set; then
2614  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2615else
2616  USE_MAINTAINER_MODE=no
2617fi
2618
2619  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2620$as_echo "$USE_MAINTAINER_MODE" >&6; }
2621   if test $USE_MAINTAINER_MODE = yes; then
2622  MAINTAINER_MODE_TRUE=
2623  MAINTAINER_MODE_FALSE='#'
2624else
2625  MAINTAINER_MODE_TRUE='#'
2626  MAINTAINER_MODE_FALSE=
2627fi
2628
2629  MAINT=$MAINTAINER_MODE_TRUE
2630
2631
2632
2633# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645ac_config_headers="$ac_config_headers config.h"
2646
2647
2648# Check for progs
2649ac_ext=c
2650ac_cpp='$CPP $CPPFLAGS'
2651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654if test -n "$ac_tool_prefix"; then
2655  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2656set dummy ${ac_tool_prefix}gcc; ac_word=$2
2657{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658$as_echo_n "checking for $ac_word... " >&6; }
2659if test "${ac_cv_prog_CC+set}" = set; then
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test -n "$CC"; then
2663  ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670  for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2673    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682CC=$ac_cv_prog_CC
2683if test -n "$CC"; then
2684  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2685$as_echo "$CC" >&6; }
2686else
2687  { $as_echo "$as_me:$LINENO: result: no" >&5
2688$as_echo "no" >&6; }
2689fi
2690
2691
2692fi
2693if test -z "$ac_cv_prog_CC"; then
2694  ac_ct_CC=$CC
2695  # Extract the first word of "gcc", so it can be a program name with args.
2696set dummy gcc; ac_word=$2
2697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$ac_ct_CC"; then
2703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710  for ac_exec_ext in '' $ac_executable_extensions; do
2711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712    ac_cv_prog_ac_ct_CC="gcc"
2713    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723if test -n "$ac_ct_CC"; then
2724  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725$as_echo "$ac_ct_CC" >&6; }
2726else
2727  { $as_echo "$as_me:$LINENO: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731  if test "x$ac_ct_CC" = x; then
2732    CC=""
2733  else
2734    case $cross_compiling:$ac_tool_warned in
2735yes:)
2736{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738ac_tool_warned=yes ;;
2739esac
2740    CC=$ac_ct_CC
2741  fi
2742else
2743  CC="$ac_cv_prog_CC"
2744fi
2745
2746if test -z "$CC"; then
2747          if test -n "$ac_tool_prefix"; then
2748    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}cc; ac_word=$2
2750{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
2752if test "${ac_cv_prog_CC+set}" = set; then
2753  $as_echo_n "(cached) " >&6
2754else
2755  if test -n "$CC"; then
2756  ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763  for ac_exec_ext in '' $ac_executable_extensions; do
2764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765    ac_cv_prog_CC="${ac_tool_prefix}cc"
2766    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767    break 2
2768  fi
2769done
2770done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
2777  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2778$as_echo "$CC" >&6; }
2779else
2780  { $as_echo "$as_me:$LINENO: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785  fi
2786fi
2787if test -z "$CC"; then
2788  # Extract the first word of "cc", so it can be a program name with args.
2789set dummy cc; ac_word=$2
2790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_CC+set}" = set; then
2793  $as_echo_n "(cached) " >&6
2794else
2795  if test -n "$CC"; then
2796  ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798  ac_prog_rejected=no
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804  for ac_exec_ext in '' $ac_executable_extensions; do
2805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2807       ac_prog_rejected=yes
2808       continue
2809     fi
2810    ac_cv_prog_CC="cc"
2811    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812    break 2
2813  fi
2814done
2815done
2816IFS=$as_save_IFS
2817
2818if test $ac_prog_rejected = yes; then
2819  # We found a bogon in the path, so make sure we never use it.
2820  set dummy $ac_cv_prog_CC
2821  shift
2822  if test $# != 0; then
2823    # We chose a different compiler from the bogus one.
2824    # However, it has the same basename, so the bogon will be chosen
2825    # first if we set CC to just the basename; use the full file name.
2826    shift
2827    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2828  fi
2829fi
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
2834  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2835$as_echo "$CC" >&6; }
2836else
2837  { $as_echo "$as_me:$LINENO: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$CC"; then
2844  if test -n "$ac_tool_prefix"; then
2845  for ac_prog in cl.exe
2846  do
2847    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if test "${ac_cv_prog_CC+set}" = set; then
2852  $as_echo_n "(cached) " >&6
2853else
2854  if test -n "$CC"; then
2855  ac_cv_prog_CC="$CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2865    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2877$as_echo "$CC" >&6; }
2878else
2879  { $as_echo "$as_me:$LINENO: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884    test -n "$CC" && break
2885  done
2886fi
2887if test -z "$CC"; then
2888  ac_ct_CC=$CC
2889  for ac_prog in cl.exe
2890do
2891  # Extract the first word of "$ac_prog", so it can be a program name with args.
2892set dummy $ac_prog; ac_word=$2
2893{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$ac_ct_CC"; then
2899  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906  for ac_exec_ext in '' $ac_executable_extensions; do
2907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908    ac_cv_prog_ac_ct_CC="$ac_prog"
2909    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
2920  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2921$as_echo "$ac_ct_CC" >&6; }
2922else
2923  { $as_echo "$as_me:$LINENO: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928  test -n "$ac_ct_CC" && break
2929done
2930
2931  if test "x$ac_ct_CC" = x; then
2932    CC=""
2933  else
2934    case $cross_compiling:$ac_tool_warned in
2935yes:)
2936{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938ac_tool_warned=yes ;;
2939esac
2940    CC=$ac_ct_CC
2941  fi
2942fi
2943
2944fi
2945
2946
2947test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2950See \`config.log' for more details." >&5
2951$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2952See \`config.log' for more details." >&2;}
2953   { (exit 1); exit 1; }; }; }
2954
2955# Provide some information about the compiler.
2956$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2957set X $ac_compile
2958ac_compiler=$2
2959{ (ac_try="$ac_compiler --version >&5"
2960case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
2966  (eval "$ac_compiler --version >&5") 2>&5
2967  ac_status=$?
2968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }
2970{ (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }
2981{ (ac_try="$ac_compiler -V >&5"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987$as_echo "$ac_try_echo") >&5
2988  (eval "$ac_compiler -V >&5") 2>&5
2989  ac_status=$?
2990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }
2992
2993cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h.  */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008ac_clean_files_save=$ac_clean_files
3009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3010# Try to create an executable without -o first, disregard a.out.
3011# It will help us diagnose broken compilers, and finding out an intuition
3012# of exeext.
3013{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3014$as_echo_n "checking for C compiler default output file name... " >&6; }
3015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016
3017# The possible output files:
3018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019
3020ac_rmfiles=
3021for ac_file in $ac_files
3022do
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026  esac
3027done
3028rm -f $ac_rmfiles
3029
3030if { (ac_try="$ac_link_default"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3036$as_echo "$ac_try_echo") >&5
3037  (eval "$ac_link_default") 2>&5
3038  ac_status=$?
3039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; then
3041  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3044# so that the user can short-circuit this test for compilers unknown to
3045# Autoconf.
3046for ac_file in $ac_files ''
3047do
3048  test -f "$ac_file" || continue
3049  case $ac_file in
3050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051	;;
3052    [ab].out )
3053	# We found the default executable, but exeext='' is most
3054	# certainly right.
3055	break;;
3056    *.* )
3057        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058	then :; else
3059	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060	fi
3061	# We set ac_cv_exeext here because the later test for it is not
3062	# safe: cross compilers may not add the suffix if given an `-o'
3063	# argument, so we may need to know it at that point already.
3064	# Even if this section looks crufty: it has the advantage of
3065	# actually working.
3066	break;;
3067    * )
3068	break;;
3069  esac
3070done
3071test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
3073else
3074  ac_file=''
3075fi
3076
3077{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3078$as_echo "$ac_file" >&6; }
3079if test -z "$ac_file"; then
3080  $as_echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3086See \`config.log' for more details." >&5
3087$as_echo "$as_me: error: C compiler cannot create executables
3088See \`config.log' for more details." >&2;}
3089   { (exit 77); exit 77; }; }; }
3090fi
3091
3092ac_exeext=$ac_cv_exeext
3093
3094# Check that the compiler produces executables we can run.  If not, either
3095# the compiler is broken, or we cross compile.
3096{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3097$as_echo_n "checking whether the C compiler works... " >&6; }
3098# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3099# If not cross compiling, check that we can run a simple program.
3100if test "$cross_compiling" != yes; then
3101  if { ac_try='./$ac_file'
3102  { (case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107$as_echo "$ac_try_echo") >&5
3108  (eval "$ac_try") 2>&5
3109  ac_status=$?
3110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112    cross_compiling=no
3113  else
3114    if test "$cross_compiling" = maybe; then
3115	cross_compiling=yes
3116    else
3117	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3120If you meant to cross compile, use \`--host'.
3121See \`config.log' for more details." >&5
3122$as_echo "$as_me: error: cannot run C compiled programs.
3123If you meant to cross compile, use \`--host'.
3124See \`config.log' for more details." >&2;}
3125   { (exit 1); exit 1; }; }; }
3126    fi
3127  fi
3128fi
3129{ $as_echo "$as_me:$LINENO: result: yes" >&5
3130$as_echo "yes" >&6; }
3131
3132rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3133ac_clean_files=$ac_clean_files_save
3134# Check that the compiler produces executables we can run.  If not, either
3135# the compiler is broken, or we cross compile.
3136{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3137$as_echo_n "checking whether we are cross compiling... " >&6; }
3138{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3139$as_echo "$cross_compiling" >&6; }
3140
3141{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { (ac_try="$ac_link"
3144case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149$as_echo "$ac_try_echo") >&5
3150  (eval "$ac_link") 2>&5
3151  ac_status=$?
3152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; then
3154  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159  test -f "$ac_file" || continue
3160  case $ac_file in
3161    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163	  break;;
3164    * ) break;;
3165  esac
3166done
3167else
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 executables: cannot compile and link
3171See \`config.log' for more details." >&5
3172$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3173See \`config.log' for more details." >&2;}
3174   { (exit 1); exit 1; }; }; }
3175fi
3176
3177rm -f conftest$ac_cv_exeext
3178{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3179$as_echo "$ac_cv_exeext" >&6; }
3180
3181rm -f conftest.$ac_ext
3182EXEEXT=$ac_cv_exeext
3183ac_exeext=$EXEEXT
3184{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3185$as_echo_n "checking for suffix of object files... " >&6; }
3186if test "${ac_cv_objext+set}" = set; then
3187  $as_echo_n "(cached) " >&6
3188else
3189  cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.o conftest.obj
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3211$as_echo "$ac_try_echo") >&5
3212  (eval "$ac_compile") 2>&5
3213  ac_status=$?
3214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }; then
3216  for ac_file in conftest.o conftest.obj conftest.*; do
3217  test -f "$ac_file" || continue;
3218  case $ac_file in
3219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3220    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221       break;;
3222  esac
3223done
3224else
3225  $as_echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3231See \`config.log' for more details." >&5
3232$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3233See \`config.log' for more details." >&2;}
3234   { (exit 1); exit 1; }; }; }
3235fi
3236
3237rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238fi
3239{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3240$as_echo "$ac_cv_objext" >&6; }
3241OBJEXT=$ac_cv_objext
3242ac_objext=$OBJEXT
3243{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3244$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245if test "${ac_cv_c_compiler_gnu+set}" = set; then
3246  $as_echo_n "(cached) " >&6
3247else
3248  cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h.  */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258#ifndef __GNUC__
3259       choke me
3260#endif
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (ac_try="$ac_compile"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273$as_echo "$ac_try_echo") >&5
3274  (eval "$ac_compile") 2>conftest.er1
3275  ac_status=$?
3276  grep -v '^ *+' conftest.er1 >conftest.err
3277  rm -f conftest.er1
3278  cat conftest.err >&5
3279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); } && {
3281	 test -z "$ac_c_werror_flag" ||
3282	 test ! -s conftest.err
3283       } && test -s conftest.$ac_objext; then
3284  ac_compiler_gnu=yes
3285else
3286  $as_echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289	ac_compiler_gnu=no
3290fi
3291
3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294
3295fi
3296{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3297$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298if test $ac_compiler_gnu = yes; then
3299  GCC=yes
3300else
3301  GCC=
3302fi
3303ac_test_CFLAGS=${CFLAGS+set}
3304ac_save_CFLAGS=$CFLAGS
3305{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3306$as_echo_n "checking whether $CC accepts -g... " >&6; }
3307if test "${ac_cv_prog_cc_g+set}" = set; then
3308  $as_echo_n "(cached) " >&6
3309else
3310  ac_save_c_werror_flag=$ac_c_werror_flag
3311   ac_c_werror_flag=yes
3312   ac_cv_prog_cc_g=no
3313   CFLAGS="-g"
3314   cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h.  */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h.  */
3320
3321int
3322main ()
3323{
3324
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329rm -f conftest.$ac_objext
3330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336$as_echo "$ac_try_echo") >&5
3337  (eval "$ac_compile") 2>conftest.er1
3338  ac_status=$?
3339  grep -v '^ *+' conftest.er1 >conftest.err
3340  rm -f conftest.er1
3341  cat conftest.err >&5
3342  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); } && {
3344	 test -z "$ac_c_werror_flag" ||
3345	 test ! -s conftest.err
3346       } && test -s conftest.$ac_objext; then
3347  ac_cv_prog_cc_g=yes
3348else
3349  $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352	CFLAGS=""
3353      cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h.  */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h.  */
3359
3360int
3361main ()
3362{
3363
3364  ;
3365  return 0;
3366}
3367_ACEOF
3368rm -f conftest.$ac_objext
3369if { (ac_try="$ac_compile"
3370case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3375$as_echo "$ac_try_echo") >&5
3376  (eval "$ac_compile") 2>conftest.er1
3377  ac_status=$?
3378  grep -v '^ *+' conftest.er1 >conftest.err
3379  rm -f conftest.er1
3380  cat conftest.err >&5
3381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); } && {
3383	 test -z "$ac_c_werror_flag" ||
3384	 test ! -s conftest.err
3385       } && test -s conftest.$ac_objext; then
3386  :
3387else
3388  $as_echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391	ac_c_werror_flag=$ac_save_c_werror_flag
3392	 CFLAGS="-g"
3393	 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399
3400int
3401main ()
3402{
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext
3409if { (ac_try="$ac_compile"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3415$as_echo "$ac_try_echo") >&5
3416  (eval "$ac_compile") 2>conftest.er1
3417  ac_status=$?
3418  grep -v '^ *+' conftest.er1 >conftest.err
3419  rm -f conftest.er1
3420  cat conftest.err >&5
3421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } && {
3423	 test -z "$ac_c_werror_flag" ||
3424	 test ! -s conftest.err
3425       } && test -s conftest.$ac_objext; then
3426  ac_cv_prog_cc_g=yes
3427else
3428  $as_echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431
3432fi
3433
3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435fi
3436
3437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438fi
3439
3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441   ac_c_werror_flag=$ac_save_c_werror_flag
3442fi
3443{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3444$as_echo "$ac_cv_prog_cc_g" >&6; }
3445if test "$ac_test_CFLAGS" = set; then
3446  CFLAGS=$ac_save_CFLAGS
3447elif test $ac_cv_prog_cc_g = yes; then
3448  if test "$GCC" = yes; then
3449    CFLAGS="-g -O2"
3450  else
3451    CFLAGS="-g"
3452  fi
3453else
3454  if test "$GCC" = yes; then
3455    CFLAGS="-O2"
3456  else
3457    CFLAGS=
3458  fi
3459fi
3460{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3461$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3462if test "${ac_cv_prog_cc_c89+set}" = set; then
3463  $as_echo_n "(cached) " >&6
3464else
3465  ac_cv_prog_cc_c89=no
3466ac_save_CC=$CC
3467cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h.  */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h.  */
3473#include <stdarg.h>
3474#include <stdio.h>
3475#include <sys/types.h>
3476#include <sys/stat.h>
3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3478struct buf { int x; };
3479FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480static char *e (p, i)
3481     char **p;
3482     int i;
3483{
3484  return p[i];
3485}
3486static char *f (char * (*g) (char **, int), char **p, ...)
3487{
3488  char *s;
3489  va_list v;
3490  va_start (v,p);
3491  s = g (p, va_arg (v,int));
3492  va_end (v);
3493  return s;
3494}
3495
3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3497   function prototypes and stuff, but not '\xHH' hex character constants.
3498   These don't provoke an error unfortunately, instead are silently treated
3499   as 'x'.  The following induces an error, until -std is added to get
3500   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3501   array size at least.  It's necessary to write '\x00'==0 to get something
3502   that's true only with -std.  */
3503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506   inside strings and character constants.  */
3507#define FOO(x) 'x'
3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
3510int test (int i, double x);
3511struct s1 {int (*f) (int a);};
3512struct s2 {int (*f) (double a);};
3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514int argc;
3515char **argv;
3516int
3517main ()
3518{
3519return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526do
3527  CC="$ac_save_CC $ac_arg"
3528  rm -f conftest.$ac_objext
3529if { (ac_try="$ac_compile"
3530case "(($ac_try" in
3531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532  *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535$as_echo "$ac_try_echo") >&5
3536  (eval "$ac_compile") 2>conftest.er1
3537  ac_status=$?
3538  grep -v '^ *+' conftest.er1 >conftest.err
3539  rm -f conftest.er1
3540  cat conftest.err >&5
3541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); } && {
3543	 test -z "$ac_c_werror_flag" ||
3544	 test ! -s conftest.err
3545       } && test -s conftest.$ac_objext; then
3546  ac_cv_prog_cc_c89=$ac_arg
3547else
3548  $as_echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551
3552fi
3553
3554rm -f core conftest.err conftest.$ac_objext
3555  test "x$ac_cv_prog_cc_c89" != "xno" && break
3556done
3557rm -f conftest.$ac_ext
3558CC=$ac_save_CC
3559
3560fi
3561# AC_CACHE_VAL
3562case "x$ac_cv_prog_cc_c89" in
3563  x)
3564    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3565$as_echo "none needed" >&6; } ;;
3566  xno)
3567    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3568$as_echo "unsupported" >&6; } ;;
3569  *)
3570    CC="$CC $ac_cv_prog_cc_c89"
3571    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573esac
3574
3575
3576ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581DEPDIR="${am__leading_dot}deps"
3582
3583ac_config_commands="$ac_config_commands depfiles"
3584
3585
3586am_make=${MAKE-make}
3587cat > confinc << 'END'
3588am__doit:
3589	@echo this is the am__doit target
3590.PHONY: am__doit
3591END
3592# If we don't find an include directive, just comment out the code.
3593{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3594$as_echo_n "checking for style of include used by $am_make... " >&6; }
3595am__include="#"
3596am__quote=
3597_am_result=none
3598# First try GNU make style include.
3599echo "include confinc" > confmf
3600# Ignore all kinds of additional output from `make'.
3601case `$am_make -s -f confmf 2> /dev/null` in #(
3602*the\ am__doit\ target*)
3603  am__include=include
3604  am__quote=
3605  _am_result=GNU
3606  ;;
3607esac
3608# Now try BSD make style include.
3609if test "$am__include" = "#"; then
3610   echo '.include "confinc"' > confmf
3611   case `$am_make -s -f confmf 2> /dev/null` in #(
3612   *the\ am__doit\ target*)
3613     am__include=.include
3614     am__quote="\""
3615     _am_result=BSD
3616     ;;
3617   esac
3618fi
3619
3620
3621{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3622$as_echo "$_am_result" >&6; }
3623rm -f confinc confmf
3624
3625# Check whether --enable-dependency-tracking was given.
3626if test "${enable_dependency_tracking+set}" = set; then
3627  enableval=$enable_dependency_tracking;
3628fi
3629
3630if test "x$enable_dependency_tracking" != xno; then
3631  am_depcomp="$ac_aux_dir/depcomp"
3632  AMDEPBACKSLASH='\'
3633fi
3634 if test "x$enable_dependency_tracking" != xno; then
3635  AMDEP_TRUE=
3636  AMDEP_FALSE='#'
3637else
3638  AMDEP_TRUE='#'
3639  AMDEP_FALSE=
3640fi
3641
3642
3643
3644depcc="$CC"   am_compiler_list=
3645
3646{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3647$as_echo_n "checking dependency style of $depcc... " >&6; }
3648if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652  # We make a subdir and do the tests there.  Otherwise we can end up
3653  # making bogus files that we don't know about and never remove.  For
3654  # instance it was reported that on HP-UX the gcc test will end up
3655  # making a dummy file named `D' -- because `-MD' means `put the output
3656  # in D'.
3657  mkdir conftest.dir
3658  # Copy depcomp to subdir because otherwise we won't find it if we're
3659  # using a relative directory.
3660  cp "$am_depcomp" conftest.dir
3661  cd conftest.dir
3662  # We will build objects and dependencies in a subdirectory because
3663  # it helps to detect inapplicable dependency modes.  For instance
3664  # both Tru64's cc and ICC support -MD to output dependencies as a
3665  # side effect of compilation, but ICC will put the dependencies in
3666  # the current directory while Tru64 will put them in the object
3667  # directory.
3668  mkdir sub
3669
3670  am_cv_CC_dependencies_compiler_type=none
3671  if test "$am_compiler_list" = ""; then
3672     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3673  fi
3674  am__universal=false
3675  case " $depcc " in #(
3676     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3677     esac
3678
3679  for depmode in $am_compiler_list; do
3680    # Setup a source with many dependencies, because some compilers
3681    # like to wrap large dependency lists on column 80 (with \), and
3682    # we should not choose a depcomp mode which is confused by this.
3683    #
3684    # We need to recreate these files for each test, as the compiler may
3685    # overwrite some of them when testing with obscure command lines.
3686    # This happens at least with the AIX C compiler.
3687    : > sub/conftest.c
3688    for i in 1 2 3 4 5 6; do
3689      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691      # Solaris 8's {/usr,}/bin/sh.
3692      touch sub/conftst$i.h
3693    done
3694    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695
3696    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3697    # mode.  It turns out that the SunPro C++ compiler does not properly
3698    # handle `-M -o', and we need to detect this.  Also, some Intel
3699    # versions had trouble with output in subdirs
3700    am__obj=sub/conftest.${OBJEXT-o}
3701    am__minus_obj="-o $am__obj"
3702    case $depmode in
3703    gcc)
3704      # This depmode causes a compiler race in universal mode.
3705      test "$am__universal" = false || continue
3706      ;;
3707    nosideeffect)
3708      # after this tag, mechanisms are not by side-effect, so they'll
3709      # only be used when explicitly requested
3710      if test "x$enable_dependency_tracking" = xyes; then
3711	continue
3712      else
3713	break
3714      fi
3715      ;;
3716    msvisualcpp | msvcmsys)
3717      # This compiler won't grok `-c -o', but also, the minuso test has
3718      # not run yet.  These depmodes are late enough in the game, and
3719      # so weak that their functioning should not be impacted.
3720      am__obj=conftest.${OBJEXT-o}
3721      am__minus_obj=
3722      ;;
3723    none) break ;;
3724    esac
3725    if depmode=$depmode \
3726       source=sub/conftest.c object=$am__obj \
3727       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3728       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3729         >/dev/null 2>conftest.err &&
3730       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3731       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3732       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3733       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3734      # icc doesn't choke on unknown options, it will just issue warnings
3735      # or remarks (even with -Werror).  So we grep stderr for any message
3736      # that says an option was ignored or not supported.
3737      # When given -MP, icc 7.0 and 7.1 complain thusly:
3738      #   icc: Command line warning: ignoring option '-M'; no argument required
3739      # The diagnosis changed in icc 8.0:
3740      #   icc: Command line remark: option '-MP' not supported
3741      if (grep 'ignoring option' conftest.err ||
3742          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3743        am_cv_CC_dependencies_compiler_type=$depmode
3744        break
3745      fi
3746    fi
3747  done
3748
3749  cd ..
3750  rm -rf conftest.dir
3751else
3752  am_cv_CC_dependencies_compiler_type=none
3753fi
3754
3755fi
3756{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3757$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3758CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3759
3760 if
3761  test "x$enable_dependency_tracking" != xno \
3762  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3763  am__fastdepCC_TRUE=
3764  am__fastdepCC_FALSE='#'
3765else
3766  am__fastdepCC_TRUE='#'
3767  am__fastdepCC_FALSE=
3768fi
3769
3770
3771# Check whether --enable-shared was given.
3772if test "${enable_shared+set}" = set; then
3773  enableval=$enable_shared; p=${PACKAGE-default}
3774    case $enableval in
3775    yes) enable_shared=yes ;;
3776    no) enable_shared=no ;;
3777    *)
3778      enable_shared=no
3779      # Look at the argument we got.  We use all the common list separators.
3780      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3781      for pkg in $enableval; do
3782	IFS="$lt_save_ifs"
3783	if test "X$pkg" = "X$p"; then
3784	  enable_shared=yes
3785	fi
3786      done
3787      IFS="$lt_save_ifs"
3788      ;;
3789    esac
3790else
3791  enable_shared=yes
3792fi
3793
3794
3795# Check whether --enable-static was given.
3796if test "${enable_static+set}" = set; then
3797  enableval=$enable_static; p=${PACKAGE-default}
3798    case $enableval in
3799    yes) enable_static=yes ;;
3800    no) enable_static=no ;;
3801    *)
3802     enable_static=no
3803      # Look at the argument we got.  We use all the common list separators.
3804      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3805      for pkg in $enableval; do
3806	IFS="$lt_save_ifs"
3807	if test "X$pkg" = "X$p"; then
3808	  enable_static=yes
3809	fi
3810      done
3811      IFS="$lt_save_ifs"
3812      ;;
3813    esac
3814else
3815  enable_static=yes
3816fi
3817
3818
3819# Check whether --enable-fast-install was given.
3820if test "${enable_fast_install+set}" = set; then
3821  enableval=$enable_fast_install; p=${PACKAGE-default}
3822    case $enableval in
3823    yes) enable_fast_install=yes ;;
3824    no) enable_fast_install=no ;;
3825    *)
3826      enable_fast_install=no
3827      # Look at the argument we got.  We use all the common list separators.
3828      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3829      for pkg in $enableval; do
3830	IFS="$lt_save_ifs"
3831	if test "X$pkg" = "X$p"; then
3832	  enable_fast_install=yes
3833	fi
3834      done
3835      IFS="$lt_save_ifs"
3836      ;;
3837    esac
3838else
3839  enable_fast_install=yes
3840fi
3841
3842
3843# Make sure we can run config.sub.
3844$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3845  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3846$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3847   { (exit 1); exit 1; }; }
3848
3849{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3850$as_echo_n "checking build system type... " >&6; }
3851if test "${ac_cv_build+set}" = set; then
3852  $as_echo_n "(cached) " >&6
3853else
3854  ac_build_alias=$build_alias
3855test "x$ac_build_alias" = x &&
3856  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3857test "x$ac_build_alias" = x &&
3858  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3859$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3860   { (exit 1); exit 1; }; }
3861ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3862  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3863$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3864   { (exit 1); exit 1; }; }
3865
3866fi
3867{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3868$as_echo "$ac_cv_build" >&6; }
3869case $ac_cv_build in
3870*-*-*) ;;
3871*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3872$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3873   { (exit 1); exit 1; }; };;
3874esac
3875build=$ac_cv_build
3876ac_save_IFS=$IFS; IFS='-'
3877set x $ac_cv_build
3878shift
3879build_cpu=$1
3880build_vendor=$2
3881shift; shift
3882# Remember, the first character of IFS is used to create $*,
3883# except with old shells:
3884build_os=$*
3885IFS=$ac_save_IFS
3886case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3887
3888
3889{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3890$as_echo_n "checking host system type... " >&6; }
3891if test "${ac_cv_host+set}" = set; then
3892  $as_echo_n "(cached) " >&6
3893else
3894  if test "x$host_alias" = x; then
3895  ac_cv_host=$ac_cv_build
3896else
3897  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3898    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3899$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3900   { (exit 1); exit 1; }; }
3901fi
3902
3903fi
3904{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3905$as_echo "$ac_cv_host" >&6; }
3906case $ac_cv_host in
3907*-*-*) ;;
3908*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3909$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3910   { (exit 1); exit 1; }; };;
3911esac
3912host=$ac_cv_host
3913ac_save_IFS=$IFS; IFS='-'
3914set x $ac_cv_host
3915shift
3916host_cpu=$1
3917host_vendor=$2
3918shift; shift
3919# Remember, the first character of IFS is used to create $*,
3920# except with old shells:
3921host_os=$*
3922IFS=$ac_save_IFS
3923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3924
3925
3926{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3927$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3928if test "${lt_cv_path_SED+set}" = set; then
3929  $as_echo_n "(cached) " >&6
3930else
3931  # Loop through the user's path and test for sed and gsed.
3932# Then use that list of sed's as ones to test for truncation.
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936  IFS=$as_save_IFS
3937  test -z "$as_dir" && as_dir=.
3938  for lt_ac_prog in sed gsed; do
3939    for ac_exec_ext in '' $ac_executable_extensions; do
3940      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3941        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3942      fi
3943    done
3944  done
3945done
3946IFS=$as_save_IFS
3947lt_ac_max=0
3948lt_ac_count=0
3949# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3950# along with /bin/sed that truncates output.
3951for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3952  test ! -f $lt_ac_sed && continue
3953  cat /dev/null > conftest.in
3954  lt_ac_count=0
3955  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3956  # Check for GNU sed and select it if it is found.
3957  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3958    lt_cv_path_SED=$lt_ac_sed
3959    break
3960  fi
3961  while true; do
3962    cat conftest.in conftest.in >conftest.tmp
3963    mv conftest.tmp conftest.in
3964    cp conftest.in conftest.nl
3965    echo >>conftest.nl
3966    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3967    cmp -s conftest.out conftest.nl || break
3968    # 10000 chars as input seems more than enough
3969    test $lt_ac_count -gt 10 && break
3970    lt_ac_count=`expr $lt_ac_count + 1`
3971    if test $lt_ac_count -gt $lt_ac_max; then
3972      lt_ac_max=$lt_ac_count
3973      lt_cv_path_SED=$lt_ac_sed
3974    fi
3975  done
3976done
3977
3978fi
3979
3980SED=$lt_cv_path_SED
3981
3982{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3983$as_echo "$SED" >&6; }
3984
3985{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3986$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3987if test "${ac_cv_path_GREP+set}" = set; then
3988  $as_echo_n "(cached) " >&6
3989else
3990  if test -z "$GREP"; then
3991  ac_path_GREP_found=false
3992  # Loop through the user's path and test for each of PROGNAME-LIST
3993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3995do
3996  IFS=$as_save_IFS
3997  test -z "$as_dir" && as_dir=.
3998  for ac_prog in grep ggrep; do
3999    for ac_exec_ext in '' $ac_executable_extensions; do
4000      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4001      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4002# Check for GNU ac_path_GREP and select it if it is found.
4003  # Check for GNU $ac_path_GREP
4004case `"$ac_path_GREP" --version 2>&1` in
4005*GNU*)
4006  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4007*)
4008  ac_count=0
4009  $as_echo_n 0123456789 >"conftest.in"
4010  while :
4011  do
4012    cat "conftest.in" "conftest.in" >"conftest.tmp"
4013    mv "conftest.tmp" "conftest.in"
4014    cp "conftest.in" "conftest.nl"
4015    $as_echo 'GREP' >> "conftest.nl"
4016    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018    ac_count=`expr $ac_count + 1`
4019    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4020      # Best one so far, save it but keep looking for a better one
4021      ac_cv_path_GREP="$ac_path_GREP"
4022      ac_path_GREP_max=$ac_count
4023    fi
4024    # 10*(2^10) chars as input seems more than enough
4025    test $ac_count -gt 10 && break
4026  done
4027  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4028esac
4029
4030      $ac_path_GREP_found && break 3
4031    done
4032  done
4033done
4034IFS=$as_save_IFS
4035  if test -z "$ac_cv_path_GREP"; then
4036    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038   { (exit 1); exit 1; }; }
4039  fi
4040else
4041  ac_cv_path_GREP=$GREP
4042fi
4043
4044fi
4045{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4046$as_echo "$ac_cv_path_GREP" >&6; }
4047 GREP="$ac_cv_path_GREP"
4048
4049
4050{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4051$as_echo_n "checking for egrep... " >&6; }
4052if test "${ac_cv_path_EGREP+set}" = set; then
4053  $as_echo_n "(cached) " >&6
4054else
4055  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4056   then ac_cv_path_EGREP="$GREP -E"
4057   else
4058     if test -z "$EGREP"; then
4059  ac_path_EGREP_found=false
4060  # Loop through the user's path and test for each of PROGNAME-LIST
4061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4063do
4064  IFS=$as_save_IFS
4065  test -z "$as_dir" && as_dir=.
4066  for ac_prog in egrep; do
4067    for ac_exec_ext in '' $ac_executable_extensions; do
4068      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4069      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4070# Check for GNU ac_path_EGREP and select it if it is found.
4071  # Check for GNU $ac_path_EGREP
4072case `"$ac_path_EGREP" --version 2>&1` in
4073*GNU*)
4074  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4075*)
4076  ac_count=0
4077  $as_echo_n 0123456789 >"conftest.in"
4078  while :
4079  do
4080    cat "conftest.in" "conftest.in" >"conftest.tmp"
4081    mv "conftest.tmp" "conftest.in"
4082    cp "conftest.in" "conftest.nl"
4083    $as_echo 'EGREP' >> "conftest.nl"
4084    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086    ac_count=`expr $ac_count + 1`
4087    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4088      # Best one so far, save it but keep looking for a better one
4089      ac_cv_path_EGREP="$ac_path_EGREP"
4090      ac_path_EGREP_max=$ac_count
4091    fi
4092    # 10*(2^10) chars as input seems more than enough
4093    test $ac_count -gt 10 && break
4094  done
4095  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096esac
4097
4098      $ac_path_EGREP_found && break 3
4099    done
4100  done
4101done
4102IFS=$as_save_IFS
4103  if test -z "$ac_cv_path_EGREP"; then
4104    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106   { (exit 1); exit 1; }; }
4107  fi
4108else
4109  ac_cv_path_EGREP=$EGREP
4110fi
4111
4112   fi
4113fi
4114{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115$as_echo "$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4117
4118
4119
4120# Check whether --with-gnu-ld was given.
4121if test "${with_gnu_ld+set}" = set; then
4122  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4123else
4124  with_gnu_ld=no
4125fi
4126
4127ac_prog=ld
4128if test "$GCC" = yes; then
4129  # Check if gcc -print-prog-name=ld gives a path.
4130  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4131$as_echo_n "checking for ld used by $CC... " >&6; }
4132  case $host in
4133  *-*-mingw*)
4134    # gcc leaves a trailing carriage return which upsets mingw
4135    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4136  *)
4137    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4138  esac
4139  case $ac_prog in
4140    # Accept absolute paths.
4141    [\\/]* | ?:[\\/]*)
4142      re_direlt='/[^/][^/]*/\.\./'
4143      # Canonicalize the pathname of ld
4144      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4145      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4146	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4147      done
4148      test -z "$LD" && LD="$ac_prog"
4149      ;;
4150  "")
4151    # If it fails, then pretend we aren't using GCC.
4152    ac_prog=ld
4153    ;;
4154  *)
4155    # If it is relative, then search for the first ld in PATH.
4156    with_gnu_ld=unknown
4157    ;;
4158  esac
4159elif test "$with_gnu_ld" = yes; then
4160  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4161$as_echo_n "checking for GNU ld... " >&6; }
4162else
4163  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4164$as_echo_n "checking for non-GNU ld... " >&6; }
4165fi
4166if test "${lt_cv_path_LD+set}" = set; then
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -z "$LD"; then
4170  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4171  for ac_dir in $PATH; do
4172    IFS="$lt_save_ifs"
4173    test -z "$ac_dir" && ac_dir=.
4174    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4175      lt_cv_path_LD="$ac_dir/$ac_prog"
4176      # Check to see if the program is GNU ld.  I'd rather use --version,
4177      # but apparently some variants of GNU ld only accept -v.
4178      # Break only if it was the GNU/non-GNU ld that we prefer.
4179      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4180      *GNU* | *'with BFD'*)
4181	test "$with_gnu_ld" != no && break
4182	;;
4183      *)
4184	test "$with_gnu_ld" != yes && break
4185	;;
4186      esac
4187    fi
4188  done
4189  IFS="$lt_save_ifs"
4190else
4191  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4192fi
4193fi
4194
4195LD="$lt_cv_path_LD"
4196if test -n "$LD"; then
4197  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4198$as_echo "$LD" >&6; }
4199else
4200  { $as_echo "$as_me:$LINENO: result: no" >&5
4201$as_echo "no" >&6; }
4202fi
4203test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4204$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4205   { (exit 1); exit 1; }; }
4206{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4207$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4208if test "${lt_cv_prog_gnu_ld+set}" = set; then
4209  $as_echo_n "(cached) " >&6
4210else
4211  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4212case `$LD -v 2>&1 </dev/null` in
4213*GNU* | *'with BFD'*)
4214  lt_cv_prog_gnu_ld=yes
4215  ;;
4216*)
4217  lt_cv_prog_gnu_ld=no
4218  ;;
4219esac
4220fi
4221{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4222$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4223with_gnu_ld=$lt_cv_prog_gnu_ld
4224
4225
4226{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4227$as_echo_n "checking for $LD option to reload object files... " >&6; }
4228if test "${lt_cv_ld_reload_flag+set}" = set; then
4229  $as_echo_n "(cached) " >&6
4230else
4231  lt_cv_ld_reload_flag='-r'
4232fi
4233{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4234$as_echo "$lt_cv_ld_reload_flag" >&6; }
4235reload_flag=$lt_cv_ld_reload_flag
4236case $reload_flag in
4237"" | " "*) ;;
4238*) reload_flag=" $reload_flag" ;;
4239esac
4240reload_cmds='$LD$reload_flag -o $output$reload_objs'
4241case $host_os in
4242  darwin*)
4243    if test "$GCC" = yes; then
4244      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4245    else
4246      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4247    fi
4248    ;;
4249esac
4250
4251{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4252$as_echo_n "checking for BSD-compatible nm... " >&6; }
4253if test "${lt_cv_path_NM+set}" = set; then
4254  $as_echo_n "(cached) " >&6
4255else
4256  if test -n "$NM"; then
4257  # Let the user override the test.
4258  lt_cv_path_NM="$NM"
4259else
4260  lt_nm_to_check="${ac_tool_prefix}nm"
4261  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4262    lt_nm_to_check="$lt_nm_to_check nm"
4263  fi
4264  for lt_tmp_nm in $lt_nm_to_check; do
4265    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4266    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4267      IFS="$lt_save_ifs"
4268      test -z "$ac_dir" && ac_dir=.
4269      tmp_nm="$ac_dir/$lt_tmp_nm"
4270      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4271	# Check to see if the nm accepts a BSD-compat flag.
4272	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4273	#   nm: unknown option "B" ignored
4274	# Tru64's nm complains that /dev/null is an invalid object file
4275	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4276	*/dev/null* | *'Invalid file or object type'*)
4277	  lt_cv_path_NM="$tmp_nm -B"
4278	  break
4279	  ;;
4280	*)
4281	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4282	  */dev/null*)
4283	    lt_cv_path_NM="$tmp_nm -p"
4284	    break
4285	    ;;
4286	  *)
4287	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4288	    continue # so that we can try to find one that supports BSD flags
4289	    ;;
4290	  esac
4291	  ;;
4292	esac
4293      fi
4294    done
4295    IFS="$lt_save_ifs"
4296  done
4297  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4298fi
4299fi
4300{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4301$as_echo "$lt_cv_path_NM" >&6; }
4302NM="$lt_cv_path_NM"
4303
4304{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4305$as_echo_n "checking whether ln -s works... " >&6; }
4306LN_S=$as_ln_s
4307if test "$LN_S" = "ln -s"; then
4308  { $as_echo "$as_me:$LINENO: result: yes" >&5
4309$as_echo "yes" >&6; }
4310else
4311  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4312$as_echo "no, using $LN_S" >&6; }
4313fi
4314
4315{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4316$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4317if test "${lt_cv_deplibs_check_method+set}" = set; then
4318  $as_echo_n "(cached) " >&6
4319else
4320  lt_cv_file_magic_cmd='$MAGIC_CMD'
4321lt_cv_file_magic_test_file=
4322lt_cv_deplibs_check_method='unknown'
4323# Need to set the preceding variable on all platforms that support
4324# interlibrary dependencies.
4325# 'none' -- dependencies not supported.
4326# `unknown' -- same as none, but documents that we really don't know.
4327# 'pass_all' -- all dependencies passed with no checks.
4328# 'test_compile' -- check by making test program.
4329# 'file_magic [[regex]]' -- check by looking for files in library path
4330# which responds to the $file_magic_cmd with a given extended regex.
4331# If you have `file' or equivalent on your system and you're not sure
4332# whether `pass_all' will *always* work, you probably want this one.
4333
4334case $host_os in
4335aix[4-9]*)
4336  lt_cv_deplibs_check_method=pass_all
4337  ;;
4338
4339beos*)
4340  lt_cv_deplibs_check_method=pass_all
4341  ;;
4342
4343bsdi[45]*)
4344  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4345  lt_cv_file_magic_cmd='/usr/bin/file -L'
4346  lt_cv_file_magic_test_file=/shlib/libc.so
4347  ;;
4348
4349cygwin*)
4350  # func_win32_libid is a shell function defined in ltmain.sh
4351  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4352  lt_cv_file_magic_cmd='func_win32_libid'
4353  ;;
4354
4355mingw* | pw32*)
4356  # Base MSYS/MinGW do not provide the 'file' command needed by
4357  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4358  # unless we find 'file', for example because we are cross-compiling.
4359  if ( file / ) >/dev/null 2>&1; then
4360    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4361    lt_cv_file_magic_cmd='func_win32_libid'
4362  else
4363    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4364    lt_cv_file_magic_cmd='$OBJDUMP -f'
4365  fi
4366  ;;
4367
4368darwin* | rhapsody*)
4369  lt_cv_deplibs_check_method=pass_all
4370  ;;
4371
4372freebsd* | dragonfly*)
4373  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4374    case $host_cpu in
4375    i*86 )
4376      # Not sure whether the presence of OpenBSD here was a mistake.
4377      # Let's accept both of them until this is cleared up.
4378      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4379      lt_cv_file_magic_cmd=/usr/bin/file
4380      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4381      ;;
4382    esac
4383  else
4384    lt_cv_deplibs_check_method=pass_all
4385  fi
4386  ;;
4387
4388gnu*)
4389  lt_cv_deplibs_check_method=pass_all
4390  ;;
4391
4392hpux10.20* | hpux11*)
4393  lt_cv_file_magic_cmd=/usr/bin/file
4394  case $host_cpu in
4395  ia64*)
4396    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4397    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4398    ;;
4399  hppa*64*)
4400    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]'
4401    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4402    ;;
4403  *)
4404    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4405    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4406    ;;
4407  esac
4408  ;;
4409
4410interix[3-9]*)
4411  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4412  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4413  ;;
4414
4415irix5* | irix6* | nonstopux*)
4416  case $LD in
4417  *-32|*"-32 ") libmagic=32-bit;;
4418  *-n32|*"-n32 ") libmagic=N32;;
4419  *-64|*"-64 ") libmagic=64-bit;;
4420  *) libmagic=never-match;;
4421  esac
4422  lt_cv_deplibs_check_method=pass_all
4423  ;;
4424
4425# This must be Linux ELF.
4426linux* | k*bsd*-gnu)
4427  lt_cv_deplibs_check_method=pass_all
4428  ;;
4429
4430netbsd*)
4431  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4432    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4433  else
4434    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4435  fi
4436  ;;
4437
4438newos6*)
4439  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4440  lt_cv_file_magic_cmd=/usr/bin/file
4441  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4442  ;;
4443
4444nto-qnx*)
4445  lt_cv_deplibs_check_method=unknown
4446  ;;
4447
4448openbsd*)
4449  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4450    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4451  else
4452    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4453  fi
4454  ;;
4455
4456osf3* | osf4* | osf5*)
4457  lt_cv_deplibs_check_method=pass_all
4458  ;;
4459
4460rdos*)
4461  lt_cv_deplibs_check_method=pass_all
4462  ;;
4463
4464solaris*)
4465  lt_cv_deplibs_check_method=pass_all
4466  ;;
4467
4468sysv4 | sysv4.3*)
4469  case $host_vendor in
4470  motorola)
4471    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]'
4472    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4473    ;;
4474  ncr)
4475    lt_cv_deplibs_check_method=pass_all
4476    ;;
4477  sequent)
4478    lt_cv_file_magic_cmd='/bin/file'
4479    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4480    ;;
4481  sni)
4482    lt_cv_file_magic_cmd='/bin/file'
4483    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4484    lt_cv_file_magic_test_file=/lib/libc.so
4485    ;;
4486  siemens)
4487    lt_cv_deplibs_check_method=pass_all
4488    ;;
4489  pc)
4490    lt_cv_deplibs_check_method=pass_all
4491    ;;
4492  esac
4493  ;;
4494
4495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4496  lt_cv_deplibs_check_method=pass_all
4497  ;;
4498esac
4499
4500fi
4501{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4502$as_echo "$lt_cv_deplibs_check_method" >&6; }
4503file_magic_cmd=$lt_cv_file_magic_cmd
4504deplibs_check_method=$lt_cv_deplibs_check_method
4505test -z "$deplibs_check_method" && deplibs_check_method=unknown
4506
4507
4508
4509
4510# If no C compiler was specified, use CC.
4511LTCC=${LTCC-"$CC"}
4512
4513# If no C compiler flags were specified, use CFLAGS.
4514LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4515
4516# Allow CC to be a program name with arguments.
4517compiler=$CC
4518
4519
4520# Check whether --enable-libtool-lock was given.
4521if test "${enable_libtool_lock+set}" = set; then
4522  enableval=$enable_libtool_lock;
4523fi
4524
4525test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4526
4527# Some flags need to be propagated to the compiler or linker for good
4528# libtool support.
4529case $host in
4530ia64-*-hpux*)
4531  # Find out which ABI we are using.
4532  echo 'int i;' > conftest.$ac_ext
4533  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534  (eval $ac_compile) 2>&5
4535  ac_status=$?
4536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); }; then
4538    case `/usr/bin/file conftest.$ac_objext` in
4539    *ELF-32*)
4540      HPUX_IA64_MODE="32"
4541      ;;
4542    *ELF-64*)
4543      HPUX_IA64_MODE="64"
4544      ;;
4545    esac
4546  fi
4547  rm -rf conftest*
4548  ;;
4549*-*-irix6*)
4550  # Find out which ABI we are using.
4551  echo '#line 4551 "configure"' > conftest.$ac_ext
4552  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553  (eval $ac_compile) 2>&5
4554  ac_status=$?
4555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; then
4557   if test "$lt_cv_prog_gnu_ld" = yes; then
4558    case `/usr/bin/file conftest.$ac_objext` in
4559    *32-bit*)
4560      LD="${LD-ld} -melf32bsmip"
4561      ;;
4562    *N32*)
4563      LD="${LD-ld} -melf32bmipn32"
4564      ;;
4565    *64-bit*)
4566      LD="${LD-ld} -melf64bmip"
4567      ;;
4568    esac
4569   else
4570    case `/usr/bin/file conftest.$ac_objext` in
4571    *32-bit*)
4572      LD="${LD-ld} -32"
4573      ;;
4574    *N32*)
4575      LD="${LD-ld} -n32"
4576      ;;
4577    *64-bit*)
4578      LD="${LD-ld} -64"
4579      ;;
4580    esac
4581   fi
4582  fi
4583  rm -rf conftest*
4584  ;;
4585
4586x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4587s390*-*linux*|sparc*-*linux*)
4588  # Find out which ABI we are using.
4589  echo 'int i;' > conftest.$ac_ext
4590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591  (eval $ac_compile) 2>&5
4592  ac_status=$?
4593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; then
4595    case `/usr/bin/file conftest.o` in
4596    *32-bit*)
4597      case $host in
4598        x86_64-*kfreebsd*-gnu)
4599          LD="${LD-ld} -m elf_i386_fbsd"
4600          ;;
4601        x86_64-*linux*)
4602          LD="${LD-ld} -m elf_i386"
4603          ;;
4604        ppc64-*linux*|powerpc64-*linux*)
4605          LD="${LD-ld} -m elf32ppclinux"
4606          ;;
4607        s390x-*linux*)
4608          LD="${LD-ld} -m elf_s390"
4609          ;;
4610        sparc64-*linux*)
4611          LD="${LD-ld} -m elf32_sparc"
4612          ;;
4613      esac
4614      ;;
4615    *64-bit*)
4616      case $host in
4617        x86_64-*kfreebsd*-gnu)
4618          LD="${LD-ld} -m elf_x86_64_fbsd"
4619          ;;
4620        x86_64-*linux*)
4621          LD="${LD-ld} -m elf_x86_64"
4622          ;;
4623        ppc*-*linux*|powerpc*-*linux*)
4624          LD="${LD-ld} -m elf64ppc"
4625          ;;
4626        s390*-*linux*)
4627          LD="${LD-ld} -m elf64_s390"
4628          ;;
4629        sparc*-*linux*)
4630          LD="${LD-ld} -m elf64_sparc"
4631          ;;
4632      esac
4633      ;;
4634    esac
4635  fi
4636  rm -rf conftest*
4637  ;;
4638
4639*-*-sco3.2v5*)
4640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4641  SAVE_CFLAGS="$CFLAGS"
4642  CFLAGS="$CFLAGS -belf"
4643  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4644$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4645if test "${lt_cv_cc_needs_belf+set}" = set; then
4646  $as_echo_n "(cached) " >&6
4647else
4648  ac_ext=c
4649ac_cpp='$CPP $CPPFLAGS'
4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654     cat >conftest.$ac_ext <<_ACEOF
4655/* confdefs.h.  */
4656_ACEOF
4657cat confdefs.h >>conftest.$ac_ext
4658cat >>conftest.$ac_ext <<_ACEOF
4659/* end confdefs.h.  */
4660
4661int
4662main ()
4663{
4664
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669rm -f conftest.$ac_objext conftest$ac_exeext
4670if { (ac_try="$ac_link"
4671case "(($ac_try" in
4672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673  *) ac_try_echo=$ac_try;;
4674esac
4675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676$as_echo "$ac_try_echo") >&5
4677  (eval "$ac_link") 2>conftest.er1
4678  ac_status=$?
4679  grep -v '^ *+' conftest.er1 >conftest.err
4680  rm -f conftest.er1
4681  cat conftest.err >&5
4682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); } && {
4684	 test -z "$ac_c_werror_flag" ||
4685	 test ! -s conftest.err
4686       } && test -s conftest$ac_exeext && {
4687	 test "$cross_compiling" = yes ||
4688	 $as_test_x conftest$ac_exeext
4689       }; then
4690  lt_cv_cc_needs_belf=yes
4691else
4692  $as_echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695	lt_cv_cc_needs_belf=no
4696fi
4697
4698rm -rf conftest.dSYM
4699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4700      conftest$ac_exeext conftest.$ac_ext
4701     ac_ext=c
4702ac_cpp='$CPP $CPPFLAGS'
4703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706
4707fi
4708{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4709$as_echo "$lt_cv_cc_needs_belf" >&6; }
4710  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4711    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4712    CFLAGS="$SAVE_CFLAGS"
4713  fi
4714  ;;
4715sparc*-*solaris*)
4716  # Find out which ABI we are using.
4717  echo 'int i;' > conftest.$ac_ext
4718  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719  (eval $ac_compile) 2>&5
4720  ac_status=$?
4721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); }; then
4723    case `/usr/bin/file conftest.o` in
4724    *64-bit*)
4725      case $lt_cv_prog_gnu_ld in
4726      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4727      *)
4728        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4729	  LD="${LD-ld} -64"
4730	fi
4731	;;
4732      esac
4733      ;;
4734    esac
4735  fi
4736  rm -rf conftest*
4737  ;;
4738
4739
4740esac
4741
4742need_locks="$enable_libtool_lock"
4743
4744
4745ac_ext=c
4746ac_cpp='$CPP $CPPFLAGS'
4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4751$as_echo_n "checking how to run the C preprocessor... " >&6; }
4752# On Suns, sometimes $CPP names a directory.
4753if test -n "$CPP" && test -d "$CPP"; then
4754  CPP=
4755fi
4756if test -z "$CPP"; then
4757  if test "${ac_cv_prog_CPP+set}" = set; then
4758  $as_echo_n "(cached) " >&6
4759else
4760      # Double quotes because CPP needs to be expanded
4761    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4762    do
4763      ac_preproc_ok=false
4764for ac_c_preproc_warn_flag in '' yes
4765do
4766  # Use a header file that comes with gcc, so configuring glibc
4767  # with a fresh cross-compiler works.
4768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769  # <limits.h> exists even on freestanding compilers.
4770  # On the NeXT, cc -E runs the code through the compiler's parser,
4771  # not just through cpp. "Syntax error" is here to catch this case.
4772  cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h.  */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h.  */
4778#ifdef __STDC__
4779# include <limits.h>
4780#else
4781# include <assert.h>
4782#endif
4783		     Syntax error
4784_ACEOF
4785if { (ac_try="$ac_cpp conftest.$ac_ext"
4786case "(($ac_try" in
4787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788  *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791$as_echo "$ac_try_echo") >&5
4792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793  ac_status=$?
4794  grep -v '^ *+' conftest.er1 >conftest.err
4795  rm -f conftest.er1
4796  cat conftest.err >&5
4797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } >/dev/null && {
4799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800	 test ! -s conftest.err
4801       }; then
4802  :
4803else
4804  $as_echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807  # Broken: fails on valid input.
4808continue
4809fi
4810
4811rm -f conftest.err conftest.$ac_ext
4812
4813  # OK, works on sane cases.  Now check whether nonexistent headers
4814  # can be detected and how.
4815  cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h.  */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h.  */
4821#include <ac_nonexistent.h>
4822_ACEOF
4823if { (ac_try="$ac_cpp conftest.$ac_ext"
4824case "(($ac_try" in
4825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826  *) ac_try_echo=$ac_try;;
4827esac
4828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829$as_echo "$ac_try_echo") >&5
4830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831  ac_status=$?
4832  grep -v '^ *+' conftest.er1 >conftest.err
4833  rm -f conftest.er1
4834  cat conftest.err >&5
4835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } >/dev/null && {
4837	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838	 test ! -s conftest.err
4839       }; then
4840  # Broken: success on invalid input.
4841continue
4842else
4843  $as_echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846  # Passes both tests.
4847ac_preproc_ok=:
4848break
4849fi
4850
4851rm -f conftest.err conftest.$ac_ext
4852
4853done
4854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4855rm -f conftest.err conftest.$ac_ext
4856if $ac_preproc_ok; then
4857  break
4858fi
4859
4860    done
4861    ac_cv_prog_CPP=$CPP
4862
4863fi
4864  CPP=$ac_cv_prog_CPP
4865else
4866  ac_cv_prog_CPP=$CPP
4867fi
4868{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4869$as_echo "$CPP" >&6; }
4870ac_preproc_ok=false
4871for ac_c_preproc_warn_flag in '' yes
4872do
4873  # Use a header file that comes with gcc, so configuring glibc
4874  # with a fresh cross-compiler works.
4875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4876  # <limits.h> exists even on freestanding compilers.
4877  # On the NeXT, cc -E runs the code through the compiler's parser,
4878  # not just through cpp. "Syntax error" is here to catch this case.
4879  cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h.  */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h.  */
4885#ifdef __STDC__
4886# include <limits.h>
4887#else
4888# include <assert.h>
4889#endif
4890		     Syntax error
4891_ACEOF
4892if { (ac_try="$ac_cpp conftest.$ac_ext"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898$as_echo "$ac_try_echo") >&5
4899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4900  ac_status=$?
4901  grep -v '^ *+' conftest.er1 >conftest.err
4902  rm -f conftest.er1
4903  cat conftest.err >&5
4904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); } >/dev/null && {
4906	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4907	 test ! -s conftest.err
4908       }; then
4909  :
4910else
4911  $as_echo "$as_me: failed program was:" >&5
4912sed 's/^/| /' conftest.$ac_ext >&5
4913
4914  # Broken: fails on valid input.
4915continue
4916fi
4917
4918rm -f conftest.err conftest.$ac_ext
4919
4920  # OK, works on sane cases.  Now check whether nonexistent headers
4921  # can be detected and how.
4922  cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928#include <ac_nonexistent.h>
4929_ACEOF
4930if { (ac_try="$ac_cpp conftest.$ac_ext"
4931case "(($ac_try" in
4932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933  *) ac_try_echo=$ac_try;;
4934esac
4935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4936$as_echo "$ac_try_echo") >&5
4937  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4938  ac_status=$?
4939  grep -v '^ *+' conftest.er1 >conftest.err
4940  rm -f conftest.er1
4941  cat conftest.err >&5
4942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); } >/dev/null && {
4944	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4945	 test ! -s conftest.err
4946       }; then
4947  # Broken: success on invalid input.
4948continue
4949else
4950  $as_echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953  # Passes both tests.
4954ac_preproc_ok=:
4955break
4956fi
4957
4958rm -f conftest.err conftest.$ac_ext
4959
4960done
4961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962rm -f conftest.err conftest.$ac_ext
4963if $ac_preproc_ok; then
4964  :
4965else
4966  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4969See \`config.log' for more details." >&5
4970$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4971See \`config.log' for more details." >&2;}
4972   { (exit 1); exit 1; }; }; }
4973fi
4974
4975ac_ext=c
4976ac_cpp='$CPP $CPPFLAGS'
4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4983$as_echo_n "checking for ANSI C header files... " >&6; }
4984if test "${ac_cv_header_stdc+set}" = set; then
4985  $as_echo_n "(cached) " >&6
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <stdlib.h>
4994#include <stdarg.h>
4995#include <string.h>
4996#include <float.h>
4997
4998int
4999main ()
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (ac_try="$ac_compile"
5008case "(($ac_try" in
5009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010  *) ac_try_echo=$ac_try;;
5011esac
5012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5013$as_echo "$ac_try_echo") >&5
5014  (eval "$ac_compile") 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } && {
5021	 test -z "$ac_c_werror_flag" ||
5022	 test ! -s conftest.err
5023       } && test -s conftest.$ac_objext; then
5024  ac_cv_header_stdc=yes
5025else
5026  $as_echo "$as_me: failed program was:" >&5
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
5029	ac_cv_header_stdc=no
5030fi
5031
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
5034if test $ac_cv_header_stdc = yes; then
5035  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5036  cat >conftest.$ac_ext <<_ACEOF
5037/* confdefs.h.  */
5038_ACEOF
5039cat confdefs.h >>conftest.$ac_ext
5040cat >>conftest.$ac_ext <<_ACEOF
5041/* end confdefs.h.  */
5042#include <string.h>
5043
5044_ACEOF
5045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5046  $EGREP "memchr" >/dev/null 2>&1; then
5047  :
5048else
5049  ac_cv_header_stdc=no
5050fi
5051rm -f conftest*
5052
5053fi
5054
5055if test $ac_cv_header_stdc = yes; then
5056  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5057  cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063#include <stdlib.h>
5064
5065_ACEOF
5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067  $EGREP "free" >/dev/null 2>&1; then
5068  :
5069else
5070  ac_cv_header_stdc=no
5071fi
5072rm -f conftest*
5073
5074fi
5075
5076if test $ac_cv_header_stdc = yes; then
5077  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5078  if test "$cross_compiling" = yes; then
5079  :
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087#include <ctype.h>
5088#include <stdlib.h>
5089#if ((' ' & 0x0FF) == 0x020)
5090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5092#else
5093# define ISLOWER(c) \
5094		   (('a' <= (c) && (c) <= 'i') \
5095		     || ('j' <= (c) && (c) <= 'r') \
5096		     || ('s' <= (c) && (c) <= 'z'))
5097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5098#endif
5099
5100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5101int
5102main ()
5103{
5104  int i;
5105  for (i = 0; i < 256; i++)
5106    if (XOR (islower (i), ISLOWER (i))
5107	|| toupper (i) != TOUPPER (i))
5108      return 2;
5109  return 0;
5110}
5111_ACEOF
5112rm -f conftest$ac_exeext
5113if { (ac_try="$ac_link"
5114case "(($ac_try" in
5115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116  *) ac_try_echo=$ac_try;;
5117esac
5118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5119$as_echo "$ac_try_echo") >&5
5120  (eval "$ac_link") 2>&5
5121  ac_status=$?
5122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5124  { (case "(($ac_try" in
5125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126  *) ac_try_echo=$ac_try;;
5127esac
5128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129$as_echo "$ac_try_echo") >&5
5130  (eval "$ac_try") 2>&5
5131  ac_status=$?
5132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); }; }; then
5134  :
5135else
5136  $as_echo "$as_me: program exited with status $ac_status" >&5
5137$as_echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140( exit $ac_status )
5141ac_cv_header_stdc=no
5142fi
5143rm -rf conftest.dSYM
5144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145fi
5146
5147
5148fi
5149fi
5150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5151$as_echo "$ac_cv_header_stdc" >&6; }
5152if test $ac_cv_header_stdc = yes; then
5153
5154cat >>confdefs.h <<\_ACEOF
5155#define STDC_HEADERS 1
5156_ACEOF
5157
5158fi
5159
5160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5171		  inttypes.h stdint.h unistd.h
5172do
5173as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5175$as_echo_n "checking for $ac_header... " >&6; }
5176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177  $as_echo_n "(cached) " >&6
5178else
5179  cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h.  */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h.  */
5185$ac_includes_default
5186
5187#include <$ac_header>
5188_ACEOF
5189rm -f conftest.$ac_objext
5190if { (ac_try="$ac_compile"
5191case "(($ac_try" in
5192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193  *) ac_try_echo=$ac_try;;
5194esac
5195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5196$as_echo "$ac_try_echo") >&5
5197  (eval "$ac_compile") 2>conftest.er1
5198  ac_status=$?
5199  grep -v '^ *+' conftest.er1 >conftest.err
5200  rm -f conftest.er1
5201  cat conftest.err >&5
5202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); } && {
5204	 test -z "$ac_c_werror_flag" ||
5205	 test ! -s conftest.err
5206       } && test -s conftest.$ac_objext; then
5207  eval "$as_ac_Header=yes"
5208else
5209  $as_echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212	eval "$as_ac_Header=no"
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216fi
5217ac_res=`eval 'as_val=${'$as_ac_Header'}
5218		 $as_echo "$as_val"'`
5219	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5220$as_echo "$ac_res" >&6; }
5221as_val=`eval 'as_val=${'$as_ac_Header'}
5222		 $as_echo "$as_val"'`
5223   if test "x$as_val" = x""yes; then
5224  cat >>confdefs.h <<_ACEOF
5225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226_ACEOF
5227
5228fi
5229
5230done
5231
5232
5233
5234for ac_header in dlfcn.h
5235do
5236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5238  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5239$as_echo_n "checking for $ac_header... " >&6; }
5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5241  $as_echo_n "(cached) " >&6
5242fi
5243ac_res=`eval 'as_val=${'$as_ac_Header'}
5244		 $as_echo "$as_val"'`
5245	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5246$as_echo "$ac_res" >&6; }
5247else
5248  # Is the header compilable?
5249{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5250$as_echo_n "checking $ac_header usability... " >&6; }
5251cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h.  */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h.  */
5257$ac_includes_default
5258#include <$ac_header>
5259_ACEOF
5260rm -f conftest.$ac_objext
5261if { (ac_try="$ac_compile"
5262case "(($ac_try" in
5263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264  *) ac_try_echo=$ac_try;;
5265esac
5266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267$as_echo "$ac_try_echo") >&5
5268  (eval "$ac_compile") 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } && {
5275	 test -z "$ac_c_werror_flag" ||
5276	 test ! -s conftest.err
5277       } && test -s conftest.$ac_objext; then
5278  ac_header_compiler=yes
5279else
5280  $as_echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283	ac_header_compiler=no
5284fi
5285
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5288$as_echo "$ac_header_compiler" >&6; }
5289
5290# Is the header present?
5291{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5292$as_echo_n "checking $ac_header presence... " >&6; }
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299#include <$ac_header>
5300_ACEOF
5301if { (ac_try="$ac_cpp conftest.$ac_ext"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5307$as_echo "$ac_try_echo") >&5
5308  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309  ac_status=$?
5310  grep -v '^ *+' conftest.er1 >conftest.err
5311  rm -f conftest.er1
5312  cat conftest.err >&5
5313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314  (exit $ac_status); } >/dev/null && {
5315	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316	 test ! -s conftest.err
5317       }; then
5318  ac_header_preproc=yes
5319else
5320  $as_echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323  ac_header_preproc=no
5324fi
5325
5326rm -f conftest.err conftest.$ac_ext
5327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328$as_echo "$ac_header_preproc" >&6; }
5329
5330# So?  What about this header?
5331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5332  yes:no: )
5333    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337    ac_header_preproc=yes
5338    ;;
5339  no:yes:* )
5340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5343$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5347$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5352    ( cat <<\_ASBOX
5353## ---------------------------------------------------------------------- ##
5354## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5355## ---------------------------------------------------------------------- ##
5356_ASBOX
5357     ) | sed "s/^/$as_me: WARNING:     /" >&2
5358    ;;
5359esac
5360{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5361$as_echo_n "checking for $ac_header... " >&6; }
5362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363  $as_echo_n "(cached) " >&6
5364else
5365  eval "$as_ac_Header=\$ac_header_preproc"
5366fi
5367ac_res=`eval 'as_val=${'$as_ac_Header'}
5368		 $as_echo "$as_val"'`
5369	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5370$as_echo "$ac_res" >&6; }
5371
5372fi
5373as_val=`eval 'as_val=${'$as_ac_Header'}
5374		 $as_echo "$as_val"'`
5375   if test "x$as_val" = x""yes; then
5376  cat >>confdefs.h <<_ACEOF
5377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380fi
5381
5382done
5383
5384ac_ext=cpp
5385ac_cpp='$CXXCPP $CPPFLAGS'
5386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389if test -z "$CXX"; then
5390  if test -n "$CCC"; then
5391    CXX=$CCC
5392  else
5393    if test -n "$ac_tool_prefix"; then
5394  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5395  do
5396    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if test "${ac_cv_prog_CXX+set}" = set; then
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$CXX"; then
5404  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411  for ac_exec_ext in '' $ac_executable_extensions; do
5412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5414    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423CXX=$ac_cv_prog_CXX
5424if test -n "$CXX"; then
5425  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5426$as_echo "$CXX" >&6; }
5427else
5428  { $as_echo "$as_me:$LINENO: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433    test -n "$CXX" && break
5434  done
5435fi
5436if test -z "$CXX"; then
5437  ac_ct_CXX=$CXX
5438  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5439do
5440  # Extract the first word of "$ac_prog", so it can be a program name with args.
5441set dummy $ac_prog; ac_word=$2
5442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5445  $as_echo_n "(cached) " >&6
5446else
5447  if test -n "$ac_ct_CXX"; then
5448  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455  for ac_exec_ext in '' $ac_executable_extensions; do
5456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457    ac_cv_prog_ac_ct_CXX="$ac_prog"
5458    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5468if test -n "$ac_ct_CXX"; then
5469  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5470$as_echo "$ac_ct_CXX" >&6; }
5471else
5472  { $as_echo "$as_me:$LINENO: result: no" >&5
5473$as_echo "no" >&6; }
5474fi
5475
5476
5477  test -n "$ac_ct_CXX" && break
5478done
5479
5480  if test "x$ac_ct_CXX" = x; then
5481    CXX="g++"
5482  else
5483    case $cross_compiling:$ac_tool_warned in
5484yes:)
5485{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487ac_tool_warned=yes ;;
5488esac
5489    CXX=$ac_ct_CXX
5490  fi
5491fi
5492
5493  fi
5494fi
5495# Provide some information about the compiler.
5496$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5497set X $ac_compile
5498ac_compiler=$2
5499{ (ac_try="$ac_compiler --version >&5"
5500case "(($ac_try" in
5501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502  *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505$as_echo "$ac_try_echo") >&5
5506  (eval "$ac_compiler --version >&5") 2>&5
5507  ac_status=$?
5508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }
5510{ (ac_try="$ac_compiler -v >&5"
5511case "(($ac_try" in
5512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513  *) ac_try_echo=$ac_try;;
5514esac
5515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516$as_echo "$ac_try_echo") >&5
5517  (eval "$ac_compiler -v >&5") 2>&5
5518  ac_status=$?
5519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }
5521{ (ac_try="$ac_compiler -V >&5"
5522case "(($ac_try" in
5523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524  *) ac_try_echo=$ac_try;;
5525esac
5526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5527$as_echo "$ac_try_echo") >&5
5528  (eval "$ac_compiler -V >&5") 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); }
5532
5533{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5534$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5535if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5536  $as_echo_n "(cached) " >&6
5537else
5538  cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h.  */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h.  */
5544
5545int
5546main ()
5547{
5548#ifndef __GNUC__
5549       choke me
5550#endif
5551
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (ac_try="$ac_compile"
5558case "(($ac_try" in
5559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560  *) ac_try_echo=$ac_try;;
5561esac
5562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563$as_echo "$ac_try_echo") >&5
5564  (eval "$ac_compile") 2>conftest.er1
5565  ac_status=$?
5566  grep -v '^ *+' conftest.er1 >conftest.err
5567  rm -f conftest.er1
5568  cat conftest.err >&5
5569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); } && {
5571	 test -z "$ac_cxx_werror_flag" ||
5572	 test ! -s conftest.err
5573       } && test -s conftest.$ac_objext; then
5574  ac_compiler_gnu=yes
5575else
5576  $as_echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579	ac_compiler_gnu=no
5580fi
5581
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5584
5585fi
5586{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5587$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5588if test $ac_compiler_gnu = yes; then
5589  GXX=yes
5590else
5591  GXX=
5592fi
5593ac_test_CXXFLAGS=${CXXFLAGS+set}
5594ac_save_CXXFLAGS=$CXXFLAGS
5595{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5596$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5597if test "${ac_cv_prog_cxx_g+set}" = set; then
5598  $as_echo_n "(cached) " >&6
5599else
5600  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5601   ac_cxx_werror_flag=yes
5602   ac_cv_prog_cxx_g=no
5603   CXXFLAGS="-g"
5604   cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610
5611int
5612main ()
5613{
5614
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623  *) ac_try_echo=$ac_try;;
5624esac
5625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626$as_echo "$ac_try_echo") >&5
5627  (eval "$ac_compile") 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } && {
5634	 test -z "$ac_cxx_werror_flag" ||
5635	 test ! -s conftest.err
5636       } && test -s conftest.$ac_objext; then
5637  ac_cv_prog_cxx_g=yes
5638else
5639  $as_echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642	CXXFLAGS=""
5643      cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h.  */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h.  */
5649
5650int
5651main ()
5652{
5653
5654  ;
5655  return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (ac_try="$ac_compile"
5660case "(($ac_try" in
5661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662  *) ac_try_echo=$ac_try;;
5663esac
5664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5665$as_echo "$ac_try_echo") >&5
5666  (eval "$ac_compile") 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } && {
5673	 test -z "$ac_cxx_werror_flag" ||
5674	 test ! -s conftest.err
5675       } && test -s conftest.$ac_objext; then
5676  :
5677else
5678  $as_echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5682	 CXXFLAGS="-g"
5683	 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h.  */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h.  */
5689
5690int
5691main ()
5692{
5693
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext
5699if { (ac_try="$ac_compile"
5700case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705$as_echo "$ac_try_echo") >&5
5706  (eval "$ac_compile") 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } && {
5713	 test -z "$ac_cxx_werror_flag" ||
5714	 test ! -s conftest.err
5715       } && test -s conftest.$ac_objext; then
5716  ac_cv_prog_cxx_g=yes
5717else
5718  $as_echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
5721
5722fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728fi
5729
5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732fi
5733{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5734$as_echo "$ac_cv_prog_cxx_g" >&6; }
5735if test "$ac_test_CXXFLAGS" = set; then
5736  CXXFLAGS=$ac_save_CXXFLAGS
5737elif test $ac_cv_prog_cxx_g = yes; then
5738  if test "$GXX" = yes; then
5739    CXXFLAGS="-g -O2"
5740  else
5741    CXXFLAGS="-g"
5742  fi
5743else
5744  if test "$GXX" = yes; then
5745    CXXFLAGS="-O2"
5746  else
5747    CXXFLAGS=
5748  fi
5749fi
5750ac_ext=cpp
5751ac_cpp='$CXXCPP $CPPFLAGS'
5752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5755
5756depcc="$CXX"  am_compiler_list=
5757
5758{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5759$as_echo_n "checking dependency style of $depcc... " >&6; }
5760if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5764  # We make a subdir and do the tests there.  Otherwise we can end up
5765  # making bogus files that we don't know about and never remove.  For
5766  # instance it was reported that on HP-UX the gcc test will end up
5767  # making a dummy file named `D' -- because `-MD' means `put the output
5768  # in D'.
5769  mkdir conftest.dir
5770  # Copy depcomp to subdir because otherwise we won't find it if we're
5771  # using a relative directory.
5772  cp "$am_depcomp" conftest.dir
5773  cd conftest.dir
5774  # We will build objects and dependencies in a subdirectory because
5775  # it helps to detect inapplicable dependency modes.  For instance
5776  # both Tru64's cc and ICC support -MD to output dependencies as a
5777  # side effect of compilation, but ICC will put the dependencies in
5778  # the current directory while Tru64 will put them in the object
5779  # directory.
5780  mkdir sub
5781
5782  am_cv_CXX_dependencies_compiler_type=none
5783  if test "$am_compiler_list" = ""; then
5784     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5785  fi
5786  am__universal=false
5787  case " $depcc " in #(
5788     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5789     esac
5790
5791  for depmode in $am_compiler_list; do
5792    # Setup a source with many dependencies, because some compilers
5793    # like to wrap large dependency lists on column 80 (with \), and
5794    # we should not choose a depcomp mode which is confused by this.
5795    #
5796    # We need to recreate these files for each test, as the compiler may
5797    # overwrite some of them when testing with obscure command lines.
5798    # This happens at least with the AIX C compiler.
5799    : > sub/conftest.c
5800    for i in 1 2 3 4 5 6; do
5801      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5802      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5803      # Solaris 8's {/usr,}/bin/sh.
5804      touch sub/conftst$i.h
5805    done
5806    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5807
5808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809    # mode.  It turns out that the SunPro C++ compiler does not properly
5810    # handle `-M -o', and we need to detect this.  Also, some Intel
5811    # versions had trouble with output in subdirs
5812    am__obj=sub/conftest.${OBJEXT-o}
5813    am__minus_obj="-o $am__obj"
5814    case $depmode in
5815    gcc)
5816      # This depmode causes a compiler race in universal mode.
5817      test "$am__universal" = false || continue
5818      ;;
5819    nosideeffect)
5820      # after this tag, mechanisms are not by side-effect, so they'll
5821      # only be used when explicitly requested
5822      if test "x$enable_dependency_tracking" = xyes; then
5823	continue
5824      else
5825	break
5826      fi
5827      ;;
5828    msvisualcpp | msvcmsys)
5829      # This compiler won't grok `-c -o', but also, the minuso test has
5830      # not run yet.  These depmodes are late enough in the game, and
5831      # so weak that their functioning should not be impacted.
5832      am__obj=conftest.${OBJEXT-o}
5833      am__minus_obj=
5834      ;;
5835    none) break ;;
5836    esac
5837    if depmode=$depmode \
5838       source=sub/conftest.c object=$am__obj \
5839       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5840       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5841         >/dev/null 2>conftest.err &&
5842       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5843       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5844       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5845       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5846      # icc doesn't choke on unknown options, it will just issue warnings
5847      # or remarks (even with -Werror).  So we grep stderr for any message
5848      # that says an option was ignored or not supported.
5849      # When given -MP, icc 7.0 and 7.1 complain thusly:
5850      #   icc: Command line warning: ignoring option '-M'; no argument required
5851      # The diagnosis changed in icc 8.0:
5852      #   icc: Command line remark: option '-MP' not supported
5853      if (grep 'ignoring option' conftest.err ||
5854          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5855        am_cv_CXX_dependencies_compiler_type=$depmode
5856        break
5857      fi
5858    fi
5859  done
5860
5861  cd ..
5862  rm -rf conftest.dir
5863else
5864  am_cv_CXX_dependencies_compiler_type=none
5865fi
5866
5867fi
5868{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5869$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5870CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5871
5872 if
5873  test "x$enable_dependency_tracking" != xno \
5874  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5875  am__fastdepCXX_TRUE=
5876  am__fastdepCXX_FALSE='#'
5877else
5878  am__fastdepCXX_TRUE='#'
5879  am__fastdepCXX_FALSE=
5880fi
5881
5882
5883
5884
5885if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5886    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5887    (test "X$CXX" != "Xg++"))) ; then
5888  ac_ext=cpp
5889ac_cpp='$CXXCPP $CPPFLAGS'
5890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5893{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5894$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5895if test -z "$CXXCPP"; then
5896  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5897  $as_echo_n "(cached) " >&6
5898else
5899      # Double quotes because CXXCPP needs to be expanded
5900    for CXXCPP in "$CXX -E" "/lib/cpp"
5901    do
5902      ac_preproc_ok=false
5903for ac_cxx_preproc_warn_flag in '' yes
5904do
5905  # Use a header file that comes with gcc, so configuring glibc
5906  # with a fresh cross-compiler works.
5907  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5908  # <limits.h> exists even on freestanding compilers.
5909  # On the NeXT, cc -E runs the code through the compiler's parser,
5910  # not just through cpp. "Syntax error" is here to catch this case.
5911  cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h.  */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h.  */
5917#ifdef __STDC__
5918# include <limits.h>
5919#else
5920# include <assert.h>
5921#endif
5922		     Syntax error
5923_ACEOF
5924if { (ac_try="$ac_cpp conftest.$ac_ext"
5925case "(($ac_try" in
5926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927  *) ac_try_echo=$ac_try;;
5928esac
5929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5930$as_echo "$ac_try_echo") >&5
5931  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932  ac_status=$?
5933  grep -v '^ *+' conftest.er1 >conftest.err
5934  rm -f conftest.er1
5935  cat conftest.err >&5
5936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937  (exit $ac_status); } >/dev/null && {
5938	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939	 test ! -s conftest.err
5940       }; then
5941  :
5942else
5943  $as_echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946  # Broken: fails on valid input.
5947continue
5948fi
5949
5950rm -f conftest.err conftest.$ac_ext
5951
5952  # OK, works on sane cases.  Now check whether nonexistent headers
5953  # can be detected and how.
5954  cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960#include <ac_nonexistent.h>
5961_ACEOF
5962if { (ac_try="$ac_cpp conftest.$ac_ext"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968$as_echo "$ac_try_echo") >&5
5969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5970  ac_status=$?
5971  grep -v '^ *+' conftest.er1 >conftest.err
5972  rm -f conftest.er1
5973  cat conftest.err >&5
5974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); } >/dev/null && {
5976	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5977	 test ! -s conftest.err
5978       }; then
5979  # Broken: success on invalid input.
5980continue
5981else
5982  $as_echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985  # Passes both tests.
5986ac_preproc_ok=:
5987break
5988fi
5989
5990rm -f conftest.err conftest.$ac_ext
5991
5992done
5993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994rm -f conftest.err conftest.$ac_ext
5995if $ac_preproc_ok; then
5996  break
5997fi
5998
5999    done
6000    ac_cv_prog_CXXCPP=$CXXCPP
6001
6002fi
6003  CXXCPP=$ac_cv_prog_CXXCPP
6004else
6005  ac_cv_prog_CXXCPP=$CXXCPP
6006fi
6007{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6008$as_echo "$CXXCPP" >&6; }
6009ac_preproc_ok=false
6010for ac_cxx_preproc_warn_flag in '' yes
6011do
6012  # Use a header file that comes with gcc, so configuring glibc
6013  # with a fresh cross-compiler works.
6014  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6015  # <limits.h> exists even on freestanding compilers.
6016  # On the NeXT, cc -E runs the code through the compiler's parser,
6017  # not just through cpp. "Syntax error" is here to catch this case.
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024#ifdef __STDC__
6025# include <limits.h>
6026#else
6027# include <assert.h>
6028#endif
6029		     Syntax error
6030_ACEOF
6031if { (ac_try="$ac_cpp conftest.$ac_ext"
6032case "(($ac_try" in
6033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034  *) ac_try_echo=$ac_try;;
6035esac
6036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6037$as_echo "$ac_try_echo") >&5
6038  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } >/dev/null && {
6045	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046	 test ! -s conftest.err
6047       }; then
6048  :
6049else
6050  $as_echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053  # Broken: fails on valid input.
6054continue
6055fi
6056
6057rm -f conftest.err conftest.$ac_ext
6058
6059  # OK, works on sane cases.  Now check whether nonexistent headers
6060  # can be detected and how.
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067#include <ac_nonexistent.h>
6068_ACEOF
6069if { (ac_try="$ac_cpp conftest.$ac_ext"
6070case "(($ac_try" in
6071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072  *) ac_try_echo=$ac_try;;
6073esac
6074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075$as_echo "$ac_try_echo") >&5
6076  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077  ac_status=$?
6078  grep -v '^ *+' conftest.er1 >conftest.err
6079  rm -f conftest.er1
6080  cat conftest.err >&5
6081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); } >/dev/null && {
6083	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084	 test ! -s conftest.err
6085       }; then
6086  # Broken: success on invalid input.
6087continue
6088else
6089  $as_echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092  # Passes both tests.
6093ac_preproc_ok=:
6094break
6095fi
6096
6097rm -f conftest.err conftest.$ac_ext
6098
6099done
6100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101rm -f conftest.err conftest.$ac_ext
6102if $ac_preproc_ok; then
6103  :
6104else
6105  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6107{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6108See \`config.log' for more details." >&5
6109$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6110See \`config.log' for more details." >&2;}
6111   { (exit 1); exit 1; }; }; }
6112fi
6113
6114ac_ext=cpp
6115ac_cpp='$CXXCPP $CPPFLAGS'
6116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6119
6120fi
6121
6122
6123ac_ext=f
6124ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6125ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6127if test -n "$ac_tool_prefix"; then
6128  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6129  do
6130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_F77+set}" = set; then
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$F77"; then
6138  ac_cv_prog_F77="$F77" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145  for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157F77=$ac_cv_prog_F77
6158if test -n "$F77"; then
6159  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6160$as_echo "$F77" >&6; }
6161else
6162  { $as_echo "$as_me:$LINENO: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167    test -n "$F77" && break
6168  done
6169fi
6170if test -z "$F77"; then
6171  ac_ct_F77=$F77
6172  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6173do
6174  # Extract the first word of "$ac_prog", so it can be a program name with args.
6175set dummy $ac_prog; ac_word=$2
6176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6179  $as_echo_n "(cached) " >&6
6180else
6181  if test -n "$ac_ct_F77"; then
6182  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189  for ac_exec_ext in '' $ac_executable_extensions; do
6190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191    ac_cv_prog_ac_ct_F77="$ac_prog"
6192    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201ac_ct_F77=$ac_cv_prog_ac_ct_F77
6202if test -n "$ac_ct_F77"; then
6203  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6204$as_echo "$ac_ct_F77" >&6; }
6205else
6206  { $as_echo "$as_me:$LINENO: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211  test -n "$ac_ct_F77" && break
6212done
6213
6214  if test "x$ac_ct_F77" = x; then
6215    F77=""
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221ac_tool_warned=yes ;;
6222esac
6223    F77=$ac_ct_F77
6224  fi
6225fi
6226
6227
6228# Provide some information about the compiler.
6229$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6230set X $ac_compile
6231ac_compiler=$2
6232{ (ac_try="$ac_compiler --version >&5"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
6239  (eval "$ac_compiler --version >&5") 2>&5
6240  ac_status=$?
6241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }
6243{ (ac_try="$ac_compiler -v >&5"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249$as_echo "$ac_try_echo") >&5
6250  (eval "$ac_compiler -v >&5") 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); }
6254{ (ac_try="$ac_compiler -V >&5"
6255case "(($ac_try" in
6256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257  *) ac_try_echo=$ac_try;;
6258esac
6259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6260$as_echo "$ac_try_echo") >&5
6261  (eval "$ac_compiler -V >&5") 2>&5
6262  ac_status=$?
6263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }
6265rm -f a.out
6266
6267# If we don't use `.F' as extension, the preprocessor is not run on the
6268# input file.  (Note that this only needs to work for GNU compilers.)
6269ac_save_ext=$ac_ext
6270ac_ext=F
6271{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6272$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6273if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6274  $as_echo_n "(cached) " >&6
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277      program main
6278#ifndef __GNUC__
6279       choke me
6280#endif
6281
6282      end
6283_ACEOF
6284rm -f conftest.$ac_objext
6285if { (ac_try="$ac_compile"
6286case "(($ac_try" in
6287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288  *) ac_try_echo=$ac_try;;
6289esac
6290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291$as_echo "$ac_try_echo") >&5
6292  (eval "$ac_compile") 2>conftest.er1
6293  ac_status=$?
6294  grep -v '^ *+' conftest.er1 >conftest.err
6295  rm -f conftest.er1
6296  cat conftest.err >&5
6297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); } && {
6299	 test -z "$ac_f77_werror_flag" ||
6300	 test ! -s conftest.err
6301       } && test -s conftest.$ac_objext; then
6302  ac_compiler_gnu=yes
6303else
6304  $as_echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307	ac_compiler_gnu=no
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6312
6313fi
6314{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6315$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6316ac_ext=$ac_save_ext
6317ac_test_FFLAGS=${FFLAGS+set}
6318ac_save_FFLAGS=$FFLAGS
6319FFLAGS=
6320{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6321$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6322if test "${ac_cv_prog_f77_g+set}" = set; then
6323  $as_echo_n "(cached) " >&6
6324else
6325  FFLAGS=-g
6326cat >conftest.$ac_ext <<_ACEOF
6327      program main
6328
6329      end
6330_ACEOF
6331rm -f conftest.$ac_objext
6332if { (ac_try="$ac_compile"
6333case "(($ac_try" in
6334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335  *) ac_try_echo=$ac_try;;
6336esac
6337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6338$as_echo "$ac_try_echo") >&5
6339  (eval "$ac_compile") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } && {
6346	 test -z "$ac_f77_werror_flag" ||
6347	 test ! -s conftest.err
6348       } && test -s conftest.$ac_objext; then
6349  ac_cv_prog_f77_g=yes
6350else
6351  $as_echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354	ac_cv_prog_f77_g=no
6355fi
6356
6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359fi
6360{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6361$as_echo "$ac_cv_prog_f77_g" >&6; }
6362if test "$ac_test_FFLAGS" = set; then
6363  FFLAGS=$ac_save_FFLAGS
6364elif test $ac_cv_prog_f77_g = yes; then
6365  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366    FFLAGS="-g -O2"
6367  else
6368    FFLAGS="-g"
6369  fi
6370else
6371  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6372    FFLAGS="-O2"
6373  else
6374    FFLAGS=
6375  fi
6376fi
6377
6378if test $ac_compiler_gnu = yes; then
6379  G77=yes
6380else
6381  G77=
6382fi
6383ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389
6390
6391# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6392# find the maximum length of command line arguments
6393{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6394$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6395if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6396  $as_echo_n "(cached) " >&6
6397else
6398    i=0
6399  teststring="ABCD"
6400
6401  case $build_os in
6402  msdosdjgpp*)
6403    # On DJGPP, this test can blow up pretty badly due to problems in libc
6404    # (any single argument exceeding 2000 bytes causes a buffer overrun
6405    # during glob expansion).  Even if it were fixed, the result of this
6406    # check would be larger than it should be.
6407    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6408    ;;
6409
6410  gnu*)
6411    # Under GNU Hurd, this test is not required because there is
6412    # no limit to the length of command line arguments.
6413    # Libtool will interpret -1 as no limit whatsoever
6414    lt_cv_sys_max_cmd_len=-1;
6415    ;;
6416
6417  cygwin* | mingw*)
6418    # On Win9x/ME, this test blows up -- it succeeds, but takes
6419    # about 5 minutes as the teststring grows exponentially.
6420    # Worse, since 9x/ME are not pre-emptively multitasking,
6421    # you end up with a "frozen" computer, even though with patience
6422    # the test eventually succeeds (with a max line length of 256k).
6423    # Instead, let's just punt: use the minimum linelength reported by
6424    # all of the supported platforms: 8192 (on NT/2K/XP).
6425    lt_cv_sys_max_cmd_len=8192;
6426    ;;
6427
6428  amigaos*)
6429    # On AmigaOS with pdksh, this test takes hours, literally.
6430    # So we just punt and use a minimum line length of 8192.
6431    lt_cv_sys_max_cmd_len=8192;
6432    ;;
6433
6434  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6435    # This has been around since 386BSD, at least.  Likely further.
6436    if test -x /sbin/sysctl; then
6437      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6438    elif test -x /usr/sbin/sysctl; then
6439      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6440    else
6441      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6442    fi
6443    # And add a safety zone
6444    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6446    ;;
6447
6448  interix*)
6449    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6450    lt_cv_sys_max_cmd_len=196608
6451    ;;
6452
6453  osf*)
6454    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6455    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6456    # nice to cause kernel panics so lets avoid the loop below.
6457    # First set a reasonable default.
6458    lt_cv_sys_max_cmd_len=16384
6459    #
6460    if test -x /sbin/sysconfig; then
6461      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6462        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6463      esac
6464    fi
6465    ;;
6466  sco3.2v5*)
6467    lt_cv_sys_max_cmd_len=102400
6468    ;;
6469  sysv5* | sco5v6* | sysv4.2uw2*)
6470    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6471    if test -n "$kargmax"; then
6472      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6473    else
6474      lt_cv_sys_max_cmd_len=32768
6475    fi
6476    ;;
6477  *)
6478    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6479    if test -n "$lt_cv_sys_max_cmd_len"; then
6480      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6482    else
6483      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6484      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6485	       = "XX$teststring") >/dev/null 2>&1 &&
6486	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6487	      lt_cv_sys_max_cmd_len=$new_result &&
6488	      test $i != 17 # 1/2 MB should be enough
6489      do
6490        i=`expr $i + 1`
6491        teststring=$teststring$teststring
6492      done
6493      teststring=
6494      # Add a significant safety factor because C++ compilers can tack on massive
6495      # amounts of additional arguments before passing them to the linker.
6496      # It appears as though 1/2 is a usable value.
6497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6498    fi
6499    ;;
6500  esac
6501
6502fi
6503
6504if test -n $lt_cv_sys_max_cmd_len ; then
6505  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6506$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6507else
6508  { $as_echo "$as_me:$LINENO: result: none" >&5
6509$as_echo "none" >&6; }
6510fi
6511
6512
6513
6514
6515
6516# Check for command to grab the raw symbol name followed by C symbol from nm.
6517{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6518$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6519if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6520  $as_echo_n "(cached) " >&6
6521else
6522
6523# These are sane defaults that work on at least a few old systems.
6524# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6525
6526# Character class describing NM global symbol codes.
6527symcode='[BCDEGRST]'
6528
6529# Regexp to match symbols that can be accessed directly from C.
6530sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531
6532# Transform an extracted symbol line into a proper C declaration
6533lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6534
6535# Transform an extracted symbol line into symbol name and symbol address
6536lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6537
6538# Define system-specific variables.
6539case $host_os in
6540aix*)
6541  symcode='[BCDT]'
6542  ;;
6543cygwin* | mingw* | pw32*)
6544  symcode='[ABCDGISTW]'
6545  ;;
6546hpux*) # Its linker distinguishes data from code symbols
6547  if test "$host_cpu" = ia64; then
6548    symcode='[ABCDEGRST]'
6549  fi
6550  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6552  ;;
6553linux* | k*bsd*-gnu)
6554  if test "$host_cpu" = ia64; then
6555    symcode='[ABCDGIRSTW]'
6556    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6557    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6558  fi
6559  ;;
6560irix* | nonstopux*)
6561  symcode='[BCDEGRST]'
6562  ;;
6563osf*)
6564  symcode='[BCDEGQRST]'
6565  ;;
6566solaris*)
6567  symcode='[BDRT]'
6568  ;;
6569sco3.2v5*)
6570  symcode='[DT]'
6571  ;;
6572sysv4.2uw2*)
6573  symcode='[DT]'
6574  ;;
6575sysv5* | sco5v6* | unixware* | OpenUNIX*)
6576  symcode='[ABDT]'
6577  ;;
6578sysv4)
6579  symcode='[DFNSTU]'
6580  ;;
6581esac
6582
6583# Handle CRLF in mingw tool chain
6584opt_cr=
6585case $build_os in
6586mingw*)
6587  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588  ;;
6589esac
6590
6591# If we're using GNU nm, then use its standard symbol codes.
6592case `$NM -V 2>&1` in
6593*GNU* | *'with BFD'*)
6594  symcode='[ABCDGIRSTW]' ;;
6595esac
6596
6597# Try without a prefix undercore, then with it.
6598for ac_symprfx in "" "_"; do
6599
6600  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6601  symxfrm="\\1 $ac_symprfx\\2 \\2"
6602
6603  # Write the raw and C identifiers.
6604  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6605
6606  # Check to see that the pipe works correctly.
6607  pipe_works=no
6608
6609  rm -f conftest*
6610  cat > conftest.$ac_ext <<EOF
6611#ifdef __cplusplus
6612extern "C" {
6613#endif
6614char nm_test_var;
6615void nm_test_func(){}
6616#ifdef __cplusplus
6617}
6618#endif
6619int main(){nm_test_var='a';nm_test_func();return(0);}
6620EOF
6621
6622  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623  (eval $ac_compile) 2>&5
6624  ac_status=$?
6625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }; then
6627    # Now try to grab the symbols.
6628    nlist=conftest.nm
6629    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6630  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6631  ac_status=$?
6632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } && test -s "$nlist"; then
6634      # Try sorting and uniquifying the output.
6635      if sort "$nlist" | uniq > "$nlist"T; then
6636	mv -f "$nlist"T "$nlist"
6637      else
6638	rm -f "$nlist"T
6639      fi
6640
6641      # Make sure that we snagged all the symbols we need.
6642      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6643	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6644	  cat <<EOF > conftest.$ac_ext
6645#ifdef __cplusplus
6646extern "C" {
6647#endif
6648
6649EOF
6650	  # Now generate the symbol file.
6651	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6652
6653	  cat <<EOF >> conftest.$ac_ext
6654#if defined (__STDC__) && __STDC__
6655# define lt_ptr_t void *
6656#else
6657# define lt_ptr_t char *
6658# define const
6659#endif
6660
6661/* The mapping between symbol names and symbols. */
6662const struct {
6663  const char *name;
6664  lt_ptr_t address;
6665}
6666lt_preloaded_symbols[] =
6667{
6668EOF
6669	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6670	  cat <<\EOF >> conftest.$ac_ext
6671  {0, (lt_ptr_t) 0}
6672};
6673
6674#ifdef __cplusplus
6675}
6676#endif
6677EOF
6678	  # Now try linking the two files.
6679	  mv conftest.$ac_objext conftstm.$ac_objext
6680	  lt_save_LIBS="$LIBS"
6681	  lt_save_CFLAGS="$CFLAGS"
6682	  LIBS="conftstm.$ac_objext"
6683	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6684	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685  (eval $ac_link) 2>&5
6686  ac_status=$?
6687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6689	    pipe_works=yes
6690	  fi
6691	  LIBS="$lt_save_LIBS"
6692	  CFLAGS="$lt_save_CFLAGS"
6693	else
6694	  echo "cannot find nm_test_func in $nlist" >&5
6695	fi
6696      else
6697	echo "cannot find nm_test_var in $nlist" >&5
6698      fi
6699    else
6700      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6701    fi
6702  else
6703    echo "$progname: failed program was:" >&5
6704    cat conftest.$ac_ext >&5
6705  fi
6706  rm -rf conftest* conftst*
6707
6708  # Do not use the global_symbol_pipe unless it works.
6709  if test "$pipe_works" = yes; then
6710    break
6711  else
6712    lt_cv_sys_global_symbol_pipe=
6713  fi
6714done
6715
6716fi
6717
6718if test -z "$lt_cv_sys_global_symbol_pipe"; then
6719  lt_cv_sys_global_symbol_to_cdecl=
6720fi
6721if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6722  { $as_echo "$as_me:$LINENO: result: failed" >&5
6723$as_echo "failed" >&6; }
6724else
6725  { $as_echo "$as_me:$LINENO: result: ok" >&5
6726$as_echo "ok" >&6; }
6727fi
6728
6729{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6730$as_echo_n "checking for objdir... " >&6; }
6731if test "${lt_cv_objdir+set}" = set; then
6732  $as_echo_n "(cached) " >&6
6733else
6734  rm -f .libs 2>/dev/null
6735mkdir .libs 2>/dev/null
6736if test -d .libs; then
6737  lt_cv_objdir=.libs
6738else
6739  # MS-DOS does not allow filenames that begin with a dot.
6740  lt_cv_objdir=_libs
6741fi
6742rmdir .libs 2>/dev/null
6743fi
6744{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6745$as_echo "$lt_cv_objdir" >&6; }
6746objdir=$lt_cv_objdir
6747
6748
6749
6750
6751
6752case $host_os in
6753aix3*)
6754  # AIX sometimes has problems with the GCC collect2 program.  For some
6755  # reason, if we set the COLLECT_NAMES environment variable, the problems
6756  # vanish in a puff of smoke.
6757  if test "X${COLLECT_NAMES+set}" != Xset; then
6758    COLLECT_NAMES=
6759    export COLLECT_NAMES
6760  fi
6761  ;;
6762esac
6763
6764# Sed substitution that helps us do robust quoting.  It backslashifies
6765# metacharacters that are still active within double-quoted strings.
6766Xsed='sed -e 1s/^X//'
6767sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6768
6769# Same as above, but do not quote variable references.
6770double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6771
6772# Sed substitution to delay expansion of an escaped shell variable in a
6773# double_quote_subst'ed string.
6774delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775
6776# Sed substitution to avoid accidental globbing in evaled expressions
6777no_glob_subst='s/\*/\\\*/g'
6778
6779# Constants:
6780rm="rm -f"
6781
6782# Global variables:
6783default_ofile=libtool
6784can_build_shared=yes
6785
6786# All known linkers require a `.a' archive for static linking (except MSVC,
6787# which needs '.lib').
6788libext=a
6789ltmain="$ac_aux_dir/ltmain.sh"
6790ofile="$default_ofile"
6791with_gnu_ld="$lt_cv_prog_gnu_ld"
6792
6793if test -n "$ac_tool_prefix"; then
6794  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6795set dummy ${ac_tool_prefix}ar; ac_word=$2
6796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if test "${ac_cv_prog_AR+set}" = set; then
6799  $as_echo_n "(cached) " >&6
6800else
6801  if test -n "$AR"; then
6802  ac_cv_prog_AR="$AR" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807  IFS=$as_save_IFS
6808  test -z "$as_dir" && as_dir=.
6809  for ac_exec_ext in '' $ac_executable_extensions; do
6810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811    ac_cv_prog_AR="${ac_tool_prefix}ar"
6812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813    break 2
6814  fi
6815done
6816done
6817IFS=$as_save_IFS
6818
6819fi
6820fi
6821AR=$ac_cv_prog_AR
6822if test -n "$AR"; then
6823  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6824$as_echo "$AR" >&6; }
6825else
6826  { $as_echo "$as_me:$LINENO: result: no" >&5
6827$as_echo "no" >&6; }
6828fi
6829
6830
6831fi
6832if test -z "$ac_cv_prog_AR"; then
6833  ac_ct_AR=$AR
6834  # Extract the first word of "ar", so it can be a program name with args.
6835set dummy ar; ac_word=$2
6836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6839  $as_echo_n "(cached) " >&6
6840else
6841  if test -n "$ac_ct_AR"; then
6842  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849  for ac_exec_ext in '' $ac_executable_extensions; do
6850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851    ac_cv_prog_ac_ct_AR="ar"
6852    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861ac_ct_AR=$ac_cv_prog_ac_ct_AR
6862if test -n "$ac_ct_AR"; then
6863  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6864$as_echo "$ac_ct_AR" >&6; }
6865else
6866  { $as_echo "$as_me:$LINENO: result: no" >&5
6867$as_echo "no" >&6; }
6868fi
6869
6870  if test "x$ac_ct_AR" = x; then
6871    AR="false"
6872  else
6873    case $cross_compiling:$ac_tool_warned in
6874yes:)
6875{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877ac_tool_warned=yes ;;
6878esac
6879    AR=$ac_ct_AR
6880  fi
6881else
6882  AR="$ac_cv_prog_AR"
6883fi
6884
6885if test -n "$ac_tool_prefix"; then
6886  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6887set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6889$as_echo_n "checking for $ac_word... " >&6; }
6890if test "${ac_cv_prog_RANLIB+set}" = set; then
6891  $as_echo_n "(cached) " >&6
6892else
6893  if test -n "$RANLIB"; then
6894  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899  IFS=$as_save_IFS
6900  test -z "$as_dir" && as_dir=.
6901  for ac_exec_ext in '' $ac_executable_extensions; do
6902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6904    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905    break 2
6906  fi
6907done
6908done
6909IFS=$as_save_IFS
6910
6911fi
6912fi
6913RANLIB=$ac_cv_prog_RANLIB
6914if test -n "$RANLIB"; then
6915  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6916$as_echo "$RANLIB" >&6; }
6917else
6918  { $as_echo "$as_me:$LINENO: result: no" >&5
6919$as_echo "no" >&6; }
6920fi
6921
6922
6923fi
6924if test -z "$ac_cv_prog_RANLIB"; then
6925  ac_ct_RANLIB=$RANLIB
6926  # Extract the first word of "ranlib", so it can be a program name with args.
6927set dummy ranlib; ac_word=$2
6928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6929$as_echo_n "checking for $ac_word... " >&6; }
6930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6931  $as_echo_n "(cached) " >&6
6932else
6933  if test -n "$ac_ct_RANLIB"; then
6934  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6935else
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939  IFS=$as_save_IFS
6940  test -z "$as_dir" && as_dir=.
6941  for ac_exec_ext in '' $ac_executable_extensions; do
6942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943    ac_cv_prog_ac_ct_RANLIB="ranlib"
6944    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945    break 2
6946  fi
6947done
6948done
6949IFS=$as_save_IFS
6950
6951fi
6952fi
6953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6954if test -n "$ac_ct_RANLIB"; then
6955  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6956$as_echo "$ac_ct_RANLIB" >&6; }
6957else
6958  { $as_echo "$as_me:$LINENO: result: no" >&5
6959$as_echo "no" >&6; }
6960fi
6961
6962  if test "x$ac_ct_RANLIB" = x; then
6963    RANLIB=":"
6964  else
6965    case $cross_compiling:$ac_tool_warned in
6966yes:)
6967{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969ac_tool_warned=yes ;;
6970esac
6971    RANLIB=$ac_ct_RANLIB
6972  fi
6973else
6974  RANLIB="$ac_cv_prog_RANLIB"
6975fi
6976
6977if test -n "$ac_tool_prefix"; then
6978  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6979set dummy ${ac_tool_prefix}strip; ac_word=$2
6980{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
6982if test "${ac_cv_prog_STRIP+set}" = set; then
6983  $as_echo_n "(cached) " >&6
6984else
6985  if test -n "$STRIP"; then
6986  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991  IFS=$as_save_IFS
6992  test -z "$as_dir" && as_dir=.
6993  for ac_exec_ext in '' $ac_executable_extensions; do
6994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6996    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997    break 2
6998  fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005STRIP=$ac_cv_prog_STRIP
7006if test -n "$STRIP"; then
7007  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7008$as_echo "$STRIP" >&6; }
7009else
7010  { $as_echo "$as_me:$LINENO: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014
7015fi
7016if test -z "$ac_cv_prog_STRIP"; then
7017  ac_ct_STRIP=$STRIP
7018  # Extract the first word of "strip", so it can be a program name with args.
7019set dummy strip; ac_word=$2
7020{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7021$as_echo_n "checking for $ac_word... " >&6; }
7022if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7023  $as_echo_n "(cached) " >&6
7024else
7025  if test -n "$ac_ct_STRIP"; then
7026  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7027else
7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031  IFS=$as_save_IFS
7032  test -z "$as_dir" && as_dir=.
7033  for ac_exec_ext in '' $ac_executable_extensions; do
7034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035    ac_cv_prog_ac_ct_STRIP="strip"
7036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7046if test -n "$ac_ct_STRIP"; then
7047  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7048$as_echo "$ac_ct_STRIP" >&6; }
7049else
7050  { $as_echo "$as_me:$LINENO: result: no" >&5
7051$as_echo "no" >&6; }
7052fi
7053
7054  if test "x$ac_ct_STRIP" = x; then
7055    STRIP=":"
7056  else
7057    case $cross_compiling:$ac_tool_warned in
7058yes:)
7059{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061ac_tool_warned=yes ;;
7062esac
7063    STRIP=$ac_ct_STRIP
7064  fi
7065else
7066  STRIP="$ac_cv_prog_STRIP"
7067fi
7068
7069
7070old_CC="$CC"
7071old_CFLAGS="$CFLAGS"
7072
7073# Set sane defaults for various variables
7074test -z "$AR" && AR=ar
7075test -z "$AR_FLAGS" && AR_FLAGS=cru
7076test -z "$AS" && AS=as
7077test -z "$CC" && CC=cc
7078test -z "$LTCC" && LTCC=$CC
7079test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7080test -z "$DLLTOOL" && DLLTOOL=dlltool
7081test -z "$LD" && LD=ld
7082test -z "$LN_S" && LN_S="ln -s"
7083test -z "$MAGIC_CMD" && MAGIC_CMD=file
7084test -z "$NM" && NM=nm
7085test -z "$SED" && SED=sed
7086test -z "$OBJDUMP" && OBJDUMP=objdump
7087test -z "$RANLIB" && RANLIB=:
7088test -z "$STRIP" && STRIP=:
7089test -z "$ac_objext" && ac_objext=o
7090
7091# Determine commands to create old-style static archives.
7092old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7093old_postinstall_cmds='chmod 644 $oldlib'
7094old_postuninstall_cmds=
7095
7096if test -n "$RANLIB"; then
7097  case $host_os in
7098  openbsd*)
7099    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7100    ;;
7101  *)
7102    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7103    ;;
7104  esac
7105  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7106fi
7107
7108for cc_temp in $compiler""; do
7109  case $cc_temp in
7110    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7111    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7112    \-*) ;;
7113    *) break;;
7114  esac
7115done
7116cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7117
7118
7119# Only perform the check for file, if the check method requires it
7120case $deplibs_check_method in
7121file_magic*)
7122  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7123    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7124$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7125if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7126  $as_echo_n "(cached) " >&6
7127else
7128  case $MAGIC_CMD in
7129[\\/*] |  ?:[\\/]*)
7130  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7131  ;;
7132*)
7133  lt_save_MAGIC_CMD="$MAGIC_CMD"
7134  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7135  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7136  for ac_dir in $ac_dummy; do
7137    IFS="$lt_save_ifs"
7138    test -z "$ac_dir" && ac_dir=.
7139    if test -f $ac_dir/${ac_tool_prefix}file; then
7140      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7141      if test -n "$file_magic_test_file"; then
7142	case $deplibs_check_method in
7143	"file_magic "*)
7144	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7145	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7146	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7147	    $EGREP "$file_magic_regex" > /dev/null; then
7148	    :
7149	  else
7150	    cat <<EOF 1>&2
7151
7152*** Warning: the command libtool uses to detect shared libraries,
7153*** $file_magic_cmd, produces output that libtool cannot recognize.
7154*** The result is that libtool may fail to recognize shared libraries
7155*** as such.  This will affect the creation of libtool libraries that
7156*** depend on shared libraries, but programs linked with such libtool
7157*** libraries will work regardless of this problem.  Nevertheless, you
7158*** may want to report the problem to your system manager and/or to
7159*** bug-libtool@gnu.org
7160
7161EOF
7162	  fi ;;
7163	esac
7164      fi
7165      break
7166    fi
7167  done
7168  IFS="$lt_save_ifs"
7169  MAGIC_CMD="$lt_save_MAGIC_CMD"
7170  ;;
7171esac
7172fi
7173
7174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175if test -n "$MAGIC_CMD"; then
7176  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7177$as_echo "$MAGIC_CMD" >&6; }
7178else
7179  { $as_echo "$as_me:$LINENO: result: no" >&5
7180$as_echo "no" >&6; }
7181fi
7182
7183if test -z "$lt_cv_path_MAGIC_CMD"; then
7184  if test -n "$ac_tool_prefix"; then
7185    { $as_echo "$as_me:$LINENO: checking for file" >&5
7186$as_echo_n "checking for file... " >&6; }
7187if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7188  $as_echo_n "(cached) " >&6
7189else
7190  case $MAGIC_CMD in
7191[\\/*] |  ?:[\\/]*)
7192  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7193  ;;
7194*)
7195  lt_save_MAGIC_CMD="$MAGIC_CMD"
7196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7198  for ac_dir in $ac_dummy; do
7199    IFS="$lt_save_ifs"
7200    test -z "$ac_dir" && ac_dir=.
7201    if test -f $ac_dir/file; then
7202      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7203      if test -n "$file_magic_test_file"; then
7204	case $deplibs_check_method in
7205	"file_magic "*)
7206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7207	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7209	    $EGREP "$file_magic_regex" > /dev/null; then
7210	    :
7211	  else
7212	    cat <<EOF 1>&2
7213
7214*** Warning: the command libtool uses to detect shared libraries,
7215*** $file_magic_cmd, produces output that libtool cannot recognize.
7216*** The result is that libtool may fail to recognize shared libraries
7217*** as such.  This will affect the creation of libtool libraries that
7218*** depend on shared libraries, but programs linked with such libtool
7219*** libraries will work regardless of this problem.  Nevertheless, you
7220*** may want to report the problem to your system manager and/or to
7221*** bug-libtool@gnu.org
7222
7223EOF
7224	  fi ;;
7225	esac
7226      fi
7227      break
7228    fi
7229  done
7230  IFS="$lt_save_ifs"
7231  MAGIC_CMD="$lt_save_MAGIC_CMD"
7232  ;;
7233esac
7234fi
7235
7236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7237if test -n "$MAGIC_CMD"; then
7238  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7239$as_echo "$MAGIC_CMD" >&6; }
7240else
7241  { $as_echo "$as_me:$LINENO: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245  else
7246    MAGIC_CMD=:
7247  fi
7248fi
7249
7250  fi
7251  ;;
7252esac
7253
7254
7255  case $host_os in
7256    rhapsody* | darwin*)
7257    if test -n "$ac_tool_prefix"; then
7258  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7261$as_echo_n "checking for $ac_word... " >&6; }
7262if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7263  $as_echo_n "(cached) " >&6
7264else
7265  if test -n "$DSYMUTIL"; then
7266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7267else
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271  IFS=$as_save_IFS
7272  test -z "$as_dir" && as_dir=.
7273  for ac_exec_ext in '' $ac_executable_extensions; do
7274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7276    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277    break 2
7278  fi
7279done
7280done
7281IFS=$as_save_IFS
7282
7283fi
7284fi
7285DSYMUTIL=$ac_cv_prog_DSYMUTIL
7286if test -n "$DSYMUTIL"; then
7287  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7288$as_echo "$DSYMUTIL" >&6; }
7289else
7290  { $as_echo "$as_me:$LINENO: result: no" >&5
7291$as_echo "no" >&6; }
7292fi
7293
7294
7295fi
7296if test -z "$ac_cv_prog_DSYMUTIL"; then
7297  ac_ct_DSYMUTIL=$DSYMUTIL
7298  # Extract the first word of "dsymutil", so it can be a program name with args.
7299set dummy dsymutil; ac_word=$2
7300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$ac_ct_DSYMUTIL"; then
7306  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313  for ac_exec_ext in '' $ac_executable_extensions; do
7314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7316    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7326if test -n "$ac_ct_DSYMUTIL"; then
7327  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7328$as_echo "$ac_ct_DSYMUTIL" >&6; }
7329else
7330  { $as_echo "$as_me:$LINENO: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334  if test "x$ac_ct_DSYMUTIL" = x; then
7335    DSYMUTIL=":"
7336  else
7337    case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343    DSYMUTIL=$ac_ct_DSYMUTIL
7344  fi
7345else
7346  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7347fi
7348
7349    if test -n "$ac_tool_prefix"; then
7350  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7353$as_echo_n "checking for $ac_word... " >&6; }
7354if test "${ac_cv_prog_NMEDIT+set}" = set; then
7355  $as_echo_n "(cached) " >&6
7356else
7357  if test -n "$NMEDIT"; then
7358  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365  for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7368    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372done
7373IFS=$as_save_IFS
7374
7375fi
7376fi
7377NMEDIT=$ac_cv_prog_NMEDIT
7378if test -n "$NMEDIT"; then
7379  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7380$as_echo "$NMEDIT" >&6; }
7381else
7382  { $as_echo "$as_me:$LINENO: result: no" >&5
7383$as_echo "no" >&6; }
7384fi
7385
7386
7387fi
7388if test -z "$ac_cv_prog_NMEDIT"; then
7389  ac_ct_NMEDIT=$NMEDIT
7390  # Extract the first word of "nmedit", so it can be a program name with args.
7391set dummy nmedit; ac_word=$2
7392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$ac_ct_NMEDIT"; then
7398  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7408    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7418if test -n "$ac_ct_NMEDIT"; then
7419  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7420$as_echo "$ac_ct_NMEDIT" >&6; }
7421else
7422  { $as_echo "$as_me:$LINENO: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426  if test "x$ac_ct_NMEDIT" = x; then
7427    NMEDIT=":"
7428  else
7429    case $cross_compiling:$ac_tool_warned in
7430yes:)
7431{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433ac_tool_warned=yes ;;
7434esac
7435    NMEDIT=$ac_ct_NMEDIT
7436  fi
7437else
7438  NMEDIT="$ac_cv_prog_NMEDIT"
7439fi
7440
7441
7442    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7443$as_echo_n "checking for -single_module linker flag... " >&6; }
7444if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_apple_cc_single_mod=no
7448      if test -z "${LT_MULTI_MODULE}"; then
7449   # By default we will add the -single_module flag. You can override
7450   # by either setting the environment variable LT_MULTI_MODULE
7451   # non-empty at configure time, or by adding -multi_module to the
7452   # link flags.
7453   echo "int foo(void){return 1;}" > conftest.c
7454   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455     -dynamiclib ${wl}-single_module conftest.c
7456   if test -f libconftest.dylib; then
7457     lt_cv_apple_cc_single_mod=yes
7458     rm -rf libconftest.dylib*
7459   fi
7460   rm conftest.c
7461      fi
7462fi
7463{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7464$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7465    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7466$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7467if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7468  $as_echo_n "(cached) " >&6
7469else
7470  lt_cv_ld_exported_symbols_list=no
7471      save_LDFLAGS=$LDFLAGS
7472      echo "_main" > conftest.sym
7473      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7474      cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h.  */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h.  */
7480
7481int
7482main ()
7483{
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489rm -f conftest.$ac_objext conftest$ac_exeext
7490if { (ac_try="$ac_link"
7491case "(($ac_try" in
7492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493  *) ac_try_echo=$ac_try;;
7494esac
7495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7496$as_echo "$ac_try_echo") >&5
7497  (eval "$ac_link") 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } && {
7504	 test -z "$ac_c_werror_flag" ||
7505	 test ! -s conftest.err
7506       } && test -s conftest$ac_exeext && {
7507	 test "$cross_compiling" = yes ||
7508	 $as_test_x conftest$ac_exeext
7509       }; then
7510  lt_cv_ld_exported_symbols_list=yes
7511else
7512  $as_echo "$as_me: failed program was:" >&5
7513sed 's/^/| /' conftest.$ac_ext >&5
7514
7515	lt_cv_ld_exported_symbols_list=no
7516fi
7517
7518rm -rf conftest.dSYM
7519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7520      conftest$ac_exeext conftest.$ac_ext
7521   LDFLAGS="$save_LDFLAGS"
7522
7523fi
7524{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7525$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7526    case $host_os in
7527    rhapsody* | darwin1.[0123])
7528      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7529    darwin1.*)
7530     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7531    darwin*)
7532      # if running on 10.5 or later, the deployment target defaults
7533      # to the OS version, if on x86, and 10.4, the deployment
7534      # target defaults to 10.4. Don't you love it?
7535      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7536   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7537     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7538   10.[012]*)
7539     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7540   10.*)
7541     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7542      esac
7543    ;;
7544  esac
7545    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7546      _lt_dar_single_mod='$single_module'
7547    fi
7548    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7549      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7550    else
7551      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7552    fi
7553    if test "$DSYMUTIL" != ":"; then
7554      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7555    else
7556      _lt_dsymutil=
7557    fi
7558    ;;
7559  esac
7560
7561
7562enable_dlopen=no
7563enable_win32_dll=no
7564
7565# Check whether --enable-libtool-lock was given.
7566if test "${enable_libtool_lock+set}" = set; then
7567  enableval=$enable_libtool_lock;
7568fi
7569
7570test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7571
7572
7573# Check whether --with-pic was given.
7574if test "${with_pic+set}" = set; then
7575  withval=$with_pic; pic_mode="$withval"
7576else
7577  pic_mode=default
7578fi
7579
7580test -z "$pic_mode" && pic_mode=default
7581
7582# Use C for the default configuration in the libtool script
7583tagname=
7584lt_save_CC="$CC"
7585ac_ext=c
7586ac_cpp='$CPP $CPPFLAGS'
7587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591
7592# Source file extension for C test sources.
7593ac_ext=c
7594
7595# Object file extension for compiled C test sources.
7596objext=o
7597objext=$objext
7598
7599# Code to be used in simple compile tests
7600lt_simple_compile_test_code="int some_variable = 0;"
7601
7602# Code to be used in simple link tests
7603lt_simple_link_test_code='int main(){return(0);}'
7604
7605
7606# If no C compiler was specified, use CC.
7607LTCC=${LTCC-"$CC"}
7608
7609# If no C compiler flags were specified, use CFLAGS.
7610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7611
7612# Allow CC to be a program name with arguments.
7613compiler=$CC
7614
7615
7616# save warnings/boilerplate of simple test code
7617ac_outfile=conftest.$ac_objext
7618echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7619eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620_lt_compiler_boilerplate=`cat conftest.err`
7621$rm conftest*
7622
7623ac_outfile=conftest.$ac_objext
7624echo "$lt_simple_link_test_code" >conftest.$ac_ext
7625eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7626_lt_linker_boilerplate=`cat conftest.err`
7627$rm -r conftest*
7628
7629
7630
7631lt_prog_compiler_no_builtin_flag=
7632
7633if test "$GCC" = yes; then
7634  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7635
7636
7637{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7638$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7639if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7640  $as_echo_n "(cached) " >&6
7641else
7642  lt_cv_prog_compiler_rtti_exceptions=no
7643  ac_outfile=conftest.$ac_objext
7644   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7645   lt_compiler_flag="-fno-rtti -fno-exceptions"
7646   # Insert the option either (1) after the last *FLAGS variable, or
7647   # (2) before a word containing "conftest.", or (3) at the end.
7648   # Note that $ac_compile itself does not contain backslashes and begins
7649   # with a dollar sign (not a hyphen), so the echo should work correctly.
7650   # The option is referenced via a variable to avoid confusing sed.
7651   lt_compile=`echo "$ac_compile" | $SED \
7652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654   -e 's:$: $lt_compiler_flag:'`
7655   (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656   (eval "$lt_compile" 2>conftest.err)
7657   ac_status=$?
7658   cat conftest.err >&5
7659   echo "$as_me:7659: \$? = $ac_status" >&5
7660   if (exit $ac_status) && test -s "$ac_outfile"; then
7661     # The compiler can only warn and ignore the option if not recognized
7662     # So say no if there are warnings other than the usual output.
7663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7666       lt_cv_prog_compiler_rtti_exceptions=yes
7667     fi
7668   fi
7669   $rm conftest*
7670
7671fi
7672{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7673$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7674
7675if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7676    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7677else
7678    :
7679fi
7680
7681fi
7682
7683lt_prog_compiler_wl=
7684lt_prog_compiler_pic=
7685lt_prog_compiler_static=
7686
7687{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7688$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7689
7690  if test "$GCC" = yes; then
7691    lt_prog_compiler_wl='-Wl,'
7692    lt_prog_compiler_static='-static'
7693
7694    case $host_os in
7695      aix*)
7696      # All AIX code is PIC.
7697      if test "$host_cpu" = ia64; then
7698	# AIX 5 now supports IA64 processor
7699	lt_prog_compiler_static='-Bstatic'
7700      fi
7701      ;;
7702
7703    amigaos*)
7704      # FIXME: we need at least 68020 code to build shared libraries, but
7705      # adding the `-m68020' flag to GCC prevents building anything better,
7706      # like `-m68040'.
7707      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7708      ;;
7709
7710    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7711      # PIC is the default for these OSes.
7712      ;;
7713
7714    mingw* | cygwin* | pw32* | os2*)
7715      # This hack is so that the source file can tell whether it is being
7716      # built for inclusion in a dll (and should export symbols for example).
7717      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7718      # (--disable-auto-import) libraries
7719      lt_prog_compiler_pic='-DDLL_EXPORT'
7720      ;;
7721
7722    darwin* | rhapsody*)
7723      # PIC is the default on this platform
7724      # Common symbols not allowed in MH_DYLIB files
7725      lt_prog_compiler_pic='-fno-common'
7726      ;;
7727
7728    interix[3-9]*)
7729      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7730      # Instead, we relocate shared libraries at runtime.
7731      ;;
7732
7733    msdosdjgpp*)
7734      # Just because we use GCC doesn't mean we suddenly get shared libraries
7735      # on systems that don't support them.
7736      lt_prog_compiler_can_build_shared=no
7737      enable_shared=no
7738      ;;
7739
7740    sysv4*MP*)
7741      if test -d /usr/nec; then
7742	lt_prog_compiler_pic=-Kconform_pic
7743      fi
7744      ;;
7745
7746    hpux*)
7747      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7748      # not for PA HP-UX.
7749      case $host_cpu in
7750      hppa*64*|ia64*)
7751	# +Z the default
7752	;;
7753      *)
7754	lt_prog_compiler_pic='-fPIC'
7755	;;
7756      esac
7757      ;;
7758
7759    *)
7760      lt_prog_compiler_pic='-fPIC'
7761      ;;
7762    esac
7763  else
7764    # PORTME Check for flag to pass linker flags through the system compiler.
7765    case $host_os in
7766    aix*)
7767      lt_prog_compiler_wl='-Wl,'
7768      if test "$host_cpu" = ia64; then
7769	# AIX 5 now supports IA64 processor
7770	lt_prog_compiler_static='-Bstatic'
7771      else
7772	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7773      fi
7774      ;;
7775      darwin*)
7776        # PIC is the default on this platform
7777        # Common symbols not allowed in MH_DYLIB files
7778       case $cc_basename in
7779         xlc*)
7780         lt_prog_compiler_pic='-qnocommon'
7781         lt_prog_compiler_wl='-Wl,'
7782         ;;
7783       esac
7784       ;;
7785
7786    mingw* | cygwin* | pw32* | os2*)
7787      # This hack is so that the source file can tell whether it is being
7788      # built for inclusion in a dll (and should export symbols for example).
7789      lt_prog_compiler_pic='-DDLL_EXPORT'
7790      ;;
7791
7792    hpux9* | hpux10* | hpux11*)
7793      lt_prog_compiler_wl='-Wl,'
7794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795      # not for PA HP-UX.
7796      case $host_cpu in
7797      hppa*64*|ia64*)
7798	# +Z the default
7799	;;
7800      *)
7801	lt_prog_compiler_pic='+Z'
7802	;;
7803      esac
7804      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7805      lt_prog_compiler_static='${wl}-a ${wl}archive'
7806      ;;
7807
7808    irix5* | irix6* | nonstopux*)
7809      lt_prog_compiler_wl='-Wl,'
7810      # PIC (with -KPIC) is the default.
7811      lt_prog_compiler_static='-non_shared'
7812      ;;
7813
7814    newsos6)
7815      lt_prog_compiler_pic='-KPIC'
7816      lt_prog_compiler_static='-Bstatic'
7817      ;;
7818
7819    linux* | k*bsd*-gnu)
7820      case $cc_basename in
7821      icc* | ecc*)
7822	lt_prog_compiler_wl='-Wl,'
7823	lt_prog_compiler_pic='-KPIC'
7824	lt_prog_compiler_static='-static'
7825        ;;
7826      pgcc* | pgf77* | pgf90* | pgf95*)
7827        # Portland Group compilers (*not* the Pentium gcc compiler,
7828	# which looks to be a dead project)
7829	lt_prog_compiler_wl='-Wl,'
7830	lt_prog_compiler_pic='-fpic'
7831	lt_prog_compiler_static='-Bstatic'
7832        ;;
7833      ccc*)
7834        lt_prog_compiler_wl='-Wl,'
7835        # All Alpha code is PIC.
7836        lt_prog_compiler_static='-non_shared'
7837        ;;
7838      *)
7839        case `$CC -V 2>&1 | sed 5q` in
7840	*Sun\ C*)
7841	  # Sun C 5.9
7842	  lt_prog_compiler_pic='-KPIC'
7843	  lt_prog_compiler_static='-Bstatic'
7844	  lt_prog_compiler_wl='-Wl,'
7845	  ;;
7846	*Sun\ F*)
7847	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7848	  lt_prog_compiler_pic='-KPIC'
7849	  lt_prog_compiler_static='-Bstatic'
7850	  lt_prog_compiler_wl=''
7851	  ;;
7852	esac
7853	;;
7854      esac
7855      ;;
7856
7857    osf3* | osf4* | osf5*)
7858      lt_prog_compiler_wl='-Wl,'
7859      # All OSF/1 code is PIC.
7860      lt_prog_compiler_static='-non_shared'
7861      ;;
7862
7863    rdos*)
7864      lt_prog_compiler_static='-non_shared'
7865      ;;
7866
7867    solaris*)
7868      lt_prog_compiler_pic='-KPIC'
7869      lt_prog_compiler_static='-Bstatic'
7870      case $cc_basename in
7871      f77* | f90* | f95*)
7872	lt_prog_compiler_wl='-Qoption ld ';;
7873      *)
7874	lt_prog_compiler_wl='-Wl,';;
7875      esac
7876      ;;
7877
7878    sunos4*)
7879      lt_prog_compiler_wl='-Qoption ld '
7880      lt_prog_compiler_pic='-PIC'
7881      lt_prog_compiler_static='-Bstatic'
7882      ;;
7883
7884    sysv4 | sysv4.2uw2* | sysv4.3*)
7885      lt_prog_compiler_wl='-Wl,'
7886      lt_prog_compiler_pic='-KPIC'
7887      lt_prog_compiler_static='-Bstatic'
7888      ;;
7889
7890    sysv4*MP*)
7891      if test -d /usr/nec ;then
7892	lt_prog_compiler_pic='-Kconform_pic'
7893	lt_prog_compiler_static='-Bstatic'
7894      fi
7895      ;;
7896
7897    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7898      lt_prog_compiler_wl='-Wl,'
7899      lt_prog_compiler_pic='-KPIC'
7900      lt_prog_compiler_static='-Bstatic'
7901      ;;
7902
7903    unicos*)
7904      lt_prog_compiler_wl='-Wl,'
7905      lt_prog_compiler_can_build_shared=no
7906      ;;
7907
7908    uts4*)
7909      lt_prog_compiler_pic='-pic'
7910      lt_prog_compiler_static='-Bstatic'
7911      ;;
7912
7913    *)
7914      lt_prog_compiler_can_build_shared=no
7915      ;;
7916    esac
7917  fi
7918
7919{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7920$as_echo "$lt_prog_compiler_pic" >&6; }
7921
7922#
7923# Check to make sure the PIC flag actually works.
7924#
7925if test -n "$lt_prog_compiler_pic"; then
7926
7927{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7928$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7929if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7930  $as_echo_n "(cached) " >&6
7931else
7932  lt_cv_prog_compiler_pic_works=no
7933  ac_outfile=conftest.$ac_objext
7934   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7935   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7936   # Insert the option either (1) after the last *FLAGS variable, or
7937   # (2) before a word containing "conftest.", or (3) at the end.
7938   # Note that $ac_compile itself does not contain backslashes and begins
7939   # with a dollar sign (not a hyphen), so the echo should work correctly.
7940   # The option is referenced via a variable to avoid confusing sed.
7941   lt_compile=`echo "$ac_compile" | $SED \
7942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7944   -e 's:$: $lt_compiler_flag:'`
7945   (eval echo "\"\$as_me:7945: $lt_compile\"" >&5)
7946   (eval "$lt_compile" 2>conftest.err)
7947   ac_status=$?
7948   cat conftest.err >&5
7949   echo "$as_me:7949: \$? = $ac_status" >&5
7950   if (exit $ac_status) && test -s "$ac_outfile"; then
7951     # The compiler can only warn and ignore the option if not recognized
7952     # So say no if there are warnings other than the usual output.
7953     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7954     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7956       lt_cv_prog_compiler_pic_works=yes
7957     fi
7958   fi
7959   $rm conftest*
7960
7961fi
7962{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7963$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7964
7965if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7966    case $lt_prog_compiler_pic in
7967     "" | " "*) ;;
7968     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7969     esac
7970else
7971    lt_prog_compiler_pic=
7972     lt_prog_compiler_can_build_shared=no
7973fi
7974
7975fi
7976case $host_os in
7977  # For platforms which do not support PIC, -DPIC is meaningless:
7978  *djgpp*)
7979    lt_prog_compiler_pic=
7980    ;;
7981  *)
7982    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7983    ;;
7984esac
7985
7986#
7987# Check to make sure the static flag actually works.
7988#
7989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7990{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7992if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7993  $as_echo_n "(cached) " >&6
7994else
7995  lt_cv_prog_compiler_static_works=no
7996   save_LDFLAGS="$LDFLAGS"
7997   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000     # The linker can only warn and ignore the option if not recognized
8001     # So say no if there are warnings
8002     if test -s conftest.err; then
8003       # Append any errors to the config.log.
8004       cat conftest.err 1>&5
8005       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8006       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007       if diff conftest.exp conftest.er2 >/dev/null; then
8008         lt_cv_prog_compiler_static_works=yes
8009       fi
8010     else
8011       lt_cv_prog_compiler_static_works=yes
8012     fi
8013   fi
8014   $rm -r conftest*
8015   LDFLAGS="$save_LDFLAGS"
8016
8017fi
8018{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8020
8021if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8022    :
8023else
8024    lt_prog_compiler_static=
8025fi
8026
8027
8028{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8029$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8030if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8031  $as_echo_n "(cached) " >&6
8032else
8033  lt_cv_prog_compiler_c_o=no
8034   $rm -r conftest 2>/dev/null
8035   mkdir conftest
8036   cd conftest
8037   mkdir out
8038   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8039
8040   lt_compiler_flag="-o out/conftest2.$ac_objext"
8041   # Insert the option either (1) after the last *FLAGS variable, or
8042   # (2) before a word containing "conftest.", or (3) at the end.
8043   # Note that $ac_compile itself does not contain backslashes and begins
8044   # with a dollar sign (not a hyphen), so the echo should work correctly.
8045   lt_compile=`echo "$ac_compile" | $SED \
8046   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048   -e 's:$: $lt_compiler_flag:'`
8049   (eval echo "\"\$as_me:8049: $lt_compile\"" >&5)
8050   (eval "$lt_compile" 2>out/conftest.err)
8051   ac_status=$?
8052   cat out/conftest.err >&5
8053   echo "$as_me:8053: \$? = $ac_status" >&5
8054   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8055   then
8056     # The compiler can only warn and ignore the option if not recognized
8057     # So say no if there are warnings
8058     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8059     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8060     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8061       lt_cv_prog_compiler_c_o=yes
8062     fi
8063   fi
8064   chmod u+w . 2>&5
8065   $rm conftest*
8066   # SGI C++ compiler will create directory out/ii_files/ for
8067   # template instantiation
8068   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8069   $rm out/* && rmdir out
8070   cd ..
8071   rmdir conftest
8072   $rm conftest*
8073
8074fi
8075{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8076$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8077
8078
8079hard_links="nottested"
8080if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8081  # do not overwrite the value of need_locks provided by the user
8082  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8083$as_echo_n "checking if we can lock with hard links... " >&6; }
8084  hard_links=yes
8085  $rm conftest*
8086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087  touch conftest.a
8088  ln conftest.a conftest.b 2>&5 || hard_links=no
8089  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8091$as_echo "$hard_links" >&6; }
8092  if test "$hard_links" = no; then
8093    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8094$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8095    need_locks=warn
8096  fi
8097else
8098  need_locks=no
8099fi
8100
8101{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8102$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8103
8104  runpath_var=
8105  allow_undefined_flag=
8106  enable_shared_with_static_runtimes=no
8107  archive_cmds=
8108  archive_expsym_cmds=
8109  old_archive_From_new_cmds=
8110  old_archive_from_expsyms_cmds=
8111  export_dynamic_flag_spec=
8112  whole_archive_flag_spec=
8113  thread_safe_flag_spec=
8114  hardcode_libdir_flag_spec=
8115  hardcode_libdir_flag_spec_ld=
8116  hardcode_libdir_separator=
8117  hardcode_direct=no
8118  hardcode_minus_L=no
8119  hardcode_shlibpath_var=unsupported
8120  link_all_deplibs=unknown
8121  hardcode_automatic=no
8122  module_cmds=
8123  module_expsym_cmds=
8124  always_export_symbols=no
8125  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8126  # include_expsyms should be a list of space-separated symbols to be *always*
8127  # included in the symbol list
8128  include_expsyms=
8129  # exclude_expsyms can be an extended regexp of symbols to exclude
8130  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8131  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8132  # as well as any symbol that contains `d'.
8133  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8134  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8135  # platforms (ab)use it in PIC code, but their linkers get confused if
8136  # the symbol is explicitly referenced.  Since portable code cannot
8137  # rely on this symbol name, it's probably fine to never include it in
8138  # preloaded symbol tables.
8139  # Exclude shared library initialization/finalization symbols.
8140  extract_expsyms_cmds=
8141  # Just being paranoid about ensuring that cc_basename is set.
8142  for cc_temp in $compiler""; do
8143  case $cc_temp in
8144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8146    \-*) ;;
8147    *) break;;
8148  esac
8149done
8150cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8151
8152  case $host_os in
8153  cygwin* | mingw* | pw32*)
8154    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8155    # When not using gcc, we currently assume that we are using
8156    # Microsoft Visual C++.
8157    if test "$GCC" != yes; then
8158      with_gnu_ld=no
8159    fi
8160    ;;
8161  interix*)
8162    # we just hope/assume this is gcc and not c89 (= MSVC++)
8163    with_gnu_ld=yes
8164    ;;
8165  openbsd*)
8166    with_gnu_ld=no
8167    ;;
8168  esac
8169
8170  ld_shlibs=yes
8171  if test "$with_gnu_ld" = yes; then
8172    # If archive_cmds runs LD, not CC, wlarc should be empty
8173    wlarc='${wl}'
8174
8175    # Set some defaults for GNU ld with shared library support. These
8176    # are reset later if shared libraries are not supported. Putting them
8177    # here allows them to be overridden if necessary.
8178    runpath_var=LD_RUN_PATH
8179    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8180    export_dynamic_flag_spec='${wl}--export-dynamic'
8181    # ancient GNU ld didn't support --whole-archive et. al.
8182    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8183	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8184      else
8185  	whole_archive_flag_spec=
8186    fi
8187    supports_anon_versioning=no
8188    case `$LD -v 2>/dev/null` in
8189      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8190      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8191      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8192      *\ 2.11.*) ;; # other 2.11 versions
8193      *) supports_anon_versioning=yes ;;
8194    esac
8195
8196    # See if GNU ld supports shared libraries.
8197    case $host_os in
8198    aix[3-9]*)
8199      # On AIX/PPC, the GNU linker is very broken
8200      if test "$host_cpu" != ia64; then
8201	ld_shlibs=no
8202	cat <<EOF 1>&2
8203
8204*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8205*** to be unable to reliably create shared libraries on AIX.
8206*** Therefore, libtool is disabling shared libraries support.  If you
8207*** really care for shared libraries, you may want to modify your PATH
8208*** so that a non-GNU linker is found, and then restart.
8209
8210EOF
8211      fi
8212      ;;
8213
8214    amigaos*)
8215      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8216      hardcode_libdir_flag_spec='-L$libdir'
8217      hardcode_minus_L=yes
8218
8219      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8220      # that the semantics of dynamic libraries on AmigaOS, at least up
8221      # to version 4, is to share data among multiple programs linked
8222      # with the same dynamic library.  Since this doesn't match the
8223      # behavior of shared libraries on other platforms, we can't use
8224      # them.
8225      ld_shlibs=no
8226      ;;
8227
8228    beos*)
8229      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230	allow_undefined_flag=unsupported
8231	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8232	# support --undefined.  This deserves some investigation.  FIXME
8233	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234      else
8235	ld_shlibs=no
8236      fi
8237      ;;
8238
8239    cygwin* | mingw* | pw32*)
8240      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8241      # as there is no search path for DLLs.
8242      hardcode_libdir_flag_spec='-L$libdir'
8243      allow_undefined_flag=unsupported
8244      always_export_symbols=no
8245      enable_shared_with_static_runtimes=yes
8246      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8247
8248      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8249        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8250	# If the export-symbols file already is a .def file (1st line
8251	# is EXPORTS), use it as is; otherwise, prepend...
8252	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8253	  cp $export_symbols $output_objdir/$soname.def;
8254	else
8255	  echo EXPORTS > $output_objdir/$soname.def;
8256	  cat $export_symbols >> $output_objdir/$soname.def;
8257	fi~
8258	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8259      else
8260	ld_shlibs=no
8261      fi
8262      ;;
8263
8264    interix[3-9]*)
8265      hardcode_direct=no
8266      hardcode_shlibpath_var=no
8267      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268      export_dynamic_flag_spec='${wl}-E'
8269      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8270      # Instead, shared libraries are loaded at an image base (0x10000000 by
8271      # default) and relocated if they conflict, which is a slow very memory
8272      # consuming and fragmenting process.  To avoid this, we pick a random,
8273      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8274      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8275      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8276      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8277      ;;
8278
8279    gnu* | linux* | k*bsd*-gnu)
8280      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8281	tmp_addflag=
8282	case $cc_basename,$host_cpu in
8283	pgcc*)				# Portland Group C compiler
8284	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8285	  tmp_addflag=' $pic_flag'
8286	  ;;
8287	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8288	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8289	  tmp_addflag=' $pic_flag -Mnomain' ;;
8290	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8291	  tmp_addflag=' -i_dynamic' ;;
8292	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8293	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8294	ifc* | ifort*)			# Intel Fortran compiler
8295	  tmp_addflag=' -nofor_main' ;;
8296	esac
8297	case `$CC -V 2>&1 | sed 5q` in
8298	*Sun\ C*)			# Sun C 5.9
8299	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8300	  tmp_sharedflag='-G' ;;
8301	*Sun\ F*)			# Sun Fortran 8.3
8302	  tmp_sharedflag='-G' ;;
8303	*)
8304	  tmp_sharedflag='-shared' ;;
8305	esac
8306	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307
8308	if test $supports_anon_versioning = yes; then
8309	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8310  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8311  $echo "local: *; };" >> $output_objdir/$libname.ver~
8312	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8313	fi
8314      else
8315	ld_shlibs=no
8316      fi
8317      ;;
8318
8319    netbsd*)
8320      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8322	wlarc=
8323      else
8324	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326      fi
8327      ;;
8328
8329    solaris*)
8330      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8331	ld_shlibs=no
8332	cat <<EOF 1>&2
8333
8334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8335*** create shared libraries on Solaris systems.  Therefore, libtool
8336*** is disabling shared libraries support.  We urge you to upgrade GNU
8337*** binutils to release 2.9.1 or newer.  Another option is to modify
8338*** your PATH or compiler configuration so that the native linker is
8339*** used, and then restart.
8340
8341EOF
8342      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345      else
8346	ld_shlibs=no
8347      fi
8348      ;;
8349
8350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8351      case `$LD -v 2>&1` in
8352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8353	ld_shlibs=no
8354	cat <<_LT_EOF 1>&2
8355
8356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8357*** reliably create shared libraries on SCO systems.  Therefore, libtool
8358*** is disabling shared libraries support.  We urge you to upgrade GNU
8359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8360*** your PATH or compiler configuration so that the native linker is
8361*** used, and then restart.
8362
8363_LT_EOF
8364	;;
8365	*)
8366	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8367	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8368	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8369	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8370	  else
8371	    ld_shlibs=no
8372	  fi
8373	;;
8374      esac
8375      ;;
8376
8377    sunos4*)
8378      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379      wlarc=
8380      hardcode_direct=yes
8381      hardcode_shlibpath_var=no
8382      ;;
8383
8384    *)
8385      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388      else
8389	ld_shlibs=no
8390      fi
8391      ;;
8392    esac
8393
8394    if test "$ld_shlibs" = no; then
8395      runpath_var=
8396      hardcode_libdir_flag_spec=
8397      export_dynamic_flag_spec=
8398      whole_archive_flag_spec=
8399    fi
8400  else
8401    # PORTME fill in a description of your system's linker (not GNU ld)
8402    case $host_os in
8403    aix3*)
8404      allow_undefined_flag=unsupported
8405      always_export_symbols=yes
8406      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8407      # Note: this linker hardcodes the directories in LIBPATH if there
8408      # are no directories specified by -L.
8409      hardcode_minus_L=yes
8410      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8411	# Neither direct hardcoding nor static linking is supported with a
8412	# broken collect2.
8413	hardcode_direct=unsupported
8414      fi
8415      ;;
8416
8417    aix[4-9]*)
8418      if test "$host_cpu" = ia64; then
8419	# On IA64, the linker does run time linking by default, so we don't
8420	# have to do anything special.
8421	aix_use_runtimelinking=no
8422	exp_sym_flag='-Bexport'
8423	no_entry_flag=""
8424      else
8425	# If we're using GNU nm, then we don't want the "-C" option.
8426	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8427	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8428	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8429	else
8430	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8431	fi
8432	aix_use_runtimelinking=no
8433
8434	# Test if we are trying to use run time linking or normal
8435	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8436	# need to do runtime linking.
8437	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8438	  for ld_flag in $LDFLAGS; do
8439  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8440  	    aix_use_runtimelinking=yes
8441  	    break
8442  	  fi
8443	  done
8444	  ;;
8445	esac
8446
8447	exp_sym_flag='-bexport'
8448	no_entry_flag='-bnoentry'
8449      fi
8450
8451      # When large executables or shared objects are built, AIX ld can
8452      # have problems creating the table of contents.  If linking a library
8453      # or program results in "error TOC overflow" add -mminimal-toc to
8454      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8455      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8456
8457      archive_cmds=''
8458      hardcode_direct=yes
8459      hardcode_libdir_separator=':'
8460      link_all_deplibs=yes
8461
8462      if test "$GCC" = yes; then
8463	case $host_os in aix4.[012]|aix4.[012].*)
8464	# We only want to do this on AIX 4.2 and lower, the check
8465	# below for broken collect2 doesn't work under 4.3+
8466	  collect2name=`${CC} -print-prog-name=collect2`
8467	  if test -f "$collect2name" && \
8468  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8469	  then
8470  	  # We have reworked collect2
8471  	  :
8472	  else
8473  	  # We have old collect2
8474  	  hardcode_direct=unsupported
8475  	  # It fails to find uninstalled libraries when the uninstalled
8476  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8477  	  # to unsupported forces relinking
8478  	  hardcode_minus_L=yes
8479  	  hardcode_libdir_flag_spec='-L$libdir'
8480  	  hardcode_libdir_separator=
8481	  fi
8482	  ;;
8483	esac
8484	shared_flag='-shared'
8485	if test "$aix_use_runtimelinking" = yes; then
8486	  shared_flag="$shared_flag "'${wl}-G'
8487	fi
8488      else
8489	# not using gcc
8490	if test "$host_cpu" = ia64; then
8491  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8492  	# chokes on -Wl,-G. The following line is correct:
8493	  shared_flag='-G'
8494	else
8495	  if test "$aix_use_runtimelinking" = yes; then
8496	    shared_flag='${wl}-G'
8497	  else
8498	    shared_flag='${wl}-bM:SRE'
8499	  fi
8500	fi
8501      fi
8502
8503      # It seems that -bexpall does not export symbols beginning with
8504      # underscore (_), so it is better to generate a list of symbols to export.
8505      always_export_symbols=yes
8506      if test "$aix_use_runtimelinking" = yes; then
8507	# Warning - without using the other runtime loading flags (-brtl),
8508	# -berok will link without error, but may produce a broken library.
8509	allow_undefined_flag='-berok'
8510       # Determine the default libpath from the value encoded in an empty executable.
8511       cat >conftest.$ac_ext <<_ACEOF
8512/* confdefs.h.  */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h.  */
8517
8518int
8519main ()
8520{
8521
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (ac_try="$ac_link"
8528case "(($ac_try" in
8529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530  *) ac_try_echo=$ac_try;;
8531esac
8532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533$as_echo "$ac_try_echo") >&5
8534  (eval "$ac_link") 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } && {
8541	 test -z "$ac_c_werror_flag" ||
8542	 test ! -s conftest.err
8543       } && test -s conftest$ac_exeext && {
8544	 test "$cross_compiling" = yes ||
8545	 $as_test_x conftest$ac_exeext
8546       }; then
8547
8548lt_aix_libpath_sed='
8549    /Import File Strings/,/^$/ {
8550	/^0/ {
8551	    s/^0  *\(.*\)$/\1/
8552	    p
8553	}
8554    }'
8555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556# Check for a 64-bit object if we didn't find anything.
8557if test -z "$aix_libpath"; then
8558  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559fi
8560else
8561  $as_echo "$as_me: failed program was:" >&5
8562sed 's/^/| /' conftest.$ac_ext >&5
8563
8564
8565fi
8566
8567rm -rf conftest.dSYM
8568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8569      conftest$ac_exeext conftest.$ac_ext
8570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8571
8572       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8574       else
8575	if test "$host_cpu" = ia64; then
8576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577	  allow_undefined_flag="-z nodefs"
8578	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8579	else
8580	 # Determine the default libpath from the value encoded in an empty executable.
8581	 cat >conftest.$ac_ext <<_ACEOF
8582/* confdefs.h.  */
8583_ACEOF
8584cat confdefs.h >>conftest.$ac_ext
8585cat >>conftest.$ac_ext <<_ACEOF
8586/* end confdefs.h.  */
8587
8588int
8589main ()
8590{
8591
8592  ;
8593  return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext conftest$ac_exeext
8597if { (ac_try="$ac_link"
8598case "(($ac_try" in
8599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600  *) ac_try_echo=$ac_try;;
8601esac
8602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603$as_echo "$ac_try_echo") >&5
8604  (eval "$ac_link") 2>conftest.er1
8605  ac_status=$?
8606  grep -v '^ *+' conftest.er1 >conftest.err
8607  rm -f conftest.er1
8608  cat conftest.err >&5
8609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); } && {
8611	 test -z "$ac_c_werror_flag" ||
8612	 test ! -s conftest.err
8613       } && test -s conftest$ac_exeext && {
8614	 test "$cross_compiling" = yes ||
8615	 $as_test_x conftest$ac_exeext
8616       }; then
8617
8618lt_aix_libpath_sed='
8619    /Import File Strings/,/^$/ {
8620	/^0/ {
8621	    s/^0  *\(.*\)$/\1/
8622	    p
8623	}
8624    }'
8625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626# Check for a 64-bit object if we didn't find anything.
8627if test -z "$aix_libpath"; then
8628  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629fi
8630else
8631  $as_echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634
8635fi
8636
8637rm -rf conftest.dSYM
8638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639      conftest$ac_exeext conftest.$ac_ext
8640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643	  # Warning - without using the other run time loading flags,
8644	  # -berok will link without error, but may produce a broken library.
8645	  no_undefined_flag=' ${wl}-bernotok'
8646	  allow_undefined_flag=' ${wl}-berok'
8647	  # Exported symbols can be pulled into shared objects from archives
8648	  whole_archive_flag_spec='$convenience'
8649	  archive_cmds_need_lc=yes
8650	  # This is similar to how AIX traditionally builds its shared libraries.
8651	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8652	fi
8653      fi
8654      ;;
8655
8656    amigaos*)
8657      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8658      hardcode_libdir_flag_spec='-L$libdir'
8659      hardcode_minus_L=yes
8660      # see comment about different semantics on the GNU ld section
8661      ld_shlibs=no
8662      ;;
8663
8664    bsdi[45]*)
8665      export_dynamic_flag_spec=-rdynamic
8666      ;;
8667
8668    cygwin* | mingw* | pw32*)
8669      # When not using gcc, we currently assume that we are using
8670      # Microsoft Visual C++.
8671      # hardcode_libdir_flag_spec is actually meaningless, as there is
8672      # no search path for DLLs.
8673      hardcode_libdir_flag_spec=' '
8674      allow_undefined_flag=unsupported
8675      # Tell ltmain to make .lib files, not .a files.
8676      libext=lib
8677      # Tell ltmain to make .dll files, not .so files.
8678      shrext_cmds=".dll"
8679      # FIXME: Setting linknames here is a bad hack.
8680      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8681      # The linker will automatically build a .lib file if we build a DLL.
8682      old_archive_From_new_cmds='true'
8683      # FIXME: Should let the user specify the lib program.
8684      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685      fix_srcfile_path='`cygpath -w "$srcfile"`'
8686      enable_shared_with_static_runtimes=yes
8687      ;;
8688
8689    darwin* | rhapsody*)
8690      case $host_os in
8691        rhapsody* | darwin1.[012])
8692         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8693         ;;
8694       *) # Darwin 1.3 on
8695         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8696           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8697         else
8698           case ${MACOSX_DEPLOYMENT_TARGET} in
8699             10.[012])
8700               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8701               ;;
8702             10.*)
8703               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8704               ;;
8705           esac
8706         fi
8707         ;;
8708      esac
8709      archive_cmds_need_lc=no
8710      hardcode_direct=no
8711      hardcode_automatic=yes
8712      hardcode_shlibpath_var=unsupported
8713      whole_archive_flag_spec=''
8714      link_all_deplibs=yes
8715    if test "$GCC" = yes ; then
8716    	output_verbose_link_cmd='echo'
8717        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8720        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8721    else
8722      case $cc_basename in
8723        xlc*)
8724         output_verbose_link_cmd='echo'
8725         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8726         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8729          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8730          ;;
8731       *)
8732         ld_shlibs=no
8733          ;;
8734      esac
8735    fi
8736      ;;
8737
8738    dgux*)
8739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740      hardcode_libdir_flag_spec='-L$libdir'
8741      hardcode_shlibpath_var=no
8742      ;;
8743
8744    freebsd1*)
8745      ld_shlibs=no
8746      ;;
8747
8748    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749    # support.  Future versions do this automatically, but an explicit c++rt0.o
8750    # does not break anything, and helps significantly (at the cost of a little
8751    # extra space).
8752    freebsd2.2*)
8753      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754      hardcode_libdir_flag_spec='-R$libdir'
8755      hardcode_direct=yes
8756      hardcode_shlibpath_var=no
8757      ;;
8758
8759    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8760    freebsd2*)
8761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762      hardcode_direct=yes
8763      hardcode_minus_L=yes
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768    freebsd* | dragonfly*)
8769      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770      hardcode_libdir_flag_spec='-R$libdir'
8771      hardcode_direct=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    hpux9*)
8776      if test "$GCC" = yes; then
8777	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8778      else
8779	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8780      fi
8781      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782      hardcode_libdir_separator=:
8783      hardcode_direct=yes
8784
8785      # hardcode_minus_L: Not really in the search PATH,
8786      # but as the default location of the library.
8787      hardcode_minus_L=yes
8788      export_dynamic_flag_spec='${wl}-E'
8789      ;;
8790
8791    hpux10*)
8792      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8794      else
8795	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8796      fi
8797      if test "$with_gnu_ld" = no; then
8798	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799	hardcode_libdir_separator=:
8800
8801	hardcode_direct=yes
8802	export_dynamic_flag_spec='${wl}-E'
8803
8804	# hardcode_minus_L: Not really in the search PATH,
8805	# but as the default location of the library.
8806	hardcode_minus_L=yes
8807      fi
8808      ;;
8809
8810    hpux11*)
8811      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812	case $host_cpu in
8813	hppa*64*)
8814	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815	  ;;
8816	ia64*)
8817	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8818	  ;;
8819	*)
8820	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8821	  ;;
8822	esac
8823      else
8824	case $host_cpu in
8825	hppa*64*)
8826	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827	  ;;
8828	ia64*)
8829	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830	  ;;
8831	*)
8832	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833	  ;;
8834	esac
8835      fi
8836      if test "$with_gnu_ld" = no; then
8837	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838	hardcode_libdir_separator=:
8839
8840	case $host_cpu in
8841	hppa*64*|ia64*)
8842	  hardcode_libdir_flag_spec_ld='+b $libdir'
8843	  hardcode_direct=no
8844	  hardcode_shlibpath_var=no
8845	  ;;
8846	*)
8847	  hardcode_direct=yes
8848	  export_dynamic_flag_spec='${wl}-E'
8849
8850	  # hardcode_minus_L: Not really in the search PATH,
8851	  # but as the default location of the library.
8852	  hardcode_minus_L=yes
8853	  ;;
8854	esac
8855      fi
8856      ;;
8857
8858    irix5* | irix6* | nonstopux*)
8859      if test "$GCC" = yes; then
8860	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8861      else
8862	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8863	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8864      fi
8865      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866      hardcode_libdir_separator=:
8867      link_all_deplibs=yes
8868      ;;
8869
8870    netbsd*)
8871      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8872	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8873      else
8874	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8875      fi
8876      hardcode_libdir_flag_spec='-R$libdir'
8877      hardcode_direct=yes
8878      hardcode_shlibpath_var=no
8879      ;;
8880
8881    newsos6)
8882      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883      hardcode_direct=yes
8884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885      hardcode_libdir_separator=:
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    openbsd*)
8890      if test -f /usr/libexec/ld.so; then
8891	hardcode_direct=yes
8892	hardcode_shlibpath_var=no
8893	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8896	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897	  export_dynamic_flag_spec='${wl}-E'
8898	else
8899	  case $host_os in
8900	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8901	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902	     hardcode_libdir_flag_spec='-R$libdir'
8903	     ;;
8904	   *)
8905	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8906	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8907	     ;;
8908	  esac
8909        fi
8910      else
8911	ld_shlibs=no
8912      fi
8913      ;;
8914
8915    os2*)
8916      hardcode_libdir_flag_spec='-L$libdir'
8917      hardcode_minus_L=yes
8918      allow_undefined_flag=unsupported
8919      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8920      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8921      ;;
8922
8923    osf3*)
8924      if test "$GCC" = yes; then
8925	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8926	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8927      else
8928	allow_undefined_flag=' -expect_unresolved \*'
8929	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8930      fi
8931      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932      hardcode_libdir_separator=:
8933      ;;
8934
8935    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8936      if test "$GCC" = yes; then
8937	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8939	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      else
8941	allow_undefined_flag=' -expect_unresolved \*'
8942	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8943	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8944	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8945
8946	# Both c and cxx compiler support -rpath directly
8947	hardcode_libdir_flag_spec='-rpath $libdir'
8948      fi
8949      hardcode_libdir_separator=:
8950      ;;
8951
8952    solaris*)
8953      no_undefined_flag=' -z text'
8954      if test "$GCC" = yes; then
8955	wlarc='${wl}'
8956	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8959      else
8960	wlarc=''
8961	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8964      fi
8965      hardcode_libdir_flag_spec='-R$libdir'
8966      hardcode_shlibpath_var=no
8967      case $host_os in
8968      solaris2.[0-5] | solaris2.[0-5].*) ;;
8969      *)
8970	# The compiler driver will combine and reorder linker options,
8971	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8972	# but is careful enough not to reorder.
8973 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8974	if test "$GCC" = yes; then
8975	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976	else
8977	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8978	fi
8979	;;
8980      esac
8981      link_all_deplibs=yes
8982      ;;
8983
8984    sunos4*)
8985      if test "x$host_vendor" = xsequent; then
8986	# Use $CC to link under sequent, because it throws in some extra .o
8987	# files that make .init and .fini sections work.
8988	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989      else
8990	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8991      fi
8992      hardcode_libdir_flag_spec='-L$libdir'
8993      hardcode_direct=yes
8994      hardcode_minus_L=yes
8995      hardcode_shlibpath_var=no
8996      ;;
8997
8998    sysv4)
8999      case $host_vendor in
9000	sni)
9001	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002	  hardcode_direct=yes # is this really true???
9003	;;
9004	siemens)
9005	  ## LD is ld it makes a PLAMLIB
9006	  ## CC just makes a GrossModule.
9007	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008	  reload_cmds='$CC -r -o $output$reload_objs'
9009	  hardcode_direct=no
9010        ;;
9011	motorola)
9012	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9014	;;
9015      esac
9016      runpath_var='LD_RUN_PATH'
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    sysv4.3*)
9021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022      hardcode_shlibpath_var=no
9023      export_dynamic_flag_spec='-Bexport'
9024      ;;
9025
9026    sysv4*MP*)
9027      if test -d /usr/nec; then
9028	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029	hardcode_shlibpath_var=no
9030	runpath_var=LD_RUN_PATH
9031	hardcode_runpath_var=yes
9032	ld_shlibs=yes
9033      fi
9034      ;;
9035
9036    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037      no_undefined_flag='${wl}-z,text'
9038      archive_cmds_need_lc=no
9039      hardcode_shlibpath_var=no
9040      runpath_var='LD_RUN_PATH'
9041
9042      if test "$GCC" = yes; then
9043	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045      else
9046	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048      fi
9049      ;;
9050
9051    sysv5* | sco3.2v5* | sco5v6*)
9052      # Note: We can NOT use -z defs as we might desire, because we do not
9053      # link with -lc, and that would cause any symbols used from libc to
9054      # always be unresolved, which means just about no library would
9055      # ever link correctly.  If we're not using GNU ld we use -z text
9056      # though, which does catch some bad symbols but isn't as heavy-handed
9057      # as -z defs.
9058      no_undefined_flag='${wl}-z,text'
9059      allow_undefined_flag='${wl}-z,nodefs'
9060      archive_cmds_need_lc=no
9061      hardcode_shlibpath_var=no
9062      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9063      hardcode_libdir_separator=':'
9064      link_all_deplibs=yes
9065      export_dynamic_flag_spec='${wl}-Bexport'
9066      runpath_var='LD_RUN_PATH'
9067
9068      if test "$GCC" = yes; then
9069	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071      else
9072	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074      fi
9075      ;;
9076
9077    uts4*)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_libdir_flag_spec='-L$libdir'
9080      hardcode_shlibpath_var=no
9081      ;;
9082
9083    *)
9084      ld_shlibs=no
9085      ;;
9086    esac
9087  fi
9088
9089{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9090$as_echo "$ld_shlibs" >&6; }
9091test "$ld_shlibs" = no && can_build_shared=no
9092
9093#
9094# Do we need to explicitly link libc?
9095#
9096case "x$archive_cmds_need_lc" in
9097x|xyes)
9098  # Assume -lc should be added
9099  archive_cmds_need_lc=yes
9100
9101  if test "$enable_shared" = yes && test "$GCC" = yes; then
9102    case $archive_cmds in
9103    *'~'*)
9104      # FIXME: we may have to deal with multi-command sequences.
9105      ;;
9106    '$CC '*)
9107      # Test whether the compiler implicitly links with -lc since on some
9108      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9109      # to ld, don't add -lc before -lgcc.
9110      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9112      $rm conftest*
9113      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114
9115      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116  (eval $ac_compile) 2>&5
9117  ac_status=$?
9118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } 2>conftest.err; then
9120        soname=conftest
9121        lib=conftest
9122        libobjs=conftest.$ac_objext
9123        deplibs=
9124        wl=$lt_prog_compiler_wl
9125	pic_flag=$lt_prog_compiler_pic
9126        compiler_flags=-v
9127        linker_flags=-v
9128        verstring=
9129        output_objdir=.
9130        libname=conftest
9131        lt_save_allow_undefined_flag=$allow_undefined_flag
9132        allow_undefined_flag=
9133        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9134  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9135  ac_status=$?
9136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137  (exit $ac_status); }
9138        then
9139	  archive_cmds_need_lc=no
9140        else
9141	  archive_cmds_need_lc=yes
9142        fi
9143        allow_undefined_flag=$lt_save_allow_undefined_flag
9144      else
9145        cat conftest.err 1>&5
9146      fi
9147      $rm conftest*
9148      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9149$as_echo "$archive_cmds_need_lc" >&6; }
9150      ;;
9151    esac
9152  fi
9153  ;;
9154esac
9155
9156{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9157$as_echo_n "checking dynamic linker characteristics... " >&6; }
9158library_names_spec=
9159libname_spec='lib$name'
9160soname_spec=
9161shrext_cmds=".so"
9162postinstall_cmds=
9163postuninstall_cmds=
9164finish_cmds=
9165finish_eval=
9166shlibpath_var=
9167shlibpath_overrides_runpath=unknown
9168version_type=none
9169dynamic_linker="$host_os ld.so"
9170sys_lib_dlsearch_path_spec="/lib /usr/lib"
9171
9172if test "$GCC" = yes; then
9173  case $host_os in
9174    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175    *) lt_awk_arg="/^libraries:/" ;;
9176  esac
9177  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9179    # if the path contains ";" then we assume it to be the separator
9180    # otherwise default to the standard path separator (i.e. ":") - it is
9181    # assumed that no part of a normal pathname contains ";" but that should
9182    # okay in the real world where ";" in dirpaths is itself problematic.
9183    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184  else
9185    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186  fi
9187  # Ok, now we have the path, separated by spaces, we can step through it
9188  # and add multilib dir if necessary.
9189  lt_tmp_lt_search_path_spec=
9190  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191  for lt_sys_path in $lt_search_path_spec; do
9192    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194    else
9195      test -d "$lt_sys_path" && \
9196	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9197    fi
9198  done
9199  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9200BEGIN {RS=" "; FS="/|\n";} {
9201  lt_foo="";
9202  lt_count=0;
9203  for (lt_i = NF; lt_i > 0; lt_i--) {
9204    if ($lt_i != "" && $lt_i != ".") {
9205      if ($lt_i == "..") {
9206        lt_count++;
9207      } else {
9208        if (lt_count == 0) {
9209          lt_foo="/" $lt_i lt_foo;
9210        } else {
9211          lt_count--;
9212        }
9213      }
9214    }
9215  }
9216  if (lt_foo != "") { lt_freq[lt_foo]++; }
9217  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9218}'`
9219  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9220else
9221  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9222fi
9223need_lib_prefix=unknown
9224hardcode_into_libs=no
9225
9226# when you set need_version to no, make sure it does not cause -set_version
9227# flags to be left without arguments
9228need_version=unknown
9229
9230case $host_os in
9231aix3*)
9232  version_type=linux
9233  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234  shlibpath_var=LIBPATH
9235
9236  # AIX 3 has no versioning support, so we append a major version to the name.
9237  soname_spec='${libname}${release}${shared_ext}$major'
9238  ;;
9239
9240aix[4-9]*)
9241  version_type=linux
9242  need_lib_prefix=no
9243  need_version=no
9244  hardcode_into_libs=yes
9245  if test "$host_cpu" = ia64; then
9246    # AIX 5 supports IA64
9247    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248    shlibpath_var=LD_LIBRARY_PATH
9249  else
9250    # With GCC up to 2.95.x, collect2 would create an import file
9251    # for dependence libraries.  The import file would start with
9252    # the line `#! .'.  This would cause the generated library to
9253    # depend on `.', always an invalid library.  This was fixed in
9254    # development snapshots of GCC prior to 3.0.
9255    case $host_os in
9256      aix4 | aix4.[01] | aix4.[01].*)
9257      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9258	   echo ' yes '
9259	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9260	:
9261      else
9262	can_build_shared=no
9263      fi
9264      ;;
9265    esac
9266    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267    # soname into executable. Probably we can add versioning support to
9268    # collect2, so additional links can be useful in future.
9269    if test "$aix_use_runtimelinking" = yes; then
9270      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271      # instead of lib<name>.a to let people know that these are not
9272      # typical AIX shared libraries.
9273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274    else
9275      # We preserve .a as extension for shared libraries through AIX4.2
9276      # and later when we are not doing run time linking.
9277      library_names_spec='${libname}${release}.a $libname.a'
9278      soname_spec='${libname}${release}${shared_ext}$major'
9279    fi
9280    shlibpath_var=LIBPATH
9281  fi
9282  ;;
9283
9284amigaos*)
9285  library_names_spec='$libname.ixlibrary $libname.a'
9286  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9287  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9288  ;;
9289
9290beos*)
9291  library_names_spec='${libname}${shared_ext}'
9292  dynamic_linker="$host_os ld.so"
9293  shlibpath_var=LIBRARY_PATH
9294  ;;
9295
9296bsdi[45]*)
9297  version_type=linux
9298  need_version=no
9299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300  soname_spec='${libname}${release}${shared_ext}$major'
9301  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302  shlibpath_var=LD_LIBRARY_PATH
9303  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305  # the default ld.so.conf also contains /usr/contrib/lib and
9306  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307  # libtool to hard-code these into programs
9308  ;;
9309
9310cygwin* | mingw* | pw32*)
9311  version_type=windows
9312  shrext_cmds=".dll"
9313  need_version=no
9314  need_lib_prefix=no
9315
9316  case $GCC,$host_os in
9317  yes,cygwin* | yes,mingw* | yes,pw32*)
9318    library_names_spec='$libname.dll.a'
9319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320    postinstall_cmds='base_file=`basename \${file}`~
9321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9322      dldir=$destdir/`dirname \$dlpath`~
9323      test -d \$dldir || mkdir -p \$dldir~
9324      $install_prog $dir/$dlname \$dldir/$dlname~
9325      chmod a+x \$dldir/$dlname'
9326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9327      dlpath=$dir/\$dldll~
9328       $rm \$dlpath'
9329    shlibpath_overrides_runpath=yes
9330
9331    case $host_os in
9332    cygwin*)
9333      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9334      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9336      ;;
9337    mingw*)
9338      # MinGW DLLs use traditional 'lib' prefix
9339      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9342        # It is most probably a Windows format PATH printed by
9343        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9344        # path with ; separators, and with drive letters. We can handle the
9345        # drive letters (cygwin fileutils understands them), so leave them,
9346        # especially as we might pass files found there to a mingw objdump,
9347        # which wouldn't understand a cygwinified path. Ahh.
9348        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9349      else
9350        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9351      fi
9352      ;;
9353    pw32*)
9354      # pw32 DLLs use 'pw' prefix rather than 'lib'
9355      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9356      ;;
9357    esac
9358    ;;
9359
9360  *)
9361    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9362    ;;
9363  esac
9364  dynamic_linker='Win32 ld.exe'
9365  # FIXME: first we should search . and the directory the executable is in
9366  shlibpath_var=PATH
9367  ;;
9368
9369darwin* | rhapsody*)
9370  dynamic_linker="$host_os dyld"
9371  version_type=darwin
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9375  soname_spec='${libname}${release}${major}$shared_ext'
9376  shlibpath_overrides_runpath=yes
9377  shlibpath_var=DYLD_LIBRARY_PATH
9378  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9379
9380  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9381  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9382  ;;
9383
9384dgux*)
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  ;;
9392
9393freebsd1*)
9394  dynamic_linker=no
9395  ;;
9396
9397freebsd* | dragonfly*)
9398  # DragonFly does not have aout.  When/if they implement a new
9399  # versioning mechanism, adjust this.
9400  if test -x /usr/bin/objformat; then
9401    objformat=`/usr/bin/objformat`
9402  else
9403    case $host_os in
9404    freebsd[123]*) objformat=aout ;;
9405    *) objformat=elf ;;
9406    esac
9407  fi
9408  version_type=freebsd-$objformat
9409  case $version_type in
9410    freebsd-elf*)
9411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9412      need_version=no
9413      need_lib_prefix=no
9414      ;;
9415    freebsd-*)
9416      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9417      need_version=yes
9418      ;;
9419  esac
9420  shlibpath_var=LD_LIBRARY_PATH
9421  case $host_os in
9422  freebsd2*)
9423    shlibpath_overrides_runpath=yes
9424    ;;
9425  freebsd3.[01]* | freebsdelf3.[01]*)
9426    shlibpath_overrides_runpath=yes
9427    hardcode_into_libs=yes
9428    ;;
9429  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9430  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9431    shlibpath_overrides_runpath=no
9432    hardcode_into_libs=yes
9433    ;;
9434  *) # from 4.6 on, and DragonFly
9435    shlibpath_overrides_runpath=yes
9436    hardcode_into_libs=yes
9437    ;;
9438  esac
9439  ;;
9440
9441gnu*)
9442  version_type=linux
9443  need_lib_prefix=no
9444  need_version=no
9445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9446  soname_spec='${libname}${release}${shared_ext}$major'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  hardcode_into_libs=yes
9449  ;;
9450
9451hpux9* | hpux10* | hpux11*)
9452  # Give a soname corresponding to the major version so that dld.sl refuses to
9453  # link against other versions.
9454  version_type=sunos
9455  need_lib_prefix=no
9456  need_version=no
9457  case $host_cpu in
9458  ia64*)
9459    shrext_cmds='.so'
9460    hardcode_into_libs=yes
9461    dynamic_linker="$host_os dld.so"
9462    shlibpath_var=LD_LIBRARY_PATH
9463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465    soname_spec='${libname}${release}${shared_ext}$major'
9466    if test "X$HPUX_IA64_MODE" = X32; then
9467      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9468    else
9469      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9470    fi
9471    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9472    ;;
9473   hppa*64*)
9474     shrext_cmds='.sl'
9475     hardcode_into_libs=yes
9476     dynamic_linker="$host_os dld.sl"
9477     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480     soname_spec='${libname}${release}${shared_ext}$major'
9481     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483     ;;
9484   *)
9485    shrext_cmds='.sl'
9486    dynamic_linker="$host_os dld.sl"
9487    shlibpath_var=SHLIB_PATH
9488    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490    soname_spec='${libname}${release}${shared_ext}$major'
9491    ;;
9492  esac
9493  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9494  postinstall_cmds='chmod 555 $lib'
9495  ;;
9496
9497interix[3-9]*)
9498  version_type=linux
9499  need_lib_prefix=no
9500  need_version=no
9501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502  soname_spec='${libname}${release}${shared_ext}$major'
9503  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=no
9506  hardcode_into_libs=yes
9507  ;;
9508
9509irix5* | irix6* | nonstopux*)
9510  case $host_os in
9511    nonstopux*) version_type=nonstopux ;;
9512    *)
9513	if test "$lt_cv_prog_gnu_ld" = yes; then
9514		version_type=linux
9515	else
9516		version_type=irix
9517	fi ;;
9518  esac
9519  need_lib_prefix=no
9520  need_version=no
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9523  case $host_os in
9524  irix5* | nonstopux*)
9525    libsuff= shlibsuff=
9526    ;;
9527  *)
9528    case $LD in # libtool.m4 will add one of these switches to LD
9529    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9530      libsuff= shlibsuff= libmagic=32-bit;;
9531    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9532      libsuff=32 shlibsuff=N32 libmagic=N32;;
9533    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9534      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9535    *) libsuff= shlibsuff= libmagic=never-match;;
9536    esac
9537    ;;
9538  esac
9539  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9540  shlibpath_overrides_runpath=no
9541  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9542  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9543  hardcode_into_libs=yes
9544  ;;
9545
9546# No shared lib support for Linux oldld, aout, or coff.
9547linux*oldld* | linux*aout* | linux*coff*)
9548  dynamic_linker=no
9549  ;;
9550
9551# This must be Linux ELF.
9552linux* | k*bsd*-gnu)
9553  version_type=linux
9554  need_lib_prefix=no
9555  need_version=no
9556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557  soname_spec='${libname}${release}${shared_ext}$major'
9558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=no
9561  # This implies no fast_install, which is unacceptable.
9562  # Some rework will be needed to allow for fast_install
9563  # before this can be enabled.
9564  hardcode_into_libs=yes
9565
9566  # Append ld.so.conf contents to the search path
9567  if test -f /etc/ld.so.conf; then
9568    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' ' '`
9569    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9570  fi
9571
9572  # We used to test for /lib/ld.so.1 and disable shared libraries on
9573  # powerpc, because MkLinux only supported shared libraries with the
9574  # GNU dynamic linker.  Since this was broken with cross compilers,
9575  # most powerpc-linux boxes support dynamic linking these days and
9576  # people can always --disable-shared, the test was removed, and we
9577  # assume the GNU/Linux dynamic linker is in use.
9578  dynamic_linker='GNU/Linux ld.so'
9579  ;;
9580
9581netbsd*)
9582  version_type=sunos
9583  need_lib_prefix=no
9584  need_version=no
9585  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9587    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9588    dynamic_linker='NetBSD (a.out) ld.so'
9589  else
9590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9591    soname_spec='${libname}${release}${shared_ext}$major'
9592    dynamic_linker='NetBSD ld.elf_so'
9593  fi
9594  shlibpath_var=LD_LIBRARY_PATH
9595  shlibpath_overrides_runpath=yes
9596  hardcode_into_libs=yes
9597  ;;
9598
9599newsos6)
9600  version_type=linux
9601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  shlibpath_overrides_runpath=yes
9604  ;;
9605
9606nto-qnx*)
9607  version_type=linux
9608  need_lib_prefix=no
9609  need_version=no
9610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611  soname_spec='${libname}${release}${shared_ext}$major'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=yes
9614  ;;
9615
9616openbsd*)
9617  version_type=sunos
9618  sys_lib_dlsearch_path_spec="/usr/lib"
9619  need_lib_prefix=no
9620  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9621  case $host_os in
9622    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9623    *)                         need_version=no  ;;
9624  esac
9625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9626  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9627  shlibpath_var=LD_LIBRARY_PATH
9628  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9629    case $host_os in
9630      openbsd2.[89] | openbsd2.[89].*)
9631	shlibpath_overrides_runpath=no
9632	;;
9633      *)
9634	shlibpath_overrides_runpath=yes
9635	;;
9636      esac
9637  else
9638    shlibpath_overrides_runpath=yes
9639  fi
9640  ;;
9641
9642os2*)
9643  libname_spec='$name'
9644  shrext_cmds=".dll"
9645  need_lib_prefix=no
9646  library_names_spec='$libname${shared_ext} $libname.a'
9647  dynamic_linker='OS/2 ld.exe'
9648  shlibpath_var=LIBPATH
9649  ;;
9650
9651osf3* | osf4* | osf5*)
9652  version_type=osf
9653  need_lib_prefix=no
9654  need_version=no
9655  soname_spec='${libname}${release}${shared_ext}$major'
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657  shlibpath_var=LD_LIBRARY_PATH
9658  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9659  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9660  ;;
9661
9662rdos*)
9663  dynamic_linker=no
9664  ;;
9665
9666solaris*)
9667  version_type=linux
9668  need_lib_prefix=no
9669  need_version=no
9670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  shlibpath_var=LD_LIBRARY_PATH
9673  shlibpath_overrides_runpath=yes
9674  hardcode_into_libs=yes
9675  # ldd complains unless libraries are executable
9676  postinstall_cmds='chmod +x $lib'
9677  ;;
9678
9679sunos4*)
9680  version_type=sunos
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  shlibpath_overrides_runpath=yes
9685  if test "$with_gnu_ld" = yes; then
9686    need_lib_prefix=no
9687  fi
9688  need_version=yes
9689  ;;
9690
9691sysv4 | sysv4.3*)
9692  version_type=linux
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694  soname_spec='${libname}${release}${shared_ext}$major'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  case $host_vendor in
9697    sni)
9698      shlibpath_overrides_runpath=no
9699      need_lib_prefix=no
9700      export_dynamic_flag_spec='${wl}-Blargedynsym'
9701      runpath_var=LD_RUN_PATH
9702      ;;
9703    siemens)
9704      need_lib_prefix=no
9705      ;;
9706    motorola)
9707      need_lib_prefix=no
9708      need_version=no
9709      shlibpath_overrides_runpath=no
9710      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9711      ;;
9712  esac
9713  ;;
9714
9715sysv4*MP*)
9716  if test -d /usr/nec ;then
9717    version_type=linux
9718    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9719    soname_spec='$libname${shared_ext}.$major'
9720    shlibpath_var=LD_LIBRARY_PATH
9721  fi
9722  ;;
9723
9724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9725  version_type=freebsd-elf
9726  need_lib_prefix=no
9727  need_version=no
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9729  soname_spec='${libname}${release}${shared_ext}$major'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  hardcode_into_libs=yes
9732  if test "$with_gnu_ld" = yes; then
9733    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9734    shlibpath_overrides_runpath=no
9735  else
9736    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9737    shlibpath_overrides_runpath=yes
9738    case $host_os in
9739      sco3.2v5*)
9740        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9741	;;
9742    esac
9743  fi
9744  sys_lib_dlsearch_path_spec='/usr/lib'
9745  ;;
9746
9747uts4*)
9748  version_type=linux
9749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750  soname_spec='${libname}${release}${shared_ext}$major'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  ;;
9753
9754*)
9755  dynamic_linker=no
9756  ;;
9757esac
9758{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9759$as_echo "$dynamic_linker" >&6; }
9760test "$dynamic_linker" = no && can_build_shared=no
9761
9762if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9763  $as_echo_n "(cached) " >&6
9764else
9765  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9766fi
9767
9768sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9769if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9770  $as_echo_n "(cached) " >&6
9771else
9772  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9773fi
9774
9775sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9776
9777variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9778if test "$GCC" = yes; then
9779  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9780fi
9781
9782{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9783$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9784hardcode_action=
9785if test -n "$hardcode_libdir_flag_spec" || \
9786   test -n "$runpath_var" || \
9787   test "X$hardcode_automatic" = "Xyes" ; then
9788
9789  # We can hardcode non-existant directories.
9790  if test "$hardcode_direct" != no &&
9791     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9792     # have to relink, otherwise we might link with an installed library
9793     # when we should be linking with a yet-to-be-installed one
9794     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9795     test "$hardcode_minus_L" != no; then
9796    # Linking always hardcodes the temporary library directory.
9797    hardcode_action=relink
9798  else
9799    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9800    hardcode_action=immediate
9801  fi
9802else
9803  # We cannot hardcode anything, or else we can only hardcode existing
9804  # directories.
9805  hardcode_action=unsupported
9806fi
9807{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9808$as_echo "$hardcode_action" >&6; }
9809
9810if test "$hardcode_action" = relink; then
9811  # Fast installation is not supported
9812  enable_fast_install=no
9813elif test "$shlibpath_overrides_runpath" = yes ||
9814     test "$enable_shared" = no; then
9815  # Fast installation is not necessary
9816  enable_fast_install=needless
9817fi
9818
9819striplib=
9820old_striplib=
9821{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9822$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9823if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9824  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9825  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9826  { $as_echo "$as_me:$LINENO: result: yes" >&5
9827$as_echo "yes" >&6; }
9828else
9829# FIXME - insert some real tests, host_os isn't really good enough
9830  case $host_os in
9831   darwin*)
9832       if test -n "$STRIP" ; then
9833         striplib="$STRIP -x"
9834         old_striplib="$STRIP -S"
9835         { $as_echo "$as_me:$LINENO: result: yes" >&5
9836$as_echo "yes" >&6; }
9837       else
9838  { $as_echo "$as_me:$LINENO: result: no" >&5
9839$as_echo "no" >&6; }
9840fi
9841       ;;
9842   *)
9843  { $as_echo "$as_me:$LINENO: result: no" >&5
9844$as_echo "no" >&6; }
9845    ;;
9846  esac
9847fi
9848
9849if test "x$enable_dlopen" != xyes; then
9850  enable_dlopen=unknown
9851  enable_dlopen_self=unknown
9852  enable_dlopen_self_static=unknown
9853else
9854  lt_cv_dlopen=no
9855  lt_cv_dlopen_libs=
9856
9857  case $host_os in
9858  beos*)
9859    lt_cv_dlopen="load_add_on"
9860    lt_cv_dlopen_libs=
9861    lt_cv_dlopen_self=yes
9862    ;;
9863
9864  mingw* | pw32*)
9865    lt_cv_dlopen="LoadLibrary"
9866    lt_cv_dlopen_libs=
9867   ;;
9868
9869  cygwin*)
9870    lt_cv_dlopen="dlopen"
9871    lt_cv_dlopen_libs=
9872   ;;
9873
9874  darwin*)
9875  # if libdl is installed we need to link against it
9876    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9877$as_echo_n "checking for dlopen in -ldl... " >&6; }
9878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9879  $as_echo_n "(cached) " >&6
9880else
9881  ac_check_lib_save_LIBS=$LIBS
9882LIBS="-ldl  $LIBS"
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h.  */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h.  */
9889
9890/* Override any GCC internal prototype to avoid an error.
9891   Use char because int might match the return type of a GCC
9892   builtin and then its argument prototype would still apply.  */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896char dlopen ();
9897int
9898main ()
9899{
9900return dlopen ();
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (ac_try="$ac_link"
9907case "(($ac_try" in
9908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909  *) ac_try_echo=$ac_try;;
9910esac
9911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9912$as_echo "$ac_try_echo") >&5
9913  (eval "$ac_link") 2>conftest.er1
9914  ac_status=$?
9915  grep -v '^ *+' conftest.er1 >conftest.err
9916  rm -f conftest.er1
9917  cat conftest.err >&5
9918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); } && {
9920	 test -z "$ac_c_werror_flag" ||
9921	 test ! -s conftest.err
9922       } && test -s conftest$ac_exeext && {
9923	 test "$cross_compiling" = yes ||
9924	 $as_test_x conftest$ac_exeext
9925       }; then
9926  ac_cv_lib_dl_dlopen=yes
9927else
9928  $as_echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931	ac_cv_lib_dl_dlopen=no
9932fi
9933
9934rm -rf conftest.dSYM
9935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936      conftest$ac_exeext conftest.$ac_ext
9937LIBS=$ac_check_lib_save_LIBS
9938fi
9939{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9941if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9942  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9943else
9944
9945    lt_cv_dlopen="dyld"
9946    lt_cv_dlopen_libs=
9947    lt_cv_dlopen_self=yes
9948
9949fi
9950
9951   ;;
9952
9953  *)
9954    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9955$as_echo_n "checking for shl_load... " >&6; }
9956if test "${ac_cv_func_shl_load+set}" = set; then
9957  $as_echo_n "(cached) " >&6
9958else
9959  cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h.  */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h.  */
9965/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9966   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9967#define shl_load innocuous_shl_load
9968
9969/* System header to define __stub macros and hopefully few prototypes,
9970    which can conflict with char shl_load (); below.
9971    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972    <limits.h> exists even on freestanding compilers.  */
9973
9974#ifdef __STDC__
9975# include <limits.h>
9976#else
9977# include <assert.h>
9978#endif
9979
9980#undef shl_load
9981
9982/* Override any GCC internal prototype to avoid an error.
9983   Use char because int might match the return type of a GCC
9984   builtin and then its argument prototype would still apply.  */
9985#ifdef __cplusplus
9986extern "C"
9987#endif
9988char shl_load ();
9989/* The GNU C library defines this for functions which it implements
9990    to always fail with ENOSYS.  Some functions are actually named
9991    something starting with __ and the normal name is an alias.  */
9992#if defined __stub_shl_load || defined __stub___shl_load
9993choke me
9994#endif
9995
9996int
9997main ()
9998{
9999return shl_load ();
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (ac_try="$ac_link"
10006case "(($ac_try" in
10007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008  *) ac_try_echo=$ac_try;;
10009esac
10010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10011$as_echo "$ac_try_echo") >&5
10012  (eval "$ac_link") 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } && {
10019	 test -z "$ac_c_werror_flag" ||
10020	 test ! -s conftest.err
10021       } && test -s conftest$ac_exeext && {
10022	 test "$cross_compiling" = yes ||
10023	 $as_test_x conftest$ac_exeext
10024       }; then
10025  ac_cv_func_shl_load=yes
10026else
10027  $as_echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030	ac_cv_func_shl_load=no
10031fi
10032
10033rm -rf conftest.dSYM
10034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035      conftest$ac_exeext conftest.$ac_ext
10036fi
10037{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10038$as_echo "$ac_cv_func_shl_load" >&6; }
10039if test "x$ac_cv_func_shl_load" = x""yes; then
10040  lt_cv_dlopen="shl_load"
10041else
10042  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10043$as_echo_n "checking for shl_load in -ldld... " >&6; }
10044if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10045  $as_echo_n "(cached) " >&6
10046else
10047  ac_check_lib_save_LIBS=$LIBS
10048LIBS="-ldld  $LIBS"
10049cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h.  */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h.  */
10055
10056/* Override any GCC internal prototype to avoid an error.
10057   Use char because int might match the return type of a GCC
10058   builtin and then its argument prototype would still apply.  */
10059#ifdef __cplusplus
10060extern "C"
10061#endif
10062char shl_load ();
10063int
10064main ()
10065{
10066return shl_load ();
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
10072if { (ac_try="$ac_link"
10073case "(($ac_try" in
10074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075  *) ac_try_echo=$ac_try;;
10076esac
10077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10078$as_echo "$ac_try_echo") >&5
10079  (eval "$ac_link") 2>conftest.er1
10080  ac_status=$?
10081  grep -v '^ *+' conftest.er1 >conftest.err
10082  rm -f conftest.er1
10083  cat conftest.err >&5
10084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); } && {
10086	 test -z "$ac_c_werror_flag" ||
10087	 test ! -s conftest.err
10088       } && test -s conftest$ac_exeext && {
10089	 test "$cross_compiling" = yes ||
10090	 $as_test_x conftest$ac_exeext
10091       }; then
10092  ac_cv_lib_dld_shl_load=yes
10093else
10094  $as_echo "$as_me: failed program was:" >&5
10095sed 's/^/| /' conftest.$ac_ext >&5
10096
10097	ac_cv_lib_dld_shl_load=no
10098fi
10099
10100rm -rf conftest.dSYM
10101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10102      conftest$ac_exeext conftest.$ac_ext
10103LIBS=$ac_check_lib_save_LIBS
10104fi
10105{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10106$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10107if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10108  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10109else
10110  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10111$as_echo_n "checking for dlopen... " >&6; }
10112if test "${ac_cv_func_dlopen+set}" = set; then
10113  $as_echo_n "(cached) " >&6
10114else
10115  cat >conftest.$ac_ext <<_ACEOF
10116/* confdefs.h.  */
10117_ACEOF
10118cat confdefs.h >>conftest.$ac_ext
10119cat >>conftest.$ac_ext <<_ACEOF
10120/* end confdefs.h.  */
10121/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10123#define dlopen innocuous_dlopen
10124
10125/* System header to define __stub macros and hopefully few prototypes,
10126    which can conflict with char dlopen (); below.
10127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128    <limits.h> exists even on freestanding compilers.  */
10129
10130#ifdef __STDC__
10131# include <limits.h>
10132#else
10133# include <assert.h>
10134#endif
10135
10136#undef dlopen
10137
10138/* Override any GCC internal prototype to avoid an error.
10139   Use char because int might match the return type of a GCC
10140   builtin and then its argument prototype would still apply.  */
10141#ifdef __cplusplus
10142extern "C"
10143#endif
10144char dlopen ();
10145/* The GNU C library defines this for functions which it implements
10146    to always fail with ENOSYS.  Some functions are actually named
10147    something starting with __ and the normal name is an alias.  */
10148#if defined __stub_dlopen || defined __stub___dlopen
10149choke me
10150#endif
10151
10152int
10153main ()
10154{
10155return dlopen ();
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164  *) ac_try_echo=$ac_try;;
10165esac
10166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167$as_echo "$ac_try_echo") >&5
10168  (eval "$ac_link") 2>conftest.er1
10169  ac_status=$?
10170  grep -v '^ *+' conftest.er1 >conftest.err
10171  rm -f conftest.er1
10172  cat conftest.err >&5
10173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); } && {
10175	 test -z "$ac_c_werror_flag" ||
10176	 test ! -s conftest.err
10177       } && test -s conftest$ac_exeext && {
10178	 test "$cross_compiling" = yes ||
10179	 $as_test_x conftest$ac_exeext
10180       }; then
10181  ac_cv_func_dlopen=yes
10182else
10183  $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186	ac_cv_func_dlopen=no
10187fi
10188
10189rm -rf conftest.dSYM
10190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191      conftest$ac_exeext conftest.$ac_ext
10192fi
10193{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10194$as_echo "$ac_cv_func_dlopen" >&6; }
10195if test "x$ac_cv_func_dlopen" = x""yes; then
10196  lt_cv_dlopen="dlopen"
10197else
10198  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10199$as_echo_n "checking for dlopen in -ldl... " >&6; }
10200if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10201  $as_echo_n "(cached) " >&6
10202else
10203  ac_check_lib_save_LIBS=$LIBS
10204LIBS="-ldl  $LIBS"
10205cat >conftest.$ac_ext <<_ACEOF
10206/* confdefs.h.  */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h.  */
10211
10212/* Override any GCC internal prototype to avoid an error.
10213   Use char because int might match the return type of a GCC
10214   builtin and then its argument prototype would still apply.  */
10215#ifdef __cplusplus
10216extern "C"
10217#endif
10218char dlopen ();
10219int
10220main ()
10221{
10222return dlopen ();
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231  *) ac_try_echo=$ac_try;;
10232esac
10233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10234$as_echo "$ac_try_echo") >&5
10235  (eval "$ac_link") 2>conftest.er1
10236  ac_status=$?
10237  grep -v '^ *+' conftest.er1 >conftest.err
10238  rm -f conftest.er1
10239  cat conftest.err >&5
10240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } && {
10242	 test -z "$ac_c_werror_flag" ||
10243	 test ! -s conftest.err
10244       } && test -s conftest$ac_exeext && {
10245	 test "$cross_compiling" = yes ||
10246	 $as_test_x conftest$ac_exeext
10247       }; then
10248  ac_cv_lib_dl_dlopen=yes
10249else
10250  $as_echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253	ac_cv_lib_dl_dlopen=no
10254fi
10255
10256rm -rf conftest.dSYM
10257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258      conftest$ac_exeext conftest.$ac_ext
10259LIBS=$ac_check_lib_save_LIBS
10260fi
10261{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10262$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10263if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10264  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265else
10266  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10267$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10268if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10269  $as_echo_n "(cached) " >&6
10270else
10271  ac_check_lib_save_LIBS=$LIBS
10272LIBS="-lsvld  $LIBS"
10273cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h.  */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h.  */
10279
10280/* Override any GCC internal prototype to avoid an error.
10281   Use char because int might match the return type of a GCC
10282   builtin and then its argument prototype would still apply.  */
10283#ifdef __cplusplus
10284extern "C"
10285#endif
10286char dlopen ();
10287int
10288main ()
10289{
10290return dlopen ();
10291  ;
10292  return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext conftest$ac_exeext
10296if { (ac_try="$ac_link"
10297case "(($ac_try" in
10298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299  *) ac_try_echo=$ac_try;;
10300esac
10301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302$as_echo "$ac_try_echo") >&5
10303  (eval "$ac_link") 2>conftest.er1
10304  ac_status=$?
10305  grep -v '^ *+' conftest.er1 >conftest.err
10306  rm -f conftest.er1
10307  cat conftest.err >&5
10308  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); } && {
10310	 test -z "$ac_c_werror_flag" ||
10311	 test ! -s conftest.err
10312       } && test -s conftest$ac_exeext && {
10313	 test "$cross_compiling" = yes ||
10314	 $as_test_x conftest$ac_exeext
10315       }; then
10316  ac_cv_lib_svld_dlopen=yes
10317else
10318  $as_echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
10320
10321	ac_cv_lib_svld_dlopen=no
10322fi
10323
10324rm -rf conftest.dSYM
10325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10326      conftest$ac_exeext conftest.$ac_ext
10327LIBS=$ac_check_lib_save_LIBS
10328fi
10329{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10330$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10331if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10332  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10333else
10334  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10335$as_echo_n "checking for dld_link in -ldld... " >&6; }
10336if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10337  $as_echo_n "(cached) " >&6
10338else
10339  ac_check_lib_save_LIBS=$LIBS
10340LIBS="-ldld  $LIBS"
10341cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h.  */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h.  */
10347
10348/* Override any GCC internal prototype to avoid an error.
10349   Use char because int might match the return type of a GCC
10350   builtin and then its argument prototype would still apply.  */
10351#ifdef __cplusplus
10352extern "C"
10353#endif
10354char dld_link ();
10355int
10356main ()
10357{
10358return dld_link ();
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (ac_try="$ac_link"
10365case "(($ac_try" in
10366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367  *) ac_try_echo=$ac_try;;
10368esac
10369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370$as_echo "$ac_try_echo") >&5
10371  (eval "$ac_link") 2>conftest.er1
10372  ac_status=$?
10373  grep -v '^ *+' conftest.er1 >conftest.err
10374  rm -f conftest.er1
10375  cat conftest.err >&5
10376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); } && {
10378	 test -z "$ac_c_werror_flag" ||
10379	 test ! -s conftest.err
10380       } && test -s conftest$ac_exeext && {
10381	 test "$cross_compiling" = yes ||
10382	 $as_test_x conftest$ac_exeext
10383       }; then
10384  ac_cv_lib_dld_dld_link=yes
10385else
10386  $as_echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389	ac_cv_lib_dld_dld_link=no
10390fi
10391
10392rm -rf conftest.dSYM
10393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10394      conftest$ac_exeext conftest.$ac_ext
10395LIBS=$ac_check_lib_save_LIBS
10396fi
10397{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10398$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10399if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10400  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10401fi
10402
10403
10404fi
10405
10406
10407fi
10408
10409
10410fi
10411
10412
10413fi
10414
10415
10416fi
10417
10418    ;;
10419  esac
10420
10421  if test "x$lt_cv_dlopen" != xno; then
10422    enable_dlopen=yes
10423  else
10424    enable_dlopen=no
10425  fi
10426
10427  case $lt_cv_dlopen in
10428  dlopen)
10429    save_CPPFLAGS="$CPPFLAGS"
10430    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10431
10432    save_LDFLAGS="$LDFLAGS"
10433    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10434
10435    save_LIBS="$LIBS"
10436    LIBS="$lt_cv_dlopen_libs $LIBS"
10437
10438    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10439$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10440if test "${lt_cv_dlopen_self+set}" = set; then
10441  $as_echo_n "(cached) " >&6
10442else
10443  	  if test "$cross_compiling" = yes; then :
10444  lt_cv_dlopen_self=cross
10445else
10446  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10447  lt_status=$lt_dlunknown
10448  cat > conftest.$ac_ext <<EOF
10449#line 10449 "configure"
10450#include "confdefs.h"
10451
10452#if HAVE_DLFCN_H
10453#include <dlfcn.h>
10454#endif
10455
10456#include <stdio.h>
10457
10458#ifdef RTLD_GLOBAL
10459#  define LT_DLGLOBAL		RTLD_GLOBAL
10460#else
10461#  ifdef DL_GLOBAL
10462#    define LT_DLGLOBAL		DL_GLOBAL
10463#  else
10464#    define LT_DLGLOBAL		0
10465#  endif
10466#endif
10467
10468/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10469   find out it does not work in some platform. */
10470#ifndef LT_DLLAZY_OR_NOW
10471#  ifdef RTLD_LAZY
10472#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10473#  else
10474#    ifdef DL_LAZY
10475#      define LT_DLLAZY_OR_NOW		DL_LAZY
10476#    else
10477#      ifdef RTLD_NOW
10478#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10479#      else
10480#        ifdef DL_NOW
10481#          define LT_DLLAZY_OR_NOW	DL_NOW
10482#        else
10483#          define LT_DLLAZY_OR_NOW	0
10484#        endif
10485#      endif
10486#    endif
10487#  endif
10488#endif
10489
10490#ifdef __cplusplus
10491extern "C" void exit (int);
10492#endif
10493
10494void fnord() { int i=42;}
10495int main ()
10496{
10497  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10498  int status = $lt_dlunknown;
10499
10500  if (self)
10501    {
10502      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10503      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10504      /* dlclose (self); */
10505    }
10506  else
10507    puts (dlerror ());
10508
10509    exit (status);
10510}
10511EOF
10512  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513  (eval $ac_link) 2>&5
10514  ac_status=$?
10515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10517    (./conftest; exit; ) >&5 2>/dev/null
10518    lt_status=$?
10519    case x$lt_status in
10520      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10521      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10522      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10523    esac
10524  else :
10525    # compilation failed
10526    lt_cv_dlopen_self=no
10527  fi
10528fi
10529rm -fr conftest*
10530
10531
10532fi
10533{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10534$as_echo "$lt_cv_dlopen_self" >&6; }
10535
10536    if test "x$lt_cv_dlopen_self" = xyes; then
10537      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10538      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10539$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10540if test "${lt_cv_dlopen_self_static+set}" = set; then
10541  $as_echo_n "(cached) " >&6
10542else
10543  	  if test "$cross_compiling" = yes; then :
10544  lt_cv_dlopen_self_static=cross
10545else
10546  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10547  lt_status=$lt_dlunknown
10548  cat > conftest.$ac_ext <<EOF
10549#line 10549 "configure"
10550#include "confdefs.h"
10551
10552#if HAVE_DLFCN_H
10553#include <dlfcn.h>
10554#endif
10555
10556#include <stdio.h>
10557
10558#ifdef RTLD_GLOBAL
10559#  define LT_DLGLOBAL		RTLD_GLOBAL
10560#else
10561#  ifdef DL_GLOBAL
10562#    define LT_DLGLOBAL		DL_GLOBAL
10563#  else
10564#    define LT_DLGLOBAL		0
10565#  endif
10566#endif
10567
10568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10569   find out it does not work in some platform. */
10570#ifndef LT_DLLAZY_OR_NOW
10571#  ifdef RTLD_LAZY
10572#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10573#  else
10574#    ifdef DL_LAZY
10575#      define LT_DLLAZY_OR_NOW		DL_LAZY
10576#    else
10577#      ifdef RTLD_NOW
10578#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10579#      else
10580#        ifdef DL_NOW
10581#          define LT_DLLAZY_OR_NOW	DL_NOW
10582#        else
10583#          define LT_DLLAZY_OR_NOW	0
10584#        endif
10585#      endif
10586#    endif
10587#  endif
10588#endif
10589
10590#ifdef __cplusplus
10591extern "C" void exit (int);
10592#endif
10593
10594void fnord() { int i=42;}
10595int main ()
10596{
10597  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10598  int status = $lt_dlunknown;
10599
10600  if (self)
10601    {
10602      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10603      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10604      /* dlclose (self); */
10605    }
10606  else
10607    puts (dlerror ());
10608
10609    exit (status);
10610}
10611EOF
10612  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613  (eval $ac_link) 2>&5
10614  ac_status=$?
10615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10617    (./conftest; exit; ) >&5 2>/dev/null
10618    lt_status=$?
10619    case x$lt_status in
10620      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10621      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10622      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10623    esac
10624  else :
10625    # compilation failed
10626    lt_cv_dlopen_self_static=no
10627  fi
10628fi
10629rm -fr conftest*
10630
10631
10632fi
10633{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10634$as_echo "$lt_cv_dlopen_self_static" >&6; }
10635    fi
10636
10637    CPPFLAGS="$save_CPPFLAGS"
10638    LDFLAGS="$save_LDFLAGS"
10639    LIBS="$save_LIBS"
10640    ;;
10641  esac
10642
10643  case $lt_cv_dlopen_self in
10644  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10645  *) enable_dlopen_self=unknown ;;
10646  esac
10647
10648  case $lt_cv_dlopen_self_static in
10649  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10650  *) enable_dlopen_self_static=unknown ;;
10651  esac
10652fi
10653
10654
10655# Report which library types will actually be built
10656{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10657$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10658{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10659$as_echo "$can_build_shared" >&6; }
10660
10661{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10662$as_echo_n "checking whether to build shared libraries... " >&6; }
10663test "$can_build_shared" = "no" && enable_shared=no
10664
10665# On AIX, shared libraries and static libraries use the same namespace, and
10666# are all built from PIC.
10667case $host_os in
10668aix3*)
10669  test "$enable_shared" = yes && enable_static=no
10670  if test -n "$RANLIB"; then
10671    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10672    postinstall_cmds='$RANLIB $lib'
10673  fi
10674  ;;
10675
10676aix[4-9]*)
10677  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10678    test "$enable_shared" = yes && enable_static=no
10679  fi
10680    ;;
10681esac
10682{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10683$as_echo "$enable_shared" >&6; }
10684
10685{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10686$as_echo_n "checking whether to build static libraries... " >&6; }
10687# Make sure either enable_shared or enable_static is yes.
10688test "$enable_shared" = yes || enable_static=yes
10689{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10690$as_echo "$enable_static" >&6; }
10691
10692# The else clause should only fire when bootstrapping the
10693# libtool distribution, otherwise you forgot to ship ltmain.sh
10694# with your package, and you will get complaints that there are
10695# no rules to generate ltmain.sh.
10696if test -f "$ltmain"; then
10697  # See if we are running on zsh, and set the options which allow our commands through
10698  # without removal of \ escapes.
10699  if test -n "${ZSH_VERSION+set}" ; then
10700    setopt NO_GLOB_SUBST
10701  fi
10702  # Now quote all the things that may contain metacharacters while being
10703  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10704  # variables and quote the copies for generation of the libtool script.
10705  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10706    SED SHELL STRIP \
10707    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10708    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10709    deplibs_check_method reload_flag reload_cmds need_locks \
10710    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10711    lt_cv_sys_global_symbol_to_c_name_address \
10712    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10713    old_postinstall_cmds old_postuninstall_cmds \
10714    compiler \
10715    CC \
10716    LD \
10717    lt_prog_compiler_wl \
10718    lt_prog_compiler_pic \
10719    lt_prog_compiler_static \
10720    lt_prog_compiler_no_builtin_flag \
10721    export_dynamic_flag_spec \
10722    thread_safe_flag_spec \
10723    whole_archive_flag_spec \
10724    enable_shared_with_static_runtimes \
10725    old_archive_cmds \
10726    old_archive_from_new_cmds \
10727    predep_objects \
10728    postdep_objects \
10729    predeps \
10730    postdeps \
10731    compiler_lib_search_path \
10732    compiler_lib_search_dirs \
10733    archive_cmds \
10734    archive_expsym_cmds \
10735    postinstall_cmds \
10736    postuninstall_cmds \
10737    old_archive_from_expsyms_cmds \
10738    allow_undefined_flag \
10739    no_undefined_flag \
10740    export_symbols_cmds \
10741    hardcode_libdir_flag_spec \
10742    hardcode_libdir_flag_spec_ld \
10743    hardcode_libdir_separator \
10744    hardcode_automatic \
10745    module_cmds \
10746    module_expsym_cmds \
10747    lt_cv_prog_compiler_c_o \
10748    fix_srcfile_path \
10749    exclude_expsyms \
10750    include_expsyms; do
10751
10752    case $var in
10753    old_archive_cmds | \
10754    old_archive_from_new_cmds | \
10755    archive_cmds | \
10756    archive_expsym_cmds | \
10757    module_cmds | \
10758    module_expsym_cmds | \
10759    old_archive_from_expsyms_cmds | \
10760    export_symbols_cmds | \
10761    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10762    postinstall_cmds | postuninstall_cmds | \
10763    old_postinstall_cmds | old_postuninstall_cmds | \
10764    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10765      # Double-quote double-evaled strings.
10766      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10767      ;;
10768    *)
10769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10770      ;;
10771    esac
10772  done
10773
10774  case $lt_echo in
10775  *'\$0 --fallback-echo"')
10776    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10777    ;;
10778  esac
10779
10780cfgfile="${ofile}T"
10781  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10782  $rm -f "$cfgfile"
10783  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10784$as_echo "$as_me: creating $ofile" >&6;}
10785
10786  cat <<__EOF__ >> "$cfgfile"
10787#! $SHELL
10788
10789# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10790# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10791# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10792#
10793# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10794# Free Software Foundation, Inc.
10795#
10796# This file is part of GNU Libtool:
10797# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10798#
10799# This program is free software; you can redistribute it and/or modify
10800# it under the terms of the GNU General Public License as published by
10801# the Free Software Foundation; either version 2 of the License, or
10802# (at your option) any later version.
10803#
10804# This program is distributed in the hope that it will be useful, but
10805# WITHOUT ANY WARRANTY; without even the implied warranty of
10806# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10807# General Public License for more details.
10808#
10809# You should have received a copy of the GNU General Public License
10810# along with this program; if not, write to the Free Software
10811# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10812#
10813# As a special exception to the GNU General Public License, if you
10814# distribute this file as part of a program that contains a
10815# configuration script generated by Autoconf, you may include it under
10816# the same distribution terms that you use for the rest of that program.
10817
10818# A sed program that does not truncate output.
10819SED=$lt_SED
10820
10821# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10822Xsed="$SED -e 1s/^X//"
10823
10824# The HP-UX ksh and POSIX shell print the target directory to stdout
10825# if CDPATH is set.
10826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10827
10828# The names of the tagged configurations supported by this script.
10829available_tags=
10830
10831# ### BEGIN LIBTOOL CONFIG
10832
10833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10834
10835# Shell to use when invoking shell scripts.
10836SHELL=$lt_SHELL
10837
10838# Whether or not to build shared libraries.
10839build_libtool_libs=$enable_shared
10840
10841# Whether or not to build static libraries.
10842build_old_libs=$enable_static
10843
10844# Whether or not to add -lc for building shared libraries.
10845build_libtool_need_lc=$archive_cmds_need_lc
10846
10847# Whether or not to disallow shared libs when runtime libs are static
10848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10849
10850# Whether or not to optimize for fast installation.
10851fast_install=$enable_fast_install
10852
10853# The host system.
10854host_alias=$host_alias
10855host=$host
10856host_os=$host_os
10857
10858# The build system.
10859build_alias=$build_alias
10860build=$build
10861build_os=$build_os
10862
10863# An echo program that does not interpret backslashes.
10864echo=$lt_echo
10865
10866# The archiver.
10867AR=$lt_AR
10868AR_FLAGS=$lt_AR_FLAGS
10869
10870# A C compiler.
10871LTCC=$lt_LTCC
10872
10873# LTCC compiler flags.
10874LTCFLAGS=$lt_LTCFLAGS
10875
10876# A language-specific compiler.
10877CC=$lt_compiler
10878
10879# Is the compiler the GNU C compiler?
10880with_gcc=$GCC
10881
10882# An ERE matcher.
10883EGREP=$lt_EGREP
10884
10885# The linker used to build libraries.
10886LD=$lt_LD
10887
10888# Whether we need hard or soft links.
10889LN_S=$lt_LN_S
10890
10891# A BSD-compatible nm program.
10892NM=$lt_NM
10893
10894# A symbol stripping program
10895STRIP=$lt_STRIP
10896
10897# Used to examine libraries when file_magic_cmd begins "file"
10898MAGIC_CMD=$MAGIC_CMD
10899
10900# Used on cygwin: DLL creation program.
10901DLLTOOL="$DLLTOOL"
10902
10903# Used on cygwin: object dumper.
10904OBJDUMP="$OBJDUMP"
10905
10906# Used on cygwin: assembler.
10907AS="$AS"
10908
10909# The name of the directory that contains temporary libtool files.
10910objdir=$objdir
10911
10912# How to create reloadable object files.
10913reload_flag=$lt_reload_flag
10914reload_cmds=$lt_reload_cmds
10915
10916# How to pass a linker flag through the compiler.
10917wl=$lt_lt_prog_compiler_wl
10918
10919# Object file suffix (normally "o").
10920objext="$ac_objext"
10921
10922# Old archive suffix (normally "a").
10923libext="$libext"
10924
10925# Shared library suffix (normally ".so").
10926shrext_cmds='$shrext_cmds'
10927
10928# Executable file suffix (normally "").
10929exeext="$exeext"
10930
10931# Additional compiler flags for building library objects.
10932pic_flag=$lt_lt_prog_compiler_pic
10933pic_mode=$pic_mode
10934
10935# What is the maximum length of a command?
10936max_cmd_len=$lt_cv_sys_max_cmd_len
10937
10938# Does compiler simultaneously support -c and -o options?
10939compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10940
10941# Must we lock files when doing compilation?
10942need_locks=$lt_need_locks
10943
10944# Do we need the lib prefix for modules?
10945need_lib_prefix=$need_lib_prefix
10946
10947# Do we need a version for libraries?
10948need_version=$need_version
10949
10950# Whether dlopen is supported.
10951dlopen_support=$enable_dlopen
10952
10953# Whether dlopen of programs is supported.
10954dlopen_self=$enable_dlopen_self
10955
10956# Whether dlopen of statically linked programs is supported.
10957dlopen_self_static=$enable_dlopen_self_static
10958
10959# Compiler flag to prevent dynamic linking.
10960link_static_flag=$lt_lt_prog_compiler_static
10961
10962# Compiler flag to turn off builtin functions.
10963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10964
10965# Compiler flag to allow reflexive dlopens.
10966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10967
10968# Compiler flag to generate shared objects directly from archives.
10969whole_archive_flag_spec=$lt_whole_archive_flag_spec
10970
10971# Compiler flag to generate thread-safe objects.
10972thread_safe_flag_spec=$lt_thread_safe_flag_spec
10973
10974# Library versioning type.
10975version_type=$version_type
10976
10977# Format of library name prefix.
10978libname_spec=$lt_libname_spec
10979
10980# List of archive names.  First name is the real one, the rest are links.
10981# The last name is the one that the linker finds with -lNAME.
10982library_names_spec=$lt_library_names_spec
10983
10984# The coded name of the library, if different from the real name.
10985soname_spec=$lt_soname_spec
10986
10987# Commands used to build and install an old-style archive.
10988RANLIB=$lt_RANLIB
10989old_archive_cmds=$lt_old_archive_cmds
10990old_postinstall_cmds=$lt_old_postinstall_cmds
10991old_postuninstall_cmds=$lt_old_postuninstall_cmds
10992
10993# Create an old-style archive from a shared archive.
10994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10995
10996# Create a temporary old-style archive to link instead of a shared archive.
10997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10998
10999# Commands used to build and install a shared archive.
11000archive_cmds=$lt_archive_cmds
11001archive_expsym_cmds=$lt_archive_expsym_cmds
11002postinstall_cmds=$lt_postinstall_cmds
11003postuninstall_cmds=$lt_postuninstall_cmds
11004
11005# Commands used to build a loadable module (assumed same as above if empty)
11006module_cmds=$lt_module_cmds
11007module_expsym_cmds=$lt_module_expsym_cmds
11008
11009# Commands to strip libraries.
11010old_striplib=$lt_old_striplib
11011striplib=$lt_striplib
11012
11013# Dependencies to place before the objects being linked to create a
11014# shared library.
11015predep_objects=$lt_predep_objects
11016
11017# Dependencies to place after the objects being linked to create a
11018# shared library.
11019postdep_objects=$lt_postdep_objects
11020
11021# Dependencies to place before the objects being linked to create a
11022# shared library.
11023predeps=$lt_predeps
11024
11025# Dependencies to place after the objects being linked to create a
11026# shared library.
11027postdeps=$lt_postdeps
11028
11029# The directories searched by this compiler when creating a shared
11030# library
11031compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11032
11033# The library search path used internally by the compiler when linking
11034# a shared library.
11035compiler_lib_search_path=$lt_compiler_lib_search_path
11036
11037# Method to check whether dependent libraries are shared objects.
11038deplibs_check_method=$lt_deplibs_check_method
11039
11040# Command to use when deplibs_check_method == file_magic.
11041file_magic_cmd=$lt_file_magic_cmd
11042
11043# Flag that allows shared libraries with undefined symbols to be built.
11044allow_undefined_flag=$lt_allow_undefined_flag
11045
11046# Flag that forces no undefined symbols.
11047no_undefined_flag=$lt_no_undefined_flag
11048
11049# Commands used to finish a libtool library installation in a directory.
11050finish_cmds=$lt_finish_cmds
11051
11052# Same as above, but a single script fragment to be evaled but not shown.
11053finish_eval=$lt_finish_eval
11054
11055# Take the output of nm and produce a listing of raw symbols and C names.
11056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11057
11058# Transform the output of nm in a proper C declaration
11059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11060
11061# Transform the output of nm in a C name address pair
11062global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11063
11064# This is the shared library runtime path variable.
11065runpath_var=$runpath_var
11066
11067# This is the shared library path variable.
11068shlibpath_var=$shlibpath_var
11069
11070# Is shlibpath searched before the hard-coded library search path?
11071shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11072
11073# How to hardcode a shared library path into an executable.
11074hardcode_action=$hardcode_action
11075
11076# Whether we should hardcode library paths into libraries.
11077hardcode_into_libs=$hardcode_into_libs
11078
11079# Flag to hardcode \$libdir into a binary during linking.
11080# This must work even if \$libdir does not exist.
11081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11082
11083# If ld is used when linking, flag to hardcode \$libdir into
11084# a binary during linking. This must work even if \$libdir does
11085# not exist.
11086hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11087
11088# Whether we need a single -rpath flag with a separated argument.
11089hardcode_libdir_separator=$lt_hardcode_libdir_separator
11090
11091# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11092# resulting binary.
11093hardcode_direct=$hardcode_direct
11094
11095# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11096# resulting binary.
11097hardcode_minus_L=$hardcode_minus_L
11098
11099# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11100# the resulting binary.
11101hardcode_shlibpath_var=$hardcode_shlibpath_var
11102
11103# Set to yes if building a shared library automatically hardcodes DIR into the library
11104# and all subsequent libraries and executables linked against it.
11105hardcode_automatic=$hardcode_automatic
11106
11107# Variables whose values should be saved in libtool wrapper scripts and
11108# restored at relink time.
11109variables_saved_for_relink="$variables_saved_for_relink"
11110
11111# Whether libtool must link a program against all its dependency libraries.
11112link_all_deplibs=$link_all_deplibs
11113
11114# Compile-time system search path for libraries
11115sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11116
11117# Run-time system search path for libraries
11118sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11119
11120# Fix the shell variable \$srcfile for the compiler.
11121fix_srcfile_path=$lt_fix_srcfile_path
11122
11123# Set to yes if exported symbols are required.
11124always_export_symbols=$always_export_symbols
11125
11126# The commands to list exported symbols.
11127export_symbols_cmds=$lt_export_symbols_cmds
11128
11129# The commands to extract the exported symbol list from a shared archive.
11130extract_expsyms_cmds=$lt_extract_expsyms_cmds
11131
11132# Symbols that should not be listed in the preloaded symbols.
11133exclude_expsyms=$lt_exclude_expsyms
11134
11135# Symbols that must always be exported.
11136include_expsyms=$lt_include_expsyms
11137
11138# ### END LIBTOOL CONFIG
11139
11140__EOF__
11141
11142
11143  case $host_os in
11144  aix3*)
11145    cat <<\EOF >> "$cfgfile"
11146
11147# AIX sometimes has problems with the GCC collect2 program.  For some
11148# reason, if we set the COLLECT_NAMES environment variable, the problems
11149# vanish in a puff of smoke.
11150if test "X${COLLECT_NAMES+set}" != Xset; then
11151  COLLECT_NAMES=
11152  export COLLECT_NAMES
11153fi
11154EOF
11155    ;;
11156  esac
11157
11158  # We use sed instead of cat because bash on DJGPP gets confused if
11159  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11160  # text mode, it properly converts lines to CR/LF.  This bash problem
11161  # is reportedly fixed, but why not run on old versions too?
11162  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11163
11164  mv -f "$cfgfile" "$ofile" || \
11165    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11166  chmod +x "$ofile"
11167
11168else
11169  # If there is no Makefile yet, we rely on a make rule to execute
11170  # `config.status --recheck' to rerun these tests and create the
11171  # libtool script then.
11172  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11173  if test -f "$ltmain_in"; then
11174    test -f Makefile && make "$ltmain"
11175  fi
11176fi
11177
11178
11179ac_ext=c
11180ac_cpp='$CPP $CPPFLAGS'
11181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11183ac_compiler_gnu=$ac_cv_c_compiler_gnu
11184
11185CC="$lt_save_CC"
11186
11187
11188# Check whether --with-tags was given.
11189if test "${with_tags+set}" = set; then
11190  withval=$with_tags; tagnames="$withval"
11191fi
11192
11193
11194if test -f "$ltmain" && test -n "$tagnames"; then
11195  if test ! -f "${ofile}"; then
11196    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11197$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11198  fi
11199
11200  if test -z "$LTCC"; then
11201    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11202    if test -z "$LTCC"; then
11203      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11204$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11205    else
11206      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11207$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11208    fi
11209  fi
11210  if test -z "$LTCFLAGS"; then
11211    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11212  fi
11213
11214  # Extract list of available tagged configurations in $ofile.
11215  # Note that this assumes the entire list is on one line.
11216  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11217
11218  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11219  for tagname in $tagnames; do
11220    IFS="$lt_save_ifs"
11221    # Check whether tagname contains only valid characters
11222    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11223    "") ;;
11224    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11225$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11226   { (exit 1); exit 1; }; }
11227	;;
11228    esac
11229
11230    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11231    then
11232      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11233$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11234   { (exit 1); exit 1; }; }
11235    fi
11236
11237    # Update the list of available tags.
11238    if test -n "$tagname"; then
11239      echo appending configuration tag \"$tagname\" to $ofile
11240
11241      case $tagname in
11242      CXX)
11243	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11244	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11245	    (test "X$CXX" != "Xg++"))) ; then
11246	  ac_ext=cpp
11247ac_cpp='$CXXCPP $CPPFLAGS'
11248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11251
11252
11253
11254
11255archive_cmds_need_lc_CXX=no
11256allow_undefined_flag_CXX=
11257always_export_symbols_CXX=no
11258archive_expsym_cmds_CXX=
11259export_dynamic_flag_spec_CXX=
11260hardcode_direct_CXX=no
11261hardcode_libdir_flag_spec_CXX=
11262hardcode_libdir_flag_spec_ld_CXX=
11263hardcode_libdir_separator_CXX=
11264hardcode_minus_L_CXX=no
11265hardcode_shlibpath_var_CXX=unsupported
11266hardcode_automatic_CXX=no
11267module_cmds_CXX=
11268module_expsym_cmds_CXX=
11269link_all_deplibs_CXX=unknown
11270old_archive_cmds_CXX=$old_archive_cmds
11271no_undefined_flag_CXX=
11272whole_archive_flag_spec_CXX=
11273enable_shared_with_static_runtimes_CXX=no
11274
11275# Dependencies to place before and after the object being linked:
11276predep_objects_CXX=
11277postdep_objects_CXX=
11278predeps_CXX=
11279postdeps_CXX=
11280compiler_lib_search_path_CXX=
11281compiler_lib_search_dirs_CXX=
11282
11283# Source file extension for C++ test sources.
11284ac_ext=cpp
11285
11286# Object file extension for compiled C++ test sources.
11287objext=o
11288objext_CXX=$objext
11289
11290# Code to be used in simple compile tests
11291lt_simple_compile_test_code="int some_variable = 0;"
11292
11293# Code to be used in simple link tests
11294lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11295
11296# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11297
11298# If no C compiler was specified, use CC.
11299LTCC=${LTCC-"$CC"}
11300
11301# If no C compiler flags were specified, use CFLAGS.
11302LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11303
11304# Allow CC to be a program name with arguments.
11305compiler=$CC
11306
11307
11308# save warnings/boilerplate of simple test code
11309ac_outfile=conftest.$ac_objext
11310echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11311eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11312_lt_compiler_boilerplate=`cat conftest.err`
11313$rm conftest*
11314
11315ac_outfile=conftest.$ac_objext
11316echo "$lt_simple_link_test_code" >conftest.$ac_ext
11317eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11318_lt_linker_boilerplate=`cat conftest.err`
11319$rm -r conftest*
11320
11321
11322# Allow CC to be a program name with arguments.
11323lt_save_CC=$CC
11324lt_save_LD=$LD
11325lt_save_GCC=$GCC
11326GCC=$GXX
11327lt_save_with_gnu_ld=$with_gnu_ld
11328lt_save_path_LD=$lt_cv_path_LD
11329if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11330  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11331else
11332  $as_unset lt_cv_prog_gnu_ld
11333fi
11334if test -n "${lt_cv_path_LDCXX+set}"; then
11335  lt_cv_path_LD=$lt_cv_path_LDCXX
11336else
11337  $as_unset lt_cv_path_LD
11338fi
11339test -z "${LDCXX+set}" || LD=$LDCXX
11340CC=${CXX-"c++"}
11341compiler=$CC
11342compiler_CXX=$CC
11343for cc_temp in $compiler""; do
11344  case $cc_temp in
11345    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11346    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11347    \-*) ;;
11348    *) break;;
11349  esac
11350done
11351cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11352
11353
11354# We don't want -fno-exception wen compiling C++ code, so set the
11355# no_builtin_flag separately
11356if test "$GXX" = yes; then
11357  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11358else
11359  lt_prog_compiler_no_builtin_flag_CXX=
11360fi
11361
11362if test "$GXX" = yes; then
11363  # Set up default GNU C++ configuration
11364
11365
11366# Check whether --with-gnu-ld was given.
11367if test "${with_gnu_ld+set}" = set; then
11368  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11369else
11370  with_gnu_ld=no
11371fi
11372
11373ac_prog=ld
11374if test "$GCC" = yes; then
11375  # Check if gcc -print-prog-name=ld gives a path.
11376  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11377$as_echo_n "checking for ld used by $CC... " >&6; }
11378  case $host in
11379  *-*-mingw*)
11380    # gcc leaves a trailing carriage return which upsets mingw
11381    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11382  *)
11383    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11384  esac
11385  case $ac_prog in
11386    # Accept absolute paths.
11387    [\\/]* | ?:[\\/]*)
11388      re_direlt='/[^/][^/]*/\.\./'
11389      # Canonicalize the pathname of ld
11390      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11391      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11392	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11393      done
11394      test -z "$LD" && LD="$ac_prog"
11395      ;;
11396  "")
11397    # If it fails, then pretend we aren't using GCC.
11398    ac_prog=ld
11399    ;;
11400  *)
11401    # If it is relative, then search for the first ld in PATH.
11402    with_gnu_ld=unknown
11403    ;;
11404  esac
11405elif test "$with_gnu_ld" = yes; then
11406  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11407$as_echo_n "checking for GNU ld... " >&6; }
11408else
11409  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11410$as_echo_n "checking for non-GNU ld... " >&6; }
11411fi
11412if test "${lt_cv_path_LD+set}" = set; then
11413  $as_echo_n "(cached) " >&6
11414else
11415  if test -z "$LD"; then
11416  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11417  for ac_dir in $PATH; do
11418    IFS="$lt_save_ifs"
11419    test -z "$ac_dir" && ac_dir=.
11420    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11421      lt_cv_path_LD="$ac_dir/$ac_prog"
11422      # Check to see if the program is GNU ld.  I'd rather use --version,
11423      # but apparently some variants of GNU ld only accept -v.
11424      # Break only if it was the GNU/non-GNU ld that we prefer.
11425      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11426      *GNU* | *'with BFD'*)
11427	test "$with_gnu_ld" != no && break
11428	;;
11429      *)
11430	test "$with_gnu_ld" != yes && break
11431	;;
11432      esac
11433    fi
11434  done
11435  IFS="$lt_save_ifs"
11436else
11437  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11438fi
11439fi
11440
11441LD="$lt_cv_path_LD"
11442if test -n "$LD"; then
11443  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11444$as_echo "$LD" >&6; }
11445else
11446  { $as_echo "$as_me:$LINENO: result: no" >&5
11447$as_echo "no" >&6; }
11448fi
11449test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11450$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11451   { (exit 1); exit 1; }; }
11452{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11453$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11454if test "${lt_cv_prog_gnu_ld+set}" = set; then
11455  $as_echo_n "(cached) " >&6
11456else
11457  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11458case `$LD -v 2>&1 </dev/null` in
11459*GNU* | *'with BFD'*)
11460  lt_cv_prog_gnu_ld=yes
11461  ;;
11462*)
11463  lt_cv_prog_gnu_ld=no
11464  ;;
11465esac
11466fi
11467{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11468$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11469with_gnu_ld=$lt_cv_prog_gnu_ld
11470
11471
11472
11473  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11474  # archiving commands below assume that GNU ld is being used.
11475  if test "$with_gnu_ld" = yes; then
11476    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477    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'
11478
11479    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11480    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11481
11482    # If archive_cmds runs LD, not CC, wlarc should be empty
11483    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11484    #     investigate it a little bit more. (MM)
11485    wlarc='${wl}'
11486
11487    # ancient GNU ld didn't support --whole-archive et. al.
11488    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11489	grep 'no-whole-archive' > /dev/null; then
11490      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11491    else
11492      whole_archive_flag_spec_CXX=
11493    fi
11494  else
11495    with_gnu_ld=no
11496    wlarc=
11497
11498    # A generic and very simple default shared library creation
11499    # command for GNU C++ for the case where it uses the native
11500    # linker, instead of GNU ld.  If possible, this setting should
11501    # overridden to take advantage of the native linker features on
11502    # the platform it is being used on.
11503    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11504  fi
11505
11506  # Commands to make compiler produce verbose output that lists
11507  # what "hidden" libraries, object files and flags are used when
11508  # linking a shared library.
11509  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11510
11511else
11512  GXX=no
11513  with_gnu_ld=no
11514  wlarc=
11515fi
11516
11517# PORTME: fill in a description of your system's C++ link characteristics
11518{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11519$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11520ld_shlibs_CXX=yes
11521case $host_os in
11522  aix3*)
11523    # FIXME: insert proper C++ library support
11524    ld_shlibs_CXX=no
11525    ;;
11526  aix[4-9]*)
11527    if test "$host_cpu" = ia64; then
11528      # On IA64, the linker does run time linking by default, so we don't
11529      # have to do anything special.
11530      aix_use_runtimelinking=no
11531      exp_sym_flag='-Bexport'
11532      no_entry_flag=""
11533    else
11534      aix_use_runtimelinking=no
11535
11536      # Test if we are trying to use run time linking or normal
11537      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11538      # need to do runtime linking.
11539      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11540	for ld_flag in $LDFLAGS; do
11541	  case $ld_flag in
11542	  *-brtl*)
11543	    aix_use_runtimelinking=yes
11544	    break
11545	    ;;
11546	  esac
11547	done
11548	;;
11549      esac
11550
11551      exp_sym_flag='-bexport'
11552      no_entry_flag='-bnoentry'
11553    fi
11554
11555    # When large executables or shared objects are built, AIX ld can
11556    # have problems creating the table of contents.  If linking a library
11557    # or program results in "error TOC overflow" add -mminimal-toc to
11558    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11559    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11560
11561    archive_cmds_CXX=''
11562    hardcode_direct_CXX=yes
11563    hardcode_libdir_separator_CXX=':'
11564    link_all_deplibs_CXX=yes
11565
11566    if test "$GXX" = yes; then
11567      case $host_os in aix4.[012]|aix4.[012].*)
11568      # We only want to do this on AIX 4.2 and lower, the check
11569      # below for broken collect2 doesn't work under 4.3+
11570	collect2name=`${CC} -print-prog-name=collect2`
11571	if test -f "$collect2name" && \
11572	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11573	then
11574	  # We have reworked collect2
11575	  :
11576	else
11577	  # We have old collect2
11578	  hardcode_direct_CXX=unsupported
11579	  # It fails to find uninstalled libraries when the uninstalled
11580	  # path is not listed in the libpath.  Setting hardcode_minus_L
11581	  # to unsupported forces relinking
11582	  hardcode_minus_L_CXX=yes
11583	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11584	  hardcode_libdir_separator_CXX=
11585	fi
11586	;;
11587      esac
11588      shared_flag='-shared'
11589      if test "$aix_use_runtimelinking" = yes; then
11590	shared_flag="$shared_flag "'${wl}-G'
11591      fi
11592    else
11593      # not using gcc
11594      if test "$host_cpu" = ia64; then
11595	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11596	# chokes on -Wl,-G. The following line is correct:
11597	shared_flag='-G'
11598      else
11599	if test "$aix_use_runtimelinking" = yes; then
11600	  shared_flag='${wl}-G'
11601	else
11602	  shared_flag='${wl}-bM:SRE'
11603	fi
11604      fi
11605    fi
11606
11607    # It seems that -bexpall does not export symbols beginning with
11608    # underscore (_), so it is better to generate a list of symbols to export.
11609    always_export_symbols_CXX=yes
11610    if test "$aix_use_runtimelinking" = yes; then
11611      # Warning - without using the other runtime loading flags (-brtl),
11612      # -berok will link without error, but may produce a broken library.
11613      allow_undefined_flag_CXX='-berok'
11614      # Determine the default libpath from the value encoded in an empty executable.
11615      cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h.  */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h.  */
11621
11622int
11623main ()
11624{
11625
11626  ;
11627  return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext conftest$ac_exeext
11631if { (ac_try="$ac_link"
11632case "(($ac_try" in
11633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634  *) ac_try_echo=$ac_try;;
11635esac
11636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637$as_echo "$ac_try_echo") >&5
11638  (eval "$ac_link") 2>conftest.er1
11639  ac_status=$?
11640  grep -v '^ *+' conftest.er1 >conftest.err
11641  rm -f conftest.er1
11642  cat conftest.err >&5
11643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644  (exit $ac_status); } && {
11645	 test -z "$ac_cxx_werror_flag" ||
11646	 test ! -s conftest.err
11647       } && test -s conftest$ac_exeext && {
11648	 test "$cross_compiling" = yes ||
11649	 $as_test_x conftest$ac_exeext
11650       }; then
11651
11652lt_aix_libpath_sed='
11653    /Import File Strings/,/^$/ {
11654	/^0/ {
11655	    s/^0  *\(.*\)$/\1/
11656	    p
11657	}
11658    }'
11659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660# Check for a 64-bit object if we didn't find anything.
11661if test -z "$aix_libpath"; then
11662  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663fi
11664else
11665  $as_echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668
11669fi
11670
11671rm -rf conftest.dSYM
11672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11673      conftest$ac_exeext conftest.$ac_ext
11674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11675
11676      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11677
11678      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"
11679     else
11680      if test "$host_cpu" = ia64; then
11681	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11682	allow_undefined_flag_CXX="-z nodefs"
11683	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"
11684      else
11685	# Determine the default libpath from the value encoded in an empty executable.
11686	cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h.  */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h.  */
11692
11693int
11694main ()
11695{
11696
11697  ;
11698  return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext conftest$ac_exeext
11702if { (ac_try="$ac_link"
11703case "(($ac_try" in
11704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705  *) ac_try_echo=$ac_try;;
11706esac
11707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708$as_echo "$ac_try_echo") >&5
11709  (eval "$ac_link") 2>conftest.er1
11710  ac_status=$?
11711  grep -v '^ *+' conftest.er1 >conftest.err
11712  rm -f conftest.er1
11713  cat conftest.err >&5
11714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715  (exit $ac_status); } && {
11716	 test -z "$ac_cxx_werror_flag" ||
11717	 test ! -s conftest.err
11718       } && test -s conftest$ac_exeext && {
11719	 test "$cross_compiling" = yes ||
11720	 $as_test_x conftest$ac_exeext
11721       }; then
11722
11723lt_aix_libpath_sed='
11724    /Import File Strings/,/^$/ {
11725	/^0/ {
11726	    s/^0  *\(.*\)$/\1/
11727	    p
11728	}
11729    }'
11730aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11731# Check for a 64-bit object if we didn't find anything.
11732if test -z "$aix_libpath"; then
11733  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734fi
11735else
11736  $as_echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739
11740fi
11741
11742rm -rf conftest.dSYM
11743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11744      conftest$ac_exeext conftest.$ac_ext
11745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11746
11747	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11748	# Warning - without using the other run time loading flags,
11749	# -berok will link without error, but may produce a broken library.
11750	no_undefined_flag_CXX=' ${wl}-bernotok'
11751	allow_undefined_flag_CXX=' ${wl}-berok'
11752	# Exported symbols can be pulled into shared objects from archives
11753	whole_archive_flag_spec_CXX='$convenience'
11754	archive_cmds_need_lc_CXX=yes
11755	# This is similar to how AIX traditionally builds its shared libraries.
11756	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'
11757      fi
11758    fi
11759    ;;
11760
11761  beos*)
11762    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11763      allow_undefined_flag_CXX=unsupported
11764      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11765      # support --undefined.  This deserves some investigation.  FIXME
11766      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11767    else
11768      ld_shlibs_CXX=no
11769    fi
11770    ;;
11771
11772  chorus*)
11773    case $cc_basename in
11774      *)
11775	# FIXME: insert proper C++ library support
11776	ld_shlibs_CXX=no
11777	;;
11778    esac
11779    ;;
11780
11781  cygwin* | mingw* | pw32*)
11782    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11783    # as there is no search path for DLLs.
11784    hardcode_libdir_flag_spec_CXX='-L$libdir'
11785    allow_undefined_flag_CXX=unsupported
11786    always_export_symbols_CXX=no
11787    enable_shared_with_static_runtimes_CXX=yes
11788
11789    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11790      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'
11791      # If the export-symbols file already is a .def file (1st line
11792      # is EXPORTS), use it as is; otherwise, prepend...
11793      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11794	cp $export_symbols $output_objdir/$soname.def;
11795      else
11796	echo EXPORTS > $output_objdir/$soname.def;
11797	cat $export_symbols >> $output_objdir/$soname.def;
11798      fi~
11799      $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'
11800    else
11801      ld_shlibs_CXX=no
11802    fi
11803  ;;
11804      darwin* | rhapsody*)
11805      archive_cmds_need_lc_CXX=no
11806      hardcode_direct_CXX=no
11807      hardcode_automatic_CXX=yes
11808      hardcode_shlibpath_var_CXX=unsupported
11809      whole_archive_flag_spec_CXX=''
11810      link_all_deplibs_CXX=yes
11811      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11812      if test "$GXX" = yes ; then
11813      output_verbose_link_cmd='echo'
11814      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}"
11815      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11816      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}"
11817      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}"
11818      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11819        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}"
11820        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}"
11821      fi
11822      else
11823      case $cc_basename in
11824        xlc*)
11825         output_verbose_link_cmd='echo'
11826          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'
11827          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11828          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11829          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}'
11830          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}'
11831          ;;
11832       *)
11833         ld_shlibs_CXX=no
11834          ;;
11835      esac
11836      fi
11837        ;;
11838
11839  dgux*)
11840    case $cc_basename in
11841      ec++*)
11842	# FIXME: insert proper C++ library support
11843	ld_shlibs_CXX=no
11844	;;
11845      ghcx*)
11846	# Green Hills C++ Compiler
11847	# FIXME: insert proper C++ library support
11848	ld_shlibs_CXX=no
11849	;;
11850      *)
11851	# FIXME: insert proper C++ library support
11852	ld_shlibs_CXX=no
11853	;;
11854    esac
11855    ;;
11856  freebsd[12]*)
11857    # C++ shared libraries reported to be fairly broken before switch to ELF
11858    ld_shlibs_CXX=no
11859    ;;
11860  freebsd-elf*)
11861    archive_cmds_need_lc_CXX=no
11862    ;;
11863  freebsd* | dragonfly*)
11864    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11865    # conventions
11866    ld_shlibs_CXX=yes
11867    ;;
11868  gnu*)
11869    ;;
11870  hpux9*)
11871    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11872    hardcode_libdir_separator_CXX=:
11873    export_dynamic_flag_spec_CXX='${wl}-E'
11874    hardcode_direct_CXX=yes
11875    hardcode_minus_L_CXX=yes # Not in the search PATH,
11876				# but as the default
11877				# location of the library.
11878
11879    case $cc_basename in
11880    CC*)
11881      # FIXME: insert proper C++ library support
11882      ld_shlibs_CXX=no
11883      ;;
11884    aCC*)
11885      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'
11886      # Commands to make compiler produce verbose output that lists
11887      # what "hidden" libraries, object files and flags are used when
11888      # linking a shared library.
11889      #
11890      # There doesn't appear to be a way to prevent this compiler from
11891      # explicitly linking system object files so we need to strip them
11892      # from the output so that they don't get included in the library
11893      # dependencies.
11894      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'
11895      ;;
11896    *)
11897      if test "$GXX" = yes; then
11898        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'
11899      else
11900        # FIXME: insert proper C++ library support
11901        ld_shlibs_CXX=no
11902      fi
11903      ;;
11904    esac
11905    ;;
11906  hpux10*|hpux11*)
11907    if test $with_gnu_ld = no; then
11908      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11909      hardcode_libdir_separator_CXX=:
11910
11911      case $host_cpu in
11912      hppa*64*|ia64*) ;;
11913      *)
11914	export_dynamic_flag_spec_CXX='${wl}-E'
11915        ;;
11916      esac
11917    fi
11918    case $host_cpu in
11919    hppa*64*|ia64*)
11920      hardcode_direct_CXX=no
11921      hardcode_shlibpath_var_CXX=no
11922      ;;
11923    *)
11924      hardcode_direct_CXX=yes
11925      hardcode_minus_L_CXX=yes # Not in the search PATH,
11926					      # but as the default
11927					      # location of the library.
11928      ;;
11929    esac
11930
11931    case $cc_basename in
11932      CC*)
11933	# FIXME: insert proper C++ library support
11934	ld_shlibs_CXX=no
11935	;;
11936      aCC*)
11937	case $host_cpu in
11938	hppa*64*)
11939	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940	  ;;
11941	ia64*)
11942	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943	  ;;
11944	*)
11945	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11946	  ;;
11947	esac
11948	# Commands to make compiler produce verbose output that lists
11949	# what "hidden" libraries, object files and flags are used when
11950	# linking a shared library.
11951	#
11952	# There doesn't appear to be a way to prevent this compiler from
11953	# explicitly linking system object files so we need to strip them
11954	# from the output so that they don't get included in the library
11955	# dependencies.
11956	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'
11957	;;
11958      *)
11959	if test "$GXX" = yes; then
11960	  if test $with_gnu_ld = no; then
11961	    case $host_cpu in
11962	    hppa*64*)
11963	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964	      ;;
11965	    ia64*)
11966	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11967	      ;;
11968	    *)
11969	      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'
11970	      ;;
11971	    esac
11972	  fi
11973	else
11974	  # FIXME: insert proper C++ library support
11975	  ld_shlibs_CXX=no
11976	fi
11977	;;
11978    esac
11979    ;;
11980  interix[3-9]*)
11981    hardcode_direct_CXX=no
11982    hardcode_shlibpath_var_CXX=no
11983    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984    export_dynamic_flag_spec_CXX='${wl}-E'
11985    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11986    # Instead, shared libraries are loaded at an image base (0x10000000 by
11987    # default) and relocated if they conflict, which is a slow very memory
11988    # consuming and fragmenting process.  To avoid this, we pick a random,
11989    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11990    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11991    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'
11992    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'
11993    ;;
11994  irix5* | irix6*)
11995    case $cc_basename in
11996      CC*)
11997	# SGI C++
11998	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'
11999
12000	# Archives containing C++ object files must be created using
12001	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12002	# necessary to make sure instantiated templates are included
12003	# in the archive.
12004	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12005	;;
12006      *)
12007	if test "$GXX" = yes; then
12008	  if test "$with_gnu_ld" = no; then
12009	    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'
12010	  else
12011	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12012	  fi
12013	fi
12014	link_all_deplibs_CXX=yes
12015	;;
12016    esac
12017    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018    hardcode_libdir_separator_CXX=:
12019    ;;
12020  linux* | k*bsd*-gnu)
12021    case $cc_basename in
12022      KCC*)
12023	# Kuck and Associates, Inc. (KAI) C++ Compiler
12024
12025	# KCC will only create a shared library if the output file
12026	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12027	# to its proper name (with version) after linking.
12028	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'
12029	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'
12030	# Commands to make compiler produce verbose output that lists
12031	# what "hidden" libraries, object files and flags are used when
12032	# linking a shared library.
12033	#
12034	# There doesn't appear to be a way to prevent this compiler from
12035	# explicitly linking system object files so we need to strip them
12036	# from the output so that they don't get included in the library
12037	# dependencies.
12038	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'
12039
12040	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12041	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12042
12043	# Archives containing C++ object files must be created using
12044	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12045	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12046	;;
12047      icpc*)
12048	# Intel C++
12049	with_gnu_ld=yes
12050	# version 8.0 and above of icpc choke on multiply defined symbols
12051	# if we add $predep_objects and $postdep_objects, however 7.1 and
12052	# earlier do not add the objects themselves.
12053	case `$CC -V 2>&1` in
12054	*"Version 7."*)
12055  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056  	  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'
12057	  ;;
12058	*)  # Version 8.0 or newer
12059	  tmp_idyn=
12060	  case $host_cpu in
12061	    ia64*) tmp_idyn=' -i_dynamic';;
12062	  esac
12063  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12064	  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'
12065	  ;;
12066	esac
12067	archive_cmds_need_lc_CXX=no
12068	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12069	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12071	;;
12072      pgCC* | pgcpp*)
12073        # Portland Group C++ compiler
12074	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12075  	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'
12076
12077	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12078	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12079	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'
12080        ;;
12081      cxx*)
12082	# Compaq C++
12083	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084	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'
12085
12086	runpath_var=LD_RUN_PATH
12087	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12088	hardcode_libdir_separator_CXX=:
12089
12090	# Commands to make compiler produce verbose output that lists
12091	# what "hidden" libraries, object files and flags are used when
12092	# linking a shared library.
12093	#
12094	# There doesn't appear to be a way to prevent this compiler from
12095	# explicitly linking system object files so we need to strip them
12096	# from the output so that they don't get included in the library
12097	# dependencies.
12098	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'
12099	;;
12100      *)
12101	case `$CC -V 2>&1 | sed 5q` in
12102	*Sun\ C*)
12103	  # Sun C++ 5.9
12104	  no_undefined_flag_CXX=' -zdefs'
12105	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106	  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'
12107	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12108	  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'
12109
12110	  # Not sure whether something based on
12111	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12112	  # would be better.
12113	  output_verbose_link_cmd='echo'
12114
12115	  # Archives containing C++ object files must be created using
12116	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12117	  # necessary to make sure instantiated templates are included
12118	  # in the archive.
12119	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12120	  ;;
12121	esac
12122	;;
12123    esac
12124    ;;
12125  lynxos*)
12126    # FIXME: insert proper C++ library support
12127    ld_shlibs_CXX=no
12128    ;;
12129  m88k*)
12130    # FIXME: insert proper C++ library support
12131    ld_shlibs_CXX=no
12132    ;;
12133  mvs*)
12134    case $cc_basename in
12135      cxx*)
12136	# FIXME: insert proper C++ library support
12137	ld_shlibs_CXX=no
12138	;;
12139      *)
12140	# FIXME: insert proper C++ library support
12141	ld_shlibs_CXX=no
12142	;;
12143    esac
12144    ;;
12145  netbsd*)
12146    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12147      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12148      wlarc=
12149      hardcode_libdir_flag_spec_CXX='-R$libdir'
12150      hardcode_direct_CXX=yes
12151      hardcode_shlibpath_var_CXX=no
12152    fi
12153    # Workaround some broken pre-1.5 toolchains
12154    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12155    ;;
12156  openbsd2*)
12157    # C++ shared libraries are fairly broken
12158    ld_shlibs_CXX=no
12159    ;;
12160  openbsd*)
12161    if test -f /usr/libexec/ld.so; then
12162      hardcode_direct_CXX=yes
12163      hardcode_shlibpath_var_CXX=no
12164      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12165      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12166      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12167	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12168	export_dynamic_flag_spec_CXX='${wl}-E'
12169	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12170      fi
12171      output_verbose_link_cmd='echo'
12172    else
12173      ld_shlibs_CXX=no
12174    fi
12175    ;;
12176  osf3*)
12177    case $cc_basename in
12178      KCC*)
12179	# Kuck and Associates, Inc. (KAI) C++ Compiler
12180
12181	# KCC will only create a shared library if the output file
12182	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12183	# to its proper name (with version) after linking.
12184	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'
12185
12186	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12187	hardcode_libdir_separator_CXX=:
12188
12189	# Archives containing C++ object files must be created using
12190	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12191	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12192
12193	;;
12194      RCC*)
12195	# Rational C++ 2.4.1
12196	# FIXME: insert proper C++ library support
12197	ld_shlibs_CXX=no
12198	;;
12199      cxx*)
12200	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12201	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'
12202
12203	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12204	hardcode_libdir_separator_CXX=:
12205
12206	# Commands to make compiler produce verbose output that lists
12207	# what "hidden" libraries, object files and flags are used when
12208	# linking a shared library.
12209	#
12210	# There doesn't appear to be a way to prevent this compiler from
12211	# explicitly linking system object files so we need to strip them
12212	# from the output so that they don't get included in the library
12213	# dependencies.
12214	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'
12215	;;
12216      *)
12217	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12218	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12219	  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'
12220
12221	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12222	  hardcode_libdir_separator_CXX=:
12223
12224	  # Commands to make compiler produce verbose output that lists
12225	  # what "hidden" libraries, object files and flags are used when
12226	  # linking a shared library.
12227	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12228
12229	else
12230	  # FIXME: insert proper C++ library support
12231	  ld_shlibs_CXX=no
12232	fi
12233	;;
12234    esac
12235    ;;
12236  osf4* | osf5*)
12237    case $cc_basename in
12238      KCC*)
12239	# Kuck and Associates, Inc. (KAI) C++ Compiler
12240
12241	# KCC will only create a shared library if the output file
12242	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12243	# to its proper name (with version) after linking.
12244	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'
12245
12246	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12247	hardcode_libdir_separator_CXX=:
12248
12249	# Archives containing C++ object files must be created using
12250	# the KAI C++ compiler.
12251	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12252	;;
12253      RCC*)
12254	# Rational C++ 2.4.1
12255	# FIXME: insert proper C++ library support
12256	ld_shlibs_CXX=no
12257	;;
12258      cxx*)
12259	allow_undefined_flag_CXX=' -expect_unresolved \*'
12260	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'
12261	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12262	  echo "-hidden">> $lib.exp~
12263	  $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~
12264	  $rm $lib.exp'
12265
12266	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12267	hardcode_libdir_separator_CXX=:
12268
12269	# Commands to make compiler produce verbose output that lists
12270	# what "hidden" libraries, object files and flags are used when
12271	# linking a shared library.
12272	#
12273	# There doesn't appear to be a way to prevent this compiler from
12274	# explicitly linking system object files so we need to strip them
12275	# from the output so that they don't get included in the library
12276	# dependencies.
12277	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'
12278	;;
12279      *)
12280	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12281	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12282	 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'
12283
12284	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12285	  hardcode_libdir_separator_CXX=:
12286
12287	  # Commands to make compiler produce verbose output that lists
12288	  # what "hidden" libraries, object files and flags are used when
12289	  # linking a shared library.
12290	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12291
12292	else
12293	  # FIXME: insert proper C++ library support
12294	  ld_shlibs_CXX=no
12295	fi
12296	;;
12297    esac
12298    ;;
12299  psos*)
12300    # FIXME: insert proper C++ library support
12301    ld_shlibs_CXX=no
12302    ;;
12303  sunos4*)
12304    case $cc_basename in
12305      CC*)
12306	# Sun C++ 4.x
12307	# FIXME: insert proper C++ library support
12308	ld_shlibs_CXX=no
12309	;;
12310      lcc*)
12311	# Lucid
12312	# FIXME: insert proper C++ library support
12313	ld_shlibs_CXX=no
12314	;;
12315      *)
12316	# FIXME: insert proper C++ library support
12317	ld_shlibs_CXX=no
12318	;;
12319    esac
12320    ;;
12321  solaris*)
12322    case $cc_basename in
12323      CC*)
12324	# Sun C++ 4.2, 5.x and Centerline C++
12325        archive_cmds_need_lc_CXX=yes
12326	no_undefined_flag_CXX=' -zdefs'
12327	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12328	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12329	$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'
12330
12331	hardcode_libdir_flag_spec_CXX='-R$libdir'
12332	hardcode_shlibpath_var_CXX=no
12333	case $host_os in
12334	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12335	  *)
12336	    # The compiler driver will combine and reorder linker options,
12337	    # but understands `-z linker_flag'.
12338	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12339	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12340	    ;;
12341	esac
12342	link_all_deplibs_CXX=yes
12343
12344	output_verbose_link_cmd='echo'
12345
12346	# Archives containing C++ object files must be created using
12347	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12348	# necessary to make sure instantiated templates are included
12349	# in the archive.
12350	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12351	;;
12352      gcx*)
12353	# Green Hills C++ Compiler
12354	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12355
12356	# The C++ compiler must be used to create the archive.
12357	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12358	;;
12359      *)
12360	# GNU C++ compiler with Solaris linker
12361	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12362	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12363	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12364	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12365	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12366		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12367
12368	    # Commands to make compiler produce verbose output that lists
12369	    # what "hidden" libraries, object files and flags are used when
12370	    # linking a shared library.
12371	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12372	  else
12373	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12374	    # platform.
12375	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12376	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12377		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12378
12379	    # Commands to make compiler produce verbose output that lists
12380	    # what "hidden" libraries, object files and flags are used when
12381	    # linking a shared library.
12382	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12383	  fi
12384
12385	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12386	  case $host_os in
12387	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12388	  *)
12389	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12390	    ;;
12391	  esac
12392	fi
12393	;;
12394    esac
12395    ;;
12396  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12397    no_undefined_flag_CXX='${wl}-z,text'
12398    archive_cmds_need_lc_CXX=no
12399    hardcode_shlibpath_var_CXX=no
12400    runpath_var='LD_RUN_PATH'
12401
12402    case $cc_basename in
12403      CC*)
12404	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406	;;
12407      *)
12408	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410	;;
12411    esac
12412    ;;
12413  sysv5* | sco3.2v5* | sco5v6*)
12414    # Note: We can NOT use -z defs as we might desire, because we do not
12415    # link with -lc, and that would cause any symbols used from libc to
12416    # always be unresolved, which means just about no library would
12417    # ever link correctly.  If we're not using GNU ld we use -z text
12418    # though, which does catch some bad symbols but isn't as heavy-handed
12419    # as -z defs.
12420    # For security reasons, it is highly recommended that you always
12421    # use absolute paths for naming shared libraries, and exclude the
12422    # DT_RUNPATH tag from executables and libraries.  But doing so
12423    # requires that you compile everything twice, which is a pain.
12424    # So that behaviour is only enabled if SCOABSPATH is set to a
12425    # non-empty value in the environment.  Most likely only useful for
12426    # creating official distributions of packages.
12427    # This is a hack until libtool officially supports absolute path
12428    # names for shared libraries.
12429    no_undefined_flag_CXX='${wl}-z,text'
12430    allow_undefined_flag_CXX='${wl}-z,nodefs'
12431    archive_cmds_need_lc_CXX=no
12432    hardcode_shlibpath_var_CXX=no
12433    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12434    hardcode_libdir_separator_CXX=':'
12435    link_all_deplibs_CXX=yes
12436    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12437    runpath_var='LD_RUN_PATH'
12438
12439    case $cc_basename in
12440      CC*)
12441	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12442	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443	;;
12444      *)
12445	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12446	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12447	;;
12448    esac
12449    ;;
12450  tandem*)
12451    case $cc_basename in
12452      NCC*)
12453	# NonStop-UX NCC 3.20
12454	# FIXME: insert proper C++ library support
12455	ld_shlibs_CXX=no
12456	;;
12457      *)
12458	# FIXME: insert proper C++ library support
12459	ld_shlibs_CXX=no
12460	;;
12461    esac
12462    ;;
12463  vxworks*)
12464    # FIXME: insert proper C++ library support
12465    ld_shlibs_CXX=no
12466    ;;
12467  *)
12468    # FIXME: insert proper C++ library support
12469    ld_shlibs_CXX=no
12470    ;;
12471esac
12472{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12473$as_echo "$ld_shlibs_CXX" >&6; }
12474test "$ld_shlibs_CXX" = no && can_build_shared=no
12475
12476GCC_CXX="$GXX"
12477LD_CXX="$LD"
12478
12479cat > conftest.$ac_ext <<EOF
12480class Foo
12481{
12482public:
12483  Foo (void) { a = 0; }
12484private:
12485  int a;
12486};
12487EOF
12488
12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490  (eval $ac_compile) 2>&5
12491  ac_status=$?
12492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493  (exit $ac_status); }; then
12494  # Parse the compiler output and extract the necessary
12495  # objects, libraries and library flags.
12496
12497  # Sentinel used to keep track of whether or not we are before
12498  # the conftest object file.
12499  pre_test_object_deps_done=no
12500
12501  # The `*' in the case matches for architectures that use `case' in
12502  # $output_verbose_cmd can trigger glob expansion during the loop
12503  # eval without this substitution.
12504  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12505
12506  for p in `eval $output_verbose_link_cmd`; do
12507    case $p in
12508
12509    -L* | -R* | -l*)
12510       # Some compilers place space between "-{L,R}" and the path.
12511       # Remove the space.
12512       if test $p = "-L" \
12513	  || test $p = "-R"; then
12514	 prev=$p
12515	 continue
12516       else
12517	 prev=
12518       fi
12519
12520       if test "$pre_test_object_deps_done" = no; then
12521	 case $p in
12522	 -L* | -R*)
12523	   # Internal compiler library paths should come after those
12524	   # provided the user.  The postdeps already come after the
12525	   # user supplied libs so there is no need to process them.
12526	   if test -z "$compiler_lib_search_path_CXX"; then
12527	     compiler_lib_search_path_CXX="${prev}${p}"
12528	   else
12529	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12530	   fi
12531	   ;;
12532	 # The "-l" case would never come before the object being
12533	 # linked, so don't bother handling this case.
12534	 esac
12535       else
12536	 if test -z "$postdeps_CXX"; then
12537	   postdeps_CXX="${prev}${p}"
12538	 else
12539	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12540	 fi
12541       fi
12542       ;;
12543
12544    *.$objext)
12545       # This assumes that the test object file only shows up
12546       # once in the compiler output.
12547       if test "$p" = "conftest.$objext"; then
12548	 pre_test_object_deps_done=yes
12549	 continue
12550       fi
12551
12552       if test "$pre_test_object_deps_done" = no; then
12553	 if test -z "$predep_objects_CXX"; then
12554	   predep_objects_CXX="$p"
12555	 else
12556	   predep_objects_CXX="$predep_objects_CXX $p"
12557	 fi
12558       else
12559	 if test -z "$postdep_objects_CXX"; then
12560	   postdep_objects_CXX="$p"
12561	 else
12562	   postdep_objects_CXX="$postdep_objects_CXX $p"
12563	 fi
12564       fi
12565       ;;
12566
12567    *) ;; # Ignore the rest.
12568
12569    esac
12570  done
12571
12572  # Clean up.
12573  rm -f a.out a.exe
12574else
12575  echo "libtool.m4: error: problem compiling CXX test program"
12576fi
12577
12578$rm -f confest.$objext
12579
12580compiler_lib_search_dirs_CXX=
12581if test -n "$compiler_lib_search_path_CXX"; then
12582  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12583fi
12584
12585# PORTME: override above test on systems where it is broken
12586case $host_os in
12587interix[3-9]*)
12588  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12589  # hack all around it, let's just trust "g++" to DTRT.
12590  predep_objects_CXX=
12591  postdep_objects_CXX=
12592  postdeps_CXX=
12593  ;;
12594
12595linux*)
12596  case `$CC -V 2>&1 | sed 5q` in
12597  *Sun\ C*)
12598    # Sun C++ 5.9
12599    #
12600    # The more standards-conforming stlport4 library is
12601    # incompatible with the Cstd library. Avoid specifying
12602    # it if it's in CXXFLAGS. Ignore libCrun as
12603    # -library=stlport4 depends on it.
12604    case " $CXX $CXXFLAGS " in
12605    *" -library=stlport4 "*)
12606      solaris_use_stlport4=yes
12607      ;;
12608    esac
12609    if test "$solaris_use_stlport4" != yes; then
12610      postdeps_CXX='-library=Cstd -library=Crun'
12611    fi
12612    ;;
12613  esac
12614  ;;
12615
12616solaris*)
12617  case $cc_basename in
12618  CC*)
12619    # The more standards-conforming stlport4 library is
12620    # incompatible with the Cstd library. Avoid specifying
12621    # it if it's in CXXFLAGS. Ignore libCrun as
12622    # -library=stlport4 depends on it.
12623    case " $CXX $CXXFLAGS " in
12624    *" -library=stlport4 "*)
12625      solaris_use_stlport4=yes
12626      ;;
12627    esac
12628
12629    # Adding this requires a known-good setup of shared libraries for
12630    # Sun compiler versions before 5.6, else PIC objects from an old
12631    # archive will be linked into the output, leading to subtle bugs.
12632    if test "$solaris_use_stlport4" != yes; then
12633      postdeps_CXX='-library=Cstd -library=Crun'
12634    fi
12635    ;;
12636  esac
12637  ;;
12638esac
12639
12640case " $postdeps_CXX " in
12641*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12642esac
12643
12644lt_prog_compiler_wl_CXX=
12645lt_prog_compiler_pic_CXX=
12646lt_prog_compiler_static_CXX=
12647
12648{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12649$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12650
12651  # C++ specific cases for pic, static, wl, etc.
12652  if test "$GXX" = yes; then
12653    lt_prog_compiler_wl_CXX='-Wl,'
12654    lt_prog_compiler_static_CXX='-static'
12655
12656    case $host_os in
12657    aix*)
12658      # All AIX code is PIC.
12659      if test "$host_cpu" = ia64; then
12660	# AIX 5 now supports IA64 processor
12661	lt_prog_compiler_static_CXX='-Bstatic'
12662      fi
12663      ;;
12664    amigaos*)
12665      # FIXME: we need at least 68020 code to build shared libraries, but
12666      # adding the `-m68020' flag to GCC prevents building anything better,
12667      # like `-m68040'.
12668      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12669      ;;
12670    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12671      # PIC is the default for these OSes.
12672      ;;
12673    mingw* | cygwin* | os2* | pw32*)
12674      # This hack is so that the source file can tell whether it is being
12675      # built for inclusion in a dll (and should export symbols for example).
12676      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12677      # (--disable-auto-import) libraries
12678      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12679      ;;
12680    darwin* | rhapsody*)
12681      # PIC is the default on this platform
12682      # Common symbols not allowed in MH_DYLIB files
12683      lt_prog_compiler_pic_CXX='-fno-common'
12684      ;;
12685    *djgpp*)
12686      # DJGPP does not support shared libraries at all
12687      lt_prog_compiler_pic_CXX=
12688      ;;
12689    interix[3-9]*)
12690      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12691      # Instead, we relocate shared libraries at runtime.
12692      ;;
12693    sysv4*MP*)
12694      if test -d /usr/nec; then
12695	lt_prog_compiler_pic_CXX=-Kconform_pic
12696      fi
12697      ;;
12698    hpux*)
12699      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12700      # not for PA HP-UX.
12701      case $host_cpu in
12702      hppa*64*|ia64*)
12703	;;
12704      *)
12705	lt_prog_compiler_pic_CXX='-fPIC'
12706	;;
12707      esac
12708      ;;
12709    *)
12710      lt_prog_compiler_pic_CXX='-fPIC'
12711      ;;
12712    esac
12713  else
12714    case $host_os in
12715      aix[4-9]*)
12716	# All AIX code is PIC.
12717	if test "$host_cpu" = ia64; then
12718	  # AIX 5 now supports IA64 processor
12719	  lt_prog_compiler_static_CXX='-Bstatic'
12720	else
12721	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12722	fi
12723	;;
12724      chorus*)
12725	case $cc_basename in
12726	cxch68*)
12727	  # Green Hills C++ Compiler
12728	  # _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"
12729	  ;;
12730	esac
12731	;;
12732       darwin*)
12733         # PIC is the default on this platform
12734         # Common symbols not allowed in MH_DYLIB files
12735         case $cc_basename in
12736           xlc*)
12737           lt_prog_compiler_pic_CXX='-qnocommon'
12738           lt_prog_compiler_wl_CXX='-Wl,'
12739           ;;
12740         esac
12741       ;;
12742      dgux*)
12743	case $cc_basename in
12744	  ec++*)
12745	    lt_prog_compiler_pic_CXX='-KPIC'
12746	    ;;
12747	  ghcx*)
12748	    # Green Hills C++ Compiler
12749	    lt_prog_compiler_pic_CXX='-pic'
12750	    ;;
12751	  *)
12752	    ;;
12753	esac
12754	;;
12755      freebsd* | dragonfly*)
12756	# FreeBSD uses GNU C++
12757	;;
12758      hpux9* | hpux10* | hpux11*)
12759	case $cc_basename in
12760	  CC*)
12761	    lt_prog_compiler_wl_CXX='-Wl,'
12762	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12763	    if test "$host_cpu" != ia64; then
12764	      lt_prog_compiler_pic_CXX='+Z'
12765	    fi
12766	    ;;
12767	  aCC*)
12768	    lt_prog_compiler_wl_CXX='-Wl,'
12769	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12770	    case $host_cpu in
12771	    hppa*64*|ia64*)
12772	      # +Z the default
12773	      ;;
12774	    *)
12775	      lt_prog_compiler_pic_CXX='+Z'
12776	      ;;
12777	    esac
12778	    ;;
12779	  *)
12780	    ;;
12781	esac
12782	;;
12783      interix*)
12784	# This is c89, which is MS Visual C++ (no shared libs)
12785	# Anyone wants to do a port?
12786	;;
12787      irix5* | irix6* | nonstopux*)
12788	case $cc_basename in
12789	  CC*)
12790	    lt_prog_compiler_wl_CXX='-Wl,'
12791	    lt_prog_compiler_static_CXX='-non_shared'
12792	    # CC pic flag -KPIC is the default.
12793	    ;;
12794	  *)
12795	    ;;
12796	esac
12797	;;
12798      linux* | k*bsd*-gnu)
12799	case $cc_basename in
12800	  KCC*)
12801	    # KAI C++ Compiler
12802	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12803	    lt_prog_compiler_pic_CXX='-fPIC'
12804	    ;;
12805	  icpc* | ecpc*)
12806	    # Intel C++
12807	    lt_prog_compiler_wl_CXX='-Wl,'
12808	    lt_prog_compiler_pic_CXX='-KPIC'
12809	    lt_prog_compiler_static_CXX='-static'
12810	    ;;
12811	  pgCC* | pgcpp*)
12812	    # Portland Group C++ compiler.
12813	    lt_prog_compiler_wl_CXX='-Wl,'
12814	    lt_prog_compiler_pic_CXX='-fpic'
12815	    lt_prog_compiler_static_CXX='-Bstatic'
12816	    ;;
12817	  cxx*)
12818	    # Compaq C++
12819	    # Make sure the PIC flag is empty.  It appears that all Alpha
12820	    # Linux and Compaq Tru64 Unix objects are PIC.
12821	    lt_prog_compiler_pic_CXX=
12822	    lt_prog_compiler_static_CXX='-non_shared'
12823	    ;;
12824	  *)
12825	    case `$CC -V 2>&1 | sed 5q` in
12826	    *Sun\ C*)
12827	      # Sun C++ 5.9
12828	      lt_prog_compiler_pic_CXX='-KPIC'
12829	      lt_prog_compiler_static_CXX='-Bstatic'
12830	      lt_prog_compiler_wl_CXX='-Qoption ld '
12831	      ;;
12832	    esac
12833	    ;;
12834	esac
12835	;;
12836      lynxos*)
12837	;;
12838      m88k*)
12839	;;
12840      mvs*)
12841	case $cc_basename in
12842	  cxx*)
12843	    lt_prog_compiler_pic_CXX='-W c,exportall'
12844	    ;;
12845	  *)
12846	    ;;
12847	esac
12848	;;
12849      netbsd*)
12850	;;
12851      osf3* | osf4* | osf5*)
12852	case $cc_basename in
12853	  KCC*)
12854	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12855	    ;;
12856	  RCC*)
12857	    # Rational C++ 2.4.1
12858	    lt_prog_compiler_pic_CXX='-pic'
12859	    ;;
12860	  cxx*)
12861	    # Digital/Compaq C++
12862	    lt_prog_compiler_wl_CXX='-Wl,'
12863	    # Make sure the PIC flag is empty.  It appears that all Alpha
12864	    # Linux and Compaq Tru64 Unix objects are PIC.
12865	    lt_prog_compiler_pic_CXX=
12866	    lt_prog_compiler_static_CXX='-non_shared'
12867	    ;;
12868	  *)
12869	    ;;
12870	esac
12871	;;
12872      psos*)
12873	;;
12874      solaris*)
12875	case $cc_basename in
12876	  CC*)
12877	    # Sun C++ 4.2, 5.x and Centerline C++
12878	    lt_prog_compiler_pic_CXX='-KPIC'
12879	    lt_prog_compiler_static_CXX='-Bstatic'
12880	    lt_prog_compiler_wl_CXX='-Qoption ld '
12881	    ;;
12882	  gcx*)
12883	    # Green Hills C++ Compiler
12884	    lt_prog_compiler_pic_CXX='-PIC'
12885	    ;;
12886	  *)
12887	    ;;
12888	esac
12889	;;
12890      sunos4*)
12891	case $cc_basename in
12892	  CC*)
12893	    # Sun C++ 4.x
12894	    lt_prog_compiler_pic_CXX='-pic'
12895	    lt_prog_compiler_static_CXX='-Bstatic'
12896	    ;;
12897	  lcc*)
12898	    # Lucid
12899	    lt_prog_compiler_pic_CXX='-pic'
12900	    ;;
12901	  *)
12902	    ;;
12903	esac
12904	;;
12905      tandem*)
12906	case $cc_basename in
12907	  NCC*)
12908	    # NonStop-UX NCC 3.20
12909	    lt_prog_compiler_pic_CXX='-KPIC'
12910	    ;;
12911	  *)
12912	    ;;
12913	esac
12914	;;
12915      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12916	case $cc_basename in
12917	  CC*)
12918	    lt_prog_compiler_wl_CXX='-Wl,'
12919	    lt_prog_compiler_pic_CXX='-KPIC'
12920	    lt_prog_compiler_static_CXX='-Bstatic'
12921	    ;;
12922	esac
12923	;;
12924      vxworks*)
12925	;;
12926      *)
12927	lt_prog_compiler_can_build_shared_CXX=no
12928	;;
12929    esac
12930  fi
12931
12932{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12933$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12934
12935#
12936# Check to make sure the PIC flag actually works.
12937#
12938if test -n "$lt_prog_compiler_pic_CXX"; then
12939
12940{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12941$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12942if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12943  $as_echo_n "(cached) " >&6
12944else
12945  lt_cv_prog_compiler_pic_works_CXX=no
12946  ac_outfile=conftest.$ac_objext
12947   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12948   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12949   # Insert the option either (1) after the last *FLAGS variable, or
12950   # (2) before a word containing "conftest.", or (3) at the end.
12951   # Note that $ac_compile itself does not contain backslashes and begins
12952   # with a dollar sign (not a hyphen), so the echo should work correctly.
12953   # The option is referenced via a variable to avoid confusing sed.
12954   lt_compile=`echo "$ac_compile" | $SED \
12955   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12956   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12957   -e 's:$: $lt_compiler_flag:'`
12958   (eval echo "\"\$as_me:12958: $lt_compile\"" >&5)
12959   (eval "$lt_compile" 2>conftest.err)
12960   ac_status=$?
12961   cat conftest.err >&5
12962   echo "$as_me:12962: \$? = $ac_status" >&5
12963   if (exit $ac_status) && test -s "$ac_outfile"; then
12964     # The compiler can only warn and ignore the option if not recognized
12965     # So say no if there are warnings other than the usual output.
12966     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12967     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12968     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12969       lt_cv_prog_compiler_pic_works_CXX=yes
12970     fi
12971   fi
12972   $rm conftest*
12973
12974fi
12975{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12976$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12977
12978if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12979    case $lt_prog_compiler_pic_CXX in
12980     "" | " "*) ;;
12981     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12982     esac
12983else
12984    lt_prog_compiler_pic_CXX=
12985     lt_prog_compiler_can_build_shared_CXX=no
12986fi
12987
12988fi
12989case $host_os in
12990  # For platforms which do not support PIC, -DPIC is meaningless:
12991  *djgpp*)
12992    lt_prog_compiler_pic_CXX=
12993    ;;
12994  *)
12995    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12996    ;;
12997esac
12998
12999#
13000# Check to make sure the static flag actually works.
13001#
13002wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13003{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13004$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13005if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13006  $as_echo_n "(cached) " >&6
13007else
13008  lt_cv_prog_compiler_static_works_CXX=no
13009   save_LDFLAGS="$LDFLAGS"
13010   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13011   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13012   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13013     # The linker can only warn and ignore the option if not recognized
13014     # So say no if there are warnings
13015     if test -s conftest.err; then
13016       # Append any errors to the config.log.
13017       cat conftest.err 1>&5
13018       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13019       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13020       if diff conftest.exp conftest.er2 >/dev/null; then
13021         lt_cv_prog_compiler_static_works_CXX=yes
13022       fi
13023     else
13024       lt_cv_prog_compiler_static_works_CXX=yes
13025     fi
13026   fi
13027   $rm -r conftest*
13028   LDFLAGS="$save_LDFLAGS"
13029
13030fi
13031{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13032$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13033
13034if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13035    :
13036else
13037    lt_prog_compiler_static_CXX=
13038fi
13039
13040
13041{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13042$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13043if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13044  $as_echo_n "(cached) " >&6
13045else
13046  lt_cv_prog_compiler_c_o_CXX=no
13047   $rm -r conftest 2>/dev/null
13048   mkdir conftest
13049   cd conftest
13050   mkdir out
13051   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13052
13053   lt_compiler_flag="-o out/conftest2.$ac_objext"
13054   # Insert the option either (1) after the last *FLAGS variable, or
13055   # (2) before a word containing "conftest.", or (3) at the end.
13056   # Note that $ac_compile itself does not contain backslashes and begins
13057   # with a dollar sign (not a hyphen), so the echo should work correctly.
13058   lt_compile=`echo "$ac_compile" | $SED \
13059   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13061   -e 's:$: $lt_compiler_flag:'`
13062   (eval echo "\"\$as_me:13062: $lt_compile\"" >&5)
13063   (eval "$lt_compile" 2>out/conftest.err)
13064   ac_status=$?
13065   cat out/conftest.err >&5
13066   echo "$as_me:13066: \$? = $ac_status" >&5
13067   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13068   then
13069     # The compiler can only warn and ignore the option if not recognized
13070     # So say no if there are warnings
13071     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13072     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13073     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13074       lt_cv_prog_compiler_c_o_CXX=yes
13075     fi
13076   fi
13077   chmod u+w . 2>&5
13078   $rm conftest*
13079   # SGI C++ compiler will create directory out/ii_files/ for
13080   # template instantiation
13081   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13082   $rm out/* && rmdir out
13083   cd ..
13084   rmdir conftest
13085   $rm conftest*
13086
13087fi
13088{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13089$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13090
13091
13092hard_links="nottested"
13093if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13094  # do not overwrite the value of need_locks provided by the user
13095  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13096$as_echo_n "checking if we can lock with hard links... " >&6; }
13097  hard_links=yes
13098  $rm conftest*
13099  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13100  touch conftest.a
13101  ln conftest.a conftest.b 2>&5 || hard_links=no
13102  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13103  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13104$as_echo "$hard_links" >&6; }
13105  if test "$hard_links" = no; then
13106    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13107$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13108    need_locks=warn
13109  fi
13110else
13111  need_locks=no
13112fi
13113
13114{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13115$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13116
13117  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13118  case $host_os in
13119  aix[4-9]*)
13120    # If we're using GNU nm, then we don't want the "-C" option.
13121    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13122    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13123      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'
13124    else
13125      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'
13126    fi
13127    ;;
13128  pw32*)
13129    export_symbols_cmds_CXX="$ltdll_cmds"
13130  ;;
13131  cygwin* | mingw*)
13132    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'
13133  ;;
13134  *)
13135    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13136  ;;
13137  esac
13138  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13139
13140{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13141$as_echo "$ld_shlibs_CXX" >&6; }
13142test "$ld_shlibs_CXX" = no && can_build_shared=no
13143
13144#
13145# Do we need to explicitly link libc?
13146#
13147case "x$archive_cmds_need_lc_CXX" in
13148x|xyes)
13149  # Assume -lc should be added
13150  archive_cmds_need_lc_CXX=yes
13151
13152  if test "$enable_shared" = yes && test "$GCC" = yes; then
13153    case $archive_cmds_CXX in
13154    *'~'*)
13155      # FIXME: we may have to deal with multi-command sequences.
13156      ;;
13157    '$CC '*)
13158      # Test whether the compiler implicitly links with -lc since on some
13159      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13160      # to ld, don't add -lc before -lgcc.
13161      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13162$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13163      $rm conftest*
13164      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167  (eval $ac_compile) 2>&5
13168  ac_status=$?
13169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170  (exit $ac_status); } 2>conftest.err; then
13171        soname=conftest
13172        lib=conftest
13173        libobjs=conftest.$ac_objext
13174        deplibs=
13175        wl=$lt_prog_compiler_wl_CXX
13176	pic_flag=$lt_prog_compiler_pic_CXX
13177        compiler_flags=-v
13178        linker_flags=-v
13179        verstring=
13180        output_objdir=.
13181        libname=conftest
13182        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13183        allow_undefined_flag_CXX=
13184        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13185  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186  ac_status=$?
13187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188  (exit $ac_status); }
13189        then
13190	  archive_cmds_need_lc_CXX=no
13191        else
13192	  archive_cmds_need_lc_CXX=yes
13193        fi
13194        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13195      else
13196        cat conftest.err 1>&5
13197      fi
13198      $rm conftest*
13199      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13200$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13201      ;;
13202    esac
13203  fi
13204  ;;
13205esac
13206
13207{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13208$as_echo_n "checking dynamic linker characteristics... " >&6; }
13209library_names_spec=
13210libname_spec='lib$name'
13211soname_spec=
13212shrext_cmds=".so"
13213postinstall_cmds=
13214postuninstall_cmds=
13215finish_cmds=
13216finish_eval=
13217shlibpath_var=
13218shlibpath_overrides_runpath=unknown
13219version_type=none
13220dynamic_linker="$host_os ld.so"
13221sys_lib_dlsearch_path_spec="/lib /usr/lib"
13222
13223need_lib_prefix=unknown
13224hardcode_into_libs=no
13225
13226# when you set need_version to no, make sure it does not cause -set_version
13227# flags to be left without arguments
13228need_version=unknown
13229
13230case $host_os in
13231aix3*)
13232  version_type=linux
13233  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13234  shlibpath_var=LIBPATH
13235
13236  # AIX 3 has no versioning support, so we append a major version to the name.
13237  soname_spec='${libname}${release}${shared_ext}$major'
13238  ;;
13239
13240aix[4-9]*)
13241  version_type=linux
13242  need_lib_prefix=no
13243  need_version=no
13244  hardcode_into_libs=yes
13245  if test "$host_cpu" = ia64; then
13246    # AIX 5 supports IA64
13247    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13248    shlibpath_var=LD_LIBRARY_PATH
13249  else
13250    # With GCC up to 2.95.x, collect2 would create an import file
13251    # for dependence libraries.  The import file would start with
13252    # the line `#! .'.  This would cause the generated library to
13253    # depend on `.', always an invalid library.  This was fixed in
13254    # development snapshots of GCC prior to 3.0.
13255    case $host_os in
13256      aix4 | aix4.[01] | aix4.[01].*)
13257      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13258	   echo ' yes '
13259	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13260	:
13261      else
13262	can_build_shared=no
13263      fi
13264      ;;
13265    esac
13266    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13267    # soname into executable. Probably we can add versioning support to
13268    # collect2, so additional links can be useful in future.
13269    if test "$aix_use_runtimelinking" = yes; then
13270      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13271      # instead of lib<name>.a to let people know that these are not
13272      # typical AIX shared libraries.
13273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274    else
13275      # We preserve .a as extension for shared libraries through AIX4.2
13276      # and later when we are not doing run time linking.
13277      library_names_spec='${libname}${release}.a $libname.a'
13278      soname_spec='${libname}${release}${shared_ext}$major'
13279    fi
13280    shlibpath_var=LIBPATH
13281  fi
13282  ;;
13283
13284amigaos*)
13285  library_names_spec='$libname.ixlibrary $libname.a'
13286  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13287  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'
13288  ;;
13289
13290beos*)
13291  library_names_spec='${libname}${shared_ext}'
13292  dynamic_linker="$host_os ld.so"
13293  shlibpath_var=LIBRARY_PATH
13294  ;;
13295
13296bsdi[45]*)
13297  version_type=linux
13298  need_version=no
13299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300  soname_spec='${libname}${release}${shared_ext}$major'
13301  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13302  shlibpath_var=LD_LIBRARY_PATH
13303  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13304  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13305  # the default ld.so.conf also contains /usr/contrib/lib and
13306  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13307  # libtool to hard-code these into programs
13308  ;;
13309
13310cygwin* | mingw* | pw32*)
13311  version_type=windows
13312  shrext_cmds=".dll"
13313  need_version=no
13314  need_lib_prefix=no
13315
13316  case $GCC,$host_os in
13317  yes,cygwin* | yes,mingw* | yes,pw32*)
13318    library_names_spec='$libname.dll.a'
13319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13320    postinstall_cmds='base_file=`basename \${file}`~
13321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13322      dldir=$destdir/`dirname \$dlpath`~
13323      test -d \$dldir || mkdir -p \$dldir~
13324      $install_prog $dir/$dlname \$dldir/$dlname~
13325      chmod a+x \$dldir/$dlname'
13326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13327      dlpath=$dir/\$dldll~
13328       $rm \$dlpath'
13329    shlibpath_overrides_runpath=yes
13330
13331    case $host_os in
13332    cygwin*)
13333      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13334      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13335      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13336      ;;
13337    mingw*)
13338      # MinGW DLLs use traditional 'lib' prefix
13339      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13341      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13342        # It is most probably a Windows format PATH printed by
13343        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13344        # path with ; separators, and with drive letters. We can handle the
13345        # drive letters (cygwin fileutils understands them), so leave them,
13346        # especially as we might pass files found there to a mingw objdump,
13347        # which wouldn't understand a cygwinified path. Ahh.
13348        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13349      else
13350        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13351      fi
13352      ;;
13353    pw32*)
13354      # pw32 DLLs use 'pw' prefix rather than 'lib'
13355      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13356      ;;
13357    esac
13358    ;;
13359
13360  *)
13361    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13362    ;;
13363  esac
13364  dynamic_linker='Win32 ld.exe'
13365  # FIXME: first we should search . and the directory the executable is in
13366  shlibpath_var=PATH
13367  ;;
13368
13369darwin* | rhapsody*)
13370  dynamic_linker="$host_os dyld"
13371  version_type=darwin
13372  need_lib_prefix=no
13373  need_version=no
13374  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13375  soname_spec='${libname}${release}${major}$shared_ext'
13376  shlibpath_overrides_runpath=yes
13377  shlibpath_var=DYLD_LIBRARY_PATH
13378  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13379
13380  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13381  ;;
13382
13383dgux*)
13384  version_type=linux
13385  need_lib_prefix=no
13386  need_version=no
13387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13388  soname_spec='${libname}${release}${shared_ext}$major'
13389  shlibpath_var=LD_LIBRARY_PATH
13390  ;;
13391
13392freebsd1*)
13393  dynamic_linker=no
13394  ;;
13395
13396freebsd* | dragonfly*)
13397  # DragonFly does not have aout.  When/if they implement a new
13398  # versioning mechanism, adjust this.
13399  if test -x /usr/bin/objformat; then
13400    objformat=`/usr/bin/objformat`
13401  else
13402    case $host_os in
13403    freebsd[123]*) objformat=aout ;;
13404    *) objformat=elf ;;
13405    esac
13406  fi
13407  version_type=freebsd-$objformat
13408  case $version_type in
13409    freebsd-elf*)
13410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13411      need_version=no
13412      need_lib_prefix=no
13413      ;;
13414    freebsd-*)
13415      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13416      need_version=yes
13417      ;;
13418  esac
13419  shlibpath_var=LD_LIBRARY_PATH
13420  case $host_os in
13421  freebsd2*)
13422    shlibpath_overrides_runpath=yes
13423    ;;
13424  freebsd3.[01]* | freebsdelf3.[01]*)
13425    shlibpath_overrides_runpath=yes
13426    hardcode_into_libs=yes
13427    ;;
13428  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13429  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13430    shlibpath_overrides_runpath=no
13431    hardcode_into_libs=yes
13432    ;;
13433  *) # from 4.6 on, and DragonFly
13434    shlibpath_overrides_runpath=yes
13435    hardcode_into_libs=yes
13436    ;;
13437  esac
13438  ;;
13439
13440gnu*)
13441  version_type=linux
13442  need_lib_prefix=no
13443  need_version=no
13444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13445  soname_spec='${libname}${release}${shared_ext}$major'
13446  shlibpath_var=LD_LIBRARY_PATH
13447  hardcode_into_libs=yes
13448  ;;
13449
13450hpux9* | hpux10* | hpux11*)
13451  # Give a soname corresponding to the major version so that dld.sl refuses to
13452  # link against other versions.
13453  version_type=sunos
13454  need_lib_prefix=no
13455  need_version=no
13456  case $host_cpu in
13457  ia64*)
13458    shrext_cmds='.so'
13459    hardcode_into_libs=yes
13460    dynamic_linker="$host_os dld.so"
13461    shlibpath_var=LD_LIBRARY_PATH
13462    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464    soname_spec='${libname}${release}${shared_ext}$major'
13465    if test "X$HPUX_IA64_MODE" = X32; then
13466      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13467    else
13468      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13469    fi
13470    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13471    ;;
13472   hppa*64*)
13473     shrext_cmds='.sl'
13474     hardcode_into_libs=yes
13475     dynamic_linker="$host_os dld.sl"
13476     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13477     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13479     soname_spec='${libname}${release}${shared_ext}$major'
13480     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13481     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13482     ;;
13483   *)
13484    shrext_cmds='.sl'
13485    dynamic_linker="$host_os dld.sl"
13486    shlibpath_var=SHLIB_PATH
13487    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489    soname_spec='${libname}${release}${shared_ext}$major'
13490    ;;
13491  esac
13492  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13493  postinstall_cmds='chmod 555 $lib'
13494  ;;
13495
13496interix[3-9]*)
13497  version_type=linux
13498  need_lib_prefix=no
13499  need_version=no
13500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13501  soname_spec='${libname}${release}${shared_ext}$major'
13502  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  shlibpath_overrides_runpath=no
13505  hardcode_into_libs=yes
13506  ;;
13507
13508irix5* | irix6* | nonstopux*)
13509  case $host_os in
13510    nonstopux*) version_type=nonstopux ;;
13511    *)
13512	if test "$lt_cv_prog_gnu_ld" = yes; then
13513		version_type=linux
13514	else
13515		version_type=irix
13516	fi ;;
13517  esac
13518  need_lib_prefix=no
13519  need_version=no
13520  soname_spec='${libname}${release}${shared_ext}$major'
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13522  case $host_os in
13523  irix5* | nonstopux*)
13524    libsuff= shlibsuff=
13525    ;;
13526  *)
13527    case $LD in # libtool.m4 will add one of these switches to LD
13528    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13529      libsuff= shlibsuff= libmagic=32-bit;;
13530    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13531      libsuff=32 shlibsuff=N32 libmagic=N32;;
13532    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13533      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13534    *) libsuff= shlibsuff= libmagic=never-match;;
13535    esac
13536    ;;
13537  esac
13538  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13539  shlibpath_overrides_runpath=no
13540  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13541  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13542  hardcode_into_libs=yes
13543  ;;
13544
13545# No shared lib support for Linux oldld, aout, or coff.
13546linux*oldld* | linux*aout* | linux*coff*)
13547  dynamic_linker=no
13548  ;;
13549
13550# This must be Linux ELF.
13551linux* | k*bsd*-gnu)
13552  version_type=linux
13553  need_lib_prefix=no
13554  need_version=no
13555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556  soname_spec='${libname}${release}${shared_ext}$major'
13557  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13558  shlibpath_var=LD_LIBRARY_PATH
13559  shlibpath_overrides_runpath=no
13560  # This implies no fast_install, which is unacceptable.
13561  # Some rework will be needed to allow for fast_install
13562  # before this can be enabled.
13563  hardcode_into_libs=yes
13564
13565  # Append ld.so.conf contents to the search path
13566  if test -f /etc/ld.so.conf; then
13567    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' ' '`
13568    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13569  fi
13570
13571  # We used to test for /lib/ld.so.1 and disable shared libraries on
13572  # powerpc, because MkLinux only supported shared libraries with the
13573  # GNU dynamic linker.  Since this was broken with cross compilers,
13574  # most powerpc-linux boxes support dynamic linking these days and
13575  # people can always --disable-shared, the test was removed, and we
13576  # assume the GNU/Linux dynamic linker is in use.
13577  dynamic_linker='GNU/Linux ld.so'
13578  ;;
13579
13580netbsd*)
13581  version_type=sunos
13582  need_lib_prefix=no
13583  need_version=no
13584  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13586    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13587    dynamic_linker='NetBSD (a.out) ld.so'
13588  else
13589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13590    soname_spec='${libname}${release}${shared_ext}$major'
13591    dynamic_linker='NetBSD ld.elf_so'
13592  fi
13593  shlibpath_var=LD_LIBRARY_PATH
13594  shlibpath_overrides_runpath=yes
13595  hardcode_into_libs=yes
13596  ;;
13597
13598newsos6)
13599  version_type=linux
13600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601  shlibpath_var=LD_LIBRARY_PATH
13602  shlibpath_overrides_runpath=yes
13603  ;;
13604
13605nto-qnx*)
13606  version_type=linux
13607  need_lib_prefix=no
13608  need_version=no
13609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610  soname_spec='${libname}${release}${shared_ext}$major'
13611  shlibpath_var=LD_LIBRARY_PATH
13612  shlibpath_overrides_runpath=yes
13613  ;;
13614
13615openbsd*)
13616  version_type=sunos
13617  sys_lib_dlsearch_path_spec="/usr/lib"
13618  need_lib_prefix=no
13619  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13620  case $host_os in
13621    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13622    *)                         need_version=no  ;;
13623  esac
13624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13625  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13626  shlibpath_var=LD_LIBRARY_PATH
13627  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13628    case $host_os in
13629      openbsd2.[89] | openbsd2.[89].*)
13630	shlibpath_overrides_runpath=no
13631	;;
13632      *)
13633	shlibpath_overrides_runpath=yes
13634	;;
13635      esac
13636  else
13637    shlibpath_overrides_runpath=yes
13638  fi
13639  ;;
13640
13641os2*)
13642  libname_spec='$name'
13643  shrext_cmds=".dll"
13644  need_lib_prefix=no
13645  library_names_spec='$libname${shared_ext} $libname.a'
13646  dynamic_linker='OS/2 ld.exe'
13647  shlibpath_var=LIBPATH
13648  ;;
13649
13650osf3* | osf4* | osf5*)
13651  version_type=osf
13652  need_lib_prefix=no
13653  need_version=no
13654  soname_spec='${libname}${release}${shared_ext}$major'
13655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656  shlibpath_var=LD_LIBRARY_PATH
13657  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13658  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13659  ;;
13660
13661rdos*)
13662  dynamic_linker=no
13663  ;;
13664
13665solaris*)
13666  version_type=linux
13667  need_lib_prefix=no
13668  need_version=no
13669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13670  soname_spec='${libname}${release}${shared_ext}$major'
13671  shlibpath_var=LD_LIBRARY_PATH
13672  shlibpath_overrides_runpath=yes
13673  hardcode_into_libs=yes
13674  # ldd complains unless libraries are executable
13675  postinstall_cmds='chmod +x $lib'
13676  ;;
13677
13678sunos4*)
13679  version_type=sunos
13680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13681  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13682  shlibpath_var=LD_LIBRARY_PATH
13683  shlibpath_overrides_runpath=yes
13684  if test "$with_gnu_ld" = yes; then
13685    need_lib_prefix=no
13686  fi
13687  need_version=yes
13688  ;;
13689
13690sysv4 | sysv4.3*)
13691  version_type=linux
13692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693  soname_spec='${libname}${release}${shared_ext}$major'
13694  shlibpath_var=LD_LIBRARY_PATH
13695  case $host_vendor in
13696    sni)
13697      shlibpath_overrides_runpath=no
13698      need_lib_prefix=no
13699      export_dynamic_flag_spec='${wl}-Blargedynsym'
13700      runpath_var=LD_RUN_PATH
13701      ;;
13702    siemens)
13703      need_lib_prefix=no
13704      ;;
13705    motorola)
13706      need_lib_prefix=no
13707      need_version=no
13708      shlibpath_overrides_runpath=no
13709      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13710      ;;
13711  esac
13712  ;;
13713
13714sysv4*MP*)
13715  if test -d /usr/nec ;then
13716    version_type=linux
13717    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13718    soname_spec='$libname${shared_ext}.$major'
13719    shlibpath_var=LD_LIBRARY_PATH
13720  fi
13721  ;;
13722
13723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13724  version_type=freebsd-elf
13725  need_lib_prefix=no
13726  need_version=no
13727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13728  soname_spec='${libname}${release}${shared_ext}$major'
13729  shlibpath_var=LD_LIBRARY_PATH
13730  hardcode_into_libs=yes
13731  if test "$with_gnu_ld" = yes; then
13732    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13733    shlibpath_overrides_runpath=no
13734  else
13735    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13736    shlibpath_overrides_runpath=yes
13737    case $host_os in
13738      sco3.2v5*)
13739        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13740	;;
13741    esac
13742  fi
13743  sys_lib_dlsearch_path_spec='/usr/lib'
13744  ;;
13745
13746uts4*)
13747  version_type=linux
13748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13749  soname_spec='${libname}${release}${shared_ext}$major'
13750  shlibpath_var=LD_LIBRARY_PATH
13751  ;;
13752
13753*)
13754  dynamic_linker=no
13755  ;;
13756esac
13757{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13758$as_echo "$dynamic_linker" >&6; }
13759test "$dynamic_linker" = no && can_build_shared=no
13760
13761if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13762  $as_echo_n "(cached) " >&6
13763else
13764  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13765fi
13766
13767sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13768if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13769  $as_echo_n "(cached) " >&6
13770else
13771  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13772fi
13773
13774sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13775
13776variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13777if test "$GCC" = yes; then
13778  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13779fi
13780
13781{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13782$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13783hardcode_action_CXX=
13784if test -n "$hardcode_libdir_flag_spec_CXX" || \
13785   test -n "$runpath_var_CXX" || \
13786   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13787
13788  # We can hardcode non-existant directories.
13789  if test "$hardcode_direct_CXX" != no &&
13790     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13791     # have to relink, otherwise we might link with an installed library
13792     # when we should be linking with a yet-to-be-installed one
13793     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13794     test "$hardcode_minus_L_CXX" != no; then
13795    # Linking always hardcodes the temporary library directory.
13796    hardcode_action_CXX=relink
13797  else
13798    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13799    hardcode_action_CXX=immediate
13800  fi
13801else
13802  # We cannot hardcode anything, or else we can only hardcode existing
13803  # directories.
13804  hardcode_action_CXX=unsupported
13805fi
13806{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13807$as_echo "$hardcode_action_CXX" >&6; }
13808
13809if test "$hardcode_action_CXX" = relink; then
13810  # Fast installation is not supported
13811  enable_fast_install=no
13812elif test "$shlibpath_overrides_runpath" = yes ||
13813     test "$enable_shared" = no; then
13814  # Fast installation is not necessary
13815  enable_fast_install=needless
13816fi
13817
13818
13819# The else clause should only fire when bootstrapping the
13820# libtool distribution, otherwise you forgot to ship ltmain.sh
13821# with your package, and you will get complaints that there are
13822# no rules to generate ltmain.sh.
13823if test -f "$ltmain"; then
13824  # See if we are running on zsh, and set the options which allow our commands through
13825  # without removal of \ escapes.
13826  if test -n "${ZSH_VERSION+set}" ; then
13827    setopt NO_GLOB_SUBST
13828  fi
13829  # Now quote all the things that may contain metacharacters while being
13830  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13831  # variables and quote the copies for generation of the libtool script.
13832  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13833    SED SHELL STRIP \
13834    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13835    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13836    deplibs_check_method reload_flag reload_cmds need_locks \
13837    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13838    lt_cv_sys_global_symbol_to_c_name_address \
13839    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13840    old_postinstall_cmds old_postuninstall_cmds \
13841    compiler_CXX \
13842    CC_CXX \
13843    LD_CXX \
13844    lt_prog_compiler_wl_CXX \
13845    lt_prog_compiler_pic_CXX \
13846    lt_prog_compiler_static_CXX \
13847    lt_prog_compiler_no_builtin_flag_CXX \
13848    export_dynamic_flag_spec_CXX \
13849    thread_safe_flag_spec_CXX \
13850    whole_archive_flag_spec_CXX \
13851    enable_shared_with_static_runtimes_CXX \
13852    old_archive_cmds_CXX \
13853    old_archive_from_new_cmds_CXX \
13854    predep_objects_CXX \
13855    postdep_objects_CXX \
13856    predeps_CXX \
13857    postdeps_CXX \
13858    compiler_lib_search_path_CXX \
13859    compiler_lib_search_dirs_CXX \
13860    archive_cmds_CXX \
13861    archive_expsym_cmds_CXX \
13862    postinstall_cmds_CXX \
13863    postuninstall_cmds_CXX \
13864    old_archive_from_expsyms_cmds_CXX \
13865    allow_undefined_flag_CXX \
13866    no_undefined_flag_CXX \
13867    export_symbols_cmds_CXX \
13868    hardcode_libdir_flag_spec_CXX \
13869    hardcode_libdir_flag_spec_ld_CXX \
13870    hardcode_libdir_separator_CXX \
13871    hardcode_automatic_CXX \
13872    module_cmds_CXX \
13873    module_expsym_cmds_CXX \
13874    lt_cv_prog_compiler_c_o_CXX \
13875    fix_srcfile_path_CXX \
13876    exclude_expsyms_CXX \
13877    include_expsyms_CXX; do
13878
13879    case $var in
13880    old_archive_cmds_CXX | \
13881    old_archive_from_new_cmds_CXX | \
13882    archive_cmds_CXX | \
13883    archive_expsym_cmds_CXX | \
13884    module_cmds_CXX | \
13885    module_expsym_cmds_CXX | \
13886    old_archive_from_expsyms_cmds_CXX | \
13887    export_symbols_cmds_CXX | \
13888    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13889    postinstall_cmds | postuninstall_cmds | \
13890    old_postinstall_cmds | old_postuninstall_cmds | \
13891    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13892      # Double-quote double-evaled strings.
13893      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13894      ;;
13895    *)
13896      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13897      ;;
13898    esac
13899  done
13900
13901  case $lt_echo in
13902  *'\$0 --fallback-echo"')
13903    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13904    ;;
13905  esac
13906
13907cfgfile="$ofile"
13908
13909  cat <<__EOF__ >> "$cfgfile"
13910# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13911
13912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13913
13914# Shell to use when invoking shell scripts.
13915SHELL=$lt_SHELL
13916
13917# Whether or not to build shared libraries.
13918build_libtool_libs=$enable_shared
13919
13920# Whether or not to build static libraries.
13921build_old_libs=$enable_static
13922
13923# Whether or not to add -lc for building shared libraries.
13924build_libtool_need_lc=$archive_cmds_need_lc_CXX
13925
13926# Whether or not to disallow shared libs when runtime libs are static
13927allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13928
13929# Whether or not to optimize for fast installation.
13930fast_install=$enable_fast_install
13931
13932# The host system.
13933host_alias=$host_alias
13934host=$host
13935host_os=$host_os
13936
13937# The build system.
13938build_alias=$build_alias
13939build=$build
13940build_os=$build_os
13941
13942# An echo program that does not interpret backslashes.
13943echo=$lt_echo
13944
13945# The archiver.
13946AR=$lt_AR
13947AR_FLAGS=$lt_AR_FLAGS
13948
13949# A C compiler.
13950LTCC=$lt_LTCC
13951
13952# LTCC compiler flags.
13953LTCFLAGS=$lt_LTCFLAGS
13954
13955# A language-specific compiler.
13956CC=$lt_compiler_CXX
13957
13958# Is the compiler the GNU C compiler?
13959with_gcc=$GCC_CXX
13960
13961# An ERE matcher.
13962EGREP=$lt_EGREP
13963
13964# The linker used to build libraries.
13965LD=$lt_LD_CXX
13966
13967# Whether we need hard or soft links.
13968LN_S=$lt_LN_S
13969
13970# A BSD-compatible nm program.
13971NM=$lt_NM
13972
13973# A symbol stripping program
13974STRIP=$lt_STRIP
13975
13976# Used to examine libraries when file_magic_cmd begins "file"
13977MAGIC_CMD=$MAGIC_CMD
13978
13979# Used on cygwin: DLL creation program.
13980DLLTOOL="$DLLTOOL"
13981
13982# Used on cygwin: object dumper.
13983OBJDUMP="$OBJDUMP"
13984
13985# Used on cygwin: assembler.
13986AS="$AS"
13987
13988# The name of the directory that contains temporary libtool files.
13989objdir=$objdir
13990
13991# How to create reloadable object files.
13992reload_flag=$lt_reload_flag
13993reload_cmds=$lt_reload_cmds
13994
13995# How to pass a linker flag through the compiler.
13996wl=$lt_lt_prog_compiler_wl_CXX
13997
13998# Object file suffix (normally "o").
13999objext="$ac_objext"
14000
14001# Old archive suffix (normally "a").
14002libext="$libext"
14003
14004# Shared library suffix (normally ".so").
14005shrext_cmds='$shrext_cmds'
14006
14007# Executable file suffix (normally "").
14008exeext="$exeext"
14009
14010# Additional compiler flags for building library objects.
14011pic_flag=$lt_lt_prog_compiler_pic_CXX
14012pic_mode=$pic_mode
14013
14014# What is the maximum length of a command?
14015max_cmd_len=$lt_cv_sys_max_cmd_len
14016
14017# Does compiler simultaneously support -c and -o options?
14018compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14019
14020# Must we lock files when doing compilation?
14021need_locks=$lt_need_locks
14022
14023# Do we need the lib prefix for modules?
14024need_lib_prefix=$need_lib_prefix
14025
14026# Do we need a version for libraries?
14027need_version=$need_version
14028
14029# Whether dlopen is supported.
14030dlopen_support=$enable_dlopen
14031
14032# Whether dlopen of programs is supported.
14033dlopen_self=$enable_dlopen_self
14034
14035# Whether dlopen of statically linked programs is supported.
14036dlopen_self_static=$enable_dlopen_self_static
14037
14038# Compiler flag to prevent dynamic linking.
14039link_static_flag=$lt_lt_prog_compiler_static_CXX
14040
14041# Compiler flag to turn off builtin functions.
14042no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14043
14044# Compiler flag to allow reflexive dlopens.
14045export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14046
14047# Compiler flag to generate shared objects directly from archives.
14048whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14049
14050# Compiler flag to generate thread-safe objects.
14051thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14052
14053# Library versioning type.
14054version_type=$version_type
14055
14056# Format of library name prefix.
14057libname_spec=$lt_libname_spec
14058
14059# List of archive names.  First name is the real one, the rest are links.
14060# The last name is the one that the linker finds with -lNAME.
14061library_names_spec=$lt_library_names_spec
14062
14063# The coded name of the library, if different from the real name.
14064soname_spec=$lt_soname_spec
14065
14066# Commands used to build and install an old-style archive.
14067RANLIB=$lt_RANLIB
14068old_archive_cmds=$lt_old_archive_cmds_CXX
14069old_postinstall_cmds=$lt_old_postinstall_cmds
14070old_postuninstall_cmds=$lt_old_postuninstall_cmds
14071
14072# Create an old-style archive from a shared archive.
14073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14074
14075# Create a temporary old-style archive to link instead of a shared archive.
14076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14077
14078# Commands used to build and install a shared archive.
14079archive_cmds=$lt_archive_cmds_CXX
14080archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14081postinstall_cmds=$lt_postinstall_cmds
14082postuninstall_cmds=$lt_postuninstall_cmds
14083
14084# Commands used to build a loadable module (assumed same as above if empty)
14085module_cmds=$lt_module_cmds_CXX
14086module_expsym_cmds=$lt_module_expsym_cmds_CXX
14087
14088# Commands to strip libraries.
14089old_striplib=$lt_old_striplib
14090striplib=$lt_striplib
14091
14092# Dependencies to place before the objects being linked to create a
14093# shared library.
14094predep_objects=$lt_predep_objects_CXX
14095
14096# Dependencies to place after the objects being linked to create a
14097# shared library.
14098postdep_objects=$lt_postdep_objects_CXX
14099
14100# Dependencies to place before the objects being linked to create a
14101# shared library.
14102predeps=$lt_predeps_CXX
14103
14104# Dependencies to place after the objects being linked to create a
14105# shared library.
14106postdeps=$lt_postdeps_CXX
14107
14108# The directories searched by this compiler when creating a shared
14109# library
14110compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14111
14112# The library search path used internally by the compiler when linking
14113# a shared library.
14114compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14115
14116# Method to check whether dependent libraries are shared objects.
14117deplibs_check_method=$lt_deplibs_check_method
14118
14119# Command to use when deplibs_check_method == file_magic.
14120file_magic_cmd=$lt_file_magic_cmd
14121
14122# Flag that allows shared libraries with undefined symbols to be built.
14123allow_undefined_flag=$lt_allow_undefined_flag_CXX
14124
14125# Flag that forces no undefined symbols.
14126no_undefined_flag=$lt_no_undefined_flag_CXX
14127
14128# Commands used to finish a libtool library installation in a directory.
14129finish_cmds=$lt_finish_cmds
14130
14131# Same as above, but a single script fragment to be evaled but not shown.
14132finish_eval=$lt_finish_eval
14133
14134# Take the output of nm and produce a listing of raw symbols and C names.
14135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14136
14137# Transform the output of nm in a proper C declaration
14138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14139
14140# Transform the output of nm in a C name address pair
14141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14142
14143# This is the shared library runtime path variable.
14144runpath_var=$runpath_var
14145
14146# This is the shared library path variable.
14147shlibpath_var=$shlibpath_var
14148
14149# Is shlibpath searched before the hard-coded library search path?
14150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14151
14152# How to hardcode a shared library path into an executable.
14153hardcode_action=$hardcode_action_CXX
14154
14155# Whether we should hardcode library paths into libraries.
14156hardcode_into_libs=$hardcode_into_libs
14157
14158# Flag to hardcode \$libdir into a binary during linking.
14159# This must work even if \$libdir does not exist.
14160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14161
14162# If ld is used when linking, flag to hardcode \$libdir into
14163# a binary during linking. This must work even if \$libdir does
14164# not exist.
14165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14166
14167# Whether we need a single -rpath flag with a separated argument.
14168hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14169
14170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14171# resulting binary.
14172hardcode_direct=$hardcode_direct_CXX
14173
14174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14175# resulting binary.
14176hardcode_minus_L=$hardcode_minus_L_CXX
14177
14178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14179# the resulting binary.
14180hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14181
14182# Set to yes if building a shared library automatically hardcodes DIR into the library
14183# and all subsequent libraries and executables linked against it.
14184hardcode_automatic=$hardcode_automatic_CXX
14185
14186# Variables whose values should be saved in libtool wrapper scripts and
14187# restored at relink time.
14188variables_saved_for_relink="$variables_saved_for_relink"
14189
14190# Whether libtool must link a program against all its dependency libraries.
14191link_all_deplibs=$link_all_deplibs_CXX
14192
14193# Compile-time system search path for libraries
14194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14195
14196# Run-time system search path for libraries
14197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14198
14199# Fix the shell variable \$srcfile for the compiler.
14200fix_srcfile_path=$lt_fix_srcfile_path
14201
14202# Set to yes if exported symbols are required.
14203always_export_symbols=$always_export_symbols_CXX
14204
14205# The commands to list exported symbols.
14206export_symbols_cmds=$lt_export_symbols_cmds_CXX
14207
14208# The commands to extract the exported symbol list from a shared archive.
14209extract_expsyms_cmds=$lt_extract_expsyms_cmds
14210
14211# Symbols that should not be listed in the preloaded symbols.
14212exclude_expsyms=$lt_exclude_expsyms_CXX
14213
14214# Symbols that must always be exported.
14215include_expsyms=$lt_include_expsyms_CXX
14216
14217# ### END LIBTOOL TAG CONFIG: $tagname
14218
14219__EOF__
14220
14221
14222else
14223  # If there is no Makefile yet, we rely on a make rule to execute
14224  # `config.status --recheck' to rerun these tests and create the
14225  # libtool script then.
14226  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14227  if test -f "$ltmain_in"; then
14228    test -f Makefile && make "$ltmain"
14229  fi
14230fi
14231
14232
14233ac_ext=c
14234ac_cpp='$CPP $CPPFLAGS'
14235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14237ac_compiler_gnu=$ac_cv_c_compiler_gnu
14238
14239CC=$lt_save_CC
14240LDCXX=$LD
14241LD=$lt_save_LD
14242GCC=$lt_save_GCC
14243with_gnu_ldcxx=$with_gnu_ld
14244with_gnu_ld=$lt_save_with_gnu_ld
14245lt_cv_path_LDCXX=$lt_cv_path_LD
14246lt_cv_path_LD=$lt_save_path_LD
14247lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14248lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14249
14250	else
14251	  tagname=""
14252	fi
14253	;;
14254
14255      F77)
14256	if test -n "$F77" && test "X$F77" != "Xno"; then
14257
14258ac_ext=f
14259ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14260ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14261ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14262
14263
14264archive_cmds_need_lc_F77=no
14265allow_undefined_flag_F77=
14266always_export_symbols_F77=no
14267archive_expsym_cmds_F77=
14268export_dynamic_flag_spec_F77=
14269hardcode_direct_F77=no
14270hardcode_libdir_flag_spec_F77=
14271hardcode_libdir_flag_spec_ld_F77=
14272hardcode_libdir_separator_F77=
14273hardcode_minus_L_F77=no
14274hardcode_automatic_F77=no
14275module_cmds_F77=
14276module_expsym_cmds_F77=
14277link_all_deplibs_F77=unknown
14278old_archive_cmds_F77=$old_archive_cmds
14279no_undefined_flag_F77=
14280whole_archive_flag_spec_F77=
14281enable_shared_with_static_runtimes_F77=no
14282
14283# Source file extension for f77 test sources.
14284ac_ext=f
14285
14286# Object file extension for compiled f77 test sources.
14287objext=o
14288objext_F77=$objext
14289
14290# Code to be used in simple compile tests
14291lt_simple_compile_test_code="\
14292      subroutine t
14293      return
14294      end
14295"
14296
14297# Code to be used in simple link tests
14298lt_simple_link_test_code="\
14299      program t
14300      end
14301"
14302
14303# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14304
14305# If no C compiler was specified, use CC.
14306LTCC=${LTCC-"$CC"}
14307
14308# If no C compiler flags were specified, use CFLAGS.
14309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14310
14311# Allow CC to be a program name with arguments.
14312compiler=$CC
14313
14314
14315# save warnings/boilerplate of simple test code
14316ac_outfile=conftest.$ac_objext
14317echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14319_lt_compiler_boilerplate=`cat conftest.err`
14320$rm conftest*
14321
14322ac_outfile=conftest.$ac_objext
14323echo "$lt_simple_link_test_code" >conftest.$ac_ext
14324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14325_lt_linker_boilerplate=`cat conftest.err`
14326$rm -r conftest*
14327
14328
14329# Allow CC to be a program name with arguments.
14330lt_save_CC="$CC"
14331CC=${F77-"f77"}
14332compiler=$CC
14333compiler_F77=$CC
14334for cc_temp in $compiler""; do
14335  case $cc_temp in
14336    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14337    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14338    \-*) ;;
14339    *) break;;
14340  esac
14341done
14342cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14343
14344
14345{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14346$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14347{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14348$as_echo "$can_build_shared" >&6; }
14349
14350{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14351$as_echo_n "checking whether to build shared libraries... " >&6; }
14352test "$can_build_shared" = "no" && enable_shared=no
14353
14354# On AIX, shared libraries and static libraries use the same namespace, and
14355# are all built from PIC.
14356case $host_os in
14357aix3*)
14358  test "$enable_shared" = yes && enable_static=no
14359  if test -n "$RANLIB"; then
14360    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14361    postinstall_cmds='$RANLIB $lib'
14362  fi
14363  ;;
14364aix[4-9]*)
14365  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14366    test "$enable_shared" = yes && enable_static=no
14367  fi
14368  ;;
14369esac
14370{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14371$as_echo "$enable_shared" >&6; }
14372
14373{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14374$as_echo_n "checking whether to build static libraries... " >&6; }
14375# Make sure either enable_shared or enable_static is yes.
14376test "$enable_shared" = yes || enable_static=yes
14377{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14378$as_echo "$enable_static" >&6; }
14379
14380GCC_F77="$G77"
14381LD_F77="$LD"
14382
14383lt_prog_compiler_wl_F77=
14384lt_prog_compiler_pic_F77=
14385lt_prog_compiler_static_F77=
14386
14387{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14388$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14389
14390  if test "$GCC" = yes; then
14391    lt_prog_compiler_wl_F77='-Wl,'
14392    lt_prog_compiler_static_F77='-static'
14393
14394    case $host_os in
14395      aix*)
14396      # All AIX code is PIC.
14397      if test "$host_cpu" = ia64; then
14398	# AIX 5 now supports IA64 processor
14399	lt_prog_compiler_static_F77='-Bstatic'
14400      fi
14401      ;;
14402
14403    amigaos*)
14404      # FIXME: we need at least 68020 code to build shared libraries, but
14405      # adding the `-m68020' flag to GCC prevents building anything better,
14406      # like `-m68040'.
14407      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14408      ;;
14409
14410    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14411      # PIC is the default for these OSes.
14412      ;;
14413
14414    mingw* | cygwin* | pw32* | os2*)
14415      # This hack is so that the source file can tell whether it is being
14416      # built for inclusion in a dll (and should export symbols for example).
14417      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14418      # (--disable-auto-import) libraries
14419      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14420      ;;
14421
14422    darwin* | rhapsody*)
14423      # PIC is the default on this platform
14424      # Common symbols not allowed in MH_DYLIB files
14425      lt_prog_compiler_pic_F77='-fno-common'
14426      ;;
14427
14428    interix[3-9]*)
14429      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14430      # Instead, we relocate shared libraries at runtime.
14431      ;;
14432
14433    msdosdjgpp*)
14434      # Just because we use GCC doesn't mean we suddenly get shared libraries
14435      # on systems that don't support them.
14436      lt_prog_compiler_can_build_shared_F77=no
14437      enable_shared=no
14438      ;;
14439
14440    sysv4*MP*)
14441      if test -d /usr/nec; then
14442	lt_prog_compiler_pic_F77=-Kconform_pic
14443      fi
14444      ;;
14445
14446    hpux*)
14447      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14448      # not for PA HP-UX.
14449      case $host_cpu in
14450      hppa*64*|ia64*)
14451	# +Z the default
14452	;;
14453      *)
14454	lt_prog_compiler_pic_F77='-fPIC'
14455	;;
14456      esac
14457      ;;
14458
14459    *)
14460      lt_prog_compiler_pic_F77='-fPIC'
14461      ;;
14462    esac
14463  else
14464    # PORTME Check for flag to pass linker flags through the system compiler.
14465    case $host_os in
14466    aix*)
14467      lt_prog_compiler_wl_F77='-Wl,'
14468      if test "$host_cpu" = ia64; then
14469	# AIX 5 now supports IA64 processor
14470	lt_prog_compiler_static_F77='-Bstatic'
14471      else
14472	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14473      fi
14474      ;;
14475      darwin*)
14476        # PIC is the default on this platform
14477        # Common symbols not allowed in MH_DYLIB files
14478       case $cc_basename in
14479         xlc*)
14480         lt_prog_compiler_pic_F77='-qnocommon'
14481         lt_prog_compiler_wl_F77='-Wl,'
14482         ;;
14483       esac
14484       ;;
14485
14486    mingw* | cygwin* | pw32* | os2*)
14487      # This hack is so that the source file can tell whether it is being
14488      # built for inclusion in a dll (and should export symbols for example).
14489      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14490      ;;
14491
14492    hpux9* | hpux10* | hpux11*)
14493      lt_prog_compiler_wl_F77='-Wl,'
14494      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14495      # not for PA HP-UX.
14496      case $host_cpu in
14497      hppa*64*|ia64*)
14498	# +Z the default
14499	;;
14500      *)
14501	lt_prog_compiler_pic_F77='+Z'
14502	;;
14503      esac
14504      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14505      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14506      ;;
14507
14508    irix5* | irix6* | nonstopux*)
14509      lt_prog_compiler_wl_F77='-Wl,'
14510      # PIC (with -KPIC) is the default.
14511      lt_prog_compiler_static_F77='-non_shared'
14512      ;;
14513
14514    newsos6)
14515      lt_prog_compiler_pic_F77='-KPIC'
14516      lt_prog_compiler_static_F77='-Bstatic'
14517      ;;
14518
14519    linux* | k*bsd*-gnu)
14520      case $cc_basename in
14521      icc* | ecc*)
14522	lt_prog_compiler_wl_F77='-Wl,'
14523	lt_prog_compiler_pic_F77='-KPIC'
14524	lt_prog_compiler_static_F77='-static'
14525        ;;
14526      pgcc* | pgf77* | pgf90* | pgf95*)
14527        # Portland Group compilers (*not* the Pentium gcc compiler,
14528	# which looks to be a dead project)
14529	lt_prog_compiler_wl_F77='-Wl,'
14530	lt_prog_compiler_pic_F77='-fpic'
14531	lt_prog_compiler_static_F77='-Bstatic'
14532        ;;
14533      ccc*)
14534        lt_prog_compiler_wl_F77='-Wl,'
14535        # All Alpha code is PIC.
14536        lt_prog_compiler_static_F77='-non_shared'
14537        ;;
14538      *)
14539        case `$CC -V 2>&1 | sed 5q` in
14540	*Sun\ C*)
14541	  # Sun C 5.9
14542	  lt_prog_compiler_pic_F77='-KPIC'
14543	  lt_prog_compiler_static_F77='-Bstatic'
14544	  lt_prog_compiler_wl_F77='-Wl,'
14545	  ;;
14546	*Sun\ F*)
14547	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14548	  lt_prog_compiler_pic_F77='-KPIC'
14549	  lt_prog_compiler_static_F77='-Bstatic'
14550	  lt_prog_compiler_wl_F77=''
14551	  ;;
14552	esac
14553	;;
14554      esac
14555      ;;
14556
14557    osf3* | osf4* | osf5*)
14558      lt_prog_compiler_wl_F77='-Wl,'
14559      # All OSF/1 code is PIC.
14560      lt_prog_compiler_static_F77='-non_shared'
14561      ;;
14562
14563    rdos*)
14564      lt_prog_compiler_static_F77='-non_shared'
14565      ;;
14566
14567    solaris*)
14568      lt_prog_compiler_pic_F77='-KPIC'
14569      lt_prog_compiler_static_F77='-Bstatic'
14570      case $cc_basename in
14571      f77* | f90* | f95*)
14572	lt_prog_compiler_wl_F77='-Qoption ld ';;
14573      *)
14574	lt_prog_compiler_wl_F77='-Wl,';;
14575      esac
14576      ;;
14577
14578    sunos4*)
14579      lt_prog_compiler_wl_F77='-Qoption ld '
14580      lt_prog_compiler_pic_F77='-PIC'
14581      lt_prog_compiler_static_F77='-Bstatic'
14582      ;;
14583
14584    sysv4 | sysv4.2uw2* | sysv4.3*)
14585      lt_prog_compiler_wl_F77='-Wl,'
14586      lt_prog_compiler_pic_F77='-KPIC'
14587      lt_prog_compiler_static_F77='-Bstatic'
14588      ;;
14589
14590    sysv4*MP*)
14591      if test -d /usr/nec ;then
14592	lt_prog_compiler_pic_F77='-Kconform_pic'
14593	lt_prog_compiler_static_F77='-Bstatic'
14594      fi
14595      ;;
14596
14597    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14598      lt_prog_compiler_wl_F77='-Wl,'
14599      lt_prog_compiler_pic_F77='-KPIC'
14600      lt_prog_compiler_static_F77='-Bstatic'
14601      ;;
14602
14603    unicos*)
14604      lt_prog_compiler_wl_F77='-Wl,'
14605      lt_prog_compiler_can_build_shared_F77=no
14606      ;;
14607
14608    uts4*)
14609      lt_prog_compiler_pic_F77='-pic'
14610      lt_prog_compiler_static_F77='-Bstatic'
14611      ;;
14612
14613    *)
14614      lt_prog_compiler_can_build_shared_F77=no
14615      ;;
14616    esac
14617  fi
14618
14619{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14620$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14621
14622#
14623# Check to make sure the PIC flag actually works.
14624#
14625if test -n "$lt_prog_compiler_pic_F77"; then
14626
14627{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14628$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14629if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14630  $as_echo_n "(cached) " >&6
14631else
14632  lt_cv_prog_compiler_pic_works_F77=no
14633  ac_outfile=conftest.$ac_objext
14634   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14635   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14636   # Insert the option either (1) after the last *FLAGS variable, or
14637   # (2) before a word containing "conftest.", or (3) at the end.
14638   # Note that $ac_compile itself does not contain backslashes and begins
14639   # with a dollar sign (not a hyphen), so the echo should work correctly.
14640   # The option is referenced via a variable to avoid confusing sed.
14641   lt_compile=`echo "$ac_compile" | $SED \
14642   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14644   -e 's:$: $lt_compiler_flag:'`
14645   (eval echo "\"\$as_me:14645: $lt_compile\"" >&5)
14646   (eval "$lt_compile" 2>conftest.err)
14647   ac_status=$?
14648   cat conftest.err >&5
14649   echo "$as_me:14649: \$? = $ac_status" >&5
14650   if (exit $ac_status) && test -s "$ac_outfile"; then
14651     # The compiler can only warn and ignore the option if not recognized
14652     # So say no if there are warnings other than the usual output.
14653     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14654     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14655     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14656       lt_cv_prog_compiler_pic_works_F77=yes
14657     fi
14658   fi
14659   $rm conftest*
14660
14661fi
14662{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14663$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14664
14665if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14666    case $lt_prog_compiler_pic_F77 in
14667     "" | " "*) ;;
14668     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14669     esac
14670else
14671    lt_prog_compiler_pic_F77=
14672     lt_prog_compiler_can_build_shared_F77=no
14673fi
14674
14675fi
14676case $host_os in
14677  # For platforms which do not support PIC, -DPIC is meaningless:
14678  *djgpp*)
14679    lt_prog_compiler_pic_F77=
14680    ;;
14681  *)
14682    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14683    ;;
14684esac
14685
14686#
14687# Check to make sure the static flag actually works.
14688#
14689wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14690{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14692if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14693  $as_echo_n "(cached) " >&6
14694else
14695  lt_cv_prog_compiler_static_works_F77=no
14696   save_LDFLAGS="$LDFLAGS"
14697   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14698   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14699   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14700     # The linker can only warn and ignore the option if not recognized
14701     # So say no if there are warnings
14702     if test -s conftest.err; then
14703       # Append any errors to the config.log.
14704       cat conftest.err 1>&5
14705       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14706       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707       if diff conftest.exp conftest.er2 >/dev/null; then
14708         lt_cv_prog_compiler_static_works_F77=yes
14709       fi
14710     else
14711       lt_cv_prog_compiler_static_works_F77=yes
14712     fi
14713   fi
14714   $rm -r conftest*
14715   LDFLAGS="$save_LDFLAGS"
14716
14717fi
14718{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14719$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14720
14721if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14722    :
14723else
14724    lt_prog_compiler_static_F77=
14725fi
14726
14727
14728{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14729$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14730if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14731  $as_echo_n "(cached) " >&6
14732else
14733  lt_cv_prog_compiler_c_o_F77=no
14734   $rm -r conftest 2>/dev/null
14735   mkdir conftest
14736   cd conftest
14737   mkdir out
14738   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739
14740   lt_compiler_flag="-o out/conftest2.$ac_objext"
14741   # Insert the option either (1) after the last *FLAGS variable, or
14742   # (2) before a word containing "conftest.", or (3) at the end.
14743   # Note that $ac_compile itself does not contain backslashes and begins
14744   # with a dollar sign (not a hyphen), so the echo should work correctly.
14745   lt_compile=`echo "$ac_compile" | $SED \
14746   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14747   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14748   -e 's:$: $lt_compiler_flag:'`
14749   (eval echo "\"\$as_me:14749: $lt_compile\"" >&5)
14750   (eval "$lt_compile" 2>out/conftest.err)
14751   ac_status=$?
14752   cat out/conftest.err >&5
14753   echo "$as_me:14753: \$? = $ac_status" >&5
14754   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14755   then
14756     # The compiler can only warn and ignore the option if not recognized
14757     # So say no if there are warnings
14758     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14759     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14760     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14761       lt_cv_prog_compiler_c_o_F77=yes
14762     fi
14763   fi
14764   chmod u+w . 2>&5
14765   $rm conftest*
14766   # SGI C++ compiler will create directory out/ii_files/ for
14767   # template instantiation
14768   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14769   $rm out/* && rmdir out
14770   cd ..
14771   rmdir conftest
14772   $rm conftest*
14773
14774fi
14775{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14776$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14777
14778
14779hard_links="nottested"
14780if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14781  # do not overwrite the value of need_locks provided by the user
14782  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14783$as_echo_n "checking if we can lock with hard links... " >&6; }
14784  hard_links=yes
14785  $rm conftest*
14786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14787  touch conftest.a
14788  ln conftest.a conftest.b 2>&5 || hard_links=no
14789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14790  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14791$as_echo "$hard_links" >&6; }
14792  if test "$hard_links" = no; then
14793    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14794$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14795    need_locks=warn
14796  fi
14797else
14798  need_locks=no
14799fi
14800
14801{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14802$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14803
14804  runpath_var=
14805  allow_undefined_flag_F77=
14806  enable_shared_with_static_runtimes_F77=no
14807  archive_cmds_F77=
14808  archive_expsym_cmds_F77=
14809  old_archive_From_new_cmds_F77=
14810  old_archive_from_expsyms_cmds_F77=
14811  export_dynamic_flag_spec_F77=
14812  whole_archive_flag_spec_F77=
14813  thread_safe_flag_spec_F77=
14814  hardcode_libdir_flag_spec_F77=
14815  hardcode_libdir_flag_spec_ld_F77=
14816  hardcode_libdir_separator_F77=
14817  hardcode_direct_F77=no
14818  hardcode_minus_L_F77=no
14819  hardcode_shlibpath_var_F77=unsupported
14820  link_all_deplibs_F77=unknown
14821  hardcode_automatic_F77=no
14822  module_cmds_F77=
14823  module_expsym_cmds_F77=
14824  always_export_symbols_F77=no
14825  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14826  # include_expsyms should be a list of space-separated symbols to be *always*
14827  # included in the symbol list
14828  include_expsyms_F77=
14829  # exclude_expsyms can be an extended regexp of symbols to exclude
14830  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14831  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14832  # as well as any symbol that contains `d'.
14833  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14834  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14835  # platforms (ab)use it in PIC code, but their linkers get confused if
14836  # the symbol is explicitly referenced.  Since portable code cannot
14837  # rely on this symbol name, it's probably fine to never include it in
14838  # preloaded symbol tables.
14839  # Exclude shared library initialization/finalization symbols.
14840  extract_expsyms_cmds=
14841  # Just being paranoid about ensuring that cc_basename is set.
14842  for cc_temp in $compiler""; do
14843  case $cc_temp in
14844    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14845    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14846    \-*) ;;
14847    *) break;;
14848  esac
14849done
14850cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14851
14852  case $host_os in
14853  cygwin* | mingw* | pw32*)
14854    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14855    # When not using gcc, we currently assume that we are using
14856    # Microsoft Visual C++.
14857    if test "$GCC" != yes; then
14858      with_gnu_ld=no
14859    fi
14860    ;;
14861  interix*)
14862    # we just hope/assume this is gcc and not c89 (= MSVC++)
14863    with_gnu_ld=yes
14864    ;;
14865  openbsd*)
14866    with_gnu_ld=no
14867    ;;
14868  esac
14869
14870  ld_shlibs_F77=yes
14871  if test "$with_gnu_ld" = yes; then
14872    # If archive_cmds runs LD, not CC, wlarc should be empty
14873    wlarc='${wl}'
14874
14875    # Set some defaults for GNU ld with shared library support. These
14876    # are reset later if shared libraries are not supported. Putting them
14877    # here allows them to be overridden if necessary.
14878    runpath_var=LD_RUN_PATH
14879    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14880    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14881    # ancient GNU ld didn't support --whole-archive et. al.
14882    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14883	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14884      else
14885  	whole_archive_flag_spec_F77=
14886    fi
14887    supports_anon_versioning=no
14888    case `$LD -v 2>/dev/null` in
14889      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14890      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14891      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14892      *\ 2.11.*) ;; # other 2.11 versions
14893      *) supports_anon_versioning=yes ;;
14894    esac
14895
14896    # See if GNU ld supports shared libraries.
14897    case $host_os in
14898    aix[3-9]*)
14899      # On AIX/PPC, the GNU linker is very broken
14900      if test "$host_cpu" != ia64; then
14901	ld_shlibs_F77=no
14902	cat <<EOF 1>&2
14903
14904*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14905*** to be unable to reliably create shared libraries on AIX.
14906*** Therefore, libtool is disabling shared libraries support.  If you
14907*** really care for shared libraries, you may want to modify your PATH
14908*** so that a non-GNU linker is found, and then restart.
14909
14910EOF
14911      fi
14912      ;;
14913
14914    amigaos*)
14915      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)'
14916      hardcode_libdir_flag_spec_F77='-L$libdir'
14917      hardcode_minus_L_F77=yes
14918
14919      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14920      # that the semantics of dynamic libraries on AmigaOS, at least up
14921      # to version 4, is to share data among multiple programs linked
14922      # with the same dynamic library.  Since this doesn't match the
14923      # behavior of shared libraries on other platforms, we can't use
14924      # them.
14925      ld_shlibs_F77=no
14926      ;;
14927
14928    beos*)
14929      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930	allow_undefined_flag_F77=unsupported
14931	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14932	# support --undefined.  This deserves some investigation.  FIXME
14933	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14934      else
14935	ld_shlibs_F77=no
14936      fi
14937      ;;
14938
14939    cygwin* | mingw* | pw32*)
14940      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14941      # as there is no search path for DLLs.
14942      hardcode_libdir_flag_spec_F77='-L$libdir'
14943      allow_undefined_flag_F77=unsupported
14944      always_export_symbols_F77=no
14945      enable_shared_with_static_runtimes_F77=yes
14946      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14947
14948      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14949        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14950	# If the export-symbols file already is a .def file (1st line
14951	# is EXPORTS), use it as is; otherwise, prepend...
14952	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14953	  cp $export_symbols $output_objdir/$soname.def;
14954	else
14955	  echo EXPORTS > $output_objdir/$soname.def;
14956	  cat $export_symbols >> $output_objdir/$soname.def;
14957	fi~
14958	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14959      else
14960	ld_shlibs_F77=no
14961      fi
14962      ;;
14963
14964    interix[3-9]*)
14965      hardcode_direct_F77=no
14966      hardcode_shlibpath_var_F77=no
14967      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14968      export_dynamic_flag_spec_F77='${wl}-E'
14969      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14970      # Instead, shared libraries are loaded at an image base (0x10000000 by
14971      # default) and relocated if they conflict, which is a slow very memory
14972      # consuming and fragmenting process.  To avoid this, we pick a random,
14973      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14974      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14975      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'
14976      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'
14977      ;;
14978
14979    gnu* | linux* | k*bsd*-gnu)
14980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14981	tmp_addflag=
14982	case $cc_basename,$host_cpu in
14983	pgcc*)				# Portland Group C compiler
14984	  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'
14985	  tmp_addflag=' $pic_flag'
14986	  ;;
14987	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14988	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14989	  tmp_addflag=' $pic_flag -Mnomain' ;;
14990	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14991	  tmp_addflag=' -i_dynamic' ;;
14992	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14993	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14994	ifc* | ifort*)			# Intel Fortran compiler
14995	  tmp_addflag=' -nofor_main' ;;
14996	esac
14997	case `$CC -V 2>&1 | sed 5q` in
14998	*Sun\ C*)			# Sun C 5.9
14999	  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'
15000	  tmp_sharedflag='-G' ;;
15001	*Sun\ F*)			# Sun Fortran 8.3
15002	  tmp_sharedflag='-G' ;;
15003	*)
15004	  tmp_sharedflag='-shared' ;;
15005	esac
15006	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007
15008	if test $supports_anon_versioning = yes; then
15009	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15010  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15011  $echo "local: *; };" >> $output_objdir/$libname.ver~
15012	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15013	fi
15014      else
15015	ld_shlibs_F77=no
15016      fi
15017      ;;
15018
15019    netbsd*)
15020      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15021	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15022	wlarc=
15023      else
15024	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15025	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15026      fi
15027      ;;
15028
15029    solaris*)
15030      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15031	ld_shlibs_F77=no
15032	cat <<EOF 1>&2
15033
15034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15035*** create shared libraries on Solaris systems.  Therefore, libtool
15036*** is disabling shared libraries support.  We urge you to upgrade GNU
15037*** binutils to release 2.9.1 or newer.  Another option is to modify
15038*** your PATH or compiler configuration so that the native linker is
15039*** used, and then restart.
15040
15041EOF
15042      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15043	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15044	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15045      else
15046	ld_shlibs_F77=no
15047      fi
15048      ;;
15049
15050    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15051      case `$LD -v 2>&1` in
15052        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15053	ld_shlibs_F77=no
15054	cat <<_LT_EOF 1>&2
15055
15056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15057*** reliably create shared libraries on SCO systems.  Therefore, libtool
15058*** is disabling shared libraries support.  We urge you to upgrade GNU
15059*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15060*** your PATH or compiler configuration so that the native linker is
15061*** used, and then restart.
15062
15063_LT_EOF
15064	;;
15065	*)
15066	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15067	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15068	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15069	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15070	  else
15071	    ld_shlibs_F77=no
15072	  fi
15073	;;
15074      esac
15075      ;;
15076
15077    sunos4*)
15078      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15079      wlarc=
15080      hardcode_direct_F77=yes
15081      hardcode_shlibpath_var_F77=no
15082      ;;
15083
15084    *)
15085      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15086	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088      else
15089	ld_shlibs_F77=no
15090      fi
15091      ;;
15092    esac
15093
15094    if test "$ld_shlibs_F77" = no; then
15095      runpath_var=
15096      hardcode_libdir_flag_spec_F77=
15097      export_dynamic_flag_spec_F77=
15098      whole_archive_flag_spec_F77=
15099    fi
15100  else
15101    # PORTME fill in a description of your system's linker (not GNU ld)
15102    case $host_os in
15103    aix3*)
15104      allow_undefined_flag_F77=unsupported
15105      always_export_symbols_F77=yes
15106      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'
15107      # Note: this linker hardcodes the directories in LIBPATH if there
15108      # are no directories specified by -L.
15109      hardcode_minus_L_F77=yes
15110      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15111	# Neither direct hardcoding nor static linking is supported with a
15112	# broken collect2.
15113	hardcode_direct_F77=unsupported
15114      fi
15115      ;;
15116
15117    aix[4-9]*)
15118      if test "$host_cpu" = ia64; then
15119	# On IA64, the linker does run time linking by default, so we don't
15120	# have to do anything special.
15121	aix_use_runtimelinking=no
15122	exp_sym_flag='-Bexport'
15123	no_entry_flag=""
15124      else
15125	# If we're using GNU nm, then we don't want the "-C" option.
15126	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15127	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15128	  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'
15129	else
15130	  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'
15131	fi
15132	aix_use_runtimelinking=no
15133
15134	# Test if we are trying to use run time linking or normal
15135	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15136	# need to do runtime linking.
15137	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15138	  for ld_flag in $LDFLAGS; do
15139  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15140  	    aix_use_runtimelinking=yes
15141  	    break
15142  	  fi
15143	  done
15144	  ;;
15145	esac
15146
15147	exp_sym_flag='-bexport'
15148	no_entry_flag='-bnoentry'
15149      fi
15150
15151      # When large executables or shared objects are built, AIX ld can
15152      # have problems creating the table of contents.  If linking a library
15153      # or program results in "error TOC overflow" add -mminimal-toc to
15154      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15155      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15156
15157      archive_cmds_F77=''
15158      hardcode_direct_F77=yes
15159      hardcode_libdir_separator_F77=':'
15160      link_all_deplibs_F77=yes
15161
15162      if test "$GCC" = yes; then
15163	case $host_os in aix4.[012]|aix4.[012].*)
15164	# We only want to do this on AIX 4.2 and lower, the check
15165	# below for broken collect2 doesn't work under 4.3+
15166	  collect2name=`${CC} -print-prog-name=collect2`
15167	  if test -f "$collect2name" && \
15168  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15169	  then
15170  	  # We have reworked collect2
15171  	  :
15172	  else
15173  	  # We have old collect2
15174  	  hardcode_direct_F77=unsupported
15175  	  # It fails to find uninstalled libraries when the uninstalled
15176  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15177  	  # to unsupported forces relinking
15178  	  hardcode_minus_L_F77=yes
15179  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15180  	  hardcode_libdir_separator_F77=
15181	  fi
15182	  ;;
15183	esac
15184	shared_flag='-shared'
15185	if test "$aix_use_runtimelinking" = yes; then
15186	  shared_flag="$shared_flag "'${wl}-G'
15187	fi
15188      else
15189	# not using gcc
15190	if test "$host_cpu" = ia64; then
15191  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15192  	# chokes on -Wl,-G. The following line is correct:
15193	  shared_flag='-G'
15194	else
15195	  if test "$aix_use_runtimelinking" = yes; then
15196	    shared_flag='${wl}-G'
15197	  else
15198	    shared_flag='${wl}-bM:SRE'
15199	  fi
15200	fi
15201      fi
15202
15203      # It seems that -bexpall does not export symbols beginning with
15204      # underscore (_), so it is better to generate a list of symbols to export.
15205      always_export_symbols_F77=yes
15206      if test "$aix_use_runtimelinking" = yes; then
15207	# Warning - without using the other runtime loading flags (-brtl),
15208	# -berok will link without error, but may produce a broken library.
15209	allow_undefined_flag_F77='-berok'
15210       # Determine the default libpath from the value encoded in an empty executable.
15211       cat >conftest.$ac_ext <<_ACEOF
15212      program main
15213
15214      end
15215_ACEOF
15216rm -f conftest.$ac_objext conftest$ac_exeext
15217if { (ac_try="$ac_link"
15218case "(($ac_try" in
15219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220  *) ac_try_echo=$ac_try;;
15221esac
15222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15223$as_echo "$ac_try_echo") >&5
15224  (eval "$ac_link") 2>conftest.er1
15225  ac_status=$?
15226  grep -v '^ *+' conftest.er1 >conftest.err
15227  rm -f conftest.er1
15228  cat conftest.err >&5
15229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230  (exit $ac_status); } && {
15231	 test -z "$ac_f77_werror_flag" ||
15232	 test ! -s conftest.err
15233       } && test -s conftest$ac_exeext && {
15234	 test "$cross_compiling" = yes ||
15235	 $as_test_x conftest$ac_exeext
15236       }; then
15237
15238lt_aix_libpath_sed='
15239    /Import File Strings/,/^$/ {
15240	/^0/ {
15241	    s/^0  *\(.*\)$/\1/
15242	    p
15243	}
15244    }'
15245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15246# Check for a 64-bit object if we didn't find anything.
15247if test -z "$aix_libpath"; then
15248  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249fi
15250else
15251  $as_echo "$as_me: failed program was:" >&5
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
15254
15255fi
15256
15257rm -rf conftest.dSYM
15258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15259      conftest$ac_exeext conftest.$ac_ext
15260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15261
15262       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15263	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"
15264       else
15265	if test "$host_cpu" = ia64; then
15266	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15267	  allow_undefined_flag_F77="-z nodefs"
15268	  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"
15269	else
15270	 # Determine the default libpath from the value encoded in an empty executable.
15271	 cat >conftest.$ac_ext <<_ACEOF
15272      program main
15273
15274      end
15275_ACEOF
15276rm -f conftest.$ac_objext conftest$ac_exeext
15277if { (ac_try="$ac_link"
15278case "(($ac_try" in
15279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280  *) ac_try_echo=$ac_try;;
15281esac
15282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15283$as_echo "$ac_try_echo") >&5
15284  (eval "$ac_link") 2>conftest.er1
15285  ac_status=$?
15286  grep -v '^ *+' conftest.er1 >conftest.err
15287  rm -f conftest.er1
15288  cat conftest.err >&5
15289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290  (exit $ac_status); } && {
15291	 test -z "$ac_f77_werror_flag" ||
15292	 test ! -s conftest.err
15293       } && test -s conftest$ac_exeext && {
15294	 test "$cross_compiling" = yes ||
15295	 $as_test_x conftest$ac_exeext
15296       }; then
15297
15298lt_aix_libpath_sed='
15299    /Import File Strings/,/^$/ {
15300	/^0/ {
15301	    s/^0  *\(.*\)$/\1/
15302	    p
15303	}
15304    }'
15305aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15306# Check for a 64-bit object if we didn't find anything.
15307if test -z "$aix_libpath"; then
15308  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15309fi
15310else
15311  $as_echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314
15315fi
15316
15317rm -rf conftest.dSYM
15318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319      conftest$ac_exeext conftest.$ac_ext
15320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15321
15322	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15323	  # Warning - without using the other run time loading flags,
15324	  # -berok will link without error, but may produce a broken library.
15325	  no_undefined_flag_F77=' ${wl}-bernotok'
15326	  allow_undefined_flag_F77=' ${wl}-berok'
15327	  # Exported symbols can be pulled into shared objects from archives
15328	  whole_archive_flag_spec_F77='$convenience'
15329	  archive_cmds_need_lc_F77=yes
15330	  # This is similar to how AIX traditionally builds its shared libraries.
15331	  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'
15332	fi
15333      fi
15334      ;;
15335
15336    amigaos*)
15337      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)'
15338      hardcode_libdir_flag_spec_F77='-L$libdir'
15339      hardcode_minus_L_F77=yes
15340      # see comment about different semantics on the GNU ld section
15341      ld_shlibs_F77=no
15342      ;;
15343
15344    bsdi[45]*)
15345      export_dynamic_flag_spec_F77=-rdynamic
15346      ;;
15347
15348    cygwin* | mingw* | pw32*)
15349      # When not using gcc, we currently assume that we are using
15350      # Microsoft Visual C++.
15351      # hardcode_libdir_flag_spec is actually meaningless, as there is
15352      # no search path for DLLs.
15353      hardcode_libdir_flag_spec_F77=' '
15354      allow_undefined_flag_F77=unsupported
15355      # Tell ltmain to make .lib files, not .a files.
15356      libext=lib
15357      # Tell ltmain to make .dll files, not .so files.
15358      shrext_cmds=".dll"
15359      # FIXME: Setting linknames here is a bad hack.
15360      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15361      # The linker will automatically build a .lib file if we build a DLL.
15362      old_archive_From_new_cmds_F77='true'
15363      # FIXME: Should let the user specify the lib program.
15364      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15365      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15366      enable_shared_with_static_runtimes_F77=yes
15367      ;;
15368
15369    darwin* | rhapsody*)
15370      case $host_os in
15371        rhapsody* | darwin1.[012])
15372         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15373         ;;
15374       *) # Darwin 1.3 on
15375         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15376           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15377         else
15378           case ${MACOSX_DEPLOYMENT_TARGET} in
15379             10.[012])
15380               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15381               ;;
15382             10.*)
15383               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15384               ;;
15385           esac
15386         fi
15387         ;;
15388      esac
15389      archive_cmds_need_lc_F77=no
15390      hardcode_direct_F77=no
15391      hardcode_automatic_F77=yes
15392      hardcode_shlibpath_var_F77=unsupported
15393      whole_archive_flag_spec_F77=''
15394      link_all_deplibs_F77=yes
15395    if test "$GCC" = yes ; then
15396    	output_verbose_link_cmd='echo'
15397        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}"
15398        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15399        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}"
15400        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}"
15401    else
15402      case $cc_basename in
15403        xlc*)
15404         output_verbose_link_cmd='echo'
15405         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15406         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15407          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15408         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}'
15409          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}'
15410          ;;
15411       *)
15412         ld_shlibs_F77=no
15413          ;;
15414      esac
15415    fi
15416      ;;
15417
15418    dgux*)
15419      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15420      hardcode_libdir_flag_spec_F77='-L$libdir'
15421      hardcode_shlibpath_var_F77=no
15422      ;;
15423
15424    freebsd1*)
15425      ld_shlibs_F77=no
15426      ;;
15427
15428    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15429    # support.  Future versions do this automatically, but an explicit c++rt0.o
15430    # does not break anything, and helps significantly (at the cost of a little
15431    # extra space).
15432    freebsd2.2*)
15433      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15434      hardcode_libdir_flag_spec_F77='-R$libdir'
15435      hardcode_direct_F77=yes
15436      hardcode_shlibpath_var_F77=no
15437      ;;
15438
15439    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15440    freebsd2*)
15441      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15442      hardcode_direct_F77=yes
15443      hardcode_minus_L_F77=yes
15444      hardcode_shlibpath_var_F77=no
15445      ;;
15446
15447    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15448    freebsd* | dragonfly*)
15449      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15450      hardcode_libdir_flag_spec_F77='-R$libdir'
15451      hardcode_direct_F77=yes
15452      hardcode_shlibpath_var_F77=no
15453      ;;
15454
15455    hpux9*)
15456      if test "$GCC" = yes; then
15457	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'
15458      else
15459	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'
15460      fi
15461      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15462      hardcode_libdir_separator_F77=:
15463      hardcode_direct_F77=yes
15464
15465      # hardcode_minus_L: Not really in the search PATH,
15466      # but as the default location of the library.
15467      hardcode_minus_L_F77=yes
15468      export_dynamic_flag_spec_F77='${wl}-E'
15469      ;;
15470
15471    hpux10*)
15472      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15473	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15474      else
15475	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15476      fi
15477      if test "$with_gnu_ld" = no; then
15478	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15479	hardcode_libdir_separator_F77=:
15480
15481	hardcode_direct_F77=yes
15482	export_dynamic_flag_spec_F77='${wl}-E'
15483
15484	# hardcode_minus_L: Not really in the search PATH,
15485	# but as the default location of the library.
15486	hardcode_minus_L_F77=yes
15487      fi
15488      ;;
15489
15490    hpux11*)
15491      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15492	case $host_cpu in
15493	hppa*64*)
15494	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495	  ;;
15496	ia64*)
15497	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15498	  ;;
15499	*)
15500	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15501	  ;;
15502	esac
15503      else
15504	case $host_cpu in
15505	hppa*64*)
15506	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507	  ;;
15508	ia64*)
15509	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15510	  ;;
15511	*)
15512	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15513	  ;;
15514	esac
15515      fi
15516      if test "$with_gnu_ld" = no; then
15517	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15518	hardcode_libdir_separator_F77=:
15519
15520	case $host_cpu in
15521	hppa*64*|ia64*)
15522	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15523	  hardcode_direct_F77=no
15524	  hardcode_shlibpath_var_F77=no
15525	  ;;
15526	*)
15527	  hardcode_direct_F77=yes
15528	  export_dynamic_flag_spec_F77='${wl}-E'
15529
15530	  # hardcode_minus_L: Not really in the search PATH,
15531	  # but as the default location of the library.
15532	  hardcode_minus_L_F77=yes
15533	  ;;
15534	esac
15535      fi
15536      ;;
15537
15538    irix5* | irix6* | nonstopux*)
15539      if test "$GCC" = yes; then
15540	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'
15541      else
15542	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'
15543	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15544      fi
15545      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15546      hardcode_libdir_separator_F77=:
15547      link_all_deplibs_F77=yes
15548      ;;
15549
15550    netbsd*)
15551      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15552	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15553      else
15554	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15555      fi
15556      hardcode_libdir_flag_spec_F77='-R$libdir'
15557      hardcode_direct_F77=yes
15558      hardcode_shlibpath_var_F77=no
15559      ;;
15560
15561    newsos6)
15562      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563      hardcode_direct_F77=yes
15564      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15565      hardcode_libdir_separator_F77=:
15566      hardcode_shlibpath_var_F77=no
15567      ;;
15568
15569    openbsd*)
15570      if test -f /usr/libexec/ld.so; then
15571	hardcode_direct_F77=yes
15572	hardcode_shlibpath_var_F77=no
15573	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15574	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15575	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15576	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15577	  export_dynamic_flag_spec_F77='${wl}-E'
15578	else
15579	  case $host_os in
15580	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15581	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582	     hardcode_libdir_flag_spec_F77='-R$libdir'
15583	     ;;
15584	   *)
15585	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15586	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15587	     ;;
15588	  esac
15589        fi
15590      else
15591	ld_shlibs_F77=no
15592      fi
15593      ;;
15594
15595    os2*)
15596      hardcode_libdir_flag_spec_F77='-L$libdir'
15597      hardcode_minus_L_F77=yes
15598      allow_undefined_flag_F77=unsupported
15599      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'
15600      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15601      ;;
15602
15603    osf3*)
15604      if test "$GCC" = yes; then
15605	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15606	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'
15607      else
15608	allow_undefined_flag_F77=' -expect_unresolved \*'
15609	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'
15610      fi
15611      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15612      hardcode_libdir_separator_F77=:
15613      ;;
15614
15615    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15616      if test "$GCC" = yes; then
15617	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15618	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'
15619	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15620      else
15621	allow_undefined_flag_F77=' -expect_unresolved \*'
15622	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'
15623	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~
15624	$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'
15625
15626	# Both c and cxx compiler support -rpath directly
15627	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15628      fi
15629      hardcode_libdir_separator_F77=:
15630      ;;
15631
15632    solaris*)
15633      no_undefined_flag_F77=' -z text'
15634      if test "$GCC" = yes; then
15635	wlarc='${wl}'
15636	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15638	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15639      else
15640	wlarc=''
15641	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15644      fi
15645      hardcode_libdir_flag_spec_F77='-R$libdir'
15646      hardcode_shlibpath_var_F77=no
15647      case $host_os in
15648      solaris2.[0-5] | solaris2.[0-5].*) ;;
15649      *)
15650	# The compiler driver will combine and reorder linker options,
15651	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15652	# but is careful enough not to reorder.
15653 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15654	if test "$GCC" = yes; then
15655	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15656	else
15657	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15658	fi
15659	;;
15660      esac
15661      link_all_deplibs_F77=yes
15662      ;;
15663
15664    sunos4*)
15665      if test "x$host_vendor" = xsequent; then
15666	# Use $CC to link under sequent, because it throws in some extra .o
15667	# files that make .init and .fini sections work.
15668	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15669      else
15670	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15671      fi
15672      hardcode_libdir_flag_spec_F77='-L$libdir'
15673      hardcode_direct_F77=yes
15674      hardcode_minus_L_F77=yes
15675      hardcode_shlibpath_var_F77=no
15676      ;;
15677
15678    sysv4)
15679      case $host_vendor in
15680	sni)
15681	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682	  hardcode_direct_F77=yes # is this really true???
15683	;;
15684	siemens)
15685	  ## LD is ld it makes a PLAMLIB
15686	  ## CC just makes a GrossModule.
15687	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15689	  hardcode_direct_F77=no
15690        ;;
15691	motorola)
15692	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15694	;;
15695      esac
15696      runpath_var='LD_RUN_PATH'
15697      hardcode_shlibpath_var_F77=no
15698      ;;
15699
15700    sysv4.3*)
15701      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702      hardcode_shlibpath_var_F77=no
15703      export_dynamic_flag_spec_F77='-Bexport'
15704      ;;
15705
15706    sysv4*MP*)
15707      if test -d /usr/nec; then
15708	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709	hardcode_shlibpath_var_F77=no
15710	runpath_var=LD_RUN_PATH
15711	hardcode_runpath_var=yes
15712	ld_shlibs_F77=yes
15713      fi
15714      ;;
15715
15716    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15717      no_undefined_flag_F77='${wl}-z,text'
15718      archive_cmds_need_lc_F77=no
15719      hardcode_shlibpath_var_F77=no
15720      runpath_var='LD_RUN_PATH'
15721
15722      if test "$GCC" = yes; then
15723	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725      else
15726	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728      fi
15729      ;;
15730
15731    sysv5* | sco3.2v5* | sco5v6*)
15732      # Note: We can NOT use -z defs as we might desire, because we do not
15733      # link with -lc, and that would cause any symbols used from libc to
15734      # always be unresolved, which means just about no library would
15735      # ever link correctly.  If we're not using GNU ld we use -z text
15736      # though, which does catch some bad symbols but isn't as heavy-handed
15737      # as -z defs.
15738      no_undefined_flag_F77='${wl}-z,text'
15739      allow_undefined_flag_F77='${wl}-z,nodefs'
15740      archive_cmds_need_lc_F77=no
15741      hardcode_shlibpath_var_F77=no
15742      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15743      hardcode_libdir_separator_F77=':'
15744      link_all_deplibs_F77=yes
15745      export_dynamic_flag_spec_F77='${wl}-Bexport'
15746      runpath_var='LD_RUN_PATH'
15747
15748      if test "$GCC" = yes; then
15749	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751      else
15752	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15754      fi
15755      ;;
15756
15757    uts4*)
15758      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759      hardcode_libdir_flag_spec_F77='-L$libdir'
15760      hardcode_shlibpath_var_F77=no
15761      ;;
15762
15763    *)
15764      ld_shlibs_F77=no
15765      ;;
15766    esac
15767  fi
15768
15769{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15770$as_echo "$ld_shlibs_F77" >&6; }
15771test "$ld_shlibs_F77" = no && can_build_shared=no
15772
15773#
15774# Do we need to explicitly link libc?
15775#
15776case "x$archive_cmds_need_lc_F77" in
15777x|xyes)
15778  # Assume -lc should be added
15779  archive_cmds_need_lc_F77=yes
15780
15781  if test "$enable_shared" = yes && test "$GCC" = yes; then
15782    case $archive_cmds_F77 in
15783    *'~'*)
15784      # FIXME: we may have to deal with multi-command sequences.
15785      ;;
15786    '$CC '*)
15787      # Test whether the compiler implicitly links with -lc since on some
15788      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15789      # to ld, don't add -lc before -lgcc.
15790      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15791$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15792      $rm conftest*
15793      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15794
15795      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796  (eval $ac_compile) 2>&5
15797  ac_status=$?
15798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799  (exit $ac_status); } 2>conftest.err; then
15800        soname=conftest
15801        lib=conftest
15802        libobjs=conftest.$ac_objext
15803        deplibs=
15804        wl=$lt_prog_compiler_wl_F77
15805	pic_flag=$lt_prog_compiler_pic_F77
15806        compiler_flags=-v
15807        linker_flags=-v
15808        verstring=
15809        output_objdir=.
15810        libname=conftest
15811        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15812        allow_undefined_flag_F77=
15813        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15814  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15815  ac_status=$?
15816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817  (exit $ac_status); }
15818        then
15819	  archive_cmds_need_lc_F77=no
15820        else
15821	  archive_cmds_need_lc_F77=yes
15822        fi
15823        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15824      else
15825        cat conftest.err 1>&5
15826      fi
15827      $rm conftest*
15828      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15829$as_echo "$archive_cmds_need_lc_F77" >&6; }
15830      ;;
15831    esac
15832  fi
15833  ;;
15834esac
15835
15836{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15837$as_echo_n "checking dynamic linker characteristics... " >&6; }
15838library_names_spec=
15839libname_spec='lib$name'
15840soname_spec=
15841shrext_cmds=".so"
15842postinstall_cmds=
15843postuninstall_cmds=
15844finish_cmds=
15845finish_eval=
15846shlibpath_var=
15847shlibpath_overrides_runpath=unknown
15848version_type=none
15849dynamic_linker="$host_os ld.so"
15850sys_lib_dlsearch_path_spec="/lib /usr/lib"
15851
15852need_lib_prefix=unknown
15853hardcode_into_libs=no
15854
15855# when you set need_version to no, make sure it does not cause -set_version
15856# flags to be left without arguments
15857need_version=unknown
15858
15859case $host_os in
15860aix3*)
15861  version_type=linux
15862  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15863  shlibpath_var=LIBPATH
15864
15865  # AIX 3 has no versioning support, so we append a major version to the name.
15866  soname_spec='${libname}${release}${shared_ext}$major'
15867  ;;
15868
15869aix[4-9]*)
15870  version_type=linux
15871  need_lib_prefix=no
15872  need_version=no
15873  hardcode_into_libs=yes
15874  if test "$host_cpu" = ia64; then
15875    # AIX 5 supports IA64
15876    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15877    shlibpath_var=LD_LIBRARY_PATH
15878  else
15879    # With GCC up to 2.95.x, collect2 would create an import file
15880    # for dependence libraries.  The import file would start with
15881    # the line `#! .'.  This would cause the generated library to
15882    # depend on `.', always an invalid library.  This was fixed in
15883    # development snapshots of GCC prior to 3.0.
15884    case $host_os in
15885      aix4 | aix4.[01] | aix4.[01].*)
15886      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15887	   echo ' yes '
15888	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15889	:
15890      else
15891	can_build_shared=no
15892      fi
15893      ;;
15894    esac
15895    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15896    # soname into executable. Probably we can add versioning support to
15897    # collect2, so additional links can be useful in future.
15898    if test "$aix_use_runtimelinking" = yes; then
15899      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15900      # instead of lib<name>.a to let people know that these are not
15901      # typical AIX shared libraries.
15902      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903    else
15904      # We preserve .a as extension for shared libraries through AIX4.2
15905      # and later when we are not doing run time linking.
15906      library_names_spec='${libname}${release}.a $libname.a'
15907      soname_spec='${libname}${release}${shared_ext}$major'
15908    fi
15909    shlibpath_var=LIBPATH
15910  fi
15911  ;;
15912
15913amigaos*)
15914  library_names_spec='$libname.ixlibrary $libname.a'
15915  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15916  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'
15917  ;;
15918
15919beos*)
15920  library_names_spec='${libname}${shared_ext}'
15921  dynamic_linker="$host_os ld.so"
15922  shlibpath_var=LIBRARY_PATH
15923  ;;
15924
15925bsdi[45]*)
15926  version_type=linux
15927  need_version=no
15928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929  soname_spec='${libname}${release}${shared_ext}$major'
15930  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15931  shlibpath_var=LD_LIBRARY_PATH
15932  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15933  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15934  # the default ld.so.conf also contains /usr/contrib/lib and
15935  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15936  # libtool to hard-code these into programs
15937  ;;
15938
15939cygwin* | mingw* | pw32*)
15940  version_type=windows
15941  shrext_cmds=".dll"
15942  need_version=no
15943  need_lib_prefix=no
15944
15945  case $GCC,$host_os in
15946  yes,cygwin* | yes,mingw* | yes,pw32*)
15947    library_names_spec='$libname.dll.a'
15948    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15949    postinstall_cmds='base_file=`basename \${file}`~
15950      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15951      dldir=$destdir/`dirname \$dlpath`~
15952      test -d \$dldir || mkdir -p \$dldir~
15953      $install_prog $dir/$dlname \$dldir/$dlname~
15954      chmod a+x \$dldir/$dlname'
15955    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15956      dlpath=$dir/\$dldll~
15957       $rm \$dlpath'
15958    shlibpath_overrides_runpath=yes
15959
15960    case $host_os in
15961    cygwin*)
15962      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15963      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15964      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15965      ;;
15966    mingw*)
15967      # MinGW DLLs use traditional 'lib' prefix
15968      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15970      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15971        # It is most probably a Windows format PATH printed by
15972        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15973        # path with ; separators, and with drive letters. We can handle the
15974        # drive letters (cygwin fileutils understands them), so leave them,
15975        # especially as we might pass files found there to a mingw objdump,
15976        # which wouldn't understand a cygwinified path. Ahh.
15977        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15978      else
15979        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15980      fi
15981      ;;
15982    pw32*)
15983      # pw32 DLLs use 'pw' prefix rather than 'lib'
15984      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15985      ;;
15986    esac
15987    ;;
15988
15989  *)
15990    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15991    ;;
15992  esac
15993  dynamic_linker='Win32 ld.exe'
15994  # FIXME: first we should search . and the directory the executable is in
15995  shlibpath_var=PATH
15996  ;;
15997
15998darwin* | rhapsody*)
15999  dynamic_linker="$host_os dyld"
16000  version_type=darwin
16001  need_lib_prefix=no
16002  need_version=no
16003  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16004  soname_spec='${libname}${release}${major}$shared_ext'
16005  shlibpath_overrides_runpath=yes
16006  shlibpath_var=DYLD_LIBRARY_PATH
16007  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16008
16009  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16010  ;;
16011
16012dgux*)
16013  version_type=linux
16014  need_lib_prefix=no
16015  need_version=no
16016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16017  soname_spec='${libname}${release}${shared_ext}$major'
16018  shlibpath_var=LD_LIBRARY_PATH
16019  ;;
16020
16021freebsd1*)
16022  dynamic_linker=no
16023  ;;
16024
16025freebsd* | dragonfly*)
16026  # DragonFly does not have aout.  When/if they implement a new
16027  # versioning mechanism, adjust this.
16028  if test -x /usr/bin/objformat; then
16029    objformat=`/usr/bin/objformat`
16030  else
16031    case $host_os in
16032    freebsd[123]*) objformat=aout ;;
16033    *) objformat=elf ;;
16034    esac
16035  fi
16036  version_type=freebsd-$objformat
16037  case $version_type in
16038    freebsd-elf*)
16039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16040      need_version=no
16041      need_lib_prefix=no
16042      ;;
16043    freebsd-*)
16044      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16045      need_version=yes
16046      ;;
16047  esac
16048  shlibpath_var=LD_LIBRARY_PATH
16049  case $host_os in
16050  freebsd2*)
16051    shlibpath_overrides_runpath=yes
16052    ;;
16053  freebsd3.[01]* | freebsdelf3.[01]*)
16054    shlibpath_overrides_runpath=yes
16055    hardcode_into_libs=yes
16056    ;;
16057  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16058  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16059    shlibpath_overrides_runpath=no
16060    hardcode_into_libs=yes
16061    ;;
16062  *) # from 4.6 on, and DragonFly
16063    shlibpath_overrides_runpath=yes
16064    hardcode_into_libs=yes
16065    ;;
16066  esac
16067  ;;
16068
16069gnu*)
16070  version_type=linux
16071  need_lib_prefix=no
16072  need_version=no
16073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16074  soname_spec='${libname}${release}${shared_ext}$major'
16075  shlibpath_var=LD_LIBRARY_PATH
16076  hardcode_into_libs=yes
16077  ;;
16078
16079hpux9* | hpux10* | hpux11*)
16080  # Give a soname corresponding to the major version so that dld.sl refuses to
16081  # link against other versions.
16082  version_type=sunos
16083  need_lib_prefix=no
16084  need_version=no
16085  case $host_cpu in
16086  ia64*)
16087    shrext_cmds='.so'
16088    hardcode_into_libs=yes
16089    dynamic_linker="$host_os dld.so"
16090    shlibpath_var=LD_LIBRARY_PATH
16091    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093    soname_spec='${libname}${release}${shared_ext}$major'
16094    if test "X$HPUX_IA64_MODE" = X32; then
16095      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16096    else
16097      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16098    fi
16099    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100    ;;
16101   hppa*64*)
16102     shrext_cmds='.sl'
16103     hardcode_into_libs=yes
16104     dynamic_linker="$host_os dld.sl"
16105     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108     soname_spec='${libname}${release}${shared_ext}$major'
16109     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16111     ;;
16112   *)
16113    shrext_cmds='.sl'
16114    dynamic_linker="$host_os dld.sl"
16115    shlibpath_var=SHLIB_PATH
16116    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118    soname_spec='${libname}${release}${shared_ext}$major'
16119    ;;
16120  esac
16121  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16122  postinstall_cmds='chmod 555 $lib'
16123  ;;
16124
16125interix[3-9]*)
16126  version_type=linux
16127  need_lib_prefix=no
16128  need_version=no
16129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16130  soname_spec='${libname}${release}${shared_ext}$major'
16131  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16132  shlibpath_var=LD_LIBRARY_PATH
16133  shlibpath_overrides_runpath=no
16134  hardcode_into_libs=yes
16135  ;;
16136
16137irix5* | irix6* | nonstopux*)
16138  case $host_os in
16139    nonstopux*) version_type=nonstopux ;;
16140    *)
16141	if test "$lt_cv_prog_gnu_ld" = yes; then
16142		version_type=linux
16143	else
16144		version_type=irix
16145	fi ;;
16146  esac
16147  need_lib_prefix=no
16148  need_version=no
16149  soname_spec='${libname}${release}${shared_ext}$major'
16150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16151  case $host_os in
16152  irix5* | nonstopux*)
16153    libsuff= shlibsuff=
16154    ;;
16155  *)
16156    case $LD in # libtool.m4 will add one of these switches to LD
16157    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16158      libsuff= shlibsuff= libmagic=32-bit;;
16159    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16160      libsuff=32 shlibsuff=N32 libmagic=N32;;
16161    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16162      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16163    *) libsuff= shlibsuff= libmagic=never-match;;
16164    esac
16165    ;;
16166  esac
16167  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16168  shlibpath_overrides_runpath=no
16169  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16170  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16171  hardcode_into_libs=yes
16172  ;;
16173
16174# No shared lib support for Linux oldld, aout, or coff.
16175linux*oldld* | linux*aout* | linux*coff*)
16176  dynamic_linker=no
16177  ;;
16178
16179# This must be Linux ELF.
16180linux* | k*bsd*-gnu)
16181  version_type=linux
16182  need_lib_prefix=no
16183  need_version=no
16184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185  soname_spec='${libname}${release}${shared_ext}$major'
16186  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16187  shlibpath_var=LD_LIBRARY_PATH
16188  shlibpath_overrides_runpath=no
16189  # This implies no fast_install, which is unacceptable.
16190  # Some rework will be needed to allow for fast_install
16191  # before this can be enabled.
16192  hardcode_into_libs=yes
16193
16194  # Append ld.so.conf contents to the search path
16195  if test -f /etc/ld.so.conf; then
16196    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' ' '`
16197    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16198  fi
16199
16200  # We used to test for /lib/ld.so.1 and disable shared libraries on
16201  # powerpc, because MkLinux only supported shared libraries with the
16202  # GNU dynamic linker.  Since this was broken with cross compilers,
16203  # most powerpc-linux boxes support dynamic linking these days and
16204  # people can always --disable-shared, the test was removed, and we
16205  # assume the GNU/Linux dynamic linker is in use.
16206  dynamic_linker='GNU/Linux ld.so'
16207  ;;
16208
16209netbsd*)
16210  version_type=sunos
16211  need_lib_prefix=no
16212  need_version=no
16213  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16214    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16215    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16216    dynamic_linker='NetBSD (a.out) ld.so'
16217  else
16218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16219    soname_spec='${libname}${release}${shared_ext}$major'
16220    dynamic_linker='NetBSD ld.elf_so'
16221  fi
16222  shlibpath_var=LD_LIBRARY_PATH
16223  shlibpath_overrides_runpath=yes
16224  hardcode_into_libs=yes
16225  ;;
16226
16227newsos6)
16228  version_type=linux
16229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230  shlibpath_var=LD_LIBRARY_PATH
16231  shlibpath_overrides_runpath=yes
16232  ;;
16233
16234nto-qnx*)
16235  version_type=linux
16236  need_lib_prefix=no
16237  need_version=no
16238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239  soname_spec='${libname}${release}${shared_ext}$major'
16240  shlibpath_var=LD_LIBRARY_PATH
16241  shlibpath_overrides_runpath=yes
16242  ;;
16243
16244openbsd*)
16245  version_type=sunos
16246  sys_lib_dlsearch_path_spec="/usr/lib"
16247  need_lib_prefix=no
16248  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16249  case $host_os in
16250    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16251    *)                         need_version=no  ;;
16252  esac
16253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16254  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16255  shlibpath_var=LD_LIBRARY_PATH
16256  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16257    case $host_os in
16258      openbsd2.[89] | openbsd2.[89].*)
16259	shlibpath_overrides_runpath=no
16260	;;
16261      *)
16262	shlibpath_overrides_runpath=yes
16263	;;
16264      esac
16265  else
16266    shlibpath_overrides_runpath=yes
16267  fi
16268  ;;
16269
16270os2*)
16271  libname_spec='$name'
16272  shrext_cmds=".dll"
16273  need_lib_prefix=no
16274  library_names_spec='$libname${shared_ext} $libname.a'
16275  dynamic_linker='OS/2 ld.exe'
16276  shlibpath_var=LIBPATH
16277  ;;
16278
16279osf3* | osf4* | osf5*)
16280  version_type=osf
16281  need_lib_prefix=no
16282  need_version=no
16283  soname_spec='${libname}${release}${shared_ext}$major'
16284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285  shlibpath_var=LD_LIBRARY_PATH
16286  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16287  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16288  ;;
16289
16290rdos*)
16291  dynamic_linker=no
16292  ;;
16293
16294solaris*)
16295  version_type=linux
16296  need_lib_prefix=no
16297  need_version=no
16298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299  soname_spec='${libname}${release}${shared_ext}$major'
16300  shlibpath_var=LD_LIBRARY_PATH
16301  shlibpath_overrides_runpath=yes
16302  hardcode_into_libs=yes
16303  # ldd complains unless libraries are executable
16304  postinstall_cmds='chmod +x $lib'
16305  ;;
16306
16307sunos4*)
16308  version_type=sunos
16309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16310  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16311  shlibpath_var=LD_LIBRARY_PATH
16312  shlibpath_overrides_runpath=yes
16313  if test "$with_gnu_ld" = yes; then
16314    need_lib_prefix=no
16315  fi
16316  need_version=yes
16317  ;;
16318
16319sysv4 | sysv4.3*)
16320  version_type=linux
16321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322  soname_spec='${libname}${release}${shared_ext}$major'
16323  shlibpath_var=LD_LIBRARY_PATH
16324  case $host_vendor in
16325    sni)
16326      shlibpath_overrides_runpath=no
16327      need_lib_prefix=no
16328      export_dynamic_flag_spec='${wl}-Blargedynsym'
16329      runpath_var=LD_RUN_PATH
16330      ;;
16331    siemens)
16332      need_lib_prefix=no
16333      ;;
16334    motorola)
16335      need_lib_prefix=no
16336      need_version=no
16337      shlibpath_overrides_runpath=no
16338      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16339      ;;
16340  esac
16341  ;;
16342
16343sysv4*MP*)
16344  if test -d /usr/nec ;then
16345    version_type=linux
16346    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16347    soname_spec='$libname${shared_ext}.$major'
16348    shlibpath_var=LD_LIBRARY_PATH
16349  fi
16350  ;;
16351
16352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16353  version_type=freebsd-elf
16354  need_lib_prefix=no
16355  need_version=no
16356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16357  soname_spec='${libname}${release}${shared_ext}$major'
16358  shlibpath_var=LD_LIBRARY_PATH
16359  hardcode_into_libs=yes
16360  if test "$with_gnu_ld" = yes; then
16361    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16362    shlibpath_overrides_runpath=no
16363  else
16364    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16365    shlibpath_overrides_runpath=yes
16366    case $host_os in
16367      sco3.2v5*)
16368        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16369	;;
16370    esac
16371  fi
16372  sys_lib_dlsearch_path_spec='/usr/lib'
16373  ;;
16374
16375uts4*)
16376  version_type=linux
16377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378  soname_spec='${libname}${release}${shared_ext}$major'
16379  shlibpath_var=LD_LIBRARY_PATH
16380  ;;
16381
16382*)
16383  dynamic_linker=no
16384  ;;
16385esac
16386{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16387$as_echo "$dynamic_linker" >&6; }
16388test "$dynamic_linker" = no && can_build_shared=no
16389
16390if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16391  $as_echo_n "(cached) " >&6
16392else
16393  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16394fi
16395
16396sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16397if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16398  $as_echo_n "(cached) " >&6
16399else
16400  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16401fi
16402
16403sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16404
16405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16406if test "$GCC" = yes; then
16407  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16408fi
16409
16410{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16411$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16412hardcode_action_F77=
16413if test -n "$hardcode_libdir_flag_spec_F77" || \
16414   test -n "$runpath_var_F77" || \
16415   test "X$hardcode_automatic_F77" = "Xyes" ; then
16416
16417  # We can hardcode non-existant directories.
16418  if test "$hardcode_direct_F77" != no &&
16419     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16420     # have to relink, otherwise we might link with an installed library
16421     # when we should be linking with a yet-to-be-installed one
16422     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16423     test "$hardcode_minus_L_F77" != no; then
16424    # Linking always hardcodes the temporary library directory.
16425    hardcode_action_F77=relink
16426  else
16427    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16428    hardcode_action_F77=immediate
16429  fi
16430else
16431  # We cannot hardcode anything, or else we can only hardcode existing
16432  # directories.
16433  hardcode_action_F77=unsupported
16434fi
16435{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16436$as_echo "$hardcode_action_F77" >&6; }
16437
16438if test "$hardcode_action_F77" = relink; then
16439  # Fast installation is not supported
16440  enable_fast_install=no
16441elif test "$shlibpath_overrides_runpath" = yes ||
16442     test "$enable_shared" = no; then
16443  # Fast installation is not necessary
16444  enable_fast_install=needless
16445fi
16446
16447
16448# The else clause should only fire when bootstrapping the
16449# libtool distribution, otherwise you forgot to ship ltmain.sh
16450# with your package, and you will get complaints that there are
16451# no rules to generate ltmain.sh.
16452if test -f "$ltmain"; then
16453  # See if we are running on zsh, and set the options which allow our commands through
16454  # without removal of \ escapes.
16455  if test -n "${ZSH_VERSION+set}" ; then
16456    setopt NO_GLOB_SUBST
16457  fi
16458  # Now quote all the things that may contain metacharacters while being
16459  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16460  # variables and quote the copies for generation of the libtool script.
16461  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16462    SED SHELL STRIP \
16463    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16464    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16465    deplibs_check_method reload_flag reload_cmds need_locks \
16466    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16467    lt_cv_sys_global_symbol_to_c_name_address \
16468    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16469    old_postinstall_cmds old_postuninstall_cmds \
16470    compiler_F77 \
16471    CC_F77 \
16472    LD_F77 \
16473    lt_prog_compiler_wl_F77 \
16474    lt_prog_compiler_pic_F77 \
16475    lt_prog_compiler_static_F77 \
16476    lt_prog_compiler_no_builtin_flag_F77 \
16477    export_dynamic_flag_spec_F77 \
16478    thread_safe_flag_spec_F77 \
16479    whole_archive_flag_spec_F77 \
16480    enable_shared_with_static_runtimes_F77 \
16481    old_archive_cmds_F77 \
16482    old_archive_from_new_cmds_F77 \
16483    predep_objects_F77 \
16484    postdep_objects_F77 \
16485    predeps_F77 \
16486    postdeps_F77 \
16487    compiler_lib_search_path_F77 \
16488    compiler_lib_search_dirs_F77 \
16489    archive_cmds_F77 \
16490    archive_expsym_cmds_F77 \
16491    postinstall_cmds_F77 \
16492    postuninstall_cmds_F77 \
16493    old_archive_from_expsyms_cmds_F77 \
16494    allow_undefined_flag_F77 \
16495    no_undefined_flag_F77 \
16496    export_symbols_cmds_F77 \
16497    hardcode_libdir_flag_spec_F77 \
16498    hardcode_libdir_flag_spec_ld_F77 \
16499    hardcode_libdir_separator_F77 \
16500    hardcode_automatic_F77 \
16501    module_cmds_F77 \
16502    module_expsym_cmds_F77 \
16503    lt_cv_prog_compiler_c_o_F77 \
16504    fix_srcfile_path_F77 \
16505    exclude_expsyms_F77 \
16506    include_expsyms_F77; do
16507
16508    case $var in
16509    old_archive_cmds_F77 | \
16510    old_archive_from_new_cmds_F77 | \
16511    archive_cmds_F77 | \
16512    archive_expsym_cmds_F77 | \
16513    module_cmds_F77 | \
16514    module_expsym_cmds_F77 | \
16515    old_archive_from_expsyms_cmds_F77 | \
16516    export_symbols_cmds_F77 | \
16517    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16518    postinstall_cmds | postuninstall_cmds | \
16519    old_postinstall_cmds | old_postuninstall_cmds | \
16520    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16521      # Double-quote double-evaled strings.
16522      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16523      ;;
16524    *)
16525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16526      ;;
16527    esac
16528  done
16529
16530  case $lt_echo in
16531  *'\$0 --fallback-echo"')
16532    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16533    ;;
16534  esac
16535
16536cfgfile="$ofile"
16537
16538  cat <<__EOF__ >> "$cfgfile"
16539# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16540
16541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16542
16543# Shell to use when invoking shell scripts.
16544SHELL=$lt_SHELL
16545
16546# Whether or not to build shared libraries.
16547build_libtool_libs=$enable_shared
16548
16549# Whether or not to build static libraries.
16550build_old_libs=$enable_static
16551
16552# Whether or not to add -lc for building shared libraries.
16553build_libtool_need_lc=$archive_cmds_need_lc_F77
16554
16555# Whether or not to disallow shared libs when runtime libs are static
16556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16557
16558# Whether or not to optimize for fast installation.
16559fast_install=$enable_fast_install
16560
16561# The host system.
16562host_alias=$host_alias
16563host=$host
16564host_os=$host_os
16565
16566# The build system.
16567build_alias=$build_alias
16568build=$build
16569build_os=$build_os
16570
16571# An echo program that does not interpret backslashes.
16572echo=$lt_echo
16573
16574# The archiver.
16575AR=$lt_AR
16576AR_FLAGS=$lt_AR_FLAGS
16577
16578# A C compiler.
16579LTCC=$lt_LTCC
16580
16581# LTCC compiler flags.
16582LTCFLAGS=$lt_LTCFLAGS
16583
16584# A language-specific compiler.
16585CC=$lt_compiler_F77
16586
16587# Is the compiler the GNU C compiler?
16588with_gcc=$GCC_F77
16589
16590# An ERE matcher.
16591EGREP=$lt_EGREP
16592
16593# The linker used to build libraries.
16594LD=$lt_LD_F77
16595
16596# Whether we need hard or soft links.
16597LN_S=$lt_LN_S
16598
16599# A BSD-compatible nm program.
16600NM=$lt_NM
16601
16602# A symbol stripping program
16603STRIP=$lt_STRIP
16604
16605# Used to examine libraries when file_magic_cmd begins "file"
16606MAGIC_CMD=$MAGIC_CMD
16607
16608# Used on cygwin: DLL creation program.
16609DLLTOOL="$DLLTOOL"
16610
16611# Used on cygwin: object dumper.
16612OBJDUMP="$OBJDUMP"
16613
16614# Used on cygwin: assembler.
16615AS="$AS"
16616
16617# The name of the directory that contains temporary libtool files.
16618objdir=$objdir
16619
16620# How to create reloadable object files.
16621reload_flag=$lt_reload_flag
16622reload_cmds=$lt_reload_cmds
16623
16624# How to pass a linker flag through the compiler.
16625wl=$lt_lt_prog_compiler_wl_F77
16626
16627# Object file suffix (normally "o").
16628objext="$ac_objext"
16629
16630# Old archive suffix (normally "a").
16631libext="$libext"
16632
16633# Shared library suffix (normally ".so").
16634shrext_cmds='$shrext_cmds'
16635
16636# Executable file suffix (normally "").
16637exeext="$exeext"
16638
16639# Additional compiler flags for building library objects.
16640pic_flag=$lt_lt_prog_compiler_pic_F77
16641pic_mode=$pic_mode
16642
16643# What is the maximum length of a command?
16644max_cmd_len=$lt_cv_sys_max_cmd_len
16645
16646# Does compiler simultaneously support -c and -o options?
16647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16648
16649# Must we lock files when doing compilation?
16650need_locks=$lt_need_locks
16651
16652# Do we need the lib prefix for modules?
16653need_lib_prefix=$need_lib_prefix
16654
16655# Do we need a version for libraries?
16656need_version=$need_version
16657
16658# Whether dlopen is supported.
16659dlopen_support=$enable_dlopen
16660
16661# Whether dlopen of programs is supported.
16662dlopen_self=$enable_dlopen_self
16663
16664# Whether dlopen of statically linked programs is supported.
16665dlopen_self_static=$enable_dlopen_self_static
16666
16667# Compiler flag to prevent dynamic linking.
16668link_static_flag=$lt_lt_prog_compiler_static_F77
16669
16670# Compiler flag to turn off builtin functions.
16671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16672
16673# Compiler flag to allow reflexive dlopens.
16674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16675
16676# Compiler flag to generate shared objects directly from archives.
16677whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16678
16679# Compiler flag to generate thread-safe objects.
16680thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16681
16682# Library versioning type.
16683version_type=$version_type
16684
16685# Format of library name prefix.
16686libname_spec=$lt_libname_spec
16687
16688# List of archive names.  First name is the real one, the rest are links.
16689# The last name is the one that the linker finds with -lNAME.
16690library_names_spec=$lt_library_names_spec
16691
16692# The coded name of the library, if different from the real name.
16693soname_spec=$lt_soname_spec
16694
16695# Commands used to build and install an old-style archive.
16696RANLIB=$lt_RANLIB
16697old_archive_cmds=$lt_old_archive_cmds_F77
16698old_postinstall_cmds=$lt_old_postinstall_cmds
16699old_postuninstall_cmds=$lt_old_postuninstall_cmds
16700
16701# Create an old-style archive from a shared archive.
16702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16703
16704# Create a temporary old-style archive to link instead of a shared archive.
16705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16706
16707# Commands used to build and install a shared archive.
16708archive_cmds=$lt_archive_cmds_F77
16709archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16710postinstall_cmds=$lt_postinstall_cmds
16711postuninstall_cmds=$lt_postuninstall_cmds
16712
16713# Commands used to build a loadable module (assumed same as above if empty)
16714module_cmds=$lt_module_cmds_F77
16715module_expsym_cmds=$lt_module_expsym_cmds_F77
16716
16717# Commands to strip libraries.
16718old_striplib=$lt_old_striplib
16719striplib=$lt_striplib
16720
16721# Dependencies to place before the objects being linked to create a
16722# shared library.
16723predep_objects=$lt_predep_objects_F77
16724
16725# Dependencies to place after the objects being linked to create a
16726# shared library.
16727postdep_objects=$lt_postdep_objects_F77
16728
16729# Dependencies to place before the objects being linked to create a
16730# shared library.
16731predeps=$lt_predeps_F77
16732
16733# Dependencies to place after the objects being linked to create a
16734# shared library.
16735postdeps=$lt_postdeps_F77
16736
16737# The directories searched by this compiler when creating a shared
16738# library
16739compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16740
16741# The library search path used internally by the compiler when linking
16742# a shared library.
16743compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16744
16745# Method to check whether dependent libraries are shared objects.
16746deplibs_check_method=$lt_deplibs_check_method
16747
16748# Command to use when deplibs_check_method == file_magic.
16749file_magic_cmd=$lt_file_magic_cmd
16750
16751# Flag that allows shared libraries with undefined symbols to be built.
16752allow_undefined_flag=$lt_allow_undefined_flag_F77
16753
16754# Flag that forces no undefined symbols.
16755no_undefined_flag=$lt_no_undefined_flag_F77
16756
16757# Commands used to finish a libtool library installation in a directory.
16758finish_cmds=$lt_finish_cmds
16759
16760# Same as above, but a single script fragment to be evaled but not shown.
16761finish_eval=$lt_finish_eval
16762
16763# Take the output of nm and produce a listing of raw symbols and C names.
16764global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16765
16766# Transform the output of nm in a proper C declaration
16767global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16768
16769# Transform the output of nm in a C name address pair
16770global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16771
16772# This is the shared library runtime path variable.
16773runpath_var=$runpath_var
16774
16775# This is the shared library path variable.
16776shlibpath_var=$shlibpath_var
16777
16778# Is shlibpath searched before the hard-coded library search path?
16779shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16780
16781# How to hardcode a shared library path into an executable.
16782hardcode_action=$hardcode_action_F77
16783
16784# Whether we should hardcode library paths into libraries.
16785hardcode_into_libs=$hardcode_into_libs
16786
16787# Flag to hardcode \$libdir into a binary during linking.
16788# This must work even if \$libdir does not exist.
16789hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16790
16791# If ld is used when linking, flag to hardcode \$libdir into
16792# a binary during linking. This must work even if \$libdir does
16793# not exist.
16794hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16795
16796# Whether we need a single -rpath flag with a separated argument.
16797hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16798
16799# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16800# resulting binary.
16801hardcode_direct=$hardcode_direct_F77
16802
16803# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16804# resulting binary.
16805hardcode_minus_L=$hardcode_minus_L_F77
16806
16807# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16808# the resulting binary.
16809hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16810
16811# Set to yes if building a shared library automatically hardcodes DIR into the library
16812# and all subsequent libraries and executables linked against it.
16813hardcode_automatic=$hardcode_automatic_F77
16814
16815# Variables whose values should be saved in libtool wrapper scripts and
16816# restored at relink time.
16817variables_saved_for_relink="$variables_saved_for_relink"
16818
16819# Whether libtool must link a program against all its dependency libraries.
16820link_all_deplibs=$link_all_deplibs_F77
16821
16822# Compile-time system search path for libraries
16823sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16824
16825# Run-time system search path for libraries
16826sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16827
16828# Fix the shell variable \$srcfile for the compiler.
16829fix_srcfile_path=$lt_fix_srcfile_path
16830
16831# Set to yes if exported symbols are required.
16832always_export_symbols=$always_export_symbols_F77
16833
16834# The commands to list exported symbols.
16835export_symbols_cmds=$lt_export_symbols_cmds_F77
16836
16837# The commands to extract the exported symbol list from a shared archive.
16838extract_expsyms_cmds=$lt_extract_expsyms_cmds
16839
16840# Symbols that should not be listed in the preloaded symbols.
16841exclude_expsyms=$lt_exclude_expsyms_F77
16842
16843# Symbols that must always be exported.
16844include_expsyms=$lt_include_expsyms_F77
16845
16846# ### END LIBTOOL TAG CONFIG: $tagname
16847
16848__EOF__
16849
16850
16851else
16852  # If there is no Makefile yet, we rely on a make rule to execute
16853  # `config.status --recheck' to rerun these tests and create the
16854  # libtool script then.
16855  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16856  if test -f "$ltmain_in"; then
16857    test -f Makefile && make "$ltmain"
16858  fi
16859fi
16860
16861
16862ac_ext=c
16863ac_cpp='$CPP $CPPFLAGS'
16864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16866ac_compiler_gnu=$ac_cv_c_compiler_gnu
16867
16868CC="$lt_save_CC"
16869
16870	else
16871	  tagname=""
16872	fi
16873	;;
16874
16875      GCJ)
16876	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16877
16878
16879# Source file extension for Java test sources.
16880ac_ext=java
16881
16882# Object file extension for compiled Java test sources.
16883objext=o
16884objext_GCJ=$objext
16885
16886# Code to be used in simple compile tests
16887lt_simple_compile_test_code="class foo {}"
16888
16889# Code to be used in simple link tests
16890lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16891
16892# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16893
16894# If no C compiler was specified, use CC.
16895LTCC=${LTCC-"$CC"}
16896
16897# If no C compiler flags were specified, use CFLAGS.
16898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16899
16900# Allow CC to be a program name with arguments.
16901compiler=$CC
16902
16903
16904# save warnings/boilerplate of simple test code
16905ac_outfile=conftest.$ac_objext
16906echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16908_lt_compiler_boilerplate=`cat conftest.err`
16909$rm conftest*
16910
16911ac_outfile=conftest.$ac_objext
16912echo "$lt_simple_link_test_code" >conftest.$ac_ext
16913eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16914_lt_linker_boilerplate=`cat conftest.err`
16915$rm -r conftest*
16916
16917
16918# Allow CC to be a program name with arguments.
16919lt_save_CC="$CC"
16920CC=${GCJ-"gcj"}
16921compiler=$CC
16922compiler_GCJ=$CC
16923for cc_temp in $compiler""; do
16924  case $cc_temp in
16925    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16926    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16927    \-*) ;;
16928    *) break;;
16929  esac
16930done
16931cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16932
16933
16934# GCJ did not exist at the time GCC didn't implicitly link libc in.
16935archive_cmds_need_lc_GCJ=no
16936
16937old_archive_cmds_GCJ=$old_archive_cmds
16938
16939
16940lt_prog_compiler_no_builtin_flag_GCJ=
16941
16942if test "$GCC" = yes; then
16943  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16944
16945
16946{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16947$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16948if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16949  $as_echo_n "(cached) " >&6
16950else
16951  lt_cv_prog_compiler_rtti_exceptions=no
16952  ac_outfile=conftest.$ac_objext
16953   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16954   lt_compiler_flag="-fno-rtti -fno-exceptions"
16955   # Insert the option either (1) after the last *FLAGS variable, or
16956   # (2) before a word containing "conftest.", or (3) at the end.
16957   # Note that $ac_compile itself does not contain backslashes and begins
16958   # with a dollar sign (not a hyphen), so the echo should work correctly.
16959   # The option is referenced via a variable to avoid confusing sed.
16960   lt_compile=`echo "$ac_compile" | $SED \
16961   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963   -e 's:$: $lt_compiler_flag:'`
16964   (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16965   (eval "$lt_compile" 2>conftest.err)
16966   ac_status=$?
16967   cat conftest.err >&5
16968   echo "$as_me:16968: \$? = $ac_status" >&5
16969   if (exit $ac_status) && test -s "$ac_outfile"; then
16970     # The compiler can only warn and ignore the option if not recognized
16971     # So say no if there are warnings other than the usual output.
16972     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16973     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16974     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16975       lt_cv_prog_compiler_rtti_exceptions=yes
16976     fi
16977   fi
16978   $rm conftest*
16979
16980fi
16981{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16982$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16983
16984if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16985    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16986else
16987    :
16988fi
16989
16990fi
16991
16992lt_prog_compiler_wl_GCJ=
16993lt_prog_compiler_pic_GCJ=
16994lt_prog_compiler_static_GCJ=
16995
16996{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16997$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16998
16999  if test "$GCC" = yes; then
17000    lt_prog_compiler_wl_GCJ='-Wl,'
17001    lt_prog_compiler_static_GCJ='-static'
17002
17003    case $host_os in
17004      aix*)
17005      # All AIX code is PIC.
17006      if test "$host_cpu" = ia64; then
17007	# AIX 5 now supports IA64 processor
17008	lt_prog_compiler_static_GCJ='-Bstatic'
17009      fi
17010      ;;
17011
17012    amigaos*)
17013      # FIXME: we need at least 68020 code to build shared libraries, but
17014      # adding the `-m68020' flag to GCC prevents building anything better,
17015      # like `-m68040'.
17016      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17017      ;;
17018
17019    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17020      # PIC is the default for these OSes.
17021      ;;
17022
17023    mingw* | cygwin* | pw32* | os2*)
17024      # This hack is so that the source file can tell whether it is being
17025      # built for inclusion in a dll (and should export symbols for example).
17026      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17027      # (--disable-auto-import) libraries
17028
17029      ;;
17030
17031    darwin* | rhapsody*)
17032      # PIC is the default on this platform
17033      # Common symbols not allowed in MH_DYLIB files
17034      lt_prog_compiler_pic_GCJ='-fno-common'
17035      ;;
17036
17037    interix[3-9]*)
17038      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17039      # Instead, we relocate shared libraries at runtime.
17040      ;;
17041
17042    msdosdjgpp*)
17043      # Just because we use GCC doesn't mean we suddenly get shared libraries
17044      # on systems that don't support them.
17045      lt_prog_compiler_can_build_shared_GCJ=no
17046      enable_shared=no
17047      ;;
17048
17049    sysv4*MP*)
17050      if test -d /usr/nec; then
17051	lt_prog_compiler_pic_GCJ=-Kconform_pic
17052      fi
17053      ;;
17054
17055    hpux*)
17056      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17057      # not for PA HP-UX.
17058      case $host_cpu in
17059      hppa*64*|ia64*)
17060	# +Z the default
17061	;;
17062      *)
17063	lt_prog_compiler_pic_GCJ='-fPIC'
17064	;;
17065      esac
17066      ;;
17067
17068    *)
17069      lt_prog_compiler_pic_GCJ='-fPIC'
17070      ;;
17071    esac
17072  else
17073    # PORTME Check for flag to pass linker flags through the system compiler.
17074    case $host_os in
17075    aix*)
17076      lt_prog_compiler_wl_GCJ='-Wl,'
17077      if test "$host_cpu" = ia64; then
17078	# AIX 5 now supports IA64 processor
17079	lt_prog_compiler_static_GCJ='-Bstatic'
17080      else
17081	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17082      fi
17083      ;;
17084      darwin*)
17085        # PIC is the default on this platform
17086        # Common symbols not allowed in MH_DYLIB files
17087       case $cc_basename in
17088         xlc*)
17089         lt_prog_compiler_pic_GCJ='-qnocommon'
17090         lt_prog_compiler_wl_GCJ='-Wl,'
17091         ;;
17092       esac
17093       ;;
17094
17095    mingw* | cygwin* | pw32* | os2*)
17096      # This hack is so that the source file can tell whether it is being
17097      # built for inclusion in a dll (and should export symbols for example).
17098
17099      ;;
17100
17101    hpux9* | hpux10* | hpux11*)
17102      lt_prog_compiler_wl_GCJ='-Wl,'
17103      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17104      # not for PA HP-UX.
17105      case $host_cpu in
17106      hppa*64*|ia64*)
17107	# +Z the default
17108	;;
17109      *)
17110	lt_prog_compiler_pic_GCJ='+Z'
17111	;;
17112      esac
17113      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17114      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17115      ;;
17116
17117    irix5* | irix6* | nonstopux*)
17118      lt_prog_compiler_wl_GCJ='-Wl,'
17119      # PIC (with -KPIC) is the default.
17120      lt_prog_compiler_static_GCJ='-non_shared'
17121      ;;
17122
17123    newsos6)
17124      lt_prog_compiler_pic_GCJ='-KPIC'
17125      lt_prog_compiler_static_GCJ='-Bstatic'
17126      ;;
17127
17128    linux* | k*bsd*-gnu)
17129      case $cc_basename in
17130      icc* | ecc*)
17131	lt_prog_compiler_wl_GCJ='-Wl,'
17132	lt_prog_compiler_pic_GCJ='-KPIC'
17133	lt_prog_compiler_static_GCJ='-static'
17134        ;;
17135      pgcc* | pgf77* | pgf90* | pgf95*)
17136        # Portland Group compilers (*not* the Pentium gcc compiler,
17137	# which looks to be a dead project)
17138	lt_prog_compiler_wl_GCJ='-Wl,'
17139	lt_prog_compiler_pic_GCJ='-fpic'
17140	lt_prog_compiler_static_GCJ='-Bstatic'
17141        ;;
17142      ccc*)
17143        lt_prog_compiler_wl_GCJ='-Wl,'
17144        # All Alpha code is PIC.
17145        lt_prog_compiler_static_GCJ='-non_shared'
17146        ;;
17147      *)
17148        case `$CC -V 2>&1 | sed 5q` in
17149	*Sun\ C*)
17150	  # Sun C 5.9
17151	  lt_prog_compiler_pic_GCJ='-KPIC'
17152	  lt_prog_compiler_static_GCJ='-Bstatic'
17153	  lt_prog_compiler_wl_GCJ='-Wl,'
17154	  ;;
17155	*Sun\ F*)
17156	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17157	  lt_prog_compiler_pic_GCJ='-KPIC'
17158	  lt_prog_compiler_static_GCJ='-Bstatic'
17159	  lt_prog_compiler_wl_GCJ=''
17160	  ;;
17161	esac
17162	;;
17163      esac
17164      ;;
17165
17166    osf3* | osf4* | osf5*)
17167      lt_prog_compiler_wl_GCJ='-Wl,'
17168      # All OSF/1 code is PIC.
17169      lt_prog_compiler_static_GCJ='-non_shared'
17170      ;;
17171
17172    rdos*)
17173      lt_prog_compiler_static_GCJ='-non_shared'
17174      ;;
17175
17176    solaris*)
17177      lt_prog_compiler_pic_GCJ='-KPIC'
17178      lt_prog_compiler_static_GCJ='-Bstatic'
17179      case $cc_basename in
17180      f77* | f90* | f95*)
17181	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17182      *)
17183	lt_prog_compiler_wl_GCJ='-Wl,';;
17184      esac
17185      ;;
17186
17187    sunos4*)
17188      lt_prog_compiler_wl_GCJ='-Qoption ld '
17189      lt_prog_compiler_pic_GCJ='-PIC'
17190      lt_prog_compiler_static_GCJ='-Bstatic'
17191      ;;
17192
17193    sysv4 | sysv4.2uw2* | sysv4.3*)
17194      lt_prog_compiler_wl_GCJ='-Wl,'
17195      lt_prog_compiler_pic_GCJ='-KPIC'
17196      lt_prog_compiler_static_GCJ='-Bstatic'
17197      ;;
17198
17199    sysv4*MP*)
17200      if test -d /usr/nec ;then
17201	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17202	lt_prog_compiler_static_GCJ='-Bstatic'
17203      fi
17204      ;;
17205
17206    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17207      lt_prog_compiler_wl_GCJ='-Wl,'
17208      lt_prog_compiler_pic_GCJ='-KPIC'
17209      lt_prog_compiler_static_GCJ='-Bstatic'
17210      ;;
17211
17212    unicos*)
17213      lt_prog_compiler_wl_GCJ='-Wl,'
17214      lt_prog_compiler_can_build_shared_GCJ=no
17215      ;;
17216
17217    uts4*)
17218      lt_prog_compiler_pic_GCJ='-pic'
17219      lt_prog_compiler_static_GCJ='-Bstatic'
17220      ;;
17221
17222    *)
17223      lt_prog_compiler_can_build_shared_GCJ=no
17224      ;;
17225    esac
17226  fi
17227
17228{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17229$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17230
17231#
17232# Check to make sure the PIC flag actually works.
17233#
17234if test -n "$lt_prog_compiler_pic_GCJ"; then
17235
17236{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17237$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17238if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17239  $as_echo_n "(cached) " >&6
17240else
17241  lt_cv_prog_compiler_pic_works_GCJ=no
17242  ac_outfile=conftest.$ac_objext
17243   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17244   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17245   # Insert the option either (1) after the last *FLAGS variable, or
17246   # (2) before a word containing "conftest.", or (3) at the end.
17247   # Note that $ac_compile itself does not contain backslashes and begins
17248   # with a dollar sign (not a hyphen), so the echo should work correctly.
17249   # The option is referenced via a variable to avoid confusing sed.
17250   lt_compile=`echo "$ac_compile" | $SED \
17251   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17252   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17253   -e 's:$: $lt_compiler_flag:'`
17254   (eval echo "\"\$as_me:17254: $lt_compile\"" >&5)
17255   (eval "$lt_compile" 2>conftest.err)
17256   ac_status=$?
17257   cat conftest.err >&5
17258   echo "$as_me:17258: \$? = $ac_status" >&5
17259   if (exit $ac_status) && test -s "$ac_outfile"; then
17260     # The compiler can only warn and ignore the option if not recognized
17261     # So say no if there are warnings other than the usual output.
17262     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17263     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17264     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17265       lt_cv_prog_compiler_pic_works_GCJ=yes
17266     fi
17267   fi
17268   $rm conftest*
17269
17270fi
17271{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17272$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17273
17274if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17275    case $lt_prog_compiler_pic_GCJ in
17276     "" | " "*) ;;
17277     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17278     esac
17279else
17280    lt_prog_compiler_pic_GCJ=
17281     lt_prog_compiler_can_build_shared_GCJ=no
17282fi
17283
17284fi
17285case $host_os in
17286  # For platforms which do not support PIC, -DPIC is meaningless:
17287  *djgpp*)
17288    lt_prog_compiler_pic_GCJ=
17289    ;;
17290  *)
17291    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17292    ;;
17293esac
17294
17295#
17296# Check to make sure the static flag actually works.
17297#
17298wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17299{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17300$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17301if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17302  $as_echo_n "(cached) " >&6
17303else
17304  lt_cv_prog_compiler_static_works_GCJ=no
17305   save_LDFLAGS="$LDFLAGS"
17306   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17307   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17308   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17309     # The linker can only warn and ignore the option if not recognized
17310     # So say no if there are warnings
17311     if test -s conftest.err; then
17312       # Append any errors to the config.log.
17313       cat conftest.err 1>&5
17314       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17315       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17316       if diff conftest.exp conftest.er2 >/dev/null; then
17317         lt_cv_prog_compiler_static_works_GCJ=yes
17318       fi
17319     else
17320       lt_cv_prog_compiler_static_works_GCJ=yes
17321     fi
17322   fi
17323   $rm -r conftest*
17324   LDFLAGS="$save_LDFLAGS"
17325
17326fi
17327{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17328$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17329
17330if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17331    :
17332else
17333    lt_prog_compiler_static_GCJ=
17334fi
17335
17336
17337{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17339if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17340  $as_echo_n "(cached) " >&6
17341else
17342  lt_cv_prog_compiler_c_o_GCJ=no
17343   $rm -r conftest 2>/dev/null
17344   mkdir conftest
17345   cd conftest
17346   mkdir out
17347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17348
17349   lt_compiler_flag="-o out/conftest2.$ac_objext"
17350   # Insert the option either (1) after the last *FLAGS variable, or
17351   # (2) before a word containing "conftest.", or (3) at the end.
17352   # Note that $ac_compile itself does not contain backslashes and begins
17353   # with a dollar sign (not a hyphen), so the echo should work correctly.
17354   lt_compile=`echo "$ac_compile" | $SED \
17355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17357   -e 's:$: $lt_compiler_flag:'`
17358   (eval echo "\"\$as_me:17358: $lt_compile\"" >&5)
17359   (eval "$lt_compile" 2>out/conftest.err)
17360   ac_status=$?
17361   cat out/conftest.err >&5
17362   echo "$as_me:17362: \$? = $ac_status" >&5
17363   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17364   then
17365     # The compiler can only warn and ignore the option if not recognized
17366     # So say no if there are warnings
17367     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17368     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17369     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17370       lt_cv_prog_compiler_c_o_GCJ=yes
17371     fi
17372   fi
17373   chmod u+w . 2>&5
17374   $rm conftest*
17375   # SGI C++ compiler will create directory out/ii_files/ for
17376   # template instantiation
17377   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17378   $rm out/* && rmdir out
17379   cd ..
17380   rmdir conftest
17381   $rm conftest*
17382
17383fi
17384{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17385$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17386
17387
17388hard_links="nottested"
17389if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17390  # do not overwrite the value of need_locks provided by the user
17391  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17392$as_echo_n "checking if we can lock with hard links... " >&6; }
17393  hard_links=yes
17394  $rm conftest*
17395  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17396  touch conftest.a
17397  ln conftest.a conftest.b 2>&5 || hard_links=no
17398  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17399  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17400$as_echo "$hard_links" >&6; }
17401  if test "$hard_links" = no; then
17402    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17403$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17404    need_locks=warn
17405  fi
17406else
17407  need_locks=no
17408fi
17409
17410{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17411$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17412
17413  runpath_var=
17414  allow_undefined_flag_GCJ=
17415  enable_shared_with_static_runtimes_GCJ=no
17416  archive_cmds_GCJ=
17417  archive_expsym_cmds_GCJ=
17418  old_archive_From_new_cmds_GCJ=
17419  old_archive_from_expsyms_cmds_GCJ=
17420  export_dynamic_flag_spec_GCJ=
17421  whole_archive_flag_spec_GCJ=
17422  thread_safe_flag_spec_GCJ=
17423  hardcode_libdir_flag_spec_GCJ=
17424  hardcode_libdir_flag_spec_ld_GCJ=
17425  hardcode_libdir_separator_GCJ=
17426  hardcode_direct_GCJ=no
17427  hardcode_minus_L_GCJ=no
17428  hardcode_shlibpath_var_GCJ=unsupported
17429  link_all_deplibs_GCJ=unknown
17430  hardcode_automatic_GCJ=no
17431  module_cmds_GCJ=
17432  module_expsym_cmds_GCJ=
17433  always_export_symbols_GCJ=no
17434  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17435  # include_expsyms should be a list of space-separated symbols to be *always*
17436  # included in the symbol list
17437  include_expsyms_GCJ=
17438  # exclude_expsyms can be an extended regexp of symbols to exclude
17439  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17440  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17441  # as well as any symbol that contains `d'.
17442  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17443  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17444  # platforms (ab)use it in PIC code, but their linkers get confused if
17445  # the symbol is explicitly referenced.  Since portable code cannot
17446  # rely on this symbol name, it's probably fine to never include it in
17447  # preloaded symbol tables.
17448  # Exclude shared library initialization/finalization symbols.
17449  extract_expsyms_cmds=
17450  # Just being paranoid about ensuring that cc_basename is set.
17451  for cc_temp in $compiler""; do
17452  case $cc_temp in
17453    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17454    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17455    \-*) ;;
17456    *) break;;
17457  esac
17458done
17459cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17460
17461  case $host_os in
17462  cygwin* | mingw* | pw32*)
17463    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17464    # When not using gcc, we currently assume that we are using
17465    # Microsoft Visual C++.
17466    if test "$GCC" != yes; then
17467      with_gnu_ld=no
17468    fi
17469    ;;
17470  interix*)
17471    # we just hope/assume this is gcc and not c89 (= MSVC++)
17472    with_gnu_ld=yes
17473    ;;
17474  openbsd*)
17475    with_gnu_ld=no
17476    ;;
17477  esac
17478
17479  ld_shlibs_GCJ=yes
17480  if test "$with_gnu_ld" = yes; then
17481    # If archive_cmds runs LD, not CC, wlarc should be empty
17482    wlarc='${wl}'
17483
17484    # Set some defaults for GNU ld with shared library support. These
17485    # are reset later if shared libraries are not supported. Putting them
17486    # here allows them to be overridden if necessary.
17487    runpath_var=LD_RUN_PATH
17488    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17489    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17490    # ancient GNU ld didn't support --whole-archive et. al.
17491    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17492	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17493      else
17494  	whole_archive_flag_spec_GCJ=
17495    fi
17496    supports_anon_versioning=no
17497    case `$LD -v 2>/dev/null` in
17498      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17499      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17500      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17501      *\ 2.11.*) ;; # other 2.11 versions
17502      *) supports_anon_versioning=yes ;;
17503    esac
17504
17505    # See if GNU ld supports shared libraries.
17506    case $host_os in
17507    aix[3-9]*)
17508      # On AIX/PPC, the GNU linker is very broken
17509      if test "$host_cpu" != ia64; then
17510	ld_shlibs_GCJ=no
17511	cat <<EOF 1>&2
17512
17513*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17514*** to be unable to reliably create shared libraries on AIX.
17515*** Therefore, libtool is disabling shared libraries support.  If you
17516*** really care for shared libraries, you may want to modify your PATH
17517*** so that a non-GNU linker is found, and then restart.
17518
17519EOF
17520      fi
17521      ;;
17522
17523    amigaos*)
17524      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)'
17525      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17526      hardcode_minus_L_GCJ=yes
17527
17528      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17529      # that the semantics of dynamic libraries on AmigaOS, at least up
17530      # to version 4, is to share data among multiple programs linked
17531      # with the same dynamic library.  Since this doesn't match the
17532      # behavior of shared libraries on other platforms, we can't use
17533      # them.
17534      ld_shlibs_GCJ=no
17535      ;;
17536
17537    beos*)
17538      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17539	allow_undefined_flag_GCJ=unsupported
17540	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17541	# support --undefined.  This deserves some investigation.  FIXME
17542	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543      else
17544	ld_shlibs_GCJ=no
17545      fi
17546      ;;
17547
17548    cygwin* | mingw* | pw32*)
17549      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17550      # as there is no search path for DLLs.
17551      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17552      allow_undefined_flag_GCJ=unsupported
17553      always_export_symbols_GCJ=no
17554      enable_shared_with_static_runtimes_GCJ=yes
17555      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17556
17557      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17558        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559	# If the export-symbols file already is a .def file (1st line
17560	# is EXPORTS), use it as is; otherwise, prepend...
17561	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17562	  cp $export_symbols $output_objdir/$soname.def;
17563	else
17564	  echo EXPORTS > $output_objdir/$soname.def;
17565	  cat $export_symbols >> $output_objdir/$soname.def;
17566	fi~
17567	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17568      else
17569	ld_shlibs_GCJ=no
17570      fi
17571      ;;
17572
17573    interix[3-9]*)
17574      hardcode_direct_GCJ=no
17575      hardcode_shlibpath_var_GCJ=no
17576      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17577      export_dynamic_flag_spec_GCJ='${wl}-E'
17578      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17579      # Instead, shared libraries are loaded at an image base (0x10000000 by
17580      # default) and relocated if they conflict, which is a slow very memory
17581      # consuming and fragmenting process.  To avoid this, we pick a random,
17582      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17583      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17584      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'
17585      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'
17586      ;;
17587
17588    gnu* | linux* | k*bsd*-gnu)
17589      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17590	tmp_addflag=
17591	case $cc_basename,$host_cpu in
17592	pgcc*)				# Portland Group C compiler
17593	  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'
17594	  tmp_addflag=' $pic_flag'
17595	  ;;
17596	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17597	  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'
17598	  tmp_addflag=' $pic_flag -Mnomain' ;;
17599	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17600	  tmp_addflag=' -i_dynamic' ;;
17601	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17602	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17603	ifc* | ifort*)			# Intel Fortran compiler
17604	  tmp_addflag=' -nofor_main' ;;
17605	esac
17606	case `$CC -V 2>&1 | sed 5q` in
17607	*Sun\ C*)			# Sun C 5.9
17608	  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'
17609	  tmp_sharedflag='-G' ;;
17610	*Sun\ F*)			# Sun Fortran 8.3
17611	  tmp_sharedflag='-G' ;;
17612	*)
17613	  tmp_sharedflag='-shared' ;;
17614	esac
17615	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17616
17617	if test $supports_anon_versioning = yes; then
17618	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17619  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17620  $echo "local: *; };" >> $output_objdir/$libname.ver~
17621	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17622	fi
17623      else
17624	ld_shlibs_GCJ=no
17625      fi
17626      ;;
17627
17628    netbsd*)
17629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17630	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17631	wlarc=
17632      else
17633	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17634	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17635      fi
17636      ;;
17637
17638    solaris*)
17639      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17640	ld_shlibs_GCJ=no
17641	cat <<EOF 1>&2
17642
17643*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17644*** create shared libraries on Solaris systems.  Therefore, libtool
17645*** is disabling shared libraries support.  We urge you to upgrade GNU
17646*** binutils to release 2.9.1 or newer.  Another option is to modify
17647*** your PATH or compiler configuration so that the native linker is
17648*** used, and then restart.
17649
17650EOF
17651      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17652	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17653	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17654      else
17655	ld_shlibs_GCJ=no
17656      fi
17657      ;;
17658
17659    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17660      case `$LD -v 2>&1` in
17661        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17662	ld_shlibs_GCJ=no
17663	cat <<_LT_EOF 1>&2
17664
17665*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17666*** reliably create shared libraries on SCO systems.  Therefore, libtool
17667*** is disabling shared libraries support.  We urge you to upgrade GNU
17668*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17669*** your PATH or compiler configuration so that the native linker is
17670*** used, and then restart.
17671
17672_LT_EOF
17673	;;
17674	*)
17675	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17676	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17677	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17678	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17679	  else
17680	    ld_shlibs_GCJ=no
17681	  fi
17682	;;
17683      esac
17684      ;;
17685
17686    sunos4*)
17687      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17688      wlarc=
17689      hardcode_direct_GCJ=yes
17690      hardcode_shlibpath_var_GCJ=no
17691      ;;
17692
17693    *)
17694      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17695	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17696	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17697      else
17698	ld_shlibs_GCJ=no
17699      fi
17700      ;;
17701    esac
17702
17703    if test "$ld_shlibs_GCJ" = no; then
17704      runpath_var=
17705      hardcode_libdir_flag_spec_GCJ=
17706      export_dynamic_flag_spec_GCJ=
17707      whole_archive_flag_spec_GCJ=
17708    fi
17709  else
17710    # PORTME fill in a description of your system's linker (not GNU ld)
17711    case $host_os in
17712    aix3*)
17713      allow_undefined_flag_GCJ=unsupported
17714      always_export_symbols_GCJ=yes
17715      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'
17716      # Note: this linker hardcodes the directories in LIBPATH if there
17717      # are no directories specified by -L.
17718      hardcode_minus_L_GCJ=yes
17719      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17720	# Neither direct hardcoding nor static linking is supported with a
17721	# broken collect2.
17722	hardcode_direct_GCJ=unsupported
17723      fi
17724      ;;
17725
17726    aix[4-9]*)
17727      if test "$host_cpu" = ia64; then
17728	# On IA64, the linker does run time linking by default, so we don't
17729	# have to do anything special.
17730	aix_use_runtimelinking=no
17731	exp_sym_flag='-Bexport'
17732	no_entry_flag=""
17733      else
17734	# If we're using GNU nm, then we don't want the "-C" option.
17735	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17736	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17737	  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'
17738	else
17739	  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'
17740	fi
17741	aix_use_runtimelinking=no
17742
17743	# Test if we are trying to use run time linking or normal
17744	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17745	# need to do runtime linking.
17746	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17747	  for ld_flag in $LDFLAGS; do
17748  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17749  	    aix_use_runtimelinking=yes
17750  	    break
17751  	  fi
17752	  done
17753	  ;;
17754	esac
17755
17756	exp_sym_flag='-bexport'
17757	no_entry_flag='-bnoentry'
17758      fi
17759
17760      # When large executables or shared objects are built, AIX ld can
17761      # have problems creating the table of contents.  If linking a library
17762      # or program results in "error TOC overflow" add -mminimal-toc to
17763      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17764      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17765
17766      archive_cmds_GCJ=''
17767      hardcode_direct_GCJ=yes
17768      hardcode_libdir_separator_GCJ=':'
17769      link_all_deplibs_GCJ=yes
17770
17771      if test "$GCC" = yes; then
17772	case $host_os in aix4.[012]|aix4.[012].*)
17773	# We only want to do this on AIX 4.2 and lower, the check
17774	# below for broken collect2 doesn't work under 4.3+
17775	  collect2name=`${CC} -print-prog-name=collect2`
17776	  if test -f "$collect2name" && \
17777  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17778	  then
17779  	  # We have reworked collect2
17780  	  :
17781	  else
17782  	  # We have old collect2
17783  	  hardcode_direct_GCJ=unsupported
17784  	  # It fails to find uninstalled libraries when the uninstalled
17785  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17786  	  # to unsupported forces relinking
17787  	  hardcode_minus_L_GCJ=yes
17788  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17789  	  hardcode_libdir_separator_GCJ=
17790	  fi
17791	  ;;
17792	esac
17793	shared_flag='-shared'
17794	if test "$aix_use_runtimelinking" = yes; then
17795	  shared_flag="$shared_flag "'${wl}-G'
17796	fi
17797      else
17798	# not using gcc
17799	if test "$host_cpu" = ia64; then
17800  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17801  	# chokes on -Wl,-G. The following line is correct:
17802	  shared_flag='-G'
17803	else
17804	  if test "$aix_use_runtimelinking" = yes; then
17805	    shared_flag='${wl}-G'
17806	  else
17807	    shared_flag='${wl}-bM:SRE'
17808	  fi
17809	fi
17810      fi
17811
17812      # It seems that -bexpall does not export symbols beginning with
17813      # underscore (_), so it is better to generate a list of symbols to export.
17814      always_export_symbols_GCJ=yes
17815      if test "$aix_use_runtimelinking" = yes; then
17816	# Warning - without using the other runtime loading flags (-brtl),
17817	# -berok will link without error, but may produce a broken library.
17818	allow_undefined_flag_GCJ='-berok'
17819       # Determine the default libpath from the value encoded in an empty executable.
17820       cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h.  */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h.  */
17826
17827int
17828main ()
17829{
17830
17831  ;
17832  return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (ac_try="$ac_link"
17837case "(($ac_try" in
17838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839  *) ac_try_echo=$ac_try;;
17840esac
17841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842$as_echo "$ac_try_echo") >&5
17843  (eval "$ac_link") 2>conftest.er1
17844  ac_status=$?
17845  grep -v '^ *+' conftest.er1 >conftest.err
17846  rm -f conftest.er1
17847  cat conftest.err >&5
17848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849  (exit $ac_status); } && {
17850	 test -z "$ac_c_werror_flag" ||
17851	 test ! -s conftest.err
17852       } && test -s conftest$ac_exeext && {
17853	 test "$cross_compiling" = yes ||
17854	 $as_test_x conftest$ac_exeext
17855       }; then
17856
17857lt_aix_libpath_sed='
17858    /Import File Strings/,/^$/ {
17859	/^0/ {
17860	    s/^0  *\(.*\)$/\1/
17861	    p
17862	}
17863    }'
17864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17865# Check for a 64-bit object if we didn't find anything.
17866if test -z "$aix_libpath"; then
17867  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17868fi
17869else
17870  $as_echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873
17874fi
17875
17876rm -rf conftest.dSYM
17877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17878      conftest$ac_exeext conftest.$ac_ext
17879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17880
17881       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17882	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"
17883       else
17884	if test "$host_cpu" = ia64; then
17885	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17886	  allow_undefined_flag_GCJ="-z nodefs"
17887	  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"
17888	else
17889	 # Determine the default libpath from the value encoded in an empty executable.
17890	 cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h.  */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h.  */
17896
17897int
17898main ()
17899{
17900
17901  ;
17902  return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext conftest$ac_exeext
17906if { (ac_try="$ac_link"
17907case "(($ac_try" in
17908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909  *) ac_try_echo=$ac_try;;
17910esac
17911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912$as_echo "$ac_try_echo") >&5
17913  (eval "$ac_link") 2>conftest.er1
17914  ac_status=$?
17915  grep -v '^ *+' conftest.er1 >conftest.err
17916  rm -f conftest.er1
17917  cat conftest.err >&5
17918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919  (exit $ac_status); } && {
17920	 test -z "$ac_c_werror_flag" ||
17921	 test ! -s conftest.err
17922       } && test -s conftest$ac_exeext && {
17923	 test "$cross_compiling" = yes ||
17924	 $as_test_x conftest$ac_exeext
17925       }; then
17926
17927lt_aix_libpath_sed='
17928    /Import File Strings/,/^$/ {
17929	/^0/ {
17930	    s/^0  *\(.*\)$/\1/
17931	    p
17932	}
17933    }'
17934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17935# Check for a 64-bit object if we didn't find anything.
17936if test -z "$aix_libpath"; then
17937  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17938fi
17939else
17940  $as_echo "$as_me: failed program was:" >&5
17941sed 's/^/| /' conftest.$ac_ext >&5
17942
17943
17944fi
17945
17946rm -rf conftest.dSYM
17947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17948      conftest$ac_exeext conftest.$ac_ext
17949if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17950
17951	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17952	  # Warning - without using the other run time loading flags,
17953	  # -berok will link without error, but may produce a broken library.
17954	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17955	  allow_undefined_flag_GCJ=' ${wl}-berok'
17956	  # Exported symbols can be pulled into shared objects from archives
17957	  whole_archive_flag_spec_GCJ='$convenience'
17958	  archive_cmds_need_lc_GCJ=yes
17959	  # This is similar to how AIX traditionally builds its shared libraries.
17960	  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'
17961	fi
17962      fi
17963      ;;
17964
17965    amigaos*)
17966      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)'
17967      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968      hardcode_minus_L_GCJ=yes
17969      # see comment about different semantics on the GNU ld section
17970      ld_shlibs_GCJ=no
17971      ;;
17972
17973    bsdi[45]*)
17974      export_dynamic_flag_spec_GCJ=-rdynamic
17975      ;;
17976
17977    cygwin* | mingw* | pw32*)
17978      # When not using gcc, we currently assume that we are using
17979      # Microsoft Visual C++.
17980      # hardcode_libdir_flag_spec is actually meaningless, as there is
17981      # no search path for DLLs.
17982      hardcode_libdir_flag_spec_GCJ=' '
17983      allow_undefined_flag_GCJ=unsupported
17984      # Tell ltmain to make .lib files, not .a files.
17985      libext=lib
17986      # Tell ltmain to make .dll files, not .so files.
17987      shrext_cmds=".dll"
17988      # FIXME: Setting linknames here is a bad hack.
17989      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17990      # The linker will automatically build a .lib file if we build a DLL.
17991      old_archive_From_new_cmds_GCJ='true'
17992      # FIXME: Should let the user specify the lib program.
17993      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17994      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17995      enable_shared_with_static_runtimes_GCJ=yes
17996      ;;
17997
17998    darwin* | rhapsody*)
17999      case $host_os in
18000        rhapsody* | darwin1.[012])
18001         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18002         ;;
18003       *) # Darwin 1.3 on
18004         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18005           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18006         else
18007           case ${MACOSX_DEPLOYMENT_TARGET} in
18008             10.[012])
18009               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18010               ;;
18011             10.*)
18012               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18013               ;;
18014           esac
18015         fi
18016         ;;
18017      esac
18018      archive_cmds_need_lc_GCJ=no
18019      hardcode_direct_GCJ=no
18020      hardcode_automatic_GCJ=yes
18021      hardcode_shlibpath_var_GCJ=unsupported
18022      whole_archive_flag_spec_GCJ=''
18023      link_all_deplibs_GCJ=yes
18024    if test "$GCC" = yes ; then
18025    	output_verbose_link_cmd='echo'
18026        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}"
18027        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18028        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}"
18029        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}"
18030    else
18031      case $cc_basename in
18032        xlc*)
18033         output_verbose_link_cmd='echo'
18034         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18035         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18036          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18037         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}'
18038          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}'
18039          ;;
18040       *)
18041         ld_shlibs_GCJ=no
18042          ;;
18043      esac
18044    fi
18045      ;;
18046
18047    dgux*)
18048      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18049      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18050      hardcode_shlibpath_var_GCJ=no
18051      ;;
18052
18053    freebsd1*)
18054      ld_shlibs_GCJ=no
18055      ;;
18056
18057    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18058    # support.  Future versions do this automatically, but an explicit c++rt0.o
18059    # does not break anything, and helps significantly (at the cost of a little
18060    # extra space).
18061    freebsd2.2*)
18062      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18063      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18064      hardcode_direct_GCJ=yes
18065      hardcode_shlibpath_var_GCJ=no
18066      ;;
18067
18068    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18069    freebsd2*)
18070      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18071      hardcode_direct_GCJ=yes
18072      hardcode_minus_L_GCJ=yes
18073      hardcode_shlibpath_var_GCJ=no
18074      ;;
18075
18076    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18077    freebsd* | dragonfly*)
18078      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18079      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18080      hardcode_direct_GCJ=yes
18081      hardcode_shlibpath_var_GCJ=no
18082      ;;
18083
18084    hpux9*)
18085      if test "$GCC" = yes; then
18086	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'
18087      else
18088	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'
18089      fi
18090      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18091      hardcode_libdir_separator_GCJ=:
18092      hardcode_direct_GCJ=yes
18093
18094      # hardcode_minus_L: Not really in the search PATH,
18095      # but as the default location of the library.
18096      hardcode_minus_L_GCJ=yes
18097      export_dynamic_flag_spec_GCJ='${wl}-E'
18098      ;;
18099
18100    hpux10*)
18101      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18102	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18103      else
18104	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18105      fi
18106      if test "$with_gnu_ld" = no; then
18107	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18108	hardcode_libdir_separator_GCJ=:
18109
18110	hardcode_direct_GCJ=yes
18111	export_dynamic_flag_spec_GCJ='${wl}-E'
18112
18113	# hardcode_minus_L: Not really in the search PATH,
18114	# but as the default location of the library.
18115	hardcode_minus_L_GCJ=yes
18116      fi
18117      ;;
18118
18119    hpux11*)
18120      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18121	case $host_cpu in
18122	hppa*64*)
18123	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18124	  ;;
18125	ia64*)
18126	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18127	  ;;
18128	*)
18129	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18130	  ;;
18131	esac
18132      else
18133	case $host_cpu in
18134	hppa*64*)
18135	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136	  ;;
18137	ia64*)
18138	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18139	  ;;
18140	*)
18141	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18142	  ;;
18143	esac
18144      fi
18145      if test "$with_gnu_ld" = no; then
18146	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18147	hardcode_libdir_separator_GCJ=:
18148
18149	case $host_cpu in
18150	hppa*64*|ia64*)
18151	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18152	  hardcode_direct_GCJ=no
18153	  hardcode_shlibpath_var_GCJ=no
18154	  ;;
18155	*)
18156	  hardcode_direct_GCJ=yes
18157	  export_dynamic_flag_spec_GCJ='${wl}-E'
18158
18159	  # hardcode_minus_L: Not really in the search PATH,
18160	  # but as the default location of the library.
18161	  hardcode_minus_L_GCJ=yes
18162	  ;;
18163	esac
18164      fi
18165      ;;
18166
18167    irix5* | irix6* | nonstopux*)
18168      if test "$GCC" = yes; then
18169	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'
18170      else
18171	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'
18172	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18173      fi
18174      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175      hardcode_libdir_separator_GCJ=:
18176      link_all_deplibs_GCJ=yes
18177      ;;
18178
18179    netbsd*)
18180      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18181	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18182      else
18183	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18184      fi
18185      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18186      hardcode_direct_GCJ=yes
18187      hardcode_shlibpath_var_GCJ=no
18188      ;;
18189
18190    newsos6)
18191      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18192      hardcode_direct_GCJ=yes
18193      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18194      hardcode_libdir_separator_GCJ=:
18195      hardcode_shlibpath_var_GCJ=no
18196      ;;
18197
18198    openbsd*)
18199      if test -f /usr/libexec/ld.so; then
18200	hardcode_direct_GCJ=yes
18201	hardcode_shlibpath_var_GCJ=no
18202	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18203	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18204	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18205	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18206	  export_dynamic_flag_spec_GCJ='${wl}-E'
18207	else
18208	  case $host_os in
18209	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18210	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18211	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18212	     ;;
18213	   *)
18214	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18215	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18216	     ;;
18217	  esac
18218        fi
18219      else
18220	ld_shlibs_GCJ=no
18221      fi
18222      ;;
18223
18224    os2*)
18225      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18226      hardcode_minus_L_GCJ=yes
18227      allow_undefined_flag_GCJ=unsupported
18228      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'
18229      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18230      ;;
18231
18232    osf3*)
18233      if test "$GCC" = yes; then
18234	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18235	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'
18236      else
18237	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18238	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'
18239      fi
18240      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18241      hardcode_libdir_separator_GCJ=:
18242      ;;
18243
18244    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18245      if test "$GCC" = yes; then
18246	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18247	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'
18248	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249      else
18250	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18251	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'
18252	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~
18253	$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'
18254
18255	# Both c and cxx compiler support -rpath directly
18256	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18257      fi
18258      hardcode_libdir_separator_GCJ=:
18259      ;;
18260
18261    solaris*)
18262      no_undefined_flag_GCJ=' -z text'
18263      if test "$GCC" = yes; then
18264	wlarc='${wl}'
18265	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18266	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18267	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18268      else
18269	wlarc=''
18270	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18271	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18272  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18273      fi
18274      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18275      hardcode_shlibpath_var_GCJ=no
18276      case $host_os in
18277      solaris2.[0-5] | solaris2.[0-5].*) ;;
18278      *)
18279	# The compiler driver will combine and reorder linker options,
18280	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18281	# but is careful enough not to reorder.
18282 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18283	if test "$GCC" = yes; then
18284	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18285	else
18286	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18287	fi
18288	;;
18289      esac
18290      link_all_deplibs_GCJ=yes
18291      ;;
18292
18293    sunos4*)
18294      if test "x$host_vendor" = xsequent; then
18295	# Use $CC to link under sequent, because it throws in some extra .o
18296	# files that make .init and .fini sections work.
18297	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18298      else
18299	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18300      fi
18301      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18302      hardcode_direct_GCJ=yes
18303      hardcode_minus_L_GCJ=yes
18304      hardcode_shlibpath_var_GCJ=no
18305      ;;
18306
18307    sysv4)
18308      case $host_vendor in
18309	sni)
18310	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18311	  hardcode_direct_GCJ=yes # is this really true???
18312	;;
18313	siemens)
18314	  ## LD is ld it makes a PLAMLIB
18315	  ## CC just makes a GrossModule.
18316	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18317	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18318	  hardcode_direct_GCJ=no
18319        ;;
18320	motorola)
18321	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18322	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18323	;;
18324      esac
18325      runpath_var='LD_RUN_PATH'
18326      hardcode_shlibpath_var_GCJ=no
18327      ;;
18328
18329    sysv4.3*)
18330      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331      hardcode_shlibpath_var_GCJ=no
18332      export_dynamic_flag_spec_GCJ='-Bexport'
18333      ;;
18334
18335    sysv4*MP*)
18336      if test -d /usr/nec; then
18337	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18338	hardcode_shlibpath_var_GCJ=no
18339	runpath_var=LD_RUN_PATH
18340	hardcode_runpath_var=yes
18341	ld_shlibs_GCJ=yes
18342      fi
18343      ;;
18344
18345    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18346      no_undefined_flag_GCJ='${wl}-z,text'
18347      archive_cmds_need_lc_GCJ=no
18348      hardcode_shlibpath_var_GCJ=no
18349      runpath_var='LD_RUN_PATH'
18350
18351      if test "$GCC" = yes; then
18352	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18353	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18354      else
18355	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18356	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18357      fi
18358      ;;
18359
18360    sysv5* | sco3.2v5* | sco5v6*)
18361      # Note: We can NOT use -z defs as we might desire, because we do not
18362      # link with -lc, and that would cause any symbols used from libc to
18363      # always be unresolved, which means just about no library would
18364      # ever link correctly.  If we're not using GNU ld we use -z text
18365      # though, which does catch some bad symbols but isn't as heavy-handed
18366      # as -z defs.
18367      no_undefined_flag_GCJ='${wl}-z,text'
18368      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18369      archive_cmds_need_lc_GCJ=no
18370      hardcode_shlibpath_var_GCJ=no
18371      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18372      hardcode_libdir_separator_GCJ=':'
18373      link_all_deplibs_GCJ=yes
18374      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18375      runpath_var='LD_RUN_PATH'
18376
18377      if test "$GCC" = yes; then
18378	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18379	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18380      else
18381	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18382	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18383      fi
18384      ;;
18385
18386    uts4*)
18387      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18388      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18389      hardcode_shlibpath_var_GCJ=no
18390      ;;
18391
18392    *)
18393      ld_shlibs_GCJ=no
18394      ;;
18395    esac
18396  fi
18397
18398{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18399$as_echo "$ld_shlibs_GCJ" >&6; }
18400test "$ld_shlibs_GCJ" = no && can_build_shared=no
18401
18402#
18403# Do we need to explicitly link libc?
18404#
18405case "x$archive_cmds_need_lc_GCJ" in
18406x|xyes)
18407  # Assume -lc should be added
18408  archive_cmds_need_lc_GCJ=yes
18409
18410  if test "$enable_shared" = yes && test "$GCC" = yes; then
18411    case $archive_cmds_GCJ in
18412    *'~'*)
18413      # FIXME: we may have to deal with multi-command sequences.
18414      ;;
18415    '$CC '*)
18416      # Test whether the compiler implicitly links with -lc since on some
18417      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18418      # to ld, don't add -lc before -lgcc.
18419      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18420$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18421      $rm conftest*
18422      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18423
18424      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425  (eval $ac_compile) 2>&5
18426  ac_status=$?
18427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428  (exit $ac_status); } 2>conftest.err; then
18429        soname=conftest
18430        lib=conftest
18431        libobjs=conftest.$ac_objext
18432        deplibs=
18433        wl=$lt_prog_compiler_wl_GCJ
18434	pic_flag=$lt_prog_compiler_pic_GCJ
18435        compiler_flags=-v
18436        linker_flags=-v
18437        verstring=
18438        output_objdir=.
18439        libname=conftest
18440        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18441        allow_undefined_flag_GCJ=
18442        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18443  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18444  ac_status=$?
18445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446  (exit $ac_status); }
18447        then
18448	  archive_cmds_need_lc_GCJ=no
18449        else
18450	  archive_cmds_need_lc_GCJ=yes
18451        fi
18452        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18453      else
18454        cat conftest.err 1>&5
18455      fi
18456      $rm conftest*
18457      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18458$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18459      ;;
18460    esac
18461  fi
18462  ;;
18463esac
18464
18465{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18466$as_echo_n "checking dynamic linker characteristics... " >&6; }
18467library_names_spec=
18468libname_spec='lib$name'
18469soname_spec=
18470shrext_cmds=".so"
18471postinstall_cmds=
18472postuninstall_cmds=
18473finish_cmds=
18474finish_eval=
18475shlibpath_var=
18476shlibpath_overrides_runpath=unknown
18477version_type=none
18478dynamic_linker="$host_os ld.so"
18479sys_lib_dlsearch_path_spec="/lib /usr/lib"
18480
18481need_lib_prefix=unknown
18482hardcode_into_libs=no
18483
18484# when you set need_version to no, make sure it does not cause -set_version
18485# flags to be left without arguments
18486need_version=unknown
18487
18488case $host_os in
18489aix3*)
18490  version_type=linux
18491  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18492  shlibpath_var=LIBPATH
18493
18494  # AIX 3 has no versioning support, so we append a major version to the name.
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  ;;
18497
18498aix[4-9]*)
18499  version_type=linux
18500  need_lib_prefix=no
18501  need_version=no
18502  hardcode_into_libs=yes
18503  if test "$host_cpu" = ia64; then
18504    # AIX 5 supports IA64
18505    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18506    shlibpath_var=LD_LIBRARY_PATH
18507  else
18508    # With GCC up to 2.95.x, collect2 would create an import file
18509    # for dependence libraries.  The import file would start with
18510    # the line `#! .'.  This would cause the generated library to
18511    # depend on `.', always an invalid library.  This was fixed in
18512    # development snapshots of GCC prior to 3.0.
18513    case $host_os in
18514      aix4 | aix4.[01] | aix4.[01].*)
18515      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18516	   echo ' yes '
18517	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18518	:
18519      else
18520	can_build_shared=no
18521      fi
18522      ;;
18523    esac
18524    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18525    # soname into executable. Probably we can add versioning support to
18526    # collect2, so additional links can be useful in future.
18527    if test "$aix_use_runtimelinking" = yes; then
18528      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18529      # instead of lib<name>.a to let people know that these are not
18530      # typical AIX shared libraries.
18531      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532    else
18533      # We preserve .a as extension for shared libraries through AIX4.2
18534      # and later when we are not doing run time linking.
18535      library_names_spec='${libname}${release}.a $libname.a'
18536      soname_spec='${libname}${release}${shared_ext}$major'
18537    fi
18538    shlibpath_var=LIBPATH
18539  fi
18540  ;;
18541
18542amigaos*)
18543  library_names_spec='$libname.ixlibrary $libname.a'
18544  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18545  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'
18546  ;;
18547
18548beos*)
18549  library_names_spec='${libname}${shared_ext}'
18550  dynamic_linker="$host_os ld.so"
18551  shlibpath_var=LIBRARY_PATH
18552  ;;
18553
18554bsdi[45]*)
18555  version_type=linux
18556  need_version=no
18557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558  soname_spec='${libname}${release}${shared_ext}$major'
18559  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18560  shlibpath_var=LD_LIBRARY_PATH
18561  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18562  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18563  # the default ld.so.conf also contains /usr/contrib/lib and
18564  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18565  # libtool to hard-code these into programs
18566  ;;
18567
18568cygwin* | mingw* | pw32*)
18569  version_type=windows
18570  shrext_cmds=".dll"
18571  need_version=no
18572  need_lib_prefix=no
18573
18574  case $GCC,$host_os in
18575  yes,cygwin* | yes,mingw* | yes,pw32*)
18576    library_names_spec='$libname.dll.a'
18577    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18578    postinstall_cmds='base_file=`basename \${file}`~
18579      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18580      dldir=$destdir/`dirname \$dlpath`~
18581      test -d \$dldir || mkdir -p \$dldir~
18582      $install_prog $dir/$dlname \$dldir/$dlname~
18583      chmod a+x \$dldir/$dlname'
18584    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18585      dlpath=$dir/\$dldll~
18586       $rm \$dlpath'
18587    shlibpath_overrides_runpath=yes
18588
18589    case $host_os in
18590    cygwin*)
18591      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18592      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18593      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18594      ;;
18595    mingw*)
18596      # MinGW DLLs use traditional 'lib' prefix
18597      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18598      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18599      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18600        # It is most probably a Windows format PATH printed by
18601        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18602        # path with ; separators, and with drive letters. We can handle the
18603        # drive letters (cygwin fileutils understands them), so leave them,
18604        # especially as we might pass files found there to a mingw objdump,
18605        # which wouldn't understand a cygwinified path. Ahh.
18606        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18607      else
18608        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18609      fi
18610      ;;
18611    pw32*)
18612      # pw32 DLLs use 'pw' prefix rather than 'lib'
18613      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18614      ;;
18615    esac
18616    ;;
18617
18618  *)
18619    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18620    ;;
18621  esac
18622  dynamic_linker='Win32 ld.exe'
18623  # FIXME: first we should search . and the directory the executable is in
18624  shlibpath_var=PATH
18625  ;;
18626
18627darwin* | rhapsody*)
18628  dynamic_linker="$host_os dyld"
18629  version_type=darwin
18630  need_lib_prefix=no
18631  need_version=no
18632  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18633  soname_spec='${libname}${release}${major}$shared_ext'
18634  shlibpath_overrides_runpath=yes
18635  shlibpath_var=DYLD_LIBRARY_PATH
18636  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18637
18638  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18639  ;;
18640
18641dgux*)
18642  version_type=linux
18643  need_lib_prefix=no
18644  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
18648  ;;
18649
18650freebsd1*)
18651  dynamic_linker=no
18652  ;;
18653
18654freebsd* | dragonfly*)
18655  # DragonFly does not have aout.  When/if they implement a new
18656  # versioning mechanism, adjust this.
18657  if test -x /usr/bin/objformat; then
18658    objformat=`/usr/bin/objformat`
18659  else
18660    case $host_os in
18661    freebsd[123]*) objformat=aout ;;
18662    *) objformat=elf ;;
18663    esac
18664  fi
18665  version_type=freebsd-$objformat
18666  case $version_type in
18667    freebsd-elf*)
18668      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18669      need_version=no
18670      need_lib_prefix=no
18671      ;;
18672    freebsd-*)
18673      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18674      need_version=yes
18675      ;;
18676  esac
18677  shlibpath_var=LD_LIBRARY_PATH
18678  case $host_os in
18679  freebsd2*)
18680    shlibpath_overrides_runpath=yes
18681    ;;
18682  freebsd3.[01]* | freebsdelf3.[01]*)
18683    shlibpath_overrides_runpath=yes
18684    hardcode_into_libs=yes
18685    ;;
18686  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18687  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18688    shlibpath_overrides_runpath=no
18689    hardcode_into_libs=yes
18690    ;;
18691  *) # from 4.6 on, and DragonFly
18692    shlibpath_overrides_runpath=yes
18693    hardcode_into_libs=yes
18694    ;;
18695  esac
18696  ;;
18697
18698gnu*)
18699  version_type=linux
18700  need_lib_prefix=no
18701  need_version=no
18702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18703  soname_spec='${libname}${release}${shared_ext}$major'
18704  shlibpath_var=LD_LIBRARY_PATH
18705  hardcode_into_libs=yes
18706  ;;
18707
18708hpux9* | hpux10* | hpux11*)
18709  # Give a soname corresponding to the major version so that dld.sl refuses to
18710  # link against other versions.
18711  version_type=sunos
18712  need_lib_prefix=no
18713  need_version=no
18714  case $host_cpu in
18715  ia64*)
18716    shrext_cmds='.so'
18717    hardcode_into_libs=yes
18718    dynamic_linker="$host_os dld.so"
18719    shlibpath_var=LD_LIBRARY_PATH
18720    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18721    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722    soname_spec='${libname}${release}${shared_ext}$major'
18723    if test "X$HPUX_IA64_MODE" = X32; then
18724      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18725    else
18726      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18727    fi
18728    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18729    ;;
18730   hppa*64*)
18731     shrext_cmds='.sl'
18732     hardcode_into_libs=yes
18733     dynamic_linker="$host_os dld.sl"
18734     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18735     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737     soname_spec='${libname}${release}${shared_ext}$major'
18738     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18739     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18740     ;;
18741   *)
18742    shrext_cmds='.sl'
18743    dynamic_linker="$host_os dld.sl"
18744    shlibpath_var=SHLIB_PATH
18745    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18746    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747    soname_spec='${libname}${release}${shared_ext}$major'
18748    ;;
18749  esac
18750  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18751  postinstall_cmds='chmod 555 $lib'
18752  ;;
18753
18754interix[3-9]*)
18755  version_type=linux
18756  need_lib_prefix=no
18757  need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
18761  shlibpath_var=LD_LIBRARY_PATH
18762  shlibpath_overrides_runpath=no
18763  hardcode_into_libs=yes
18764  ;;
18765
18766irix5* | irix6* | nonstopux*)
18767  case $host_os in
18768    nonstopux*) version_type=nonstopux ;;
18769    *)
18770	if test "$lt_cv_prog_gnu_ld" = yes; then
18771		version_type=linux
18772	else
18773		version_type=irix
18774	fi ;;
18775  esac
18776  need_lib_prefix=no
18777  need_version=no
18778  soname_spec='${libname}${release}${shared_ext}$major'
18779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18780  case $host_os in
18781  irix5* | nonstopux*)
18782    libsuff= shlibsuff=
18783    ;;
18784  *)
18785    case $LD in # libtool.m4 will add one of these switches to LD
18786    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18787      libsuff= shlibsuff= libmagic=32-bit;;
18788    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18789      libsuff=32 shlibsuff=N32 libmagic=N32;;
18790    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18791      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18792    *) libsuff= shlibsuff= libmagic=never-match;;
18793    esac
18794    ;;
18795  esac
18796  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18797  shlibpath_overrides_runpath=no
18798  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18799  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18800  hardcode_into_libs=yes
18801  ;;
18802
18803# No shared lib support for Linux oldld, aout, or coff.
18804linux*oldld* | linux*aout* | linux*coff*)
18805  dynamic_linker=no
18806  ;;
18807
18808# This must be Linux ELF.
18809linux* | k*bsd*-gnu)
18810  version_type=linux
18811  need_lib_prefix=no
18812  need_version=no
18813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814  soname_spec='${libname}${release}${shared_ext}$major'
18815  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18816  shlibpath_var=LD_LIBRARY_PATH
18817  shlibpath_overrides_runpath=no
18818  # This implies no fast_install, which is unacceptable.
18819  # Some rework will be needed to allow for fast_install
18820  # before this can be enabled.
18821  hardcode_into_libs=yes
18822
18823  # Append ld.so.conf contents to the search path
18824  if test -f /etc/ld.so.conf; then
18825    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' ' '`
18826    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18827  fi
18828
18829  # We used to test for /lib/ld.so.1 and disable shared libraries on
18830  # powerpc, because MkLinux only supported shared libraries with the
18831  # GNU dynamic linker.  Since this was broken with cross compilers,
18832  # most powerpc-linux boxes support dynamic linking these days and
18833  # people can always --disable-shared, the test was removed, and we
18834  # assume the GNU/Linux dynamic linker is in use.
18835  dynamic_linker='GNU/Linux ld.so'
18836  ;;
18837
18838netbsd*)
18839  version_type=sunos
18840  need_lib_prefix=no
18841  need_version=no
18842  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18844    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18845    dynamic_linker='NetBSD (a.out) ld.so'
18846  else
18847    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18848    soname_spec='${libname}${release}${shared_ext}$major'
18849    dynamic_linker='NetBSD ld.elf_so'
18850  fi
18851  shlibpath_var=LD_LIBRARY_PATH
18852  shlibpath_overrides_runpath=yes
18853  hardcode_into_libs=yes
18854  ;;
18855
18856newsos6)
18857  version_type=linux
18858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859  shlibpath_var=LD_LIBRARY_PATH
18860  shlibpath_overrides_runpath=yes
18861  ;;
18862
18863nto-qnx*)
18864  version_type=linux
18865  need_lib_prefix=no
18866  need_version=no
18867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868  soname_spec='${libname}${release}${shared_ext}$major'
18869  shlibpath_var=LD_LIBRARY_PATH
18870  shlibpath_overrides_runpath=yes
18871  ;;
18872
18873openbsd*)
18874  version_type=sunos
18875  sys_lib_dlsearch_path_spec="/usr/lib"
18876  need_lib_prefix=no
18877  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18878  case $host_os in
18879    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18880    *)                         need_version=no  ;;
18881  esac
18882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18883  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18884  shlibpath_var=LD_LIBRARY_PATH
18885  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18886    case $host_os in
18887      openbsd2.[89] | openbsd2.[89].*)
18888	shlibpath_overrides_runpath=no
18889	;;
18890      *)
18891	shlibpath_overrides_runpath=yes
18892	;;
18893      esac
18894  else
18895    shlibpath_overrides_runpath=yes
18896  fi
18897  ;;
18898
18899os2*)
18900  libname_spec='$name'
18901  shrext_cmds=".dll"
18902  need_lib_prefix=no
18903  library_names_spec='$libname${shared_ext} $libname.a'
18904  dynamic_linker='OS/2 ld.exe'
18905  shlibpath_var=LIBPATH
18906  ;;
18907
18908osf3* | osf4* | osf5*)
18909  version_type=osf
18910  need_lib_prefix=no
18911  need_version=no
18912  soname_spec='${libname}${release}${shared_ext}$major'
18913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18914  shlibpath_var=LD_LIBRARY_PATH
18915  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18916  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18917  ;;
18918
18919rdos*)
18920  dynamic_linker=no
18921  ;;
18922
18923solaris*)
18924  version_type=linux
18925  need_lib_prefix=no
18926  need_version=no
18927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928  soname_spec='${libname}${release}${shared_ext}$major'
18929  shlibpath_var=LD_LIBRARY_PATH
18930  shlibpath_overrides_runpath=yes
18931  hardcode_into_libs=yes
18932  # ldd complains unless libraries are executable
18933  postinstall_cmds='chmod +x $lib'
18934  ;;
18935
18936sunos4*)
18937  version_type=sunos
18938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18939  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18940  shlibpath_var=LD_LIBRARY_PATH
18941  shlibpath_overrides_runpath=yes
18942  if test "$with_gnu_ld" = yes; then
18943    need_lib_prefix=no
18944  fi
18945  need_version=yes
18946  ;;
18947
18948sysv4 | sysv4.3*)
18949  version_type=linux
18950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18951  soname_spec='${libname}${release}${shared_ext}$major'
18952  shlibpath_var=LD_LIBRARY_PATH
18953  case $host_vendor in
18954    sni)
18955      shlibpath_overrides_runpath=no
18956      need_lib_prefix=no
18957      export_dynamic_flag_spec='${wl}-Blargedynsym'
18958      runpath_var=LD_RUN_PATH
18959      ;;
18960    siemens)
18961      need_lib_prefix=no
18962      ;;
18963    motorola)
18964      need_lib_prefix=no
18965      need_version=no
18966      shlibpath_overrides_runpath=no
18967      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18968      ;;
18969  esac
18970  ;;
18971
18972sysv4*MP*)
18973  if test -d /usr/nec ;then
18974    version_type=linux
18975    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18976    soname_spec='$libname${shared_ext}.$major'
18977    shlibpath_var=LD_LIBRARY_PATH
18978  fi
18979  ;;
18980
18981sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18982  version_type=freebsd-elf
18983  need_lib_prefix=no
18984  need_version=no
18985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18986  soname_spec='${libname}${release}${shared_ext}$major'
18987  shlibpath_var=LD_LIBRARY_PATH
18988  hardcode_into_libs=yes
18989  if test "$with_gnu_ld" = yes; then
18990    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18991    shlibpath_overrides_runpath=no
18992  else
18993    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18994    shlibpath_overrides_runpath=yes
18995    case $host_os in
18996      sco3.2v5*)
18997        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18998	;;
18999    esac
19000  fi
19001  sys_lib_dlsearch_path_spec='/usr/lib'
19002  ;;
19003
19004uts4*)
19005  version_type=linux
19006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19007  soname_spec='${libname}${release}${shared_ext}$major'
19008  shlibpath_var=LD_LIBRARY_PATH
19009  ;;
19010
19011*)
19012  dynamic_linker=no
19013  ;;
19014esac
19015{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19016$as_echo "$dynamic_linker" >&6; }
19017test "$dynamic_linker" = no && can_build_shared=no
19018
19019if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19020  $as_echo_n "(cached) " >&6
19021else
19022  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19023fi
19024
19025sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19026if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19027  $as_echo_n "(cached) " >&6
19028else
19029  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19030fi
19031
19032sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19033
19034variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19035if test "$GCC" = yes; then
19036  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19037fi
19038
19039{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19040$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19041hardcode_action_GCJ=
19042if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19043   test -n "$runpath_var_GCJ" || \
19044   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19045
19046  # We can hardcode non-existant directories.
19047  if test "$hardcode_direct_GCJ" != no &&
19048     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19049     # have to relink, otherwise we might link with an installed library
19050     # when we should be linking with a yet-to-be-installed one
19051     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19052     test "$hardcode_minus_L_GCJ" != no; then
19053    # Linking always hardcodes the temporary library directory.
19054    hardcode_action_GCJ=relink
19055  else
19056    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19057    hardcode_action_GCJ=immediate
19058  fi
19059else
19060  # We cannot hardcode anything, or else we can only hardcode existing
19061  # directories.
19062  hardcode_action_GCJ=unsupported
19063fi
19064{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19065$as_echo "$hardcode_action_GCJ" >&6; }
19066
19067if test "$hardcode_action_GCJ" = relink; then
19068  # Fast installation is not supported
19069  enable_fast_install=no
19070elif test "$shlibpath_overrides_runpath" = yes ||
19071     test "$enable_shared" = no; then
19072  # Fast installation is not necessary
19073  enable_fast_install=needless
19074fi
19075
19076
19077# The else clause should only fire when bootstrapping the
19078# libtool distribution, otherwise you forgot to ship ltmain.sh
19079# with your package, and you will get complaints that there are
19080# no rules to generate ltmain.sh.
19081if test -f "$ltmain"; then
19082  # See if we are running on zsh, and set the options which allow our commands through
19083  # without removal of \ escapes.
19084  if test -n "${ZSH_VERSION+set}" ; then
19085    setopt NO_GLOB_SUBST
19086  fi
19087  # Now quote all the things that may contain metacharacters while being
19088  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19089  # variables and quote the copies for generation of the libtool script.
19090  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19091    SED SHELL STRIP \
19092    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19093    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19094    deplibs_check_method reload_flag reload_cmds need_locks \
19095    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19096    lt_cv_sys_global_symbol_to_c_name_address \
19097    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19098    old_postinstall_cmds old_postuninstall_cmds \
19099    compiler_GCJ \
19100    CC_GCJ \
19101    LD_GCJ \
19102    lt_prog_compiler_wl_GCJ \
19103    lt_prog_compiler_pic_GCJ \
19104    lt_prog_compiler_static_GCJ \
19105    lt_prog_compiler_no_builtin_flag_GCJ \
19106    export_dynamic_flag_spec_GCJ \
19107    thread_safe_flag_spec_GCJ \
19108    whole_archive_flag_spec_GCJ \
19109    enable_shared_with_static_runtimes_GCJ \
19110    old_archive_cmds_GCJ \
19111    old_archive_from_new_cmds_GCJ \
19112    predep_objects_GCJ \
19113    postdep_objects_GCJ \
19114    predeps_GCJ \
19115    postdeps_GCJ \
19116    compiler_lib_search_path_GCJ \
19117    compiler_lib_search_dirs_GCJ \
19118    archive_cmds_GCJ \
19119    archive_expsym_cmds_GCJ \
19120    postinstall_cmds_GCJ \
19121    postuninstall_cmds_GCJ \
19122    old_archive_from_expsyms_cmds_GCJ \
19123    allow_undefined_flag_GCJ \
19124    no_undefined_flag_GCJ \
19125    export_symbols_cmds_GCJ \
19126    hardcode_libdir_flag_spec_GCJ \
19127    hardcode_libdir_flag_spec_ld_GCJ \
19128    hardcode_libdir_separator_GCJ \
19129    hardcode_automatic_GCJ \
19130    module_cmds_GCJ \
19131    module_expsym_cmds_GCJ \
19132    lt_cv_prog_compiler_c_o_GCJ \
19133    fix_srcfile_path_GCJ \
19134    exclude_expsyms_GCJ \
19135    include_expsyms_GCJ; do
19136
19137    case $var in
19138    old_archive_cmds_GCJ | \
19139    old_archive_from_new_cmds_GCJ | \
19140    archive_cmds_GCJ | \
19141    archive_expsym_cmds_GCJ | \
19142    module_cmds_GCJ | \
19143    module_expsym_cmds_GCJ | \
19144    old_archive_from_expsyms_cmds_GCJ | \
19145    export_symbols_cmds_GCJ | \
19146    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19147    postinstall_cmds | postuninstall_cmds | \
19148    old_postinstall_cmds | old_postuninstall_cmds | \
19149    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19150      # Double-quote double-evaled strings.
19151      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19152      ;;
19153    *)
19154      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19155      ;;
19156    esac
19157  done
19158
19159  case $lt_echo in
19160  *'\$0 --fallback-echo"')
19161    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19162    ;;
19163  esac
19164
19165cfgfile="$ofile"
19166
19167  cat <<__EOF__ >> "$cfgfile"
19168# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19169
19170# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19171
19172# Shell to use when invoking shell scripts.
19173SHELL=$lt_SHELL
19174
19175# Whether or not to build shared libraries.
19176build_libtool_libs=$enable_shared
19177
19178# Whether or not to build static libraries.
19179build_old_libs=$enable_static
19180
19181# Whether or not to add -lc for building shared libraries.
19182build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19183
19184# Whether or not to disallow shared libs when runtime libs are static
19185allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19186
19187# Whether or not to optimize for fast installation.
19188fast_install=$enable_fast_install
19189
19190# The host system.
19191host_alias=$host_alias
19192host=$host
19193host_os=$host_os
19194
19195# The build system.
19196build_alias=$build_alias
19197build=$build
19198build_os=$build_os
19199
19200# An echo program that does not interpret backslashes.
19201echo=$lt_echo
19202
19203# The archiver.
19204AR=$lt_AR
19205AR_FLAGS=$lt_AR_FLAGS
19206
19207# A C compiler.
19208LTCC=$lt_LTCC
19209
19210# LTCC compiler flags.
19211LTCFLAGS=$lt_LTCFLAGS
19212
19213# A language-specific compiler.
19214CC=$lt_compiler_GCJ
19215
19216# Is the compiler the GNU C compiler?
19217with_gcc=$GCC_GCJ
19218
19219# An ERE matcher.
19220EGREP=$lt_EGREP
19221
19222# The linker used to build libraries.
19223LD=$lt_LD_GCJ
19224
19225# Whether we need hard or soft links.
19226LN_S=$lt_LN_S
19227
19228# A BSD-compatible nm program.
19229NM=$lt_NM
19230
19231# A symbol stripping program
19232STRIP=$lt_STRIP
19233
19234# Used to examine libraries when file_magic_cmd begins "file"
19235MAGIC_CMD=$MAGIC_CMD
19236
19237# Used on cygwin: DLL creation program.
19238DLLTOOL="$DLLTOOL"
19239
19240# Used on cygwin: object dumper.
19241OBJDUMP="$OBJDUMP"
19242
19243# Used on cygwin: assembler.
19244AS="$AS"
19245
19246# The name of the directory that contains temporary libtool files.
19247objdir=$objdir
19248
19249# How to create reloadable object files.
19250reload_flag=$lt_reload_flag
19251reload_cmds=$lt_reload_cmds
19252
19253# How to pass a linker flag through the compiler.
19254wl=$lt_lt_prog_compiler_wl_GCJ
19255
19256# Object file suffix (normally "o").
19257objext="$ac_objext"
19258
19259# Old archive suffix (normally "a").
19260libext="$libext"
19261
19262# Shared library suffix (normally ".so").
19263shrext_cmds='$shrext_cmds'
19264
19265# Executable file suffix (normally "").
19266exeext="$exeext"
19267
19268# Additional compiler flags for building library objects.
19269pic_flag=$lt_lt_prog_compiler_pic_GCJ
19270pic_mode=$pic_mode
19271
19272# What is the maximum length of a command?
19273max_cmd_len=$lt_cv_sys_max_cmd_len
19274
19275# Does compiler simultaneously support -c and -o options?
19276compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19277
19278# Must we lock files when doing compilation?
19279need_locks=$lt_need_locks
19280
19281# Do we need the lib prefix for modules?
19282need_lib_prefix=$need_lib_prefix
19283
19284# Do we need a version for libraries?
19285need_version=$need_version
19286
19287# Whether dlopen is supported.
19288dlopen_support=$enable_dlopen
19289
19290# Whether dlopen of programs is supported.
19291dlopen_self=$enable_dlopen_self
19292
19293# Whether dlopen of statically linked programs is supported.
19294dlopen_self_static=$enable_dlopen_self_static
19295
19296# Compiler flag to prevent dynamic linking.
19297link_static_flag=$lt_lt_prog_compiler_static_GCJ
19298
19299# Compiler flag to turn off builtin functions.
19300no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19301
19302# Compiler flag to allow reflexive dlopens.
19303export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19304
19305# Compiler flag to generate shared objects directly from archives.
19306whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19307
19308# Compiler flag to generate thread-safe objects.
19309thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19310
19311# Library versioning type.
19312version_type=$version_type
19313
19314# Format of library name prefix.
19315libname_spec=$lt_libname_spec
19316
19317# List of archive names.  First name is the real one, the rest are links.
19318# The last name is the one that the linker finds with -lNAME.
19319library_names_spec=$lt_library_names_spec
19320
19321# The coded name of the library, if different from the real name.
19322soname_spec=$lt_soname_spec
19323
19324# Commands used to build and install an old-style archive.
19325RANLIB=$lt_RANLIB
19326old_archive_cmds=$lt_old_archive_cmds_GCJ
19327old_postinstall_cmds=$lt_old_postinstall_cmds
19328old_postuninstall_cmds=$lt_old_postuninstall_cmds
19329
19330# Create an old-style archive from a shared archive.
19331old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19332
19333# Create a temporary old-style archive to link instead of a shared archive.
19334old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19335
19336# Commands used to build and install a shared archive.
19337archive_cmds=$lt_archive_cmds_GCJ
19338archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19339postinstall_cmds=$lt_postinstall_cmds
19340postuninstall_cmds=$lt_postuninstall_cmds
19341
19342# Commands used to build a loadable module (assumed same as above if empty)
19343module_cmds=$lt_module_cmds_GCJ
19344module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19345
19346# Commands to strip libraries.
19347old_striplib=$lt_old_striplib
19348striplib=$lt_striplib
19349
19350# Dependencies to place before the objects being linked to create a
19351# shared library.
19352predep_objects=$lt_predep_objects_GCJ
19353
19354# Dependencies to place after the objects being linked to create a
19355# shared library.
19356postdep_objects=$lt_postdep_objects_GCJ
19357
19358# Dependencies to place before the objects being linked to create a
19359# shared library.
19360predeps=$lt_predeps_GCJ
19361
19362# Dependencies to place after the objects being linked to create a
19363# shared library.
19364postdeps=$lt_postdeps_GCJ
19365
19366# The directories searched by this compiler when creating a shared
19367# library
19368compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19369
19370# The library search path used internally by the compiler when linking
19371# a shared library.
19372compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19373
19374# Method to check whether dependent libraries are shared objects.
19375deplibs_check_method=$lt_deplibs_check_method
19376
19377# Command to use when deplibs_check_method == file_magic.
19378file_magic_cmd=$lt_file_magic_cmd
19379
19380# Flag that allows shared libraries with undefined symbols to be built.
19381allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19382
19383# Flag that forces no undefined symbols.
19384no_undefined_flag=$lt_no_undefined_flag_GCJ
19385
19386# Commands used to finish a libtool library installation in a directory.
19387finish_cmds=$lt_finish_cmds
19388
19389# Same as above, but a single script fragment to be evaled but not shown.
19390finish_eval=$lt_finish_eval
19391
19392# Take the output of nm and produce a listing of raw symbols and C names.
19393global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19394
19395# Transform the output of nm in a proper C declaration
19396global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19397
19398# Transform the output of nm in a C name address pair
19399global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19400
19401# This is the shared library runtime path variable.
19402runpath_var=$runpath_var
19403
19404# This is the shared library path variable.
19405shlibpath_var=$shlibpath_var
19406
19407# Is shlibpath searched before the hard-coded library search path?
19408shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19409
19410# How to hardcode a shared library path into an executable.
19411hardcode_action=$hardcode_action_GCJ
19412
19413# Whether we should hardcode library paths into libraries.
19414hardcode_into_libs=$hardcode_into_libs
19415
19416# Flag to hardcode \$libdir into a binary during linking.
19417# This must work even if \$libdir does not exist.
19418hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19419
19420# If ld is used when linking, flag to hardcode \$libdir into
19421# a binary during linking. This must work even if \$libdir does
19422# not exist.
19423hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19424
19425# Whether we need a single -rpath flag with a separated argument.
19426hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19427
19428# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19429# resulting binary.
19430hardcode_direct=$hardcode_direct_GCJ
19431
19432# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19433# resulting binary.
19434hardcode_minus_L=$hardcode_minus_L_GCJ
19435
19436# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19437# the resulting binary.
19438hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19439
19440# Set to yes if building a shared library automatically hardcodes DIR into the library
19441# and all subsequent libraries and executables linked against it.
19442hardcode_automatic=$hardcode_automatic_GCJ
19443
19444# Variables whose values should be saved in libtool wrapper scripts and
19445# restored at relink time.
19446variables_saved_for_relink="$variables_saved_for_relink"
19447
19448# Whether libtool must link a program against all its dependency libraries.
19449link_all_deplibs=$link_all_deplibs_GCJ
19450
19451# Compile-time system search path for libraries
19452sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19453
19454# Run-time system search path for libraries
19455sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19456
19457# Fix the shell variable \$srcfile for the compiler.
19458fix_srcfile_path=$lt_fix_srcfile_path
19459
19460# Set to yes if exported symbols are required.
19461always_export_symbols=$always_export_symbols_GCJ
19462
19463# The commands to list exported symbols.
19464export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19465
19466# The commands to extract the exported symbol list from a shared archive.
19467extract_expsyms_cmds=$lt_extract_expsyms_cmds
19468
19469# Symbols that should not be listed in the preloaded symbols.
19470exclude_expsyms=$lt_exclude_expsyms_GCJ
19471
19472# Symbols that must always be exported.
19473include_expsyms=$lt_include_expsyms_GCJ
19474
19475# ### END LIBTOOL TAG CONFIG: $tagname
19476
19477__EOF__
19478
19479
19480else
19481  # If there is no Makefile yet, we rely on a make rule to execute
19482  # `config.status --recheck' to rerun these tests and create the
19483  # libtool script then.
19484  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19485  if test -f "$ltmain_in"; then
19486    test -f Makefile && make "$ltmain"
19487  fi
19488fi
19489
19490
19491ac_ext=c
19492ac_cpp='$CPP $CPPFLAGS'
19493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495ac_compiler_gnu=$ac_cv_c_compiler_gnu
19496
19497CC="$lt_save_CC"
19498
19499	else
19500	  tagname=""
19501	fi
19502	;;
19503
19504      RC)
19505
19506
19507# Source file extension for RC test sources.
19508ac_ext=rc
19509
19510# Object file extension for compiled RC test sources.
19511objext=o
19512objext_RC=$objext
19513
19514# Code to be used in simple compile tests
19515lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19516
19517# Code to be used in simple link tests
19518lt_simple_link_test_code="$lt_simple_compile_test_code"
19519
19520# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19521
19522# If no C compiler was specified, use CC.
19523LTCC=${LTCC-"$CC"}
19524
19525# If no C compiler flags were specified, use CFLAGS.
19526LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19527
19528# Allow CC to be a program name with arguments.
19529compiler=$CC
19530
19531
19532# save warnings/boilerplate of simple test code
19533ac_outfile=conftest.$ac_objext
19534echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19536_lt_compiler_boilerplate=`cat conftest.err`
19537$rm conftest*
19538
19539ac_outfile=conftest.$ac_objext
19540echo "$lt_simple_link_test_code" >conftest.$ac_ext
19541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19542_lt_linker_boilerplate=`cat conftest.err`
19543$rm -r conftest*
19544
19545
19546# Allow CC to be a program name with arguments.
19547lt_save_CC="$CC"
19548CC=${RC-"windres"}
19549compiler=$CC
19550compiler_RC=$CC
19551for cc_temp in $compiler""; do
19552  case $cc_temp in
19553    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19554    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19555    \-*) ;;
19556    *) break;;
19557  esac
19558done
19559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19560
19561lt_cv_prog_compiler_c_o_RC=yes
19562
19563# The else clause should only fire when bootstrapping the
19564# libtool distribution, otherwise you forgot to ship ltmain.sh
19565# with your package, and you will get complaints that there are
19566# no rules to generate ltmain.sh.
19567if test -f "$ltmain"; then
19568  # See if we are running on zsh, and set the options which allow our commands through
19569  # without removal of \ escapes.
19570  if test -n "${ZSH_VERSION+set}" ; then
19571    setopt NO_GLOB_SUBST
19572  fi
19573  # Now quote all the things that may contain metacharacters while being
19574  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19575  # variables and quote the copies for generation of the libtool script.
19576  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19577    SED SHELL STRIP \
19578    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19579    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19580    deplibs_check_method reload_flag reload_cmds need_locks \
19581    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19582    lt_cv_sys_global_symbol_to_c_name_address \
19583    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19584    old_postinstall_cmds old_postuninstall_cmds \
19585    compiler_RC \
19586    CC_RC \
19587    LD_RC \
19588    lt_prog_compiler_wl_RC \
19589    lt_prog_compiler_pic_RC \
19590    lt_prog_compiler_static_RC \
19591    lt_prog_compiler_no_builtin_flag_RC \
19592    export_dynamic_flag_spec_RC \
19593    thread_safe_flag_spec_RC \
19594    whole_archive_flag_spec_RC \
19595    enable_shared_with_static_runtimes_RC \
19596    old_archive_cmds_RC \
19597    old_archive_from_new_cmds_RC \
19598    predep_objects_RC \
19599    postdep_objects_RC \
19600    predeps_RC \
19601    postdeps_RC \
19602    compiler_lib_search_path_RC \
19603    compiler_lib_search_dirs_RC \
19604    archive_cmds_RC \
19605    archive_expsym_cmds_RC \
19606    postinstall_cmds_RC \
19607    postuninstall_cmds_RC \
19608    old_archive_from_expsyms_cmds_RC \
19609    allow_undefined_flag_RC \
19610    no_undefined_flag_RC \
19611    export_symbols_cmds_RC \
19612    hardcode_libdir_flag_spec_RC \
19613    hardcode_libdir_flag_spec_ld_RC \
19614    hardcode_libdir_separator_RC \
19615    hardcode_automatic_RC \
19616    module_cmds_RC \
19617    module_expsym_cmds_RC \
19618    lt_cv_prog_compiler_c_o_RC \
19619    fix_srcfile_path_RC \
19620    exclude_expsyms_RC \
19621    include_expsyms_RC; do
19622
19623    case $var in
19624    old_archive_cmds_RC | \
19625    old_archive_from_new_cmds_RC | \
19626    archive_cmds_RC | \
19627    archive_expsym_cmds_RC | \
19628    module_cmds_RC | \
19629    module_expsym_cmds_RC | \
19630    old_archive_from_expsyms_cmds_RC | \
19631    export_symbols_cmds_RC | \
19632    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19633    postinstall_cmds | postuninstall_cmds | \
19634    old_postinstall_cmds | old_postuninstall_cmds | \
19635    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19636      # Double-quote double-evaled strings.
19637      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19638      ;;
19639    *)
19640      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19641      ;;
19642    esac
19643  done
19644
19645  case $lt_echo in
19646  *'\$0 --fallback-echo"')
19647    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19648    ;;
19649  esac
19650
19651cfgfile="$ofile"
19652
19653  cat <<__EOF__ >> "$cfgfile"
19654# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19655
19656# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19657
19658# Shell to use when invoking shell scripts.
19659SHELL=$lt_SHELL
19660
19661# Whether or not to build shared libraries.
19662build_libtool_libs=$enable_shared
19663
19664# Whether or not to build static libraries.
19665build_old_libs=$enable_static
19666
19667# Whether or not to add -lc for building shared libraries.
19668build_libtool_need_lc=$archive_cmds_need_lc_RC
19669
19670# Whether or not to disallow shared libs when runtime libs are static
19671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19672
19673# Whether or not to optimize for fast installation.
19674fast_install=$enable_fast_install
19675
19676# The host system.
19677host_alias=$host_alias
19678host=$host
19679host_os=$host_os
19680
19681# The build system.
19682build_alias=$build_alias
19683build=$build
19684build_os=$build_os
19685
19686# An echo program that does not interpret backslashes.
19687echo=$lt_echo
19688
19689# The archiver.
19690AR=$lt_AR
19691AR_FLAGS=$lt_AR_FLAGS
19692
19693# A C compiler.
19694LTCC=$lt_LTCC
19695
19696# LTCC compiler flags.
19697LTCFLAGS=$lt_LTCFLAGS
19698
19699# A language-specific compiler.
19700CC=$lt_compiler_RC
19701
19702# Is the compiler the GNU C compiler?
19703with_gcc=$GCC_RC
19704
19705# An ERE matcher.
19706EGREP=$lt_EGREP
19707
19708# The linker used to build libraries.
19709LD=$lt_LD_RC
19710
19711# Whether we need hard or soft links.
19712LN_S=$lt_LN_S
19713
19714# A BSD-compatible nm program.
19715NM=$lt_NM
19716
19717# A symbol stripping program
19718STRIP=$lt_STRIP
19719
19720# Used to examine libraries when file_magic_cmd begins "file"
19721MAGIC_CMD=$MAGIC_CMD
19722
19723# Used on cygwin: DLL creation program.
19724DLLTOOL="$DLLTOOL"
19725
19726# Used on cygwin: object dumper.
19727OBJDUMP="$OBJDUMP"
19728
19729# Used on cygwin: assembler.
19730AS="$AS"
19731
19732# The name of the directory that contains temporary libtool files.
19733objdir=$objdir
19734
19735# How to create reloadable object files.
19736reload_flag=$lt_reload_flag
19737reload_cmds=$lt_reload_cmds
19738
19739# How to pass a linker flag through the compiler.
19740wl=$lt_lt_prog_compiler_wl_RC
19741
19742# Object file suffix (normally "o").
19743objext="$ac_objext"
19744
19745# Old archive suffix (normally "a").
19746libext="$libext"
19747
19748# Shared library suffix (normally ".so").
19749shrext_cmds='$shrext_cmds'
19750
19751# Executable file suffix (normally "").
19752exeext="$exeext"
19753
19754# Additional compiler flags for building library objects.
19755pic_flag=$lt_lt_prog_compiler_pic_RC
19756pic_mode=$pic_mode
19757
19758# What is the maximum length of a command?
19759max_cmd_len=$lt_cv_sys_max_cmd_len
19760
19761# Does compiler simultaneously support -c and -o options?
19762compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19763
19764# Must we lock files when doing compilation?
19765need_locks=$lt_need_locks
19766
19767# Do we need the lib prefix for modules?
19768need_lib_prefix=$need_lib_prefix
19769
19770# Do we need a version for libraries?
19771need_version=$need_version
19772
19773# Whether dlopen is supported.
19774dlopen_support=$enable_dlopen
19775
19776# Whether dlopen of programs is supported.
19777dlopen_self=$enable_dlopen_self
19778
19779# Whether dlopen of statically linked programs is supported.
19780dlopen_self_static=$enable_dlopen_self_static
19781
19782# Compiler flag to prevent dynamic linking.
19783link_static_flag=$lt_lt_prog_compiler_static_RC
19784
19785# Compiler flag to turn off builtin functions.
19786no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19787
19788# Compiler flag to allow reflexive dlopens.
19789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19790
19791# Compiler flag to generate shared objects directly from archives.
19792whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19793
19794# Compiler flag to generate thread-safe objects.
19795thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19796
19797# Library versioning type.
19798version_type=$version_type
19799
19800# Format of library name prefix.
19801libname_spec=$lt_libname_spec
19802
19803# List of archive names.  First name is the real one, the rest are links.
19804# The last name is the one that the linker finds with -lNAME.
19805library_names_spec=$lt_library_names_spec
19806
19807# The coded name of the library, if different from the real name.
19808soname_spec=$lt_soname_spec
19809
19810# Commands used to build and install an old-style archive.
19811RANLIB=$lt_RANLIB
19812old_archive_cmds=$lt_old_archive_cmds_RC
19813old_postinstall_cmds=$lt_old_postinstall_cmds
19814old_postuninstall_cmds=$lt_old_postuninstall_cmds
19815
19816# Create an old-style archive from a shared archive.
19817old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19818
19819# Create a temporary old-style archive to link instead of a shared archive.
19820old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19821
19822# Commands used to build and install a shared archive.
19823archive_cmds=$lt_archive_cmds_RC
19824archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19825postinstall_cmds=$lt_postinstall_cmds
19826postuninstall_cmds=$lt_postuninstall_cmds
19827
19828# Commands used to build a loadable module (assumed same as above if empty)
19829module_cmds=$lt_module_cmds_RC
19830module_expsym_cmds=$lt_module_expsym_cmds_RC
19831
19832# Commands to strip libraries.
19833old_striplib=$lt_old_striplib
19834striplib=$lt_striplib
19835
19836# Dependencies to place before the objects being linked to create a
19837# shared library.
19838predep_objects=$lt_predep_objects_RC
19839
19840# Dependencies to place after the objects being linked to create a
19841# shared library.
19842postdep_objects=$lt_postdep_objects_RC
19843
19844# Dependencies to place before the objects being linked to create a
19845# shared library.
19846predeps=$lt_predeps_RC
19847
19848# Dependencies to place after the objects being linked to create a
19849# shared library.
19850postdeps=$lt_postdeps_RC
19851
19852# The directories searched by this compiler when creating a shared
19853# library
19854compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19855
19856# The library search path used internally by the compiler when linking
19857# a shared library.
19858compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19859
19860# Method to check whether dependent libraries are shared objects.
19861deplibs_check_method=$lt_deplibs_check_method
19862
19863# Command to use when deplibs_check_method == file_magic.
19864file_magic_cmd=$lt_file_magic_cmd
19865
19866# Flag that allows shared libraries with undefined symbols to be built.
19867allow_undefined_flag=$lt_allow_undefined_flag_RC
19868
19869# Flag that forces no undefined symbols.
19870no_undefined_flag=$lt_no_undefined_flag_RC
19871
19872# Commands used to finish a libtool library installation in a directory.
19873finish_cmds=$lt_finish_cmds
19874
19875# Same as above, but a single script fragment to be evaled but not shown.
19876finish_eval=$lt_finish_eval
19877
19878# Take the output of nm and produce a listing of raw symbols and C names.
19879global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19880
19881# Transform the output of nm in a proper C declaration
19882global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19883
19884# Transform the output of nm in a C name address pair
19885global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19886
19887# This is the shared library runtime path variable.
19888runpath_var=$runpath_var
19889
19890# This is the shared library path variable.
19891shlibpath_var=$shlibpath_var
19892
19893# Is shlibpath searched before the hard-coded library search path?
19894shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19895
19896# How to hardcode a shared library path into an executable.
19897hardcode_action=$hardcode_action_RC
19898
19899# Whether we should hardcode library paths into libraries.
19900hardcode_into_libs=$hardcode_into_libs
19901
19902# Flag to hardcode \$libdir into a binary during linking.
19903# This must work even if \$libdir does not exist.
19904hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19905
19906# If ld is used when linking, flag to hardcode \$libdir into
19907# a binary during linking. This must work even if \$libdir does
19908# not exist.
19909hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19910
19911# Whether we need a single -rpath flag with a separated argument.
19912hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19913
19914# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19915# resulting binary.
19916hardcode_direct=$hardcode_direct_RC
19917
19918# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19919# resulting binary.
19920hardcode_minus_L=$hardcode_minus_L_RC
19921
19922# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19923# the resulting binary.
19924hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19925
19926# Set to yes if building a shared library automatically hardcodes DIR into the library
19927# and all subsequent libraries and executables linked against it.
19928hardcode_automatic=$hardcode_automatic_RC
19929
19930# Variables whose values should be saved in libtool wrapper scripts and
19931# restored at relink time.
19932variables_saved_for_relink="$variables_saved_for_relink"
19933
19934# Whether libtool must link a program against all its dependency libraries.
19935link_all_deplibs=$link_all_deplibs_RC
19936
19937# Compile-time system search path for libraries
19938sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19939
19940# Run-time system search path for libraries
19941sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19942
19943# Fix the shell variable \$srcfile for the compiler.
19944fix_srcfile_path=$lt_fix_srcfile_path
19945
19946# Set to yes if exported symbols are required.
19947always_export_symbols=$always_export_symbols_RC
19948
19949# The commands to list exported symbols.
19950export_symbols_cmds=$lt_export_symbols_cmds_RC
19951
19952# The commands to extract the exported symbol list from a shared archive.
19953extract_expsyms_cmds=$lt_extract_expsyms_cmds
19954
19955# Symbols that should not be listed in the preloaded symbols.
19956exclude_expsyms=$lt_exclude_expsyms_RC
19957
19958# Symbols that must always be exported.
19959include_expsyms=$lt_include_expsyms_RC
19960
19961# ### END LIBTOOL TAG CONFIG: $tagname
19962
19963__EOF__
19964
19965
19966else
19967  # If there is no Makefile yet, we rely on a make rule to execute
19968  # `config.status --recheck' to rerun these tests and create the
19969  # libtool script then.
19970  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19971  if test -f "$ltmain_in"; then
19972    test -f Makefile && make "$ltmain"
19973  fi
19974fi
19975
19976
19977ac_ext=c
19978ac_cpp='$CPP $CPPFLAGS'
19979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981ac_compiler_gnu=$ac_cv_c_compiler_gnu
19982
19983CC="$lt_save_CC"
19984
19985	;;
19986
19987      *)
19988	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19989$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19990   { (exit 1); exit 1; }; }
19991	;;
19992      esac
19993
19994      # Append the new tag name to the list of available tags.
19995      if test -n "$tagname" ; then
19996      available_tags="$available_tags $tagname"
19997    fi
19998    fi
19999  done
20000  IFS="$lt_save_ifs"
20001
20002  # Now substitute the updated list of available tags.
20003  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20004    mv "${ofile}T" "$ofile"
20005    chmod +x "$ofile"
20006  else
20007    rm -f "${ofile}T"
20008    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20009$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20010   { (exit 1); exit 1; }; }
20011  fi
20012fi
20013
20014
20015
20016# This can be used to rebuild libtool when needed
20017LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20018
20019# Always use our own libtool.
20020LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20021
20022# Prevent multiple expansion
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20045$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20046if test "${ac_cv_prog_cc_c99+set}" = set; then
20047  $as_echo_n "(cached) " >&6
20048else
20049  ac_cv_prog_cc_c99=no
20050ac_save_CC=$CC
20051cat >conftest.$ac_ext <<_ACEOF
20052/* confdefs.h.  */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
20056/* end confdefs.h.  */
20057#include <stdarg.h>
20058#include <stdbool.h>
20059#include <stdlib.h>
20060#include <wchar.h>
20061#include <stdio.h>
20062
20063// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20064#define debug(...) fprintf (stderr, __VA_ARGS__)
20065#define showlist(...) puts (#__VA_ARGS__)
20066#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20067static void
20068test_varargs_macros (void)
20069{
20070  int x = 1234;
20071  int y = 5678;
20072  debug ("Flag");
20073  debug ("X = %d\n", x);
20074  showlist (The first, second, and third items.);
20075  report (x>y, "x is %d but y is %d", x, y);
20076}
20077
20078// Check long long types.
20079#define BIG64 18446744073709551615ull
20080#define BIG32 4294967295ul
20081#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20082#if !BIG_OK
20083  your preprocessor is broken;
20084#endif
20085#if BIG_OK
20086#else
20087  your preprocessor is broken;
20088#endif
20089static long long int bignum = -9223372036854775807LL;
20090static unsigned long long int ubignum = BIG64;
20091
20092struct incomplete_array
20093{
20094  int datasize;
20095  double data[];
20096};
20097
20098struct named_init {
20099  int number;
20100  const wchar_t *name;
20101  double average;
20102};
20103
20104typedef const char *ccp;
20105
20106static inline int
20107test_restrict (ccp restrict text)
20108{
20109  // See if C++-style comments work.
20110  // Iterate through items via the restricted pointer.
20111  // Also check for declarations in for loops.
20112  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20113    continue;
20114  return 0;
20115}
20116
20117// Check varargs and va_copy.
20118static void
20119test_varargs (const char *format, ...)
20120{
20121  va_list args;
20122  va_start (args, format);
20123  va_list args_copy;
20124  va_copy (args_copy, args);
20125
20126  const char *str;
20127  int number;
20128  float fnumber;
20129
20130  while (*format)
20131    {
20132      switch (*format++)
20133	{
20134	case 's': // string
20135	  str = va_arg (args_copy, const char *);
20136	  break;
20137	case 'd': // int
20138	  number = va_arg (args_copy, int);
20139	  break;
20140	case 'f': // float
20141	  fnumber = va_arg (args_copy, double);
20142	  break;
20143	default:
20144	  break;
20145	}
20146    }
20147  va_end (args_copy);
20148  va_end (args);
20149}
20150
20151int
20152main ()
20153{
20154
20155  // Check bool.
20156  _Bool success = false;
20157
20158  // Check restrict.
20159  if (test_restrict ("String literal") == 0)
20160    success = true;
20161  char *restrict newvar = "Another string";
20162
20163  // Check varargs.
20164  test_varargs ("s, d' f .", "string", 65, 34.234);
20165  test_varargs_macros ();
20166
20167  // Check flexible array members.
20168  struct incomplete_array *ia =
20169    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20170  ia->datasize = 10;
20171  for (int i = 0; i < ia->datasize; ++i)
20172    ia->data[i] = i * 1.234;
20173
20174  // Check named initializers.
20175  struct named_init ni = {
20176    .number = 34,
20177    .name = L"Test wide string",
20178    .average = 543.34343,
20179  };
20180
20181  ni.number = 58;
20182
20183  int dynamic_array[ni.number];
20184  dynamic_array[ni.number - 1] = 543;
20185
20186  // work around unused variable warnings
20187  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20188	  || dynamic_array[ni.number - 1] != 543);
20189
20190  ;
20191  return 0;
20192}
20193_ACEOF
20194for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
20195do
20196  CC="$ac_save_CC $ac_arg"
20197  rm -f conftest.$ac_objext
20198if { (ac_try="$ac_compile"
20199case "(($ac_try" in
20200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201  *) ac_try_echo=$ac_try;;
20202esac
20203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20204$as_echo "$ac_try_echo") >&5
20205  (eval "$ac_compile") 2>conftest.er1
20206  ac_status=$?
20207  grep -v '^ *+' conftest.er1 >conftest.err
20208  rm -f conftest.er1
20209  cat conftest.err >&5
20210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211  (exit $ac_status); } && {
20212	 test -z "$ac_c_werror_flag" ||
20213	 test ! -s conftest.err
20214       } && test -s conftest.$ac_objext; then
20215  ac_cv_prog_cc_c99=$ac_arg
20216else
20217  $as_echo "$as_me: failed program was:" >&5
20218sed 's/^/| /' conftest.$ac_ext >&5
20219
20220
20221fi
20222
20223rm -f core conftest.err conftest.$ac_objext
20224  test "x$ac_cv_prog_cc_c99" != "xno" && break
20225done
20226rm -f conftest.$ac_ext
20227CC=$ac_save_CC
20228
20229fi
20230# AC_CACHE_VAL
20231case "x$ac_cv_prog_cc_c99" in
20232  x)
20233    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20234$as_echo "none needed" >&6; } ;;
20235  xno)
20236    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20237$as_echo "unsupported" >&6; } ;;
20238  *)
20239    CC="$CC $ac_cv_prog_cc_c99"
20240    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20241$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20242esac
20243
20244
20245
20246
20247
20248
20249if  test "x$GCC" = xyes ; then
20250    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20251-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20252-Wbad-function-cast"
20253    case `$CC -dumpversion` in
20254    3.4.* | 4.*)
20255	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20256	;;
20257    esac
20258else
20259    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20260$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20261if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20262  $as_echo_n "(cached) " >&6
20263else
20264  cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h.  */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h.  */
20270$ac_includes_default
20271int
20272main ()
20273{
20274#ifndef __SUNPRO_C
20275  (void) __SUNPRO_C;
20276#endif
20277
20278  ;
20279  return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (ac_try="$ac_compile"
20284case "(($ac_try" in
20285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286  *) ac_try_echo=$ac_try;;
20287esac
20288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20289$as_echo "$ac_try_echo") >&5
20290  (eval "$ac_compile") 2>conftest.er1
20291  ac_status=$?
20292  grep -v '^ *+' conftest.er1 >conftest.err
20293  rm -f conftest.er1
20294  cat conftest.err >&5
20295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296  (exit $ac_status); } && {
20297	 test -z "$ac_c_werror_flag" ||
20298	 test ! -s conftest.err
20299       } && test -s conftest.$ac_objext; then
20300  ac_cv_have_decl___SUNPRO_C=yes
20301else
20302  $as_echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305	ac_cv_have_decl___SUNPRO_C=no
20306fi
20307
20308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309fi
20310{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20311$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20312if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20313  SUNCC="yes"
20314else
20315  SUNCC="no"
20316fi
20317
20318    if test "x$SUNCC" = "xyes"; then
20319	CWARNFLAGS="-v"
20320    fi
20321fi
20322
20323# Check whether --enable-silent-rules was given.
20324if test "${enable_silent_rules+set}" = set; then
20325  enableval=$enable_silent_rules;
20326fi
20327
20328case $enable_silent_rules in
20329yes) AM_DEFAULT_VERBOSITY=0;;
20330no)  AM_DEFAULT_VERBOSITY=1;;
20331*)   AM_DEFAULT_VERBOSITY=0;;
20332esac
20333AM_BACKSLASH='\'
20334
20335
20336
20337
20338
20339
20340
20341# Check whether --enable-strict-compilation was given.
20342if test "${enable_strict_compilation+set}" = set; then
20343  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20344else
20345  STRICT_COMPILE=no
20346fi
20347
20348if test "x$STRICT_COMPILE" = "xyes"; then
20349	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20350$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20351if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20352  $as_echo_n "(cached) " >&6
20353else
20354  cat >conftest.$ac_ext <<_ACEOF
20355/* confdefs.h.  */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h.  */
20360$ac_includes_default
20361int
20362main ()
20363{
20364#ifndef __SUNPRO_C
20365  (void) __SUNPRO_C;
20366#endif
20367
20368  ;
20369  return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (ac_try="$ac_compile"
20374case "(($ac_try" in
20375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376  *) ac_try_echo=$ac_try;;
20377esac
20378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20379$as_echo "$ac_try_echo") >&5
20380  (eval "$ac_compile") 2>conftest.er1
20381  ac_status=$?
20382  grep -v '^ *+' conftest.er1 >conftest.err
20383  rm -f conftest.er1
20384  cat conftest.err >&5
20385  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386  (exit $ac_status); } && {
20387	 test -z "$ac_c_werror_flag" ||
20388	 test ! -s conftest.err
20389       } && test -s conftest.$ac_objext; then
20390  ac_cv_have_decl___SUNPRO_C=yes
20391else
20392  $as_echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395	ac_cv_have_decl___SUNPRO_C=no
20396fi
20397
20398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399fi
20400{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20401$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20402if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20403  SUNCC="yes"
20404else
20405  SUNCC="no"
20406fi
20407
20408	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
20409$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
20410if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
20411  $as_echo_n "(cached) " >&6
20412else
20413  cat >conftest.$ac_ext <<_ACEOF
20414/* confdefs.h.  */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h.  */
20419$ac_includes_default
20420int
20421main ()
20422{
20423#ifndef __INTEL_COMPILER
20424  (void) __INTEL_COMPILER;
20425#endif
20426
20427  ;
20428  return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (ac_try="$ac_compile"
20433case "(($ac_try" in
20434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435  *) ac_try_echo=$ac_try;;
20436esac
20437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20438$as_echo "$ac_try_echo") >&5
20439  (eval "$ac_compile") 2>conftest.er1
20440  ac_status=$?
20441  grep -v '^ *+' conftest.er1 >conftest.err
20442  rm -f conftest.er1
20443  cat conftest.err >&5
20444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445  (exit $ac_status); } && {
20446	 test -z "$ac_c_werror_flag" ||
20447	 test ! -s conftest.err
20448       } && test -s conftest.$ac_objext; then
20449  ac_cv_have_decl___INTEL_COMPILER=yes
20450else
20451  $as_echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454	ac_cv_have_decl___INTEL_COMPILER=no
20455fi
20456
20457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458fi
20459{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
20460$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
20461if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
20462  INTELCC="yes"
20463else
20464  INTELCC="no"
20465fi
20466
20467	if test "x$GCC" = xyes ; then
20468		STRICT_CFLAGS="-pedantic -Werror"
20469	elif test "x$SUNCC" = "xyes"; then
20470		STRICT_CFLAGS="-errwarn"
20471    elif test "x$INTELCC" = "xyes"; then
20472		STRICT_CFLAGS="-Werror"
20473	fi
20474fi
20475CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20476
20477
20478
20479
20480# Check whether --with-release-version was given.
20481if test "${with_release_version+set}" = set; then
20482  withval=$with_release_version; RELEASE_VERSION="$withval"
20483else
20484  RELEASE_VERSION=""
20485fi
20486
20487	if test "x$RELEASE_VERSION" != "x"; then
20488		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20489		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20490		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20491$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20492	fi
20493
20494cat >>confdefs.h <<_ACEOF
20495#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20496_ACEOF
20497
20498	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20499	if test "x$PVM" = "x"; then
20500		PVM="0"
20501	fi
20502
20503cat >>confdefs.h <<_ACEOF
20504#define PACKAGE_VERSION_MINOR $PVM
20505_ACEOF
20506
20507	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20508	if test "x$PVP" = "x"; then
20509		PVP="0"
20510	fi
20511
20512cat >>confdefs.h <<_ACEOF
20513#define PACKAGE_VERSION_PATCHLEVEL $PVP
20514_ACEOF
20515
20516
20517
20518CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20519mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20520echo 'git directory not found: installing possibly empty changelog.' >&2)"
20521
20522distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20523
20524
20525
20526
20527
20528if test x$APP_MAN_SUFFIX = x    ; then
20529    APP_MAN_SUFFIX=1
20530fi
20531if test x$APP_MAN_DIR = x    ; then
20532    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20533fi
20534
20535if test x$LIB_MAN_SUFFIX = x    ; then
20536    LIB_MAN_SUFFIX=3
20537fi
20538if test x$LIB_MAN_DIR = x    ; then
20539    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20540fi
20541
20542if test x$FILE_MAN_SUFFIX = x    ; then
20543    case $host_os in
20544	solaris*)	FILE_MAN_SUFFIX=4  ;;
20545	*)		FILE_MAN_SUFFIX=5  ;;
20546    esac
20547fi
20548if test x$FILE_MAN_DIR = x    ; then
20549    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20550fi
20551
20552if test x$MISC_MAN_SUFFIX = x    ; then
20553    case $host_os in
20554	solaris*)	MISC_MAN_SUFFIX=5  ;;
20555	*)		MISC_MAN_SUFFIX=7  ;;
20556    esac
20557fi
20558if test x$MISC_MAN_DIR = x    ; then
20559    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20560fi
20561
20562if test x$DRIVER_MAN_SUFFIX = x    ; then
20563    case $host_os in
20564	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20565	*)		DRIVER_MAN_SUFFIX=4  ;;
20566    esac
20567fi
20568if test x$DRIVER_MAN_DIR = x    ; then
20569    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20570fi
20571
20572if test x$ADMIN_MAN_SUFFIX = x    ; then
20573    case $host_os in
20574	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20575	*)		ADMIN_MAN_SUFFIX=8  ;;
20576    esac
20577fi
20578if test x$ADMIN_MAN_DIR = x    ; then
20579    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20580fi
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599# Extract the first word of "xmlto", so it can be a program name with args.
20600set dummy xmlto; ac_word=$2
20601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20602$as_echo_n "checking for $ac_word... " >&6; }
20603if test "${ac_cv_path_XMLTO+set}" = set; then
20604  $as_echo_n "(cached) " >&6
20605else
20606  case $XMLTO in
20607  [\\/]* | ?:[\\/]*)
20608  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20609  ;;
20610  *)
20611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20612for as_dir in $PATH
20613do
20614  IFS=$as_save_IFS
20615  test -z "$as_dir" && as_dir=.
20616  for ac_exec_ext in '' $ac_executable_extensions; do
20617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20618    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
20619    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20620    break 2
20621  fi
20622done
20623done
20624IFS=$as_save_IFS
20625
20626  ;;
20627esac
20628fi
20629XMLTO=$ac_cv_path_XMLTO
20630if test -n "$XMLTO"; then
20631  { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
20632$as_echo "$XMLTO" >&6; }
20633else
20634  { $as_echo "$as_me:$LINENO: result: no" >&5
20635$as_echo "no" >&6; }
20636fi
20637
20638
20639 if test "x$XMLTO" != "x"; then
20640  HAVE_XMLTO_TRUE=
20641  HAVE_XMLTO_FALSE='#'
20642else
20643  HAVE_XMLTO_TRUE='#'
20644  HAVE_XMLTO_FALSE=
20645fi
20646
20647if test "x$XMLTO" = "x" -a ! -f $srcdir/man/Xcomposite.man ; then
20648	{ $as_echo "$as_me:$LINENO: WARNING: xmlto not found - cannot create man pages without it" >&5
20649$as_echo "$as_me: WARNING: xmlto not found - cannot create man pages without it" >&2;}
20650fi
20651
20652# Check compositeext configuration, strip extra digits from package version to
20653# find the required protocol version
20654
20655if test "$VERSION" = "" ; then
20656       VERSION=$PACKAGE_VERSION;
20657fi
20658COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
20659
20660
20661
20662if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20663	if test -n "$ac_tool_prefix"; then
20664  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20665set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20667$as_echo_n "checking for $ac_word... " >&6; }
20668if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20669  $as_echo_n "(cached) " >&6
20670else
20671  case $PKG_CONFIG in
20672  [\\/]* | ?:[\\/]*)
20673  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20674  ;;
20675  *)
20676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20677for as_dir in $PATH
20678do
20679  IFS=$as_save_IFS
20680  test -z "$as_dir" && as_dir=.
20681  for ac_exec_ext in '' $ac_executable_extensions; do
20682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20683    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20684    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20685    break 2
20686  fi
20687done
20688done
20689IFS=$as_save_IFS
20690
20691  ;;
20692esac
20693fi
20694PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20695if test -n "$PKG_CONFIG"; then
20696  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20697$as_echo "$PKG_CONFIG" >&6; }
20698else
20699  { $as_echo "$as_me:$LINENO: result: no" >&5
20700$as_echo "no" >&6; }
20701fi
20702
20703
20704fi
20705if test -z "$ac_cv_path_PKG_CONFIG"; then
20706  ac_pt_PKG_CONFIG=$PKG_CONFIG
20707  # Extract the first word of "pkg-config", so it can be a program name with args.
20708set dummy pkg-config; ac_word=$2
20709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20710$as_echo_n "checking for $ac_word... " >&6; }
20711if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20712  $as_echo_n "(cached) " >&6
20713else
20714  case $ac_pt_PKG_CONFIG in
20715  [\\/]* | ?:[\\/]*)
20716  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20717  ;;
20718  *)
20719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20720for as_dir in $PATH
20721do
20722  IFS=$as_save_IFS
20723  test -z "$as_dir" && as_dir=.
20724  for ac_exec_ext in '' $ac_executable_extensions; do
20725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20726    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20727    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20728    break 2
20729  fi
20730done
20731done
20732IFS=$as_save_IFS
20733
20734  ;;
20735esac
20736fi
20737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20738if test -n "$ac_pt_PKG_CONFIG"; then
20739  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20740$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20741else
20742  { $as_echo "$as_me:$LINENO: result: no" >&5
20743$as_echo "no" >&6; }
20744fi
20745
20746  if test "x$ac_pt_PKG_CONFIG" = x; then
20747    PKG_CONFIG=""
20748  else
20749    case $cross_compiling:$ac_tool_warned in
20750yes:)
20751{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20753ac_tool_warned=yes ;;
20754esac
20755    PKG_CONFIG=$ac_pt_PKG_CONFIG
20756  fi
20757else
20758  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20759fi
20760
20761fi
20762if test -n "$PKG_CONFIG"; then
20763	_pkg_min_version=0.9.0
20764	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20765$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20766	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20767		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20768$as_echo "yes" >&6; }
20769	else
20770		{ $as_echo "$as_me:$LINENO: result: no" >&5
20771$as_echo "no" >&6; }
20772		PKG_CONFIG=""
20773	fi
20774
20775fi
20776
20777pkg_failed=no
20778{ $as_echo "$as_me:$LINENO: checking for XCOMPOSITE" >&5
20779$as_echo_n "checking for XCOMPOSITE... " >&6; }
20780
20781if test -n "$XCOMPOSITE_CFLAGS"; then
20782    pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
20783 elif test -n "$PKG_CONFIG"; then
20784    if test -n "$PKG_CONFIG" && \
20785    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
20786  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20787  ac_status=$?
20788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789  (exit $ac_status); }; then
20790  pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20791else
20792  pkg_failed=yes
20793fi
20794 else
20795    pkg_failed=untried
20796fi
20797if test -n "$XCOMPOSITE_LIBS"; then
20798    pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
20799 elif test -n "$PKG_CONFIG"; then
20800    if test -n "$PKG_CONFIG" && \
20801    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11 xfixes xext fixesproto\"") >&5
20802  ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto") 2>&5
20803  ac_status=$?
20804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805  (exit $ac_status); }; then
20806  pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>/dev/null`
20807else
20808  pkg_failed=yes
20809fi
20810 else
20811    pkg_failed=untried
20812fi
20813
20814
20815
20816if test $pkg_failed = yes; then
20817
20818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20819        _pkg_short_errors_supported=yes
20820else
20821        _pkg_short_errors_supported=no
20822fi
20823        if test $_pkg_short_errors_supported = yes; then
20824	        XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>&1`
20825        else
20826	        XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto" 2>&1`
20827        fi
20828	# Put the nasty error message in config.log where it belongs
20829	echo "$XCOMPOSITE_PKG_ERRORS" >&5
20830
20831	{ { $as_echo "$as_me:$LINENO: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
20832
20833$XCOMPOSITE_PKG_ERRORS
20834
20835Consider adjusting the PKG_CONFIG_PATH environment variable if you
20836installed software in a non-standard prefix.
20837
20838Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20839and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20840See the pkg-config man page for more details.
20841" >&5
20842$as_echo "$as_me: error: Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11 xfixes xext fixesproto) were not met:
20843
20844$XCOMPOSITE_PKG_ERRORS
20845
20846Consider adjusting the PKG_CONFIG_PATH environment variable if you
20847installed software in a non-standard prefix.
20848
20849Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20850and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20851See the pkg-config man page for more details.
20852" >&2;}
20853   { (exit 1); exit 1; }; }
20854elif test $pkg_failed = untried; then
20855	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20857{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20858is in your PATH or set the PKG_CONFIG environment variable to the full
20859path to pkg-config.
20860
20861Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20862and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20863See the pkg-config man page for more details.
20864
20865To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20866See \`config.log' for more details." >&5
20867$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20868is in your PATH or set the PKG_CONFIG environment variable to the full
20869path to pkg-config.
20870
20871Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20872and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20873See the pkg-config man page for more details.
20874
20875To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20876See \`config.log' for more details." >&2;}
20877   { (exit 1); exit 1; }; }; }
20878else
20879	XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
20880	XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
20881        { $as_echo "$as_me:$LINENO: result: yes" >&5
20882$as_echo "yes" >&6; }
20883	:
20884fi
20885
20886
20887
20888ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc"
20889
20890cat >confcache <<\_ACEOF
20891# This file is a shell script that caches the results of configure
20892# tests run on this system so they can be shared between configure
20893# scripts and configure runs, see configure's option --config-cache.
20894# It is not useful on other systems.  If it contains results you don't
20895# want to keep, you may remove or edit it.
20896#
20897# config.status only pays attention to the cache file if you give it
20898# the --recheck option to rerun configure.
20899#
20900# `ac_cv_env_foo' variables (set or unset) will be overridden when
20901# loading this file, other *unset* `ac_cv_foo' will be assigned the
20902# following values.
20903
20904_ACEOF
20905
20906# The following way of writing the cache mishandles newlines in values,
20907# but we know of no workaround that is simple, portable, and efficient.
20908# So, we kill variables containing newlines.
20909# Ultrix sh set writes to stderr and can't be redirected directly,
20910# and sets the high bit in the cache file unless we assign to the vars.
20911(
20912  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20913    eval ac_val=\$$ac_var
20914    case $ac_val in #(
20915    *${as_nl}*)
20916      case $ac_var in #(
20917      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20918$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20919      esac
20920      case $ac_var in #(
20921      _ | IFS | as_nl) ;; #(
20922      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20923      *) $as_unset $ac_var ;;
20924      esac ;;
20925    esac
20926  done
20927
20928  (set) 2>&1 |
20929    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20930    *${as_nl}ac_space=\ *)
20931      # `set' does not quote correctly, so add quotes (double-quote
20932      # substitution turns \\\\ into \\, and sed turns \\ into \).
20933      sed -n \
20934	"s/'/'\\\\''/g;
20935	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20936      ;; #(
20937    *)
20938      # `set' quotes correctly as required by POSIX, so do not add quotes.
20939      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20940      ;;
20941    esac |
20942    sort
20943) |
20944  sed '
20945     /^ac_cv_env_/b end
20946     t clear
20947     :clear
20948     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20949     t end
20950     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20951     :end' >>confcache
20952if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20953  if test -w "$cache_file"; then
20954    test "x$cache_file" != "x/dev/null" &&
20955      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20956$as_echo "$as_me: updating cache $cache_file" >&6;}
20957    cat confcache >$cache_file
20958  else
20959    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20960$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20961  fi
20962fi
20963rm -f confcache
20964
20965test "x$prefix" = xNONE && prefix=$ac_default_prefix
20966# Let make expand exec_prefix.
20967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20968
20969DEFS=-DHAVE_CONFIG_H
20970
20971ac_libobjs=
20972ac_ltlibobjs=
20973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20974  # 1. Remove the extension, and $U if already installed.
20975  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20976  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20977  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20978  #    will be set to the directory where LIBOBJS objects are built.
20979  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20980  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20981done
20982LIBOBJS=$ac_libobjs
20983
20984LTLIBOBJS=$ac_ltlibobjs
20985
20986
20987 if test -n "$EXEEXT"; then
20988  am__EXEEXT_TRUE=
20989  am__EXEEXT_FALSE='#'
20990else
20991  am__EXEEXT_TRUE='#'
20992  am__EXEEXT_FALSE=
20993fi
20994
20995if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20996  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20997Usually this means the macro was only invoked conditionally." >&5
20998$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20999Usually this means the macro was only invoked conditionally." >&2;}
21000   { (exit 1); exit 1; }; }
21001fi
21002if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21003  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21004Usually this means the macro was only invoked conditionally." >&5
21005$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21006Usually this means the macro was only invoked conditionally." >&2;}
21007   { (exit 1); exit 1; }; }
21008fi
21009if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21010  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21011Usually this means the macro was only invoked conditionally." >&5
21012$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21013Usually this means the macro was only invoked conditionally." >&2;}
21014   { (exit 1); exit 1; }; }
21015fi
21016if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21017  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21018Usually this means the macro was only invoked conditionally." >&5
21019$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21020Usually this means the macro was only invoked conditionally." >&2;}
21021   { (exit 1); exit 1; }; }
21022fi
21023if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21024  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
21025Usually this means the macro was only invoked conditionally." >&5
21026$as_echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
21027Usually this means the macro was only invoked conditionally." >&2;}
21028   { (exit 1); exit 1; }; }
21029fi
21030
21031: ${CONFIG_STATUS=./config.status}
21032ac_write_fail=0
21033ac_clean_files_save=$ac_clean_files
21034ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21035{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21036$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21037cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21038#! $SHELL
21039# Generated by $as_me.
21040# Run this file to recreate the current configuration.
21041# Compiler output produced by configure, useful for debugging
21042# configure, is in config.log if it exists.
21043
21044debug=false
21045ac_cs_recheck=false
21046ac_cs_silent=false
21047SHELL=\${CONFIG_SHELL-$SHELL}
21048_ACEOF
21049
21050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21051## --------------------- ##
21052## M4sh Initialization.  ##
21053## --------------------- ##
21054
21055# Be more Bourne compatible
21056DUALCASE=1; export DUALCASE # for MKS sh
21057if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21058  emulate sh
21059  NULLCMD=:
21060  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21061  # is contrary to our usage.  Disable this feature.
21062  alias -g '${1+"$@"}'='"$@"'
21063  setopt NO_GLOB_SUBST
21064else
21065  case `(set -o) 2>/dev/null` in
21066  *posix*) set -o posix ;;
21067esac
21068
21069fi
21070
21071
21072
21073
21074# PATH needs CR
21075# Avoid depending upon Character Ranges.
21076as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21078as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21079as_cr_digits='0123456789'
21080as_cr_alnum=$as_cr_Letters$as_cr_digits
21081
21082as_nl='
21083'
21084export as_nl
21085# Printing a long string crashes Solaris 7 /usr/bin/printf.
21086as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21088as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21089if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21090  as_echo='printf %s\n'
21091  as_echo_n='printf %s'
21092else
21093  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21094    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21095    as_echo_n='/usr/ucb/echo -n'
21096  else
21097    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21098    as_echo_n_body='eval
21099      arg=$1;
21100      case $arg in
21101      *"$as_nl"*)
21102	expr "X$arg" : "X\\(.*\\)$as_nl";
21103	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21104      esac;
21105      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21106    '
21107    export as_echo_n_body
21108    as_echo_n='sh -c $as_echo_n_body as_echo'
21109  fi
21110  export as_echo_body
21111  as_echo='sh -c $as_echo_body as_echo'
21112fi
21113
21114# The user is always right.
21115if test "${PATH_SEPARATOR+set}" != set; then
21116  PATH_SEPARATOR=:
21117  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21118    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21119      PATH_SEPARATOR=';'
21120  }
21121fi
21122
21123# Support unset when possible.
21124if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21125  as_unset=unset
21126else
21127  as_unset=false
21128fi
21129
21130
21131# IFS
21132# We need space, tab and new line, in precisely that order.  Quoting is
21133# there to prevent editors from complaining about space-tab.
21134# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21135# splitting by setting IFS to empty value.)
21136IFS=" ""	$as_nl"
21137
21138# Find who we are.  Look in the path if we contain no directory separator.
21139case $0 in
21140  *[\\/]* ) as_myself=$0 ;;
21141  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21142for as_dir in $PATH
21143do
21144  IFS=$as_save_IFS
21145  test -z "$as_dir" && as_dir=.
21146  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21147done
21148IFS=$as_save_IFS
21149
21150     ;;
21151esac
21152# We did not find ourselves, most probably we were run as `sh COMMAND'
21153# in which case we are not to be found in the path.
21154if test "x$as_myself" = x; then
21155  as_myself=$0
21156fi
21157if test ! -f "$as_myself"; then
21158  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21159  { (exit 1); exit 1; }
21160fi
21161
21162# Work around bugs in pre-3.0 UWIN ksh.
21163for as_var in ENV MAIL MAILPATH
21164do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21165done
21166PS1='$ '
21167PS2='> '
21168PS4='+ '
21169
21170# NLS nuisances.
21171LC_ALL=C
21172export LC_ALL
21173LANGUAGE=C
21174export LANGUAGE
21175
21176# Required to use basename.
21177if expr a : '\(a\)' >/dev/null 2>&1 &&
21178   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21179  as_expr=expr
21180else
21181  as_expr=false
21182fi
21183
21184if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21185  as_basename=basename
21186else
21187  as_basename=false
21188fi
21189
21190
21191# Name of the executable.
21192as_me=`$as_basename -- "$0" ||
21193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21194	 X"$0" : 'X\(//\)$' \| \
21195	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21196$as_echo X/"$0" |
21197    sed '/^.*\/\([^/][^/]*\)\/*$/{
21198	    s//\1/
21199	    q
21200	  }
21201	  /^X\/\(\/\/\)$/{
21202	    s//\1/
21203	    q
21204	  }
21205	  /^X\/\(\/\).*/{
21206	    s//\1/
21207	    q
21208	  }
21209	  s/.*/./; q'`
21210
21211# CDPATH.
21212$as_unset CDPATH
21213
21214
21215
21216  as_lineno_1=$LINENO
21217  as_lineno_2=$LINENO
21218  test "x$as_lineno_1" != "x$as_lineno_2" &&
21219  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21220
21221  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21222  # uniformly replaced by the line number.  The first 'sed' inserts a
21223  # line-number line after each line using $LINENO; the second 'sed'
21224  # does the real work.  The second script uses 'N' to pair each
21225  # line-number line with the line containing $LINENO, and appends
21226  # trailing '-' during substitution so that $LINENO is not a special
21227  # case at line end.
21228  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21229  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21230  # E. McMahon (1931-1989) for sed's syntax.  :-)
21231  sed -n '
21232    p
21233    /[$]LINENO/=
21234  ' <$as_myself |
21235    sed '
21236      s/[$]LINENO.*/&-/
21237      t lineno
21238      b
21239      :lineno
21240      N
21241      :loop
21242      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21243      t loop
21244      s/-\n.*//
21245    ' >$as_me.lineno &&
21246  chmod +x "$as_me.lineno" ||
21247    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21248   { (exit 1); exit 1; }; }
21249
21250  # Don't try to exec as it changes $[0], causing all sort of problems
21251  # (the dirname of $[0] is not the place where we might find the
21252  # original and so on.  Autoconf is especially sensitive to this).
21253  . "./$as_me.lineno"
21254  # Exit status is that of the last command.
21255  exit
21256}
21257
21258
21259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21260  as_dirname=dirname
21261else
21262  as_dirname=false
21263fi
21264
21265ECHO_C= ECHO_N= ECHO_T=
21266case `echo -n x` in
21267-n*)
21268  case `echo 'x\c'` in
21269  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21270  *)   ECHO_C='\c';;
21271  esac;;
21272*)
21273  ECHO_N='-n';;
21274esac
21275if expr a : '\(a\)' >/dev/null 2>&1 &&
21276   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21277  as_expr=expr
21278else
21279  as_expr=false
21280fi
21281
21282rm -f conf$$ conf$$.exe conf$$.file
21283if test -d conf$$.dir; then
21284  rm -f conf$$.dir/conf$$.file
21285else
21286  rm -f conf$$.dir
21287  mkdir conf$$.dir 2>/dev/null
21288fi
21289if (echo >conf$$.file) 2>/dev/null; then
21290  if ln -s conf$$.file conf$$ 2>/dev/null; then
21291    as_ln_s='ln -s'
21292    # ... but there are two gotchas:
21293    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21294    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21295    # In both cases, we have to default to `cp -p'.
21296    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21297      as_ln_s='cp -p'
21298  elif ln conf$$.file conf$$ 2>/dev/null; then
21299    as_ln_s=ln
21300  else
21301    as_ln_s='cp -p'
21302  fi
21303else
21304  as_ln_s='cp -p'
21305fi
21306rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21307rmdir conf$$.dir 2>/dev/null
21308
21309if mkdir -p . 2>/dev/null; then
21310  as_mkdir_p=:
21311else
21312  test -d ./-p && rmdir ./-p
21313  as_mkdir_p=false
21314fi
21315
21316if test -x / >/dev/null 2>&1; then
21317  as_test_x='test -x'
21318else
21319  if ls -dL / >/dev/null 2>&1; then
21320    as_ls_L_option=L
21321  else
21322    as_ls_L_option=
21323  fi
21324  as_test_x='
21325    eval sh -c '\''
21326      if test -d "$1"; then
21327	test -d "$1/.";
21328      else
21329	case $1 in
21330	-*)set "./$1";;
21331	esac;
21332	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21333	???[sx]*):;;*)false;;esac;fi
21334    '\'' sh
21335  '
21336fi
21337as_executable_p=$as_test_x
21338
21339# Sed expression to map a string onto a valid CPP name.
21340as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21341
21342# Sed expression to map a string onto a valid variable name.
21343as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21344
21345
21346exec 6>&1
21347
21348# Save the log message, to keep $[0] and so on meaningful, and to
21349# report actual input values of CONFIG_FILES etc. instead of their
21350# values after options handling.
21351ac_log="
21352This file was extended by libXcomposite $as_me 0.4.1, which was
21353generated by GNU Autoconf 2.63.  Invocation command line was
21354
21355  CONFIG_FILES    = $CONFIG_FILES
21356  CONFIG_HEADERS  = $CONFIG_HEADERS
21357  CONFIG_LINKS    = $CONFIG_LINKS
21358  CONFIG_COMMANDS = $CONFIG_COMMANDS
21359  $ $0 $@
21360
21361on `(hostname || uname -n) 2>/dev/null | sed 1q`
21362"
21363
21364_ACEOF
21365
21366case $ac_config_files in *"
21367"*) set x $ac_config_files; shift; ac_config_files=$*;;
21368esac
21369
21370case $ac_config_headers in *"
21371"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21372esac
21373
21374
21375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21376# Files that config.status was made for.
21377config_files="$ac_config_files"
21378config_headers="$ac_config_headers"
21379config_commands="$ac_config_commands"
21380
21381_ACEOF
21382
21383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384ac_cs_usage="\
21385\`$as_me' instantiates files from templates according to the
21386current configuration.
21387
21388Usage: $0 [OPTION]... [FILE]...
21389
21390  -h, --help       print this help, then exit
21391  -V, --version    print version number and configuration settings, then exit
21392  -q, --quiet, --silent
21393                   do not print progress messages
21394  -d, --debug      don't remove temporary files
21395      --recheck    update $as_me by reconfiguring in the same conditions
21396      --file=FILE[:TEMPLATE]
21397                   instantiate the configuration file FILE
21398      --header=FILE[:TEMPLATE]
21399                   instantiate the configuration header FILE
21400
21401Configuration files:
21402$config_files
21403
21404Configuration headers:
21405$config_headers
21406
21407Configuration commands:
21408$config_commands
21409
21410Report bugs to <bug-autoconf@gnu.org>."
21411
21412_ACEOF
21413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21414ac_cs_version="\\
21415libXcomposite config.status 0.4.1
21416configured by $0, generated by GNU Autoconf 2.63,
21417  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21418
21419Copyright (C) 2008 Free Software Foundation, Inc.
21420This config.status script is free software; the Free Software Foundation
21421gives unlimited permission to copy, distribute and modify it."
21422
21423ac_pwd='$ac_pwd'
21424srcdir='$srcdir'
21425INSTALL='$INSTALL'
21426MKDIR_P='$MKDIR_P'
21427AWK='$AWK'
21428test -n "\$AWK" || AWK=awk
21429_ACEOF
21430
21431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21432# The default lists apply if the user does not specify any file.
21433ac_need_defaults=:
21434while test $# != 0
21435do
21436  case $1 in
21437  --*=*)
21438    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21439    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21440    ac_shift=:
21441    ;;
21442  *)
21443    ac_option=$1
21444    ac_optarg=$2
21445    ac_shift=shift
21446    ;;
21447  esac
21448
21449  case $ac_option in
21450  # Handling of the options.
21451  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21452    ac_cs_recheck=: ;;
21453  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21454    $as_echo "$ac_cs_version"; exit ;;
21455  --debug | --debu | --deb | --de | --d | -d )
21456    debug=: ;;
21457  --file | --fil | --fi | --f )
21458    $ac_shift
21459    case $ac_optarg in
21460    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21461    esac
21462    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21463    ac_need_defaults=false;;
21464  --header | --heade | --head | --hea )
21465    $ac_shift
21466    case $ac_optarg in
21467    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21468    esac
21469    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21470    ac_need_defaults=false;;
21471  --he | --h)
21472    # Conflict between --help and --header
21473    { $as_echo "$as_me: error: ambiguous option: $1
21474Try \`$0 --help' for more information." >&2
21475   { (exit 1); exit 1; }; };;
21476  --help | --hel | -h )
21477    $as_echo "$ac_cs_usage"; exit ;;
21478  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21479  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21480    ac_cs_silent=: ;;
21481
21482  # This is an error.
21483  -*) { $as_echo "$as_me: error: unrecognized option: $1
21484Try \`$0 --help' for more information." >&2
21485   { (exit 1); exit 1; }; } ;;
21486
21487  *) ac_config_targets="$ac_config_targets $1"
21488     ac_need_defaults=false ;;
21489
21490  esac
21491  shift
21492done
21493
21494ac_configure_extra_args=
21495
21496if $ac_cs_silent; then
21497  exec 6>/dev/null
21498  ac_configure_extra_args="$ac_configure_extra_args --silent"
21499fi
21500
21501_ACEOF
21502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21503if \$ac_cs_recheck; then
21504  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21505  shift
21506  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21507  CONFIG_SHELL='$SHELL'
21508  export CONFIG_SHELL
21509  exec "\$@"
21510fi
21511
21512_ACEOF
21513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21514exec 5>>config.log
21515{
21516  echo
21517  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21518## Running $as_me. ##
21519_ASBOX
21520  $as_echo "$ac_log"
21521} >&5
21522
21523_ACEOF
21524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21525#
21526# INIT-COMMANDS
21527#
21528AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21529
21530_ACEOF
21531
21532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21533
21534# Handling of arguments.
21535for ac_config_target in $ac_config_targets
21536do
21537  case $ac_config_target in
21538    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21539    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21540    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21541    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21542    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21543    "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
21544
21545  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21546$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21547   { (exit 1); exit 1; }; };;
21548  esac
21549done
21550
21551
21552# If the user did not use the arguments to specify the items to instantiate,
21553# then the envvar interface is used.  Set only those that are not.
21554# We use the long form for the default assignment because of an extremely
21555# bizarre bug on SunOS 4.1.3.
21556if $ac_need_defaults; then
21557  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21558  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21559  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21560fi
21561
21562# Have a temporary directory for convenience.  Make it in the build tree
21563# simply because there is no reason against having it here, and in addition,
21564# creating and moving files from /tmp can sometimes cause problems.
21565# Hook for its removal unless debugging.
21566# Note that there is a small window in which the directory will not be cleaned:
21567# after its creation but before its name has been assigned to `$tmp'.
21568$debug ||
21569{
21570  tmp=
21571  trap 'exit_status=$?
21572  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21573' 0
21574  trap '{ (exit 1); exit 1; }' 1 2 13 15
21575}
21576# Create a (secure) tmp directory for tmp files.
21577
21578{
21579  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21580  test -n "$tmp" && test -d "$tmp"
21581}  ||
21582{
21583  tmp=./conf$$-$RANDOM
21584  (umask 077 && mkdir "$tmp")
21585} ||
21586{
21587   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21588   { (exit 1); exit 1; }
21589}
21590
21591# Set up the scripts for CONFIG_FILES section.
21592# No need to generate them if there are no CONFIG_FILES.
21593# This happens for instance with `./config.status config.h'.
21594if test -n "$CONFIG_FILES"; then
21595
21596
21597ac_cr='
21598'
21599ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21600if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21601  ac_cs_awk_cr='\\r'
21602else
21603  ac_cs_awk_cr=$ac_cr
21604fi
21605
21606echo 'BEGIN {' >"$tmp/subs1.awk" &&
21607_ACEOF
21608
21609
21610{
21611  echo "cat >conf$$subs.awk <<_ACEOF" &&
21612  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21613  echo "_ACEOF"
21614} >conf$$subs.sh ||
21615  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21616$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21617   { (exit 1); exit 1; }; }
21618ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21619ac_delim='%!_!# '
21620for ac_last_try in false false false false false :; do
21621  . ./conf$$subs.sh ||
21622    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21623$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21624   { (exit 1); exit 1; }; }
21625
21626  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21627  if test $ac_delim_n = $ac_delim_num; then
21628    break
21629  elif $ac_last_try; then
21630    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21631$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21632   { (exit 1); exit 1; }; }
21633  else
21634    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21635  fi
21636done
21637rm -f conf$$subs.sh
21638
21639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21640cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21641_ACEOF
21642sed -n '
21643h
21644s/^/S["/; s/!.*/"]=/
21645p
21646g
21647s/^[^!]*!//
21648:repl
21649t repl
21650s/'"$ac_delim"'$//
21651t delim
21652:nl
21653h
21654s/\(.\{148\}\).*/\1/
21655t more1
21656s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21657p
21658n
21659b repl
21660:more1
21661s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21662p
21663g
21664s/.\{148\}//
21665t nl
21666:delim
21667h
21668s/\(.\{148\}\).*/\1/
21669t more2
21670s/["\\]/\\&/g; s/^/"/; s/$/"/
21671p
21672b
21673:more2
21674s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21675p
21676g
21677s/.\{148\}//
21678t delim
21679' <conf$$subs.awk | sed '
21680/^[^""]/{
21681  N
21682  s/\n//
21683}
21684' >>$CONFIG_STATUS || ac_write_fail=1
21685rm -f conf$$subs.awk
21686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21687_ACAWK
21688cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21689  for (key in S) S_is_set[key] = 1
21690  FS = ""
21691
21692}
21693{
21694  line = $ 0
21695  nfields = split(line, field, "@")
21696  substed = 0
21697  len = length(field[1])
21698  for (i = 2; i < nfields; i++) {
21699    key = field[i]
21700    keylen = length(key)
21701    if (S_is_set[key]) {
21702      value = S[key]
21703      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21704      len += length(value) + length(field[++i])
21705      substed = 1
21706    } else
21707      len += 1 + keylen
21708  }
21709
21710  print line
21711}
21712
21713_ACAWK
21714_ACEOF
21715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21716if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21717  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21718else
21719  cat
21720fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21721  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21722$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21723   { (exit 1); exit 1; }; }
21724_ACEOF
21725
21726# VPATH may cause trouble with some makes, so we remove $(srcdir),
21727# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21728# trailing colons and then remove the whole line if VPATH becomes empty
21729# (actually we leave an empty line to preserve line numbers).
21730if test "x$srcdir" = x.; then
21731  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21732s/:*\$(srcdir):*/:/
21733s/:*\${srcdir}:*/:/
21734s/:*@srcdir@:*/:/
21735s/^\([^=]*=[	 ]*\):*/\1/
21736s/:*$//
21737s/^[^=]*=[	 ]*$//
21738}'
21739fi
21740
21741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21742fi # test -n "$CONFIG_FILES"
21743
21744# Set up the scripts for CONFIG_HEADERS section.
21745# No need to generate them if there are no CONFIG_HEADERS.
21746# This happens for instance with `./config.status Makefile'.
21747if test -n "$CONFIG_HEADERS"; then
21748cat >"$tmp/defines.awk" <<\_ACAWK ||
21749BEGIN {
21750_ACEOF
21751
21752# Transform confdefs.h into an awk script `defines.awk', embedded as
21753# here-document in config.status, that substitutes the proper values into
21754# config.h.in to produce config.h.
21755
21756# Create a delimiter string that does not exist in confdefs.h, to ease
21757# handling of long lines.
21758ac_delim='%!_!# '
21759for ac_last_try in false false :; do
21760  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21761  if test -z "$ac_t"; then
21762    break
21763  elif $ac_last_try; then
21764    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21765$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21766   { (exit 1); exit 1; }; }
21767  else
21768    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21769  fi
21770done
21771
21772# For the awk script, D is an array of macro values keyed by name,
21773# likewise P contains macro parameters if any.  Preserve backslash
21774# newline sequences.
21775
21776ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21777sed -n '
21778s/.\{148\}/&'"$ac_delim"'/g
21779t rset
21780:rset
21781s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21782t def
21783d
21784:def
21785s/\\$//
21786t bsnl
21787s/["\\]/\\&/g
21788s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21789D["\1"]=" \3"/p
21790s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21791d
21792:bsnl
21793s/["\\]/\\&/g
21794s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21795D["\1"]=" \3\\\\\\n"\\/p
21796t cont
21797s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21798t cont
21799d
21800:cont
21801n
21802s/.\{148\}/&'"$ac_delim"'/g
21803t clear
21804:clear
21805s/\\$//
21806t bsnlc
21807s/["\\]/\\&/g; s/^/"/; s/$/"/p
21808d
21809:bsnlc
21810s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21811b cont
21812' <confdefs.h | sed '
21813s/'"$ac_delim"'/"\\\
21814"/g' >>$CONFIG_STATUS || ac_write_fail=1
21815
21816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21817  for (key in D) D_is_set[key] = 1
21818  FS = ""
21819}
21820/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21821  line = \$ 0
21822  split(line, arg, " ")
21823  if (arg[1] == "#") {
21824    defundef = arg[2]
21825    mac1 = arg[3]
21826  } else {
21827    defundef = substr(arg[1], 2)
21828    mac1 = arg[2]
21829  }
21830  split(mac1, mac2, "(") #)
21831  macro = mac2[1]
21832  prefix = substr(line, 1, index(line, defundef) - 1)
21833  if (D_is_set[macro]) {
21834    # Preserve the white space surrounding the "#".
21835    print prefix "define", macro P[macro] D[macro]
21836    next
21837  } else {
21838    # Replace #undef with comments.  This is necessary, for example,
21839    # in the case of _POSIX_SOURCE, which is predefined and required
21840    # on some systems where configure will not decide to define it.
21841    if (defundef == "undef") {
21842      print "/*", prefix defundef, macro, "*/"
21843      next
21844    }
21845  }
21846}
21847{ print }
21848_ACAWK
21849_ACEOF
21850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21851  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21852$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21853   { (exit 1); exit 1; }; }
21854fi # test -n "$CONFIG_HEADERS"
21855
21856
21857eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21858shift
21859for ac_tag
21860do
21861  case $ac_tag in
21862  :[FHLC]) ac_mode=$ac_tag; continue;;
21863  esac
21864  case $ac_mode$ac_tag in
21865  :[FHL]*:*);;
21866  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21867$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21868   { (exit 1); exit 1; }; };;
21869  :[FH]-) ac_tag=-:-;;
21870  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21871  esac
21872  ac_save_IFS=$IFS
21873  IFS=:
21874  set x $ac_tag
21875  IFS=$ac_save_IFS
21876  shift
21877  ac_file=$1
21878  shift
21879
21880  case $ac_mode in
21881  :L) ac_source=$1;;
21882  :[FH])
21883    ac_file_inputs=
21884    for ac_f
21885    do
21886      case $ac_f in
21887      -) ac_f="$tmp/stdin";;
21888      *) # Look for the file first in the build tree, then in the source tree
21889	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21890	 # because $ac_f cannot contain `:'.
21891	 test -f "$ac_f" ||
21892	   case $ac_f in
21893	   [\\/$]*) false;;
21894	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21895	   esac ||
21896	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21897$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21898   { (exit 1); exit 1; }; };;
21899      esac
21900      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21901      ac_file_inputs="$ac_file_inputs '$ac_f'"
21902    done
21903
21904    # Let's still pretend it is `configure' which instantiates (i.e., don't
21905    # use $as_me), people would be surprised to read:
21906    #    /* config.h.  Generated by config.status.  */
21907    configure_input='Generated from '`
21908	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21909	`' by configure.'
21910    if test x"$ac_file" != x-; then
21911      configure_input="$ac_file.  $configure_input"
21912      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21913$as_echo "$as_me: creating $ac_file" >&6;}
21914    fi
21915    # Neutralize special characters interpreted by sed in replacement strings.
21916    case $configure_input in #(
21917    *\&* | *\|* | *\\* )
21918       ac_sed_conf_input=`$as_echo "$configure_input" |
21919       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21920    *) ac_sed_conf_input=$configure_input;;
21921    esac
21922
21923    case $ac_tag in
21924    *:-:* | *:-) cat >"$tmp/stdin" \
21925      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21926$as_echo "$as_me: error: could not create $ac_file" >&2;}
21927   { (exit 1); exit 1; }; } ;;
21928    esac
21929    ;;
21930  esac
21931
21932  ac_dir=`$as_dirname -- "$ac_file" ||
21933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934	 X"$ac_file" : 'X\(//\)[^/]' \| \
21935	 X"$ac_file" : 'X\(//\)$' \| \
21936	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21937$as_echo X"$ac_file" |
21938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21939	    s//\1/
21940	    q
21941	  }
21942	  /^X\(\/\/\)[^/].*/{
21943	    s//\1/
21944	    q
21945	  }
21946	  /^X\(\/\/\)$/{
21947	    s//\1/
21948	    q
21949	  }
21950	  /^X\(\/\).*/{
21951	    s//\1/
21952	    q
21953	  }
21954	  s/.*/./; q'`
21955  { as_dir="$ac_dir"
21956  case $as_dir in #(
21957  -*) as_dir=./$as_dir;;
21958  esac
21959  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21960    as_dirs=
21961    while :; do
21962      case $as_dir in #(
21963      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21964      *) as_qdir=$as_dir;;
21965      esac
21966      as_dirs="'$as_qdir' $as_dirs"
21967      as_dir=`$as_dirname -- "$as_dir" ||
21968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969	 X"$as_dir" : 'X\(//\)[^/]' \| \
21970	 X"$as_dir" : 'X\(//\)$' \| \
21971	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21972$as_echo X"$as_dir" |
21973    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21974	    s//\1/
21975	    q
21976	  }
21977	  /^X\(\/\/\)[^/].*/{
21978	    s//\1/
21979	    q
21980	  }
21981	  /^X\(\/\/\)$/{
21982	    s//\1/
21983	    q
21984	  }
21985	  /^X\(\/\).*/{
21986	    s//\1/
21987	    q
21988	  }
21989	  s/.*/./; q'`
21990      test -d "$as_dir" && break
21991    done
21992    test -z "$as_dirs" || eval "mkdir $as_dirs"
21993  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21994$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21995   { (exit 1); exit 1; }; }; }
21996  ac_builddir=.
21997
21998case "$ac_dir" in
21999.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22000*)
22001  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22002  # A ".." for each directory in $ac_dir_suffix.
22003  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22004  case $ac_top_builddir_sub in
22005  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22006  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22007  esac ;;
22008esac
22009ac_abs_top_builddir=$ac_pwd
22010ac_abs_builddir=$ac_pwd$ac_dir_suffix
22011# for backward compatibility:
22012ac_top_builddir=$ac_top_build_prefix
22013
22014case $srcdir in
22015  .)  # We are building in place.
22016    ac_srcdir=.
22017    ac_top_srcdir=$ac_top_builddir_sub
22018    ac_abs_top_srcdir=$ac_pwd ;;
22019  [\\/]* | ?:[\\/]* )  # Absolute name.
22020    ac_srcdir=$srcdir$ac_dir_suffix;
22021    ac_top_srcdir=$srcdir
22022    ac_abs_top_srcdir=$srcdir ;;
22023  *) # Relative name.
22024    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22025    ac_top_srcdir=$ac_top_build_prefix$srcdir
22026    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22027esac
22028ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22029
22030
22031  case $ac_mode in
22032  :F)
22033  #
22034  # CONFIG_FILE
22035  #
22036
22037  case $INSTALL in
22038  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22039  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22040  esac
22041  ac_MKDIR_P=$MKDIR_P
22042  case $MKDIR_P in
22043  [\\/$]* | ?:[\\/]* ) ;;
22044  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22045  esac
22046_ACEOF
22047
22048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22049# If the template does not know about datarootdir, expand it.
22050# FIXME: This hack should be removed a few years after 2.60.
22051ac_datarootdir_hack=; ac_datarootdir_seen=
22052
22053ac_sed_dataroot='
22054/datarootdir/ {
22055  p
22056  q
22057}
22058/@datadir@/p
22059/@docdir@/p
22060/@infodir@/p
22061/@localedir@/p
22062/@mandir@/p
22063'
22064case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22065*datarootdir*) ac_datarootdir_seen=yes;;
22066*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22067  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22068$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22069_ACEOF
22070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22071  ac_datarootdir_hack='
22072  s&@datadir@&$datadir&g
22073  s&@docdir@&$docdir&g
22074  s&@infodir@&$infodir&g
22075  s&@localedir@&$localedir&g
22076  s&@mandir@&$mandir&g
22077    s&\\\${datarootdir}&$datarootdir&g' ;;
22078esac
22079_ACEOF
22080
22081# Neutralize VPATH when `$srcdir' = `.'.
22082# Shell code in configure.ac might set extrasub.
22083# FIXME: do we really want to maintain this feature?
22084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22085ac_sed_extra="$ac_vpsub
22086$extrasub
22087_ACEOF
22088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22089:t
22090/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22091s|@configure_input@|$ac_sed_conf_input|;t t
22092s&@top_builddir@&$ac_top_builddir_sub&;t t
22093s&@top_build_prefix@&$ac_top_build_prefix&;t t
22094s&@srcdir@&$ac_srcdir&;t t
22095s&@abs_srcdir@&$ac_abs_srcdir&;t t
22096s&@top_srcdir@&$ac_top_srcdir&;t t
22097s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22098s&@builddir@&$ac_builddir&;t t
22099s&@abs_builddir@&$ac_abs_builddir&;t t
22100s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22101s&@INSTALL@&$ac_INSTALL&;t t
22102s&@MKDIR_P@&$ac_MKDIR_P&;t t
22103$ac_datarootdir_hack
22104"
22105eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22106  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22107$as_echo "$as_me: error: could not create $ac_file" >&2;}
22108   { (exit 1); exit 1; }; }
22109
22110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22111  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22112  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22113  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22114which seems to be undefined.  Please make sure it is defined." >&5
22115$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22116which seems to be undefined.  Please make sure it is defined." >&2;}
22117
22118  rm -f "$tmp/stdin"
22119  case $ac_file in
22120  -) cat "$tmp/out" && rm -f "$tmp/out";;
22121  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22122  esac \
22123  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22124$as_echo "$as_me: error: could not create $ac_file" >&2;}
22125   { (exit 1); exit 1; }; }
22126 ;;
22127  :H)
22128  #
22129  # CONFIG_HEADER
22130  #
22131  if test x"$ac_file" != x-; then
22132    {
22133      $as_echo "/* $configure_input  */" \
22134      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22135    } >"$tmp/config.h" \
22136      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22137$as_echo "$as_me: error: could not create $ac_file" >&2;}
22138   { (exit 1); exit 1; }; }
22139    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22140      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22141$as_echo "$as_me: $ac_file is unchanged" >&6;}
22142    else
22143      rm -f "$ac_file"
22144      mv "$tmp/config.h" "$ac_file" \
22145	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22146$as_echo "$as_me: error: could not create $ac_file" >&2;}
22147   { (exit 1); exit 1; }; }
22148    fi
22149  else
22150    $as_echo "/* $configure_input  */" \
22151      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22152      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22153$as_echo "$as_me: error: could not create -" >&2;}
22154   { (exit 1); exit 1; }; }
22155  fi
22156# Compute "$ac_file"'s index in $config_headers.
22157_am_arg="$ac_file"
22158_am_stamp_count=1
22159for _am_header in $config_headers :; do
22160  case $_am_header in
22161    $_am_arg | $_am_arg:* )
22162      break ;;
22163    * )
22164      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22165  esac
22166done
22167echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22168$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22169	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22170	 X"$_am_arg" : 'X\(//\)$' \| \
22171	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22172$as_echo X"$_am_arg" |
22173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22174	    s//\1/
22175	    q
22176	  }
22177	  /^X\(\/\/\)[^/].*/{
22178	    s//\1/
22179	    q
22180	  }
22181	  /^X\(\/\/\)$/{
22182	    s//\1/
22183	    q
22184	  }
22185	  /^X\(\/\).*/{
22186	    s//\1/
22187	    q
22188	  }
22189	  s/.*/./; q'`/stamp-h$_am_stamp_count
22190 ;;
22191
22192  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22193$as_echo "$as_me: executing $ac_file commands" >&6;}
22194 ;;
22195  esac
22196
22197
22198  case $ac_file$ac_mode in
22199    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22200  # Autoconf 2.62 quotes --file arguments for eval, but not when files
22201  # are listed without --file.  Let's play safe and only enable the eval
22202  # if we detect the quoting.
22203  case $CONFIG_FILES in
22204  *\'*) eval set x "$CONFIG_FILES" ;;
22205  *)   set x $CONFIG_FILES ;;
22206  esac
22207  shift
22208  for mf
22209  do
22210    # Strip MF so we end up with the name of the file.
22211    mf=`echo "$mf" | sed -e 's/:.*$//'`
22212    # Check whether this is an Automake generated Makefile or not.
22213    # We used to match only the files named `Makefile.in', but
22214    # some people rename them; so instead we look at the file content.
22215    # Grep'ing the first line is not enough: some people post-process
22216    # each Makefile.in and add a new line on top of each file to say so.
22217    # Grep'ing the whole file is not good either: AIX grep has a line
22218    # limit of 2048, but all sed's we know have understand at least 4000.
22219    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22220      dirpart=`$as_dirname -- "$mf" ||
22221$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22222	 X"$mf" : 'X\(//\)[^/]' \| \
22223	 X"$mf" : 'X\(//\)$' \| \
22224	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22225$as_echo X"$mf" |
22226    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22227	    s//\1/
22228	    q
22229	  }
22230	  /^X\(\/\/\)[^/].*/{
22231	    s//\1/
22232	    q
22233	  }
22234	  /^X\(\/\/\)$/{
22235	    s//\1/
22236	    q
22237	  }
22238	  /^X\(\/\).*/{
22239	    s//\1/
22240	    q
22241	  }
22242	  s/.*/./; q'`
22243    else
22244      continue
22245    fi
22246    # Extract the definition of DEPDIR, am__include, and am__quote
22247    # from the Makefile without running `make'.
22248    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22249    test -z "$DEPDIR" && continue
22250    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22251    test -z "am__include" && continue
22252    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22253    # When using ansi2knr, U may be empty or an underscore; expand it
22254    U=`sed -n 's/^U = //p' < "$mf"`
22255    # Find all dependency output files, they are included files with
22256    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22257    # simplest approach to changing $(DEPDIR) to its actual value in the
22258    # expansion.
22259    for file in `sed -n "
22260      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22261	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22262      # Make sure the directory exists.
22263      test -f "$dirpart/$file" && continue
22264      fdir=`$as_dirname -- "$file" ||
22265$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22266	 X"$file" : 'X\(//\)[^/]' \| \
22267	 X"$file" : 'X\(//\)$' \| \
22268	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22269$as_echo X"$file" |
22270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22271	    s//\1/
22272	    q
22273	  }
22274	  /^X\(\/\/\)[^/].*/{
22275	    s//\1/
22276	    q
22277	  }
22278	  /^X\(\/\/\)$/{
22279	    s//\1/
22280	    q
22281	  }
22282	  /^X\(\/\).*/{
22283	    s//\1/
22284	    q
22285	  }
22286	  s/.*/./; q'`
22287      { as_dir=$dirpart/$fdir
22288  case $as_dir in #(
22289  -*) as_dir=./$as_dir;;
22290  esac
22291  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292    as_dirs=
22293    while :; do
22294      case $as_dir in #(
22295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22296      *) as_qdir=$as_dir;;
22297      esac
22298      as_dirs="'$as_qdir' $as_dirs"
22299      as_dir=`$as_dirname -- "$as_dir" ||
22300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301	 X"$as_dir" : 'X\(//\)[^/]' \| \
22302	 X"$as_dir" : 'X\(//\)$' \| \
22303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304$as_echo X"$as_dir" |
22305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306	    s//\1/
22307	    q
22308	  }
22309	  /^X\(\/\/\)[^/].*/{
22310	    s//\1/
22311	    q
22312	  }
22313	  /^X\(\/\/\)$/{
22314	    s//\1/
22315	    q
22316	  }
22317	  /^X\(\/\).*/{
22318	    s//\1/
22319	    q
22320	  }
22321	  s/.*/./; q'`
22322      test -d "$as_dir" && break
22323    done
22324    test -z "$as_dirs" || eval "mkdir $as_dirs"
22325  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327   { (exit 1); exit 1; }; }; }
22328      # echo "creating $dirpart/$file"
22329      echo '# dummy' > "$dirpart/$file"
22330    done
22331  done
22332}
22333 ;;
22334
22335  esac
22336done # for ac_tag
22337
22338
22339{ (exit 0); exit 0; }
22340_ACEOF
22341chmod +x $CONFIG_STATUS
22342ac_clean_files=$ac_clean_files_save
22343
22344test $ac_write_fail = 0 ||
22345  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22346$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22347   { (exit 1); exit 1; }; }
22348
22349
22350# configure is writing to config.log, and then calls config.status.
22351# config.status does its own redirection, appending to config.log.
22352# Unfortunately, on DOS this fails, as config.log is still kept open
22353# by configure, so config.status won't be able to write to it; its
22354# output is simply discarded.  So we exec the FD to /dev/null,
22355# effectively closing config.log, so it can be properly (re)opened and
22356# appended to by config.status.  When coming back to configure, we
22357# need to make the FD available again.
22358if test "$no_create" != yes; then
22359  ac_cs_success=:
22360  ac_config_status_args=
22361  test "$silent" = yes &&
22362    ac_config_status_args="$ac_config_status_args --quiet"
22363  exec 5>/dev/null
22364  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22365  exec 5>>config.log
22366  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22367  # would make configure fail if this is the last instruction.
22368  $ac_cs_success || { (exit 1); exit 1; }
22369fi
22370if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22371  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22372$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22373fi
22374
22375
22376