configure revision 2ae83157
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libXt 1.0.7.
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='libXt'
752PACKAGE_TARNAME='libXt'
753PACKAGE_VERSION='1.0.7'
754PACKAGE_STRING='libXt 1.0.7'
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
797XTMALLOC_ZERO_CFLAGS
798XMALLOC_ZERO_CFLAGS
799MALLOC_ZERO_CFLAGS
800RAWCPPFLAGS
801RAWCPP
802STRINGSABIOPTIONS
803appdefaultdir
804XFILESEARCHPATHDEFAULT
805INSTALL_MAKESTRS_FALSE
806INSTALL_MAKESTRS_TRUE
807XT_LIBS
808XT_CFLAGS
809PKG_CONFIG
810LDFLAGS_FOR_BUILD
811CFLAGS_FOR_BUILD
812CC_FOR_BUILD
813ADMIN_MAN_DIR
814DRIVER_MAN_DIR
815MISC_MAN_DIR
816FILE_MAN_DIR
817LIB_MAN_DIR
818APP_MAN_DIR
819ADMIN_MAN_SUFFIX
820DRIVER_MAN_SUFFIX
821MISC_MAN_SUFFIX
822FILE_MAN_SUFFIX
823LIB_MAN_SUFFIX
824APP_MAN_SUFFIX
825distcleancheck_listfiles
826CHANGELOG_CMD
827AM_BACKSLASH
828AM_DEFAULT_VERBOSITY
829CWARNFLAGS
830LIBTOOL
831ac_ct_F77
832FFLAGS
833F77
834CXXCPP
835am__fastdepCXX_FALSE
836am__fastdepCXX_TRUE
837CXXDEPMODE
838ac_ct_CXX
839CXXFLAGS
840CXX
841CPP
842NMEDIT
843DSYMUTIL
844RANLIB
845AR
846ECHO
847LN_S
848EGREP
849GREP
850SED
851host_os
852host_vendor
853host_cpu
854host
855build_os
856build_vendor
857build_cpu
858build
859am__fastdepCC_FALSE
860am__fastdepCC_TRUE
861CCDEPMODE
862AMDEPBACKSLASH
863AMDEP_FALSE
864AMDEP_TRUE
865am__quote
866am__include
867DEPDIR
868OBJEXT
869EXEEXT
870ac_ct_CC
871CPPFLAGS
872LDFLAGS
873CFLAGS
874CC
875MAINT
876MAINTAINER_MODE_FALSE
877MAINTAINER_MODE_TRUE
878am__untar
879am__tar
880AMTAR
881am__leading_dot
882SET_MAKE
883AWK
884mkdir_p
885MKDIR_P
886INSTALL_STRIP_PROGRAM
887STRIP
888install_sh
889MAKEINFO
890AUTOHEADER
891AUTOMAKE
892AUTOCONF
893ACLOCAL
894VERSION
895PACKAGE
896CYGPATH_W
897am__isrc
898INSTALL_DATA
899INSTALL_SCRIPT
900INSTALL_PROGRAM
901target_alias
902host_alias
903build_alias
904LIBS
905ECHO_T
906ECHO_N
907ECHO_C
908DEFS
909mandir
910localedir
911libdir
912psdir
913pdfdir
914dvidir
915htmldir
916infodir
917docdir
918oldincludedir
919includedir
920localstatedir
921sharedstatedir
922sysconfdir
923datadir
924datarootdir
925libexecdir
926sbindir
927bindir
928program_transform_name
929prefix
930exec_prefix
931PACKAGE_BUGREPORT
932PACKAGE_STRING
933PACKAGE_VERSION
934PACKAGE_TARNAME
935PACKAGE_NAME
936PATH_SEPARATOR
937SHELL'
938ac_subst_files=''
939ac_user_opts='
940enable_option_checking
941enable_maintainer_mode
942enable_dependency_tracking
943enable_shared
944enable_static
945enable_fast_install
946with_gnu_ld
947enable_libtool_lock
948with_pic
949with_tags
950enable_silent_rules
951enable_strict_compilation
952with_release_version
953enable_xkb
954enable_install_makestrs
955with_xfile_search_path
956with_appdefaultdir
957enable_malloc0returnsnull
958'
959      ac_precious_vars='build_alias
960host_alias
961target_alias
962CC
963CFLAGS
964LDFLAGS
965LIBS
966CPPFLAGS
967CPP
968CXX
969CXXFLAGS
970CCC
971CXXCPP
972F77
973FFLAGS
974PKG_CONFIG
975XT_CFLAGS
976XT_LIBS'
977
978
979# Initialize some variables set by options.
980ac_init_help=
981ac_init_version=false
982ac_unrecognized_opts=
983ac_unrecognized_sep=
984# The variables have the same names as the options, with
985# dashes changed to underlines.
986cache_file=/dev/null
987exec_prefix=NONE
988no_create=
989no_recursion=
990prefix=NONE
991program_prefix=NONE
992program_suffix=NONE
993program_transform_name=s,x,x,
994silent=
995site=
996srcdir=
997verbose=
998x_includes=NONE
999x_libraries=NONE
1000
1001# Installation directory options.
1002# These are left unexpanded so users can "make install exec_prefix=/foo"
1003# and all the variables that are supposed to be based on exec_prefix
1004# by default will actually change.
1005# Use braces instead of parens because sh, perl, etc. also accept them.
1006# (The list follows the same order as the GNU Coding Standards.)
1007bindir='${exec_prefix}/bin'
1008sbindir='${exec_prefix}/sbin'
1009libexecdir='${exec_prefix}/libexec'
1010datarootdir='${prefix}/share'
1011datadir='${datarootdir}'
1012sysconfdir='${prefix}/etc'
1013sharedstatedir='${prefix}/com'
1014localstatedir='${prefix}/var'
1015includedir='${prefix}/include'
1016oldincludedir='/usr/include'
1017docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018infodir='${datarootdir}/info'
1019htmldir='${docdir}'
1020dvidir='${docdir}'
1021pdfdir='${docdir}'
1022psdir='${docdir}'
1023libdir='${exec_prefix}/lib'
1024localedir='${datarootdir}/locale'
1025mandir='${datarootdir}/man'
1026
1027ac_prev=
1028ac_dashdash=
1029for ac_option
1030do
1031  # If the previous option needs an argument, assign it.
1032  if test -n "$ac_prev"; then
1033    eval $ac_prev=\$ac_option
1034    ac_prev=
1035    continue
1036  fi
1037
1038  case $ac_option in
1039  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040  *)	ac_optarg=yes ;;
1041  esac
1042
1043  # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045  case $ac_dashdash$ac_option in
1046  --)
1047    ac_dashdash=yes ;;
1048
1049  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050    ac_prev=bindir ;;
1051  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052    bindir=$ac_optarg ;;
1053
1054  -build | --build | --buil | --bui | --bu)
1055    ac_prev=build_alias ;;
1056  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057    build_alias=$ac_optarg ;;
1058
1059  -cache-file | --cache-file | --cache-fil | --cache-fi \
1060  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061    ac_prev=cache_file ;;
1062  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064    cache_file=$ac_optarg ;;
1065
1066  --config-cache | -C)
1067    cache_file=config.cache ;;
1068
1069  -datadir | --datadir | --datadi | --datad)
1070    ac_prev=datadir ;;
1071  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072    datadir=$ac_optarg ;;
1073
1074  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075  | --dataroo | --dataro | --datar)
1076    ac_prev=datarootdir ;;
1077  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079    datarootdir=$ac_optarg ;;
1080
1081  -disable-* | --disable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086   { (exit 1); exit 1; }; }
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=no ;;
1097
1098  -docdir | --docdir | --docdi | --doc | --do)
1099    ac_prev=docdir ;;
1100  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101    docdir=$ac_optarg ;;
1102
1103  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104    ac_prev=dvidir ;;
1105  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106    dvidir=$ac_optarg ;;
1107
1108  -enable-* | --enable-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113   { (exit 1); exit 1; }; }
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"enable_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval enable_$ac_useropt=\$ac_optarg ;;
1124
1125  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127  | --exec | --exe | --ex)
1128    ac_prev=exec_prefix ;;
1129  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131  | --exec=* | --exe=* | --ex=*)
1132    exec_prefix=$ac_optarg ;;
1133
1134  -gas | --gas | --ga | --g)
1135    # Obsolete; use --with-gas.
1136    with_gas=yes ;;
1137
1138  -help | --help | --hel | --he | -h)
1139    ac_init_help=long ;;
1140  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141    ac_init_help=recursive ;;
1142  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143    ac_init_help=short ;;
1144
1145  -host | --host | --hos | --ho)
1146    ac_prev=host_alias ;;
1147  -host=* | --host=* | --hos=* | --ho=*)
1148    host_alias=$ac_optarg ;;
1149
1150  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151    ac_prev=htmldir ;;
1152  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153  | --ht=*)
1154    htmldir=$ac_optarg ;;
1155
1156  -includedir | --includedir | --includedi | --included | --include \
1157  | --includ | --inclu | --incl | --inc)
1158    ac_prev=includedir ;;
1159  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160  | --includ=* | --inclu=* | --incl=* | --inc=*)
1161    includedir=$ac_optarg ;;
1162
1163  -infodir | --infodir | --infodi | --infod | --info | --inf)
1164    ac_prev=infodir ;;
1165  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166    infodir=$ac_optarg ;;
1167
1168  -libdir | --libdir | --libdi | --libd)
1169    ac_prev=libdir ;;
1170  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171    libdir=$ac_optarg ;;
1172
1173  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174  | --libexe | --libex | --libe)
1175    ac_prev=libexecdir ;;
1176  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177  | --libexe=* | --libex=* | --libe=*)
1178    libexecdir=$ac_optarg ;;
1179
1180  -localedir | --localedir | --localedi | --localed | --locale)
1181    ac_prev=localedir ;;
1182  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183    localedir=$ac_optarg ;;
1184
1185  -localstatedir | --localstatedir | --localstatedi | --localstated \
1186  | --localstate | --localstat | --localsta | --localst | --locals)
1187    ac_prev=localstatedir ;;
1188  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190    localstatedir=$ac_optarg ;;
1191
1192  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193    ac_prev=mandir ;;
1194  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195    mandir=$ac_optarg ;;
1196
1197  -nfp | --nfp | --nf)
1198    # Obsolete; use --without-fp.
1199    with_fp=no ;;
1200
1201  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202  | --no-cr | --no-c | -n)
1203    no_create=yes ;;
1204
1205  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207    no_recursion=yes ;;
1208
1209  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211  | --oldin | --oldi | --old | --ol | --o)
1212    ac_prev=oldincludedir ;;
1213  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216    oldincludedir=$ac_optarg ;;
1217
1218  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219    ac_prev=prefix ;;
1220  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221    prefix=$ac_optarg ;;
1222
1223  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224  | --program-pre | --program-pr | --program-p)
1225    ac_prev=program_prefix ;;
1226  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228    program_prefix=$ac_optarg ;;
1229
1230  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231  | --program-suf | --program-su | --program-s)
1232    ac_prev=program_suffix ;;
1233  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235    program_suffix=$ac_optarg ;;
1236
1237  -program-transform-name | --program-transform-name \
1238  | --program-transform-nam | --program-transform-na \
1239  | --program-transform-n | --program-transform- \
1240  | --program-transform | --program-transfor \
1241  | --program-transfo | --program-transf \
1242  | --program-trans | --program-tran \
1243  | --progr-tra | --program-tr | --program-t)
1244    ac_prev=program_transform_name ;;
1245  -program-transform-name=* | --program-transform-name=* \
1246  | --program-transform-nam=* | --program-transform-na=* \
1247  | --program-transform-n=* | --program-transform-=* \
1248  | --program-transform=* | --program-transfor=* \
1249  | --program-transfo=* | --program-transf=* \
1250  | --program-trans=* | --program-tran=* \
1251  | --progr-tra=* | --program-tr=* | --program-t=*)
1252    program_transform_name=$ac_optarg ;;
1253
1254  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255    ac_prev=pdfdir ;;
1256  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257    pdfdir=$ac_optarg ;;
1258
1259  -psdir | --psdir | --psdi | --psd | --ps)
1260    ac_prev=psdir ;;
1261  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262    psdir=$ac_optarg ;;
1263
1264  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265  | -silent | --silent | --silen | --sile | --sil)
1266    silent=yes ;;
1267
1268  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269    ac_prev=sbindir ;;
1270  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271  | --sbi=* | --sb=*)
1272    sbindir=$ac_optarg ;;
1273
1274  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276  | --sharedst | --shareds | --shared | --share | --shar \
1277  | --sha | --sh)
1278    ac_prev=sharedstatedir ;;
1279  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282  | --sha=* | --sh=*)
1283    sharedstatedir=$ac_optarg ;;
1284
1285  -site | --site | --sit)
1286    ac_prev=site ;;
1287  -site=* | --site=* | --sit=*)
1288    site=$ac_optarg ;;
1289
1290  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291    ac_prev=srcdir ;;
1292  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293    srcdir=$ac_optarg ;;
1294
1295  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296  | --syscon | --sysco | --sysc | --sys | --sy)
1297    ac_prev=sysconfdir ;;
1298  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300    sysconfdir=$ac_optarg ;;
1301
1302  -target | --target | --targe | --targ | --tar | --ta | --t)
1303    ac_prev=target_alias ;;
1304  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305    target_alias=$ac_optarg ;;
1306
1307  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308    verbose=yes ;;
1309
1310  -version | --version | --versio | --versi | --vers | -V)
1311    ac_init_version=: ;;
1312
1313  -with-* | --with-*)
1314    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315    # Reject names that are not valid shell variable names.
1316    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318   { (exit 1); exit 1; }; }
1319    ac_useropt_orig=$ac_useropt
1320    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321    case $ac_user_opts in
1322      *"
1323"with_$ac_useropt"
1324"*) ;;
1325      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326	 ac_unrecognized_sep=', ';;
1327    esac
1328    eval with_$ac_useropt=\$ac_optarg ;;
1329
1330  -without-* | --without-*)
1331    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332    # Reject names that are not valid shell variable names.
1333    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335   { (exit 1); exit 1; }; }
1336    ac_useropt_orig=$ac_useropt
1337    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338    case $ac_user_opts in
1339      *"
1340"with_$ac_useropt"
1341"*) ;;
1342      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343	 ac_unrecognized_sep=', ';;
1344    esac
1345    eval with_$ac_useropt=no ;;
1346
1347  --x)
1348    # Obsolete; use --with-x.
1349    with_x=yes ;;
1350
1351  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352  | --x-incl | --x-inc | --x-in | --x-i)
1353    ac_prev=x_includes ;;
1354  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356    x_includes=$ac_optarg ;;
1357
1358  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360    ac_prev=x_libraries ;;
1361  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363    x_libraries=$ac_optarg ;;
1364
1365  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1366Try \`$0 --help' for more information." >&2
1367   { (exit 1); exit 1; }; }
1368    ;;
1369
1370  *=*)
1371    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372    # Reject names that are not valid shell variable names.
1373    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375   { (exit 1); exit 1; }; }
1376    eval $ac_envvar=\$ac_optarg
1377    export $ac_envvar ;;
1378
1379  *)
1380    # FIXME: should be removed in autoconf 3.0.
1381    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385    ;;
1386
1387  esac
1388done
1389
1390if test -n "$ac_prev"; then
1391  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1393   { (exit 1); exit 1; }; }
1394fi
1395
1396if test -n "$ac_unrecognized_opts"; then
1397  case $enable_option_checking in
1398    no) ;;
1399    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400   { (exit 1); exit 1; }; } ;;
1401    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402  esac
1403fi
1404
1405# Check all directory arguments for consistency.
1406for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407		datadir sysconfdir sharedstatedir localstatedir includedir \
1408		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409		libdir localedir mandir
1410do
1411  eval ac_val=\$$ac_var
1412  # Remove trailing slashes.
1413  case $ac_val in
1414    */ )
1415      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416      eval $ac_var=\$ac_val;;
1417  esac
1418  # Be sure to have absolute directory names.
1419  case $ac_val in
1420    [\\/$]* | ?:[\\/]* )  continue;;
1421    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422  esac
1423  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424   { (exit 1); exit 1; }; }
1425done
1426
1427# There might be people who depend on the old broken behavior: `$host'
1428# used to hold the argument of --host etc.
1429# FIXME: To remove some day.
1430build=$build_alias
1431host=$host_alias
1432target=$target_alias
1433
1434# FIXME: To remove some day.
1435if test "x$host_alias" != x; then
1436  if test "x$build_alias" = x; then
1437    cross_compiling=maybe
1438    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439    If a cross compiler is detected then cross compile mode will be used." >&2
1440  elif test "x$build_alias" != "x$host_alias"; then
1441    cross_compiling=yes
1442  fi
1443fi
1444
1445ac_tool_prefix=
1446test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448test "$silent" = yes && exec 6>/dev/null
1449
1450
1451ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452ac_ls_di=`ls -di .` &&
1453ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455   { (exit 1); exit 1; }; }
1456test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458   { (exit 1); exit 1; }; }
1459
1460
1461# Find the source files, if location was not specified.
1462if test -z "$srcdir"; then
1463  ac_srcdir_defaulted=yes
1464  # Try the directory containing this script, then the parent directory.
1465  ac_confdir=`$as_dirname -- "$as_myself" ||
1466$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467	 X"$as_myself" : 'X\(//\)[^/]' \| \
1468	 X"$as_myself" : 'X\(//\)$' \| \
1469	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470$as_echo X"$as_myself" |
1471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472	    s//\1/
1473	    q
1474	  }
1475	  /^X\(\/\/\)[^/].*/{
1476	    s//\1/
1477	    q
1478	  }
1479	  /^X\(\/\/\)$/{
1480	    s//\1/
1481	    q
1482	  }
1483	  /^X\(\/\).*/{
1484	    s//\1/
1485	    q
1486	  }
1487	  s/.*/./; q'`
1488  srcdir=$ac_confdir
1489  if test ! -r "$srcdir/$ac_unique_file"; then
1490    srcdir=..
1491  fi
1492else
1493  ac_srcdir_defaulted=no
1494fi
1495if test ! -r "$srcdir/$ac_unique_file"; then
1496  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1498   { (exit 1); exit 1; }; }
1499fi
1500ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501ac_abs_confdir=`(
1502	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1503   { (exit 1); exit 1; }; }
1504	pwd)`
1505# When building in place, set srcdir=.
1506if test "$ac_abs_confdir" = "$ac_pwd"; then
1507  srcdir=.
1508fi
1509# Remove unnecessary trailing slashes from srcdir.
1510# Double slashes in file names in object file debugging info
1511# mess up M-x gdb in Emacs.
1512case $srcdir in
1513*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514esac
1515for ac_var in $ac_precious_vars; do
1516  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517  eval ac_env_${ac_var}_value=\$${ac_var}
1518  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520done
1521
1522#
1523# Report the --help message.
1524#
1525if test "$ac_init_help" = "long"; then
1526  # Omit some internal or obsolete options to make the list less imposing.
1527  # This message is too long to be a string in the A/UX 3.1 sh.
1528  cat <<_ACEOF
1529\`configure' configures libXt 1.0.7 to adapt to many kinds of systems.
1530
1531Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534VAR=VALUE.  See below for descriptions of some of the useful variables.
1535
1536Defaults for the options are specified in brackets.
1537
1538Configuration:
1539  -h, --help              display this help and exit
1540      --help=short        display options specific to this package
1541      --help=recursive    display the short help of all the included packages
1542  -V, --version           display version information and exit
1543  -q, --quiet, --silent   do not print \`checking...' messages
1544      --cache-file=FILE   cache test results in FILE [disabled]
1545  -C, --config-cache      alias for \`--cache-file=config.cache'
1546  -n, --no-create         do not create output files
1547      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1548
1549Installation directories:
1550  --prefix=PREFIX         install architecture-independent files in PREFIX
1551                          [$ac_default_prefix]
1552  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1553                          [PREFIX]
1554
1555By default, \`make install' will install all the files in
1556\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1557an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558for instance \`--prefix=\$HOME'.
1559
1560For better control, use the options below.
1561
1562Fine tuning of the installation directories:
1563  --bindir=DIR            user executables [EPREFIX/bin]
1564  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1565  --libexecdir=DIR        program executables [EPREFIX/libexec]
1566  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1567  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1568  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1569  --libdir=DIR            object code libraries [EPREFIX/lib]
1570  --includedir=DIR        C header files [PREFIX/include]
1571  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1572  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1573  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1574  --infodir=DIR           info documentation [DATAROOTDIR/info]
1575  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1576  --mandir=DIR            man documentation [DATAROOTDIR/man]
1577  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXt]
1578  --htmldir=DIR           html documentation [DOCDIR]
1579  --dvidir=DIR            dvi documentation [DOCDIR]
1580  --pdfdir=DIR            pdf documentation [DOCDIR]
1581  --psdir=DIR             ps documentation [DOCDIR]
1582_ACEOF
1583
1584  cat <<\_ACEOF
1585
1586Program names:
1587  --program-prefix=PREFIX            prepend PREFIX to installed program names
1588  --program-suffix=SUFFIX            append SUFFIX to installed program names
1589  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1590
1591System types:
1592  --build=BUILD     configure for building on BUILD [guessed]
1593  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1594_ACEOF
1595fi
1596
1597if test -n "$ac_init_help"; then
1598  case $ac_init_help in
1599     short | recursive ) echo "Configuration of libXt 1.0.7:";;
1600   esac
1601  cat <<\_ACEOF
1602
1603Optional Features:
1604  --disable-option-checking  ignore unrecognized --enable/--with options
1605  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1606  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1607  --enable-maintainer-mode  enable make rules and dependencies not useful
1608			  (and sometimes confusing) to the casual installer
1609  --disable-dependency-tracking  speeds up one-time build
1610  --enable-dependency-tracking   do not reject slow dependency extractors
1611  --enable-shared[=PKGS]  build shared libraries [default=yes]
1612  --enable-static[=PKGS]  build static libraries [default=yes]
1613  --enable-fast-install[=PKGS]
1614                          optimize for fast installation [default=yes]
1615  --disable-libtool-lock  avoid locking (might break parallel builds)
1616  --enable-silent-rules          less verbose build output (undo: `make V=1')
1617  --disable-silent-rules         verbose build output (undo: `make V=0')
1618  --enable-strict-compilation
1619                          Enable all warnings from compiler and make them
1620                          errors (default: disabled)
1621  --disable-xkb           Disable XKB support
1622  --disable-install-makestrs
1623                          Disable installing makestrs
1624  --enable-malloc0returnsnull
1625                          malloc(0) returns NULL (default: auto)
1626
1627Optional Packages:
1628  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631  --with-pic              try to use only PIC/non-PIC objects [default=use
1632                          both]
1633  --with-tags[=TAGS]      include additional configurations [automatic]
1634  --with-release-version=STRING
1635                          Use release version string in package name
1636  --with-xfile-search-path=<path>
1637                          Set path to search for app-defaults and other files
1638  --with-appdefaultdir=<path>
1639                          Set app-default directory (default:
1640                          ${datadir}/X11/app-defaults)
1641
1642Some influential environment variables:
1643  CC          C compiler command
1644  CFLAGS      C compiler flags
1645  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1646              nonstandard directory <lib dir>
1647  LIBS        libraries to pass to the linker, e.g. -l<library>
1648  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1649              you have headers in a nonstandard directory <include dir>
1650  CPP         C preprocessor
1651  CXX         C++ compiler command
1652  CXXFLAGS    C++ compiler flags
1653  CXXCPP      C++ preprocessor
1654  F77         Fortran 77 compiler command
1655  FFLAGS      Fortran 77 compiler flags
1656  PKG_CONFIG  path to pkg-config utility
1657  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1658  XT_LIBS     linker flags for XT, overriding pkg-config
1659
1660Use these variables to override the choices made by `configure' or to help
1661it to find libraries and programs with nonstandard names/locations.
1662
1663Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1664_ACEOF
1665ac_status=$?
1666fi
1667
1668if test "$ac_init_help" = "recursive"; then
1669  # If there are subdirs, report their specific --help.
1670  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671    test -d "$ac_dir" ||
1672      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1673      continue
1674    ac_builddir=.
1675
1676case "$ac_dir" in
1677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678*)
1679  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1680  # A ".." for each directory in $ac_dir_suffix.
1681  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1682  case $ac_top_builddir_sub in
1683  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685  esac ;;
1686esac
1687ac_abs_top_builddir=$ac_pwd
1688ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689# for backward compatibility:
1690ac_top_builddir=$ac_top_build_prefix
1691
1692case $srcdir in
1693  .)  # We are building in place.
1694    ac_srcdir=.
1695    ac_top_srcdir=$ac_top_builddir_sub
1696    ac_abs_top_srcdir=$ac_pwd ;;
1697  [\\/]* | ?:[\\/]* )  # Absolute name.
1698    ac_srcdir=$srcdir$ac_dir_suffix;
1699    ac_top_srcdir=$srcdir
1700    ac_abs_top_srcdir=$srcdir ;;
1701  *) # Relative name.
1702    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703    ac_top_srcdir=$ac_top_build_prefix$srcdir
1704    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705esac
1706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707
1708    cd "$ac_dir" || { ac_status=$?; continue; }
1709    # Check for guested configure.
1710    if test -f "$ac_srcdir/configure.gnu"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713    elif test -f "$ac_srcdir/configure"; then
1714      echo &&
1715      $SHELL "$ac_srcdir/configure" --help=recursive
1716    else
1717      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718    fi || ac_status=$?
1719    cd "$ac_pwd" || { ac_status=$?; break; }
1720  done
1721fi
1722
1723test -n "$ac_init_help" && exit $ac_status
1724if $ac_init_version; then
1725  cat <<\_ACEOF
1726libXt configure 1.0.7
1727generated by GNU Autoconf 2.63
1728
1729Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17302002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1731This configure script is free software; the Free Software Foundation
1732gives unlimited permission to copy, distribute and modify it.
1733_ACEOF
1734  exit
1735fi
1736cat >config.log <<_ACEOF
1737This file contains any messages produced by compilers while
1738running configure, to aid debugging if configure makes a mistake.
1739
1740It was created by libXt $as_me 1.0.7, which was
1741generated by GNU Autoconf 2.63.  Invocation command line was
1742
1743  $ $0 $@
1744
1745_ACEOF
1746exec 5>>config.log
1747{
1748cat <<_ASUNAME
1749## --------- ##
1750## Platform. ##
1751## --------- ##
1752
1753hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1761
1762/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1763/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1764/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1766/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1767/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1768/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1769
1770_ASUNAME
1771
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775  IFS=$as_save_IFS
1776  test -z "$as_dir" && as_dir=.
1777  $as_echo "PATH: $as_dir"
1778done
1779IFS=$as_save_IFS
1780
1781} >&5
1782
1783cat >&5 <<_ACEOF
1784
1785
1786## ----------- ##
1787## Core tests. ##
1788## ----------- ##
1789
1790_ACEOF
1791
1792
1793# Keep a trace of the command line.
1794# Strip out --no-create and --no-recursion so they do not pile up.
1795# Strip out --silent because we don't want to record it for future runs.
1796# Also quote any args containing shell meta-characters.
1797# Make two passes to allow for proper duplicate-argument suppression.
1798ac_configure_args=
1799ac_configure_args0=
1800ac_configure_args1=
1801ac_must_keep_next=false
1802for ac_pass in 1 2
1803do
1804  for ac_arg
1805  do
1806    case $ac_arg in
1807    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809    | -silent | --silent | --silen | --sile | --sil)
1810      continue ;;
1811    *\'*)
1812      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813    esac
1814    case $ac_pass in
1815    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1816    2)
1817      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1818      if test $ac_must_keep_next = true; then
1819	ac_must_keep_next=false # Got value, back to normal.
1820      else
1821	case $ac_arg in
1822	  *=* | --config-cache | -C | -disable-* | --disable-* \
1823	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825	  | -with-* | --with-* | -without-* | --without-* | --x)
1826	    case "$ac_configure_args0 " in
1827	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828	    esac
1829	    ;;
1830	  -* ) ac_must_keep_next=true ;;
1831	esac
1832      fi
1833      ac_configure_args="$ac_configure_args '$ac_arg'"
1834      ;;
1835    esac
1836  done
1837done
1838$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1839$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1840
1841# When interrupted or exit'd, cleanup temporary files, and complete
1842# config.log.  We remove comments because anyway the quotes in there
1843# would cause problems or look ugly.
1844# WARNING: Use '\'' to represent an apostrophe within the trap.
1845# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846trap 'exit_status=$?
1847  # Save into config.log some information that might help in debugging.
1848  {
1849    echo
1850
1851    cat <<\_ASBOX
1852## ---------------- ##
1853## Cache variables. ##
1854## ---------------- ##
1855_ASBOX
1856    echo
1857    # The following way of writing the cache mishandles newlines in values,
1858(
1859  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860    eval ac_val=\$$ac_var
1861    case $ac_val in #(
1862    *${as_nl}*)
1863      case $ac_var in #(
1864      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866      esac
1867      case $ac_var in #(
1868      _ | IFS | as_nl) ;; #(
1869      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870      *) $as_unset $ac_var ;;
1871      esac ;;
1872    esac
1873  done
1874  (set) 2>&1 |
1875    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876    *${as_nl}ac_space=\ *)
1877      sed -n \
1878	"s/'\''/'\''\\\\'\'''\''/g;
1879	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880      ;; #(
1881    *)
1882      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883      ;;
1884    esac |
1885    sort
1886)
1887    echo
1888
1889    cat <<\_ASBOX
1890## ----------------- ##
1891## Output variables. ##
1892## ----------------- ##
1893_ASBOX
1894    echo
1895    for ac_var in $ac_subst_vars
1896    do
1897      eval ac_val=\$$ac_var
1898      case $ac_val in
1899      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900      esac
1901      $as_echo "$ac_var='\''$ac_val'\''"
1902    done | sort
1903    echo
1904
1905    if test -n "$ac_subst_files"; then
1906      cat <<\_ASBOX
1907## ------------------- ##
1908## File substitutions. ##
1909## ------------------- ##
1910_ASBOX
1911      echo
1912      for ac_var in $ac_subst_files
1913      do
1914	eval ac_val=\$$ac_var
1915	case $ac_val in
1916	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917	esac
1918	$as_echo "$ac_var='\''$ac_val'\''"
1919      done | sort
1920      echo
1921    fi
1922
1923    if test -s confdefs.h; then
1924      cat <<\_ASBOX
1925## ----------- ##
1926## confdefs.h. ##
1927## ----------- ##
1928_ASBOX
1929      echo
1930      cat confdefs.h
1931      echo
1932    fi
1933    test "$ac_signal" != 0 &&
1934      $as_echo "$as_me: caught signal $ac_signal"
1935    $as_echo "$as_me: exit $exit_status"
1936  } >&5
1937  rm -f core *.core core.conftest.* &&
1938    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939    exit $exit_status
1940' 0
1941for ac_signal in 1 2 13 15; do
1942  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943done
1944ac_signal=0
1945
1946# confdefs.h avoids OS command line length limits that DEFS can exceed.
1947rm -f -r conftest* confdefs.h
1948
1949# Predefined preprocessor variables.
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_NAME "$PACKAGE_NAME"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_VERSION "$PACKAGE_VERSION"
1963_ACEOF
1964
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_STRING "$PACKAGE_STRING"
1968_ACEOF
1969
1970
1971cat >>confdefs.h <<_ACEOF
1972#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973_ACEOF
1974
1975
1976# Let the site file select an alternate cache file if it wants to.
1977# Prefer an explicitly selected file to automatically selected ones.
1978ac_site_file1=NONE
1979ac_site_file2=NONE
1980if test -n "$CONFIG_SITE"; then
1981  ac_site_file1=$CONFIG_SITE
1982elif test "x$prefix" != xNONE; then
1983  ac_site_file1=$prefix/share/config.site
1984  ac_site_file2=$prefix/etc/config.site
1985else
1986  ac_site_file1=$ac_default_prefix/share/config.site
1987  ac_site_file2=$ac_default_prefix/etc/config.site
1988fi
1989for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990do
1991  test "x$ac_site_file" = xNONE && continue
1992  if test -r "$ac_site_file"; then
1993    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1994$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995    sed 's/^/| /' "$ac_site_file" >&5
1996    . "$ac_site_file"
1997  fi
1998done
1999
2000if test -r "$cache_file"; then
2001  # Some versions of bash will fail to source /dev/null (special
2002  # files actually), so we avoid doing that.
2003  if test -f "$cache_file"; then
2004    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2005$as_echo "$as_me: loading cache $cache_file" >&6;}
2006    case $cache_file in
2007      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008      *)                      . "./$cache_file";;
2009    esac
2010  fi
2011else
2012  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2013$as_echo "$as_me: creating cache $cache_file" >&6;}
2014  >$cache_file
2015fi
2016
2017# Check that the precious variables saved in the cache have kept the same
2018# value.
2019ac_cache_corrupted=false
2020for ac_var in $ac_precious_vars; do
2021  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022  eval ac_new_set=\$ac_env_${ac_var}_set
2023  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024  eval ac_new_val=\$ac_env_${ac_var}_value
2025  case $ac_old_set,$ac_new_set in
2026    set,)
2027      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029      ac_cache_corrupted=: ;;
2030    ,set)
2031      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033      ac_cache_corrupted=: ;;
2034    ,);;
2035    *)
2036      if test "x$ac_old_val" != "x$ac_new_val"; then
2037	# differences in whitespace do not lead to failure.
2038	ac_old_val_w=`echo x $ac_old_val`
2039	ac_new_val_w=`echo x $ac_new_val`
2040	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2042$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043	  ac_cache_corrupted=:
2044	else
2045	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047	  eval $ac_var=\$ac_old_val
2048	fi
2049	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2050$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2051	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2052$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2053      fi;;
2054  esac
2055  # Pass precious variables to config.status.
2056  if test "$ac_new_set" = set; then
2057    case $ac_new_val in
2058    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059    *) ac_arg=$ac_var=$ac_new_val ;;
2060    esac
2061    case " $ac_configure_args " in
2062      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2063      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2064    esac
2065  fi
2066done
2067if $ac_cache_corrupted; then
2068  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2071$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2073$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2074   { (exit 1); exit 1; }; }
2075fi
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101ac_ext=c
2102ac_cpp='$CPP $CPPFLAGS'
2103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106
2107
2108am__api_version='1.11'
2109
2110ac_aux_dir=
2111for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2112  if test -f "$ac_dir/install-sh"; then
2113    ac_aux_dir=$ac_dir
2114    ac_install_sh="$ac_aux_dir/install-sh -c"
2115    break
2116  elif test -f "$ac_dir/install.sh"; then
2117    ac_aux_dir=$ac_dir
2118    ac_install_sh="$ac_aux_dir/install.sh -c"
2119    break
2120  elif test -f "$ac_dir/shtool"; then
2121    ac_aux_dir=$ac_dir
2122    ac_install_sh="$ac_aux_dir/shtool install -c"
2123    break
2124  fi
2125done
2126if test -z "$ac_aux_dir"; then
2127  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2128$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2129   { (exit 1); exit 1; }; }
2130fi
2131
2132# These three variables are undocumented and unsupported,
2133# and are intended to be withdrawn in a future Autoconf release.
2134# They can cause serious problems if a builder's source tree is in a directory
2135# whose full name contains unusual characters.
2136ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2137ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2138ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2139
2140
2141# Find a good install program.  We prefer a C program (faster),
2142# so one script is as good as another.  But avoid the broken or
2143# incompatible versions:
2144# SysV /etc/install, /usr/sbin/install
2145# SunOS /usr/etc/install
2146# IRIX /sbin/install
2147# AIX /bin/install
2148# AmigaOS /C/install, which installs bootblocks on floppy discs
2149# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2150# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2151# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2152# OS/2's system install, which has a completely different semantic
2153# ./install, which can be erroneously created by make from ./install.sh.
2154# Reject install programs that cannot install multiple files.
2155{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2156$as_echo_n "checking for a BSD-compatible install... " >&6; }
2157if test -z "$INSTALL"; then
2158if test "${ac_cv_path_install+set}" = set; then
2159  $as_echo_n "(cached) " >&6
2160else
2161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164  IFS=$as_save_IFS
2165  test -z "$as_dir" && as_dir=.
2166  # Account for people who put trailing slashes in PATH elements.
2167case $as_dir/ in
2168  ./ | .// | /cC/* | \
2169  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2170  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2171  /usr/ucb/* ) ;;
2172  *)
2173    # OSF1 and SCO ODT 3.0 have their own names for install.
2174    # Don't use installbsd from OSF since it installs stuff as root
2175    # by default.
2176    for ac_prog in ginstall scoinst install; do
2177      for ac_exec_ext in '' $ac_executable_extensions; do
2178	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2179	  if test $ac_prog = install &&
2180	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181	    # AIX install.  It has an incompatible calling convention.
2182	    :
2183	  elif test $ac_prog = install &&
2184	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2185	    # program-specific install script used by HP pwplus--don't use.
2186	    :
2187	  else
2188	    rm -rf conftest.one conftest.two conftest.dir
2189	    echo one > conftest.one
2190	    echo two > conftest.two
2191	    mkdir conftest.dir
2192	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2193	      test -s conftest.one && test -s conftest.two &&
2194	      test -s conftest.dir/conftest.one &&
2195	      test -s conftest.dir/conftest.two
2196	    then
2197	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2198	      break 3
2199	    fi
2200	  fi
2201	fi
2202      done
2203    done
2204    ;;
2205esac
2206
2207done
2208IFS=$as_save_IFS
2209
2210rm -rf conftest.one conftest.two conftest.dir
2211
2212fi
2213  if test "${ac_cv_path_install+set}" = set; then
2214    INSTALL=$ac_cv_path_install
2215  else
2216    # As a last resort, use the slow shell script.  Don't cache a
2217    # value for INSTALL within a source directory, because that will
2218    # break other packages using the cache if that directory is
2219    # removed, or if the value is a relative name.
2220    INSTALL=$ac_install_sh
2221  fi
2222fi
2223{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2224$as_echo "$INSTALL" >&6; }
2225
2226# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2227# It thinks the first close brace ends the variable substitution.
2228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2229
2230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2231
2232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2233
2234{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2235$as_echo_n "checking whether build environment is sane... " >&6; }
2236# Just in case
2237sleep 1
2238echo timestamp > conftest.file
2239# Reject unsafe characters in $srcdir or the absolute working directory
2240# name.  Accept space and tab only in the latter.
2241am_lf='
2242'
2243case `pwd` in
2244  *[\\\"\#\$\&\'\`$am_lf]*)
2245    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2246$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2247   { (exit 1); exit 1; }; };;
2248esac
2249case $srcdir in
2250  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2251    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2252$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2253   { (exit 1); exit 1; }; };;
2254esac
2255
2256# Do `set' in a subshell so we don't clobber the current shell's
2257# arguments.  Must try -L first in case configure is actually a
2258# symlink; some systems play weird games with the mod time of symlinks
2259# (eg FreeBSD returns the mod time of the symlink's containing
2260# directory).
2261if (
2262   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2263   if test "$*" = "X"; then
2264      # -L didn't work.
2265      set X `ls -t "$srcdir/configure" conftest.file`
2266   fi
2267   rm -f conftest.file
2268   if test "$*" != "X $srcdir/configure conftest.file" \
2269      && test "$*" != "X conftest.file $srcdir/configure"; then
2270
2271      # If neither matched, then we have a broken ls.  This can happen
2272      # if, for instance, CONFIG_SHELL is bash and it inherits a
2273      # broken ls alias from the environment.  This has actually
2274      # happened.  Such a system could not be considered "sane".
2275      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2276alias in your environment" >&5
2277$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2278alias in your environment" >&2;}
2279   { (exit 1); exit 1; }; }
2280   fi
2281
2282   test "$2" = conftest.file
2283   )
2284then
2285   # Ok.
2286   :
2287else
2288   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2289Check your system clock" >&5
2290$as_echo "$as_me: error: newly created file is older than distributed files!
2291Check your system clock" >&2;}
2292   { (exit 1); exit 1; }; }
2293fi
2294{ $as_echo "$as_me:$LINENO: result: yes" >&5
2295$as_echo "yes" >&6; }
2296test "$program_prefix" != NONE &&
2297  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2298# Use a double $ so make ignores it.
2299test "$program_suffix" != NONE &&
2300  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2301# Double any \ or $.
2302# By default was `s,x,x', remove it if useless.
2303ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2304program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2305
2306# expand $ac_aux_dir to an absolute path
2307am_aux_dir=`cd $ac_aux_dir && pwd`
2308
2309if test x"${MISSING+set}" != xset; then
2310  case $am_aux_dir in
2311  *\ * | *\	*)
2312    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2313  *)
2314    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2315  esac
2316fi
2317# Use eval to expand $SHELL
2318if eval "$MISSING --run true"; then
2319  am_missing_run="$MISSING --run "
2320else
2321  am_missing_run=
2322  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2323$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2324fi
2325
2326if test x"${install_sh}" != xset; then
2327  case $am_aux_dir in
2328  *\ * | *\	*)
2329    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2330  *)
2331    install_sh="\${SHELL} $am_aux_dir/install-sh"
2332  esac
2333fi
2334
2335# Installed binaries are usually stripped using `strip' when the user
2336# run `make install-strip'.  However `strip' might not be the right
2337# tool to use in cross-compilation environments, therefore Automake
2338# will honor the `STRIP' environment variable to overrule this program.
2339if test "$cross_compiling" != no; then
2340  if test -n "$ac_tool_prefix"; then
2341  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2342set dummy ${ac_tool_prefix}strip; ac_word=$2
2343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2344$as_echo_n "checking for $ac_word... " >&6; }
2345if test "${ac_cv_prog_STRIP+set}" = set; then
2346  $as_echo_n "(cached) " >&6
2347else
2348  if test -n "$STRIP"; then
2349  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2350else
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354  IFS=$as_save_IFS
2355  test -z "$as_dir" && as_dir=.
2356  for ac_exec_ext in '' $ac_executable_extensions; do
2357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2359    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360    break 2
2361  fi
2362done
2363done
2364IFS=$as_save_IFS
2365
2366fi
2367fi
2368STRIP=$ac_cv_prog_STRIP
2369if test -n "$STRIP"; then
2370  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2371$as_echo "$STRIP" >&6; }
2372else
2373  { $as_echo "$as_me:$LINENO: result: no" >&5
2374$as_echo "no" >&6; }
2375fi
2376
2377
2378fi
2379if test -z "$ac_cv_prog_STRIP"; then
2380  ac_ct_STRIP=$STRIP
2381  # Extract the first word of "strip", so it can be a program name with args.
2382set dummy strip; ac_word=$2
2383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384$as_echo_n "checking for $ac_word... " >&6; }
2385if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2386  $as_echo_n "(cached) " >&6
2387else
2388  if test -n "$ac_ct_STRIP"; then
2389  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396  for ac_exec_ext in '' $ac_executable_extensions; do
2397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398    ac_cv_prog_ac_ct_STRIP="strip"
2399    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403done
2404IFS=$as_save_IFS
2405
2406fi
2407fi
2408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2409if test -n "$ac_ct_STRIP"; then
2410  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2411$as_echo "$ac_ct_STRIP" >&6; }
2412else
2413  { $as_echo "$as_me:$LINENO: result: no" >&5
2414$as_echo "no" >&6; }
2415fi
2416
2417  if test "x$ac_ct_STRIP" = x; then
2418    STRIP=":"
2419  else
2420    case $cross_compiling:$ac_tool_warned in
2421yes:)
2422{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424ac_tool_warned=yes ;;
2425esac
2426    STRIP=$ac_ct_STRIP
2427  fi
2428else
2429  STRIP="$ac_cv_prog_STRIP"
2430fi
2431
2432fi
2433INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2434
2435{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2436$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2437if test -z "$MKDIR_P"; then
2438  if test "${ac_cv_path_mkdir+set}" = set; then
2439  $as_echo_n "(cached) " >&6
2440else
2441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2443do
2444  IFS=$as_save_IFS
2445  test -z "$as_dir" && as_dir=.
2446  for ac_prog in mkdir gmkdir; do
2447	 for ac_exec_ext in '' $ac_executable_extensions; do
2448	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2449	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2450	     'mkdir (GNU coreutils) '* | \
2451	     'mkdir (coreutils) '* | \
2452	     'mkdir (fileutils) '4.1*)
2453	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2454	       break 3;;
2455	   esac
2456	 done
2457       done
2458done
2459IFS=$as_save_IFS
2460
2461fi
2462
2463  if test "${ac_cv_path_mkdir+set}" = set; then
2464    MKDIR_P="$ac_cv_path_mkdir -p"
2465  else
2466    # As a last resort, use the slow shell script.  Don't cache a
2467    # value for MKDIR_P within a source directory, because that will
2468    # break other packages using the cache if that directory is
2469    # removed, or if the value is a relative name.
2470    test -d ./--version && rmdir ./--version
2471    MKDIR_P="$ac_install_sh -d"
2472  fi
2473fi
2474{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2475$as_echo "$MKDIR_P" >&6; }
2476
2477mkdir_p="$MKDIR_P"
2478case $mkdir_p in
2479  [\\/$]* | ?:[\\/]*) ;;
2480  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2481esac
2482
2483for ac_prog in gawk mawk nawk awk
2484do
2485  # Extract the first word of "$ac_prog", so it can be a program name with args.
2486set dummy $ac_prog; ac_word=$2
2487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if test "${ac_cv_prog_AWK+set}" = set; then
2490  $as_echo_n "(cached) " >&6
2491else
2492  if test -n "$AWK"; then
2493  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500  for ac_exec_ext in '' $ac_executable_extensions; do
2501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502    ac_cv_prog_AWK="$ac_prog"
2503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504    break 2
2505  fi
2506done
2507done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
2512AWK=$ac_cv_prog_AWK
2513if test -n "$AWK"; then
2514  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2515$as_echo "$AWK" >&6; }
2516else
2517  { $as_echo "$as_me:$LINENO: result: no" >&5
2518$as_echo "no" >&6; }
2519fi
2520
2521
2522  test -n "$AWK" && break
2523done
2524
2525{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2526$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2527set x ${MAKE-make}
2528ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2529if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2530  $as_echo_n "(cached) " >&6
2531else
2532  cat >conftest.make <<\_ACEOF
2533SHELL = /bin/sh
2534all:
2535	@echo '@@@%%%=$(MAKE)=@@@%%%'
2536_ACEOF
2537# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2538case `${MAKE-make} -f conftest.make 2>/dev/null` in
2539  *@@@%%%=?*=@@@%%%*)
2540    eval ac_cv_prog_make_${ac_make}_set=yes;;
2541  *)
2542    eval ac_cv_prog_make_${ac_make}_set=no;;
2543esac
2544rm -f conftest.make
2545fi
2546if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2547  { $as_echo "$as_me:$LINENO: result: yes" >&5
2548$as_echo "yes" >&6; }
2549  SET_MAKE=
2550else
2551  { $as_echo "$as_me:$LINENO: result: no" >&5
2552$as_echo "no" >&6; }
2553  SET_MAKE="MAKE=${MAKE-make}"
2554fi
2555
2556rm -rf .tst 2>/dev/null
2557mkdir .tst 2>/dev/null
2558if test -d .tst; then
2559  am__leading_dot=.
2560else
2561  am__leading_dot=_
2562fi
2563rmdir .tst 2>/dev/null
2564
2565if test "`cd $srcdir && pwd`" != "`pwd`"; then
2566  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2567  # is not polluted with repeated "-I."
2568  am__isrc=' -I$(srcdir)'
2569  # test to see if srcdir already configured
2570  if test -f $srcdir/config.status; then
2571    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2572$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2573   { (exit 1); exit 1; }; }
2574  fi
2575fi
2576
2577# test whether we have cygpath
2578if test -z "$CYGPATH_W"; then
2579  if (cygpath --version) >/dev/null 2>/dev/null; then
2580    CYGPATH_W='cygpath -w'
2581  else
2582    CYGPATH_W=echo
2583  fi
2584fi
2585
2586
2587# Define the identity of the package.
2588 PACKAGE='libXt'
2589 VERSION='1.0.7'
2590
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE "$PACKAGE"
2594_ACEOF
2595
2596
2597cat >>confdefs.h <<_ACEOF
2598#define VERSION "$VERSION"
2599_ACEOF
2600
2601# Some tools Automake needs.
2602
2603ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2604
2605
2606AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2607
2608
2609AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2610
2611
2612AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2613
2614
2615MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2616
2617# We need awk for the "check" target.  The system "awk" is bad on
2618# some platforms.
2619# Always define AMTAR for backward compatibility.
2620
2621AMTAR=${AMTAR-"${am_missing_run}tar"}
2622
2623am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2624
2625
2626
2627
2628
2629
2630{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2631$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2632    # Check whether --enable-maintainer-mode was given.
2633if test "${enable_maintainer_mode+set}" = set; then
2634  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2635else
2636  USE_MAINTAINER_MODE=no
2637fi
2638
2639  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2640$as_echo "$USE_MAINTAINER_MODE" >&6; }
2641   if test $USE_MAINTAINER_MODE = yes; then
2642  MAINTAINER_MODE_TRUE=
2643  MAINTAINER_MODE_FALSE='#'
2644else
2645  MAINTAINER_MODE_TRUE='#'
2646  MAINTAINER_MODE_FALSE=
2647fi
2648
2649  MAINT=$MAINTAINER_MODE_TRUE
2650
2651
2652
2653# Require xorg-macros: XORG_DEFAULT_OPTIONS
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665ac_config_headers="$ac_config_headers config.h"
2666
2667
2668# Check for progs
2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674if test -n "$ac_tool_prefix"; then
2675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
2679if test "${ac_cv_prog_CC+set}" = set; then
2680  $as_echo_n "(cached) " >&6
2681else
2682  if test -n "$CC"; then
2683  ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690  for ac_exec_ext in '' $ac_executable_extensions; do
2691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
2704  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2705$as_echo "$CC" >&6; }
2706else
2707  { $as_echo "$as_me:$LINENO: result: no" >&5
2708$as_echo "no" >&6; }
2709fi
2710
2711
2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714  ac_ct_CC=$CC
2715  # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
2717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720  $as_echo_n "(cached) " >&6
2721else
2722  if test -n "$ac_ct_CC"; then
2723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730  for ac_exec_ext in '' $ac_executable_extensions; do
2731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732    ac_cv_prog_ac_ct_CC="gcc"
2733    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743if test -n "$ac_ct_CC"; then
2744  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745$as_echo "$ac_ct_CC" >&6; }
2746else
2747  { $as_echo "$as_me:$LINENO: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751  if test "x$ac_ct_CC" = x; then
2752    CC=""
2753  else
2754    case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758ac_tool_warned=yes ;;
2759esac
2760    CC=$ac_ct_CC
2761  fi
2762else
2763  CC="$ac_cv_prog_CC"
2764fi
2765
2766if test -z "$CC"; then
2767          if test -n "$ac_tool_prefix"; then
2768    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}cc; ac_word=$2
2770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if test "${ac_cv_prog_CC+set}" = set; then
2773  $as_echo_n "(cached) " >&6
2774else
2775  if test -n "$CC"; then
2776  ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783  for ac_exec_ext in '' $ac_executable_extensions; do
2784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785    ac_cv_prog_CC="${ac_tool_prefix}cc"
2786    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2798$as_echo "$CC" >&6; }
2799else
2800  { $as_echo "$as_me:$LINENO: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805  fi
2806fi
2807if test -z "$CC"; then
2808  # Extract the first word of "cc", so it can be a program name with args.
2809set dummy cc; ac_word=$2
2810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if test "${ac_cv_prog_CC+set}" = set; then
2813  $as_echo_n "(cached) " >&6
2814else
2815  if test -n "$CC"; then
2816  ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818  ac_prog_rejected=no
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_exec_ext in '' $ac_executable_extensions; do
2825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827       ac_prog_rejected=yes
2828       continue
2829     fi
2830    ac_cv_prog_CC="cc"
2831    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835done
2836IFS=$as_save_IFS
2837
2838if test $ac_prog_rejected = yes; then
2839  # We found a bogon in the path, so make sure we never use it.
2840  set dummy $ac_cv_prog_CC
2841  shift
2842  if test $# != 0; then
2843    # We chose a different compiler from the bogus one.
2844    # However, it has the same basename, so the bogon will be chosen
2845    # first if we set CC to just the basename; use the full file name.
2846    shift
2847    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2848  fi
2849fi
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2855$as_echo "$CC" >&6; }
2856else
2857  { $as_echo "$as_me:$LINENO: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861
2862fi
2863if test -z "$CC"; then
2864  if test -n "$ac_tool_prefix"; then
2865  for ac_prog in cl.exe
2866  do
2867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if test "${ac_cv_prog_CC+set}" = set; then
2872  $as_echo_n "(cached) " >&6
2873else
2874  if test -n "$CC"; then
2875  ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  test -z "$as_dir" && as_dir=.
2882  for ac_exec_ext in '' $ac_executable_extensions; do
2883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899  { $as_echo "$as_me:$LINENO: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904    test -n "$CC" && break
2905  done
2906fi
2907if test -z "$CC"; then
2908  ac_ct_CC=$CC
2909  for ac_prog in cl.exe
2910do
2911  # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916  $as_echo_n "(cached) " >&6
2917else
2918  if test -n "$ac_ct_CC"; then
2919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  test -z "$as_dir" && as_dir=.
2926  for ac_exec_ext in '' $ac_executable_extensions; do
2927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928    ac_cv_prog_ac_ct_CC="$ac_prog"
2929    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
2940  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941$as_echo "$ac_ct_CC" >&6; }
2942else
2943  { $as_echo "$as_me:$LINENO: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948  test -n "$ac_ct_CC" && break
2949done
2950
2951  if test "x$ac_ct_CC" = x; then
2952    CC=""
2953  else
2954    case $cross_compiling:$ac_tool_warned in
2955yes:)
2956{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958ac_tool_warned=yes ;;
2959esac
2960    CC=$ac_ct_CC
2961  fi
2962fi
2963
2964fi
2965
2966
2967test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2970See \`config.log' for more details." >&5
2971$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2972See \`config.log' for more details." >&2;}
2973   { (exit 1); exit 1; }; }; }
2974
2975# Provide some information about the compiler.
2976$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2977set X $ac_compile
2978ac_compiler=$2
2979{ (ac_try="$ac_compiler --version >&5"
2980case "(($ac_try" in
2981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982  *) ac_try_echo=$ac_try;;
2983esac
2984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2985$as_echo "$ac_try_echo") >&5
2986  (eval "$ac_compiler --version >&5") 2>&5
2987  ac_status=$?
2988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }
2990{ (ac_try="$ac_compiler -v >&5"
2991case "(($ac_try" in
2992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993  *) ac_try_echo=$ac_try;;
2994esac
2995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2996$as_echo "$ac_try_echo") >&5
2997  (eval "$ac_compiler -v >&5") 2>&5
2998  ac_status=$?
2999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }
3001{ (ac_try="$ac_compiler -V >&5"
3002case "(($ac_try" in
3003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004  *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007$as_echo "$ac_try_echo") >&5
3008  (eval "$ac_compiler -V >&5") 2>&5
3009  ac_status=$?
3010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }
3012
3013cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028ac_clean_files_save=$ac_clean_files
3029ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3030# Try to create an executable without -o first, disregard a.out.
3031# It will help us diagnose broken compilers, and finding out an intuition
3032# of exeext.
3033{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3034$as_echo_n "checking for C compiler default output file name... " >&6; }
3035ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3036
3037# The possible output files:
3038ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3039
3040ac_rmfiles=
3041for ac_file in $ac_files
3042do
3043  case $ac_file in
3044    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3046  esac
3047done
3048rm -f $ac_rmfiles
3049
3050if { (ac_try="$ac_link_default"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056$as_echo "$ac_try_echo") >&5
3057  (eval "$ac_link_default") 2>&5
3058  ac_status=$?
3059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; then
3061  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3062# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3063# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3064# so that the user can short-circuit this test for compilers unknown to
3065# Autoconf.
3066for ac_file in $ac_files ''
3067do
3068  test -f "$ac_file" || continue
3069  case $ac_file in
3070    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3071	;;
3072    [ab].out )
3073	# We found the default executable, but exeext='' is most
3074	# certainly right.
3075	break;;
3076    *.* )
3077        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3078	then :; else
3079	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080	fi
3081	# We set ac_cv_exeext here because the later test for it is not
3082	# safe: cross compilers may not add the suffix if given an `-o'
3083	# argument, so we may need to know it at that point already.
3084	# Even if this section looks crufty: it has the advantage of
3085	# actually working.
3086	break;;
3087    * )
3088	break;;
3089  esac
3090done
3091test "$ac_cv_exeext" = no && ac_cv_exeext=
3092
3093else
3094  ac_file=''
3095fi
3096
3097{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3098$as_echo "$ac_file" >&6; }
3099if test -z "$ac_file"; then
3100  $as_echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3106See \`config.log' for more details." >&5
3107$as_echo "$as_me: error: C compiler cannot create executables
3108See \`config.log' for more details." >&2;}
3109   { (exit 77); exit 77; }; }; }
3110fi
3111
3112ac_exeext=$ac_cv_exeext
3113
3114# Check that the compiler produces executables we can run.  If not, either
3115# the compiler is broken, or we cross compile.
3116{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3117$as_echo_n "checking whether the C compiler works... " >&6; }
3118# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3119# If not cross compiling, check that we can run a simple program.
3120if test "$cross_compiling" != yes; then
3121  if { ac_try='./$ac_file'
3122  { (case "(($ac_try" in
3123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124  *) ac_try_echo=$ac_try;;
3125esac
3126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127$as_echo "$ac_try_echo") >&5
3128  (eval "$ac_try") 2>&5
3129  ac_status=$?
3130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132    cross_compiling=no
3133  else
3134    if test "$cross_compiling" = maybe; then
3135	cross_compiling=yes
3136    else
3137	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3140If you meant to cross compile, use \`--host'.
3141See \`config.log' for more details." >&5
3142$as_echo "$as_me: error: cannot run C compiled programs.
3143If you meant to cross compile, use \`--host'.
3144See \`config.log' for more details." >&2;}
3145   { (exit 1); exit 1; }; }; }
3146    fi
3147  fi
3148fi
3149{ $as_echo "$as_me:$LINENO: result: yes" >&5
3150$as_echo "yes" >&6; }
3151
3152rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153ac_clean_files=$ac_clean_files_save
3154# Check that the compiler produces executables we can run.  If not, either
3155# the compiler is broken, or we cross compile.
3156{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3157$as_echo_n "checking whether we are cross compiling... " >&6; }
3158{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3159$as_echo "$cross_compiling" >&6; }
3160
3161{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3162$as_echo_n "checking for suffix of executables... " >&6; }
3163if { (ac_try="$ac_link"
3164case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169$as_echo "$ac_try_echo") >&5
3170  (eval "$ac_link") 2>&5
3171  ac_status=$?
3172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; then
3174  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3176# work properly (i.e., refer to `conftest.exe'), while it won't with
3177# `rm'.
3178for ac_file in conftest.exe conftest conftest.*; do
3179  test -f "$ac_file" || continue
3180  case $ac_file in
3181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3182    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183	  break;;
3184    * ) break;;
3185  esac
3186done
3187else
3188  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191See \`config.log' for more details." >&5
3192$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193See \`config.log' for more details." >&2;}
3194   { (exit 1); exit 1; }; }; }
3195fi
3196
3197rm -f conftest$ac_cv_exeext
3198{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199$as_echo "$ac_cv_exeext" >&6; }
3200
3201rm -f conftest.$ac_ext
3202EXEEXT=$ac_cv_exeext
3203ac_exeext=$EXEEXT
3204{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205$as_echo_n "checking for suffix of object files... " >&6; }
3206if test "${ac_cv_objext+set}" = set; then
3207  $as_echo_n "(cached) " >&6
3208else
3209  cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h.  */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224rm -f conftest.o conftest.obj
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228  *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231$as_echo "$ac_try_echo") >&5
3232  (eval "$ac_compile") 2>&5
3233  ac_status=$?
3234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }; then
3236  for ac_file in conftest.o conftest.obj conftest.*; do
3237  test -f "$ac_file" || continue;
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3240    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3241       break;;
3242  esac
3243done
3244else
3245  $as_echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3251See \`config.log' for more details." >&5
3252$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3253See \`config.log' for more details." >&2;}
3254   { (exit 1); exit 1; }; }; }
3255fi
3256
3257rm -f conftest.$ac_cv_objext conftest.$ac_ext
3258fi
3259{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3260$as_echo "$ac_cv_objext" >&6; }
3261OBJEXT=$ac_cv_objext
3262ac_objext=$OBJEXT
3263{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3264$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3265if test "${ac_cv_c_compiler_gnu+set}" = set; then
3266  $as_echo_n "(cached) " >&6
3267else
3268  cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278#ifndef __GNUC__
3279       choke me
3280#endif
3281
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286rm -f conftest.$ac_objext
3287if { (ac_try="$ac_compile"
3288case "(($ac_try" in
3289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290  *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293$as_echo "$ac_try_echo") >&5
3294  (eval "$ac_compile") 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } && {
3301	 test -z "$ac_c_werror_flag" ||
3302	 test ! -s conftest.err
3303       } && test -s conftest.$ac_objext; then
3304  ac_compiler_gnu=yes
3305else
3306  $as_echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309	ac_compiler_gnu=no
3310fi
3311
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314
3315fi
3316{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3317$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3318if test $ac_compiler_gnu = yes; then
3319  GCC=yes
3320else
3321  GCC=
3322fi
3323ac_test_CFLAGS=${CFLAGS+set}
3324ac_save_CFLAGS=$CFLAGS
3325{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3326$as_echo_n "checking whether $CC accepts -g... " >&6; }
3327if test "${ac_cv_prog_cc_g+set}" = set; then
3328  $as_echo_n "(cached) " >&6
3329else
3330  ac_save_c_werror_flag=$ac_c_werror_flag
3331   ac_c_werror_flag=yes
3332   ac_cv_prog_cc_g=no
3333   CFLAGS="-g"
3334   cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h.  */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h.  */
3340
3341int
3342main ()
3343{
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349rm -f conftest.$ac_objext
3350if { (ac_try="$ac_compile"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356$as_echo "$ac_try_echo") >&5
3357  (eval "$ac_compile") 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } && {
3364	 test -z "$ac_c_werror_flag" ||
3365	 test ! -s conftest.err
3366       } && test -s conftest.$ac_objext; then
3367  ac_cv_prog_cc_g=yes
3368else
3369  $as_echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372	CFLAGS=""
3373      cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h.  */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h.  */
3379
3380int
3381main ()
3382{
3383
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388rm -f conftest.$ac_objext
3389if { (ac_try="$ac_compile"
3390case "(($ac_try" in
3391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392  *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395$as_echo "$ac_try_echo") >&5
3396  (eval "$ac_compile") 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } && {
3403	 test -z "$ac_c_werror_flag" ||
3404	 test ! -s conftest.err
3405       } && test -s conftest.$ac_objext; then
3406  :
3407else
3408  $as_echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411	ac_c_werror_flag=$ac_save_c_werror_flag
3412	 CFLAGS="-g"
3413	 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (ac_try="$ac_compile"
3430case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435$as_echo "$ac_try_echo") >&5
3436  (eval "$ac_compile") 2>conftest.er1
3437  ac_status=$?
3438  grep -v '^ *+' conftest.er1 >conftest.err
3439  rm -f conftest.er1
3440  cat conftest.err >&5
3441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); } && {
3443	 test -z "$ac_c_werror_flag" ||
3444	 test ! -s conftest.err
3445       } && test -s conftest.$ac_objext; then
3446  ac_cv_prog_cc_g=yes
3447else
3448  $as_echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451
3452fi
3453
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456
3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458fi
3459
3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461   ac_c_werror_flag=$ac_save_c_werror_flag
3462fi
3463{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464$as_echo "$ac_cv_prog_cc_g" >&6; }
3465if test "$ac_test_CFLAGS" = set; then
3466  CFLAGS=$ac_save_CFLAGS
3467elif test $ac_cv_prog_cc_g = yes; then
3468  if test "$GCC" = yes; then
3469    CFLAGS="-g -O2"
3470  else
3471    CFLAGS="-g"
3472  fi
3473else
3474  if test "$GCC" = yes; then
3475    CFLAGS="-O2"
3476  else
3477    CFLAGS=
3478  fi
3479fi
3480{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3481$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482if test "${ac_cv_prog_cc_c89+set}" = set; then
3483  $as_echo_n "(cached) " >&6
3484else
3485  ac_cv_prog_cc_c89=no
3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501     char **p;
3502     int i;
3503{
3504  return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508  char *s;
3509  va_list v;
3510  va_start (v,p);
3511  s = g (p, va_arg (v,int));
3512  va_end (v);
3513  return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3517   function prototypes and stuff, but not '\xHH' hex character constants.
3518   These don't provoke an error unfortunately, instead are silently treated
3519   as 'x'.  The following induces an error, until -std is added to get
3520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3521   array size at least.  It's necessary to write '\x00'==0 to get something
3522   that's true only with -std.  */
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3526   inside strings and character constants.  */
3527#define FOO(x) 'x'
3528int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3529
3530int test (int i, double x);
3531struct s1 {int (*f) (int a);};
3532struct s2 {int (*f) (double a);};
3533int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534int argc;
3535char **argv;
3536int
3537main ()
3538{
3539return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3545	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3546do
3547  CC="$ac_save_CC $ac_arg"
3548  rm -f conftest.$ac_objext
3549if { (ac_try="$ac_compile"
3550case "(($ac_try" in
3551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552  *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555$as_echo "$ac_try_echo") >&5
3556  (eval "$ac_compile") 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } && {
3563	 test -z "$ac_c_werror_flag" ||
3564	 test ! -s conftest.err
3565       } && test -s conftest.$ac_objext; then
3566  ac_cv_prog_cc_c89=$ac_arg
3567else
3568  $as_echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571
3572fi
3573
3574rm -f core conftest.err conftest.$ac_objext
3575  test "x$ac_cv_prog_cc_c89" != "xno" && break
3576done
3577rm -f conftest.$ac_ext
3578CC=$ac_save_CC
3579
3580fi
3581# AC_CACHE_VAL
3582case "x$ac_cv_prog_cc_c89" in
3583  x)
3584    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3585$as_echo "none needed" >&6; } ;;
3586  xno)
3587    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3588$as_echo "unsupported" >&6; } ;;
3589  *)
3590    CC="$CC $ac_cv_prog_cc_c89"
3591    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3592$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3593esac
3594
3595
3596ac_ext=c
3597ac_cpp='$CPP $CPPFLAGS'
3598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601DEPDIR="${am__leading_dot}deps"
3602
3603ac_config_commands="$ac_config_commands depfiles"
3604
3605
3606am_make=${MAKE-make}
3607cat > confinc << 'END'
3608am__doit:
3609	@echo this is the am__doit target
3610.PHONY: am__doit
3611END
3612# If we don't find an include directive, just comment out the code.
3613{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3614$as_echo_n "checking for style of include used by $am_make... " >&6; }
3615am__include="#"
3616am__quote=
3617_am_result=none
3618# First try GNU make style include.
3619echo "include confinc" > confmf
3620# Ignore all kinds of additional output from `make'.
3621case `$am_make -s -f confmf 2> /dev/null` in #(
3622*the\ am__doit\ target*)
3623  am__include=include
3624  am__quote=
3625  _am_result=GNU
3626  ;;
3627esac
3628# Now try BSD make style include.
3629if test "$am__include" = "#"; then
3630   echo '.include "confinc"' > confmf
3631   case `$am_make -s -f confmf 2> /dev/null` in #(
3632   *the\ am__doit\ target*)
3633     am__include=.include
3634     am__quote="\""
3635     _am_result=BSD
3636     ;;
3637   esac
3638fi
3639
3640
3641{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3642$as_echo "$_am_result" >&6; }
3643rm -f confinc confmf
3644
3645# Check whether --enable-dependency-tracking was given.
3646if test "${enable_dependency_tracking+set}" = set; then
3647  enableval=$enable_dependency_tracking;
3648fi
3649
3650if test "x$enable_dependency_tracking" != xno; then
3651  am_depcomp="$ac_aux_dir/depcomp"
3652  AMDEPBACKSLASH='\'
3653fi
3654 if test "x$enable_dependency_tracking" != xno; then
3655  AMDEP_TRUE=
3656  AMDEP_FALSE='#'
3657else
3658  AMDEP_TRUE='#'
3659  AMDEP_FALSE=
3660fi
3661
3662
3663
3664depcc="$CC"   am_compiler_list=
3665
3666{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3667$as_echo_n "checking dependency style of $depcc... " >&6; }
3668if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3669  $as_echo_n "(cached) " >&6
3670else
3671  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3672  # We make a subdir and do the tests there.  Otherwise we can end up
3673  # making bogus files that we don't know about and never remove.  For
3674  # instance it was reported that on HP-UX the gcc test will end up
3675  # making a dummy file named `D' -- because `-MD' means `put the output
3676  # in D'.
3677  mkdir conftest.dir
3678  # Copy depcomp to subdir because otherwise we won't find it if we're
3679  # using a relative directory.
3680  cp "$am_depcomp" conftest.dir
3681  cd conftest.dir
3682  # We will build objects and dependencies in a subdirectory because
3683  # it helps to detect inapplicable dependency modes.  For instance
3684  # both Tru64's cc and ICC support -MD to output dependencies as a
3685  # side effect of compilation, but ICC will put the dependencies in
3686  # the current directory while Tru64 will put them in the object
3687  # directory.
3688  mkdir sub
3689
3690  am_cv_CC_dependencies_compiler_type=none
3691  if test "$am_compiler_list" = ""; then
3692     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3693  fi
3694  am__universal=false
3695  case " $depcc " in #(
3696     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3697     esac
3698
3699  for depmode in $am_compiler_list; do
3700    # Setup a source with many dependencies, because some compilers
3701    # like to wrap large dependency lists on column 80 (with \), and
3702    # we should not choose a depcomp mode which is confused by this.
3703    #
3704    # We need to recreate these files for each test, as the compiler may
3705    # overwrite some of them when testing with obscure command lines.
3706    # This happens at least with the AIX C compiler.
3707    : > sub/conftest.c
3708    for i in 1 2 3 4 5 6; do
3709      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3710      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3711      # Solaris 8's {/usr,}/bin/sh.
3712      touch sub/conftst$i.h
3713    done
3714    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3715
3716    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3717    # mode.  It turns out that the SunPro C++ compiler does not properly
3718    # handle `-M -o', and we need to detect this.  Also, some Intel
3719    # versions had trouble with output in subdirs
3720    am__obj=sub/conftest.${OBJEXT-o}
3721    am__minus_obj="-o $am__obj"
3722    case $depmode in
3723    gcc)
3724      # This depmode causes a compiler race in universal mode.
3725      test "$am__universal" = false || continue
3726      ;;
3727    nosideeffect)
3728      # after this tag, mechanisms are not by side-effect, so they'll
3729      # only be used when explicitly requested
3730      if test "x$enable_dependency_tracking" = xyes; then
3731	continue
3732      else
3733	break
3734      fi
3735      ;;
3736    msvisualcpp | msvcmsys)
3737      # This compiler won't grok `-c -o', but also, the minuso test has
3738      # not run yet.  These depmodes are late enough in the game, and
3739      # so weak that their functioning should not be impacted.
3740      am__obj=conftest.${OBJEXT-o}
3741      am__minus_obj=
3742      ;;
3743    none) break ;;
3744    esac
3745    if depmode=$depmode \
3746       source=sub/conftest.c object=$am__obj \
3747       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3748       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3749         >/dev/null 2>conftest.err &&
3750       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3751       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3752       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3753       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3754      # icc doesn't choke on unknown options, it will just issue warnings
3755      # or remarks (even with -Werror).  So we grep stderr for any message
3756      # that says an option was ignored or not supported.
3757      # When given -MP, icc 7.0 and 7.1 complain thusly:
3758      #   icc: Command line warning: ignoring option '-M'; no argument required
3759      # The diagnosis changed in icc 8.0:
3760      #   icc: Command line remark: option '-MP' not supported
3761      if (grep 'ignoring option' conftest.err ||
3762          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3763        am_cv_CC_dependencies_compiler_type=$depmode
3764        break
3765      fi
3766    fi
3767  done
3768
3769  cd ..
3770  rm -rf conftest.dir
3771else
3772  am_cv_CC_dependencies_compiler_type=none
3773fi
3774
3775fi
3776{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3777$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3778CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3779
3780 if
3781  test "x$enable_dependency_tracking" != xno \
3782  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3783  am__fastdepCC_TRUE=
3784  am__fastdepCC_FALSE='#'
3785else
3786  am__fastdepCC_TRUE='#'
3787  am__fastdepCC_FALSE=
3788fi
3789
3790
3791# Check whether --enable-shared was given.
3792if test "${enable_shared+set}" = set; then
3793  enableval=$enable_shared; p=${PACKAGE-default}
3794    case $enableval in
3795    yes) enable_shared=yes ;;
3796    no) enable_shared=no ;;
3797    *)
3798      enable_shared=no
3799      # Look at the argument we got.  We use all the common list separators.
3800      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3801      for pkg in $enableval; do
3802	IFS="$lt_save_ifs"
3803	if test "X$pkg" = "X$p"; then
3804	  enable_shared=yes
3805	fi
3806      done
3807      IFS="$lt_save_ifs"
3808      ;;
3809    esac
3810else
3811  enable_shared=yes
3812fi
3813
3814
3815# Check whether --enable-static was given.
3816if test "${enable_static+set}" = set; then
3817  enableval=$enable_static; p=${PACKAGE-default}
3818    case $enableval in
3819    yes) enable_static=yes ;;
3820    no) enable_static=no ;;
3821    *)
3822     enable_static=no
3823      # Look at the argument we got.  We use all the common list separators.
3824      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3825      for pkg in $enableval; do
3826	IFS="$lt_save_ifs"
3827	if test "X$pkg" = "X$p"; then
3828	  enable_static=yes
3829	fi
3830      done
3831      IFS="$lt_save_ifs"
3832      ;;
3833    esac
3834else
3835  enable_static=yes
3836fi
3837
3838
3839# Check whether --enable-fast-install was given.
3840if test "${enable_fast_install+set}" = set; then
3841  enableval=$enable_fast_install; p=${PACKAGE-default}
3842    case $enableval in
3843    yes) enable_fast_install=yes ;;
3844    no) enable_fast_install=no ;;
3845    *)
3846      enable_fast_install=no
3847      # Look at the argument we got.  We use all the common list separators.
3848      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3849      for pkg in $enableval; do
3850	IFS="$lt_save_ifs"
3851	if test "X$pkg" = "X$p"; then
3852	  enable_fast_install=yes
3853	fi
3854      done
3855      IFS="$lt_save_ifs"
3856      ;;
3857    esac
3858else
3859  enable_fast_install=yes
3860fi
3861
3862
3863# Make sure we can run config.sub.
3864$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3865  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3866$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3867   { (exit 1); exit 1; }; }
3868
3869{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3870$as_echo_n "checking build system type... " >&6; }
3871if test "${ac_cv_build+set}" = set; then
3872  $as_echo_n "(cached) " >&6
3873else
3874  ac_build_alias=$build_alias
3875test "x$ac_build_alias" = x &&
3876  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3877test "x$ac_build_alias" = x &&
3878  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3879$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3880   { (exit 1); exit 1; }; }
3881ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3882  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3883$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3884   { (exit 1); exit 1; }; }
3885
3886fi
3887{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3888$as_echo "$ac_cv_build" >&6; }
3889case $ac_cv_build in
3890*-*-*) ;;
3891*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3892$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3893   { (exit 1); exit 1; }; };;
3894esac
3895build=$ac_cv_build
3896ac_save_IFS=$IFS; IFS='-'
3897set x $ac_cv_build
3898shift
3899build_cpu=$1
3900build_vendor=$2
3901shift; shift
3902# Remember, the first character of IFS is used to create $*,
3903# except with old shells:
3904build_os=$*
3905IFS=$ac_save_IFS
3906case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3907
3908
3909{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3910$as_echo_n "checking host system type... " >&6; }
3911if test "${ac_cv_host+set}" = set; then
3912  $as_echo_n "(cached) " >&6
3913else
3914  if test "x$host_alias" = x; then
3915  ac_cv_host=$ac_cv_build
3916else
3917  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3918    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3919$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3920   { (exit 1); exit 1; }; }
3921fi
3922
3923fi
3924{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3925$as_echo "$ac_cv_host" >&6; }
3926case $ac_cv_host in
3927*-*-*) ;;
3928*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3929$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3930   { (exit 1); exit 1; }; };;
3931esac
3932host=$ac_cv_host
3933ac_save_IFS=$IFS; IFS='-'
3934set x $ac_cv_host
3935shift
3936host_cpu=$1
3937host_vendor=$2
3938shift; shift
3939# Remember, the first character of IFS is used to create $*,
3940# except with old shells:
3941host_os=$*
3942IFS=$ac_save_IFS
3943case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3944
3945
3946{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3947$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3948if test "${lt_cv_path_SED+set}" = set; then
3949  $as_echo_n "(cached) " >&6
3950else
3951  # Loop through the user's path and test for sed and gsed.
3952# Then use that list of sed's as ones to test for truncation.
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956  IFS=$as_save_IFS
3957  test -z "$as_dir" && as_dir=.
3958  for lt_ac_prog in sed gsed; do
3959    for ac_exec_ext in '' $ac_executable_extensions; do
3960      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3961        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3962      fi
3963    done
3964  done
3965done
3966IFS=$as_save_IFS
3967lt_ac_max=0
3968lt_ac_count=0
3969# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3970# along with /bin/sed that truncates output.
3971for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3972  test ! -f $lt_ac_sed && continue
3973  cat /dev/null > conftest.in
3974  lt_ac_count=0
3975  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3976  # Check for GNU sed and select it if it is found.
3977  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3978    lt_cv_path_SED=$lt_ac_sed
3979    break
3980  fi
3981  while true; do
3982    cat conftest.in conftest.in >conftest.tmp
3983    mv conftest.tmp conftest.in
3984    cp conftest.in conftest.nl
3985    echo >>conftest.nl
3986    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3987    cmp -s conftest.out conftest.nl || break
3988    # 10000 chars as input seems more than enough
3989    test $lt_ac_count -gt 10 && break
3990    lt_ac_count=`expr $lt_ac_count + 1`
3991    if test $lt_ac_count -gt $lt_ac_max; then
3992      lt_ac_max=$lt_ac_count
3993      lt_cv_path_SED=$lt_ac_sed
3994    fi
3995  done
3996done
3997
3998fi
3999
4000SED=$lt_cv_path_SED
4001
4002{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4003$as_echo "$SED" >&6; }
4004
4005{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4006$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4007if test "${ac_cv_path_GREP+set}" = set; then
4008  $as_echo_n "(cached) " >&6
4009else
4010  if test -z "$GREP"; then
4011  ac_path_GREP_found=false
4012  # Loop through the user's path and test for each of PROGNAME-LIST
4013  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015do
4016  IFS=$as_save_IFS
4017  test -z "$as_dir" && as_dir=.
4018  for ac_prog in grep ggrep; do
4019    for ac_exec_ext in '' $ac_executable_extensions; do
4020      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4021      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4022# Check for GNU ac_path_GREP and select it if it is found.
4023  # Check for GNU $ac_path_GREP
4024case `"$ac_path_GREP" --version 2>&1` in
4025*GNU*)
4026  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4027*)
4028  ac_count=0
4029  $as_echo_n 0123456789 >"conftest.in"
4030  while :
4031  do
4032    cat "conftest.in" "conftest.in" >"conftest.tmp"
4033    mv "conftest.tmp" "conftest.in"
4034    cp "conftest.in" "conftest.nl"
4035    $as_echo 'GREP' >> "conftest.nl"
4036    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038    ac_count=`expr $ac_count + 1`
4039    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4040      # Best one so far, save it but keep looking for a better one
4041      ac_cv_path_GREP="$ac_path_GREP"
4042      ac_path_GREP_max=$ac_count
4043    fi
4044    # 10*(2^10) chars as input seems more than enough
4045    test $ac_count -gt 10 && break
4046  done
4047  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048esac
4049
4050      $ac_path_GREP_found && break 3
4051    done
4052  done
4053done
4054IFS=$as_save_IFS
4055  if test -z "$ac_cv_path_GREP"; then
4056    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4057$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4058   { (exit 1); exit 1; }; }
4059  fi
4060else
4061  ac_cv_path_GREP=$GREP
4062fi
4063
4064fi
4065{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4066$as_echo "$ac_cv_path_GREP" >&6; }
4067 GREP="$ac_cv_path_GREP"
4068
4069
4070{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4071$as_echo_n "checking for egrep... " >&6; }
4072if test "${ac_cv_path_EGREP+set}" = set; then
4073  $as_echo_n "(cached) " >&6
4074else
4075  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4076   then ac_cv_path_EGREP="$GREP -E"
4077   else
4078     if test -z "$EGREP"; then
4079  ac_path_EGREP_found=false
4080  # Loop through the user's path and test for each of PROGNAME-LIST
4081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083do
4084  IFS=$as_save_IFS
4085  test -z "$as_dir" && as_dir=.
4086  for ac_prog in egrep; do
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4089      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4090# Check for GNU ac_path_EGREP and select it if it is found.
4091  # Check for GNU $ac_path_EGREP
4092case `"$ac_path_EGREP" --version 2>&1` in
4093*GNU*)
4094  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4095*)
4096  ac_count=0
4097  $as_echo_n 0123456789 >"conftest.in"
4098  while :
4099  do
4100    cat "conftest.in" "conftest.in" >"conftest.tmp"
4101    mv "conftest.tmp" "conftest.in"
4102    cp "conftest.in" "conftest.nl"
4103    $as_echo 'EGREP' >> "conftest.nl"
4104    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106    ac_count=`expr $ac_count + 1`
4107    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4108      # Best one so far, save it but keep looking for a better one
4109      ac_cv_path_EGREP="$ac_path_EGREP"
4110      ac_path_EGREP_max=$ac_count
4111    fi
4112    # 10*(2^10) chars as input seems more than enough
4113    test $ac_count -gt 10 && break
4114  done
4115  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116esac
4117
4118      $ac_path_EGREP_found && break 3
4119    done
4120  done
4121done
4122IFS=$as_save_IFS
4123  if test -z "$ac_cv_path_EGREP"; then
4124    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126   { (exit 1); exit 1; }; }
4127  fi
4128else
4129  ac_cv_path_EGREP=$EGREP
4130fi
4131
4132   fi
4133fi
4134{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4135$as_echo "$ac_cv_path_EGREP" >&6; }
4136 EGREP="$ac_cv_path_EGREP"
4137
4138
4139
4140# Check whether --with-gnu-ld was given.
4141if test "${with_gnu_ld+set}" = set; then
4142  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4143else
4144  with_gnu_ld=no
4145fi
4146
4147ac_prog=ld
4148if test "$GCC" = yes; then
4149  # Check if gcc -print-prog-name=ld gives a path.
4150  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4151$as_echo_n "checking for ld used by $CC... " >&6; }
4152  case $host in
4153  *-*-mingw*)
4154    # gcc leaves a trailing carriage return which upsets mingw
4155    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4156  *)
4157    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4158  esac
4159  case $ac_prog in
4160    # Accept absolute paths.
4161    [\\/]* | ?:[\\/]*)
4162      re_direlt='/[^/][^/]*/\.\./'
4163      # Canonicalize the pathname of ld
4164      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4165      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4166	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4167      done
4168      test -z "$LD" && LD="$ac_prog"
4169      ;;
4170  "")
4171    # If it fails, then pretend we aren't using GCC.
4172    ac_prog=ld
4173    ;;
4174  *)
4175    # If it is relative, then search for the first ld in PATH.
4176    with_gnu_ld=unknown
4177    ;;
4178  esac
4179elif test "$with_gnu_ld" = yes; then
4180  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4181$as_echo_n "checking for GNU ld... " >&6; }
4182else
4183  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4184$as_echo_n "checking for non-GNU ld... " >&6; }
4185fi
4186if test "${lt_cv_path_LD+set}" = set; then
4187  $as_echo_n "(cached) " >&6
4188else
4189  if test -z "$LD"; then
4190  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4191  for ac_dir in $PATH; do
4192    IFS="$lt_save_ifs"
4193    test -z "$ac_dir" && ac_dir=.
4194    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4195      lt_cv_path_LD="$ac_dir/$ac_prog"
4196      # Check to see if the program is GNU ld.  I'd rather use --version,
4197      # but apparently some variants of GNU ld only accept -v.
4198      # Break only if it was the GNU/non-GNU ld that we prefer.
4199      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4200      *GNU* | *'with BFD'*)
4201	test "$with_gnu_ld" != no && break
4202	;;
4203      *)
4204	test "$with_gnu_ld" != yes && break
4205	;;
4206      esac
4207    fi
4208  done
4209  IFS="$lt_save_ifs"
4210else
4211  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4212fi
4213fi
4214
4215LD="$lt_cv_path_LD"
4216if test -n "$LD"; then
4217  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4218$as_echo "$LD" >&6; }
4219else
4220  { $as_echo "$as_me:$LINENO: result: no" >&5
4221$as_echo "no" >&6; }
4222fi
4223test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4224$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4225   { (exit 1); exit 1; }; }
4226{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4227$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4228if test "${lt_cv_prog_gnu_ld+set}" = set; then
4229  $as_echo_n "(cached) " >&6
4230else
4231  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4232case `$LD -v 2>&1 </dev/null` in
4233*GNU* | *'with BFD'*)
4234  lt_cv_prog_gnu_ld=yes
4235  ;;
4236*)
4237  lt_cv_prog_gnu_ld=no
4238  ;;
4239esac
4240fi
4241{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4242$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4243with_gnu_ld=$lt_cv_prog_gnu_ld
4244
4245
4246{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4247$as_echo_n "checking for $LD option to reload object files... " >&6; }
4248if test "${lt_cv_ld_reload_flag+set}" = set; then
4249  $as_echo_n "(cached) " >&6
4250else
4251  lt_cv_ld_reload_flag='-r'
4252fi
4253{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4254$as_echo "$lt_cv_ld_reload_flag" >&6; }
4255reload_flag=$lt_cv_ld_reload_flag
4256case $reload_flag in
4257"" | " "*) ;;
4258*) reload_flag=" $reload_flag" ;;
4259esac
4260reload_cmds='$LD$reload_flag -o $output$reload_objs'
4261case $host_os in
4262  darwin*)
4263    if test "$GCC" = yes; then
4264      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4265    else
4266      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4267    fi
4268    ;;
4269esac
4270
4271{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4272$as_echo_n "checking for BSD-compatible nm... " >&6; }
4273if test "${lt_cv_path_NM+set}" = set; then
4274  $as_echo_n "(cached) " >&6
4275else
4276  if test -n "$NM"; then
4277  # Let the user override the test.
4278  lt_cv_path_NM="$NM"
4279else
4280  lt_nm_to_check="${ac_tool_prefix}nm"
4281  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4282    lt_nm_to_check="$lt_nm_to_check nm"
4283  fi
4284  for lt_tmp_nm in $lt_nm_to_check; do
4285    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4286    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4287      IFS="$lt_save_ifs"
4288      test -z "$ac_dir" && ac_dir=.
4289      tmp_nm="$ac_dir/$lt_tmp_nm"
4290      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4291	# Check to see if the nm accepts a BSD-compat flag.
4292	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4293	#   nm: unknown option "B" ignored
4294	# Tru64's nm complains that /dev/null is an invalid object file
4295	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4296	*/dev/null* | *'Invalid file or object type'*)
4297	  lt_cv_path_NM="$tmp_nm -B"
4298	  break
4299	  ;;
4300	*)
4301	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4302	  */dev/null*)
4303	    lt_cv_path_NM="$tmp_nm -p"
4304	    break
4305	    ;;
4306	  *)
4307	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4308	    continue # so that we can try to find one that supports BSD flags
4309	    ;;
4310	  esac
4311	  ;;
4312	esac
4313      fi
4314    done
4315    IFS="$lt_save_ifs"
4316  done
4317  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4318fi
4319fi
4320{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4321$as_echo "$lt_cv_path_NM" >&6; }
4322NM="$lt_cv_path_NM"
4323
4324{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4325$as_echo_n "checking whether ln -s works... " >&6; }
4326LN_S=$as_ln_s
4327if test "$LN_S" = "ln -s"; then
4328  { $as_echo "$as_me:$LINENO: result: yes" >&5
4329$as_echo "yes" >&6; }
4330else
4331  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4332$as_echo "no, using $LN_S" >&6; }
4333fi
4334
4335{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4336$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4337if test "${lt_cv_deplibs_check_method+set}" = set; then
4338  $as_echo_n "(cached) " >&6
4339else
4340  lt_cv_file_magic_cmd='$MAGIC_CMD'
4341lt_cv_file_magic_test_file=
4342lt_cv_deplibs_check_method='unknown'
4343# Need to set the preceding variable on all platforms that support
4344# interlibrary dependencies.
4345# 'none' -- dependencies not supported.
4346# `unknown' -- same as none, but documents that we really don't know.
4347# 'pass_all' -- all dependencies passed with no checks.
4348# 'test_compile' -- check by making test program.
4349# 'file_magic [[regex]]' -- check by looking for files in library path
4350# which responds to the $file_magic_cmd with a given extended regex.
4351# If you have `file' or equivalent on your system and you're not sure
4352# whether `pass_all' will *always* work, you probably want this one.
4353
4354case $host_os in
4355aix[4-9]*)
4356  lt_cv_deplibs_check_method=pass_all
4357  ;;
4358
4359beos*)
4360  lt_cv_deplibs_check_method=pass_all
4361  ;;
4362
4363bsdi[45]*)
4364  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4365  lt_cv_file_magic_cmd='/usr/bin/file -L'
4366  lt_cv_file_magic_test_file=/shlib/libc.so
4367  ;;
4368
4369cygwin*)
4370  # func_win32_libid is a shell function defined in ltmain.sh
4371  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4372  lt_cv_file_magic_cmd='func_win32_libid'
4373  ;;
4374
4375mingw* | pw32*)
4376  # Base MSYS/MinGW do not provide the 'file' command needed by
4377  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4378  # unless we find 'file', for example because we are cross-compiling.
4379  if ( file / ) >/dev/null 2>&1; then
4380    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4381    lt_cv_file_magic_cmd='func_win32_libid'
4382  else
4383    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4384    lt_cv_file_magic_cmd='$OBJDUMP -f'
4385  fi
4386  ;;
4387
4388darwin* | rhapsody*)
4389  lt_cv_deplibs_check_method=pass_all
4390  ;;
4391
4392freebsd* | dragonfly*)
4393  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4394    case $host_cpu in
4395    i*86 )
4396      # Not sure whether the presence of OpenBSD here was a mistake.
4397      # Let's accept both of them until this is cleared up.
4398      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4399      lt_cv_file_magic_cmd=/usr/bin/file
4400      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4401      ;;
4402    esac
4403  else
4404    lt_cv_deplibs_check_method=pass_all
4405  fi
4406  ;;
4407
4408gnu*)
4409  lt_cv_deplibs_check_method=pass_all
4410  ;;
4411
4412hpux10.20* | hpux11*)
4413  lt_cv_file_magic_cmd=/usr/bin/file
4414  case $host_cpu in
4415  ia64*)
4416    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4417    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4418    ;;
4419  hppa*64*)
4420    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]'
4421    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4422    ;;
4423  *)
4424    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4425    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4426    ;;
4427  esac
4428  ;;
4429
4430interix[3-9]*)
4431  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4432  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4433  ;;
4434
4435irix5* | irix6* | nonstopux*)
4436  case $LD in
4437  *-32|*"-32 ") libmagic=32-bit;;
4438  *-n32|*"-n32 ") libmagic=N32;;
4439  *-64|*"-64 ") libmagic=64-bit;;
4440  *) libmagic=never-match;;
4441  esac
4442  lt_cv_deplibs_check_method=pass_all
4443  ;;
4444
4445# This must be Linux ELF.
4446linux* | k*bsd*-gnu)
4447  lt_cv_deplibs_check_method=pass_all
4448  ;;
4449
4450netbsd*)
4451  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4452    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4453  else
4454    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4455  fi
4456  ;;
4457
4458newos6*)
4459  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4460  lt_cv_file_magic_cmd=/usr/bin/file
4461  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4462  ;;
4463
4464nto-qnx*)
4465  lt_cv_deplibs_check_method=unknown
4466  ;;
4467
4468openbsd*)
4469  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4470    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4471  else
4472    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4473  fi
4474  ;;
4475
4476osf3* | osf4* | osf5*)
4477  lt_cv_deplibs_check_method=pass_all
4478  ;;
4479
4480rdos*)
4481  lt_cv_deplibs_check_method=pass_all
4482  ;;
4483
4484solaris*)
4485  lt_cv_deplibs_check_method=pass_all
4486  ;;
4487
4488sysv4 | sysv4.3*)
4489  case $host_vendor in
4490  motorola)
4491    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]'
4492    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4493    ;;
4494  ncr)
4495    lt_cv_deplibs_check_method=pass_all
4496    ;;
4497  sequent)
4498    lt_cv_file_magic_cmd='/bin/file'
4499    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4500    ;;
4501  sni)
4502    lt_cv_file_magic_cmd='/bin/file'
4503    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4504    lt_cv_file_magic_test_file=/lib/libc.so
4505    ;;
4506  siemens)
4507    lt_cv_deplibs_check_method=pass_all
4508    ;;
4509  pc)
4510    lt_cv_deplibs_check_method=pass_all
4511    ;;
4512  esac
4513  ;;
4514
4515sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4516  lt_cv_deplibs_check_method=pass_all
4517  ;;
4518esac
4519
4520fi
4521{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4522$as_echo "$lt_cv_deplibs_check_method" >&6; }
4523file_magic_cmd=$lt_cv_file_magic_cmd
4524deplibs_check_method=$lt_cv_deplibs_check_method
4525test -z "$deplibs_check_method" && deplibs_check_method=unknown
4526
4527
4528
4529
4530# If no C compiler was specified, use CC.
4531LTCC=${LTCC-"$CC"}
4532
4533# If no C compiler flags were specified, use CFLAGS.
4534LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4535
4536# Allow CC to be a program name with arguments.
4537compiler=$CC
4538
4539
4540# Check whether --enable-libtool-lock was given.
4541if test "${enable_libtool_lock+set}" = set; then
4542  enableval=$enable_libtool_lock;
4543fi
4544
4545test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4546
4547# Some flags need to be propagated to the compiler or linker for good
4548# libtool support.
4549case $host in
4550ia64-*-hpux*)
4551  # Find out which ABI we are using.
4552  echo 'int i;' > conftest.$ac_ext
4553  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554  (eval $ac_compile) 2>&5
4555  ac_status=$?
4556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; then
4558    case `/usr/bin/file conftest.$ac_objext` in
4559    *ELF-32*)
4560      HPUX_IA64_MODE="32"
4561      ;;
4562    *ELF-64*)
4563      HPUX_IA64_MODE="64"
4564      ;;
4565    esac
4566  fi
4567  rm -rf conftest*
4568  ;;
4569*-*-irix6*)
4570  # Find out which ABI we are using.
4571  echo '#line 4571 "configure"' > conftest.$ac_ext
4572  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573  (eval $ac_compile) 2>&5
4574  ac_status=$?
4575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; then
4577   if test "$lt_cv_prog_gnu_ld" = yes; then
4578    case `/usr/bin/file conftest.$ac_objext` in
4579    *32-bit*)
4580      LD="${LD-ld} -melf32bsmip"
4581      ;;
4582    *N32*)
4583      LD="${LD-ld} -melf32bmipn32"
4584      ;;
4585    *64-bit*)
4586      LD="${LD-ld} -melf64bmip"
4587      ;;
4588    esac
4589   else
4590    case `/usr/bin/file conftest.$ac_objext` in
4591    *32-bit*)
4592      LD="${LD-ld} -32"
4593      ;;
4594    *N32*)
4595      LD="${LD-ld} -n32"
4596      ;;
4597    *64-bit*)
4598      LD="${LD-ld} -64"
4599      ;;
4600    esac
4601   fi
4602  fi
4603  rm -rf conftest*
4604  ;;
4605
4606x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4607s390*-*linux*|sparc*-*linux*)
4608  # Find out which ABI we are using.
4609  echo 'int i;' > conftest.$ac_ext
4610  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611  (eval $ac_compile) 2>&5
4612  ac_status=$?
4613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); }; then
4615    case `/usr/bin/file conftest.o` in
4616    *32-bit*)
4617      case $host in
4618        x86_64-*kfreebsd*-gnu)
4619          LD="${LD-ld} -m elf_i386_fbsd"
4620          ;;
4621        x86_64-*linux*)
4622          LD="${LD-ld} -m elf_i386"
4623          ;;
4624        ppc64-*linux*|powerpc64-*linux*)
4625          LD="${LD-ld} -m elf32ppclinux"
4626          ;;
4627        s390x-*linux*)
4628          LD="${LD-ld} -m elf_s390"
4629          ;;
4630        sparc64-*linux*)
4631          LD="${LD-ld} -m elf32_sparc"
4632          ;;
4633      esac
4634      ;;
4635    *64-bit*)
4636      case $host in
4637        x86_64-*kfreebsd*-gnu)
4638          LD="${LD-ld} -m elf_x86_64_fbsd"
4639          ;;
4640        x86_64-*linux*)
4641          LD="${LD-ld} -m elf_x86_64"
4642          ;;
4643        ppc*-*linux*|powerpc*-*linux*)
4644          LD="${LD-ld} -m elf64ppc"
4645          ;;
4646        s390*-*linux*)
4647          LD="${LD-ld} -m elf64_s390"
4648          ;;
4649        sparc*-*linux*)
4650          LD="${LD-ld} -m elf64_sparc"
4651          ;;
4652      esac
4653      ;;
4654    esac
4655  fi
4656  rm -rf conftest*
4657  ;;
4658
4659*-*-sco3.2v5*)
4660  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4661  SAVE_CFLAGS="$CFLAGS"
4662  CFLAGS="$CFLAGS -belf"
4663  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4664$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4665if test "${lt_cv_cc_needs_belf+set}" = set; then
4666  $as_echo_n "(cached) " >&6
4667else
4668  ac_ext=c
4669ac_cpp='$CPP $CPPFLAGS'
4670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674     cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h.  */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h.  */
4680
4681int
4682main ()
4683{
4684
4685  ;
4686  return 0;
4687}
4688_ACEOF
4689rm -f conftest.$ac_objext conftest$ac_exeext
4690if { (ac_try="$ac_link"
4691case "(($ac_try" in
4692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693  *) ac_try_echo=$ac_try;;
4694esac
4695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696$as_echo "$ac_try_echo") >&5
4697  (eval "$ac_link") 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } && {
4704	 test -z "$ac_c_werror_flag" ||
4705	 test ! -s conftest.err
4706       } && test -s conftest$ac_exeext && {
4707	 test "$cross_compiling" = yes ||
4708	 $as_test_x conftest$ac_exeext
4709       }; then
4710  lt_cv_cc_needs_belf=yes
4711else
4712  $as_echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715	lt_cv_cc_needs_belf=no
4716fi
4717
4718rm -rf conftest.dSYM
4719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4720      conftest$ac_exeext conftest.$ac_ext
4721     ac_ext=c
4722ac_cpp='$CPP $CPPFLAGS'
4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726
4727fi
4728{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4729$as_echo "$lt_cv_cc_needs_belf" >&6; }
4730  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4731    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4732    CFLAGS="$SAVE_CFLAGS"
4733  fi
4734  ;;
4735sparc*-*solaris*)
4736  # Find out which ABI we are using.
4737  echo 'int i;' > conftest.$ac_ext
4738  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739  (eval $ac_compile) 2>&5
4740  ac_status=$?
4741  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); }; then
4743    case `/usr/bin/file conftest.o` in
4744    *64-bit*)
4745      case $lt_cv_prog_gnu_ld in
4746      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4747      *)
4748        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4749	  LD="${LD-ld} -64"
4750	fi
4751	;;
4752      esac
4753      ;;
4754    esac
4755  fi
4756  rm -rf conftest*
4757  ;;
4758
4759
4760esac
4761
4762need_locks="$enable_libtool_lock"
4763
4764
4765ac_ext=c
4766ac_cpp='$CPP $CPPFLAGS'
4767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4771$as_echo_n "checking how to run the C preprocessor... " >&6; }
4772# On Suns, sometimes $CPP names a directory.
4773if test -n "$CPP" && test -d "$CPP"; then
4774  CPP=
4775fi
4776if test -z "$CPP"; then
4777  if test "${ac_cv_prog_CPP+set}" = set; then
4778  $as_echo_n "(cached) " >&6
4779else
4780      # Double quotes because CPP needs to be expanded
4781    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4782    do
4783      ac_preproc_ok=false
4784for ac_c_preproc_warn_flag in '' yes
4785do
4786  # Use a header file that comes with gcc, so configuring glibc
4787  # with a fresh cross-compiler works.
4788  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789  # <limits.h> exists even on freestanding compilers.
4790  # On the NeXT, cc -E runs the code through the compiler's parser,
4791  # not just through cpp. "Syntax error" is here to catch this case.
4792  cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h.  */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h.  */
4798#ifdef __STDC__
4799# include <limits.h>
4800#else
4801# include <assert.h>
4802#endif
4803		     Syntax error
4804_ACEOF
4805if { (ac_try="$ac_cpp conftest.$ac_ext"
4806case "(($ac_try" in
4807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808  *) ac_try_echo=$ac_try;;
4809esac
4810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4811$as_echo "$ac_try_echo") >&5
4812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813  ac_status=$?
4814  grep -v '^ *+' conftest.er1 >conftest.err
4815  rm -f conftest.er1
4816  cat conftest.err >&5
4817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); } >/dev/null && {
4819	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4820	 test ! -s conftest.err
4821       }; then
4822  :
4823else
4824  $as_echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827  # Broken: fails on valid input.
4828continue
4829fi
4830
4831rm -f conftest.err conftest.$ac_ext
4832
4833  # OK, works on sane cases.  Now check whether nonexistent headers
4834  # can be detected and how.
4835  cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h.  */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h.  */
4841#include <ac_nonexistent.h>
4842_ACEOF
4843if { (ac_try="$ac_cpp conftest.$ac_ext"
4844case "(($ac_try" in
4845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846  *) ac_try_echo=$ac_try;;
4847esac
4848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4849$as_echo "$ac_try_echo") >&5
4850  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4851  ac_status=$?
4852  grep -v '^ *+' conftest.er1 >conftest.err
4853  rm -f conftest.er1
4854  cat conftest.err >&5
4855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856  (exit $ac_status); } >/dev/null && {
4857	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4858	 test ! -s conftest.err
4859       }; then
4860  # Broken: success on invalid input.
4861continue
4862else
4863  $as_echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866  # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870
4871rm -f conftest.err conftest.$ac_ext
4872
4873done
4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875rm -f conftest.err conftest.$ac_ext
4876if $ac_preproc_ok; then
4877  break
4878fi
4879
4880    done
4881    ac_cv_prog_CPP=$CPP
4882
4883fi
4884  CPP=$ac_cv_prog_CPP
4885else
4886  ac_cv_prog_CPP=$CPP
4887fi
4888{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4889$as_echo "$CPP" >&6; }
4890ac_preproc_ok=false
4891for ac_c_preproc_warn_flag in '' yes
4892do
4893  # Use a header file that comes with gcc, so configuring glibc
4894  # with a fresh cross-compiler works.
4895  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896  # <limits.h> exists even on freestanding compilers.
4897  # On the NeXT, cc -E runs the code through the compiler's parser,
4898  # not just through cpp. "Syntax error" is here to catch this case.
4899  cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h.  */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h.  */
4905#ifdef __STDC__
4906# include <limits.h>
4907#else
4908# include <assert.h>
4909#endif
4910		     Syntax error
4911_ACEOF
4912if { (ac_try="$ac_cpp conftest.$ac_ext"
4913case "(($ac_try" in
4914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915  *) ac_try_echo=$ac_try;;
4916esac
4917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4918$as_echo "$ac_try_echo") >&5
4919  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } >/dev/null && {
4926	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4927	 test ! -s conftest.err
4928       }; then
4929  :
4930else
4931  $as_echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934  # Broken: fails on valid input.
4935continue
4936fi
4937
4938rm -f conftest.err conftest.$ac_ext
4939
4940  # OK, works on sane cases.  Now check whether nonexistent headers
4941  # can be detected and how.
4942  cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948#include <ac_nonexistent.h>
4949_ACEOF
4950if { (ac_try="$ac_cpp conftest.$ac_ext"
4951case "(($ac_try" in
4952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953  *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956$as_echo "$ac_try_echo") >&5
4957  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4958  ac_status=$?
4959  grep -v '^ *+' conftest.er1 >conftest.err
4960  rm -f conftest.er1
4961  cat conftest.err >&5
4962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); } >/dev/null && {
4964	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4965	 test ! -s conftest.err
4966       }; then
4967  # Broken: success on invalid input.
4968continue
4969else
4970  $as_echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973  # Passes both tests.
4974ac_preproc_ok=:
4975break
4976fi
4977
4978rm -f conftest.err conftest.$ac_ext
4979
4980done
4981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4982rm -f conftest.err conftest.$ac_ext
4983if $ac_preproc_ok; then
4984  :
4985else
4986  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4988{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4989See \`config.log' for more details." >&5
4990$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4991See \`config.log' for more details." >&2;}
4992   { (exit 1); exit 1; }; }; }
4993fi
4994
4995ac_ext=c
4996ac_cpp='$CPP $CPPFLAGS'
4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000
5001
5002{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5003$as_echo_n "checking for ANSI C header files... " >&6; }
5004if test "${ac_cv_header_stdc+set}" = set; then
5005  $as_echo_n "(cached) " >&6
5006else
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013#include <stdlib.h>
5014#include <stdarg.h>
5015#include <string.h>
5016#include <float.h>
5017
5018int
5019main ()
5020{
5021
5022  ;
5023  return 0;
5024}
5025_ACEOF
5026rm -f conftest.$ac_objext
5027if { (ac_try="$ac_compile"
5028case "(($ac_try" in
5029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030  *) ac_try_echo=$ac_try;;
5031esac
5032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5033$as_echo "$ac_try_echo") >&5
5034  (eval "$ac_compile") 2>conftest.er1
5035  ac_status=$?
5036  grep -v '^ *+' conftest.er1 >conftest.err
5037  rm -f conftest.er1
5038  cat conftest.err >&5
5039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); } && {
5041	 test -z "$ac_c_werror_flag" ||
5042	 test ! -s conftest.err
5043       } && test -s conftest.$ac_objext; then
5044  ac_cv_header_stdc=yes
5045else
5046  $as_echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049	ac_cv_header_stdc=no
5050fi
5051
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053
5054if test $ac_cv_header_stdc = yes; then
5055  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5056  cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062#include <string.h>
5063
5064_ACEOF
5065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066  $EGREP "memchr" >/dev/null 2>&1; then
5067  :
5068else
5069  ac_cv_header_stdc=no
5070fi
5071rm -f conftest*
5072
5073fi
5074
5075if test $ac_cv_header_stdc = yes; then
5076  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#include <stdlib.h>
5084
5085_ACEOF
5086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087  $EGREP "free" >/dev/null 2>&1; then
5088  :
5089else
5090  ac_cv_header_stdc=no
5091fi
5092rm -f conftest*
5093
5094fi
5095
5096if test $ac_cv_header_stdc = yes; then
5097  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098  if test "$cross_compiling" = yes; then
5099  :
5100else
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107#include <ctype.h>
5108#include <stdlib.h>
5109#if ((' ' & 0x0FF) == 0x020)
5110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5112#else
5113# define ISLOWER(c) \
5114		   (('a' <= (c) && (c) <= 'i') \
5115		     || ('j' <= (c) && (c) <= 'r') \
5116		     || ('s' <= (c) && (c) <= 'z'))
5117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118#endif
5119
5120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5121int
5122main ()
5123{
5124  int i;
5125  for (i = 0; i < 256; i++)
5126    if (XOR (islower (i), ISLOWER (i))
5127	|| toupper (i) != TOUPPER (i))
5128      return 2;
5129  return 0;
5130}
5131_ACEOF
5132rm -f conftest$ac_exeext
5133if { (ac_try="$ac_link"
5134case "(($ac_try" in
5135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136  *) ac_try_echo=$ac_try;;
5137esac
5138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139$as_echo "$ac_try_echo") >&5
5140  (eval "$ac_link") 2>&5
5141  ac_status=$?
5142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5144  { (case "(($ac_try" in
5145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146  *) ac_try_echo=$ac_try;;
5147esac
5148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5149$as_echo "$ac_try_echo") >&5
5150  (eval "$ac_try") 2>&5
5151  ac_status=$?
5152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); }; }; then
5154  :
5155else
5156  $as_echo "$as_me: program exited with status $ac_status" >&5
5157$as_echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160( exit $ac_status )
5161ac_cv_header_stdc=no
5162fi
5163rm -rf conftest.dSYM
5164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165fi
5166
5167
5168fi
5169fi
5170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5171$as_echo "$ac_cv_header_stdc" >&6; }
5172if test $ac_cv_header_stdc = yes; then
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define STDC_HEADERS 1
5176_ACEOF
5177
5178fi
5179
5180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5191		  inttypes.h stdint.h unistd.h
5192do
5193as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5194{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5195$as_echo_n "checking for $ac_header... " >&6; }
5196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h.  */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h.  */
5205$ac_includes_default
5206
5207#include <$ac_header>
5208_ACEOF
5209rm -f conftest.$ac_objext
5210if { (ac_try="$ac_compile"
5211case "(($ac_try" in
5212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213  *) ac_try_echo=$ac_try;;
5214esac
5215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216$as_echo "$ac_try_echo") >&5
5217  (eval "$ac_compile") 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } && {
5224	 test -z "$ac_c_werror_flag" ||
5225	 test ! -s conftest.err
5226       } && test -s conftest.$ac_objext; then
5227  eval "$as_ac_Header=yes"
5228else
5229  $as_echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232	eval "$as_ac_Header=no"
5233fi
5234
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237ac_res=`eval 'as_val=${'$as_ac_Header'}
5238		 $as_echo "$as_val"'`
5239	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5240$as_echo "$ac_res" >&6; }
5241as_val=`eval 'as_val=${'$as_ac_Header'}
5242		 $as_echo "$as_val"'`
5243   if test "x$as_val" = x""yes; then
5244  cat >>confdefs.h <<_ACEOF
5245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246_ACEOF
5247
5248fi
5249
5250done
5251
5252
5253
5254for ac_header in dlfcn.h
5255do
5256as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5258  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5259$as_echo_n "checking for $ac_header... " >&6; }
5260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5261  $as_echo_n "(cached) " >&6
5262fi
5263ac_res=`eval 'as_val=${'$as_ac_Header'}
5264		 $as_echo "$as_val"'`
5265	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5266$as_echo "$ac_res" >&6; }
5267else
5268  # Is the header compilable?
5269{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5270$as_echo_n "checking $ac_header usability... " >&6; }
5271cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277$ac_includes_default
5278#include <$ac_header>
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (ac_try="$ac_compile"
5282case "(($ac_try" in
5283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284  *) ac_try_echo=$ac_try;;
5285esac
5286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5287$as_echo "$ac_try_echo") >&5
5288  (eval "$ac_compile") 2>conftest.er1
5289  ac_status=$?
5290  grep -v '^ *+' conftest.er1 >conftest.err
5291  rm -f conftest.er1
5292  cat conftest.err >&5
5293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); } && {
5295	 test -z "$ac_c_werror_flag" ||
5296	 test ! -s conftest.err
5297       } && test -s conftest.$ac_objext; then
5298  ac_header_compiler=yes
5299else
5300  $as_echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303	ac_header_compiler=no
5304fi
5305
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308$as_echo "$ac_header_compiler" >&6; }
5309
5310# Is the header present?
5311{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312$as_echo_n "checking $ac_header presence... " >&6; }
5313cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h.  */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h.  */
5319#include <$ac_header>
5320_ACEOF
5321if { (ac_try="$ac_cpp conftest.$ac_ext"
5322case "(($ac_try" in
5323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324  *) ac_try_echo=$ac_try;;
5325esac
5326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5327$as_echo "$ac_try_echo") >&5
5328  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } >/dev/null && {
5335	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5336	 test ! -s conftest.err
5337       }; then
5338  ac_header_preproc=yes
5339else
5340  $as_echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343  ac_header_preproc=no
5344fi
5345
5346rm -f conftest.err conftest.$ac_ext
5347{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5348$as_echo "$ac_header_preproc" >&6; }
5349
5350# So?  What about this header?
5351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5352  yes:no: )
5353    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5354$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5355    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5356$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5357    ac_header_preproc=yes
5358    ;;
5359  no:yes:* )
5360    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5361$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5362    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5363$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5364    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5365$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5366    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5367$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5368    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5369$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5371$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5372    ( cat <<\_ASBOX
5373## ---------------------------------------------------------------------- ##
5374## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5375## ---------------------------------------------------------------------- ##
5376_ASBOX
5377     ) | sed "s/^/$as_me: WARNING:     /" >&2
5378    ;;
5379esac
5380{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5381$as_echo_n "checking for $ac_header... " >&6; }
5382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5383  $as_echo_n "(cached) " >&6
5384else
5385  eval "$as_ac_Header=\$ac_header_preproc"
5386fi
5387ac_res=`eval 'as_val=${'$as_ac_Header'}
5388		 $as_echo "$as_val"'`
5389	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5390$as_echo "$ac_res" >&6; }
5391
5392fi
5393as_val=`eval 'as_val=${'$as_ac_Header'}
5394		 $as_echo "$as_val"'`
5395   if test "x$as_val" = x""yes; then
5396  cat >>confdefs.h <<_ACEOF
5397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5398_ACEOF
5399
5400fi
5401
5402done
5403
5404ac_ext=cpp
5405ac_cpp='$CXXCPP $CPPFLAGS'
5406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5409if test -z "$CXX"; then
5410  if test -n "$CCC"; then
5411    CXX=$CCC
5412  else
5413    if test -n "$ac_tool_prefix"; then
5414  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5415  do
5416    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5419$as_echo_n "checking for $ac_word... " >&6; }
5420if test "${ac_cv_prog_CXX+set}" = set; then
5421  $as_echo_n "(cached) " >&6
5422else
5423  if test -n "$CXX"; then
5424  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429  IFS=$as_save_IFS
5430  test -z "$as_dir" && as_dir=.
5431  for ac_exec_ext in '' $ac_executable_extensions; do
5432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5434    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435    break 2
5436  fi
5437done
5438done
5439IFS=$as_save_IFS
5440
5441fi
5442fi
5443CXX=$ac_cv_prog_CXX
5444if test -n "$CXX"; then
5445  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5446$as_echo "$CXX" >&6; }
5447else
5448  { $as_echo "$as_me:$LINENO: result: no" >&5
5449$as_echo "no" >&6; }
5450fi
5451
5452
5453    test -n "$CXX" && break
5454  done
5455fi
5456if test -z "$CXX"; then
5457  ac_ct_CXX=$CXX
5458  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5459do
5460  # Extract the first word of "$ac_prog", so it can be a program name with args.
5461set dummy $ac_prog; ac_word=$2
5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$ac_ct_CXX"; then
5468  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475  for ac_exec_ext in '' $ac_executable_extensions; do
5476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477    ac_cv_prog_ac_ct_CXX="$ac_prog"
5478    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5488if test -n "$ac_ct_CXX"; then
5489  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5490$as_echo "$ac_ct_CXX" >&6; }
5491else
5492  { $as_echo "$as_me:$LINENO: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496
5497  test -n "$ac_ct_CXX" && break
5498done
5499
5500  if test "x$ac_ct_CXX" = x; then
5501    CXX="g++"
5502  else
5503    case $cross_compiling:$ac_tool_warned in
5504yes:)
5505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507ac_tool_warned=yes ;;
5508esac
5509    CXX=$ac_ct_CXX
5510  fi
5511fi
5512
5513  fi
5514fi
5515# Provide some information about the compiler.
5516$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5517set X $ac_compile
5518ac_compiler=$2
5519{ (ac_try="$ac_compiler --version >&5"
5520case "(($ac_try" in
5521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522  *) ac_try_echo=$ac_try;;
5523esac
5524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5525$as_echo "$ac_try_echo") >&5
5526  (eval "$ac_compiler --version >&5") 2>&5
5527  ac_status=$?
5528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); }
5530{ (ac_try="$ac_compiler -v >&5"
5531case "(($ac_try" in
5532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533  *) ac_try_echo=$ac_try;;
5534esac
5535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536$as_echo "$ac_try_echo") >&5
5537  (eval "$ac_compiler -v >&5") 2>&5
5538  ac_status=$?
5539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); }
5541{ (ac_try="$ac_compiler -V >&5"
5542case "(($ac_try" in
5543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544  *) ac_try_echo=$ac_try;;
5545esac
5546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5547$as_echo "$ac_try_echo") >&5
5548  (eval "$ac_compiler -V >&5") 2>&5
5549  ac_status=$?
5550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); }
5552
5553{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5554$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5555if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5556  $as_echo_n "(cached) " >&6
5557else
5558  cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h.  */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h.  */
5564
5565int
5566main ()
5567{
5568#ifndef __GNUC__
5569       choke me
5570#endif
5571
5572  ;
5573  return 0;
5574}
5575_ACEOF
5576rm -f conftest.$ac_objext
5577if { (ac_try="$ac_compile"
5578case "(($ac_try" in
5579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580  *) ac_try_echo=$ac_try;;
5581esac
5582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5583$as_echo "$ac_try_echo") >&5
5584  (eval "$ac_compile") 2>conftest.er1
5585  ac_status=$?
5586  grep -v '^ *+' conftest.er1 >conftest.err
5587  rm -f conftest.er1
5588  cat conftest.err >&5
5589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } && {
5591	 test -z "$ac_cxx_werror_flag" ||
5592	 test ! -s conftest.err
5593       } && test -s conftest.$ac_objext; then
5594  ac_compiler_gnu=yes
5595else
5596  $as_echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599	ac_compiler_gnu=no
5600fi
5601
5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5604
5605fi
5606{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5607$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5608if test $ac_compiler_gnu = yes; then
5609  GXX=yes
5610else
5611  GXX=
5612fi
5613ac_test_CXXFLAGS=${CXXFLAGS+set}
5614ac_save_CXXFLAGS=$CXXFLAGS
5615{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5616$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5617if test "${ac_cv_prog_cxx_g+set}" = set; then
5618  $as_echo_n "(cached) " >&6
5619else
5620  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5621   ac_cxx_werror_flag=yes
5622   ac_cv_prog_cxx_g=no
5623   CXXFLAGS="-g"
5624   cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h.  */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h.  */
5630
5631int
5632main ()
5633{
5634
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext
5640if { (ac_try="$ac_compile"
5641case "(($ac_try" in
5642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643  *) ac_try_echo=$ac_try;;
5644esac
5645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5646$as_echo "$ac_try_echo") >&5
5647  (eval "$ac_compile") 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } && {
5654	 test -z "$ac_cxx_werror_flag" ||
5655	 test ! -s conftest.err
5656       } && test -s conftest.$ac_objext; then
5657  ac_cv_prog_cxx_g=yes
5658else
5659  $as_echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662	CXXFLAGS=""
5663      cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669
5670int
5671main ()
5672{
5673
5674  ;
5675  return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682  *) ac_try_echo=$ac_try;;
5683esac
5684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5685$as_echo "$ac_try_echo") >&5
5686  (eval "$ac_compile") 2>conftest.er1
5687  ac_status=$?
5688  grep -v '^ *+' conftest.er1 >conftest.err
5689  rm -f conftest.er1
5690  cat conftest.err >&5
5691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } && {
5693	 test -z "$ac_cxx_werror_flag" ||
5694	 test ! -s conftest.err
5695       } && test -s conftest.$ac_objext; then
5696  :
5697else
5698  $as_echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5702	 CXXFLAGS="-g"
5703	 cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h.  */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h.  */
5709
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext
5719if { (ac_try="$ac_compile"
5720case "(($ac_try" in
5721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722  *) ac_try_echo=$ac_try;;
5723esac
5724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725$as_echo "$ac_try_echo") >&5
5726  (eval "$ac_compile") 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } && {
5733	 test -z "$ac_cxx_werror_flag" ||
5734	 test ! -s conftest.err
5735       } && test -s conftest.$ac_objext; then
5736  ac_cv_prog_cxx_g=yes
5737else
5738  $as_echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741
5742fi
5743
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745fi
5746
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748fi
5749
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5752fi
5753{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5754$as_echo "$ac_cv_prog_cxx_g" >&6; }
5755if test "$ac_test_CXXFLAGS" = set; then
5756  CXXFLAGS=$ac_save_CXXFLAGS
5757elif test $ac_cv_prog_cxx_g = yes; then
5758  if test "$GXX" = yes; then
5759    CXXFLAGS="-g -O2"
5760  else
5761    CXXFLAGS="-g"
5762  fi
5763else
5764  if test "$GXX" = yes; then
5765    CXXFLAGS="-O2"
5766  else
5767    CXXFLAGS=
5768  fi
5769fi
5770ac_ext=cpp
5771ac_cpp='$CXXCPP $CPPFLAGS'
5772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5775
5776depcc="$CXX"  am_compiler_list=
5777
5778{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5779$as_echo_n "checking dependency style of $depcc... " >&6; }
5780if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5784  # We make a subdir and do the tests there.  Otherwise we can end up
5785  # making bogus files that we don't know about and never remove.  For
5786  # instance it was reported that on HP-UX the gcc test will end up
5787  # making a dummy file named `D' -- because `-MD' means `put the output
5788  # in D'.
5789  mkdir conftest.dir
5790  # Copy depcomp to subdir because otherwise we won't find it if we're
5791  # using a relative directory.
5792  cp "$am_depcomp" conftest.dir
5793  cd conftest.dir
5794  # We will build objects and dependencies in a subdirectory because
5795  # it helps to detect inapplicable dependency modes.  For instance
5796  # both Tru64's cc and ICC support -MD to output dependencies as a
5797  # side effect of compilation, but ICC will put the dependencies in
5798  # the current directory while Tru64 will put them in the object
5799  # directory.
5800  mkdir sub
5801
5802  am_cv_CXX_dependencies_compiler_type=none
5803  if test "$am_compiler_list" = ""; then
5804     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5805  fi
5806  am__universal=false
5807  case " $depcc " in #(
5808     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5809     esac
5810
5811  for depmode in $am_compiler_list; do
5812    # Setup a source with many dependencies, because some compilers
5813    # like to wrap large dependency lists on column 80 (with \), and
5814    # we should not choose a depcomp mode which is confused by this.
5815    #
5816    # We need to recreate these files for each test, as the compiler may
5817    # overwrite some of them when testing with obscure command lines.
5818    # This happens at least with the AIX C compiler.
5819    : > sub/conftest.c
5820    for i in 1 2 3 4 5 6; do
5821      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5822      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5823      # Solaris 8's {/usr,}/bin/sh.
5824      touch sub/conftst$i.h
5825    done
5826    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5827
5828    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5829    # mode.  It turns out that the SunPro C++ compiler does not properly
5830    # handle `-M -o', and we need to detect this.  Also, some Intel
5831    # versions had trouble with output in subdirs
5832    am__obj=sub/conftest.${OBJEXT-o}
5833    am__minus_obj="-o $am__obj"
5834    case $depmode in
5835    gcc)
5836      # This depmode causes a compiler race in universal mode.
5837      test "$am__universal" = false || continue
5838      ;;
5839    nosideeffect)
5840      # after this tag, mechanisms are not by side-effect, so they'll
5841      # only be used when explicitly requested
5842      if test "x$enable_dependency_tracking" = xyes; then
5843	continue
5844      else
5845	break
5846      fi
5847      ;;
5848    msvisualcpp | msvcmsys)
5849      # This compiler won't grok `-c -o', but also, the minuso test has
5850      # not run yet.  These depmodes are late enough in the game, and
5851      # so weak that their functioning should not be impacted.
5852      am__obj=conftest.${OBJEXT-o}
5853      am__minus_obj=
5854      ;;
5855    none) break ;;
5856    esac
5857    if depmode=$depmode \
5858       source=sub/conftest.c object=$am__obj \
5859       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5860       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5861         >/dev/null 2>conftest.err &&
5862       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5863       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5864       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5865       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5866      # icc doesn't choke on unknown options, it will just issue warnings
5867      # or remarks (even with -Werror).  So we grep stderr for any message
5868      # that says an option was ignored or not supported.
5869      # When given -MP, icc 7.0 and 7.1 complain thusly:
5870      #   icc: Command line warning: ignoring option '-M'; no argument required
5871      # The diagnosis changed in icc 8.0:
5872      #   icc: Command line remark: option '-MP' not supported
5873      if (grep 'ignoring option' conftest.err ||
5874          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5875        am_cv_CXX_dependencies_compiler_type=$depmode
5876        break
5877      fi
5878    fi
5879  done
5880
5881  cd ..
5882  rm -rf conftest.dir
5883else
5884  am_cv_CXX_dependencies_compiler_type=none
5885fi
5886
5887fi
5888{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5889$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5890CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5891
5892 if
5893  test "x$enable_dependency_tracking" != xno \
5894  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5895  am__fastdepCXX_TRUE=
5896  am__fastdepCXX_FALSE='#'
5897else
5898  am__fastdepCXX_TRUE='#'
5899  am__fastdepCXX_FALSE=
5900fi
5901
5902
5903
5904
5905if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5906    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5907    (test "X$CXX" != "Xg++"))) ; then
5908  ac_ext=cpp
5909ac_cpp='$CXXCPP $CPPFLAGS'
5910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5913{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5914$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5915if test -z "$CXXCPP"; then
5916  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5917  $as_echo_n "(cached) " >&6
5918else
5919      # Double quotes because CXXCPP needs to be expanded
5920    for CXXCPP in "$CXX -E" "/lib/cpp"
5921    do
5922      ac_preproc_ok=false
5923for ac_cxx_preproc_warn_flag in '' yes
5924do
5925  # Use a header file that comes with gcc, so configuring glibc
5926  # with a fresh cross-compiler works.
5927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928  # <limits.h> exists even on freestanding compilers.
5929  # On the NeXT, cc -E runs the code through the compiler's parser,
5930  # not just through cpp. "Syntax error" is here to catch this case.
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#ifdef __STDC__
5938# include <limits.h>
5939#else
5940# include <assert.h>
5941#endif
5942		     Syntax error
5943_ACEOF
5944if { (ac_try="$ac_cpp conftest.$ac_ext"
5945case "(($ac_try" in
5946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947  *) ac_try_echo=$ac_try;;
5948esac
5949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5950$as_echo "$ac_try_echo") >&5
5951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } >/dev/null && {
5958	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5959	 test ! -s conftest.err
5960       }; then
5961  :
5962else
5963  $as_echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966  # Broken: fails on valid input.
5967continue
5968fi
5969
5970rm -f conftest.err conftest.$ac_ext
5971
5972  # OK, works on sane cases.  Now check whether nonexistent headers
5973  # can be detected and how.
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980#include <ac_nonexistent.h>
5981_ACEOF
5982if { (ac_try="$ac_cpp conftest.$ac_ext"
5983case "(($ac_try" in
5984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985  *) ac_try_echo=$ac_try;;
5986esac
5987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988$as_echo "$ac_try_echo") >&5
5989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990  ac_status=$?
5991  grep -v '^ *+' conftest.er1 >conftest.err
5992  rm -f conftest.er1
5993  cat conftest.err >&5
5994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); } >/dev/null && {
5996	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5997	 test ! -s conftest.err
5998       }; then
5999  # Broken: success on invalid input.
6000continue
6001else
6002  $as_echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005  # Passes both tests.
6006ac_preproc_ok=:
6007break
6008fi
6009
6010rm -f conftest.err conftest.$ac_ext
6011
6012done
6013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014rm -f conftest.err conftest.$ac_ext
6015if $ac_preproc_ok; then
6016  break
6017fi
6018
6019    done
6020    ac_cv_prog_CXXCPP=$CXXCPP
6021
6022fi
6023  CXXCPP=$ac_cv_prog_CXXCPP
6024else
6025  ac_cv_prog_CXXCPP=$CXXCPP
6026fi
6027{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6028$as_echo "$CXXCPP" >&6; }
6029ac_preproc_ok=false
6030for ac_cxx_preproc_warn_flag in '' yes
6031do
6032  # Use a header file that comes with gcc, so configuring glibc
6033  # with a fresh cross-compiler works.
6034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035  # <limits.h> exists even on freestanding compilers.
6036  # On the NeXT, cc -E runs the code through the compiler's parser,
6037  # not just through cpp. "Syntax error" is here to catch this case.
6038  cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044#ifdef __STDC__
6045# include <limits.h>
6046#else
6047# include <assert.h>
6048#endif
6049		     Syntax error
6050_ACEOF
6051if { (ac_try="$ac_cpp conftest.$ac_ext"
6052case "(($ac_try" in
6053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054  *) ac_try_echo=$ac_try;;
6055esac
6056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057$as_echo "$ac_try_echo") >&5
6058  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6059  ac_status=$?
6060  grep -v '^ *+' conftest.er1 >conftest.err
6061  rm -f conftest.er1
6062  cat conftest.err >&5
6063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); } >/dev/null && {
6065	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6066	 test ! -s conftest.err
6067       }; then
6068  :
6069else
6070  $as_echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073  # Broken: fails on valid input.
6074continue
6075fi
6076
6077rm -f conftest.err conftest.$ac_ext
6078
6079  # OK, works on sane cases.  Now check whether nonexistent headers
6080  # can be detected and how.
6081  cat >conftest.$ac_ext <<_ACEOF
6082/* confdefs.h.  */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h.  */
6087#include <ac_nonexistent.h>
6088_ACEOF
6089if { (ac_try="$ac_cpp conftest.$ac_ext"
6090case "(($ac_try" in
6091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092  *) ac_try_echo=$ac_try;;
6093esac
6094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095$as_echo "$ac_try_echo") >&5
6096  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6097  ac_status=$?
6098  grep -v '^ *+' conftest.er1 >conftest.err
6099  rm -f conftest.er1
6100  cat conftest.err >&5
6101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); } >/dev/null && {
6103	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6104	 test ! -s conftest.err
6105       }; then
6106  # Broken: success on invalid input.
6107continue
6108else
6109  $as_echo "$as_me: failed program was:" >&5
6110sed 's/^/| /' conftest.$ac_ext >&5
6111
6112  # Passes both tests.
6113ac_preproc_ok=:
6114break
6115fi
6116
6117rm -f conftest.err conftest.$ac_ext
6118
6119done
6120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121rm -f conftest.err conftest.$ac_ext
6122if $ac_preproc_ok; then
6123  :
6124else
6125  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6128See \`config.log' for more details." >&5
6129$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6130See \`config.log' for more details." >&2;}
6131   { (exit 1); exit 1; }; }; }
6132fi
6133
6134ac_ext=cpp
6135ac_cpp='$CXXCPP $CPPFLAGS'
6136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6139
6140fi
6141
6142
6143ac_ext=f
6144ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6145ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6147if test -n "$ac_tool_prefix"; then
6148  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
6149  do
6150    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if test "${ac_cv_prog_F77+set}" = set; then
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -n "$F77"; then
6158  ac_cv_prog_F77="$F77" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165  for ac_exec_ext in '' $ac_executable_extensions; do
6166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6168    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177F77=$ac_cv_prog_F77
6178if test -n "$F77"; then
6179  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6180$as_echo "$F77" >&6; }
6181else
6182  { $as_echo "$as_me:$LINENO: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187    test -n "$F77" && break
6188  done
6189fi
6190if test -z "$F77"; then
6191  ac_ct_F77=$F77
6192  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
6193do
6194  # Extract the first word of "$ac_prog", so it can be a program name with args.
6195set dummy $ac_prog; ac_word=$2
6196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$ac_ct_F77"; then
6202  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209  for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_ac_ct_F77="$ac_prog"
6212    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_F77=$ac_cv_prog_ac_ct_F77
6222if test -n "$ac_ct_F77"; then
6223  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6224$as_echo "$ac_ct_F77" >&6; }
6225else
6226  { $as_echo "$as_me:$LINENO: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230
6231  test -n "$ac_ct_F77" && break
6232done
6233
6234  if test "x$ac_ct_F77" = x; then
6235    F77=""
6236  else
6237    case $cross_compiling:$ac_tool_warned in
6238yes:)
6239{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241ac_tool_warned=yes ;;
6242esac
6243    F77=$ac_ct_F77
6244  fi
6245fi
6246
6247
6248# Provide some information about the compiler.
6249$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6250set X $ac_compile
6251ac_compiler=$2
6252{ (ac_try="$ac_compiler --version >&5"
6253case "(($ac_try" in
6254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255  *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6258$as_echo "$ac_try_echo") >&5
6259  (eval "$ac_compiler --version >&5") 2>&5
6260  ac_status=$?
6261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); }
6263{ (ac_try="$ac_compiler -v >&5"
6264case "(($ac_try" in
6265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266  *) ac_try_echo=$ac_try;;
6267esac
6268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6269$as_echo "$ac_try_echo") >&5
6270  (eval "$ac_compiler -v >&5") 2>&5
6271  ac_status=$?
6272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); }
6274{ (ac_try="$ac_compiler -V >&5"
6275case "(($ac_try" in
6276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277  *) ac_try_echo=$ac_try;;
6278esac
6279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280$as_echo "$ac_try_echo") >&5
6281  (eval "$ac_compiler -V >&5") 2>&5
6282  ac_status=$?
6283  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284  (exit $ac_status); }
6285rm -f a.out
6286
6287# If we don't use `.F' as extension, the preprocessor is not run on the
6288# input file.  (Note that this only needs to work for GNU compilers.)
6289ac_save_ext=$ac_ext
6290ac_ext=F
6291{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6292$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6293if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6294  $as_echo_n "(cached) " >&6
6295else
6296  cat >conftest.$ac_ext <<_ACEOF
6297      program main
6298#ifndef __GNUC__
6299       choke me
6300#endif
6301
6302      end
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (ac_try="$ac_compile"
6306case "(($ac_try" in
6307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308  *) ac_try_echo=$ac_try;;
6309esac
6310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6311$as_echo "$ac_try_echo") >&5
6312  (eval "$ac_compile") 2>conftest.er1
6313  ac_status=$?
6314  grep -v '^ *+' conftest.er1 >conftest.err
6315  rm -f conftest.er1
6316  cat conftest.err >&5
6317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318  (exit $ac_status); } && {
6319	 test -z "$ac_f77_werror_flag" ||
6320	 test ! -s conftest.err
6321       } && test -s conftest.$ac_objext; then
6322  ac_compiler_gnu=yes
6323else
6324  $as_echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327	ac_compiler_gnu=no
6328fi
6329
6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6332
6333fi
6334{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6335$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6336ac_ext=$ac_save_ext
6337ac_test_FFLAGS=${FFLAGS+set}
6338ac_save_FFLAGS=$FFLAGS
6339FFLAGS=
6340{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6341$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6342if test "${ac_cv_prog_f77_g+set}" = set; then
6343  $as_echo_n "(cached) " >&6
6344else
6345  FFLAGS=-g
6346cat >conftest.$ac_ext <<_ACEOF
6347      program main
6348
6349      end
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (ac_try="$ac_compile"
6353case "(($ac_try" in
6354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355  *) ac_try_echo=$ac_try;;
6356esac
6357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6358$as_echo "$ac_try_echo") >&5
6359  (eval "$ac_compile") 2>conftest.er1
6360  ac_status=$?
6361  grep -v '^ *+' conftest.er1 >conftest.err
6362  rm -f conftest.er1
6363  cat conftest.err >&5
6364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); } && {
6366	 test -z "$ac_f77_werror_flag" ||
6367	 test ! -s conftest.err
6368       } && test -s conftest.$ac_objext; then
6369  ac_cv_prog_f77_g=yes
6370else
6371  $as_echo "$as_me: failed program was:" >&5
6372sed 's/^/| /' conftest.$ac_ext >&5
6373
6374	ac_cv_prog_f77_g=no
6375fi
6376
6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378
6379fi
6380{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6381$as_echo "$ac_cv_prog_f77_g" >&6; }
6382if test "$ac_test_FFLAGS" = set; then
6383  FFLAGS=$ac_save_FFLAGS
6384elif test $ac_cv_prog_f77_g = yes; then
6385  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6386    FFLAGS="-g -O2"
6387  else
6388    FFLAGS="-g"
6389  fi
6390else
6391  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6392    FFLAGS="-O2"
6393  else
6394    FFLAGS=
6395  fi
6396fi
6397
6398if test $ac_compiler_gnu = yes; then
6399  G77=yes
6400else
6401  G77=
6402fi
6403ac_ext=c
6404ac_cpp='$CPP $CPPFLAGS'
6405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408
6409
6410
6411# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6412# find the maximum length of command line arguments
6413{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6414$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6415if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6416  $as_echo_n "(cached) " >&6
6417else
6418    i=0
6419  teststring="ABCD"
6420
6421  case $build_os in
6422  msdosdjgpp*)
6423    # On DJGPP, this test can blow up pretty badly due to problems in libc
6424    # (any single argument exceeding 2000 bytes causes a buffer overrun
6425    # during glob expansion).  Even if it were fixed, the result of this
6426    # check would be larger than it should be.
6427    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6428    ;;
6429
6430  gnu*)
6431    # Under GNU Hurd, this test is not required because there is
6432    # no limit to the length of command line arguments.
6433    # Libtool will interpret -1 as no limit whatsoever
6434    lt_cv_sys_max_cmd_len=-1;
6435    ;;
6436
6437  cygwin* | mingw*)
6438    # On Win9x/ME, this test blows up -- it succeeds, but takes
6439    # about 5 minutes as the teststring grows exponentially.
6440    # Worse, since 9x/ME are not pre-emptively multitasking,
6441    # you end up with a "frozen" computer, even though with patience
6442    # the test eventually succeeds (with a max line length of 256k).
6443    # Instead, let's just punt: use the minimum linelength reported by
6444    # all of the supported platforms: 8192 (on NT/2K/XP).
6445    lt_cv_sys_max_cmd_len=8192;
6446    ;;
6447
6448  amigaos*)
6449    # On AmigaOS with pdksh, this test takes hours, literally.
6450    # So we just punt and use a minimum line length of 8192.
6451    lt_cv_sys_max_cmd_len=8192;
6452    ;;
6453
6454  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6455    # This has been around since 386BSD, at least.  Likely further.
6456    if test -x /sbin/sysctl; then
6457      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6458    elif test -x /usr/sbin/sysctl; then
6459      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6460    else
6461      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6462    fi
6463    # And add a safety zone
6464    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6465    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6466    ;;
6467
6468  interix*)
6469    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6470    lt_cv_sys_max_cmd_len=196608
6471    ;;
6472
6473  osf*)
6474    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6475    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6476    # nice to cause kernel panics so lets avoid the loop below.
6477    # First set a reasonable default.
6478    lt_cv_sys_max_cmd_len=16384
6479    #
6480    if test -x /sbin/sysconfig; then
6481      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6482        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6483      esac
6484    fi
6485    ;;
6486  sco3.2v5*)
6487    lt_cv_sys_max_cmd_len=102400
6488    ;;
6489  sysv5* | sco5v6* | sysv4.2uw2*)
6490    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6491    if test -n "$kargmax"; then
6492      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6493    else
6494      lt_cv_sys_max_cmd_len=32768
6495    fi
6496    ;;
6497  *)
6498    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6499    if test -n "$lt_cv_sys_max_cmd_len"; then
6500      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6501      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6502    else
6503      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6504      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6505	       = "XX$teststring") >/dev/null 2>&1 &&
6506	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6507	      lt_cv_sys_max_cmd_len=$new_result &&
6508	      test $i != 17 # 1/2 MB should be enough
6509      do
6510        i=`expr $i + 1`
6511        teststring=$teststring$teststring
6512      done
6513      teststring=
6514      # Add a significant safety factor because C++ compilers can tack on massive
6515      # amounts of additional arguments before passing them to the linker.
6516      # It appears as though 1/2 is a usable value.
6517      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6518    fi
6519    ;;
6520  esac
6521
6522fi
6523
6524if test -n $lt_cv_sys_max_cmd_len ; then
6525  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6526$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6527else
6528  { $as_echo "$as_me:$LINENO: result: none" >&5
6529$as_echo "none" >&6; }
6530fi
6531
6532
6533
6534
6535
6536# Check for command to grab the raw symbol name followed by C symbol from nm.
6537{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6538$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6539if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6540  $as_echo_n "(cached) " >&6
6541else
6542
6543# These are sane defaults that work on at least a few old systems.
6544# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6545
6546# Character class describing NM global symbol codes.
6547symcode='[BCDEGRST]'
6548
6549# Regexp to match symbols that can be accessed directly from C.
6550sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6551
6552# Transform an extracted symbol line into a proper C declaration
6553lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6554
6555# Transform an extracted symbol line into symbol name and symbol address
6556lt_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'"
6557
6558# Define system-specific variables.
6559case $host_os in
6560aix*)
6561  symcode='[BCDT]'
6562  ;;
6563cygwin* | mingw* | pw32*)
6564  symcode='[ABCDGISTW]'
6565  ;;
6566hpux*) # Its linker distinguishes data from code symbols
6567  if test "$host_cpu" = ia64; then
6568    symcode='[ABCDEGRST]'
6569  fi
6570  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6571  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'"
6572  ;;
6573linux* | k*bsd*-gnu)
6574  if test "$host_cpu" = ia64; then
6575    symcode='[ABCDGIRSTW]'
6576    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6577    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'"
6578  fi
6579  ;;
6580irix* | nonstopux*)
6581  symcode='[BCDEGRST]'
6582  ;;
6583osf*)
6584  symcode='[BCDEGQRST]'
6585  ;;
6586solaris*)
6587  symcode='[BDRT]'
6588  ;;
6589sco3.2v5*)
6590  symcode='[DT]'
6591  ;;
6592sysv4.2uw2*)
6593  symcode='[DT]'
6594  ;;
6595sysv5* | sco5v6* | unixware* | OpenUNIX*)
6596  symcode='[ABDT]'
6597  ;;
6598sysv4)
6599  symcode='[DFNSTU]'
6600  ;;
6601esac
6602
6603# Handle CRLF in mingw tool chain
6604opt_cr=
6605case $build_os in
6606mingw*)
6607  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6608  ;;
6609esac
6610
6611# If we're using GNU nm, then use its standard symbol codes.
6612case `$NM -V 2>&1` in
6613*GNU* | *'with BFD'*)
6614  symcode='[ABCDGIRSTW]' ;;
6615esac
6616
6617# Try without a prefix undercore, then with it.
6618for ac_symprfx in "" "_"; do
6619
6620  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6621  symxfrm="\\1 $ac_symprfx\\2 \\2"
6622
6623  # Write the raw and C identifiers.
6624  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6625
6626  # Check to see that the pipe works correctly.
6627  pipe_works=no
6628
6629  rm -f conftest*
6630  cat > conftest.$ac_ext <<EOF
6631#ifdef __cplusplus
6632extern "C" {
6633#endif
6634char nm_test_var;
6635void nm_test_func(){}
6636#ifdef __cplusplus
6637}
6638#endif
6639int main(){nm_test_var='a';nm_test_func();return(0);}
6640EOF
6641
6642  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643  (eval $ac_compile) 2>&5
6644  ac_status=$?
6645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); }; then
6647    # Now try to grab the symbols.
6648    nlist=conftest.nm
6649    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6650  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6651  ac_status=$?
6652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); } && test -s "$nlist"; then
6654      # Try sorting and uniquifying the output.
6655      if sort "$nlist" | uniq > "$nlist"T; then
6656	mv -f "$nlist"T "$nlist"
6657      else
6658	rm -f "$nlist"T
6659      fi
6660
6661      # Make sure that we snagged all the symbols we need.
6662      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6663	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6664	  cat <<EOF > conftest.$ac_ext
6665#ifdef __cplusplus
6666extern "C" {
6667#endif
6668
6669EOF
6670	  # Now generate the symbol file.
6671	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6672
6673	  cat <<EOF >> conftest.$ac_ext
6674#if defined (__STDC__) && __STDC__
6675# define lt_ptr_t void *
6676#else
6677# define lt_ptr_t char *
6678# define const
6679#endif
6680
6681/* The mapping between symbol names and symbols. */
6682const struct {
6683  const char *name;
6684  lt_ptr_t address;
6685}
6686lt_preloaded_symbols[] =
6687{
6688EOF
6689	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6690	  cat <<\EOF >> conftest.$ac_ext
6691  {0, (lt_ptr_t) 0}
6692};
6693
6694#ifdef __cplusplus
6695}
6696#endif
6697EOF
6698	  # Now try linking the two files.
6699	  mv conftest.$ac_objext conftstm.$ac_objext
6700	  lt_save_LIBS="$LIBS"
6701	  lt_save_CFLAGS="$CFLAGS"
6702	  LIBS="conftstm.$ac_objext"
6703	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6704	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705  (eval $ac_link) 2>&5
6706  ac_status=$?
6707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6709	    pipe_works=yes
6710	  fi
6711	  LIBS="$lt_save_LIBS"
6712	  CFLAGS="$lt_save_CFLAGS"
6713	else
6714	  echo "cannot find nm_test_func in $nlist" >&5
6715	fi
6716      else
6717	echo "cannot find nm_test_var in $nlist" >&5
6718      fi
6719    else
6720      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6721    fi
6722  else
6723    echo "$progname: failed program was:" >&5
6724    cat conftest.$ac_ext >&5
6725  fi
6726  rm -rf conftest* conftst*
6727
6728  # Do not use the global_symbol_pipe unless it works.
6729  if test "$pipe_works" = yes; then
6730    break
6731  else
6732    lt_cv_sys_global_symbol_pipe=
6733  fi
6734done
6735
6736fi
6737
6738if test -z "$lt_cv_sys_global_symbol_pipe"; then
6739  lt_cv_sys_global_symbol_to_cdecl=
6740fi
6741if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6742  { $as_echo "$as_me:$LINENO: result: failed" >&5
6743$as_echo "failed" >&6; }
6744else
6745  { $as_echo "$as_me:$LINENO: result: ok" >&5
6746$as_echo "ok" >&6; }
6747fi
6748
6749{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6750$as_echo_n "checking for objdir... " >&6; }
6751if test "${lt_cv_objdir+set}" = set; then
6752  $as_echo_n "(cached) " >&6
6753else
6754  rm -f .libs 2>/dev/null
6755mkdir .libs 2>/dev/null
6756if test -d .libs; then
6757  lt_cv_objdir=.libs
6758else
6759  # MS-DOS does not allow filenames that begin with a dot.
6760  lt_cv_objdir=_libs
6761fi
6762rmdir .libs 2>/dev/null
6763fi
6764{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6765$as_echo "$lt_cv_objdir" >&6; }
6766objdir=$lt_cv_objdir
6767
6768
6769
6770
6771
6772case $host_os in
6773aix3*)
6774  # AIX sometimes has problems with the GCC collect2 program.  For some
6775  # reason, if we set the COLLECT_NAMES environment variable, the problems
6776  # vanish in a puff of smoke.
6777  if test "X${COLLECT_NAMES+set}" != Xset; then
6778    COLLECT_NAMES=
6779    export COLLECT_NAMES
6780  fi
6781  ;;
6782esac
6783
6784# Sed substitution that helps us do robust quoting.  It backslashifies
6785# metacharacters that are still active within double-quoted strings.
6786Xsed='sed -e 1s/^X//'
6787sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6788
6789# Same as above, but do not quote variable references.
6790double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6791
6792# Sed substitution to delay expansion of an escaped shell variable in a
6793# double_quote_subst'ed string.
6794delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6795
6796# Sed substitution to avoid accidental globbing in evaled expressions
6797no_glob_subst='s/\*/\\\*/g'
6798
6799# Constants:
6800rm="rm -f"
6801
6802# Global variables:
6803default_ofile=libtool
6804can_build_shared=yes
6805
6806# All known linkers require a `.a' archive for static linking (except MSVC,
6807# which needs '.lib').
6808libext=a
6809ltmain="$ac_aux_dir/ltmain.sh"
6810ofile="$default_ofile"
6811with_gnu_ld="$lt_cv_prog_gnu_ld"
6812
6813if test -n "$ac_tool_prefix"; then
6814  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}ar; ac_word=$2
6816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_AR+set}" = set; then
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$AR"; then
6822  ac_cv_prog_AR="$AR" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829  for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_AR="${ac_tool_prefix}ar"
6832    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841AR=$ac_cv_prog_AR
6842if test -n "$AR"; then
6843  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6844$as_echo "$AR" >&6; }
6845else
6846  { $as_echo "$as_me:$LINENO: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_AR"; then
6853  ac_ct_AR=$AR
6854  # Extract the first word of "ar", so it can be a program name with args.
6855set dummy ar; ac_word=$2
6856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
6858if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6859  $as_echo_n "(cached) " >&6
6860else
6861  if test -n "$ac_ct_AR"; then
6862  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_ac_ct_AR="ar"
6872    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_AR=$ac_cv_prog_ac_ct_AR
6882if test -n "$ac_ct_AR"; then
6883  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6884$as_echo "$ac_ct_AR" >&6; }
6885else
6886  { $as_echo "$as_me:$LINENO: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890  if test "x$ac_ct_AR" = x; then
6891    AR="false"
6892  else
6893    case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897ac_tool_warned=yes ;;
6898esac
6899    AR=$ac_ct_AR
6900  fi
6901else
6902  AR="$ac_cv_prog_AR"
6903fi
6904
6905if test -n "$ac_tool_prefix"; then
6906  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6907set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if test "${ac_cv_prog_RANLIB+set}" = set; then
6911  $as_echo_n "(cached) " >&6
6912else
6913  if test -n "$RANLIB"; then
6914  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921  for ac_exec_ext in '' $ac_executable_extensions; do
6922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6924    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933RANLIB=$ac_cv_prog_RANLIB
6934if test -n "$RANLIB"; then
6935  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6936$as_echo "$RANLIB" >&6; }
6937else
6938  { $as_echo "$as_me:$LINENO: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942
6943fi
6944if test -z "$ac_cv_prog_RANLIB"; then
6945  ac_ct_RANLIB=$RANLIB
6946  # Extract the first word of "ranlib", so it can be a program name with args.
6947set dummy ranlib; ac_word=$2
6948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
6950if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6951  $as_echo_n "(cached) " >&6
6952else
6953  if test -n "$ac_ct_RANLIB"; then
6954  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  test -z "$as_dir" && as_dir=.
6961  for ac_exec_ext in '' $ac_executable_extensions; do
6962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963    ac_cv_prog_ac_ct_RANLIB="ranlib"
6964    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965    break 2
6966  fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6974if test -n "$ac_ct_RANLIB"; then
6975  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6976$as_echo "$ac_ct_RANLIB" >&6; }
6977else
6978  { $as_echo "$as_me:$LINENO: result: no" >&5
6979$as_echo "no" >&6; }
6980fi
6981
6982  if test "x$ac_ct_RANLIB" = x; then
6983    RANLIB=":"
6984  else
6985    case $cross_compiling:$ac_tool_warned in
6986yes:)
6987{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989ac_tool_warned=yes ;;
6990esac
6991    RANLIB=$ac_ct_RANLIB
6992  fi
6993else
6994  RANLIB="$ac_cv_prog_RANLIB"
6995fi
6996
6997if test -n "$ac_tool_prefix"; then
6998  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6999set dummy ${ac_tool_prefix}strip; ac_word=$2
7000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7001$as_echo_n "checking for $ac_word... " >&6; }
7002if test "${ac_cv_prog_STRIP+set}" = set; then
7003  $as_echo_n "(cached) " >&6
7004else
7005  if test -n "$STRIP"; then
7006  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011  IFS=$as_save_IFS
7012  test -z "$as_dir" && as_dir=.
7013  for ac_exec_ext in '' $ac_executable_extensions; do
7014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7016    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017    break 2
7018  fi
7019done
7020done
7021IFS=$as_save_IFS
7022
7023fi
7024fi
7025STRIP=$ac_cv_prog_STRIP
7026if test -n "$STRIP"; then
7027  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7028$as_echo "$STRIP" >&6; }
7029else
7030  { $as_echo "$as_me:$LINENO: result: no" >&5
7031$as_echo "no" >&6; }
7032fi
7033
7034
7035fi
7036if test -z "$ac_cv_prog_STRIP"; then
7037  ac_ct_STRIP=$STRIP
7038  # Extract the first word of "strip", so it can be a program name with args.
7039set dummy strip; ac_word=$2
7040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7041$as_echo_n "checking for $ac_word... " >&6; }
7042if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7043  $as_echo_n "(cached) " >&6
7044else
7045  if test -n "$ac_ct_STRIP"; then
7046  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7047else
7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051  IFS=$as_save_IFS
7052  test -z "$as_dir" && as_dir=.
7053  for ac_exec_ext in '' $ac_executable_extensions; do
7054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055    ac_cv_prog_ac_ct_STRIP="strip"
7056    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057    break 2
7058  fi
7059done
7060done
7061IFS=$as_save_IFS
7062
7063fi
7064fi
7065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7066if test -n "$ac_ct_STRIP"; then
7067  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7068$as_echo "$ac_ct_STRIP" >&6; }
7069else
7070  { $as_echo "$as_me:$LINENO: result: no" >&5
7071$as_echo "no" >&6; }
7072fi
7073
7074  if test "x$ac_ct_STRIP" = x; then
7075    STRIP=":"
7076  else
7077    case $cross_compiling:$ac_tool_warned in
7078yes:)
7079{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081ac_tool_warned=yes ;;
7082esac
7083    STRIP=$ac_ct_STRIP
7084  fi
7085else
7086  STRIP="$ac_cv_prog_STRIP"
7087fi
7088
7089
7090old_CC="$CC"
7091old_CFLAGS="$CFLAGS"
7092
7093# Set sane defaults for various variables
7094test -z "$AR" && AR=ar
7095test -z "$AR_FLAGS" && AR_FLAGS=cru
7096test -z "$AS" && AS=as
7097test -z "$CC" && CC=cc
7098test -z "$LTCC" && LTCC=$CC
7099test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7100test -z "$DLLTOOL" && DLLTOOL=dlltool
7101test -z "$LD" && LD=ld
7102test -z "$LN_S" && LN_S="ln -s"
7103test -z "$MAGIC_CMD" && MAGIC_CMD=file
7104test -z "$NM" && NM=nm
7105test -z "$SED" && SED=sed
7106test -z "$OBJDUMP" && OBJDUMP=objdump
7107test -z "$RANLIB" && RANLIB=:
7108test -z "$STRIP" && STRIP=:
7109test -z "$ac_objext" && ac_objext=o
7110
7111# Determine commands to create old-style static archives.
7112old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7113old_postinstall_cmds='chmod 644 $oldlib'
7114old_postuninstall_cmds=
7115
7116if test -n "$RANLIB"; then
7117  case $host_os in
7118  openbsd*)
7119    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7120    ;;
7121  *)
7122    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7123    ;;
7124  esac
7125  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7126fi
7127
7128for cc_temp in $compiler""; do
7129  case $cc_temp in
7130    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7131    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7132    \-*) ;;
7133    *) break;;
7134  esac
7135done
7136cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7137
7138
7139# Only perform the check for file, if the check method requires it
7140case $deplibs_check_method in
7141file_magic*)
7142  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7143    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7144$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7145if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7146  $as_echo_n "(cached) " >&6
7147else
7148  case $MAGIC_CMD in
7149[\\/*] |  ?:[\\/]*)
7150  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7151  ;;
7152*)
7153  lt_save_MAGIC_CMD="$MAGIC_CMD"
7154  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7155  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7156  for ac_dir in $ac_dummy; do
7157    IFS="$lt_save_ifs"
7158    test -z "$ac_dir" && ac_dir=.
7159    if test -f $ac_dir/${ac_tool_prefix}file; then
7160      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7161      if test -n "$file_magic_test_file"; then
7162	case $deplibs_check_method in
7163	"file_magic "*)
7164	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7165	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7166	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7167	    $EGREP "$file_magic_regex" > /dev/null; then
7168	    :
7169	  else
7170	    cat <<EOF 1>&2
7171
7172*** Warning: the command libtool uses to detect shared libraries,
7173*** $file_magic_cmd, produces output that libtool cannot recognize.
7174*** The result is that libtool may fail to recognize shared libraries
7175*** as such.  This will affect the creation of libtool libraries that
7176*** depend on shared libraries, but programs linked with such libtool
7177*** libraries will work regardless of this problem.  Nevertheless, you
7178*** may want to report the problem to your system manager and/or to
7179*** bug-libtool@gnu.org
7180
7181EOF
7182	  fi ;;
7183	esac
7184      fi
7185      break
7186    fi
7187  done
7188  IFS="$lt_save_ifs"
7189  MAGIC_CMD="$lt_save_MAGIC_CMD"
7190  ;;
7191esac
7192fi
7193
7194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7195if test -n "$MAGIC_CMD"; then
7196  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7197$as_echo "$MAGIC_CMD" >&6; }
7198else
7199  { $as_echo "$as_me:$LINENO: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203if test -z "$lt_cv_path_MAGIC_CMD"; then
7204  if test -n "$ac_tool_prefix"; then
7205    { $as_echo "$as_me:$LINENO: checking for file" >&5
7206$as_echo_n "checking for file... " >&6; }
7207if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7208  $as_echo_n "(cached) " >&6
7209else
7210  case $MAGIC_CMD in
7211[\\/*] |  ?:[\\/]*)
7212  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213  ;;
7214*)
7215  lt_save_MAGIC_CMD="$MAGIC_CMD"
7216  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7217  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7218  for ac_dir in $ac_dummy; do
7219    IFS="$lt_save_ifs"
7220    test -z "$ac_dir" && ac_dir=.
7221    if test -f $ac_dir/file; then
7222      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7223      if test -n "$file_magic_test_file"; then
7224	case $deplibs_check_method in
7225	"file_magic "*)
7226	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7227	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7228	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7229	    $EGREP "$file_magic_regex" > /dev/null; then
7230	    :
7231	  else
7232	    cat <<EOF 1>&2
7233
7234*** Warning: the command libtool uses to detect shared libraries,
7235*** $file_magic_cmd, produces output that libtool cannot recognize.
7236*** The result is that libtool may fail to recognize shared libraries
7237*** as such.  This will affect the creation of libtool libraries that
7238*** depend on shared libraries, but programs linked with such libtool
7239*** libraries will work regardless of this problem.  Nevertheless, you
7240*** may want to report the problem to your system manager and/or to
7241*** bug-libtool@gnu.org
7242
7243EOF
7244	  fi ;;
7245	esac
7246      fi
7247      break
7248    fi
7249  done
7250  IFS="$lt_save_ifs"
7251  MAGIC_CMD="$lt_save_MAGIC_CMD"
7252  ;;
7253esac
7254fi
7255
7256MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7257if test -n "$MAGIC_CMD"; then
7258  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7259$as_echo "$MAGIC_CMD" >&6; }
7260else
7261  { $as_echo "$as_me:$LINENO: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  else
7266    MAGIC_CMD=:
7267  fi
7268fi
7269
7270  fi
7271  ;;
7272esac
7273
7274
7275  case $host_os in
7276    rhapsody* | darwin*)
7277    if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$DSYMUTIL"; then
7286  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293  for ac_exec_ext in '' $ac_executable_extensions; do
7294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7296    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305DSYMUTIL=$ac_cv_prog_DSYMUTIL
7306if test -n "$DSYMUTIL"; then
7307  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7308$as_echo "$DSYMUTIL" >&6; }
7309else
7310  { $as_echo "$as_me:$LINENO: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_DSYMUTIL"; then
7317  ac_ct_DSYMUTIL=$DSYMUTIL
7318  # Extract the first word of "dsymutil", so it can be a program name with args.
7319set dummy dsymutil; ac_word=$2
7320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_DSYMUTIL"; then
7326  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333  for ac_exec_ext in '' $ac_executable_extensions; do
7334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7336    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7346if test -n "$ac_ct_DSYMUTIL"; then
7347  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7348$as_echo "$ac_ct_DSYMUTIL" >&6; }
7349else
7350  { $as_echo "$as_me:$LINENO: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_DSYMUTIL" = x; then
7355    DSYMUTIL=":"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    DSYMUTIL=$ac_ct_DSYMUTIL
7364  fi
7365else
7366  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7367fi
7368
7369    if test -n "$ac_tool_prefix"; then
7370  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7371set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7372{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7373$as_echo_n "checking for $ac_word... " >&6; }
7374if test "${ac_cv_prog_NMEDIT+set}" = set; then
7375  $as_echo_n "(cached) " >&6
7376else
7377  if test -n "$NMEDIT"; then
7378  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383  IFS=$as_save_IFS
7384  test -z "$as_dir" && as_dir=.
7385  for ac_exec_ext in '' $ac_executable_extensions; do
7386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7388    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389    break 2
7390  fi
7391done
7392done
7393IFS=$as_save_IFS
7394
7395fi
7396fi
7397NMEDIT=$ac_cv_prog_NMEDIT
7398if test -n "$NMEDIT"; then
7399  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7400$as_echo "$NMEDIT" >&6; }
7401else
7402  { $as_echo "$as_me:$LINENO: result: no" >&5
7403$as_echo "no" >&6; }
7404fi
7405
7406
7407fi
7408if test -z "$ac_cv_prog_NMEDIT"; then
7409  ac_ct_NMEDIT=$NMEDIT
7410  # Extract the first word of "nmedit", so it can be a program name with args.
7411set dummy nmedit; ac_word=$2
7412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7413$as_echo_n "checking for $ac_word... " >&6; }
7414if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7415  $as_echo_n "(cached) " >&6
7416else
7417  if test -n "$ac_ct_NMEDIT"; then
7418  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7419else
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423  IFS=$as_save_IFS
7424  test -z "$as_dir" && as_dir=.
7425  for ac_exec_ext in '' $ac_executable_extensions; do
7426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7428    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7438if test -n "$ac_ct_NMEDIT"; then
7439  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7440$as_echo "$ac_ct_NMEDIT" >&6; }
7441else
7442  { $as_echo "$as_me:$LINENO: result: no" >&5
7443$as_echo "no" >&6; }
7444fi
7445
7446  if test "x$ac_ct_NMEDIT" = x; then
7447    NMEDIT=":"
7448  else
7449    case $cross_compiling:$ac_tool_warned in
7450yes:)
7451{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453ac_tool_warned=yes ;;
7454esac
7455    NMEDIT=$ac_ct_NMEDIT
7456  fi
7457else
7458  NMEDIT="$ac_cv_prog_NMEDIT"
7459fi
7460
7461
7462    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7463$as_echo_n "checking for -single_module linker flag... " >&6; }
7464if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7465  $as_echo_n "(cached) " >&6
7466else
7467  lt_cv_apple_cc_single_mod=no
7468      if test -z "${LT_MULTI_MODULE}"; then
7469   # By default we will add the -single_module flag. You can override
7470   # by either setting the environment variable LT_MULTI_MODULE
7471   # non-empty at configure time, or by adding -multi_module to the
7472   # link flags.
7473   echo "int foo(void){return 1;}" > conftest.c
7474   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7475     -dynamiclib ${wl}-single_module conftest.c
7476   if test -f libconftest.dylib; then
7477     lt_cv_apple_cc_single_mod=yes
7478     rm -rf libconftest.dylib*
7479   fi
7480   rm conftest.c
7481      fi
7482fi
7483{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7484$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7485    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7486$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7487if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7488  $as_echo_n "(cached) " >&6
7489else
7490  lt_cv_ld_exported_symbols_list=no
7491      save_LDFLAGS=$LDFLAGS
7492      echo "_main" > conftest.sym
7493      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7494      cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500
7501int
7502main ()
7503{
7504
7505  ;
7506  return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext conftest$ac_exeext
7510if { (ac_try="$ac_link"
7511case "(($ac_try" in
7512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513  *) ac_try_echo=$ac_try;;
7514esac
7515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7516$as_echo "$ac_try_echo") >&5
7517  (eval "$ac_link") 2>conftest.er1
7518  ac_status=$?
7519  grep -v '^ *+' conftest.er1 >conftest.err
7520  rm -f conftest.er1
7521  cat conftest.err >&5
7522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523  (exit $ac_status); } && {
7524	 test -z "$ac_c_werror_flag" ||
7525	 test ! -s conftest.err
7526       } && test -s conftest$ac_exeext && {
7527	 test "$cross_compiling" = yes ||
7528	 $as_test_x conftest$ac_exeext
7529       }; then
7530  lt_cv_ld_exported_symbols_list=yes
7531else
7532  $as_echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535	lt_cv_ld_exported_symbols_list=no
7536fi
7537
7538rm -rf conftest.dSYM
7539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7540      conftest$ac_exeext conftest.$ac_ext
7541   LDFLAGS="$save_LDFLAGS"
7542
7543fi
7544{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7545$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7546    case $host_os in
7547    rhapsody* | darwin1.[0123])
7548      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7549    darwin1.*)
7550     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7551    darwin*)
7552      # if running on 10.5 or later, the deployment target defaults
7553      # to the OS version, if on x86, and 10.4, the deployment
7554      # target defaults to 10.4. Don't you love it?
7555      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7556   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7557     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7558   10.[012]*)
7559     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7560   10.*)
7561     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7562      esac
7563    ;;
7564  esac
7565    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7566      _lt_dar_single_mod='$single_module'
7567    fi
7568    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7569      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7570    else
7571      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7572    fi
7573    if test "$DSYMUTIL" != ":"; then
7574      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7575    else
7576      _lt_dsymutil=
7577    fi
7578    ;;
7579  esac
7580
7581
7582enable_dlopen=no
7583enable_win32_dll=no
7584
7585# Check whether --enable-libtool-lock was given.
7586if test "${enable_libtool_lock+set}" = set; then
7587  enableval=$enable_libtool_lock;
7588fi
7589
7590test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7591
7592
7593# Check whether --with-pic was given.
7594if test "${with_pic+set}" = set; then
7595  withval=$with_pic; pic_mode="$withval"
7596else
7597  pic_mode=default
7598fi
7599
7600test -z "$pic_mode" && pic_mode=default
7601
7602# Use C for the default configuration in the libtool script
7603tagname=
7604lt_save_CC="$CC"
7605ac_ext=c
7606ac_cpp='$CPP $CPPFLAGS'
7607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610
7611
7612# Source file extension for C test sources.
7613ac_ext=c
7614
7615# Object file extension for compiled C test sources.
7616objext=o
7617objext=$objext
7618
7619# Code to be used in simple compile tests
7620lt_simple_compile_test_code="int some_variable = 0;"
7621
7622# Code to be used in simple link tests
7623lt_simple_link_test_code='int main(){return(0);}'
7624
7625
7626# If no C compiler was specified, use CC.
7627LTCC=${LTCC-"$CC"}
7628
7629# If no C compiler flags were specified, use CFLAGS.
7630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7631
7632# Allow CC to be a program name with arguments.
7633compiler=$CC
7634
7635
7636# save warnings/boilerplate of simple test code
7637ac_outfile=conftest.$ac_objext
7638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7640_lt_compiler_boilerplate=`cat conftest.err`
7641$rm conftest*
7642
7643ac_outfile=conftest.$ac_objext
7644echo "$lt_simple_link_test_code" >conftest.$ac_ext
7645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646_lt_linker_boilerplate=`cat conftest.err`
7647$rm -r conftest*
7648
7649
7650
7651lt_prog_compiler_no_builtin_flag=
7652
7653if test "$GCC" = yes; then
7654  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7655
7656
7657{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7658$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7659if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7660  $as_echo_n "(cached) " >&6
7661else
7662  lt_cv_prog_compiler_rtti_exceptions=no
7663  ac_outfile=conftest.$ac_objext
7664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7665   lt_compiler_flag="-fno-rtti -fno-exceptions"
7666   # Insert the option either (1) after the last *FLAGS variable, or
7667   # (2) before a word containing "conftest.", or (3) at the end.
7668   # Note that $ac_compile itself does not contain backslashes and begins
7669   # with a dollar sign (not a hyphen), so the echo should work correctly.
7670   # The option is referenced via a variable to avoid confusing sed.
7671   lt_compile=`echo "$ac_compile" | $SED \
7672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7674   -e 's:$: $lt_compiler_flag:'`
7675   (eval echo "\"\$as_me:7675: $lt_compile\"" >&5)
7676   (eval "$lt_compile" 2>conftest.err)
7677   ac_status=$?
7678   cat conftest.err >&5
7679   echo "$as_me:7679: \$? = $ac_status" >&5
7680   if (exit $ac_status) && test -s "$ac_outfile"; then
7681     # The compiler can only warn and ignore the option if not recognized
7682     # So say no if there are warnings other than the usual output.
7683     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7684     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7685     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7686       lt_cv_prog_compiler_rtti_exceptions=yes
7687     fi
7688   fi
7689   $rm conftest*
7690
7691fi
7692{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7693$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7694
7695if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7696    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7697else
7698    :
7699fi
7700
7701fi
7702
7703lt_prog_compiler_wl=
7704lt_prog_compiler_pic=
7705lt_prog_compiler_static=
7706
7707{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7708$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7709
7710  if test "$GCC" = yes; then
7711    lt_prog_compiler_wl='-Wl,'
7712    lt_prog_compiler_static='-static'
7713
7714    case $host_os in
7715      aix*)
7716      # All AIX code is PIC.
7717      if test "$host_cpu" = ia64; then
7718	# AIX 5 now supports IA64 processor
7719	lt_prog_compiler_static='-Bstatic'
7720      fi
7721      ;;
7722
7723    amigaos*)
7724      # FIXME: we need at least 68020 code to build shared libraries, but
7725      # adding the `-m68020' flag to GCC prevents building anything better,
7726      # like `-m68040'.
7727      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7728      ;;
7729
7730    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7731      # PIC is the default for these OSes.
7732      ;;
7733
7734    mingw* | cygwin* | pw32* | os2*)
7735      # This hack is so that the source file can tell whether it is being
7736      # built for inclusion in a dll (and should export symbols for example).
7737      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7738      # (--disable-auto-import) libraries
7739      lt_prog_compiler_pic='-DDLL_EXPORT'
7740      ;;
7741
7742    darwin* | rhapsody*)
7743      # PIC is the default on this platform
7744      # Common symbols not allowed in MH_DYLIB files
7745      lt_prog_compiler_pic='-fno-common'
7746      ;;
7747
7748    interix[3-9]*)
7749      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7750      # Instead, we relocate shared libraries at runtime.
7751      ;;
7752
7753    msdosdjgpp*)
7754      # Just because we use GCC doesn't mean we suddenly get shared libraries
7755      # on systems that don't support them.
7756      lt_prog_compiler_can_build_shared=no
7757      enable_shared=no
7758      ;;
7759
7760    sysv4*MP*)
7761      if test -d /usr/nec; then
7762	lt_prog_compiler_pic=-Kconform_pic
7763      fi
7764      ;;
7765
7766    hpux*)
7767      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7768      # not for PA HP-UX.
7769      case $host_cpu in
7770      hppa*64*|ia64*)
7771	# +Z the default
7772	;;
7773      *)
7774	lt_prog_compiler_pic='-fPIC'
7775	;;
7776      esac
7777      ;;
7778
7779    *)
7780      lt_prog_compiler_pic='-fPIC'
7781      ;;
7782    esac
7783  else
7784    # PORTME Check for flag to pass linker flags through the system compiler.
7785    case $host_os in
7786    aix*)
7787      lt_prog_compiler_wl='-Wl,'
7788      if test "$host_cpu" = ia64; then
7789	# AIX 5 now supports IA64 processor
7790	lt_prog_compiler_static='-Bstatic'
7791      else
7792	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7793      fi
7794      ;;
7795      darwin*)
7796        # PIC is the default on this platform
7797        # Common symbols not allowed in MH_DYLIB files
7798       case $cc_basename in
7799         xlc*)
7800         lt_prog_compiler_pic='-qnocommon'
7801         lt_prog_compiler_wl='-Wl,'
7802         ;;
7803       esac
7804       ;;
7805
7806    mingw* | cygwin* | pw32* | os2*)
7807      # This hack is so that the source file can tell whether it is being
7808      # built for inclusion in a dll (and should export symbols for example).
7809      lt_prog_compiler_pic='-DDLL_EXPORT'
7810      ;;
7811
7812    hpux9* | hpux10* | hpux11*)
7813      lt_prog_compiler_wl='-Wl,'
7814      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7815      # not for PA HP-UX.
7816      case $host_cpu in
7817      hppa*64*|ia64*)
7818	# +Z the default
7819	;;
7820      *)
7821	lt_prog_compiler_pic='+Z'
7822	;;
7823      esac
7824      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7825      lt_prog_compiler_static='${wl}-a ${wl}archive'
7826      ;;
7827
7828    irix5* | irix6* | nonstopux*)
7829      lt_prog_compiler_wl='-Wl,'
7830      # PIC (with -KPIC) is the default.
7831      lt_prog_compiler_static='-non_shared'
7832      ;;
7833
7834    newsos6)
7835      lt_prog_compiler_pic='-KPIC'
7836      lt_prog_compiler_static='-Bstatic'
7837      ;;
7838
7839    linux* | k*bsd*-gnu)
7840      case $cc_basename in
7841      icc* | ecc*)
7842	lt_prog_compiler_wl='-Wl,'
7843	lt_prog_compiler_pic='-KPIC'
7844	lt_prog_compiler_static='-static'
7845        ;;
7846      pgcc* | pgf77* | pgf90* | pgf95*)
7847        # Portland Group compilers (*not* the Pentium gcc compiler,
7848	# which looks to be a dead project)
7849	lt_prog_compiler_wl='-Wl,'
7850	lt_prog_compiler_pic='-fpic'
7851	lt_prog_compiler_static='-Bstatic'
7852        ;;
7853      ccc*)
7854        lt_prog_compiler_wl='-Wl,'
7855        # All Alpha code is PIC.
7856        lt_prog_compiler_static='-non_shared'
7857        ;;
7858      *)
7859        case `$CC -V 2>&1 | sed 5q` in
7860	*Sun\ C*)
7861	  # Sun C 5.9
7862	  lt_prog_compiler_pic='-KPIC'
7863	  lt_prog_compiler_static='-Bstatic'
7864	  lt_prog_compiler_wl='-Wl,'
7865	  ;;
7866	*Sun\ F*)
7867	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7868	  lt_prog_compiler_pic='-KPIC'
7869	  lt_prog_compiler_static='-Bstatic'
7870	  lt_prog_compiler_wl=''
7871	  ;;
7872	esac
7873	;;
7874      esac
7875      ;;
7876
7877    osf3* | osf4* | osf5*)
7878      lt_prog_compiler_wl='-Wl,'
7879      # All OSF/1 code is PIC.
7880      lt_prog_compiler_static='-non_shared'
7881      ;;
7882
7883    rdos*)
7884      lt_prog_compiler_static='-non_shared'
7885      ;;
7886
7887    solaris*)
7888      lt_prog_compiler_pic='-KPIC'
7889      lt_prog_compiler_static='-Bstatic'
7890      case $cc_basename in
7891      f77* | f90* | f95*)
7892	lt_prog_compiler_wl='-Qoption ld ';;
7893      *)
7894	lt_prog_compiler_wl='-Wl,';;
7895      esac
7896      ;;
7897
7898    sunos4*)
7899      lt_prog_compiler_wl='-Qoption ld '
7900      lt_prog_compiler_pic='-PIC'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    sysv4 | sysv4.2uw2* | sysv4.3*)
7905      lt_prog_compiler_wl='-Wl,'
7906      lt_prog_compiler_pic='-KPIC'
7907      lt_prog_compiler_static='-Bstatic'
7908      ;;
7909
7910    sysv4*MP*)
7911      if test -d /usr/nec ;then
7912	lt_prog_compiler_pic='-Kconform_pic'
7913	lt_prog_compiler_static='-Bstatic'
7914      fi
7915      ;;
7916
7917    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7918      lt_prog_compiler_wl='-Wl,'
7919      lt_prog_compiler_pic='-KPIC'
7920      lt_prog_compiler_static='-Bstatic'
7921      ;;
7922
7923    unicos*)
7924      lt_prog_compiler_wl='-Wl,'
7925      lt_prog_compiler_can_build_shared=no
7926      ;;
7927
7928    uts4*)
7929      lt_prog_compiler_pic='-pic'
7930      lt_prog_compiler_static='-Bstatic'
7931      ;;
7932
7933    *)
7934      lt_prog_compiler_can_build_shared=no
7935      ;;
7936    esac
7937  fi
7938
7939{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7940$as_echo "$lt_prog_compiler_pic" >&6; }
7941
7942#
7943# Check to make sure the PIC flag actually works.
7944#
7945if test -n "$lt_prog_compiler_pic"; then
7946
7947{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7948$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7949if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7950  $as_echo_n "(cached) " >&6
7951else
7952  lt_cv_prog_compiler_pic_works=no
7953  ac_outfile=conftest.$ac_objext
7954   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7956   # Insert the option either (1) after the last *FLAGS variable, or
7957   # (2) before a word containing "conftest.", or (3) at the end.
7958   # Note that $ac_compile itself does not contain backslashes and begins
7959   # with a dollar sign (not a hyphen), so the echo should work correctly.
7960   # The option is referenced via a variable to avoid confusing sed.
7961   lt_compile=`echo "$ac_compile" | $SED \
7962   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964   -e 's:$: $lt_compiler_flag:'`
7965   (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966   (eval "$lt_compile" 2>conftest.err)
7967   ac_status=$?
7968   cat conftest.err >&5
7969   echo "$as_me:7969: \$? = $ac_status" >&5
7970   if (exit $ac_status) && test -s "$ac_outfile"; then
7971     # The compiler can only warn and ignore the option if not recognized
7972     # So say no if there are warnings other than the usual output.
7973     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7974     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7976       lt_cv_prog_compiler_pic_works=yes
7977     fi
7978   fi
7979   $rm conftest*
7980
7981fi
7982{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7983$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7984
7985if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7986    case $lt_prog_compiler_pic in
7987     "" | " "*) ;;
7988     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7989     esac
7990else
7991    lt_prog_compiler_pic=
7992     lt_prog_compiler_can_build_shared=no
7993fi
7994
7995fi
7996case $host_os in
7997  # For platforms which do not support PIC, -DPIC is meaningless:
7998  *djgpp*)
7999    lt_prog_compiler_pic=
8000    ;;
8001  *)
8002    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8003    ;;
8004esac
8005
8006#
8007# Check to make sure the static flag actually works.
8008#
8009wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8010{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8011$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8012if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8013  $as_echo_n "(cached) " >&6
8014else
8015  lt_cv_prog_compiler_static_works=no
8016   save_LDFLAGS="$LDFLAGS"
8017   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8018   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8019   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8020     # The linker can only warn and ignore the option if not recognized
8021     # So say no if there are warnings
8022     if test -s conftest.err; then
8023       # Append any errors to the config.log.
8024       cat conftest.err 1>&5
8025       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8026       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8027       if diff conftest.exp conftest.er2 >/dev/null; then
8028         lt_cv_prog_compiler_static_works=yes
8029       fi
8030     else
8031       lt_cv_prog_compiler_static_works=yes
8032     fi
8033   fi
8034   $rm -r conftest*
8035   LDFLAGS="$save_LDFLAGS"
8036
8037fi
8038{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8039$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8040
8041if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8042    :
8043else
8044    lt_prog_compiler_static=
8045fi
8046
8047
8048{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8050if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8051  $as_echo_n "(cached) " >&6
8052else
8053  lt_cv_prog_compiler_c_o=no
8054   $rm -r conftest 2>/dev/null
8055   mkdir conftest
8056   cd conftest
8057   mkdir out
8058   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059
8060   lt_compiler_flag="-o out/conftest2.$ac_objext"
8061   # Insert the option either (1) after the last *FLAGS variable, or
8062   # (2) before a word containing "conftest.", or (3) at the end.
8063   # Note that $ac_compile itself does not contain backslashes and begins
8064   # with a dollar sign (not a hyphen), so the echo should work correctly.
8065   lt_compile=`echo "$ac_compile" | $SED \
8066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8068   -e 's:$: $lt_compiler_flag:'`
8069   (eval echo "\"\$as_me:8069: $lt_compile\"" >&5)
8070   (eval "$lt_compile" 2>out/conftest.err)
8071   ac_status=$?
8072   cat out/conftest.err >&5
8073   echo "$as_me:8073: \$? = $ac_status" >&5
8074   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8075   then
8076     # The compiler can only warn and ignore the option if not recognized
8077     # So say no if there are warnings
8078     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8079     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8080     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8081       lt_cv_prog_compiler_c_o=yes
8082     fi
8083   fi
8084   chmod u+w . 2>&5
8085   $rm conftest*
8086   # SGI C++ compiler will create directory out/ii_files/ for
8087   # template instantiation
8088   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8089   $rm out/* && rmdir out
8090   cd ..
8091   rmdir conftest
8092   $rm conftest*
8093
8094fi
8095{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8096$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8097
8098
8099hard_links="nottested"
8100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8101  # do not overwrite the value of need_locks provided by the user
8102  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8103$as_echo_n "checking if we can lock with hard links... " >&6; }
8104  hard_links=yes
8105  $rm conftest*
8106  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8107  touch conftest.a
8108  ln conftest.a conftest.b 2>&5 || hard_links=no
8109  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8110  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8111$as_echo "$hard_links" >&6; }
8112  if test "$hard_links" = no; then
8113    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8114$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8115    need_locks=warn
8116  fi
8117else
8118  need_locks=no
8119fi
8120
8121{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8122$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8123
8124  runpath_var=
8125  allow_undefined_flag=
8126  enable_shared_with_static_runtimes=no
8127  archive_cmds=
8128  archive_expsym_cmds=
8129  old_archive_From_new_cmds=
8130  old_archive_from_expsyms_cmds=
8131  export_dynamic_flag_spec=
8132  whole_archive_flag_spec=
8133  thread_safe_flag_spec=
8134  hardcode_libdir_flag_spec=
8135  hardcode_libdir_flag_spec_ld=
8136  hardcode_libdir_separator=
8137  hardcode_direct=no
8138  hardcode_minus_L=no
8139  hardcode_shlibpath_var=unsupported
8140  link_all_deplibs=unknown
8141  hardcode_automatic=no
8142  module_cmds=
8143  module_expsym_cmds=
8144  always_export_symbols=no
8145  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8146  # include_expsyms should be a list of space-separated symbols to be *always*
8147  # included in the symbol list
8148  include_expsyms=
8149  # exclude_expsyms can be an extended regexp of symbols to exclude
8150  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8151  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8152  # as well as any symbol that contains `d'.
8153  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8154  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8155  # platforms (ab)use it in PIC code, but their linkers get confused if
8156  # the symbol is explicitly referenced.  Since portable code cannot
8157  # rely on this symbol name, it's probably fine to never include it in
8158  # preloaded symbol tables.
8159  # Exclude shared library initialization/finalization symbols.
8160  extract_expsyms_cmds=
8161  # Just being paranoid about ensuring that cc_basename is set.
8162  for cc_temp in $compiler""; do
8163  case $cc_temp in
8164    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8165    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8166    \-*) ;;
8167    *) break;;
8168  esac
8169done
8170cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8171
8172  case $host_os in
8173  cygwin* | mingw* | pw32*)
8174    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8175    # When not using gcc, we currently assume that we are using
8176    # Microsoft Visual C++.
8177    if test "$GCC" != yes; then
8178      with_gnu_ld=no
8179    fi
8180    ;;
8181  interix*)
8182    # we just hope/assume this is gcc and not c89 (= MSVC++)
8183    with_gnu_ld=yes
8184    ;;
8185  openbsd*)
8186    with_gnu_ld=no
8187    ;;
8188  esac
8189
8190  ld_shlibs=yes
8191  if test "$with_gnu_ld" = yes; then
8192    # If archive_cmds runs LD, not CC, wlarc should be empty
8193    wlarc='${wl}'
8194
8195    # Set some defaults for GNU ld with shared library support. These
8196    # are reset later if shared libraries are not supported. Putting them
8197    # here allows them to be overridden if necessary.
8198    runpath_var=LD_RUN_PATH
8199    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8200    export_dynamic_flag_spec='${wl}--export-dynamic'
8201    # ancient GNU ld didn't support --whole-archive et. al.
8202    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8203	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8204      else
8205  	whole_archive_flag_spec=
8206    fi
8207    supports_anon_versioning=no
8208    case `$LD -v 2>/dev/null` in
8209      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8210      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8211      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8212      *\ 2.11.*) ;; # other 2.11 versions
8213      *) supports_anon_versioning=yes ;;
8214    esac
8215
8216    # See if GNU ld supports shared libraries.
8217    case $host_os in
8218    aix[3-9]*)
8219      # On AIX/PPC, the GNU linker is very broken
8220      if test "$host_cpu" != ia64; then
8221	ld_shlibs=no
8222	cat <<EOF 1>&2
8223
8224*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8225*** to be unable to reliably create shared libraries on AIX.
8226*** Therefore, libtool is disabling shared libraries support.  If you
8227*** really care for shared libraries, you may want to modify your PATH
8228*** so that a non-GNU linker is found, and then restart.
8229
8230EOF
8231      fi
8232      ;;
8233
8234    amigaos*)
8235      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)'
8236      hardcode_libdir_flag_spec='-L$libdir'
8237      hardcode_minus_L=yes
8238
8239      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8240      # that the semantics of dynamic libraries on AmigaOS, at least up
8241      # to version 4, is to share data among multiple programs linked
8242      # with the same dynamic library.  Since this doesn't match the
8243      # behavior of shared libraries on other platforms, we can't use
8244      # them.
8245      ld_shlibs=no
8246      ;;
8247
8248    beos*)
8249      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250	allow_undefined_flag=unsupported
8251	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8252	# support --undefined.  This deserves some investigation.  FIXME
8253	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254      else
8255	ld_shlibs=no
8256      fi
8257      ;;
8258
8259    cygwin* | mingw* | pw32*)
8260      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8261      # as there is no search path for DLLs.
8262      hardcode_libdir_flag_spec='-L$libdir'
8263      allow_undefined_flag=unsupported
8264      always_export_symbols=no
8265      enable_shared_with_static_runtimes=yes
8266      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8267
8268      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8269        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8270	# If the export-symbols file already is a .def file (1st line
8271	# is EXPORTS), use it as is; otherwise, prepend...
8272	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8273	  cp $export_symbols $output_objdir/$soname.def;
8274	else
8275	  echo EXPORTS > $output_objdir/$soname.def;
8276	  cat $export_symbols >> $output_objdir/$soname.def;
8277	fi~
8278	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8279      else
8280	ld_shlibs=no
8281      fi
8282      ;;
8283
8284    interix[3-9]*)
8285      hardcode_direct=no
8286      hardcode_shlibpath_var=no
8287      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8288      export_dynamic_flag_spec='${wl}-E'
8289      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8290      # Instead, shared libraries are loaded at an image base (0x10000000 by
8291      # default) and relocated if they conflict, which is a slow very memory
8292      # consuming and fragmenting process.  To avoid this, we pick a random,
8293      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8294      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8295      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8296      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'
8297      ;;
8298
8299    gnu* | linux* | k*bsd*-gnu)
8300      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301	tmp_addflag=
8302	case $cc_basename,$host_cpu in
8303	pgcc*)				# Portland Group C compiler
8304	  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'
8305	  tmp_addflag=' $pic_flag'
8306	  ;;
8307	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8308	  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'
8309	  tmp_addflag=' $pic_flag -Mnomain' ;;
8310	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8311	  tmp_addflag=' -i_dynamic' ;;
8312	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8313	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8314	ifc* | ifort*)			# Intel Fortran compiler
8315	  tmp_addflag=' -nofor_main' ;;
8316	esac
8317	case `$CC -V 2>&1 | sed 5q` in
8318	*Sun\ C*)			# Sun C 5.9
8319	  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'
8320	  tmp_sharedflag='-G' ;;
8321	*Sun\ F*)			# Sun Fortran 8.3
8322	  tmp_sharedflag='-G' ;;
8323	*)
8324	  tmp_sharedflag='-shared' ;;
8325	esac
8326	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327
8328	if test $supports_anon_versioning = yes; then
8329	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8330  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8331  $echo "local: *; };" >> $output_objdir/$libname.ver~
8332	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8333	fi
8334      else
8335	ld_shlibs=no
8336      fi
8337      ;;
8338
8339    netbsd*)
8340      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8341	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8342	wlarc=
8343      else
8344	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8346      fi
8347      ;;
8348
8349    solaris*)
8350      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8351	ld_shlibs=no
8352	cat <<EOF 1>&2
8353
8354*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8355*** create shared libraries on Solaris systems.  Therefore, libtool
8356*** is disabling shared libraries support.  We urge you to upgrade GNU
8357*** binutils to release 2.9.1 or newer.  Another option is to modify
8358*** your PATH or compiler configuration so that the native linker is
8359*** used, and then restart.
8360
8361EOF
8362      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8363	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8365      else
8366	ld_shlibs=no
8367      fi
8368      ;;
8369
8370    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8371      case `$LD -v 2>&1` in
8372        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8373	ld_shlibs=no
8374	cat <<_LT_EOF 1>&2
8375
8376*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8377*** reliably create shared libraries on SCO systems.  Therefore, libtool
8378*** is disabling shared libraries support.  We urge you to upgrade GNU
8379*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8380*** your PATH or compiler configuration so that the native linker is
8381*** used, and then restart.
8382
8383_LT_EOF
8384	;;
8385	*)
8386	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8387	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8388	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8389	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8390	  else
8391	    ld_shlibs=no
8392	  fi
8393	;;
8394      esac
8395      ;;
8396
8397    sunos4*)
8398      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8399      wlarc=
8400      hardcode_direct=yes
8401      hardcode_shlibpath_var=no
8402      ;;
8403
8404    *)
8405      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8406	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408      else
8409	ld_shlibs=no
8410      fi
8411      ;;
8412    esac
8413
8414    if test "$ld_shlibs" = no; then
8415      runpath_var=
8416      hardcode_libdir_flag_spec=
8417      export_dynamic_flag_spec=
8418      whole_archive_flag_spec=
8419    fi
8420  else
8421    # PORTME fill in a description of your system's linker (not GNU ld)
8422    case $host_os in
8423    aix3*)
8424      allow_undefined_flag=unsupported
8425      always_export_symbols=yes
8426      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'
8427      # Note: this linker hardcodes the directories in LIBPATH if there
8428      # are no directories specified by -L.
8429      hardcode_minus_L=yes
8430      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8431	# Neither direct hardcoding nor static linking is supported with a
8432	# broken collect2.
8433	hardcode_direct=unsupported
8434      fi
8435      ;;
8436
8437    aix[4-9]*)
8438      if test "$host_cpu" = ia64; then
8439	# On IA64, the linker does run time linking by default, so we don't
8440	# have to do anything special.
8441	aix_use_runtimelinking=no
8442	exp_sym_flag='-Bexport'
8443	no_entry_flag=""
8444      else
8445	# If we're using GNU nm, then we don't want the "-C" option.
8446	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8447	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8448	  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'
8449	else
8450	  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'
8451	fi
8452	aix_use_runtimelinking=no
8453
8454	# Test if we are trying to use run time linking or normal
8455	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8456	# need to do runtime linking.
8457	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8458	  for ld_flag in $LDFLAGS; do
8459  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8460  	    aix_use_runtimelinking=yes
8461  	    break
8462  	  fi
8463	  done
8464	  ;;
8465	esac
8466
8467	exp_sym_flag='-bexport'
8468	no_entry_flag='-bnoentry'
8469      fi
8470
8471      # When large executables or shared objects are built, AIX ld can
8472      # have problems creating the table of contents.  If linking a library
8473      # or program results in "error TOC overflow" add -mminimal-toc to
8474      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8475      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8476
8477      archive_cmds=''
8478      hardcode_direct=yes
8479      hardcode_libdir_separator=':'
8480      link_all_deplibs=yes
8481
8482      if test "$GCC" = yes; then
8483	case $host_os in aix4.[012]|aix4.[012].*)
8484	# We only want to do this on AIX 4.2 and lower, the check
8485	# below for broken collect2 doesn't work under 4.3+
8486	  collect2name=`${CC} -print-prog-name=collect2`
8487	  if test -f "$collect2name" && \
8488  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8489	  then
8490  	  # We have reworked collect2
8491  	  :
8492	  else
8493  	  # We have old collect2
8494  	  hardcode_direct=unsupported
8495  	  # It fails to find uninstalled libraries when the uninstalled
8496  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8497  	  # to unsupported forces relinking
8498  	  hardcode_minus_L=yes
8499  	  hardcode_libdir_flag_spec='-L$libdir'
8500  	  hardcode_libdir_separator=
8501	  fi
8502	  ;;
8503	esac
8504	shared_flag='-shared'
8505	if test "$aix_use_runtimelinking" = yes; then
8506	  shared_flag="$shared_flag "'${wl}-G'
8507	fi
8508      else
8509	# not using gcc
8510	if test "$host_cpu" = ia64; then
8511  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8512  	# chokes on -Wl,-G. The following line is correct:
8513	  shared_flag='-G'
8514	else
8515	  if test "$aix_use_runtimelinking" = yes; then
8516	    shared_flag='${wl}-G'
8517	  else
8518	    shared_flag='${wl}-bM:SRE'
8519	  fi
8520	fi
8521      fi
8522
8523      # It seems that -bexpall does not export symbols beginning with
8524      # underscore (_), so it is better to generate a list of symbols to export.
8525      always_export_symbols=yes
8526      if test "$aix_use_runtimelinking" = yes; then
8527	# Warning - without using the other runtime loading flags (-brtl),
8528	# -berok will link without error, but may produce a broken library.
8529	allow_undefined_flag='-berok'
8530       # Determine the default libpath from the value encoded in an empty executable.
8531       cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h.  */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h.  */
8537
8538int
8539main ()
8540{
8541
8542  ;
8543  return 0;
8544}
8545_ACEOF
8546rm -f conftest.$ac_objext conftest$ac_exeext
8547if { (ac_try="$ac_link"
8548case "(($ac_try" in
8549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550  *) ac_try_echo=$ac_try;;
8551esac
8552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553$as_echo "$ac_try_echo") >&5
8554  (eval "$ac_link") 2>conftest.er1
8555  ac_status=$?
8556  grep -v '^ *+' conftest.er1 >conftest.err
8557  rm -f conftest.er1
8558  cat conftest.err >&5
8559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560  (exit $ac_status); } && {
8561	 test -z "$ac_c_werror_flag" ||
8562	 test ! -s conftest.err
8563       } && test -s conftest$ac_exeext && {
8564	 test "$cross_compiling" = yes ||
8565	 $as_test_x conftest$ac_exeext
8566       }; then
8567
8568lt_aix_libpath_sed='
8569    /Import File Strings/,/^$/ {
8570	/^0/ {
8571	    s/^0  *\(.*\)$/\1/
8572	    p
8573	}
8574    }'
8575aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8576# Check for a 64-bit object if we didn't find anything.
8577if test -z "$aix_libpath"; then
8578  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8579fi
8580else
8581  $as_echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
8583
8584
8585fi
8586
8587rm -rf conftest.dSYM
8588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8589      conftest$ac_exeext conftest.$ac_ext
8590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8591
8592       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8593	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"
8594       else
8595	if test "$host_cpu" = ia64; then
8596	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8597	  allow_undefined_flag="-z nodefs"
8598	  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"
8599	else
8600	 # Determine the default libpath from the value encoded in an empty executable.
8601	 cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h.  */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h.  */
8607
8608int
8609main ()
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (ac_try="$ac_link"
8618case "(($ac_try" in
8619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620  *) ac_try_echo=$ac_try;;
8621esac
8622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623$as_echo "$ac_try_echo") >&5
8624  (eval "$ac_link") 2>conftest.er1
8625  ac_status=$?
8626  grep -v '^ *+' conftest.er1 >conftest.err
8627  rm -f conftest.er1
8628  cat conftest.err >&5
8629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); } && {
8631	 test -z "$ac_c_werror_flag" ||
8632	 test ! -s conftest.err
8633       } && test -s conftest$ac_exeext && {
8634	 test "$cross_compiling" = yes ||
8635	 $as_test_x conftest$ac_exeext
8636       }; then
8637
8638lt_aix_libpath_sed='
8639    /Import File Strings/,/^$/ {
8640	/^0/ {
8641	    s/^0  *\(.*\)$/\1/
8642	    p
8643	}
8644    }'
8645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646# Check for a 64-bit object if we didn't find anything.
8647if test -z "$aix_libpath"; then
8648  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649fi
8650else
8651  $as_echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654
8655fi
8656
8657rm -rf conftest.dSYM
8658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8659      conftest$ac_exeext conftest.$ac_ext
8660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8661
8662	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8663	  # Warning - without using the other run time loading flags,
8664	  # -berok will link without error, but may produce a broken library.
8665	  no_undefined_flag=' ${wl}-bernotok'
8666	  allow_undefined_flag=' ${wl}-berok'
8667	  # Exported symbols can be pulled into shared objects from archives
8668	  whole_archive_flag_spec='$convenience'
8669	  archive_cmds_need_lc=yes
8670	  # This is similar to how AIX traditionally builds its shared libraries.
8671	  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'
8672	fi
8673      fi
8674      ;;
8675
8676    amigaos*)
8677      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)'
8678      hardcode_libdir_flag_spec='-L$libdir'
8679      hardcode_minus_L=yes
8680      # see comment about different semantics on the GNU ld section
8681      ld_shlibs=no
8682      ;;
8683
8684    bsdi[45]*)
8685      export_dynamic_flag_spec=-rdynamic
8686      ;;
8687
8688    cygwin* | mingw* | pw32*)
8689      # When not using gcc, we currently assume that we are using
8690      # Microsoft Visual C++.
8691      # hardcode_libdir_flag_spec is actually meaningless, as there is
8692      # no search path for DLLs.
8693      hardcode_libdir_flag_spec=' '
8694      allow_undefined_flag=unsupported
8695      # Tell ltmain to make .lib files, not .a files.
8696      libext=lib
8697      # Tell ltmain to make .dll files, not .so files.
8698      shrext_cmds=".dll"
8699      # FIXME: Setting linknames here is a bad hack.
8700      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8701      # The linker will automatically build a .lib file if we build a DLL.
8702      old_archive_From_new_cmds='true'
8703      # FIXME: Should let the user specify the lib program.
8704      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8705      fix_srcfile_path='`cygpath -w "$srcfile"`'
8706      enable_shared_with_static_runtimes=yes
8707      ;;
8708
8709    darwin* | rhapsody*)
8710      case $host_os in
8711        rhapsody* | darwin1.[012])
8712         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8713         ;;
8714       *) # Darwin 1.3 on
8715         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8716           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8717         else
8718           case ${MACOSX_DEPLOYMENT_TARGET} in
8719             10.[012])
8720               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8721               ;;
8722             10.*)
8723               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8724               ;;
8725           esac
8726         fi
8727         ;;
8728      esac
8729      archive_cmds_need_lc=no
8730      hardcode_direct=no
8731      hardcode_automatic=yes
8732      hardcode_shlibpath_var=unsupported
8733      whole_archive_flag_spec=''
8734      link_all_deplibs=yes
8735    if test "$GCC" = yes ; then
8736    	output_verbose_link_cmd='echo'
8737        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8738        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8739        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}"
8740        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}"
8741    else
8742      case $cc_basename in
8743        xlc*)
8744         output_verbose_link_cmd='echo'
8745         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8746         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8748         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}'
8749          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}'
8750          ;;
8751       *)
8752         ld_shlibs=no
8753          ;;
8754      esac
8755    fi
8756      ;;
8757
8758    dgux*)
8759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760      hardcode_libdir_flag_spec='-L$libdir'
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    freebsd1*)
8765      ld_shlibs=no
8766      ;;
8767
8768    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8769    # support.  Future versions do this automatically, but an explicit c++rt0.o
8770    # does not break anything, and helps significantly (at the cost of a little
8771    # extra space).
8772    freebsd2.2*)
8773      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8774      hardcode_libdir_flag_spec='-R$libdir'
8775      hardcode_direct=yes
8776      hardcode_shlibpath_var=no
8777      ;;
8778
8779    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8780    freebsd2*)
8781      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782      hardcode_direct=yes
8783      hardcode_minus_L=yes
8784      hardcode_shlibpath_var=no
8785      ;;
8786
8787    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8788    freebsd* | dragonfly*)
8789      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8790      hardcode_libdir_flag_spec='-R$libdir'
8791      hardcode_direct=yes
8792      hardcode_shlibpath_var=no
8793      ;;
8794
8795    hpux9*)
8796      if test "$GCC" = yes; then
8797	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'
8798      else
8799	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'
8800      fi
8801      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802      hardcode_libdir_separator=:
8803      hardcode_direct=yes
8804
8805      # hardcode_minus_L: Not really in the search PATH,
8806      # but as the default location of the library.
8807      hardcode_minus_L=yes
8808      export_dynamic_flag_spec='${wl}-E'
8809      ;;
8810
8811    hpux10*)
8812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8813	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8814      else
8815	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8816      fi
8817      if test "$with_gnu_ld" = no; then
8818	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819	hardcode_libdir_separator=:
8820
8821	hardcode_direct=yes
8822	export_dynamic_flag_spec='${wl}-E'
8823
8824	# hardcode_minus_L: Not really in the search PATH,
8825	# but as the default location of the library.
8826	hardcode_minus_L=yes
8827      fi
8828      ;;
8829
8830    hpux11*)
8831      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832	case $host_cpu in
8833	hppa*64*)
8834	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835	  ;;
8836	ia64*)
8837	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	*)
8840	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	esac
8843      else
8844	case $host_cpu in
8845	hppa*64*)
8846	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847	  ;;
8848	ia64*)
8849	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8850	  ;;
8851	*)
8852	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853	  ;;
8854	esac
8855      fi
8856      if test "$with_gnu_ld" = no; then
8857	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8858	hardcode_libdir_separator=:
8859
8860	case $host_cpu in
8861	hppa*64*|ia64*)
8862	  hardcode_libdir_flag_spec_ld='+b $libdir'
8863	  hardcode_direct=no
8864	  hardcode_shlibpath_var=no
8865	  ;;
8866	*)
8867	  hardcode_direct=yes
8868	  export_dynamic_flag_spec='${wl}-E'
8869
8870	  # hardcode_minus_L: Not really in the search PATH,
8871	  # but as the default location of the library.
8872	  hardcode_minus_L=yes
8873	  ;;
8874	esac
8875      fi
8876      ;;
8877
8878    irix5* | irix6* | nonstopux*)
8879      if test "$GCC" = yes; then
8880	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'
8881      else
8882	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'
8883	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8884      fi
8885      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886      hardcode_libdir_separator=:
8887      link_all_deplibs=yes
8888      ;;
8889
8890    netbsd*)
8891      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8892	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8893      else
8894	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8895      fi
8896      hardcode_libdir_flag_spec='-R$libdir'
8897      hardcode_direct=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    newsos6)
8902      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903      hardcode_direct=yes
8904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905      hardcode_libdir_separator=:
8906      hardcode_shlibpath_var=no
8907      ;;
8908
8909    openbsd*)
8910      if test -f /usr/libexec/ld.so; then
8911	hardcode_direct=yes
8912	hardcode_shlibpath_var=no
8913	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8914	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8915	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8916	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917	  export_dynamic_flag_spec='${wl}-E'
8918	else
8919	  case $host_os in
8920	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8921	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8922	     hardcode_libdir_flag_spec='-R$libdir'
8923	     ;;
8924	   *)
8925	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8926	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927	     ;;
8928	  esac
8929        fi
8930      else
8931	ld_shlibs=no
8932      fi
8933      ;;
8934
8935    os2*)
8936      hardcode_libdir_flag_spec='-L$libdir'
8937      hardcode_minus_L=yes
8938      allow_undefined_flag=unsupported
8939      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'
8940      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8941      ;;
8942
8943    osf3*)
8944      if test "$GCC" = yes; then
8945	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8946	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'
8947      else
8948	allow_undefined_flag=' -expect_unresolved \*'
8949	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'
8950      fi
8951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952      hardcode_libdir_separator=:
8953      ;;
8954
8955    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8956      if test "$GCC" = yes; then
8957	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958	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'
8959	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960      else
8961	allow_undefined_flag=' -expect_unresolved \*'
8962	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'
8963	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8964	$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'
8965
8966	# Both c and cxx compiler support -rpath directly
8967	hardcode_libdir_flag_spec='-rpath $libdir'
8968      fi
8969      hardcode_libdir_separator=:
8970      ;;
8971
8972    solaris*)
8973      no_undefined_flag=' -z text'
8974      if test "$GCC" = yes; then
8975	wlarc='${wl}'
8976	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8978	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8979      else
8980	wlarc=''
8981	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8983  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8984      fi
8985      hardcode_libdir_flag_spec='-R$libdir'
8986      hardcode_shlibpath_var=no
8987      case $host_os in
8988      solaris2.[0-5] | solaris2.[0-5].*) ;;
8989      *)
8990	# The compiler driver will combine and reorder linker options,
8991	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8992	# but is careful enough not to reorder.
8993 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8994	if test "$GCC" = yes; then
8995	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8996	else
8997	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8998	fi
8999	;;
9000      esac
9001      link_all_deplibs=yes
9002      ;;
9003
9004    sunos4*)
9005      if test "x$host_vendor" = xsequent; then
9006	# Use $CC to link under sequent, because it throws in some extra .o
9007	# files that make .init and .fini sections work.
9008	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9009      else
9010	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9011      fi
9012      hardcode_libdir_flag_spec='-L$libdir'
9013      hardcode_direct=yes
9014      hardcode_minus_L=yes
9015      hardcode_shlibpath_var=no
9016      ;;
9017
9018    sysv4)
9019      case $host_vendor in
9020	sni)
9021	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022	  hardcode_direct=yes # is this really true???
9023	;;
9024	siemens)
9025	  ## LD is ld it makes a PLAMLIB
9026	  ## CC just makes a GrossModule.
9027	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9028	  reload_cmds='$CC -r -o $output$reload_objs'
9029	  hardcode_direct=no
9030        ;;
9031	motorola)
9032	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9034	;;
9035      esac
9036      runpath_var='LD_RUN_PATH'
9037      hardcode_shlibpath_var=no
9038      ;;
9039
9040    sysv4.3*)
9041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042      hardcode_shlibpath_var=no
9043      export_dynamic_flag_spec='-Bexport'
9044      ;;
9045
9046    sysv4*MP*)
9047      if test -d /usr/nec; then
9048	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049	hardcode_shlibpath_var=no
9050	runpath_var=LD_RUN_PATH
9051	hardcode_runpath_var=yes
9052	ld_shlibs=yes
9053      fi
9054      ;;
9055
9056    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9057      no_undefined_flag='${wl}-z,text'
9058      archive_cmds_need_lc=no
9059      hardcode_shlibpath_var=no
9060      runpath_var='LD_RUN_PATH'
9061
9062      if test "$GCC" = yes; then
9063	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068      fi
9069      ;;
9070
9071    sysv5* | sco3.2v5* | sco5v6*)
9072      # Note: We can NOT use -z defs as we might desire, because we do not
9073      # link with -lc, and that would cause any symbols used from libc to
9074      # always be unresolved, which means just about no library would
9075      # ever link correctly.  If we're not using GNU ld we use -z text
9076      # though, which does catch some bad symbols but isn't as heavy-handed
9077      # as -z defs.
9078      no_undefined_flag='${wl}-z,text'
9079      allow_undefined_flag='${wl}-z,nodefs'
9080      archive_cmds_need_lc=no
9081      hardcode_shlibpath_var=no
9082      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9083      hardcode_libdir_separator=':'
9084      link_all_deplibs=yes
9085      export_dynamic_flag_spec='${wl}-Bexport'
9086      runpath_var='LD_RUN_PATH'
9087
9088      if test "$GCC" = yes; then
9089	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091      else
9092	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094      fi
9095      ;;
9096
9097    uts4*)
9098      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099      hardcode_libdir_flag_spec='-L$libdir'
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    *)
9104      ld_shlibs=no
9105      ;;
9106    esac
9107  fi
9108
9109{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9110$as_echo "$ld_shlibs" >&6; }
9111test "$ld_shlibs" = no && can_build_shared=no
9112
9113#
9114# Do we need to explicitly link libc?
9115#
9116case "x$archive_cmds_need_lc" in
9117x|xyes)
9118  # Assume -lc should be added
9119  archive_cmds_need_lc=yes
9120
9121  if test "$enable_shared" = yes && test "$GCC" = yes; then
9122    case $archive_cmds in
9123    *'~'*)
9124      # FIXME: we may have to deal with multi-command sequences.
9125      ;;
9126    '$CC '*)
9127      # Test whether the compiler implicitly links with -lc since on some
9128      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9129      # to ld, don't add -lc before -lgcc.
9130      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9131$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9132      $rm conftest*
9133      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134
9135      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136  (eval $ac_compile) 2>&5
9137  ac_status=$?
9138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); } 2>conftest.err; then
9140        soname=conftest
9141        lib=conftest
9142        libobjs=conftest.$ac_objext
9143        deplibs=
9144        wl=$lt_prog_compiler_wl
9145	pic_flag=$lt_prog_compiler_pic
9146        compiler_flags=-v
9147        linker_flags=-v
9148        verstring=
9149        output_objdir=.
9150        libname=conftest
9151        lt_save_allow_undefined_flag=$allow_undefined_flag
9152        allow_undefined_flag=
9153        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9154  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9155  ac_status=$?
9156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }
9158        then
9159	  archive_cmds_need_lc=no
9160        else
9161	  archive_cmds_need_lc=yes
9162        fi
9163        allow_undefined_flag=$lt_save_allow_undefined_flag
9164      else
9165        cat conftest.err 1>&5
9166      fi
9167      $rm conftest*
9168      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9169$as_echo "$archive_cmds_need_lc" >&6; }
9170      ;;
9171    esac
9172  fi
9173  ;;
9174esac
9175
9176{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9177$as_echo_n "checking dynamic linker characteristics... " >&6; }
9178library_names_spec=
9179libname_spec='lib$name'
9180soname_spec=
9181shrext_cmds=".so"
9182postinstall_cmds=
9183postuninstall_cmds=
9184finish_cmds=
9185finish_eval=
9186shlibpath_var=
9187shlibpath_overrides_runpath=unknown
9188version_type=none
9189dynamic_linker="$host_os ld.so"
9190sys_lib_dlsearch_path_spec="/lib /usr/lib"
9191
9192if test "$GCC" = yes; then
9193  case $host_os in
9194    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9195    *) lt_awk_arg="/^libraries:/" ;;
9196  esac
9197  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9198  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9199    # if the path contains ";" then we assume it to be the separator
9200    # otherwise default to the standard path separator (i.e. ":") - it is
9201    # assumed that no part of a normal pathname contains ";" but that should
9202    # okay in the real world where ";" in dirpaths is itself problematic.
9203    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9204  else
9205    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9206  fi
9207  # Ok, now we have the path, separated by spaces, we can step through it
9208  # and add multilib dir if necessary.
9209  lt_tmp_lt_search_path_spec=
9210  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9211  for lt_sys_path in $lt_search_path_spec; do
9212    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9213      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9214    else
9215      test -d "$lt_sys_path" && \
9216	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9217    fi
9218  done
9219  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9220BEGIN {RS=" "; FS="/|\n";} {
9221  lt_foo="";
9222  lt_count=0;
9223  for (lt_i = NF; lt_i > 0; lt_i--) {
9224    if ($lt_i != "" && $lt_i != ".") {
9225      if ($lt_i == "..") {
9226        lt_count++;
9227      } else {
9228        if (lt_count == 0) {
9229          lt_foo="/" $lt_i lt_foo;
9230        } else {
9231          lt_count--;
9232        }
9233      }
9234    }
9235  }
9236  if (lt_foo != "") { lt_freq[lt_foo]++; }
9237  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9238}'`
9239  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9240else
9241  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9242fi
9243need_lib_prefix=unknown
9244hardcode_into_libs=no
9245
9246# when you set need_version to no, make sure it does not cause -set_version
9247# flags to be left without arguments
9248need_version=unknown
9249
9250case $host_os in
9251aix3*)
9252  version_type=linux
9253  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9254  shlibpath_var=LIBPATH
9255
9256  # AIX 3 has no versioning support, so we append a major version to the name.
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  ;;
9259
9260aix[4-9]*)
9261  version_type=linux
9262  need_lib_prefix=no
9263  need_version=no
9264  hardcode_into_libs=yes
9265  if test "$host_cpu" = ia64; then
9266    # AIX 5 supports IA64
9267    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9268    shlibpath_var=LD_LIBRARY_PATH
9269  else
9270    # With GCC up to 2.95.x, collect2 would create an import file
9271    # for dependence libraries.  The import file would start with
9272    # the line `#! .'.  This would cause the generated library to
9273    # depend on `.', always an invalid library.  This was fixed in
9274    # development snapshots of GCC prior to 3.0.
9275    case $host_os in
9276      aix4 | aix4.[01] | aix4.[01].*)
9277      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9278	   echo ' yes '
9279	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9280	:
9281      else
9282	can_build_shared=no
9283      fi
9284      ;;
9285    esac
9286    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9287    # soname into executable. Probably we can add versioning support to
9288    # collect2, so additional links can be useful in future.
9289    if test "$aix_use_runtimelinking" = yes; then
9290      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9291      # instead of lib<name>.a to let people know that these are not
9292      # typical AIX shared libraries.
9293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294    else
9295      # We preserve .a as extension for shared libraries through AIX4.2
9296      # and later when we are not doing run time linking.
9297      library_names_spec='${libname}${release}.a $libname.a'
9298      soname_spec='${libname}${release}${shared_ext}$major'
9299    fi
9300    shlibpath_var=LIBPATH
9301  fi
9302  ;;
9303
9304amigaos*)
9305  library_names_spec='$libname.ixlibrary $libname.a'
9306  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9307  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'
9308  ;;
9309
9310beos*)
9311  library_names_spec='${libname}${shared_ext}'
9312  dynamic_linker="$host_os ld.so"
9313  shlibpath_var=LIBRARY_PATH
9314  ;;
9315
9316bsdi[45]*)
9317  version_type=linux
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9324  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9325  # the default ld.so.conf also contains /usr/contrib/lib and
9326  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9327  # libtool to hard-code these into programs
9328  ;;
9329
9330cygwin* | mingw* | pw32*)
9331  version_type=windows
9332  shrext_cmds=".dll"
9333  need_version=no
9334  need_lib_prefix=no
9335
9336  case $GCC,$host_os in
9337  yes,cygwin* | yes,mingw* | yes,pw32*)
9338    library_names_spec='$libname.dll.a'
9339    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9340    postinstall_cmds='base_file=`basename \${file}`~
9341      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9342      dldir=$destdir/`dirname \$dlpath`~
9343      test -d \$dldir || mkdir -p \$dldir~
9344      $install_prog $dir/$dlname \$dldir/$dlname~
9345      chmod a+x \$dldir/$dlname'
9346    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9347      dlpath=$dir/\$dldll~
9348       $rm \$dlpath'
9349    shlibpath_overrides_runpath=yes
9350
9351    case $host_os in
9352    cygwin*)
9353      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9354      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9356      ;;
9357    mingw*)
9358      # MinGW DLLs use traditional 'lib' prefix
9359      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9360      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9361      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9362        # It is most probably a Windows format PATH printed by
9363        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9364        # path with ; separators, and with drive letters. We can handle the
9365        # drive letters (cygwin fileutils understands them), so leave them,
9366        # especially as we might pass files found there to a mingw objdump,
9367        # which wouldn't understand a cygwinified path. Ahh.
9368        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9369      else
9370        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9371      fi
9372      ;;
9373    pw32*)
9374      # pw32 DLLs use 'pw' prefix rather than 'lib'
9375      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9376      ;;
9377    esac
9378    ;;
9379
9380  *)
9381    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9382    ;;
9383  esac
9384  dynamic_linker='Win32 ld.exe'
9385  # FIXME: first we should search . and the directory the executable is in
9386  shlibpath_var=PATH
9387  ;;
9388
9389darwin* | rhapsody*)
9390  dynamic_linker="$host_os dyld"
9391  version_type=darwin
9392  need_lib_prefix=no
9393  need_version=no
9394  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9395  soname_spec='${libname}${release}${major}$shared_ext'
9396  shlibpath_overrides_runpath=yes
9397  shlibpath_var=DYLD_LIBRARY_PATH
9398  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9399
9400  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9401  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402  ;;
9403
9404dgux*)
9405  version_type=linux
9406  need_lib_prefix=no
9407  need_version=no
9408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9409  soname_spec='${libname}${release}${shared_ext}$major'
9410  shlibpath_var=LD_LIBRARY_PATH
9411  ;;
9412
9413freebsd1*)
9414  dynamic_linker=no
9415  ;;
9416
9417freebsd* | dragonfly*)
9418  # DragonFly does not have aout.  When/if they implement a new
9419  # versioning mechanism, adjust this.
9420  if test -x /usr/bin/objformat; then
9421    objformat=`/usr/bin/objformat`
9422  else
9423    case $host_os in
9424    freebsd[123]*) objformat=aout ;;
9425    *) objformat=elf ;;
9426    esac
9427  fi
9428  version_type=freebsd-$objformat
9429  case $version_type in
9430    freebsd-elf*)
9431      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432      need_version=no
9433      need_lib_prefix=no
9434      ;;
9435    freebsd-*)
9436      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9437      need_version=yes
9438      ;;
9439  esac
9440  shlibpath_var=LD_LIBRARY_PATH
9441  case $host_os in
9442  freebsd2*)
9443    shlibpath_overrides_runpath=yes
9444    ;;
9445  freebsd3.[01]* | freebsdelf3.[01]*)
9446    shlibpath_overrides_runpath=yes
9447    hardcode_into_libs=yes
9448    ;;
9449  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9450  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9451    shlibpath_overrides_runpath=no
9452    hardcode_into_libs=yes
9453    ;;
9454  *) # from 4.6 on, and DragonFly
9455    shlibpath_overrides_runpath=yes
9456    hardcode_into_libs=yes
9457    ;;
9458  esac
9459  ;;
9460
9461gnu*)
9462  version_type=linux
9463  need_lib_prefix=no
9464  need_version=no
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  shlibpath_var=LD_LIBRARY_PATH
9468  hardcode_into_libs=yes
9469  ;;
9470
9471hpux9* | hpux10* | hpux11*)
9472  # Give a soname corresponding to the major version so that dld.sl refuses to
9473  # link against other versions.
9474  version_type=sunos
9475  need_lib_prefix=no
9476  need_version=no
9477  case $host_cpu in
9478  ia64*)
9479    shrext_cmds='.so'
9480    hardcode_into_libs=yes
9481    dynamic_linker="$host_os dld.so"
9482    shlibpath_var=LD_LIBRARY_PATH
9483    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485    soname_spec='${libname}${release}${shared_ext}$major'
9486    if test "X$HPUX_IA64_MODE" = X32; then
9487      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9488    else
9489      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9490    fi
9491    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9492    ;;
9493   hppa*64*)
9494     shrext_cmds='.sl'
9495     hardcode_into_libs=yes
9496     dynamic_linker="$host_os dld.sl"
9497     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500     soname_spec='${libname}${release}${shared_ext}$major'
9501     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9502     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9503     ;;
9504   *)
9505    shrext_cmds='.sl'
9506    dynamic_linker="$host_os dld.sl"
9507    shlibpath_var=SHLIB_PATH
9508    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9509    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510    soname_spec='${libname}${release}${shared_ext}$major'
9511    ;;
9512  esac
9513  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9514  postinstall_cmds='chmod 555 $lib'
9515  ;;
9516
9517interix[3-9]*)
9518  version_type=linux
9519  need_lib_prefix=no
9520  need_version=no
9521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9522  soname_spec='${libname}${release}${shared_ext}$major'
9523  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9524  shlibpath_var=LD_LIBRARY_PATH
9525  shlibpath_overrides_runpath=no
9526  hardcode_into_libs=yes
9527  ;;
9528
9529irix5* | irix6* | nonstopux*)
9530  case $host_os in
9531    nonstopux*) version_type=nonstopux ;;
9532    *)
9533	if test "$lt_cv_prog_gnu_ld" = yes; then
9534		version_type=linux
9535	else
9536		version_type=irix
9537	fi ;;
9538  esac
9539  need_lib_prefix=no
9540  need_version=no
9541  soname_spec='${libname}${release}${shared_ext}$major'
9542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9543  case $host_os in
9544  irix5* | nonstopux*)
9545    libsuff= shlibsuff=
9546    ;;
9547  *)
9548    case $LD in # libtool.m4 will add one of these switches to LD
9549    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9550      libsuff= shlibsuff= libmagic=32-bit;;
9551    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9552      libsuff=32 shlibsuff=N32 libmagic=N32;;
9553    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9554      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9555    *) libsuff= shlibsuff= libmagic=never-match;;
9556    esac
9557    ;;
9558  esac
9559  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9560  shlibpath_overrides_runpath=no
9561  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9562  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9563  hardcode_into_libs=yes
9564  ;;
9565
9566# No shared lib support for Linux oldld, aout, or coff.
9567linux*oldld* | linux*aout* | linux*coff*)
9568  dynamic_linker=no
9569  ;;
9570
9571# This must be Linux ELF.
9572linux* | k*bsd*-gnu)
9573  version_type=linux
9574  need_lib_prefix=no
9575  need_version=no
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577  soname_spec='${libname}${release}${shared_ext}$major'
9578  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9579  shlibpath_var=LD_LIBRARY_PATH
9580  shlibpath_overrides_runpath=no
9581  # This implies no fast_install, which is unacceptable.
9582  # Some rework will be needed to allow for fast_install
9583  # before this can be enabled.
9584  hardcode_into_libs=yes
9585
9586  # Append ld.so.conf contents to the search path
9587  if test -f /etc/ld.so.conf; then
9588    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' ' '`
9589    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9590  fi
9591
9592  # We used to test for /lib/ld.so.1 and disable shared libraries on
9593  # powerpc, because MkLinux only supported shared libraries with the
9594  # GNU dynamic linker.  Since this was broken with cross compilers,
9595  # most powerpc-linux boxes support dynamic linking these days and
9596  # people can always --disable-shared, the test was removed, and we
9597  # assume the GNU/Linux dynamic linker is in use.
9598  dynamic_linker='GNU/Linux ld.so'
9599  ;;
9600
9601netbsd*)
9602  version_type=sunos
9603  need_lib_prefix=no
9604  need_version=no
9605  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9607    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9608    dynamic_linker='NetBSD (a.out) ld.so'
9609  else
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    dynamic_linker='NetBSD ld.elf_so'
9613  fi
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  hardcode_into_libs=yes
9617  ;;
9618
9619newsos6)
9620  version_type=linux
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  shlibpath_var=LD_LIBRARY_PATH
9623  shlibpath_overrides_runpath=yes
9624  ;;
9625
9626nto-qnx*)
9627  version_type=linux
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  shlibpath_overrides_runpath=yes
9634  ;;
9635
9636openbsd*)
9637  version_type=sunos
9638  sys_lib_dlsearch_path_spec="/usr/lib"
9639  need_lib_prefix=no
9640  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9641  case $host_os in
9642    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9643    *)                         need_version=no  ;;
9644  esac
9645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9646  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9647  shlibpath_var=LD_LIBRARY_PATH
9648  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9649    case $host_os in
9650      openbsd2.[89] | openbsd2.[89].*)
9651	shlibpath_overrides_runpath=no
9652	;;
9653      *)
9654	shlibpath_overrides_runpath=yes
9655	;;
9656      esac
9657  else
9658    shlibpath_overrides_runpath=yes
9659  fi
9660  ;;
9661
9662os2*)
9663  libname_spec='$name'
9664  shrext_cmds=".dll"
9665  need_lib_prefix=no
9666  library_names_spec='$libname${shared_ext} $libname.a'
9667  dynamic_linker='OS/2 ld.exe'
9668  shlibpath_var=LIBPATH
9669  ;;
9670
9671osf3* | osf4* | osf5*)
9672  version_type=osf
9673  need_lib_prefix=no
9674  need_version=no
9675  soname_spec='${libname}${release}${shared_ext}$major'
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9679  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9680  ;;
9681
9682rdos*)
9683  dynamic_linker=no
9684  ;;
9685
9686solaris*)
9687  version_type=linux
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  shlibpath_overrides_runpath=yes
9694  hardcode_into_libs=yes
9695  # ldd complains unless libraries are executable
9696  postinstall_cmds='chmod +x $lib'
9697  ;;
9698
9699sunos4*)
9700  version_type=sunos
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9702  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  shlibpath_overrides_runpath=yes
9705  if test "$with_gnu_ld" = yes; then
9706    need_lib_prefix=no
9707  fi
9708  need_version=yes
9709  ;;
9710
9711sysv4 | sysv4.3*)
9712  version_type=linux
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714  soname_spec='${libname}${release}${shared_ext}$major'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  case $host_vendor in
9717    sni)
9718      shlibpath_overrides_runpath=no
9719      need_lib_prefix=no
9720      export_dynamic_flag_spec='${wl}-Blargedynsym'
9721      runpath_var=LD_RUN_PATH
9722      ;;
9723    siemens)
9724      need_lib_prefix=no
9725      ;;
9726    motorola)
9727      need_lib_prefix=no
9728      need_version=no
9729      shlibpath_overrides_runpath=no
9730      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9731      ;;
9732  esac
9733  ;;
9734
9735sysv4*MP*)
9736  if test -d /usr/nec ;then
9737    version_type=linux
9738    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9739    soname_spec='$libname${shared_ext}.$major'
9740    shlibpath_var=LD_LIBRARY_PATH
9741  fi
9742  ;;
9743
9744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9745  version_type=freebsd-elf
9746  need_lib_prefix=no
9747  need_version=no
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  hardcode_into_libs=yes
9752  if test "$with_gnu_ld" = yes; then
9753    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9754    shlibpath_overrides_runpath=no
9755  else
9756    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9757    shlibpath_overrides_runpath=yes
9758    case $host_os in
9759      sco3.2v5*)
9760        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9761	;;
9762    esac
9763  fi
9764  sys_lib_dlsearch_path_spec='/usr/lib'
9765  ;;
9766
9767uts4*)
9768  version_type=linux
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770  soname_spec='${libname}${release}${shared_ext}$major'
9771  shlibpath_var=LD_LIBRARY_PATH
9772  ;;
9773
9774*)
9775  dynamic_linker=no
9776  ;;
9777esac
9778{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9779$as_echo "$dynamic_linker" >&6; }
9780test "$dynamic_linker" = no && can_build_shared=no
9781
9782if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9783  $as_echo_n "(cached) " >&6
9784else
9785  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9786fi
9787
9788sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9789if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9790  $as_echo_n "(cached) " >&6
9791else
9792  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9793fi
9794
9795sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9796
9797variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9798if test "$GCC" = yes; then
9799  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9800fi
9801
9802{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9803$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9804hardcode_action=
9805if test -n "$hardcode_libdir_flag_spec" || \
9806   test -n "$runpath_var" || \
9807   test "X$hardcode_automatic" = "Xyes" ; then
9808
9809  # We can hardcode non-existant directories.
9810  if test "$hardcode_direct" != no &&
9811     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9812     # have to relink, otherwise we might link with an installed library
9813     # when we should be linking with a yet-to-be-installed one
9814     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9815     test "$hardcode_minus_L" != no; then
9816    # Linking always hardcodes the temporary library directory.
9817    hardcode_action=relink
9818  else
9819    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9820    hardcode_action=immediate
9821  fi
9822else
9823  # We cannot hardcode anything, or else we can only hardcode existing
9824  # directories.
9825  hardcode_action=unsupported
9826fi
9827{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9828$as_echo "$hardcode_action" >&6; }
9829
9830if test "$hardcode_action" = relink; then
9831  # Fast installation is not supported
9832  enable_fast_install=no
9833elif test "$shlibpath_overrides_runpath" = yes ||
9834     test "$enable_shared" = no; then
9835  # Fast installation is not necessary
9836  enable_fast_install=needless
9837fi
9838
9839striplib=
9840old_striplib=
9841{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9842$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9843if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9844  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9845  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9846  { $as_echo "$as_me:$LINENO: result: yes" >&5
9847$as_echo "yes" >&6; }
9848else
9849# FIXME - insert some real tests, host_os isn't really good enough
9850  case $host_os in
9851   darwin*)
9852       if test -n "$STRIP" ; then
9853         striplib="$STRIP -x"
9854         old_striplib="$STRIP -S"
9855         { $as_echo "$as_me:$LINENO: result: yes" >&5
9856$as_echo "yes" >&6; }
9857       else
9858  { $as_echo "$as_me:$LINENO: result: no" >&5
9859$as_echo "no" >&6; }
9860fi
9861       ;;
9862   *)
9863  { $as_echo "$as_me:$LINENO: result: no" >&5
9864$as_echo "no" >&6; }
9865    ;;
9866  esac
9867fi
9868
9869if test "x$enable_dlopen" != xyes; then
9870  enable_dlopen=unknown
9871  enable_dlopen_self=unknown
9872  enable_dlopen_self_static=unknown
9873else
9874  lt_cv_dlopen=no
9875  lt_cv_dlopen_libs=
9876
9877  case $host_os in
9878  beos*)
9879    lt_cv_dlopen="load_add_on"
9880    lt_cv_dlopen_libs=
9881    lt_cv_dlopen_self=yes
9882    ;;
9883
9884  mingw* | pw32*)
9885    lt_cv_dlopen="LoadLibrary"
9886    lt_cv_dlopen_libs=
9887   ;;
9888
9889  cygwin*)
9890    lt_cv_dlopen="dlopen"
9891    lt_cv_dlopen_libs=
9892   ;;
9893
9894  darwin*)
9895  # if libdl is installed we need to link against it
9896    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9897$as_echo_n "checking for dlopen in -ldl... " >&6; }
9898if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9899  $as_echo_n "(cached) " >&6
9900else
9901  ac_check_lib_save_LIBS=$LIBS
9902LIBS="-ldl  $LIBS"
9903cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909
9910/* Override any GCC internal prototype to avoid an error.
9911   Use char because int might match the return type of a GCC
9912   builtin and then its argument prototype would still apply.  */
9913#ifdef __cplusplus
9914extern "C"
9915#endif
9916char dlopen ();
9917int
9918main ()
9919{
9920return dlopen ();
9921  ;
9922  return 0;
9923}
9924_ACEOF
9925rm -f conftest.$ac_objext conftest$ac_exeext
9926if { (ac_try="$ac_link"
9927case "(($ac_try" in
9928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929  *) ac_try_echo=$ac_try;;
9930esac
9931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9932$as_echo "$ac_try_echo") >&5
9933  (eval "$ac_link") 2>conftest.er1
9934  ac_status=$?
9935  grep -v '^ *+' conftest.er1 >conftest.err
9936  rm -f conftest.er1
9937  cat conftest.err >&5
9938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939  (exit $ac_status); } && {
9940	 test -z "$ac_c_werror_flag" ||
9941	 test ! -s conftest.err
9942       } && test -s conftest$ac_exeext && {
9943	 test "$cross_compiling" = yes ||
9944	 $as_test_x conftest$ac_exeext
9945       }; then
9946  ac_cv_lib_dl_dlopen=yes
9947else
9948  $as_echo "$as_me: failed program was:" >&5
9949sed 's/^/| /' conftest.$ac_ext >&5
9950
9951	ac_cv_lib_dl_dlopen=no
9952fi
9953
9954rm -rf conftest.dSYM
9955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956      conftest$ac_exeext conftest.$ac_ext
9957LIBS=$ac_check_lib_save_LIBS
9958fi
9959{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9960$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9961if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9962  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9963else
9964
9965    lt_cv_dlopen="dyld"
9966    lt_cv_dlopen_libs=
9967    lt_cv_dlopen_self=yes
9968
9969fi
9970
9971   ;;
9972
9973  *)
9974    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9975$as_echo_n "checking for shl_load... " >&6; }
9976if test "${ac_cv_func_shl_load+set}" = set; then
9977  $as_echo_n "(cached) " >&6
9978else
9979  cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h.  */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h.  */
9985/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9986   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9987#define shl_load innocuous_shl_load
9988
9989/* System header to define __stub macros and hopefully few prototypes,
9990    which can conflict with char shl_load (); below.
9991    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9992    <limits.h> exists even on freestanding compilers.  */
9993
9994#ifdef __STDC__
9995# include <limits.h>
9996#else
9997# include <assert.h>
9998#endif
9999
10000#undef shl_load
10001
10002/* Override any GCC internal prototype to avoid an error.
10003   Use char because int might match the return type of a GCC
10004   builtin and then its argument prototype would still apply.  */
10005#ifdef __cplusplus
10006extern "C"
10007#endif
10008char shl_load ();
10009/* The GNU C library defines this for functions which it implements
10010    to always fail with ENOSYS.  Some functions are actually named
10011    something starting with __ and the normal name is an alias.  */
10012#if defined __stub_shl_load || defined __stub___shl_load
10013choke me
10014#endif
10015
10016int
10017main ()
10018{
10019return shl_load ();
10020  ;
10021  return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext conftest$ac_exeext
10025if { (ac_try="$ac_link"
10026case "(($ac_try" in
10027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028  *) ac_try_echo=$ac_try;;
10029esac
10030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10031$as_echo "$ac_try_echo") >&5
10032  (eval "$ac_link") 2>conftest.er1
10033  ac_status=$?
10034  grep -v '^ *+' conftest.er1 >conftest.err
10035  rm -f conftest.er1
10036  cat conftest.err >&5
10037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); } && {
10039	 test -z "$ac_c_werror_flag" ||
10040	 test ! -s conftest.err
10041       } && test -s conftest$ac_exeext && {
10042	 test "$cross_compiling" = yes ||
10043	 $as_test_x conftest$ac_exeext
10044       }; then
10045  ac_cv_func_shl_load=yes
10046else
10047  $as_echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050	ac_cv_func_shl_load=no
10051fi
10052
10053rm -rf conftest.dSYM
10054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10055      conftest$ac_exeext conftest.$ac_ext
10056fi
10057{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10058$as_echo "$ac_cv_func_shl_load" >&6; }
10059if test "x$ac_cv_func_shl_load" = x""yes; then
10060  lt_cv_dlopen="shl_load"
10061else
10062  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10063$as_echo_n "checking for shl_load in -ldld... " >&6; }
10064if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10065  $as_echo_n "(cached) " >&6
10066else
10067  ac_check_lib_save_LIBS=$LIBS
10068LIBS="-ldld  $LIBS"
10069cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h.  */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h.  */
10075
10076/* Override any GCC internal prototype to avoid an error.
10077   Use char because int might match the return type of a GCC
10078   builtin and then its argument prototype would still apply.  */
10079#ifdef __cplusplus
10080extern "C"
10081#endif
10082char shl_load ();
10083int
10084main ()
10085{
10086return shl_load ();
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (ac_try="$ac_link"
10093case "(($ac_try" in
10094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095  *) ac_try_echo=$ac_try;;
10096esac
10097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10098$as_echo "$ac_try_echo") >&5
10099  (eval "$ac_link") 2>conftest.er1
10100  ac_status=$?
10101  grep -v '^ *+' conftest.er1 >conftest.err
10102  rm -f conftest.er1
10103  cat conftest.err >&5
10104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); } && {
10106	 test -z "$ac_c_werror_flag" ||
10107	 test ! -s conftest.err
10108       } && test -s conftest$ac_exeext && {
10109	 test "$cross_compiling" = yes ||
10110	 $as_test_x conftest$ac_exeext
10111       }; then
10112  ac_cv_lib_dld_shl_load=yes
10113else
10114  $as_echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117	ac_cv_lib_dld_shl_load=no
10118fi
10119
10120rm -rf conftest.dSYM
10121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122      conftest$ac_exeext conftest.$ac_ext
10123LIBS=$ac_check_lib_save_LIBS
10124fi
10125{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10126$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10127if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10128  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10129else
10130  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10131$as_echo_n "checking for dlopen... " >&6; }
10132if test "${ac_cv_func_dlopen+set}" = set; then
10133  $as_echo_n "(cached) " >&6
10134else
10135  cat >conftest.$ac_ext <<_ACEOF
10136/* confdefs.h.  */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h.  */
10141/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10142   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10143#define dlopen innocuous_dlopen
10144
10145/* System header to define __stub macros and hopefully few prototypes,
10146    which can conflict with char dlopen (); below.
10147    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10148    <limits.h> exists even on freestanding compilers.  */
10149
10150#ifdef __STDC__
10151# include <limits.h>
10152#else
10153# include <assert.h>
10154#endif
10155
10156#undef dlopen
10157
10158/* Override any GCC internal prototype to avoid an error.
10159   Use char because int might match the return type of a GCC
10160   builtin and then its argument prototype would still apply.  */
10161#ifdef __cplusplus
10162extern "C"
10163#endif
10164char dlopen ();
10165/* The GNU C library defines this for functions which it implements
10166    to always fail with ENOSYS.  Some functions are actually named
10167    something starting with __ and the normal name is an alias.  */
10168#if defined __stub_dlopen || defined __stub___dlopen
10169choke me
10170#endif
10171
10172int
10173main ()
10174{
10175return dlopen ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184  *) ac_try_echo=$ac_try;;
10185esac
10186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10187$as_echo "$ac_try_echo") >&5
10188  (eval "$ac_link") 2>conftest.er1
10189  ac_status=$?
10190  grep -v '^ *+' conftest.er1 >conftest.err
10191  rm -f conftest.er1
10192  cat conftest.err >&5
10193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); } && {
10195	 test -z "$ac_c_werror_flag" ||
10196	 test ! -s conftest.err
10197       } && test -s conftest$ac_exeext && {
10198	 test "$cross_compiling" = yes ||
10199	 $as_test_x conftest$ac_exeext
10200       }; then
10201  ac_cv_func_dlopen=yes
10202else
10203  $as_echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206	ac_cv_func_dlopen=no
10207fi
10208
10209rm -rf conftest.dSYM
10210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10211      conftest$ac_exeext conftest.$ac_ext
10212fi
10213{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10214$as_echo "$ac_cv_func_dlopen" >&6; }
10215if test "x$ac_cv_func_dlopen" = x""yes; then
10216  lt_cv_dlopen="dlopen"
10217else
10218  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10219$as_echo_n "checking for dlopen in -ldl... " >&6; }
10220if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10221  $as_echo_n "(cached) " >&6
10222else
10223  ac_check_lib_save_LIBS=$LIBS
10224LIBS="-ldl  $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h.  */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h.  */
10231
10232/* Override any GCC internal prototype to avoid an error.
10233   Use char because int might match the return type of a GCC
10234   builtin and then its argument prototype would still apply.  */
10235#ifdef __cplusplus
10236extern "C"
10237#endif
10238char dlopen ();
10239int
10240main ()
10241{
10242return dlopen ();
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext conftest$ac_exeext
10248if { (ac_try="$ac_link"
10249case "(($ac_try" in
10250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251  *) ac_try_echo=$ac_try;;
10252esac
10253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10254$as_echo "$ac_try_echo") >&5
10255  (eval "$ac_link") 2>conftest.er1
10256  ac_status=$?
10257  grep -v '^ *+' conftest.er1 >conftest.err
10258  rm -f conftest.er1
10259  cat conftest.err >&5
10260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } && {
10262	 test -z "$ac_c_werror_flag" ||
10263	 test ! -s conftest.err
10264       } && test -s conftest$ac_exeext && {
10265	 test "$cross_compiling" = yes ||
10266	 $as_test_x conftest$ac_exeext
10267       }; then
10268  ac_cv_lib_dl_dlopen=yes
10269else
10270  $as_echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273	ac_cv_lib_dl_dlopen=no
10274fi
10275
10276rm -rf conftest.dSYM
10277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278      conftest$ac_exeext conftest.$ac_ext
10279LIBS=$ac_check_lib_save_LIBS
10280fi
10281{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10282$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10283if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10284  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10285else
10286  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10287$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10288if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10289  $as_echo_n "(cached) " >&6
10290else
10291  ac_check_lib_save_LIBS=$LIBS
10292LIBS="-lsvld  $LIBS"
10293cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299
10300/* Override any GCC internal prototype to avoid an error.
10301   Use char because int might match the return type of a GCC
10302   builtin and then its argument prototype would still apply.  */
10303#ifdef __cplusplus
10304extern "C"
10305#endif
10306char dlopen ();
10307int
10308main ()
10309{
10310return dlopen ();
10311  ;
10312  return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
10316if { (ac_try="$ac_link"
10317case "(($ac_try" in
10318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319  *) ac_try_echo=$ac_try;;
10320esac
10321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10322$as_echo "$ac_try_echo") >&5
10323  (eval "$ac_link") 2>conftest.er1
10324  ac_status=$?
10325  grep -v '^ *+' conftest.er1 >conftest.err
10326  rm -f conftest.er1
10327  cat conftest.err >&5
10328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329  (exit $ac_status); } && {
10330	 test -z "$ac_c_werror_flag" ||
10331	 test ! -s conftest.err
10332       } && test -s conftest$ac_exeext && {
10333	 test "$cross_compiling" = yes ||
10334	 $as_test_x conftest$ac_exeext
10335       }; then
10336  ac_cv_lib_svld_dlopen=yes
10337else
10338  $as_echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
10341	ac_cv_lib_svld_dlopen=no
10342fi
10343
10344rm -rf conftest.dSYM
10345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10346      conftest$ac_exeext conftest.$ac_ext
10347LIBS=$ac_check_lib_save_LIBS
10348fi
10349{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10350$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10351if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10352  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10353else
10354  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10355$as_echo_n "checking for dld_link in -ldld... " >&6; }
10356if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10357  $as_echo_n "(cached) " >&6
10358else
10359  ac_check_lib_save_LIBS=$LIBS
10360LIBS="-ldld  $LIBS"
10361cat >conftest.$ac_ext <<_ACEOF
10362/* confdefs.h.  */
10363_ACEOF
10364cat confdefs.h >>conftest.$ac_ext
10365cat >>conftest.$ac_ext <<_ACEOF
10366/* end confdefs.h.  */
10367
10368/* Override any GCC internal prototype to avoid an error.
10369   Use char because int might match the return type of a GCC
10370   builtin and then its argument prototype would still apply.  */
10371#ifdef __cplusplus
10372extern "C"
10373#endif
10374char dld_link ();
10375int
10376main ()
10377{
10378return dld_link ();
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext conftest$ac_exeext
10384if { (ac_try="$ac_link"
10385case "(($ac_try" in
10386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387  *) ac_try_echo=$ac_try;;
10388esac
10389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10390$as_echo "$ac_try_echo") >&5
10391  (eval "$ac_link") 2>conftest.er1
10392  ac_status=$?
10393  grep -v '^ *+' conftest.er1 >conftest.err
10394  rm -f conftest.er1
10395  cat conftest.err >&5
10396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397  (exit $ac_status); } && {
10398	 test -z "$ac_c_werror_flag" ||
10399	 test ! -s conftest.err
10400       } && test -s conftest$ac_exeext && {
10401	 test "$cross_compiling" = yes ||
10402	 $as_test_x conftest$ac_exeext
10403       }; then
10404  ac_cv_lib_dld_dld_link=yes
10405else
10406  $as_echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
10409	ac_cv_lib_dld_dld_link=no
10410fi
10411
10412rm -rf conftest.dSYM
10413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414      conftest$ac_exeext conftest.$ac_ext
10415LIBS=$ac_check_lib_save_LIBS
10416fi
10417{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10418$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10419if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10420  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10421fi
10422
10423
10424fi
10425
10426
10427fi
10428
10429
10430fi
10431
10432
10433fi
10434
10435
10436fi
10437
10438    ;;
10439  esac
10440
10441  if test "x$lt_cv_dlopen" != xno; then
10442    enable_dlopen=yes
10443  else
10444    enable_dlopen=no
10445  fi
10446
10447  case $lt_cv_dlopen in
10448  dlopen)
10449    save_CPPFLAGS="$CPPFLAGS"
10450    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10451
10452    save_LDFLAGS="$LDFLAGS"
10453    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10454
10455    save_LIBS="$LIBS"
10456    LIBS="$lt_cv_dlopen_libs $LIBS"
10457
10458    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10459$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10460if test "${lt_cv_dlopen_self+set}" = set; then
10461  $as_echo_n "(cached) " >&6
10462else
10463  	  if test "$cross_compiling" = yes; then :
10464  lt_cv_dlopen_self=cross
10465else
10466  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467  lt_status=$lt_dlunknown
10468  cat > conftest.$ac_ext <<EOF
10469#line 10469 "configure"
10470#include "confdefs.h"
10471
10472#if HAVE_DLFCN_H
10473#include <dlfcn.h>
10474#endif
10475
10476#include <stdio.h>
10477
10478#ifdef RTLD_GLOBAL
10479#  define LT_DLGLOBAL		RTLD_GLOBAL
10480#else
10481#  ifdef DL_GLOBAL
10482#    define LT_DLGLOBAL		DL_GLOBAL
10483#  else
10484#    define LT_DLGLOBAL		0
10485#  endif
10486#endif
10487
10488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489   find out it does not work in some platform. */
10490#ifndef LT_DLLAZY_OR_NOW
10491#  ifdef RTLD_LAZY
10492#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10493#  else
10494#    ifdef DL_LAZY
10495#      define LT_DLLAZY_OR_NOW		DL_LAZY
10496#    else
10497#      ifdef RTLD_NOW
10498#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10499#      else
10500#        ifdef DL_NOW
10501#          define LT_DLLAZY_OR_NOW	DL_NOW
10502#        else
10503#          define LT_DLLAZY_OR_NOW	0
10504#        endif
10505#      endif
10506#    endif
10507#  endif
10508#endif
10509
10510#ifdef __cplusplus
10511extern "C" void exit (int);
10512#endif
10513
10514void fnord() { int i=42;}
10515int main ()
10516{
10517  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518  int status = $lt_dlunknown;
10519
10520  if (self)
10521    {
10522      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10523      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524      /* dlclose (self); */
10525    }
10526  else
10527    puts (dlerror ());
10528
10529    exit (status);
10530}
10531EOF
10532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533  (eval $ac_link) 2>&5
10534  ac_status=$?
10535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10537    (./conftest; exit; ) >&5 2>/dev/null
10538    lt_status=$?
10539    case x$lt_status in
10540      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10541      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10542      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10543    esac
10544  else :
10545    # compilation failed
10546    lt_cv_dlopen_self=no
10547  fi
10548fi
10549rm -fr conftest*
10550
10551
10552fi
10553{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10554$as_echo "$lt_cv_dlopen_self" >&6; }
10555
10556    if test "x$lt_cv_dlopen_self" = xyes; then
10557      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10558      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10559$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10560if test "${lt_cv_dlopen_self_static+set}" = set; then
10561  $as_echo_n "(cached) " >&6
10562else
10563  	  if test "$cross_compiling" = yes; then :
10564  lt_cv_dlopen_self_static=cross
10565else
10566  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10567  lt_status=$lt_dlunknown
10568  cat > conftest.$ac_ext <<EOF
10569#line 10569 "configure"
10570#include "confdefs.h"
10571
10572#if HAVE_DLFCN_H
10573#include <dlfcn.h>
10574#endif
10575
10576#include <stdio.h>
10577
10578#ifdef RTLD_GLOBAL
10579#  define LT_DLGLOBAL		RTLD_GLOBAL
10580#else
10581#  ifdef DL_GLOBAL
10582#    define LT_DLGLOBAL		DL_GLOBAL
10583#  else
10584#    define LT_DLGLOBAL		0
10585#  endif
10586#endif
10587
10588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10589   find out it does not work in some platform. */
10590#ifndef LT_DLLAZY_OR_NOW
10591#  ifdef RTLD_LAZY
10592#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10593#  else
10594#    ifdef DL_LAZY
10595#      define LT_DLLAZY_OR_NOW		DL_LAZY
10596#    else
10597#      ifdef RTLD_NOW
10598#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10599#      else
10600#        ifdef DL_NOW
10601#          define LT_DLLAZY_OR_NOW	DL_NOW
10602#        else
10603#          define LT_DLLAZY_OR_NOW	0
10604#        endif
10605#      endif
10606#    endif
10607#  endif
10608#endif
10609
10610#ifdef __cplusplus
10611extern "C" void exit (int);
10612#endif
10613
10614void fnord() { int i=42;}
10615int main ()
10616{
10617  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10618  int status = $lt_dlunknown;
10619
10620  if (self)
10621    {
10622      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10623      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624      /* dlclose (self); */
10625    }
10626  else
10627    puts (dlerror ());
10628
10629    exit (status);
10630}
10631EOF
10632  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633  (eval $ac_link) 2>&5
10634  ac_status=$?
10635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10637    (./conftest; exit; ) >&5 2>/dev/null
10638    lt_status=$?
10639    case x$lt_status in
10640      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10641      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10642      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10643    esac
10644  else :
10645    # compilation failed
10646    lt_cv_dlopen_self_static=no
10647  fi
10648fi
10649rm -fr conftest*
10650
10651
10652fi
10653{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10654$as_echo "$lt_cv_dlopen_self_static" >&6; }
10655    fi
10656
10657    CPPFLAGS="$save_CPPFLAGS"
10658    LDFLAGS="$save_LDFLAGS"
10659    LIBS="$save_LIBS"
10660    ;;
10661  esac
10662
10663  case $lt_cv_dlopen_self in
10664  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10665  *) enable_dlopen_self=unknown ;;
10666  esac
10667
10668  case $lt_cv_dlopen_self_static in
10669  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10670  *) enable_dlopen_self_static=unknown ;;
10671  esac
10672fi
10673
10674
10675# Report which library types will actually be built
10676{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10678{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10679$as_echo "$can_build_shared" >&6; }
10680
10681{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10682$as_echo_n "checking whether to build shared libraries... " >&6; }
10683test "$can_build_shared" = "no" && enable_shared=no
10684
10685# On AIX, shared libraries and static libraries use the same namespace, and
10686# are all built from PIC.
10687case $host_os in
10688aix3*)
10689  test "$enable_shared" = yes && enable_static=no
10690  if test -n "$RANLIB"; then
10691    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10692    postinstall_cmds='$RANLIB $lib'
10693  fi
10694  ;;
10695
10696aix[4-9]*)
10697  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10698    test "$enable_shared" = yes && enable_static=no
10699  fi
10700    ;;
10701esac
10702{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10703$as_echo "$enable_shared" >&6; }
10704
10705{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10706$as_echo_n "checking whether to build static libraries... " >&6; }
10707# Make sure either enable_shared or enable_static is yes.
10708test "$enable_shared" = yes || enable_static=yes
10709{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10710$as_echo "$enable_static" >&6; }
10711
10712# The else clause should only fire when bootstrapping the
10713# libtool distribution, otherwise you forgot to ship ltmain.sh
10714# with your package, and you will get complaints that there are
10715# no rules to generate ltmain.sh.
10716if test -f "$ltmain"; then
10717  # See if we are running on zsh, and set the options which allow our commands through
10718  # without removal of \ escapes.
10719  if test -n "${ZSH_VERSION+set}" ; then
10720    setopt NO_GLOB_SUBST
10721  fi
10722  # Now quote all the things that may contain metacharacters while being
10723  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10724  # variables and quote the copies for generation of the libtool script.
10725  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10726    SED SHELL STRIP \
10727    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10728    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10729    deplibs_check_method reload_flag reload_cmds need_locks \
10730    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10731    lt_cv_sys_global_symbol_to_c_name_address \
10732    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10733    old_postinstall_cmds old_postuninstall_cmds \
10734    compiler \
10735    CC \
10736    LD \
10737    lt_prog_compiler_wl \
10738    lt_prog_compiler_pic \
10739    lt_prog_compiler_static \
10740    lt_prog_compiler_no_builtin_flag \
10741    export_dynamic_flag_spec \
10742    thread_safe_flag_spec \
10743    whole_archive_flag_spec \
10744    enable_shared_with_static_runtimes \
10745    old_archive_cmds \
10746    old_archive_from_new_cmds \
10747    predep_objects \
10748    postdep_objects \
10749    predeps \
10750    postdeps \
10751    compiler_lib_search_path \
10752    compiler_lib_search_dirs \
10753    archive_cmds \
10754    archive_expsym_cmds \
10755    postinstall_cmds \
10756    postuninstall_cmds \
10757    old_archive_from_expsyms_cmds \
10758    allow_undefined_flag \
10759    no_undefined_flag \
10760    export_symbols_cmds \
10761    hardcode_libdir_flag_spec \
10762    hardcode_libdir_flag_spec_ld \
10763    hardcode_libdir_separator \
10764    hardcode_automatic \
10765    module_cmds \
10766    module_expsym_cmds \
10767    lt_cv_prog_compiler_c_o \
10768    fix_srcfile_path \
10769    exclude_expsyms \
10770    include_expsyms; do
10771
10772    case $var in
10773    old_archive_cmds | \
10774    old_archive_from_new_cmds | \
10775    archive_cmds | \
10776    archive_expsym_cmds | \
10777    module_cmds | \
10778    module_expsym_cmds | \
10779    old_archive_from_expsyms_cmds | \
10780    export_symbols_cmds | \
10781    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10782    postinstall_cmds | postuninstall_cmds | \
10783    old_postinstall_cmds | old_postuninstall_cmds | \
10784    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10785      # Double-quote double-evaled strings.
10786      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10787      ;;
10788    *)
10789      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10790      ;;
10791    esac
10792  done
10793
10794  case $lt_echo in
10795  *'\$0 --fallback-echo"')
10796    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10797    ;;
10798  esac
10799
10800cfgfile="${ofile}T"
10801  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10802  $rm -f "$cfgfile"
10803  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10804$as_echo "$as_me: creating $ofile" >&6;}
10805
10806  cat <<__EOF__ >> "$cfgfile"
10807#! $SHELL
10808
10809# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10810# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10811# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10812#
10813# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10814# Free Software Foundation, Inc.
10815#
10816# This file is part of GNU Libtool:
10817# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10818#
10819# This program is free software; you can redistribute it and/or modify
10820# it under the terms of the GNU General Public License as published by
10821# the Free Software Foundation; either version 2 of the License, or
10822# (at your option) any later version.
10823#
10824# This program is distributed in the hope that it will be useful, but
10825# WITHOUT ANY WARRANTY; without even the implied warranty of
10826# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10827# General Public License for more details.
10828#
10829# You should have received a copy of the GNU General Public License
10830# along with this program; if not, write to the Free Software
10831# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10832#
10833# As a special exception to the GNU General Public License, if you
10834# distribute this file as part of a program that contains a
10835# configuration script generated by Autoconf, you may include it under
10836# the same distribution terms that you use for the rest of that program.
10837
10838# A sed program that does not truncate output.
10839SED=$lt_SED
10840
10841# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10842Xsed="$SED -e 1s/^X//"
10843
10844# The HP-UX ksh and POSIX shell print the target directory to stdout
10845# if CDPATH is set.
10846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10847
10848# The names of the tagged configurations supported by this script.
10849available_tags=
10850
10851# ### BEGIN LIBTOOL CONFIG
10852
10853# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10854
10855# Shell to use when invoking shell scripts.
10856SHELL=$lt_SHELL
10857
10858# Whether or not to build shared libraries.
10859build_libtool_libs=$enable_shared
10860
10861# Whether or not to build static libraries.
10862build_old_libs=$enable_static
10863
10864# Whether or not to add -lc for building shared libraries.
10865build_libtool_need_lc=$archive_cmds_need_lc
10866
10867# Whether or not to disallow shared libs when runtime libs are static
10868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10869
10870# Whether or not to optimize for fast installation.
10871fast_install=$enable_fast_install
10872
10873# The host system.
10874host_alias=$host_alias
10875host=$host
10876host_os=$host_os
10877
10878# The build system.
10879build_alias=$build_alias
10880build=$build
10881build_os=$build_os
10882
10883# An echo program that does not interpret backslashes.
10884echo=$lt_echo
10885
10886# The archiver.
10887AR=$lt_AR
10888AR_FLAGS=$lt_AR_FLAGS
10889
10890# A C compiler.
10891LTCC=$lt_LTCC
10892
10893# LTCC compiler flags.
10894LTCFLAGS=$lt_LTCFLAGS
10895
10896# A language-specific compiler.
10897CC=$lt_compiler
10898
10899# Is the compiler the GNU C compiler?
10900with_gcc=$GCC
10901
10902# An ERE matcher.
10903EGREP=$lt_EGREP
10904
10905# The linker used to build libraries.
10906LD=$lt_LD
10907
10908# Whether we need hard or soft links.
10909LN_S=$lt_LN_S
10910
10911# A BSD-compatible nm program.
10912NM=$lt_NM
10913
10914# A symbol stripping program
10915STRIP=$lt_STRIP
10916
10917# Used to examine libraries when file_magic_cmd begins "file"
10918MAGIC_CMD=$MAGIC_CMD
10919
10920# Used on cygwin: DLL creation program.
10921DLLTOOL="$DLLTOOL"
10922
10923# Used on cygwin: object dumper.
10924OBJDUMP="$OBJDUMP"
10925
10926# Used on cygwin: assembler.
10927AS="$AS"
10928
10929# The name of the directory that contains temporary libtool files.
10930objdir=$objdir
10931
10932# How to create reloadable object files.
10933reload_flag=$lt_reload_flag
10934reload_cmds=$lt_reload_cmds
10935
10936# How to pass a linker flag through the compiler.
10937wl=$lt_lt_prog_compiler_wl
10938
10939# Object file suffix (normally "o").
10940objext="$ac_objext"
10941
10942# Old archive suffix (normally "a").
10943libext="$libext"
10944
10945# Shared library suffix (normally ".so").
10946shrext_cmds='$shrext_cmds'
10947
10948# Executable file suffix (normally "").
10949exeext="$exeext"
10950
10951# Additional compiler flags for building library objects.
10952pic_flag=$lt_lt_prog_compiler_pic
10953pic_mode=$pic_mode
10954
10955# What is the maximum length of a command?
10956max_cmd_len=$lt_cv_sys_max_cmd_len
10957
10958# Does compiler simultaneously support -c and -o options?
10959compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10960
10961# Must we lock files when doing compilation?
10962need_locks=$lt_need_locks
10963
10964# Do we need the lib prefix for modules?
10965need_lib_prefix=$need_lib_prefix
10966
10967# Do we need a version for libraries?
10968need_version=$need_version
10969
10970# Whether dlopen is supported.
10971dlopen_support=$enable_dlopen
10972
10973# Whether dlopen of programs is supported.
10974dlopen_self=$enable_dlopen_self
10975
10976# Whether dlopen of statically linked programs is supported.
10977dlopen_self_static=$enable_dlopen_self_static
10978
10979# Compiler flag to prevent dynamic linking.
10980link_static_flag=$lt_lt_prog_compiler_static
10981
10982# Compiler flag to turn off builtin functions.
10983no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10984
10985# Compiler flag to allow reflexive dlopens.
10986export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10987
10988# Compiler flag to generate shared objects directly from archives.
10989whole_archive_flag_spec=$lt_whole_archive_flag_spec
10990
10991# Compiler flag to generate thread-safe objects.
10992thread_safe_flag_spec=$lt_thread_safe_flag_spec
10993
10994# Library versioning type.
10995version_type=$version_type
10996
10997# Format of library name prefix.
10998libname_spec=$lt_libname_spec
10999
11000# List of archive names.  First name is the real one, the rest are links.
11001# The last name is the one that the linker finds with -lNAME.
11002library_names_spec=$lt_library_names_spec
11003
11004# The coded name of the library, if different from the real name.
11005soname_spec=$lt_soname_spec
11006
11007# Commands used to build and install an old-style archive.
11008RANLIB=$lt_RANLIB
11009old_archive_cmds=$lt_old_archive_cmds
11010old_postinstall_cmds=$lt_old_postinstall_cmds
11011old_postuninstall_cmds=$lt_old_postuninstall_cmds
11012
11013# Create an old-style archive from a shared archive.
11014old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11015
11016# Create a temporary old-style archive to link instead of a shared archive.
11017old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11018
11019# Commands used to build and install a shared archive.
11020archive_cmds=$lt_archive_cmds
11021archive_expsym_cmds=$lt_archive_expsym_cmds
11022postinstall_cmds=$lt_postinstall_cmds
11023postuninstall_cmds=$lt_postuninstall_cmds
11024
11025# Commands used to build a loadable module (assumed same as above if empty)
11026module_cmds=$lt_module_cmds
11027module_expsym_cmds=$lt_module_expsym_cmds
11028
11029# Commands to strip libraries.
11030old_striplib=$lt_old_striplib
11031striplib=$lt_striplib
11032
11033# Dependencies to place before the objects being linked to create a
11034# shared library.
11035predep_objects=$lt_predep_objects
11036
11037# Dependencies to place after the objects being linked to create a
11038# shared library.
11039postdep_objects=$lt_postdep_objects
11040
11041# Dependencies to place before the objects being linked to create a
11042# shared library.
11043predeps=$lt_predeps
11044
11045# Dependencies to place after the objects being linked to create a
11046# shared library.
11047postdeps=$lt_postdeps
11048
11049# The directories searched by this compiler when creating a shared
11050# library
11051compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11052
11053# The library search path used internally by the compiler when linking
11054# a shared library.
11055compiler_lib_search_path=$lt_compiler_lib_search_path
11056
11057# Method to check whether dependent libraries are shared objects.
11058deplibs_check_method=$lt_deplibs_check_method
11059
11060# Command to use when deplibs_check_method == file_magic.
11061file_magic_cmd=$lt_file_magic_cmd
11062
11063# Flag that allows shared libraries with undefined symbols to be built.
11064allow_undefined_flag=$lt_allow_undefined_flag
11065
11066# Flag that forces no undefined symbols.
11067no_undefined_flag=$lt_no_undefined_flag
11068
11069# Commands used to finish a libtool library installation in a directory.
11070finish_cmds=$lt_finish_cmds
11071
11072# Same as above, but a single script fragment to be evaled but not shown.
11073finish_eval=$lt_finish_eval
11074
11075# Take the output of nm and produce a listing of raw symbols and C names.
11076global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11077
11078# Transform the output of nm in a proper C declaration
11079global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11080
11081# Transform the output of nm in a C name address pair
11082global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11083
11084# This is the shared library runtime path variable.
11085runpath_var=$runpath_var
11086
11087# This is the shared library path variable.
11088shlibpath_var=$shlibpath_var
11089
11090# Is shlibpath searched before the hard-coded library search path?
11091shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11092
11093# How to hardcode a shared library path into an executable.
11094hardcode_action=$hardcode_action
11095
11096# Whether we should hardcode library paths into libraries.
11097hardcode_into_libs=$hardcode_into_libs
11098
11099# Flag to hardcode \$libdir into a binary during linking.
11100# This must work even if \$libdir does not exist.
11101hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11102
11103# If ld is used when linking, flag to hardcode \$libdir into
11104# a binary during linking. This must work even if \$libdir does
11105# not exist.
11106hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11107
11108# Whether we need a single -rpath flag with a separated argument.
11109hardcode_libdir_separator=$lt_hardcode_libdir_separator
11110
11111# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11112# resulting binary.
11113hardcode_direct=$hardcode_direct
11114
11115# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11116# resulting binary.
11117hardcode_minus_L=$hardcode_minus_L
11118
11119# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11120# the resulting binary.
11121hardcode_shlibpath_var=$hardcode_shlibpath_var
11122
11123# Set to yes if building a shared library automatically hardcodes DIR into the library
11124# and all subsequent libraries and executables linked against it.
11125hardcode_automatic=$hardcode_automatic
11126
11127# Variables whose values should be saved in libtool wrapper scripts and
11128# restored at relink time.
11129variables_saved_for_relink="$variables_saved_for_relink"
11130
11131# Whether libtool must link a program against all its dependency libraries.
11132link_all_deplibs=$link_all_deplibs
11133
11134# Compile-time system search path for libraries
11135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11136
11137# Run-time system search path for libraries
11138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11139
11140# Fix the shell variable \$srcfile for the compiler.
11141fix_srcfile_path=$lt_fix_srcfile_path
11142
11143# Set to yes if exported symbols are required.
11144always_export_symbols=$always_export_symbols
11145
11146# The commands to list exported symbols.
11147export_symbols_cmds=$lt_export_symbols_cmds
11148
11149# The commands to extract the exported symbol list from a shared archive.
11150extract_expsyms_cmds=$lt_extract_expsyms_cmds
11151
11152# Symbols that should not be listed in the preloaded symbols.
11153exclude_expsyms=$lt_exclude_expsyms
11154
11155# Symbols that must always be exported.
11156include_expsyms=$lt_include_expsyms
11157
11158# ### END LIBTOOL CONFIG
11159
11160__EOF__
11161
11162
11163  case $host_os in
11164  aix3*)
11165    cat <<\EOF >> "$cfgfile"
11166
11167# AIX sometimes has problems with the GCC collect2 program.  For some
11168# reason, if we set the COLLECT_NAMES environment variable, the problems
11169# vanish in a puff of smoke.
11170if test "X${COLLECT_NAMES+set}" != Xset; then
11171  COLLECT_NAMES=
11172  export COLLECT_NAMES
11173fi
11174EOF
11175    ;;
11176  esac
11177
11178  # We use sed instead of cat because bash on DJGPP gets confused if
11179  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11180  # text mode, it properly converts lines to CR/LF.  This bash problem
11181  # is reportedly fixed, but why not run on old versions too?
11182  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11183
11184  mv -f "$cfgfile" "$ofile" || \
11185    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11186  chmod +x "$ofile"
11187
11188else
11189  # If there is no Makefile yet, we rely on a make rule to execute
11190  # `config.status --recheck' to rerun these tests and create the
11191  # libtool script then.
11192  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11193  if test -f "$ltmain_in"; then
11194    test -f Makefile && make "$ltmain"
11195  fi
11196fi
11197
11198
11199ac_ext=c
11200ac_cpp='$CPP $CPPFLAGS'
11201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11203ac_compiler_gnu=$ac_cv_c_compiler_gnu
11204
11205CC="$lt_save_CC"
11206
11207
11208# Check whether --with-tags was given.
11209if test "${with_tags+set}" = set; then
11210  withval=$with_tags; tagnames="$withval"
11211fi
11212
11213
11214if test -f "$ltmain" && test -n "$tagnames"; then
11215  if test ! -f "${ofile}"; then
11216    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11217$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11218  fi
11219
11220  if test -z "$LTCC"; then
11221    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11222    if test -z "$LTCC"; then
11223      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11224$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11225    else
11226      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11227$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11228    fi
11229  fi
11230  if test -z "$LTCFLAGS"; then
11231    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11232  fi
11233
11234  # Extract list of available tagged configurations in $ofile.
11235  # Note that this assumes the entire list is on one line.
11236  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11237
11238  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11239  for tagname in $tagnames; do
11240    IFS="$lt_save_ifs"
11241    # Check whether tagname contains only valid characters
11242    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11243    "") ;;
11244    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11245$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11246   { (exit 1); exit 1; }; }
11247	;;
11248    esac
11249
11250    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11251    then
11252      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11253$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11254   { (exit 1); exit 1; }; }
11255    fi
11256
11257    # Update the list of available tags.
11258    if test -n "$tagname"; then
11259      echo appending configuration tag \"$tagname\" to $ofile
11260
11261      case $tagname in
11262      CXX)
11263	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11264	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11265	    (test "X$CXX" != "Xg++"))) ; then
11266	  ac_ext=cpp
11267ac_cpp='$CXXCPP $CPPFLAGS'
11268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11271
11272
11273
11274
11275archive_cmds_need_lc_CXX=no
11276allow_undefined_flag_CXX=
11277always_export_symbols_CXX=no
11278archive_expsym_cmds_CXX=
11279export_dynamic_flag_spec_CXX=
11280hardcode_direct_CXX=no
11281hardcode_libdir_flag_spec_CXX=
11282hardcode_libdir_flag_spec_ld_CXX=
11283hardcode_libdir_separator_CXX=
11284hardcode_minus_L_CXX=no
11285hardcode_shlibpath_var_CXX=unsupported
11286hardcode_automatic_CXX=no
11287module_cmds_CXX=
11288module_expsym_cmds_CXX=
11289link_all_deplibs_CXX=unknown
11290old_archive_cmds_CXX=$old_archive_cmds
11291no_undefined_flag_CXX=
11292whole_archive_flag_spec_CXX=
11293enable_shared_with_static_runtimes_CXX=no
11294
11295# Dependencies to place before and after the object being linked:
11296predep_objects_CXX=
11297postdep_objects_CXX=
11298predeps_CXX=
11299postdeps_CXX=
11300compiler_lib_search_path_CXX=
11301compiler_lib_search_dirs_CXX=
11302
11303# Source file extension for C++ test sources.
11304ac_ext=cpp
11305
11306# Object file extension for compiled C++ test sources.
11307objext=o
11308objext_CXX=$objext
11309
11310# Code to be used in simple compile tests
11311lt_simple_compile_test_code="int some_variable = 0;"
11312
11313# Code to be used in simple link tests
11314lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11315
11316# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11317
11318# If no C compiler was specified, use CC.
11319LTCC=${LTCC-"$CC"}
11320
11321# If no C compiler flags were specified, use CFLAGS.
11322LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11323
11324# Allow CC to be a program name with arguments.
11325compiler=$CC
11326
11327
11328# save warnings/boilerplate of simple test code
11329ac_outfile=conftest.$ac_objext
11330echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11331eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11332_lt_compiler_boilerplate=`cat conftest.err`
11333$rm conftest*
11334
11335ac_outfile=conftest.$ac_objext
11336echo "$lt_simple_link_test_code" >conftest.$ac_ext
11337eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11338_lt_linker_boilerplate=`cat conftest.err`
11339$rm -r conftest*
11340
11341
11342# Allow CC to be a program name with arguments.
11343lt_save_CC=$CC
11344lt_save_LD=$LD
11345lt_save_GCC=$GCC
11346GCC=$GXX
11347lt_save_with_gnu_ld=$with_gnu_ld
11348lt_save_path_LD=$lt_cv_path_LD
11349if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11350  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11351else
11352  $as_unset lt_cv_prog_gnu_ld
11353fi
11354if test -n "${lt_cv_path_LDCXX+set}"; then
11355  lt_cv_path_LD=$lt_cv_path_LDCXX
11356else
11357  $as_unset lt_cv_path_LD
11358fi
11359test -z "${LDCXX+set}" || LD=$LDCXX
11360CC=${CXX-"c++"}
11361compiler=$CC
11362compiler_CXX=$CC
11363for cc_temp in $compiler""; do
11364  case $cc_temp in
11365    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11366    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11367    \-*) ;;
11368    *) break;;
11369  esac
11370done
11371cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11372
11373
11374# We don't want -fno-exception wen compiling C++ code, so set the
11375# no_builtin_flag separately
11376if test "$GXX" = yes; then
11377  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11378else
11379  lt_prog_compiler_no_builtin_flag_CXX=
11380fi
11381
11382if test "$GXX" = yes; then
11383  # Set up default GNU C++ configuration
11384
11385
11386# Check whether --with-gnu-ld was given.
11387if test "${with_gnu_ld+set}" = set; then
11388  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11389else
11390  with_gnu_ld=no
11391fi
11392
11393ac_prog=ld
11394if test "$GCC" = yes; then
11395  # Check if gcc -print-prog-name=ld gives a path.
11396  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11397$as_echo_n "checking for ld used by $CC... " >&6; }
11398  case $host in
11399  *-*-mingw*)
11400    # gcc leaves a trailing carriage return which upsets mingw
11401    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11402  *)
11403    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11404  esac
11405  case $ac_prog in
11406    # Accept absolute paths.
11407    [\\/]* | ?:[\\/]*)
11408      re_direlt='/[^/][^/]*/\.\./'
11409      # Canonicalize the pathname of ld
11410      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11411      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11412	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11413      done
11414      test -z "$LD" && LD="$ac_prog"
11415      ;;
11416  "")
11417    # If it fails, then pretend we aren't using GCC.
11418    ac_prog=ld
11419    ;;
11420  *)
11421    # If it is relative, then search for the first ld in PATH.
11422    with_gnu_ld=unknown
11423    ;;
11424  esac
11425elif test "$with_gnu_ld" = yes; then
11426  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11427$as_echo_n "checking for GNU ld... " >&6; }
11428else
11429  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11430$as_echo_n "checking for non-GNU ld... " >&6; }
11431fi
11432if test "${lt_cv_path_LD+set}" = set; then
11433  $as_echo_n "(cached) " >&6
11434else
11435  if test -z "$LD"; then
11436  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11437  for ac_dir in $PATH; do
11438    IFS="$lt_save_ifs"
11439    test -z "$ac_dir" && ac_dir=.
11440    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11441      lt_cv_path_LD="$ac_dir/$ac_prog"
11442      # Check to see if the program is GNU ld.  I'd rather use --version,
11443      # but apparently some variants of GNU ld only accept -v.
11444      # Break only if it was the GNU/non-GNU ld that we prefer.
11445      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11446      *GNU* | *'with BFD'*)
11447	test "$with_gnu_ld" != no && break
11448	;;
11449      *)
11450	test "$with_gnu_ld" != yes && break
11451	;;
11452      esac
11453    fi
11454  done
11455  IFS="$lt_save_ifs"
11456else
11457  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11458fi
11459fi
11460
11461LD="$lt_cv_path_LD"
11462if test -n "$LD"; then
11463  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11464$as_echo "$LD" >&6; }
11465else
11466  { $as_echo "$as_me:$LINENO: result: no" >&5
11467$as_echo "no" >&6; }
11468fi
11469test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11470$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11471   { (exit 1); exit 1; }; }
11472{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11473$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11474if test "${lt_cv_prog_gnu_ld+set}" = set; then
11475  $as_echo_n "(cached) " >&6
11476else
11477  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11478case `$LD -v 2>&1 </dev/null` in
11479*GNU* | *'with BFD'*)
11480  lt_cv_prog_gnu_ld=yes
11481  ;;
11482*)
11483  lt_cv_prog_gnu_ld=no
11484  ;;
11485esac
11486fi
11487{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11488$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11489with_gnu_ld=$lt_cv_prog_gnu_ld
11490
11491
11492
11493  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11494  # archiving commands below assume that GNU ld is being used.
11495  if test "$with_gnu_ld" = yes; then
11496    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11497    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'
11498
11499    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11500    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11501
11502    # If archive_cmds runs LD, not CC, wlarc should be empty
11503    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11504    #     investigate it a little bit more. (MM)
11505    wlarc='${wl}'
11506
11507    # ancient GNU ld didn't support --whole-archive et. al.
11508    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11509	grep 'no-whole-archive' > /dev/null; then
11510      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11511    else
11512      whole_archive_flag_spec_CXX=
11513    fi
11514  else
11515    with_gnu_ld=no
11516    wlarc=
11517
11518    # A generic and very simple default shared library creation
11519    # command for GNU C++ for the case where it uses the native
11520    # linker, instead of GNU ld.  If possible, this setting should
11521    # overridden to take advantage of the native linker features on
11522    # the platform it is being used on.
11523    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11524  fi
11525
11526  # Commands to make compiler produce verbose output that lists
11527  # what "hidden" libraries, object files and flags are used when
11528  # linking a shared library.
11529  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11530
11531else
11532  GXX=no
11533  with_gnu_ld=no
11534  wlarc=
11535fi
11536
11537# PORTME: fill in a description of your system's C++ link characteristics
11538{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11539$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11540ld_shlibs_CXX=yes
11541case $host_os in
11542  aix3*)
11543    # FIXME: insert proper C++ library support
11544    ld_shlibs_CXX=no
11545    ;;
11546  aix[4-9]*)
11547    if test "$host_cpu" = ia64; then
11548      # On IA64, the linker does run time linking by default, so we don't
11549      # have to do anything special.
11550      aix_use_runtimelinking=no
11551      exp_sym_flag='-Bexport'
11552      no_entry_flag=""
11553    else
11554      aix_use_runtimelinking=no
11555
11556      # Test if we are trying to use run time linking or normal
11557      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11558      # need to do runtime linking.
11559      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11560	for ld_flag in $LDFLAGS; do
11561	  case $ld_flag in
11562	  *-brtl*)
11563	    aix_use_runtimelinking=yes
11564	    break
11565	    ;;
11566	  esac
11567	done
11568	;;
11569      esac
11570
11571      exp_sym_flag='-bexport'
11572      no_entry_flag='-bnoentry'
11573    fi
11574
11575    # When large executables or shared objects are built, AIX ld can
11576    # have problems creating the table of contents.  If linking a library
11577    # or program results in "error TOC overflow" add -mminimal-toc to
11578    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11579    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11580
11581    archive_cmds_CXX=''
11582    hardcode_direct_CXX=yes
11583    hardcode_libdir_separator_CXX=':'
11584    link_all_deplibs_CXX=yes
11585
11586    if test "$GXX" = yes; then
11587      case $host_os in aix4.[012]|aix4.[012].*)
11588      # We only want to do this on AIX 4.2 and lower, the check
11589      # below for broken collect2 doesn't work under 4.3+
11590	collect2name=`${CC} -print-prog-name=collect2`
11591	if test -f "$collect2name" && \
11592	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11593	then
11594	  # We have reworked collect2
11595	  :
11596	else
11597	  # We have old collect2
11598	  hardcode_direct_CXX=unsupported
11599	  # It fails to find uninstalled libraries when the uninstalled
11600	  # path is not listed in the libpath.  Setting hardcode_minus_L
11601	  # to unsupported forces relinking
11602	  hardcode_minus_L_CXX=yes
11603	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11604	  hardcode_libdir_separator_CXX=
11605	fi
11606	;;
11607      esac
11608      shared_flag='-shared'
11609      if test "$aix_use_runtimelinking" = yes; then
11610	shared_flag="$shared_flag "'${wl}-G'
11611      fi
11612    else
11613      # not using gcc
11614      if test "$host_cpu" = ia64; then
11615	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11616	# chokes on -Wl,-G. The following line is correct:
11617	shared_flag='-G'
11618      else
11619	if test "$aix_use_runtimelinking" = yes; then
11620	  shared_flag='${wl}-G'
11621	else
11622	  shared_flag='${wl}-bM:SRE'
11623	fi
11624      fi
11625    fi
11626
11627    # It seems that -bexpall does not export symbols beginning with
11628    # underscore (_), so it is better to generate a list of symbols to export.
11629    always_export_symbols_CXX=yes
11630    if test "$aix_use_runtimelinking" = yes; then
11631      # Warning - without using the other runtime loading flags (-brtl),
11632      # -berok will link without error, but may produce a broken library.
11633      allow_undefined_flag_CXX='-berok'
11634      # Determine the default libpath from the value encoded in an empty executable.
11635      cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h.  */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h.  */
11641
11642int
11643main ()
11644{
11645
11646  ;
11647  return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
11651if { (ac_try="$ac_link"
11652case "(($ac_try" in
11653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654  *) ac_try_echo=$ac_try;;
11655esac
11656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657$as_echo "$ac_try_echo") >&5
11658  (eval "$ac_link") 2>conftest.er1
11659  ac_status=$?
11660  grep -v '^ *+' conftest.er1 >conftest.err
11661  rm -f conftest.er1
11662  cat conftest.err >&5
11663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664  (exit $ac_status); } && {
11665	 test -z "$ac_cxx_werror_flag" ||
11666	 test ! -s conftest.err
11667       } && test -s conftest$ac_exeext && {
11668	 test "$cross_compiling" = yes ||
11669	 $as_test_x conftest$ac_exeext
11670       }; then
11671
11672lt_aix_libpath_sed='
11673    /Import File Strings/,/^$/ {
11674	/^0/ {
11675	    s/^0  *\(.*\)$/\1/
11676	    p
11677	}
11678    }'
11679aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680# Check for a 64-bit object if we didn't find anything.
11681if test -z "$aix_libpath"; then
11682  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683fi
11684else
11685  $as_echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
11688
11689fi
11690
11691rm -rf conftest.dSYM
11692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693      conftest$ac_exeext conftest.$ac_ext
11694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695
11696      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697
11698      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"
11699     else
11700      if test "$host_cpu" = ia64; then
11701	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11702	allow_undefined_flag_CXX="-z nodefs"
11703	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"
11704      else
11705	# Determine the default libpath from the value encoded in an empty executable.
11706	cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h.  */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h.  */
11712
11713int
11714main ()
11715{
11716
11717  ;
11718  return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext conftest$ac_exeext
11722if { (ac_try="$ac_link"
11723case "(($ac_try" in
11724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725  *) ac_try_echo=$ac_try;;
11726esac
11727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728$as_echo "$ac_try_echo") >&5
11729  (eval "$ac_link") 2>conftest.er1
11730  ac_status=$?
11731  grep -v '^ *+' conftest.er1 >conftest.err
11732  rm -f conftest.er1
11733  cat conftest.err >&5
11734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } && {
11736	 test -z "$ac_cxx_werror_flag" ||
11737	 test ! -s conftest.err
11738       } && test -s conftest$ac_exeext && {
11739	 test "$cross_compiling" = yes ||
11740	 $as_test_x conftest$ac_exeext
11741       }; then
11742
11743lt_aix_libpath_sed='
11744    /Import File Strings/,/^$/ {
11745	/^0/ {
11746	    s/^0  *\(.*\)$/\1/
11747	    p
11748	}
11749    }'
11750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751# Check for a 64-bit object if we didn't find anything.
11752if test -z "$aix_libpath"; then
11753  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11754fi
11755else
11756  $as_echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760fi
11761
11762rm -rf conftest.dSYM
11763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764      conftest$ac_exeext conftest.$ac_ext
11765if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11766
11767	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11768	# Warning - without using the other run time loading flags,
11769	# -berok will link without error, but may produce a broken library.
11770	no_undefined_flag_CXX=' ${wl}-bernotok'
11771	allow_undefined_flag_CXX=' ${wl}-berok'
11772	# Exported symbols can be pulled into shared objects from archives
11773	whole_archive_flag_spec_CXX='$convenience'
11774	archive_cmds_need_lc_CXX=yes
11775	# This is similar to how AIX traditionally builds its shared libraries.
11776	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'
11777      fi
11778    fi
11779    ;;
11780
11781  beos*)
11782    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11783      allow_undefined_flag_CXX=unsupported
11784      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11785      # support --undefined.  This deserves some investigation.  FIXME
11786      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787    else
11788      ld_shlibs_CXX=no
11789    fi
11790    ;;
11791
11792  chorus*)
11793    case $cc_basename in
11794      *)
11795	# FIXME: insert proper C++ library support
11796	ld_shlibs_CXX=no
11797	;;
11798    esac
11799    ;;
11800
11801  cygwin* | mingw* | pw32*)
11802    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11803    # as there is no search path for DLLs.
11804    hardcode_libdir_flag_spec_CXX='-L$libdir'
11805    allow_undefined_flag_CXX=unsupported
11806    always_export_symbols_CXX=no
11807    enable_shared_with_static_runtimes_CXX=yes
11808
11809    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11810      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'
11811      # If the export-symbols file already is a .def file (1st line
11812      # is EXPORTS), use it as is; otherwise, prepend...
11813      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11814	cp $export_symbols $output_objdir/$soname.def;
11815      else
11816	echo EXPORTS > $output_objdir/$soname.def;
11817	cat $export_symbols >> $output_objdir/$soname.def;
11818      fi~
11819      $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'
11820    else
11821      ld_shlibs_CXX=no
11822    fi
11823  ;;
11824      darwin* | rhapsody*)
11825      archive_cmds_need_lc_CXX=no
11826      hardcode_direct_CXX=no
11827      hardcode_automatic_CXX=yes
11828      hardcode_shlibpath_var_CXX=unsupported
11829      whole_archive_flag_spec_CXX=''
11830      link_all_deplibs_CXX=yes
11831      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11832      if test "$GXX" = yes ; then
11833      output_verbose_link_cmd='echo'
11834      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}"
11835      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11836      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}"
11837      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}"
11838      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11839        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}"
11840        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}"
11841      fi
11842      else
11843      case $cc_basename in
11844        xlc*)
11845         output_verbose_link_cmd='echo'
11846          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'
11847          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11848          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11849          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}'
11850          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}'
11851          ;;
11852       *)
11853         ld_shlibs_CXX=no
11854          ;;
11855      esac
11856      fi
11857        ;;
11858
11859  dgux*)
11860    case $cc_basename in
11861      ec++*)
11862	# FIXME: insert proper C++ library support
11863	ld_shlibs_CXX=no
11864	;;
11865      ghcx*)
11866	# Green Hills C++ Compiler
11867	# FIXME: insert proper C++ library support
11868	ld_shlibs_CXX=no
11869	;;
11870      *)
11871	# FIXME: insert proper C++ library support
11872	ld_shlibs_CXX=no
11873	;;
11874    esac
11875    ;;
11876  freebsd[12]*)
11877    # C++ shared libraries reported to be fairly broken before switch to ELF
11878    ld_shlibs_CXX=no
11879    ;;
11880  freebsd-elf*)
11881    archive_cmds_need_lc_CXX=no
11882    ;;
11883  freebsd* | dragonfly*)
11884    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11885    # conventions
11886    ld_shlibs_CXX=yes
11887    ;;
11888  gnu*)
11889    ;;
11890  hpux9*)
11891    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11892    hardcode_libdir_separator_CXX=:
11893    export_dynamic_flag_spec_CXX='${wl}-E'
11894    hardcode_direct_CXX=yes
11895    hardcode_minus_L_CXX=yes # Not in the search PATH,
11896				# but as the default
11897				# location of the library.
11898
11899    case $cc_basename in
11900    CC*)
11901      # FIXME: insert proper C++ library support
11902      ld_shlibs_CXX=no
11903      ;;
11904    aCC*)
11905      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'
11906      # Commands to make compiler produce verbose output that lists
11907      # what "hidden" libraries, object files and flags are used when
11908      # linking a shared library.
11909      #
11910      # There doesn't appear to be a way to prevent this compiler from
11911      # explicitly linking system object files so we need to strip them
11912      # from the output so that they don't get included in the library
11913      # dependencies.
11914      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'
11915      ;;
11916    *)
11917      if test "$GXX" = yes; then
11918        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'
11919      else
11920        # FIXME: insert proper C++ library support
11921        ld_shlibs_CXX=no
11922      fi
11923      ;;
11924    esac
11925    ;;
11926  hpux10*|hpux11*)
11927    if test $with_gnu_ld = no; then
11928      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11929      hardcode_libdir_separator_CXX=:
11930
11931      case $host_cpu in
11932      hppa*64*|ia64*) ;;
11933      *)
11934	export_dynamic_flag_spec_CXX='${wl}-E'
11935        ;;
11936      esac
11937    fi
11938    case $host_cpu in
11939    hppa*64*|ia64*)
11940      hardcode_direct_CXX=no
11941      hardcode_shlibpath_var_CXX=no
11942      ;;
11943    *)
11944      hardcode_direct_CXX=yes
11945      hardcode_minus_L_CXX=yes # Not in the search PATH,
11946					      # but as the default
11947					      # location of the library.
11948      ;;
11949    esac
11950
11951    case $cc_basename in
11952      CC*)
11953	# FIXME: insert proper C++ library support
11954	ld_shlibs_CXX=no
11955	;;
11956      aCC*)
11957	case $host_cpu in
11958	hppa*64*)
11959	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960	  ;;
11961	ia64*)
11962	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11963	  ;;
11964	*)
11965	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966	  ;;
11967	esac
11968	# Commands to make compiler produce verbose output that lists
11969	# what "hidden" libraries, object files and flags are used when
11970	# linking a shared library.
11971	#
11972	# There doesn't appear to be a way to prevent this compiler from
11973	# explicitly linking system object files so we need to strip them
11974	# from the output so that they don't get included in the library
11975	# dependencies.
11976	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'
11977	;;
11978      *)
11979	if test "$GXX" = yes; then
11980	  if test $with_gnu_ld = no; then
11981	    case $host_cpu in
11982	    hppa*64*)
11983	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11984	      ;;
11985	    ia64*)
11986	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11987	      ;;
11988	    *)
11989	      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'
11990	      ;;
11991	    esac
11992	  fi
11993	else
11994	  # FIXME: insert proper C++ library support
11995	  ld_shlibs_CXX=no
11996	fi
11997	;;
11998    esac
11999    ;;
12000  interix[3-9]*)
12001    hardcode_direct_CXX=no
12002    hardcode_shlibpath_var_CXX=no
12003    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12004    export_dynamic_flag_spec_CXX='${wl}-E'
12005    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12006    # Instead, shared libraries are loaded at an image base (0x10000000 by
12007    # default) and relocated if they conflict, which is a slow very memory
12008    # consuming and fragmenting process.  To avoid this, we pick a random,
12009    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12010    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12011    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'
12012    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'
12013    ;;
12014  irix5* | irix6*)
12015    case $cc_basename in
12016      CC*)
12017	# SGI C++
12018	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'
12019
12020	# Archives containing C++ object files must be created using
12021	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12022	# necessary to make sure instantiated templates are included
12023	# in the archive.
12024	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12025	;;
12026      *)
12027	if test "$GXX" = yes; then
12028	  if test "$with_gnu_ld" = no; then
12029	    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'
12030	  else
12031	    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'
12032	  fi
12033	fi
12034	link_all_deplibs_CXX=yes
12035	;;
12036    esac
12037    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12038    hardcode_libdir_separator_CXX=:
12039    ;;
12040  linux* | k*bsd*-gnu)
12041    case $cc_basename in
12042      KCC*)
12043	# Kuck and Associates, Inc. (KAI) C++ Compiler
12044
12045	# KCC will only create a shared library if the output file
12046	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12047	# to its proper name (with version) after linking.
12048	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'
12049	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'
12050	# Commands to make compiler produce verbose output that lists
12051	# what "hidden" libraries, object files and flags are used when
12052	# linking a shared library.
12053	#
12054	# There doesn't appear to be a way to prevent this compiler from
12055	# explicitly linking system object files so we need to strip them
12056	# from the output so that they don't get included in the library
12057	# dependencies.
12058	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'
12059
12060	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12061	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12062
12063	# Archives containing C++ object files must be created using
12064	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12065	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12066	;;
12067      icpc*)
12068	# Intel C++
12069	with_gnu_ld=yes
12070	# version 8.0 and above of icpc choke on multiply defined symbols
12071	# if we add $predep_objects and $postdep_objects, however 7.1 and
12072	# earlier do not add the objects themselves.
12073	case `$CC -V 2>&1` in
12074	*"Version 7."*)
12075  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12076  	  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'
12077	  ;;
12078	*)  # Version 8.0 or newer
12079	  tmp_idyn=
12080	  case $host_cpu in
12081	    ia64*) tmp_idyn=' -i_dynamic';;
12082	  esac
12083  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084	  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'
12085	  ;;
12086	esac
12087	archive_cmds_need_lc_CXX=no
12088	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12089	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12090	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12091	;;
12092      pgCC* | pgcpp*)
12093        # Portland Group C++ compiler
12094	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12095  	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'
12096
12097	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12098	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12099	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'
12100        ;;
12101      cxx*)
12102	# Compaq C++
12103	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12104	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'
12105
12106	runpath_var=LD_RUN_PATH
12107	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12108	hardcode_libdir_separator_CXX=:
12109
12110	# Commands to make compiler produce verbose output that lists
12111	# what "hidden" libraries, object files and flags are used when
12112	# linking a shared library.
12113	#
12114	# There doesn't appear to be a way to prevent this compiler from
12115	# explicitly linking system object files so we need to strip them
12116	# from the output so that they don't get included in the library
12117	# dependencies.
12118	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'
12119	;;
12120      *)
12121	case `$CC -V 2>&1 | sed 5q` in
12122	*Sun\ C*)
12123	  # Sun C++ 5.9
12124	  no_undefined_flag_CXX=' -zdefs'
12125	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12126	  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'
12127	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12128	  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'
12129
12130	  # Not sure whether something based on
12131	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12132	  # would be better.
12133	  output_verbose_link_cmd='echo'
12134
12135	  # Archives containing C++ object files must be created using
12136	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12137	  # necessary to make sure instantiated templates are included
12138	  # in the archive.
12139	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12140	  ;;
12141	esac
12142	;;
12143    esac
12144    ;;
12145  lynxos*)
12146    # FIXME: insert proper C++ library support
12147    ld_shlibs_CXX=no
12148    ;;
12149  m88k*)
12150    # FIXME: insert proper C++ library support
12151    ld_shlibs_CXX=no
12152    ;;
12153  mvs*)
12154    case $cc_basename in
12155      cxx*)
12156	# FIXME: insert proper C++ library support
12157	ld_shlibs_CXX=no
12158	;;
12159      *)
12160	# FIXME: insert proper C++ library support
12161	ld_shlibs_CXX=no
12162	;;
12163    esac
12164    ;;
12165  netbsd*)
12166    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12167      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12168      wlarc=
12169      hardcode_libdir_flag_spec_CXX='-R$libdir'
12170      hardcode_direct_CXX=yes
12171      hardcode_shlibpath_var_CXX=no
12172    fi
12173    # Workaround some broken pre-1.5 toolchains
12174    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12175    ;;
12176  openbsd2*)
12177    # C++ shared libraries are fairly broken
12178    ld_shlibs_CXX=no
12179    ;;
12180  openbsd*)
12181    if test -f /usr/libexec/ld.so; then
12182      hardcode_direct_CXX=yes
12183      hardcode_shlibpath_var_CXX=no
12184      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12185      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12186      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12187	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12188	export_dynamic_flag_spec_CXX='${wl}-E'
12189	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12190      fi
12191      output_verbose_link_cmd='echo'
12192    else
12193      ld_shlibs_CXX=no
12194    fi
12195    ;;
12196  osf3*)
12197    case $cc_basename in
12198      KCC*)
12199	# Kuck and Associates, Inc. (KAI) C++ Compiler
12200
12201	# KCC will only create a shared library if the output file
12202	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12203	# to its proper name (with version) after linking.
12204	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'
12205
12206	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12207	hardcode_libdir_separator_CXX=:
12208
12209	# Archives containing C++ object files must be created using
12210	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12211	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12212
12213	;;
12214      RCC*)
12215	# Rational C++ 2.4.1
12216	# FIXME: insert proper C++ library support
12217	ld_shlibs_CXX=no
12218	;;
12219      cxx*)
12220	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12221	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'
12222
12223	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12224	hardcode_libdir_separator_CXX=:
12225
12226	# Commands to make compiler produce verbose output that lists
12227	# what "hidden" libraries, object files and flags are used when
12228	# linking a shared library.
12229	#
12230	# There doesn't appear to be a way to prevent this compiler from
12231	# explicitly linking system object files so we need to strip them
12232	# from the output so that they don't get included in the library
12233	# dependencies.
12234	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'
12235	;;
12236      *)
12237	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12238	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12239	  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'
12240
12241	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12242	  hardcode_libdir_separator_CXX=:
12243
12244	  # Commands to make compiler produce verbose output that lists
12245	  # what "hidden" libraries, object files and flags are used when
12246	  # linking a shared library.
12247	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12248
12249	else
12250	  # FIXME: insert proper C++ library support
12251	  ld_shlibs_CXX=no
12252	fi
12253	;;
12254    esac
12255    ;;
12256  osf4* | osf5*)
12257    case $cc_basename in
12258      KCC*)
12259	# Kuck and Associates, Inc. (KAI) C++ Compiler
12260
12261	# KCC will only create a shared library if the output file
12262	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12263	# to its proper name (with version) after linking.
12264	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'
12265
12266	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12267	hardcode_libdir_separator_CXX=:
12268
12269	# Archives containing C++ object files must be created using
12270	# the KAI C++ compiler.
12271	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12272	;;
12273      RCC*)
12274	# Rational C++ 2.4.1
12275	# FIXME: insert proper C++ library support
12276	ld_shlibs_CXX=no
12277	;;
12278      cxx*)
12279	allow_undefined_flag_CXX=' -expect_unresolved \*'
12280	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'
12281	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12282	  echo "-hidden">> $lib.exp~
12283	  $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~
12284	  $rm $lib.exp'
12285
12286	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12287	hardcode_libdir_separator_CXX=:
12288
12289	# Commands to make compiler produce verbose output that lists
12290	# what "hidden" libraries, object files and flags are used when
12291	# linking a shared library.
12292	#
12293	# There doesn't appear to be a way to prevent this compiler from
12294	# explicitly linking system object files so we need to strip them
12295	# from the output so that they don't get included in the library
12296	# dependencies.
12297	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'
12298	;;
12299      *)
12300	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12301	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12302	 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'
12303
12304	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12305	  hardcode_libdir_separator_CXX=:
12306
12307	  # Commands to make compiler produce verbose output that lists
12308	  # what "hidden" libraries, object files and flags are used when
12309	  # linking a shared library.
12310	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12311
12312	else
12313	  # FIXME: insert proper C++ library support
12314	  ld_shlibs_CXX=no
12315	fi
12316	;;
12317    esac
12318    ;;
12319  psos*)
12320    # FIXME: insert proper C++ library support
12321    ld_shlibs_CXX=no
12322    ;;
12323  sunos4*)
12324    case $cc_basename in
12325      CC*)
12326	# Sun C++ 4.x
12327	# FIXME: insert proper C++ library support
12328	ld_shlibs_CXX=no
12329	;;
12330      lcc*)
12331	# Lucid
12332	# FIXME: insert proper C++ library support
12333	ld_shlibs_CXX=no
12334	;;
12335      *)
12336	# FIXME: insert proper C++ library support
12337	ld_shlibs_CXX=no
12338	;;
12339    esac
12340    ;;
12341  solaris*)
12342    case $cc_basename in
12343      CC*)
12344	# Sun C++ 4.2, 5.x and Centerline C++
12345        archive_cmds_need_lc_CXX=yes
12346	no_undefined_flag_CXX=' -zdefs'
12347	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12348	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12349	$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'
12350
12351	hardcode_libdir_flag_spec_CXX='-R$libdir'
12352	hardcode_shlibpath_var_CXX=no
12353	case $host_os in
12354	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12355	  *)
12356	    # The compiler driver will combine and reorder linker options,
12357	    # but understands `-z linker_flag'.
12358	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12359	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12360	    ;;
12361	esac
12362	link_all_deplibs_CXX=yes
12363
12364	output_verbose_link_cmd='echo'
12365
12366	# Archives containing C++ object files must be created using
12367	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12368	# necessary to make sure instantiated templates are included
12369	# in the archive.
12370	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12371	;;
12372      gcx*)
12373	# Green Hills C++ Compiler
12374	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12375
12376	# The C++ compiler must be used to create the archive.
12377	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12378	;;
12379      *)
12380	# GNU C++ compiler with Solaris linker
12381	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12382	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12383	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12384	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12385	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12386		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12387
12388	    # Commands to make compiler produce verbose output that lists
12389	    # what "hidden" libraries, object files and flags are used when
12390	    # linking a shared library.
12391	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12392	  else
12393	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12394	    # platform.
12395	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12396	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12397		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12398
12399	    # Commands to make compiler produce verbose output that lists
12400	    # what "hidden" libraries, object files and flags are used when
12401	    # linking a shared library.
12402	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12403	  fi
12404
12405	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12406	  case $host_os in
12407	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12408	  *)
12409	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12410	    ;;
12411	  esac
12412	fi
12413	;;
12414    esac
12415    ;;
12416  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12417    no_undefined_flag_CXX='${wl}-z,text'
12418    archive_cmds_need_lc_CXX=no
12419    hardcode_shlibpath_var_CXX=no
12420    runpath_var='LD_RUN_PATH'
12421
12422    case $cc_basename in
12423      CC*)
12424	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426	;;
12427      *)
12428	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12429	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12430	;;
12431    esac
12432    ;;
12433  sysv5* | sco3.2v5* | sco5v6*)
12434    # Note: We can NOT use -z defs as we might desire, because we do not
12435    # link with -lc, and that would cause any symbols used from libc to
12436    # always be unresolved, which means just about no library would
12437    # ever link correctly.  If we're not using GNU ld we use -z text
12438    # though, which does catch some bad symbols but isn't as heavy-handed
12439    # as -z defs.
12440    # For security reasons, it is highly recommended that you always
12441    # use absolute paths for naming shared libraries, and exclude the
12442    # DT_RUNPATH tag from executables and libraries.  But doing so
12443    # requires that you compile everything twice, which is a pain.
12444    # So that behaviour is only enabled if SCOABSPATH is set to a
12445    # non-empty value in the environment.  Most likely only useful for
12446    # creating official distributions of packages.
12447    # This is a hack until libtool officially supports absolute path
12448    # names for shared libraries.
12449    no_undefined_flag_CXX='${wl}-z,text'
12450    allow_undefined_flag_CXX='${wl}-z,nodefs'
12451    archive_cmds_need_lc_CXX=no
12452    hardcode_shlibpath_var_CXX=no
12453    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12454    hardcode_libdir_separator_CXX=':'
12455    link_all_deplibs_CXX=yes
12456    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12457    runpath_var='LD_RUN_PATH'
12458
12459    case $cc_basename in
12460      CC*)
12461	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12463	;;
12464      *)
12465	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12466	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12467	;;
12468    esac
12469    ;;
12470  tandem*)
12471    case $cc_basename in
12472      NCC*)
12473	# NonStop-UX NCC 3.20
12474	# FIXME: insert proper C++ library support
12475	ld_shlibs_CXX=no
12476	;;
12477      *)
12478	# FIXME: insert proper C++ library support
12479	ld_shlibs_CXX=no
12480	;;
12481    esac
12482    ;;
12483  vxworks*)
12484    # FIXME: insert proper C++ library support
12485    ld_shlibs_CXX=no
12486    ;;
12487  *)
12488    # FIXME: insert proper C++ library support
12489    ld_shlibs_CXX=no
12490    ;;
12491esac
12492{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12493$as_echo "$ld_shlibs_CXX" >&6; }
12494test "$ld_shlibs_CXX" = no && can_build_shared=no
12495
12496GCC_CXX="$GXX"
12497LD_CXX="$LD"
12498
12499cat > conftest.$ac_ext <<EOF
12500class Foo
12501{
12502public:
12503  Foo (void) { a = 0; }
12504private:
12505  int a;
12506};
12507EOF
12508
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510  (eval $ac_compile) 2>&5
12511  ac_status=$?
12512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); }; then
12514  # Parse the compiler output and extract the necessary
12515  # objects, libraries and library flags.
12516
12517  # Sentinel used to keep track of whether or not we are before
12518  # the conftest object file.
12519  pre_test_object_deps_done=no
12520
12521  # The `*' in the case matches for architectures that use `case' in
12522  # $output_verbose_cmd can trigger glob expansion during the loop
12523  # eval without this substitution.
12524  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12525
12526  for p in `eval $output_verbose_link_cmd`; do
12527    case $p in
12528
12529    -L* | -R* | -l*)
12530       # Some compilers place space between "-{L,R}" and the path.
12531       # Remove the space.
12532       if test $p = "-L" \
12533	  || test $p = "-R"; then
12534	 prev=$p
12535	 continue
12536       else
12537	 prev=
12538       fi
12539
12540       if test "$pre_test_object_deps_done" = no; then
12541	 case $p in
12542	 -L* | -R*)
12543	   # Internal compiler library paths should come after those
12544	   # provided the user.  The postdeps already come after the
12545	   # user supplied libs so there is no need to process them.
12546	   if test -z "$compiler_lib_search_path_CXX"; then
12547	     compiler_lib_search_path_CXX="${prev}${p}"
12548	   else
12549	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12550	   fi
12551	   ;;
12552	 # The "-l" case would never come before the object being
12553	 # linked, so don't bother handling this case.
12554	 esac
12555       else
12556	 if test -z "$postdeps_CXX"; then
12557	   postdeps_CXX="${prev}${p}"
12558	 else
12559	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12560	 fi
12561       fi
12562       ;;
12563
12564    *.$objext)
12565       # This assumes that the test object file only shows up
12566       # once in the compiler output.
12567       if test "$p" = "conftest.$objext"; then
12568	 pre_test_object_deps_done=yes
12569	 continue
12570       fi
12571
12572       if test "$pre_test_object_deps_done" = no; then
12573	 if test -z "$predep_objects_CXX"; then
12574	   predep_objects_CXX="$p"
12575	 else
12576	   predep_objects_CXX="$predep_objects_CXX $p"
12577	 fi
12578       else
12579	 if test -z "$postdep_objects_CXX"; then
12580	   postdep_objects_CXX="$p"
12581	 else
12582	   postdep_objects_CXX="$postdep_objects_CXX $p"
12583	 fi
12584       fi
12585       ;;
12586
12587    *) ;; # Ignore the rest.
12588
12589    esac
12590  done
12591
12592  # Clean up.
12593  rm -f a.out a.exe
12594else
12595  echo "libtool.m4: error: problem compiling CXX test program"
12596fi
12597
12598$rm -f confest.$objext
12599
12600compiler_lib_search_dirs_CXX=
12601if test -n "$compiler_lib_search_path_CXX"; then
12602  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12603fi
12604
12605# PORTME: override above test on systems where it is broken
12606case $host_os in
12607interix[3-9]*)
12608  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12609  # hack all around it, let's just trust "g++" to DTRT.
12610  predep_objects_CXX=
12611  postdep_objects_CXX=
12612  postdeps_CXX=
12613  ;;
12614
12615linux*)
12616  case `$CC -V 2>&1 | sed 5q` in
12617  *Sun\ C*)
12618    # Sun C++ 5.9
12619    #
12620    # The more standards-conforming stlport4 library is
12621    # incompatible with the Cstd library. Avoid specifying
12622    # it if it's in CXXFLAGS. Ignore libCrun as
12623    # -library=stlport4 depends on it.
12624    case " $CXX $CXXFLAGS " in
12625    *" -library=stlport4 "*)
12626      solaris_use_stlport4=yes
12627      ;;
12628    esac
12629    if test "$solaris_use_stlport4" != yes; then
12630      postdeps_CXX='-library=Cstd -library=Crun'
12631    fi
12632    ;;
12633  esac
12634  ;;
12635
12636solaris*)
12637  case $cc_basename in
12638  CC*)
12639    # The more standards-conforming stlport4 library is
12640    # incompatible with the Cstd library. Avoid specifying
12641    # it if it's in CXXFLAGS. Ignore libCrun as
12642    # -library=stlport4 depends on it.
12643    case " $CXX $CXXFLAGS " in
12644    *" -library=stlport4 "*)
12645      solaris_use_stlport4=yes
12646      ;;
12647    esac
12648
12649    # Adding this requires a known-good setup of shared libraries for
12650    # Sun compiler versions before 5.6, else PIC objects from an old
12651    # archive will be linked into the output, leading to subtle bugs.
12652    if test "$solaris_use_stlport4" != yes; then
12653      postdeps_CXX='-library=Cstd -library=Crun'
12654    fi
12655    ;;
12656  esac
12657  ;;
12658esac
12659
12660case " $postdeps_CXX " in
12661*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12662esac
12663
12664lt_prog_compiler_wl_CXX=
12665lt_prog_compiler_pic_CXX=
12666lt_prog_compiler_static_CXX=
12667
12668{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12669$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12670
12671  # C++ specific cases for pic, static, wl, etc.
12672  if test "$GXX" = yes; then
12673    lt_prog_compiler_wl_CXX='-Wl,'
12674    lt_prog_compiler_static_CXX='-static'
12675
12676    case $host_os in
12677    aix*)
12678      # All AIX code is PIC.
12679      if test "$host_cpu" = ia64; then
12680	# AIX 5 now supports IA64 processor
12681	lt_prog_compiler_static_CXX='-Bstatic'
12682      fi
12683      ;;
12684    amigaos*)
12685      # FIXME: we need at least 68020 code to build shared libraries, but
12686      # adding the `-m68020' flag to GCC prevents building anything better,
12687      # like `-m68040'.
12688      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12689      ;;
12690    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12691      # PIC is the default for these OSes.
12692      ;;
12693    mingw* | cygwin* | os2* | pw32*)
12694      # This hack is so that the source file can tell whether it is being
12695      # built for inclusion in a dll (and should export symbols for example).
12696      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12697      # (--disable-auto-import) libraries
12698      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12699      ;;
12700    darwin* | rhapsody*)
12701      # PIC is the default on this platform
12702      # Common symbols not allowed in MH_DYLIB files
12703      lt_prog_compiler_pic_CXX='-fno-common'
12704      ;;
12705    *djgpp*)
12706      # DJGPP does not support shared libraries at all
12707      lt_prog_compiler_pic_CXX=
12708      ;;
12709    interix[3-9]*)
12710      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12711      # Instead, we relocate shared libraries at runtime.
12712      ;;
12713    sysv4*MP*)
12714      if test -d /usr/nec; then
12715	lt_prog_compiler_pic_CXX=-Kconform_pic
12716      fi
12717      ;;
12718    hpux*)
12719      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12720      # not for PA HP-UX.
12721      case $host_cpu in
12722      hppa*64*|ia64*)
12723	;;
12724      *)
12725	lt_prog_compiler_pic_CXX='-fPIC'
12726	;;
12727      esac
12728      ;;
12729    *)
12730      lt_prog_compiler_pic_CXX='-fPIC'
12731      ;;
12732    esac
12733  else
12734    case $host_os in
12735      aix[4-9]*)
12736	# All AIX code is PIC.
12737	if test "$host_cpu" = ia64; then
12738	  # AIX 5 now supports IA64 processor
12739	  lt_prog_compiler_static_CXX='-Bstatic'
12740	else
12741	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12742	fi
12743	;;
12744      chorus*)
12745	case $cc_basename in
12746	cxch68*)
12747	  # Green Hills C++ Compiler
12748	  # _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"
12749	  ;;
12750	esac
12751	;;
12752       darwin*)
12753         # PIC is the default on this platform
12754         # Common symbols not allowed in MH_DYLIB files
12755         case $cc_basename in
12756           xlc*)
12757           lt_prog_compiler_pic_CXX='-qnocommon'
12758           lt_prog_compiler_wl_CXX='-Wl,'
12759           ;;
12760         esac
12761       ;;
12762      dgux*)
12763	case $cc_basename in
12764	  ec++*)
12765	    lt_prog_compiler_pic_CXX='-KPIC'
12766	    ;;
12767	  ghcx*)
12768	    # Green Hills C++ Compiler
12769	    lt_prog_compiler_pic_CXX='-pic'
12770	    ;;
12771	  *)
12772	    ;;
12773	esac
12774	;;
12775      freebsd* | dragonfly*)
12776	# FreeBSD uses GNU C++
12777	;;
12778      hpux9* | hpux10* | hpux11*)
12779	case $cc_basename in
12780	  CC*)
12781	    lt_prog_compiler_wl_CXX='-Wl,'
12782	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12783	    if test "$host_cpu" != ia64; then
12784	      lt_prog_compiler_pic_CXX='+Z'
12785	    fi
12786	    ;;
12787	  aCC*)
12788	    lt_prog_compiler_wl_CXX='-Wl,'
12789	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12790	    case $host_cpu in
12791	    hppa*64*|ia64*)
12792	      # +Z the default
12793	      ;;
12794	    *)
12795	      lt_prog_compiler_pic_CXX='+Z'
12796	      ;;
12797	    esac
12798	    ;;
12799	  *)
12800	    ;;
12801	esac
12802	;;
12803      interix*)
12804	# This is c89, which is MS Visual C++ (no shared libs)
12805	# Anyone wants to do a port?
12806	;;
12807      irix5* | irix6* | nonstopux*)
12808	case $cc_basename in
12809	  CC*)
12810	    lt_prog_compiler_wl_CXX='-Wl,'
12811	    lt_prog_compiler_static_CXX='-non_shared'
12812	    # CC pic flag -KPIC is the default.
12813	    ;;
12814	  *)
12815	    ;;
12816	esac
12817	;;
12818      linux* | k*bsd*-gnu)
12819	case $cc_basename in
12820	  KCC*)
12821	    # KAI C++ Compiler
12822	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12823	    lt_prog_compiler_pic_CXX='-fPIC'
12824	    ;;
12825	  icpc* | ecpc*)
12826	    # Intel C++
12827	    lt_prog_compiler_wl_CXX='-Wl,'
12828	    lt_prog_compiler_pic_CXX='-KPIC'
12829	    lt_prog_compiler_static_CXX='-static'
12830	    ;;
12831	  pgCC* | pgcpp*)
12832	    # Portland Group C++ compiler.
12833	    lt_prog_compiler_wl_CXX='-Wl,'
12834	    lt_prog_compiler_pic_CXX='-fpic'
12835	    lt_prog_compiler_static_CXX='-Bstatic'
12836	    ;;
12837	  cxx*)
12838	    # Compaq C++
12839	    # Make sure the PIC flag is empty.  It appears that all Alpha
12840	    # Linux and Compaq Tru64 Unix objects are PIC.
12841	    lt_prog_compiler_pic_CXX=
12842	    lt_prog_compiler_static_CXX='-non_shared'
12843	    ;;
12844	  *)
12845	    case `$CC -V 2>&1 | sed 5q` in
12846	    *Sun\ C*)
12847	      # Sun C++ 5.9
12848	      lt_prog_compiler_pic_CXX='-KPIC'
12849	      lt_prog_compiler_static_CXX='-Bstatic'
12850	      lt_prog_compiler_wl_CXX='-Qoption ld '
12851	      ;;
12852	    esac
12853	    ;;
12854	esac
12855	;;
12856      lynxos*)
12857	;;
12858      m88k*)
12859	;;
12860      mvs*)
12861	case $cc_basename in
12862	  cxx*)
12863	    lt_prog_compiler_pic_CXX='-W c,exportall'
12864	    ;;
12865	  *)
12866	    ;;
12867	esac
12868	;;
12869      netbsd*)
12870	;;
12871      osf3* | osf4* | osf5*)
12872	case $cc_basename in
12873	  KCC*)
12874	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12875	    ;;
12876	  RCC*)
12877	    # Rational C++ 2.4.1
12878	    lt_prog_compiler_pic_CXX='-pic'
12879	    ;;
12880	  cxx*)
12881	    # Digital/Compaq C++
12882	    lt_prog_compiler_wl_CXX='-Wl,'
12883	    # Make sure the PIC flag is empty.  It appears that all Alpha
12884	    # Linux and Compaq Tru64 Unix objects are PIC.
12885	    lt_prog_compiler_pic_CXX=
12886	    lt_prog_compiler_static_CXX='-non_shared'
12887	    ;;
12888	  *)
12889	    ;;
12890	esac
12891	;;
12892      psos*)
12893	;;
12894      solaris*)
12895	case $cc_basename in
12896	  CC*)
12897	    # Sun C++ 4.2, 5.x and Centerline C++
12898	    lt_prog_compiler_pic_CXX='-KPIC'
12899	    lt_prog_compiler_static_CXX='-Bstatic'
12900	    lt_prog_compiler_wl_CXX='-Qoption ld '
12901	    ;;
12902	  gcx*)
12903	    # Green Hills C++ Compiler
12904	    lt_prog_compiler_pic_CXX='-PIC'
12905	    ;;
12906	  *)
12907	    ;;
12908	esac
12909	;;
12910      sunos4*)
12911	case $cc_basename in
12912	  CC*)
12913	    # Sun C++ 4.x
12914	    lt_prog_compiler_pic_CXX='-pic'
12915	    lt_prog_compiler_static_CXX='-Bstatic'
12916	    ;;
12917	  lcc*)
12918	    # Lucid
12919	    lt_prog_compiler_pic_CXX='-pic'
12920	    ;;
12921	  *)
12922	    ;;
12923	esac
12924	;;
12925      tandem*)
12926	case $cc_basename in
12927	  NCC*)
12928	    # NonStop-UX NCC 3.20
12929	    lt_prog_compiler_pic_CXX='-KPIC'
12930	    ;;
12931	  *)
12932	    ;;
12933	esac
12934	;;
12935      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12936	case $cc_basename in
12937	  CC*)
12938	    lt_prog_compiler_wl_CXX='-Wl,'
12939	    lt_prog_compiler_pic_CXX='-KPIC'
12940	    lt_prog_compiler_static_CXX='-Bstatic'
12941	    ;;
12942	esac
12943	;;
12944      vxworks*)
12945	;;
12946      *)
12947	lt_prog_compiler_can_build_shared_CXX=no
12948	;;
12949    esac
12950  fi
12951
12952{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12953$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12954
12955#
12956# Check to make sure the PIC flag actually works.
12957#
12958if test -n "$lt_prog_compiler_pic_CXX"; then
12959
12960{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12961$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12962if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12963  $as_echo_n "(cached) " >&6
12964else
12965  lt_cv_prog_compiler_pic_works_CXX=no
12966  ac_outfile=conftest.$ac_objext
12967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12968   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12969   # Insert the option either (1) after the last *FLAGS variable, or
12970   # (2) before a word containing "conftest.", or (3) at the end.
12971   # Note that $ac_compile itself does not contain backslashes and begins
12972   # with a dollar sign (not a hyphen), so the echo should work correctly.
12973   # The option is referenced via a variable to avoid confusing sed.
12974   lt_compile=`echo "$ac_compile" | $SED \
12975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12977   -e 's:$: $lt_compiler_flag:'`
12978   (eval echo "\"\$as_me:12978: $lt_compile\"" >&5)
12979   (eval "$lt_compile" 2>conftest.err)
12980   ac_status=$?
12981   cat conftest.err >&5
12982   echo "$as_me:12982: \$? = $ac_status" >&5
12983   if (exit $ac_status) && test -s "$ac_outfile"; then
12984     # The compiler can only warn and ignore the option if not recognized
12985     # So say no if there are warnings other than the usual output.
12986     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12987     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12988     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12989       lt_cv_prog_compiler_pic_works_CXX=yes
12990     fi
12991   fi
12992   $rm conftest*
12993
12994fi
12995{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12996$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12997
12998if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12999    case $lt_prog_compiler_pic_CXX in
13000     "" | " "*) ;;
13001     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13002     esac
13003else
13004    lt_prog_compiler_pic_CXX=
13005     lt_prog_compiler_can_build_shared_CXX=no
13006fi
13007
13008fi
13009case $host_os in
13010  # For platforms which do not support PIC, -DPIC is meaningless:
13011  *djgpp*)
13012    lt_prog_compiler_pic_CXX=
13013    ;;
13014  *)
13015    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13016    ;;
13017esac
13018
13019#
13020# Check to make sure the static flag actually works.
13021#
13022wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13023{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13024$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13025if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13026  $as_echo_n "(cached) " >&6
13027else
13028  lt_cv_prog_compiler_static_works_CXX=no
13029   save_LDFLAGS="$LDFLAGS"
13030   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13031   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13032   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13033     # The linker can only warn and ignore the option if not recognized
13034     # So say no if there are warnings
13035     if test -s conftest.err; then
13036       # Append any errors to the config.log.
13037       cat conftest.err 1>&5
13038       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13039       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13040       if diff conftest.exp conftest.er2 >/dev/null; then
13041         lt_cv_prog_compiler_static_works_CXX=yes
13042       fi
13043     else
13044       lt_cv_prog_compiler_static_works_CXX=yes
13045     fi
13046   fi
13047   $rm -r conftest*
13048   LDFLAGS="$save_LDFLAGS"
13049
13050fi
13051{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13052$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13053
13054if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13055    :
13056else
13057    lt_prog_compiler_static_CXX=
13058fi
13059
13060
13061{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13062$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13063if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13064  $as_echo_n "(cached) " >&6
13065else
13066  lt_cv_prog_compiler_c_o_CXX=no
13067   $rm -r conftest 2>/dev/null
13068   mkdir conftest
13069   cd conftest
13070   mkdir out
13071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13072
13073   lt_compiler_flag="-o out/conftest2.$ac_objext"
13074   # Insert the option either (1) after the last *FLAGS variable, or
13075   # (2) before a word containing "conftest.", or (3) at the end.
13076   # Note that $ac_compile itself does not contain backslashes and begins
13077   # with a dollar sign (not a hyphen), so the echo should work correctly.
13078   lt_compile=`echo "$ac_compile" | $SED \
13079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081   -e 's:$: $lt_compiler_flag:'`
13082   (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
13083   (eval "$lt_compile" 2>out/conftest.err)
13084   ac_status=$?
13085   cat out/conftest.err >&5
13086   echo "$as_me:13086: \$? = $ac_status" >&5
13087   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13088   then
13089     # The compiler can only warn and ignore the option if not recognized
13090     # So say no if there are warnings
13091     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13092     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13093     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13094       lt_cv_prog_compiler_c_o_CXX=yes
13095     fi
13096   fi
13097   chmod u+w . 2>&5
13098   $rm conftest*
13099   # SGI C++ compiler will create directory out/ii_files/ for
13100   # template instantiation
13101   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13102   $rm out/* && rmdir out
13103   cd ..
13104   rmdir conftest
13105   $rm conftest*
13106
13107fi
13108{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13109$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13110
13111
13112hard_links="nottested"
13113if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13114  # do not overwrite the value of need_locks provided by the user
13115  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13116$as_echo_n "checking if we can lock with hard links... " >&6; }
13117  hard_links=yes
13118  $rm conftest*
13119  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13120  touch conftest.a
13121  ln conftest.a conftest.b 2>&5 || hard_links=no
13122  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13123  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13124$as_echo "$hard_links" >&6; }
13125  if test "$hard_links" = no; then
13126    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13127$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13128    need_locks=warn
13129  fi
13130else
13131  need_locks=no
13132fi
13133
13134{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13135$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13136
13137  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13138  case $host_os in
13139  aix[4-9]*)
13140    # If we're using GNU nm, then we don't want the "-C" option.
13141    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13142    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13143      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'
13144    else
13145      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'
13146    fi
13147    ;;
13148  pw32*)
13149    export_symbols_cmds_CXX="$ltdll_cmds"
13150  ;;
13151  cygwin* | mingw*)
13152    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'
13153  ;;
13154  *)
13155    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13156  ;;
13157  esac
13158  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13159
13160{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13161$as_echo "$ld_shlibs_CXX" >&6; }
13162test "$ld_shlibs_CXX" = no && can_build_shared=no
13163
13164#
13165# Do we need to explicitly link libc?
13166#
13167case "x$archive_cmds_need_lc_CXX" in
13168x|xyes)
13169  # Assume -lc should be added
13170  archive_cmds_need_lc_CXX=yes
13171
13172  if test "$enable_shared" = yes && test "$GCC" = yes; then
13173    case $archive_cmds_CXX in
13174    *'~'*)
13175      # FIXME: we may have to deal with multi-command sequences.
13176      ;;
13177    '$CC '*)
13178      # Test whether the compiler implicitly links with -lc since on some
13179      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13180      # to ld, don't add -lc before -lgcc.
13181      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13182$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13183      $rm conftest*
13184      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185
13186      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187  (eval $ac_compile) 2>&5
13188  ac_status=$?
13189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190  (exit $ac_status); } 2>conftest.err; then
13191        soname=conftest
13192        lib=conftest
13193        libobjs=conftest.$ac_objext
13194        deplibs=
13195        wl=$lt_prog_compiler_wl_CXX
13196	pic_flag=$lt_prog_compiler_pic_CXX
13197        compiler_flags=-v
13198        linker_flags=-v
13199        verstring=
13200        output_objdir=.
13201        libname=conftest
13202        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13203        allow_undefined_flag_CXX=
13204        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13205  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13206  ac_status=$?
13207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208  (exit $ac_status); }
13209        then
13210	  archive_cmds_need_lc_CXX=no
13211        else
13212	  archive_cmds_need_lc_CXX=yes
13213        fi
13214        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13215      else
13216        cat conftest.err 1>&5
13217      fi
13218      $rm conftest*
13219      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13220$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13221      ;;
13222    esac
13223  fi
13224  ;;
13225esac
13226
13227{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13228$as_echo_n "checking dynamic linker characteristics... " >&6; }
13229library_names_spec=
13230libname_spec='lib$name'
13231soname_spec=
13232shrext_cmds=".so"
13233postinstall_cmds=
13234postuninstall_cmds=
13235finish_cmds=
13236finish_eval=
13237shlibpath_var=
13238shlibpath_overrides_runpath=unknown
13239version_type=none
13240dynamic_linker="$host_os ld.so"
13241sys_lib_dlsearch_path_spec="/lib /usr/lib"
13242
13243need_lib_prefix=unknown
13244hardcode_into_libs=no
13245
13246# when you set need_version to no, make sure it does not cause -set_version
13247# flags to be left without arguments
13248need_version=unknown
13249
13250case $host_os in
13251aix3*)
13252  version_type=linux
13253  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13254  shlibpath_var=LIBPATH
13255
13256  # AIX 3 has no versioning support, so we append a major version to the name.
13257  soname_spec='${libname}${release}${shared_ext}$major'
13258  ;;
13259
13260aix[4-9]*)
13261  version_type=linux
13262  need_lib_prefix=no
13263  need_version=no
13264  hardcode_into_libs=yes
13265  if test "$host_cpu" = ia64; then
13266    # AIX 5 supports IA64
13267    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13268    shlibpath_var=LD_LIBRARY_PATH
13269  else
13270    # With GCC up to 2.95.x, collect2 would create an import file
13271    # for dependence libraries.  The import file would start with
13272    # the line `#! .'.  This would cause the generated library to
13273    # depend on `.', always an invalid library.  This was fixed in
13274    # development snapshots of GCC prior to 3.0.
13275    case $host_os in
13276      aix4 | aix4.[01] | aix4.[01].*)
13277      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13278	   echo ' yes '
13279	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13280	:
13281      else
13282	can_build_shared=no
13283      fi
13284      ;;
13285    esac
13286    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13287    # soname into executable. Probably we can add versioning support to
13288    # collect2, so additional links can be useful in future.
13289    if test "$aix_use_runtimelinking" = yes; then
13290      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13291      # instead of lib<name>.a to let people know that these are not
13292      # typical AIX shared libraries.
13293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294    else
13295      # We preserve .a as extension for shared libraries through AIX4.2
13296      # and later when we are not doing run time linking.
13297      library_names_spec='${libname}${release}.a $libname.a'
13298      soname_spec='${libname}${release}${shared_ext}$major'
13299    fi
13300    shlibpath_var=LIBPATH
13301  fi
13302  ;;
13303
13304amigaos*)
13305  library_names_spec='$libname.ixlibrary $libname.a'
13306  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13307  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'
13308  ;;
13309
13310beos*)
13311  library_names_spec='${libname}${shared_ext}'
13312  dynamic_linker="$host_os ld.so"
13313  shlibpath_var=LIBRARY_PATH
13314  ;;
13315
13316bsdi[45]*)
13317  version_type=linux
13318  need_version=no
13319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320  soname_spec='${libname}${release}${shared_ext}$major'
13321  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13322  shlibpath_var=LD_LIBRARY_PATH
13323  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13324  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13325  # the default ld.so.conf also contains /usr/contrib/lib and
13326  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13327  # libtool to hard-code these into programs
13328  ;;
13329
13330cygwin* | mingw* | pw32*)
13331  version_type=windows
13332  shrext_cmds=".dll"
13333  need_version=no
13334  need_lib_prefix=no
13335
13336  case $GCC,$host_os in
13337  yes,cygwin* | yes,mingw* | yes,pw32*)
13338    library_names_spec='$libname.dll.a'
13339    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13340    postinstall_cmds='base_file=`basename \${file}`~
13341      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13342      dldir=$destdir/`dirname \$dlpath`~
13343      test -d \$dldir || mkdir -p \$dldir~
13344      $install_prog $dir/$dlname \$dldir/$dlname~
13345      chmod a+x \$dldir/$dlname'
13346    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347      dlpath=$dir/\$dldll~
13348       $rm \$dlpath'
13349    shlibpath_overrides_runpath=yes
13350
13351    case $host_os in
13352    cygwin*)
13353      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13356      ;;
13357    mingw*)
13358      # MinGW DLLs use traditional 'lib' prefix
13359      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13362        # It is most probably a Windows format PATH printed by
13363        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364        # path with ; separators, and with drive letters. We can handle the
13365        # drive letters (cygwin fileutils understands them), so leave them,
13366        # especially as we might pass files found there to a mingw objdump,
13367        # which wouldn't understand a cygwinified path. Ahh.
13368        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13369      else
13370        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13371      fi
13372      ;;
13373    pw32*)
13374      # pw32 DLLs use 'pw' prefix rather than 'lib'
13375      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376      ;;
13377    esac
13378    ;;
13379
13380  *)
13381    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13382    ;;
13383  esac
13384  dynamic_linker='Win32 ld.exe'
13385  # FIXME: first we should search . and the directory the executable is in
13386  shlibpath_var=PATH
13387  ;;
13388
13389darwin* | rhapsody*)
13390  dynamic_linker="$host_os dyld"
13391  version_type=darwin
13392  need_lib_prefix=no
13393  need_version=no
13394  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395  soname_spec='${libname}${release}${major}$shared_ext'
13396  shlibpath_overrides_runpath=yes
13397  shlibpath_var=DYLD_LIBRARY_PATH
13398  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13399
13400  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13401  ;;
13402
13403dgux*)
13404  version_type=linux
13405  need_lib_prefix=no
13406  need_version=no
13407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13408  soname_spec='${libname}${release}${shared_ext}$major'
13409  shlibpath_var=LD_LIBRARY_PATH
13410  ;;
13411
13412freebsd1*)
13413  dynamic_linker=no
13414  ;;
13415
13416freebsd* | dragonfly*)
13417  # DragonFly does not have aout.  When/if they implement a new
13418  # versioning mechanism, adjust this.
13419  if test -x /usr/bin/objformat; then
13420    objformat=`/usr/bin/objformat`
13421  else
13422    case $host_os in
13423    freebsd[123]*) objformat=aout ;;
13424    *) objformat=elf ;;
13425    esac
13426  fi
13427  version_type=freebsd-$objformat
13428  case $version_type in
13429    freebsd-elf*)
13430      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13431      need_version=no
13432      need_lib_prefix=no
13433      ;;
13434    freebsd-*)
13435      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13436      need_version=yes
13437      ;;
13438  esac
13439  shlibpath_var=LD_LIBRARY_PATH
13440  case $host_os in
13441  freebsd2*)
13442    shlibpath_overrides_runpath=yes
13443    ;;
13444  freebsd3.[01]* | freebsdelf3.[01]*)
13445    shlibpath_overrides_runpath=yes
13446    hardcode_into_libs=yes
13447    ;;
13448  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13449  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13450    shlibpath_overrides_runpath=no
13451    hardcode_into_libs=yes
13452    ;;
13453  *) # from 4.6 on, and DragonFly
13454    shlibpath_overrides_runpath=yes
13455    hardcode_into_libs=yes
13456    ;;
13457  esac
13458  ;;
13459
13460gnu*)
13461  version_type=linux
13462  need_lib_prefix=no
13463  need_version=no
13464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13465  soname_spec='${libname}${release}${shared_ext}$major'
13466  shlibpath_var=LD_LIBRARY_PATH
13467  hardcode_into_libs=yes
13468  ;;
13469
13470hpux9* | hpux10* | hpux11*)
13471  # Give a soname corresponding to the major version so that dld.sl refuses to
13472  # link against other versions.
13473  version_type=sunos
13474  need_lib_prefix=no
13475  need_version=no
13476  case $host_cpu in
13477  ia64*)
13478    shrext_cmds='.so'
13479    hardcode_into_libs=yes
13480    dynamic_linker="$host_os dld.so"
13481    shlibpath_var=LD_LIBRARY_PATH
13482    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484    soname_spec='${libname}${release}${shared_ext}$major'
13485    if test "X$HPUX_IA64_MODE" = X32; then
13486      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13487    else
13488      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13489    fi
13490    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13491    ;;
13492   hppa*64*)
13493     shrext_cmds='.sl'
13494     hardcode_into_libs=yes
13495     dynamic_linker="$host_os dld.sl"
13496     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499     soname_spec='${libname}${release}${shared_ext}$major'
13500     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13501     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13502     ;;
13503   *)
13504    shrext_cmds='.sl'
13505    dynamic_linker="$host_os dld.sl"
13506    shlibpath_var=SHLIB_PATH
13507    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509    soname_spec='${libname}${release}${shared_ext}$major'
13510    ;;
13511  esac
13512  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13513  postinstall_cmds='chmod 555 $lib'
13514  ;;
13515
13516interix[3-9]*)
13517  version_type=linux
13518  need_lib_prefix=no
13519  need_version=no
13520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13521  soname_spec='${libname}${release}${shared_ext}$major'
13522  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13523  shlibpath_var=LD_LIBRARY_PATH
13524  shlibpath_overrides_runpath=no
13525  hardcode_into_libs=yes
13526  ;;
13527
13528irix5* | irix6* | nonstopux*)
13529  case $host_os in
13530    nonstopux*) version_type=nonstopux ;;
13531    *)
13532	if test "$lt_cv_prog_gnu_ld" = yes; then
13533		version_type=linux
13534	else
13535		version_type=irix
13536	fi ;;
13537  esac
13538  need_lib_prefix=no
13539  need_version=no
13540  soname_spec='${libname}${release}${shared_ext}$major'
13541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13542  case $host_os in
13543  irix5* | nonstopux*)
13544    libsuff= shlibsuff=
13545    ;;
13546  *)
13547    case $LD in # libtool.m4 will add one of these switches to LD
13548    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13549      libsuff= shlibsuff= libmagic=32-bit;;
13550    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13551      libsuff=32 shlibsuff=N32 libmagic=N32;;
13552    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13553      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13554    *) libsuff= shlibsuff= libmagic=never-match;;
13555    esac
13556    ;;
13557  esac
13558  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13559  shlibpath_overrides_runpath=no
13560  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13561  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13562  hardcode_into_libs=yes
13563  ;;
13564
13565# No shared lib support for Linux oldld, aout, or coff.
13566linux*oldld* | linux*aout* | linux*coff*)
13567  dynamic_linker=no
13568  ;;
13569
13570# This must be Linux ELF.
13571linux* | k*bsd*-gnu)
13572  version_type=linux
13573  need_lib_prefix=no
13574  need_version=no
13575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576  soname_spec='${libname}${release}${shared_ext}$major'
13577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578  shlibpath_var=LD_LIBRARY_PATH
13579  shlibpath_overrides_runpath=no
13580  # This implies no fast_install, which is unacceptable.
13581  # Some rework will be needed to allow for fast_install
13582  # before this can be enabled.
13583  hardcode_into_libs=yes
13584
13585  # Append ld.so.conf contents to the search path
13586  if test -f /etc/ld.so.conf; then
13587    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' ' '`
13588    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13589  fi
13590
13591  # We used to test for /lib/ld.so.1 and disable shared libraries on
13592  # powerpc, because MkLinux only supported shared libraries with the
13593  # GNU dynamic linker.  Since this was broken with cross compilers,
13594  # most powerpc-linux boxes support dynamic linking these days and
13595  # people can always --disable-shared, the test was removed, and we
13596  # assume the GNU/Linux dynamic linker is in use.
13597  dynamic_linker='GNU/Linux ld.so'
13598  ;;
13599
13600netbsd*)
13601  version_type=sunos
13602  need_lib_prefix=no
13603  need_version=no
13604  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13606    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13607    dynamic_linker='NetBSD (a.out) ld.so'
13608  else
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    dynamic_linker='NetBSD ld.elf_so'
13612  fi
13613  shlibpath_var=LD_LIBRARY_PATH
13614  shlibpath_overrides_runpath=yes
13615  hardcode_into_libs=yes
13616  ;;
13617
13618newsos6)
13619  version_type=linux
13620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621  shlibpath_var=LD_LIBRARY_PATH
13622  shlibpath_overrides_runpath=yes
13623  ;;
13624
13625nto-qnx*)
13626  version_type=linux
13627  need_lib_prefix=no
13628  need_version=no
13629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630  soname_spec='${libname}${release}${shared_ext}$major'
13631  shlibpath_var=LD_LIBRARY_PATH
13632  shlibpath_overrides_runpath=yes
13633  ;;
13634
13635openbsd*)
13636  version_type=sunos
13637  sys_lib_dlsearch_path_spec="/usr/lib"
13638  need_lib_prefix=no
13639  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13640  case $host_os in
13641    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13642    *)                         need_version=no  ;;
13643  esac
13644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13645  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13646  shlibpath_var=LD_LIBRARY_PATH
13647  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13648    case $host_os in
13649      openbsd2.[89] | openbsd2.[89].*)
13650	shlibpath_overrides_runpath=no
13651	;;
13652      *)
13653	shlibpath_overrides_runpath=yes
13654	;;
13655      esac
13656  else
13657    shlibpath_overrides_runpath=yes
13658  fi
13659  ;;
13660
13661os2*)
13662  libname_spec='$name'
13663  shrext_cmds=".dll"
13664  need_lib_prefix=no
13665  library_names_spec='$libname${shared_ext} $libname.a'
13666  dynamic_linker='OS/2 ld.exe'
13667  shlibpath_var=LIBPATH
13668  ;;
13669
13670osf3* | osf4* | osf5*)
13671  version_type=osf
13672  need_lib_prefix=no
13673  need_version=no
13674  soname_spec='${libname}${release}${shared_ext}$major'
13675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676  shlibpath_var=LD_LIBRARY_PATH
13677  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13678  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13679  ;;
13680
13681rdos*)
13682  dynamic_linker=no
13683  ;;
13684
13685solaris*)
13686  version_type=linux
13687  need_lib_prefix=no
13688  need_version=no
13689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690  soname_spec='${libname}${release}${shared_ext}$major'
13691  shlibpath_var=LD_LIBRARY_PATH
13692  shlibpath_overrides_runpath=yes
13693  hardcode_into_libs=yes
13694  # ldd complains unless libraries are executable
13695  postinstall_cmds='chmod +x $lib'
13696  ;;
13697
13698sunos4*)
13699  version_type=sunos
13700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13701  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13702  shlibpath_var=LD_LIBRARY_PATH
13703  shlibpath_overrides_runpath=yes
13704  if test "$with_gnu_ld" = yes; then
13705    need_lib_prefix=no
13706  fi
13707  need_version=yes
13708  ;;
13709
13710sysv4 | sysv4.3*)
13711  version_type=linux
13712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713  soname_spec='${libname}${release}${shared_ext}$major'
13714  shlibpath_var=LD_LIBRARY_PATH
13715  case $host_vendor in
13716    sni)
13717      shlibpath_overrides_runpath=no
13718      need_lib_prefix=no
13719      export_dynamic_flag_spec='${wl}-Blargedynsym'
13720      runpath_var=LD_RUN_PATH
13721      ;;
13722    siemens)
13723      need_lib_prefix=no
13724      ;;
13725    motorola)
13726      need_lib_prefix=no
13727      need_version=no
13728      shlibpath_overrides_runpath=no
13729      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13730      ;;
13731  esac
13732  ;;
13733
13734sysv4*MP*)
13735  if test -d /usr/nec ;then
13736    version_type=linux
13737    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13738    soname_spec='$libname${shared_ext}.$major'
13739    shlibpath_var=LD_LIBRARY_PATH
13740  fi
13741  ;;
13742
13743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13744  version_type=freebsd-elf
13745  need_lib_prefix=no
13746  need_version=no
13747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13748  soname_spec='${libname}${release}${shared_ext}$major'
13749  shlibpath_var=LD_LIBRARY_PATH
13750  hardcode_into_libs=yes
13751  if test "$with_gnu_ld" = yes; then
13752    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13753    shlibpath_overrides_runpath=no
13754  else
13755    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13756    shlibpath_overrides_runpath=yes
13757    case $host_os in
13758      sco3.2v5*)
13759        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13760	;;
13761    esac
13762  fi
13763  sys_lib_dlsearch_path_spec='/usr/lib'
13764  ;;
13765
13766uts4*)
13767  version_type=linux
13768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13769  soname_spec='${libname}${release}${shared_ext}$major'
13770  shlibpath_var=LD_LIBRARY_PATH
13771  ;;
13772
13773*)
13774  dynamic_linker=no
13775  ;;
13776esac
13777{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13778$as_echo "$dynamic_linker" >&6; }
13779test "$dynamic_linker" = no && can_build_shared=no
13780
13781if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13782  $as_echo_n "(cached) " >&6
13783else
13784  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13785fi
13786
13787sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13788if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13789  $as_echo_n "(cached) " >&6
13790else
13791  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13792fi
13793
13794sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13795
13796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13797if test "$GCC" = yes; then
13798  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13799fi
13800
13801{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13802$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13803hardcode_action_CXX=
13804if test -n "$hardcode_libdir_flag_spec_CXX" || \
13805   test -n "$runpath_var_CXX" || \
13806   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13807
13808  # We can hardcode non-existant directories.
13809  if test "$hardcode_direct_CXX" != no &&
13810     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13811     # have to relink, otherwise we might link with an installed library
13812     # when we should be linking with a yet-to-be-installed one
13813     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13814     test "$hardcode_minus_L_CXX" != no; then
13815    # Linking always hardcodes the temporary library directory.
13816    hardcode_action_CXX=relink
13817  else
13818    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13819    hardcode_action_CXX=immediate
13820  fi
13821else
13822  # We cannot hardcode anything, or else we can only hardcode existing
13823  # directories.
13824  hardcode_action_CXX=unsupported
13825fi
13826{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13827$as_echo "$hardcode_action_CXX" >&6; }
13828
13829if test "$hardcode_action_CXX" = relink; then
13830  # Fast installation is not supported
13831  enable_fast_install=no
13832elif test "$shlibpath_overrides_runpath" = yes ||
13833     test "$enable_shared" = no; then
13834  # Fast installation is not necessary
13835  enable_fast_install=needless
13836fi
13837
13838
13839# The else clause should only fire when bootstrapping the
13840# libtool distribution, otherwise you forgot to ship ltmain.sh
13841# with your package, and you will get complaints that there are
13842# no rules to generate ltmain.sh.
13843if test -f "$ltmain"; then
13844  # See if we are running on zsh, and set the options which allow our commands through
13845  # without removal of \ escapes.
13846  if test -n "${ZSH_VERSION+set}" ; then
13847    setopt NO_GLOB_SUBST
13848  fi
13849  # Now quote all the things that may contain metacharacters while being
13850  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13851  # variables and quote the copies for generation of the libtool script.
13852  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13853    SED SHELL STRIP \
13854    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13855    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13856    deplibs_check_method reload_flag reload_cmds need_locks \
13857    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13858    lt_cv_sys_global_symbol_to_c_name_address \
13859    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13860    old_postinstall_cmds old_postuninstall_cmds \
13861    compiler_CXX \
13862    CC_CXX \
13863    LD_CXX \
13864    lt_prog_compiler_wl_CXX \
13865    lt_prog_compiler_pic_CXX \
13866    lt_prog_compiler_static_CXX \
13867    lt_prog_compiler_no_builtin_flag_CXX \
13868    export_dynamic_flag_spec_CXX \
13869    thread_safe_flag_spec_CXX \
13870    whole_archive_flag_spec_CXX \
13871    enable_shared_with_static_runtimes_CXX \
13872    old_archive_cmds_CXX \
13873    old_archive_from_new_cmds_CXX \
13874    predep_objects_CXX \
13875    postdep_objects_CXX \
13876    predeps_CXX \
13877    postdeps_CXX \
13878    compiler_lib_search_path_CXX \
13879    compiler_lib_search_dirs_CXX \
13880    archive_cmds_CXX \
13881    archive_expsym_cmds_CXX \
13882    postinstall_cmds_CXX \
13883    postuninstall_cmds_CXX \
13884    old_archive_from_expsyms_cmds_CXX \
13885    allow_undefined_flag_CXX \
13886    no_undefined_flag_CXX \
13887    export_symbols_cmds_CXX \
13888    hardcode_libdir_flag_spec_CXX \
13889    hardcode_libdir_flag_spec_ld_CXX \
13890    hardcode_libdir_separator_CXX \
13891    hardcode_automatic_CXX \
13892    module_cmds_CXX \
13893    module_expsym_cmds_CXX \
13894    lt_cv_prog_compiler_c_o_CXX \
13895    fix_srcfile_path_CXX \
13896    exclude_expsyms_CXX \
13897    include_expsyms_CXX; do
13898
13899    case $var in
13900    old_archive_cmds_CXX | \
13901    old_archive_from_new_cmds_CXX | \
13902    archive_cmds_CXX | \
13903    archive_expsym_cmds_CXX | \
13904    module_cmds_CXX | \
13905    module_expsym_cmds_CXX | \
13906    old_archive_from_expsyms_cmds_CXX | \
13907    export_symbols_cmds_CXX | \
13908    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13909    postinstall_cmds | postuninstall_cmds | \
13910    old_postinstall_cmds | old_postuninstall_cmds | \
13911    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13912      # Double-quote double-evaled strings.
13913      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13914      ;;
13915    *)
13916      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13917      ;;
13918    esac
13919  done
13920
13921  case $lt_echo in
13922  *'\$0 --fallback-echo"')
13923    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13924    ;;
13925  esac
13926
13927cfgfile="$ofile"
13928
13929  cat <<__EOF__ >> "$cfgfile"
13930# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13931
13932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13933
13934# Shell to use when invoking shell scripts.
13935SHELL=$lt_SHELL
13936
13937# Whether or not to build shared libraries.
13938build_libtool_libs=$enable_shared
13939
13940# Whether or not to build static libraries.
13941build_old_libs=$enable_static
13942
13943# Whether or not to add -lc for building shared libraries.
13944build_libtool_need_lc=$archive_cmds_need_lc_CXX
13945
13946# Whether or not to disallow shared libs when runtime libs are static
13947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13948
13949# Whether or not to optimize for fast installation.
13950fast_install=$enable_fast_install
13951
13952# The host system.
13953host_alias=$host_alias
13954host=$host
13955host_os=$host_os
13956
13957# The build system.
13958build_alias=$build_alias
13959build=$build
13960build_os=$build_os
13961
13962# An echo program that does not interpret backslashes.
13963echo=$lt_echo
13964
13965# The archiver.
13966AR=$lt_AR
13967AR_FLAGS=$lt_AR_FLAGS
13968
13969# A C compiler.
13970LTCC=$lt_LTCC
13971
13972# LTCC compiler flags.
13973LTCFLAGS=$lt_LTCFLAGS
13974
13975# A language-specific compiler.
13976CC=$lt_compiler_CXX
13977
13978# Is the compiler the GNU C compiler?
13979with_gcc=$GCC_CXX
13980
13981# An ERE matcher.
13982EGREP=$lt_EGREP
13983
13984# The linker used to build libraries.
13985LD=$lt_LD_CXX
13986
13987# Whether we need hard or soft links.
13988LN_S=$lt_LN_S
13989
13990# A BSD-compatible nm program.
13991NM=$lt_NM
13992
13993# A symbol stripping program
13994STRIP=$lt_STRIP
13995
13996# Used to examine libraries when file_magic_cmd begins "file"
13997MAGIC_CMD=$MAGIC_CMD
13998
13999# Used on cygwin: DLL creation program.
14000DLLTOOL="$DLLTOOL"
14001
14002# Used on cygwin: object dumper.
14003OBJDUMP="$OBJDUMP"
14004
14005# Used on cygwin: assembler.
14006AS="$AS"
14007
14008# The name of the directory that contains temporary libtool files.
14009objdir=$objdir
14010
14011# How to create reloadable object files.
14012reload_flag=$lt_reload_flag
14013reload_cmds=$lt_reload_cmds
14014
14015# How to pass a linker flag through the compiler.
14016wl=$lt_lt_prog_compiler_wl_CXX
14017
14018# Object file suffix (normally "o").
14019objext="$ac_objext"
14020
14021# Old archive suffix (normally "a").
14022libext="$libext"
14023
14024# Shared library suffix (normally ".so").
14025shrext_cmds='$shrext_cmds'
14026
14027# Executable file suffix (normally "").
14028exeext="$exeext"
14029
14030# Additional compiler flags for building library objects.
14031pic_flag=$lt_lt_prog_compiler_pic_CXX
14032pic_mode=$pic_mode
14033
14034# What is the maximum length of a command?
14035max_cmd_len=$lt_cv_sys_max_cmd_len
14036
14037# Does compiler simultaneously support -c and -o options?
14038compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14039
14040# Must we lock files when doing compilation?
14041need_locks=$lt_need_locks
14042
14043# Do we need the lib prefix for modules?
14044need_lib_prefix=$need_lib_prefix
14045
14046# Do we need a version for libraries?
14047need_version=$need_version
14048
14049# Whether dlopen is supported.
14050dlopen_support=$enable_dlopen
14051
14052# Whether dlopen of programs is supported.
14053dlopen_self=$enable_dlopen_self
14054
14055# Whether dlopen of statically linked programs is supported.
14056dlopen_self_static=$enable_dlopen_self_static
14057
14058# Compiler flag to prevent dynamic linking.
14059link_static_flag=$lt_lt_prog_compiler_static_CXX
14060
14061# Compiler flag to turn off builtin functions.
14062no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14063
14064# Compiler flag to allow reflexive dlopens.
14065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14066
14067# Compiler flag to generate shared objects directly from archives.
14068whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14069
14070# Compiler flag to generate thread-safe objects.
14071thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14072
14073# Library versioning type.
14074version_type=$version_type
14075
14076# Format of library name prefix.
14077libname_spec=$lt_libname_spec
14078
14079# List of archive names.  First name is the real one, the rest are links.
14080# The last name is the one that the linker finds with -lNAME.
14081library_names_spec=$lt_library_names_spec
14082
14083# The coded name of the library, if different from the real name.
14084soname_spec=$lt_soname_spec
14085
14086# Commands used to build and install an old-style archive.
14087RANLIB=$lt_RANLIB
14088old_archive_cmds=$lt_old_archive_cmds_CXX
14089old_postinstall_cmds=$lt_old_postinstall_cmds
14090old_postuninstall_cmds=$lt_old_postuninstall_cmds
14091
14092# Create an old-style archive from a shared archive.
14093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14094
14095# Create a temporary old-style archive to link instead of a shared archive.
14096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14097
14098# Commands used to build and install a shared archive.
14099archive_cmds=$lt_archive_cmds_CXX
14100archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14101postinstall_cmds=$lt_postinstall_cmds
14102postuninstall_cmds=$lt_postuninstall_cmds
14103
14104# Commands used to build a loadable module (assumed same as above if empty)
14105module_cmds=$lt_module_cmds_CXX
14106module_expsym_cmds=$lt_module_expsym_cmds_CXX
14107
14108# Commands to strip libraries.
14109old_striplib=$lt_old_striplib
14110striplib=$lt_striplib
14111
14112# Dependencies to place before the objects being linked to create a
14113# shared library.
14114predep_objects=$lt_predep_objects_CXX
14115
14116# Dependencies to place after the objects being linked to create a
14117# shared library.
14118postdep_objects=$lt_postdep_objects_CXX
14119
14120# Dependencies to place before the objects being linked to create a
14121# shared library.
14122predeps=$lt_predeps_CXX
14123
14124# Dependencies to place after the objects being linked to create a
14125# shared library.
14126postdeps=$lt_postdeps_CXX
14127
14128# The directories searched by this compiler when creating a shared
14129# library
14130compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14131
14132# The library search path used internally by the compiler when linking
14133# a shared library.
14134compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14135
14136# Method to check whether dependent libraries are shared objects.
14137deplibs_check_method=$lt_deplibs_check_method
14138
14139# Command to use when deplibs_check_method == file_magic.
14140file_magic_cmd=$lt_file_magic_cmd
14141
14142# Flag that allows shared libraries with undefined symbols to be built.
14143allow_undefined_flag=$lt_allow_undefined_flag_CXX
14144
14145# Flag that forces no undefined symbols.
14146no_undefined_flag=$lt_no_undefined_flag_CXX
14147
14148# Commands used to finish a libtool library installation in a directory.
14149finish_cmds=$lt_finish_cmds
14150
14151# Same as above, but a single script fragment to be evaled but not shown.
14152finish_eval=$lt_finish_eval
14153
14154# Take the output of nm and produce a listing of raw symbols and C names.
14155global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14156
14157# Transform the output of nm in a proper C declaration
14158global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14159
14160# Transform the output of nm in a C name address pair
14161global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14162
14163# This is the shared library runtime path variable.
14164runpath_var=$runpath_var
14165
14166# This is the shared library path variable.
14167shlibpath_var=$shlibpath_var
14168
14169# Is shlibpath searched before the hard-coded library search path?
14170shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14171
14172# How to hardcode a shared library path into an executable.
14173hardcode_action=$hardcode_action_CXX
14174
14175# Whether we should hardcode library paths into libraries.
14176hardcode_into_libs=$hardcode_into_libs
14177
14178# Flag to hardcode \$libdir into a binary during linking.
14179# This must work even if \$libdir does not exist.
14180hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14181
14182# If ld is used when linking, flag to hardcode \$libdir into
14183# a binary during linking. This must work even if \$libdir does
14184# not exist.
14185hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14186
14187# Whether we need a single -rpath flag with a separated argument.
14188hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14189
14190# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14191# resulting binary.
14192hardcode_direct=$hardcode_direct_CXX
14193
14194# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14195# resulting binary.
14196hardcode_minus_L=$hardcode_minus_L_CXX
14197
14198# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14199# the resulting binary.
14200hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14201
14202# Set to yes if building a shared library automatically hardcodes DIR into the library
14203# and all subsequent libraries and executables linked against it.
14204hardcode_automatic=$hardcode_automatic_CXX
14205
14206# Variables whose values should be saved in libtool wrapper scripts and
14207# restored at relink time.
14208variables_saved_for_relink="$variables_saved_for_relink"
14209
14210# Whether libtool must link a program against all its dependency libraries.
14211link_all_deplibs=$link_all_deplibs_CXX
14212
14213# Compile-time system search path for libraries
14214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14215
14216# Run-time system search path for libraries
14217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14218
14219# Fix the shell variable \$srcfile for the compiler.
14220fix_srcfile_path=$lt_fix_srcfile_path
14221
14222# Set to yes if exported symbols are required.
14223always_export_symbols=$always_export_symbols_CXX
14224
14225# The commands to list exported symbols.
14226export_symbols_cmds=$lt_export_symbols_cmds_CXX
14227
14228# The commands to extract the exported symbol list from a shared archive.
14229extract_expsyms_cmds=$lt_extract_expsyms_cmds
14230
14231# Symbols that should not be listed in the preloaded symbols.
14232exclude_expsyms=$lt_exclude_expsyms_CXX
14233
14234# Symbols that must always be exported.
14235include_expsyms=$lt_include_expsyms_CXX
14236
14237# ### END LIBTOOL TAG CONFIG: $tagname
14238
14239__EOF__
14240
14241
14242else
14243  # If there is no Makefile yet, we rely on a make rule to execute
14244  # `config.status --recheck' to rerun these tests and create the
14245  # libtool script then.
14246  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14247  if test -f "$ltmain_in"; then
14248    test -f Makefile && make "$ltmain"
14249  fi
14250fi
14251
14252
14253ac_ext=c
14254ac_cpp='$CPP $CPPFLAGS'
14255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14257ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258
14259CC=$lt_save_CC
14260LDCXX=$LD
14261LD=$lt_save_LD
14262GCC=$lt_save_GCC
14263with_gnu_ldcxx=$with_gnu_ld
14264with_gnu_ld=$lt_save_with_gnu_ld
14265lt_cv_path_LDCXX=$lt_cv_path_LD
14266lt_cv_path_LD=$lt_save_path_LD
14267lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14268lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14269
14270	else
14271	  tagname=""
14272	fi
14273	;;
14274
14275      F77)
14276	if test -n "$F77" && test "X$F77" != "Xno"; then
14277
14278ac_ext=f
14279ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14280ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14282
14283
14284archive_cmds_need_lc_F77=no
14285allow_undefined_flag_F77=
14286always_export_symbols_F77=no
14287archive_expsym_cmds_F77=
14288export_dynamic_flag_spec_F77=
14289hardcode_direct_F77=no
14290hardcode_libdir_flag_spec_F77=
14291hardcode_libdir_flag_spec_ld_F77=
14292hardcode_libdir_separator_F77=
14293hardcode_minus_L_F77=no
14294hardcode_automatic_F77=no
14295module_cmds_F77=
14296module_expsym_cmds_F77=
14297link_all_deplibs_F77=unknown
14298old_archive_cmds_F77=$old_archive_cmds
14299no_undefined_flag_F77=
14300whole_archive_flag_spec_F77=
14301enable_shared_with_static_runtimes_F77=no
14302
14303# Source file extension for f77 test sources.
14304ac_ext=f
14305
14306# Object file extension for compiled f77 test sources.
14307objext=o
14308objext_F77=$objext
14309
14310# Code to be used in simple compile tests
14311lt_simple_compile_test_code="\
14312      subroutine t
14313      return
14314      end
14315"
14316
14317# Code to be used in simple link tests
14318lt_simple_link_test_code="\
14319      program t
14320      end
14321"
14322
14323# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14324
14325# If no C compiler was specified, use CC.
14326LTCC=${LTCC-"$CC"}
14327
14328# If no C compiler flags were specified, use CFLAGS.
14329LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14330
14331# Allow CC to be a program name with arguments.
14332compiler=$CC
14333
14334
14335# save warnings/boilerplate of simple test code
14336ac_outfile=conftest.$ac_objext
14337echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14338eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14339_lt_compiler_boilerplate=`cat conftest.err`
14340$rm conftest*
14341
14342ac_outfile=conftest.$ac_objext
14343echo "$lt_simple_link_test_code" >conftest.$ac_ext
14344eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14345_lt_linker_boilerplate=`cat conftest.err`
14346$rm -r conftest*
14347
14348
14349# Allow CC to be a program name with arguments.
14350lt_save_CC="$CC"
14351CC=${F77-"f77"}
14352compiler=$CC
14353compiler_F77=$CC
14354for cc_temp in $compiler""; do
14355  case $cc_temp in
14356    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14357    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14358    \-*) ;;
14359    *) break;;
14360  esac
14361done
14362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14363
14364
14365{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14366$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14367{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14368$as_echo "$can_build_shared" >&6; }
14369
14370{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14371$as_echo_n "checking whether to build shared libraries... " >&6; }
14372test "$can_build_shared" = "no" && enable_shared=no
14373
14374# On AIX, shared libraries and static libraries use the same namespace, and
14375# are all built from PIC.
14376case $host_os in
14377aix3*)
14378  test "$enable_shared" = yes && enable_static=no
14379  if test -n "$RANLIB"; then
14380    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14381    postinstall_cmds='$RANLIB $lib'
14382  fi
14383  ;;
14384aix[4-9]*)
14385  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14386    test "$enable_shared" = yes && enable_static=no
14387  fi
14388  ;;
14389esac
14390{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14391$as_echo "$enable_shared" >&6; }
14392
14393{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14394$as_echo_n "checking whether to build static libraries... " >&6; }
14395# Make sure either enable_shared or enable_static is yes.
14396test "$enable_shared" = yes || enable_static=yes
14397{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14398$as_echo "$enable_static" >&6; }
14399
14400GCC_F77="$G77"
14401LD_F77="$LD"
14402
14403lt_prog_compiler_wl_F77=
14404lt_prog_compiler_pic_F77=
14405lt_prog_compiler_static_F77=
14406
14407{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14408$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14409
14410  if test "$GCC" = yes; then
14411    lt_prog_compiler_wl_F77='-Wl,'
14412    lt_prog_compiler_static_F77='-static'
14413
14414    case $host_os in
14415      aix*)
14416      # All AIX code is PIC.
14417      if test "$host_cpu" = ia64; then
14418	# AIX 5 now supports IA64 processor
14419	lt_prog_compiler_static_F77='-Bstatic'
14420      fi
14421      ;;
14422
14423    amigaos*)
14424      # FIXME: we need at least 68020 code to build shared libraries, but
14425      # adding the `-m68020' flag to GCC prevents building anything better,
14426      # like `-m68040'.
14427      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14428      ;;
14429
14430    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14431      # PIC is the default for these OSes.
14432      ;;
14433
14434    mingw* | cygwin* | pw32* | os2*)
14435      # This hack is so that the source file can tell whether it is being
14436      # built for inclusion in a dll (and should export symbols for example).
14437      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14438      # (--disable-auto-import) libraries
14439      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14440      ;;
14441
14442    darwin* | rhapsody*)
14443      # PIC is the default on this platform
14444      # Common symbols not allowed in MH_DYLIB files
14445      lt_prog_compiler_pic_F77='-fno-common'
14446      ;;
14447
14448    interix[3-9]*)
14449      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14450      # Instead, we relocate shared libraries at runtime.
14451      ;;
14452
14453    msdosdjgpp*)
14454      # Just because we use GCC doesn't mean we suddenly get shared libraries
14455      # on systems that don't support them.
14456      lt_prog_compiler_can_build_shared_F77=no
14457      enable_shared=no
14458      ;;
14459
14460    sysv4*MP*)
14461      if test -d /usr/nec; then
14462	lt_prog_compiler_pic_F77=-Kconform_pic
14463      fi
14464      ;;
14465
14466    hpux*)
14467      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14468      # not for PA HP-UX.
14469      case $host_cpu in
14470      hppa*64*|ia64*)
14471	# +Z the default
14472	;;
14473      *)
14474	lt_prog_compiler_pic_F77='-fPIC'
14475	;;
14476      esac
14477      ;;
14478
14479    *)
14480      lt_prog_compiler_pic_F77='-fPIC'
14481      ;;
14482    esac
14483  else
14484    # PORTME Check for flag to pass linker flags through the system compiler.
14485    case $host_os in
14486    aix*)
14487      lt_prog_compiler_wl_F77='-Wl,'
14488      if test "$host_cpu" = ia64; then
14489	# AIX 5 now supports IA64 processor
14490	lt_prog_compiler_static_F77='-Bstatic'
14491      else
14492	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14493      fi
14494      ;;
14495      darwin*)
14496        # PIC is the default on this platform
14497        # Common symbols not allowed in MH_DYLIB files
14498       case $cc_basename in
14499         xlc*)
14500         lt_prog_compiler_pic_F77='-qnocommon'
14501         lt_prog_compiler_wl_F77='-Wl,'
14502         ;;
14503       esac
14504       ;;
14505
14506    mingw* | cygwin* | pw32* | os2*)
14507      # This hack is so that the source file can tell whether it is being
14508      # built for inclusion in a dll (and should export symbols for example).
14509      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14510      ;;
14511
14512    hpux9* | hpux10* | hpux11*)
14513      lt_prog_compiler_wl_F77='-Wl,'
14514      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14515      # not for PA HP-UX.
14516      case $host_cpu in
14517      hppa*64*|ia64*)
14518	# +Z the default
14519	;;
14520      *)
14521	lt_prog_compiler_pic_F77='+Z'
14522	;;
14523      esac
14524      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14525      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14526      ;;
14527
14528    irix5* | irix6* | nonstopux*)
14529      lt_prog_compiler_wl_F77='-Wl,'
14530      # PIC (with -KPIC) is the default.
14531      lt_prog_compiler_static_F77='-non_shared'
14532      ;;
14533
14534    newsos6)
14535      lt_prog_compiler_pic_F77='-KPIC'
14536      lt_prog_compiler_static_F77='-Bstatic'
14537      ;;
14538
14539    linux* | k*bsd*-gnu)
14540      case $cc_basename in
14541      icc* | ecc*)
14542	lt_prog_compiler_wl_F77='-Wl,'
14543	lt_prog_compiler_pic_F77='-KPIC'
14544	lt_prog_compiler_static_F77='-static'
14545        ;;
14546      pgcc* | pgf77* | pgf90* | pgf95*)
14547        # Portland Group compilers (*not* the Pentium gcc compiler,
14548	# which looks to be a dead project)
14549	lt_prog_compiler_wl_F77='-Wl,'
14550	lt_prog_compiler_pic_F77='-fpic'
14551	lt_prog_compiler_static_F77='-Bstatic'
14552        ;;
14553      ccc*)
14554        lt_prog_compiler_wl_F77='-Wl,'
14555        # All Alpha code is PIC.
14556        lt_prog_compiler_static_F77='-non_shared'
14557        ;;
14558      *)
14559        case `$CC -V 2>&1 | sed 5q` in
14560	*Sun\ C*)
14561	  # Sun C 5.9
14562	  lt_prog_compiler_pic_F77='-KPIC'
14563	  lt_prog_compiler_static_F77='-Bstatic'
14564	  lt_prog_compiler_wl_F77='-Wl,'
14565	  ;;
14566	*Sun\ F*)
14567	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14568	  lt_prog_compiler_pic_F77='-KPIC'
14569	  lt_prog_compiler_static_F77='-Bstatic'
14570	  lt_prog_compiler_wl_F77=''
14571	  ;;
14572	esac
14573	;;
14574      esac
14575      ;;
14576
14577    osf3* | osf4* | osf5*)
14578      lt_prog_compiler_wl_F77='-Wl,'
14579      # All OSF/1 code is PIC.
14580      lt_prog_compiler_static_F77='-non_shared'
14581      ;;
14582
14583    rdos*)
14584      lt_prog_compiler_static_F77='-non_shared'
14585      ;;
14586
14587    solaris*)
14588      lt_prog_compiler_pic_F77='-KPIC'
14589      lt_prog_compiler_static_F77='-Bstatic'
14590      case $cc_basename in
14591      f77* | f90* | f95*)
14592	lt_prog_compiler_wl_F77='-Qoption ld ';;
14593      *)
14594	lt_prog_compiler_wl_F77='-Wl,';;
14595      esac
14596      ;;
14597
14598    sunos4*)
14599      lt_prog_compiler_wl_F77='-Qoption ld '
14600      lt_prog_compiler_pic_F77='-PIC'
14601      lt_prog_compiler_static_F77='-Bstatic'
14602      ;;
14603
14604    sysv4 | sysv4.2uw2* | sysv4.3*)
14605      lt_prog_compiler_wl_F77='-Wl,'
14606      lt_prog_compiler_pic_F77='-KPIC'
14607      lt_prog_compiler_static_F77='-Bstatic'
14608      ;;
14609
14610    sysv4*MP*)
14611      if test -d /usr/nec ;then
14612	lt_prog_compiler_pic_F77='-Kconform_pic'
14613	lt_prog_compiler_static_F77='-Bstatic'
14614      fi
14615      ;;
14616
14617    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14618      lt_prog_compiler_wl_F77='-Wl,'
14619      lt_prog_compiler_pic_F77='-KPIC'
14620      lt_prog_compiler_static_F77='-Bstatic'
14621      ;;
14622
14623    unicos*)
14624      lt_prog_compiler_wl_F77='-Wl,'
14625      lt_prog_compiler_can_build_shared_F77=no
14626      ;;
14627
14628    uts4*)
14629      lt_prog_compiler_pic_F77='-pic'
14630      lt_prog_compiler_static_F77='-Bstatic'
14631      ;;
14632
14633    *)
14634      lt_prog_compiler_can_build_shared_F77=no
14635      ;;
14636    esac
14637  fi
14638
14639{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14640$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14641
14642#
14643# Check to make sure the PIC flag actually works.
14644#
14645if test -n "$lt_prog_compiler_pic_F77"; then
14646
14647{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14648$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14649if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14650  $as_echo_n "(cached) " >&6
14651else
14652  lt_cv_prog_compiler_pic_works_F77=no
14653  ac_outfile=conftest.$ac_objext
14654   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14655   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14656   # Insert the option either (1) after the last *FLAGS variable, or
14657   # (2) before a word containing "conftest.", or (3) at the end.
14658   # Note that $ac_compile itself does not contain backslashes and begins
14659   # with a dollar sign (not a hyphen), so the echo should work correctly.
14660   # The option is referenced via a variable to avoid confusing sed.
14661   lt_compile=`echo "$ac_compile" | $SED \
14662   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14663   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14664   -e 's:$: $lt_compiler_flag:'`
14665   (eval echo "\"\$as_me:14665: $lt_compile\"" >&5)
14666   (eval "$lt_compile" 2>conftest.err)
14667   ac_status=$?
14668   cat conftest.err >&5
14669   echo "$as_me:14669: \$? = $ac_status" >&5
14670   if (exit $ac_status) && test -s "$ac_outfile"; then
14671     # The compiler can only warn and ignore the option if not recognized
14672     # So say no if there are warnings other than the usual output.
14673     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14674     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14675     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14676       lt_cv_prog_compiler_pic_works_F77=yes
14677     fi
14678   fi
14679   $rm conftest*
14680
14681fi
14682{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14683$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14684
14685if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14686    case $lt_prog_compiler_pic_F77 in
14687     "" | " "*) ;;
14688     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14689     esac
14690else
14691    lt_prog_compiler_pic_F77=
14692     lt_prog_compiler_can_build_shared_F77=no
14693fi
14694
14695fi
14696case $host_os in
14697  # For platforms which do not support PIC, -DPIC is meaningless:
14698  *djgpp*)
14699    lt_prog_compiler_pic_F77=
14700    ;;
14701  *)
14702    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14703    ;;
14704esac
14705
14706#
14707# Check to make sure the static flag actually works.
14708#
14709wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14710{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14711$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14712if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14713  $as_echo_n "(cached) " >&6
14714else
14715  lt_cv_prog_compiler_static_works_F77=no
14716   save_LDFLAGS="$LDFLAGS"
14717   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14718   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14719   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14720     # The linker can only warn and ignore the option if not recognized
14721     # So say no if there are warnings
14722     if test -s conftest.err; then
14723       # Append any errors to the config.log.
14724       cat conftest.err 1>&5
14725       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14726       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727       if diff conftest.exp conftest.er2 >/dev/null; then
14728         lt_cv_prog_compiler_static_works_F77=yes
14729       fi
14730     else
14731       lt_cv_prog_compiler_static_works_F77=yes
14732     fi
14733   fi
14734   $rm -r conftest*
14735   LDFLAGS="$save_LDFLAGS"
14736
14737fi
14738{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14739$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14740
14741if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14742    :
14743else
14744    lt_prog_compiler_static_F77=
14745fi
14746
14747
14748{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14749$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14750if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14751  $as_echo_n "(cached) " >&6
14752else
14753  lt_cv_prog_compiler_c_o_F77=no
14754   $rm -r conftest 2>/dev/null
14755   mkdir conftest
14756   cd conftest
14757   mkdir out
14758   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759
14760   lt_compiler_flag="-o out/conftest2.$ac_objext"
14761   # Insert the option either (1) after the last *FLAGS variable, or
14762   # (2) before a word containing "conftest.", or (3) at the end.
14763   # Note that $ac_compile itself does not contain backslashes and begins
14764   # with a dollar sign (not a hyphen), so the echo should work correctly.
14765   lt_compile=`echo "$ac_compile" | $SED \
14766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768   -e 's:$: $lt_compiler_flag:'`
14769   (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770   (eval "$lt_compile" 2>out/conftest.err)
14771   ac_status=$?
14772   cat out/conftest.err >&5
14773   echo "$as_me:14773: \$? = $ac_status" >&5
14774   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14775   then
14776     # The compiler can only warn and ignore the option if not recognized
14777     # So say no if there are warnings
14778     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14779     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14780     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14781       lt_cv_prog_compiler_c_o_F77=yes
14782     fi
14783   fi
14784   chmod u+w . 2>&5
14785   $rm conftest*
14786   # SGI C++ compiler will create directory out/ii_files/ for
14787   # template instantiation
14788   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14789   $rm out/* && rmdir out
14790   cd ..
14791   rmdir conftest
14792   $rm conftest*
14793
14794fi
14795{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14796$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14797
14798
14799hard_links="nottested"
14800if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14801  # do not overwrite the value of need_locks provided by the user
14802  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14803$as_echo_n "checking if we can lock with hard links... " >&6; }
14804  hard_links=yes
14805  $rm conftest*
14806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14807  touch conftest.a
14808  ln conftest.a conftest.b 2>&5 || hard_links=no
14809  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14810  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14811$as_echo "$hard_links" >&6; }
14812  if test "$hard_links" = no; then
14813    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14814$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14815    need_locks=warn
14816  fi
14817else
14818  need_locks=no
14819fi
14820
14821{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14822$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14823
14824  runpath_var=
14825  allow_undefined_flag_F77=
14826  enable_shared_with_static_runtimes_F77=no
14827  archive_cmds_F77=
14828  archive_expsym_cmds_F77=
14829  old_archive_From_new_cmds_F77=
14830  old_archive_from_expsyms_cmds_F77=
14831  export_dynamic_flag_spec_F77=
14832  whole_archive_flag_spec_F77=
14833  thread_safe_flag_spec_F77=
14834  hardcode_libdir_flag_spec_F77=
14835  hardcode_libdir_flag_spec_ld_F77=
14836  hardcode_libdir_separator_F77=
14837  hardcode_direct_F77=no
14838  hardcode_minus_L_F77=no
14839  hardcode_shlibpath_var_F77=unsupported
14840  link_all_deplibs_F77=unknown
14841  hardcode_automatic_F77=no
14842  module_cmds_F77=
14843  module_expsym_cmds_F77=
14844  always_export_symbols_F77=no
14845  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14846  # include_expsyms should be a list of space-separated symbols to be *always*
14847  # included in the symbol list
14848  include_expsyms_F77=
14849  # exclude_expsyms can be an extended regexp of symbols to exclude
14850  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14851  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14852  # as well as any symbol that contains `d'.
14853  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14854  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14855  # platforms (ab)use it in PIC code, but their linkers get confused if
14856  # the symbol is explicitly referenced.  Since portable code cannot
14857  # rely on this symbol name, it's probably fine to never include it in
14858  # preloaded symbol tables.
14859  # Exclude shared library initialization/finalization symbols.
14860  extract_expsyms_cmds=
14861  # Just being paranoid about ensuring that cc_basename is set.
14862  for cc_temp in $compiler""; do
14863  case $cc_temp in
14864    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14865    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14866    \-*) ;;
14867    *) break;;
14868  esac
14869done
14870cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14871
14872  case $host_os in
14873  cygwin* | mingw* | pw32*)
14874    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14875    # When not using gcc, we currently assume that we are using
14876    # Microsoft Visual C++.
14877    if test "$GCC" != yes; then
14878      with_gnu_ld=no
14879    fi
14880    ;;
14881  interix*)
14882    # we just hope/assume this is gcc and not c89 (= MSVC++)
14883    with_gnu_ld=yes
14884    ;;
14885  openbsd*)
14886    with_gnu_ld=no
14887    ;;
14888  esac
14889
14890  ld_shlibs_F77=yes
14891  if test "$with_gnu_ld" = yes; then
14892    # If archive_cmds runs LD, not CC, wlarc should be empty
14893    wlarc='${wl}'
14894
14895    # Set some defaults for GNU ld with shared library support. These
14896    # are reset later if shared libraries are not supported. Putting them
14897    # here allows them to be overridden if necessary.
14898    runpath_var=LD_RUN_PATH
14899    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14900    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14901    # ancient GNU ld didn't support --whole-archive et. al.
14902    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14903	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14904      else
14905  	whole_archive_flag_spec_F77=
14906    fi
14907    supports_anon_versioning=no
14908    case `$LD -v 2>/dev/null` in
14909      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14910      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14911      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14912      *\ 2.11.*) ;; # other 2.11 versions
14913      *) supports_anon_versioning=yes ;;
14914    esac
14915
14916    # See if GNU ld supports shared libraries.
14917    case $host_os in
14918    aix[3-9]*)
14919      # On AIX/PPC, the GNU linker is very broken
14920      if test "$host_cpu" != ia64; then
14921	ld_shlibs_F77=no
14922	cat <<EOF 1>&2
14923
14924*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14925*** to be unable to reliably create shared libraries on AIX.
14926*** Therefore, libtool is disabling shared libraries support.  If you
14927*** really care for shared libraries, you may want to modify your PATH
14928*** so that a non-GNU linker is found, and then restart.
14929
14930EOF
14931      fi
14932      ;;
14933
14934    amigaos*)
14935      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)'
14936      hardcode_libdir_flag_spec_F77='-L$libdir'
14937      hardcode_minus_L_F77=yes
14938
14939      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14940      # that the semantics of dynamic libraries on AmigaOS, at least up
14941      # to version 4, is to share data among multiple programs linked
14942      # with the same dynamic library.  Since this doesn't match the
14943      # behavior of shared libraries on other platforms, we can't use
14944      # them.
14945      ld_shlibs_F77=no
14946      ;;
14947
14948    beos*)
14949      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14950	allow_undefined_flag_F77=unsupported
14951	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14952	# support --undefined.  This deserves some investigation.  FIXME
14953	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954      else
14955	ld_shlibs_F77=no
14956      fi
14957      ;;
14958
14959    cygwin* | mingw* | pw32*)
14960      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14961      # as there is no search path for DLLs.
14962      hardcode_libdir_flag_spec_F77='-L$libdir'
14963      allow_undefined_flag_F77=unsupported
14964      always_export_symbols_F77=no
14965      enable_shared_with_static_runtimes_F77=yes
14966      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14967
14968      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14969        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14970	# If the export-symbols file already is a .def file (1st line
14971	# is EXPORTS), use it as is; otherwise, prepend...
14972	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14973	  cp $export_symbols $output_objdir/$soname.def;
14974	else
14975	  echo EXPORTS > $output_objdir/$soname.def;
14976	  cat $export_symbols >> $output_objdir/$soname.def;
14977	fi~
14978	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14979      else
14980	ld_shlibs_F77=no
14981      fi
14982      ;;
14983
14984    interix[3-9]*)
14985      hardcode_direct_F77=no
14986      hardcode_shlibpath_var_F77=no
14987      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14988      export_dynamic_flag_spec_F77='${wl}-E'
14989      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14990      # Instead, shared libraries are loaded at an image base (0x10000000 by
14991      # default) and relocated if they conflict, which is a slow very memory
14992      # consuming and fragmenting process.  To avoid this, we pick a random,
14993      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14994      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14995      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'
14996      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'
14997      ;;
14998
14999    gnu* | linux* | k*bsd*-gnu)
15000      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001	tmp_addflag=
15002	case $cc_basename,$host_cpu in
15003	pgcc*)				# Portland Group C compiler
15004	  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'
15005	  tmp_addflag=' $pic_flag'
15006	  ;;
15007	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15008	  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'
15009	  tmp_addflag=' $pic_flag -Mnomain' ;;
15010	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15011	  tmp_addflag=' -i_dynamic' ;;
15012	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15013	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15014	ifc* | ifort*)			# Intel Fortran compiler
15015	  tmp_addflag=' -nofor_main' ;;
15016	esac
15017	case `$CC -V 2>&1 | sed 5q` in
15018	*Sun\ C*)			# Sun C 5.9
15019	  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'
15020	  tmp_sharedflag='-G' ;;
15021	*Sun\ F*)			# Sun Fortran 8.3
15022	  tmp_sharedflag='-G' ;;
15023	*)
15024	  tmp_sharedflag='-shared' ;;
15025	esac
15026	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15027
15028	if test $supports_anon_versioning = yes; then
15029	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15030  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15031  $echo "local: *; };" >> $output_objdir/$libname.ver~
15032	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15033	fi
15034      else
15035	ld_shlibs_F77=no
15036      fi
15037      ;;
15038
15039    netbsd*)
15040      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15041	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15042	wlarc=
15043      else
15044	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15045	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15046      fi
15047      ;;
15048
15049    solaris*)
15050      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15051	ld_shlibs_F77=no
15052	cat <<EOF 1>&2
15053
15054*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15055*** create shared libraries on Solaris systems.  Therefore, libtool
15056*** is disabling shared libraries support.  We urge you to upgrade GNU
15057*** binutils to release 2.9.1 or newer.  Another option is to modify
15058*** your PATH or compiler configuration so that the native linker is
15059*** used, and then restart.
15060
15061EOF
15062      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15063	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15064	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15065      else
15066	ld_shlibs_F77=no
15067      fi
15068      ;;
15069
15070    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15071      case `$LD -v 2>&1` in
15072        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15073	ld_shlibs_F77=no
15074	cat <<_LT_EOF 1>&2
15075
15076*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15077*** reliably create shared libraries on SCO systems.  Therefore, libtool
15078*** is disabling shared libraries support.  We urge you to upgrade GNU
15079*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15080*** your PATH or compiler configuration so that the native linker is
15081*** used, and then restart.
15082
15083_LT_EOF
15084	;;
15085	*)
15086	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15087	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15088	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15089	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15090	  else
15091	    ld_shlibs_F77=no
15092	  fi
15093	;;
15094      esac
15095      ;;
15096
15097    sunos4*)
15098      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15099      wlarc=
15100      hardcode_direct_F77=yes
15101      hardcode_shlibpath_var_F77=no
15102      ;;
15103
15104    *)
15105      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15108      else
15109	ld_shlibs_F77=no
15110      fi
15111      ;;
15112    esac
15113
15114    if test "$ld_shlibs_F77" = no; then
15115      runpath_var=
15116      hardcode_libdir_flag_spec_F77=
15117      export_dynamic_flag_spec_F77=
15118      whole_archive_flag_spec_F77=
15119    fi
15120  else
15121    # PORTME fill in a description of your system's linker (not GNU ld)
15122    case $host_os in
15123    aix3*)
15124      allow_undefined_flag_F77=unsupported
15125      always_export_symbols_F77=yes
15126      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'
15127      # Note: this linker hardcodes the directories in LIBPATH if there
15128      # are no directories specified by -L.
15129      hardcode_minus_L_F77=yes
15130      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15131	# Neither direct hardcoding nor static linking is supported with a
15132	# broken collect2.
15133	hardcode_direct_F77=unsupported
15134      fi
15135      ;;
15136
15137    aix[4-9]*)
15138      if test "$host_cpu" = ia64; then
15139	# On IA64, the linker does run time linking by default, so we don't
15140	# have to do anything special.
15141	aix_use_runtimelinking=no
15142	exp_sym_flag='-Bexport'
15143	no_entry_flag=""
15144      else
15145	# If we're using GNU nm, then we don't want the "-C" option.
15146	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15147	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15148	  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'
15149	else
15150	  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'
15151	fi
15152	aix_use_runtimelinking=no
15153
15154	# Test if we are trying to use run time linking or normal
15155	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15156	# need to do runtime linking.
15157	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15158	  for ld_flag in $LDFLAGS; do
15159  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15160  	    aix_use_runtimelinking=yes
15161  	    break
15162  	  fi
15163	  done
15164	  ;;
15165	esac
15166
15167	exp_sym_flag='-bexport'
15168	no_entry_flag='-bnoentry'
15169      fi
15170
15171      # When large executables or shared objects are built, AIX ld can
15172      # have problems creating the table of contents.  If linking a library
15173      # or program results in "error TOC overflow" add -mminimal-toc to
15174      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15175      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15176
15177      archive_cmds_F77=''
15178      hardcode_direct_F77=yes
15179      hardcode_libdir_separator_F77=':'
15180      link_all_deplibs_F77=yes
15181
15182      if test "$GCC" = yes; then
15183	case $host_os in aix4.[012]|aix4.[012].*)
15184	# We only want to do this on AIX 4.2 and lower, the check
15185	# below for broken collect2 doesn't work under 4.3+
15186	  collect2name=`${CC} -print-prog-name=collect2`
15187	  if test -f "$collect2name" && \
15188  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15189	  then
15190  	  # We have reworked collect2
15191  	  :
15192	  else
15193  	  # We have old collect2
15194  	  hardcode_direct_F77=unsupported
15195  	  # It fails to find uninstalled libraries when the uninstalled
15196  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15197  	  # to unsupported forces relinking
15198  	  hardcode_minus_L_F77=yes
15199  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15200  	  hardcode_libdir_separator_F77=
15201	  fi
15202	  ;;
15203	esac
15204	shared_flag='-shared'
15205	if test "$aix_use_runtimelinking" = yes; then
15206	  shared_flag="$shared_flag "'${wl}-G'
15207	fi
15208      else
15209	# not using gcc
15210	if test "$host_cpu" = ia64; then
15211  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15212  	# chokes on -Wl,-G. The following line is correct:
15213	  shared_flag='-G'
15214	else
15215	  if test "$aix_use_runtimelinking" = yes; then
15216	    shared_flag='${wl}-G'
15217	  else
15218	    shared_flag='${wl}-bM:SRE'
15219	  fi
15220	fi
15221      fi
15222
15223      # It seems that -bexpall does not export symbols beginning with
15224      # underscore (_), so it is better to generate a list of symbols to export.
15225      always_export_symbols_F77=yes
15226      if test "$aix_use_runtimelinking" = yes; then
15227	# Warning - without using the other runtime loading flags (-brtl),
15228	# -berok will link without error, but may produce a broken library.
15229	allow_undefined_flag_F77='-berok'
15230       # Determine the default libpath from the value encoded in an empty executable.
15231       cat >conftest.$ac_ext <<_ACEOF
15232      program main
15233
15234      end
15235_ACEOF
15236rm -f conftest.$ac_objext conftest$ac_exeext
15237if { (ac_try="$ac_link"
15238case "(($ac_try" in
15239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240  *) ac_try_echo=$ac_try;;
15241esac
15242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15243$as_echo "$ac_try_echo") >&5
15244  (eval "$ac_link") 2>conftest.er1
15245  ac_status=$?
15246  grep -v '^ *+' conftest.er1 >conftest.err
15247  rm -f conftest.er1
15248  cat conftest.err >&5
15249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250  (exit $ac_status); } && {
15251	 test -z "$ac_f77_werror_flag" ||
15252	 test ! -s conftest.err
15253       } && test -s conftest$ac_exeext && {
15254	 test "$cross_compiling" = yes ||
15255	 $as_test_x conftest$ac_exeext
15256       }; then
15257
15258lt_aix_libpath_sed='
15259    /Import File Strings/,/^$/ {
15260	/^0/ {
15261	    s/^0  *\(.*\)$/\1/
15262	    p
15263	}
15264    }'
15265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15266# Check for a 64-bit object if we didn't find anything.
15267if test -z "$aix_libpath"; then
15268  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15269fi
15270else
15271  $as_echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274
15275fi
15276
15277rm -rf conftest.dSYM
15278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279      conftest$ac_exeext conftest.$ac_ext
15280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15281
15282       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15283	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"
15284       else
15285	if test "$host_cpu" = ia64; then
15286	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15287	  allow_undefined_flag_F77="-z nodefs"
15288	  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"
15289	else
15290	 # Determine the default libpath from the value encoded in an empty executable.
15291	 cat >conftest.$ac_ext <<_ACEOF
15292      program main
15293
15294      end
15295_ACEOF
15296rm -f conftest.$ac_objext conftest$ac_exeext
15297if { (ac_try="$ac_link"
15298case "(($ac_try" in
15299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300  *) ac_try_echo=$ac_try;;
15301esac
15302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15303$as_echo "$ac_try_echo") >&5
15304  (eval "$ac_link") 2>conftest.er1
15305  ac_status=$?
15306  grep -v '^ *+' conftest.er1 >conftest.err
15307  rm -f conftest.er1
15308  cat conftest.err >&5
15309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310  (exit $ac_status); } && {
15311	 test -z "$ac_f77_werror_flag" ||
15312	 test ! -s conftest.err
15313       } && test -s conftest$ac_exeext && {
15314	 test "$cross_compiling" = yes ||
15315	 $as_test_x conftest$ac_exeext
15316       }; then
15317
15318lt_aix_libpath_sed='
15319    /Import File Strings/,/^$/ {
15320	/^0/ {
15321	    s/^0  *\(.*\)$/\1/
15322	    p
15323	}
15324    }'
15325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15326# Check for a 64-bit object if we didn't find anything.
15327if test -z "$aix_libpath"; then
15328  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15329fi
15330else
15331  $as_echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334
15335fi
15336
15337rm -rf conftest.dSYM
15338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339      conftest$ac_exeext conftest.$ac_ext
15340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15341
15342	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15343	  # Warning - without using the other run time loading flags,
15344	  # -berok will link without error, but may produce a broken library.
15345	  no_undefined_flag_F77=' ${wl}-bernotok'
15346	  allow_undefined_flag_F77=' ${wl}-berok'
15347	  # Exported symbols can be pulled into shared objects from archives
15348	  whole_archive_flag_spec_F77='$convenience'
15349	  archive_cmds_need_lc_F77=yes
15350	  # This is similar to how AIX traditionally builds its shared libraries.
15351	  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'
15352	fi
15353      fi
15354      ;;
15355
15356    amigaos*)
15357      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)'
15358      hardcode_libdir_flag_spec_F77='-L$libdir'
15359      hardcode_minus_L_F77=yes
15360      # see comment about different semantics on the GNU ld section
15361      ld_shlibs_F77=no
15362      ;;
15363
15364    bsdi[45]*)
15365      export_dynamic_flag_spec_F77=-rdynamic
15366      ;;
15367
15368    cygwin* | mingw* | pw32*)
15369      # When not using gcc, we currently assume that we are using
15370      # Microsoft Visual C++.
15371      # hardcode_libdir_flag_spec is actually meaningless, as there is
15372      # no search path for DLLs.
15373      hardcode_libdir_flag_spec_F77=' '
15374      allow_undefined_flag_F77=unsupported
15375      # Tell ltmain to make .lib files, not .a files.
15376      libext=lib
15377      # Tell ltmain to make .dll files, not .so files.
15378      shrext_cmds=".dll"
15379      # FIXME: Setting linknames here is a bad hack.
15380      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15381      # The linker will automatically build a .lib file if we build a DLL.
15382      old_archive_From_new_cmds_F77='true'
15383      # FIXME: Should let the user specify the lib program.
15384      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15385      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15386      enable_shared_with_static_runtimes_F77=yes
15387      ;;
15388
15389    darwin* | rhapsody*)
15390      case $host_os in
15391        rhapsody* | darwin1.[012])
15392         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15393         ;;
15394       *) # Darwin 1.3 on
15395         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15396           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15397         else
15398           case ${MACOSX_DEPLOYMENT_TARGET} in
15399             10.[012])
15400               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15401               ;;
15402             10.*)
15403               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15404               ;;
15405           esac
15406         fi
15407         ;;
15408      esac
15409      archive_cmds_need_lc_F77=no
15410      hardcode_direct_F77=no
15411      hardcode_automatic_F77=yes
15412      hardcode_shlibpath_var_F77=unsupported
15413      whole_archive_flag_spec_F77=''
15414      link_all_deplibs_F77=yes
15415    if test "$GCC" = yes ; then
15416    	output_verbose_link_cmd='echo'
15417        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}"
15418        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15419        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}"
15420        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}"
15421    else
15422      case $cc_basename in
15423        xlc*)
15424         output_verbose_link_cmd='echo'
15425         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15426         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15427          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15428         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}'
15429          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}'
15430          ;;
15431       *)
15432         ld_shlibs_F77=no
15433          ;;
15434      esac
15435    fi
15436      ;;
15437
15438    dgux*)
15439      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15440      hardcode_libdir_flag_spec_F77='-L$libdir'
15441      hardcode_shlibpath_var_F77=no
15442      ;;
15443
15444    freebsd1*)
15445      ld_shlibs_F77=no
15446      ;;
15447
15448    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15449    # support.  Future versions do this automatically, but an explicit c++rt0.o
15450    # does not break anything, and helps significantly (at the cost of a little
15451    # extra space).
15452    freebsd2.2*)
15453      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15454      hardcode_libdir_flag_spec_F77='-R$libdir'
15455      hardcode_direct_F77=yes
15456      hardcode_shlibpath_var_F77=no
15457      ;;
15458
15459    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15460    freebsd2*)
15461      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15462      hardcode_direct_F77=yes
15463      hardcode_minus_L_F77=yes
15464      hardcode_shlibpath_var_F77=no
15465      ;;
15466
15467    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15468    freebsd* | dragonfly*)
15469      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15470      hardcode_libdir_flag_spec_F77='-R$libdir'
15471      hardcode_direct_F77=yes
15472      hardcode_shlibpath_var_F77=no
15473      ;;
15474
15475    hpux9*)
15476      if test "$GCC" = yes; then
15477	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'
15478      else
15479	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'
15480      fi
15481      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15482      hardcode_libdir_separator_F77=:
15483      hardcode_direct_F77=yes
15484
15485      # hardcode_minus_L: Not really in the search PATH,
15486      # but as the default location of the library.
15487      hardcode_minus_L_F77=yes
15488      export_dynamic_flag_spec_F77='${wl}-E'
15489      ;;
15490
15491    hpux10*)
15492      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15493	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15494      else
15495	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15496      fi
15497      if test "$with_gnu_ld" = no; then
15498	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15499	hardcode_libdir_separator_F77=:
15500
15501	hardcode_direct_F77=yes
15502	export_dynamic_flag_spec_F77='${wl}-E'
15503
15504	# hardcode_minus_L: Not really in the search PATH,
15505	# but as the default location of the library.
15506	hardcode_minus_L_F77=yes
15507      fi
15508      ;;
15509
15510    hpux11*)
15511      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15512	case $host_cpu in
15513	hppa*64*)
15514	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515	  ;;
15516	ia64*)
15517	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15518	  ;;
15519	*)
15520	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15521	  ;;
15522	esac
15523      else
15524	case $host_cpu in
15525	hppa*64*)
15526	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15527	  ;;
15528	ia64*)
15529	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15530	  ;;
15531	*)
15532	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15533	  ;;
15534	esac
15535      fi
15536      if test "$with_gnu_ld" = no; then
15537	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15538	hardcode_libdir_separator_F77=:
15539
15540	case $host_cpu in
15541	hppa*64*|ia64*)
15542	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15543	  hardcode_direct_F77=no
15544	  hardcode_shlibpath_var_F77=no
15545	  ;;
15546	*)
15547	  hardcode_direct_F77=yes
15548	  export_dynamic_flag_spec_F77='${wl}-E'
15549
15550	  # hardcode_minus_L: Not really in the search PATH,
15551	  # but as the default location of the library.
15552	  hardcode_minus_L_F77=yes
15553	  ;;
15554	esac
15555      fi
15556      ;;
15557
15558    irix5* | irix6* | nonstopux*)
15559      if test "$GCC" = yes; then
15560	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'
15561      else
15562	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'
15563	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15564      fi
15565      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15566      hardcode_libdir_separator_F77=:
15567      link_all_deplibs_F77=yes
15568      ;;
15569
15570    netbsd*)
15571      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15572	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15573      else
15574	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15575      fi
15576      hardcode_libdir_flag_spec_F77='-R$libdir'
15577      hardcode_direct_F77=yes
15578      hardcode_shlibpath_var_F77=no
15579      ;;
15580
15581    newsos6)
15582      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583      hardcode_direct_F77=yes
15584      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585      hardcode_libdir_separator_F77=:
15586      hardcode_shlibpath_var_F77=no
15587      ;;
15588
15589    openbsd*)
15590      if test -f /usr/libexec/ld.so; then
15591	hardcode_direct_F77=yes
15592	hardcode_shlibpath_var_F77=no
15593	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15594	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15595	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15596	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15597	  export_dynamic_flag_spec_F77='${wl}-E'
15598	else
15599	  case $host_os in
15600	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15601	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15602	     hardcode_libdir_flag_spec_F77='-R$libdir'
15603	     ;;
15604	   *)
15605	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15606	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15607	     ;;
15608	  esac
15609        fi
15610      else
15611	ld_shlibs_F77=no
15612      fi
15613      ;;
15614
15615    os2*)
15616      hardcode_libdir_flag_spec_F77='-L$libdir'
15617      hardcode_minus_L_F77=yes
15618      allow_undefined_flag_F77=unsupported
15619      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'
15620      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15621      ;;
15622
15623    osf3*)
15624      if test "$GCC" = yes; then
15625	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15626	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'
15627      else
15628	allow_undefined_flag_F77=' -expect_unresolved \*'
15629	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'
15630      fi
15631      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15632      hardcode_libdir_separator_F77=:
15633      ;;
15634
15635    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15636      if test "$GCC" = yes; then
15637	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15638	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'
15639	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15640      else
15641	allow_undefined_flag_F77=' -expect_unresolved \*'
15642	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'
15643	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~
15644	$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'
15645
15646	# Both c and cxx compiler support -rpath directly
15647	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15648      fi
15649      hardcode_libdir_separator_F77=:
15650      ;;
15651
15652    solaris*)
15653      no_undefined_flag_F77=' -z text'
15654      if test "$GCC" = yes; then
15655	wlarc='${wl}'
15656	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15658	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15659      else
15660	wlarc=''
15661	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15662	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15663  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15664      fi
15665      hardcode_libdir_flag_spec_F77='-R$libdir'
15666      hardcode_shlibpath_var_F77=no
15667      case $host_os in
15668      solaris2.[0-5] | solaris2.[0-5].*) ;;
15669      *)
15670	# The compiler driver will combine and reorder linker options,
15671	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15672	# but is careful enough not to reorder.
15673 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15674	if test "$GCC" = yes; then
15675	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15676	else
15677	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15678	fi
15679	;;
15680      esac
15681      link_all_deplibs_F77=yes
15682      ;;
15683
15684    sunos4*)
15685      if test "x$host_vendor" = xsequent; then
15686	# Use $CC to link under sequent, because it throws in some extra .o
15687	# files that make .init and .fini sections work.
15688	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15689      else
15690	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15691      fi
15692      hardcode_libdir_flag_spec_F77='-L$libdir'
15693      hardcode_direct_F77=yes
15694      hardcode_minus_L_F77=yes
15695      hardcode_shlibpath_var_F77=no
15696      ;;
15697
15698    sysv4)
15699      case $host_vendor in
15700	sni)
15701	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702	  hardcode_direct_F77=yes # is this really true???
15703	;;
15704	siemens)
15705	  ## LD is ld it makes a PLAMLIB
15706	  ## CC just makes a GrossModule.
15707	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15708	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15709	  hardcode_direct_F77=no
15710        ;;
15711	motorola)
15712	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15714	;;
15715      esac
15716      runpath_var='LD_RUN_PATH'
15717      hardcode_shlibpath_var_F77=no
15718      ;;
15719
15720    sysv4.3*)
15721      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722      hardcode_shlibpath_var_F77=no
15723      export_dynamic_flag_spec_F77='-Bexport'
15724      ;;
15725
15726    sysv4*MP*)
15727      if test -d /usr/nec; then
15728	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15729	hardcode_shlibpath_var_F77=no
15730	runpath_var=LD_RUN_PATH
15731	hardcode_runpath_var=yes
15732	ld_shlibs_F77=yes
15733      fi
15734      ;;
15735
15736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15737      no_undefined_flag_F77='${wl}-z,text'
15738      archive_cmds_need_lc_F77=no
15739      hardcode_shlibpath_var_F77=no
15740      runpath_var='LD_RUN_PATH'
15741
15742      if test "$GCC" = yes; then
15743	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15744	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15745      else
15746	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748      fi
15749      ;;
15750
15751    sysv5* | sco3.2v5* | sco5v6*)
15752      # Note: We can NOT use -z defs as we might desire, because we do not
15753      # link with -lc, and that would cause any symbols used from libc to
15754      # always be unresolved, which means just about no library would
15755      # ever link correctly.  If we're not using GNU ld we use -z text
15756      # though, which does catch some bad symbols but isn't as heavy-handed
15757      # as -z defs.
15758      no_undefined_flag_F77='${wl}-z,text'
15759      allow_undefined_flag_F77='${wl}-z,nodefs'
15760      archive_cmds_need_lc_F77=no
15761      hardcode_shlibpath_var_F77=no
15762      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15763      hardcode_libdir_separator_F77=':'
15764      link_all_deplibs_F77=yes
15765      export_dynamic_flag_spec_F77='${wl}-Bexport'
15766      runpath_var='LD_RUN_PATH'
15767
15768      if test "$GCC" = yes; then
15769	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15770	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771      else
15772	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774      fi
15775      ;;
15776
15777    uts4*)
15778      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15779      hardcode_libdir_flag_spec_F77='-L$libdir'
15780      hardcode_shlibpath_var_F77=no
15781      ;;
15782
15783    *)
15784      ld_shlibs_F77=no
15785      ;;
15786    esac
15787  fi
15788
15789{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15790$as_echo "$ld_shlibs_F77" >&6; }
15791test "$ld_shlibs_F77" = no && can_build_shared=no
15792
15793#
15794# Do we need to explicitly link libc?
15795#
15796case "x$archive_cmds_need_lc_F77" in
15797x|xyes)
15798  # Assume -lc should be added
15799  archive_cmds_need_lc_F77=yes
15800
15801  if test "$enable_shared" = yes && test "$GCC" = yes; then
15802    case $archive_cmds_F77 in
15803    *'~'*)
15804      # FIXME: we may have to deal with multi-command sequences.
15805      ;;
15806    '$CC '*)
15807      # Test whether the compiler implicitly links with -lc since on some
15808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15809      # to ld, don't add -lc before -lgcc.
15810      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15811$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15812      $rm conftest*
15813      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15814
15815      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816  (eval $ac_compile) 2>&5
15817  ac_status=$?
15818  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819  (exit $ac_status); } 2>conftest.err; then
15820        soname=conftest
15821        lib=conftest
15822        libobjs=conftest.$ac_objext
15823        deplibs=
15824        wl=$lt_prog_compiler_wl_F77
15825	pic_flag=$lt_prog_compiler_pic_F77
15826        compiler_flags=-v
15827        linker_flags=-v
15828        verstring=
15829        output_objdir=.
15830        libname=conftest
15831        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15832        allow_undefined_flag_F77=
15833        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15834  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15835  ac_status=$?
15836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837  (exit $ac_status); }
15838        then
15839	  archive_cmds_need_lc_F77=no
15840        else
15841	  archive_cmds_need_lc_F77=yes
15842        fi
15843        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15844      else
15845        cat conftest.err 1>&5
15846      fi
15847      $rm conftest*
15848      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15849$as_echo "$archive_cmds_need_lc_F77" >&6; }
15850      ;;
15851    esac
15852  fi
15853  ;;
15854esac
15855
15856{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15857$as_echo_n "checking dynamic linker characteristics... " >&6; }
15858library_names_spec=
15859libname_spec='lib$name'
15860soname_spec=
15861shrext_cmds=".so"
15862postinstall_cmds=
15863postuninstall_cmds=
15864finish_cmds=
15865finish_eval=
15866shlibpath_var=
15867shlibpath_overrides_runpath=unknown
15868version_type=none
15869dynamic_linker="$host_os ld.so"
15870sys_lib_dlsearch_path_spec="/lib /usr/lib"
15871
15872need_lib_prefix=unknown
15873hardcode_into_libs=no
15874
15875# when you set need_version to no, make sure it does not cause -set_version
15876# flags to be left without arguments
15877need_version=unknown
15878
15879case $host_os in
15880aix3*)
15881  version_type=linux
15882  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15883  shlibpath_var=LIBPATH
15884
15885  # AIX 3 has no versioning support, so we append a major version to the name.
15886  soname_spec='${libname}${release}${shared_ext}$major'
15887  ;;
15888
15889aix[4-9]*)
15890  version_type=linux
15891  need_lib_prefix=no
15892  need_version=no
15893  hardcode_into_libs=yes
15894  if test "$host_cpu" = ia64; then
15895    # AIX 5 supports IA64
15896    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15897    shlibpath_var=LD_LIBRARY_PATH
15898  else
15899    # With GCC up to 2.95.x, collect2 would create an import file
15900    # for dependence libraries.  The import file would start with
15901    # the line `#! .'.  This would cause the generated library to
15902    # depend on `.', always an invalid library.  This was fixed in
15903    # development snapshots of GCC prior to 3.0.
15904    case $host_os in
15905      aix4 | aix4.[01] | aix4.[01].*)
15906      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15907	   echo ' yes '
15908	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15909	:
15910      else
15911	can_build_shared=no
15912      fi
15913      ;;
15914    esac
15915    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15916    # soname into executable. Probably we can add versioning support to
15917    # collect2, so additional links can be useful in future.
15918    if test "$aix_use_runtimelinking" = yes; then
15919      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15920      # instead of lib<name>.a to let people know that these are not
15921      # typical AIX shared libraries.
15922      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923    else
15924      # We preserve .a as extension for shared libraries through AIX4.2
15925      # and later when we are not doing run time linking.
15926      library_names_spec='${libname}${release}.a $libname.a'
15927      soname_spec='${libname}${release}${shared_ext}$major'
15928    fi
15929    shlibpath_var=LIBPATH
15930  fi
15931  ;;
15932
15933amigaos*)
15934  library_names_spec='$libname.ixlibrary $libname.a'
15935  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15936  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'
15937  ;;
15938
15939beos*)
15940  library_names_spec='${libname}${shared_ext}'
15941  dynamic_linker="$host_os ld.so"
15942  shlibpath_var=LIBRARY_PATH
15943  ;;
15944
15945bsdi[45]*)
15946  version_type=linux
15947  need_version=no
15948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949  soname_spec='${libname}${release}${shared_ext}$major'
15950  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15953  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15954  # the default ld.so.conf also contains /usr/contrib/lib and
15955  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15956  # libtool to hard-code these into programs
15957  ;;
15958
15959cygwin* | mingw* | pw32*)
15960  version_type=windows
15961  shrext_cmds=".dll"
15962  need_version=no
15963  need_lib_prefix=no
15964
15965  case $GCC,$host_os in
15966  yes,cygwin* | yes,mingw* | yes,pw32*)
15967    library_names_spec='$libname.dll.a'
15968    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15969    postinstall_cmds='base_file=`basename \${file}`~
15970      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15971      dldir=$destdir/`dirname \$dlpath`~
15972      test -d \$dldir || mkdir -p \$dldir~
15973      $install_prog $dir/$dlname \$dldir/$dlname~
15974      chmod a+x \$dldir/$dlname'
15975    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15976      dlpath=$dir/\$dldll~
15977       $rm \$dlpath'
15978    shlibpath_overrides_runpath=yes
15979
15980    case $host_os in
15981    cygwin*)
15982      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15983      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15984      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15985      ;;
15986    mingw*)
15987      # MinGW DLLs use traditional 'lib' prefix
15988      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15990      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15991        # It is most probably a Windows format PATH printed by
15992        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15993        # path with ; separators, and with drive letters. We can handle the
15994        # drive letters (cygwin fileutils understands them), so leave them,
15995        # especially as we might pass files found there to a mingw objdump,
15996        # which wouldn't understand a cygwinified path. Ahh.
15997        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15998      else
15999        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16000      fi
16001      ;;
16002    pw32*)
16003      # pw32 DLLs use 'pw' prefix rather than 'lib'
16004      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16005      ;;
16006    esac
16007    ;;
16008
16009  *)
16010    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16011    ;;
16012  esac
16013  dynamic_linker='Win32 ld.exe'
16014  # FIXME: first we should search . and the directory the executable is in
16015  shlibpath_var=PATH
16016  ;;
16017
16018darwin* | rhapsody*)
16019  dynamic_linker="$host_os dyld"
16020  version_type=darwin
16021  need_lib_prefix=no
16022  need_version=no
16023  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16024  soname_spec='${libname}${release}${major}$shared_ext'
16025  shlibpath_overrides_runpath=yes
16026  shlibpath_var=DYLD_LIBRARY_PATH
16027  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16028
16029  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16030  ;;
16031
16032dgux*)
16033  version_type=linux
16034  need_lib_prefix=no
16035  need_version=no
16036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16037  soname_spec='${libname}${release}${shared_ext}$major'
16038  shlibpath_var=LD_LIBRARY_PATH
16039  ;;
16040
16041freebsd1*)
16042  dynamic_linker=no
16043  ;;
16044
16045freebsd* | dragonfly*)
16046  # DragonFly does not have aout.  When/if they implement a new
16047  # versioning mechanism, adjust this.
16048  if test -x /usr/bin/objformat; then
16049    objformat=`/usr/bin/objformat`
16050  else
16051    case $host_os in
16052    freebsd[123]*) objformat=aout ;;
16053    *) objformat=elf ;;
16054    esac
16055  fi
16056  version_type=freebsd-$objformat
16057  case $version_type in
16058    freebsd-elf*)
16059      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16060      need_version=no
16061      need_lib_prefix=no
16062      ;;
16063    freebsd-*)
16064      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16065      need_version=yes
16066      ;;
16067  esac
16068  shlibpath_var=LD_LIBRARY_PATH
16069  case $host_os in
16070  freebsd2*)
16071    shlibpath_overrides_runpath=yes
16072    ;;
16073  freebsd3.[01]* | freebsdelf3.[01]*)
16074    shlibpath_overrides_runpath=yes
16075    hardcode_into_libs=yes
16076    ;;
16077  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16078  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16079    shlibpath_overrides_runpath=no
16080    hardcode_into_libs=yes
16081    ;;
16082  *) # from 4.6 on, and DragonFly
16083    shlibpath_overrides_runpath=yes
16084    hardcode_into_libs=yes
16085    ;;
16086  esac
16087  ;;
16088
16089gnu*)
16090  version_type=linux
16091  need_lib_prefix=no
16092  need_version=no
16093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16094  soname_spec='${libname}${release}${shared_ext}$major'
16095  shlibpath_var=LD_LIBRARY_PATH
16096  hardcode_into_libs=yes
16097  ;;
16098
16099hpux9* | hpux10* | hpux11*)
16100  # Give a soname corresponding to the major version so that dld.sl refuses to
16101  # link against other versions.
16102  version_type=sunos
16103  need_lib_prefix=no
16104  need_version=no
16105  case $host_cpu in
16106  ia64*)
16107    shrext_cmds='.so'
16108    hardcode_into_libs=yes
16109    dynamic_linker="$host_os dld.so"
16110    shlibpath_var=LD_LIBRARY_PATH
16111    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113    soname_spec='${libname}${release}${shared_ext}$major'
16114    if test "X$HPUX_IA64_MODE" = X32; then
16115      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16116    else
16117      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16118    fi
16119    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16120    ;;
16121   hppa*64*)
16122     shrext_cmds='.sl'
16123     hardcode_into_libs=yes
16124     dynamic_linker="$host_os dld.sl"
16125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128     soname_spec='${libname}${release}${shared_ext}$major'
16129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16131     ;;
16132   *)
16133    shrext_cmds='.sl'
16134    dynamic_linker="$host_os dld.sl"
16135    shlibpath_var=SHLIB_PATH
16136    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138    soname_spec='${libname}${release}${shared_ext}$major'
16139    ;;
16140  esac
16141  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16142  postinstall_cmds='chmod 555 $lib'
16143  ;;
16144
16145interix[3-9]*)
16146  version_type=linux
16147  need_lib_prefix=no
16148  need_version=no
16149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16150  soname_spec='${libname}${release}${shared_ext}$major'
16151  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16152  shlibpath_var=LD_LIBRARY_PATH
16153  shlibpath_overrides_runpath=no
16154  hardcode_into_libs=yes
16155  ;;
16156
16157irix5* | irix6* | nonstopux*)
16158  case $host_os in
16159    nonstopux*) version_type=nonstopux ;;
16160    *)
16161	if test "$lt_cv_prog_gnu_ld" = yes; then
16162		version_type=linux
16163	else
16164		version_type=irix
16165	fi ;;
16166  esac
16167  need_lib_prefix=no
16168  need_version=no
16169  soname_spec='${libname}${release}${shared_ext}$major'
16170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16171  case $host_os in
16172  irix5* | nonstopux*)
16173    libsuff= shlibsuff=
16174    ;;
16175  *)
16176    case $LD in # libtool.m4 will add one of these switches to LD
16177    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16178      libsuff= shlibsuff= libmagic=32-bit;;
16179    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16180      libsuff=32 shlibsuff=N32 libmagic=N32;;
16181    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16182      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16183    *) libsuff= shlibsuff= libmagic=never-match;;
16184    esac
16185    ;;
16186  esac
16187  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16188  shlibpath_overrides_runpath=no
16189  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16190  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16191  hardcode_into_libs=yes
16192  ;;
16193
16194# No shared lib support for Linux oldld, aout, or coff.
16195linux*oldld* | linux*aout* | linux*coff*)
16196  dynamic_linker=no
16197  ;;
16198
16199# This must be Linux ELF.
16200linux* | k*bsd*-gnu)
16201  version_type=linux
16202  need_lib_prefix=no
16203  need_version=no
16204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205  soname_spec='${libname}${release}${shared_ext}$major'
16206  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16207  shlibpath_var=LD_LIBRARY_PATH
16208  shlibpath_overrides_runpath=no
16209  # This implies no fast_install, which is unacceptable.
16210  # Some rework will be needed to allow for fast_install
16211  # before this can be enabled.
16212  hardcode_into_libs=yes
16213
16214  # Append ld.so.conf contents to the search path
16215  if test -f /etc/ld.so.conf; then
16216    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' ' '`
16217    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16218  fi
16219
16220  # We used to test for /lib/ld.so.1 and disable shared libraries on
16221  # powerpc, because MkLinux only supported shared libraries with the
16222  # GNU dynamic linker.  Since this was broken with cross compilers,
16223  # most powerpc-linux boxes support dynamic linking these days and
16224  # people can always --disable-shared, the test was removed, and we
16225  # assume the GNU/Linux dynamic linker is in use.
16226  dynamic_linker='GNU/Linux ld.so'
16227  ;;
16228
16229netbsd*)
16230  version_type=sunos
16231  need_lib_prefix=no
16232  need_version=no
16233  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16234    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16235    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16236    dynamic_linker='NetBSD (a.out) ld.so'
16237  else
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    dynamic_linker='NetBSD ld.elf_so'
16241  fi
16242  shlibpath_var=LD_LIBRARY_PATH
16243  shlibpath_overrides_runpath=yes
16244  hardcode_into_libs=yes
16245  ;;
16246
16247newsos6)
16248  version_type=linux
16249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250  shlibpath_var=LD_LIBRARY_PATH
16251  shlibpath_overrides_runpath=yes
16252  ;;
16253
16254nto-qnx*)
16255  version_type=linux
16256  need_lib_prefix=no
16257  need_version=no
16258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259  soname_spec='${libname}${release}${shared_ext}$major'
16260  shlibpath_var=LD_LIBRARY_PATH
16261  shlibpath_overrides_runpath=yes
16262  ;;
16263
16264openbsd*)
16265  version_type=sunos
16266  sys_lib_dlsearch_path_spec="/usr/lib"
16267  need_lib_prefix=no
16268  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16269  case $host_os in
16270    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16271    *)                         need_version=no  ;;
16272  esac
16273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16274  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16275  shlibpath_var=LD_LIBRARY_PATH
16276  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16277    case $host_os in
16278      openbsd2.[89] | openbsd2.[89].*)
16279	shlibpath_overrides_runpath=no
16280	;;
16281      *)
16282	shlibpath_overrides_runpath=yes
16283	;;
16284      esac
16285  else
16286    shlibpath_overrides_runpath=yes
16287  fi
16288  ;;
16289
16290os2*)
16291  libname_spec='$name'
16292  shrext_cmds=".dll"
16293  need_lib_prefix=no
16294  library_names_spec='$libname${shared_ext} $libname.a'
16295  dynamic_linker='OS/2 ld.exe'
16296  shlibpath_var=LIBPATH
16297  ;;
16298
16299osf3* | osf4* | osf5*)
16300  version_type=osf
16301  need_lib_prefix=no
16302  need_version=no
16303  soname_spec='${libname}${release}${shared_ext}$major'
16304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305  shlibpath_var=LD_LIBRARY_PATH
16306  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16307  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16308  ;;
16309
16310rdos*)
16311  dynamic_linker=no
16312  ;;
16313
16314solaris*)
16315  version_type=linux
16316  need_lib_prefix=no
16317  need_version=no
16318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319  soname_spec='${libname}${release}${shared_ext}$major'
16320  shlibpath_var=LD_LIBRARY_PATH
16321  shlibpath_overrides_runpath=yes
16322  hardcode_into_libs=yes
16323  # ldd complains unless libraries are executable
16324  postinstall_cmds='chmod +x $lib'
16325  ;;
16326
16327sunos4*)
16328  version_type=sunos
16329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16330  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16331  shlibpath_var=LD_LIBRARY_PATH
16332  shlibpath_overrides_runpath=yes
16333  if test "$with_gnu_ld" = yes; then
16334    need_lib_prefix=no
16335  fi
16336  need_version=yes
16337  ;;
16338
16339sysv4 | sysv4.3*)
16340  version_type=linux
16341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342  soname_spec='${libname}${release}${shared_ext}$major'
16343  shlibpath_var=LD_LIBRARY_PATH
16344  case $host_vendor in
16345    sni)
16346      shlibpath_overrides_runpath=no
16347      need_lib_prefix=no
16348      export_dynamic_flag_spec='${wl}-Blargedynsym'
16349      runpath_var=LD_RUN_PATH
16350      ;;
16351    siemens)
16352      need_lib_prefix=no
16353      ;;
16354    motorola)
16355      need_lib_prefix=no
16356      need_version=no
16357      shlibpath_overrides_runpath=no
16358      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16359      ;;
16360  esac
16361  ;;
16362
16363sysv4*MP*)
16364  if test -d /usr/nec ;then
16365    version_type=linux
16366    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16367    soname_spec='$libname${shared_ext}.$major'
16368    shlibpath_var=LD_LIBRARY_PATH
16369  fi
16370  ;;
16371
16372sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16373  version_type=freebsd-elf
16374  need_lib_prefix=no
16375  need_version=no
16376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16377  soname_spec='${libname}${release}${shared_ext}$major'
16378  shlibpath_var=LD_LIBRARY_PATH
16379  hardcode_into_libs=yes
16380  if test "$with_gnu_ld" = yes; then
16381    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16382    shlibpath_overrides_runpath=no
16383  else
16384    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16385    shlibpath_overrides_runpath=yes
16386    case $host_os in
16387      sco3.2v5*)
16388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16389	;;
16390    esac
16391  fi
16392  sys_lib_dlsearch_path_spec='/usr/lib'
16393  ;;
16394
16395uts4*)
16396  version_type=linux
16397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398  soname_spec='${libname}${release}${shared_ext}$major'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  ;;
16401
16402*)
16403  dynamic_linker=no
16404  ;;
16405esac
16406{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16407$as_echo "$dynamic_linker" >&6; }
16408test "$dynamic_linker" = no && can_build_shared=no
16409
16410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16411  $as_echo_n "(cached) " >&6
16412else
16413  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16414fi
16415
16416sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16417if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16418  $as_echo_n "(cached) " >&6
16419else
16420  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16421fi
16422
16423sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16424
16425variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16426if test "$GCC" = yes; then
16427  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16428fi
16429
16430{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16431$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16432hardcode_action_F77=
16433if test -n "$hardcode_libdir_flag_spec_F77" || \
16434   test -n "$runpath_var_F77" || \
16435   test "X$hardcode_automatic_F77" = "Xyes" ; then
16436
16437  # We can hardcode non-existant directories.
16438  if test "$hardcode_direct_F77" != no &&
16439     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16440     # have to relink, otherwise we might link with an installed library
16441     # when we should be linking with a yet-to-be-installed one
16442     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16443     test "$hardcode_minus_L_F77" != no; then
16444    # Linking always hardcodes the temporary library directory.
16445    hardcode_action_F77=relink
16446  else
16447    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16448    hardcode_action_F77=immediate
16449  fi
16450else
16451  # We cannot hardcode anything, or else we can only hardcode existing
16452  # directories.
16453  hardcode_action_F77=unsupported
16454fi
16455{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16456$as_echo "$hardcode_action_F77" >&6; }
16457
16458if test "$hardcode_action_F77" = relink; then
16459  # Fast installation is not supported
16460  enable_fast_install=no
16461elif test "$shlibpath_overrides_runpath" = yes ||
16462     test "$enable_shared" = no; then
16463  # Fast installation is not necessary
16464  enable_fast_install=needless
16465fi
16466
16467
16468# The else clause should only fire when bootstrapping the
16469# libtool distribution, otherwise you forgot to ship ltmain.sh
16470# with your package, and you will get complaints that there are
16471# no rules to generate ltmain.sh.
16472if test -f "$ltmain"; then
16473  # See if we are running on zsh, and set the options which allow our commands through
16474  # without removal of \ escapes.
16475  if test -n "${ZSH_VERSION+set}" ; then
16476    setopt NO_GLOB_SUBST
16477  fi
16478  # Now quote all the things that may contain metacharacters while being
16479  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16480  # variables and quote the copies for generation of the libtool script.
16481  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16482    SED SHELL STRIP \
16483    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16484    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16485    deplibs_check_method reload_flag reload_cmds need_locks \
16486    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16487    lt_cv_sys_global_symbol_to_c_name_address \
16488    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16489    old_postinstall_cmds old_postuninstall_cmds \
16490    compiler_F77 \
16491    CC_F77 \
16492    LD_F77 \
16493    lt_prog_compiler_wl_F77 \
16494    lt_prog_compiler_pic_F77 \
16495    lt_prog_compiler_static_F77 \
16496    lt_prog_compiler_no_builtin_flag_F77 \
16497    export_dynamic_flag_spec_F77 \
16498    thread_safe_flag_spec_F77 \
16499    whole_archive_flag_spec_F77 \
16500    enable_shared_with_static_runtimes_F77 \
16501    old_archive_cmds_F77 \
16502    old_archive_from_new_cmds_F77 \
16503    predep_objects_F77 \
16504    postdep_objects_F77 \
16505    predeps_F77 \
16506    postdeps_F77 \
16507    compiler_lib_search_path_F77 \
16508    compiler_lib_search_dirs_F77 \
16509    archive_cmds_F77 \
16510    archive_expsym_cmds_F77 \
16511    postinstall_cmds_F77 \
16512    postuninstall_cmds_F77 \
16513    old_archive_from_expsyms_cmds_F77 \
16514    allow_undefined_flag_F77 \
16515    no_undefined_flag_F77 \
16516    export_symbols_cmds_F77 \
16517    hardcode_libdir_flag_spec_F77 \
16518    hardcode_libdir_flag_spec_ld_F77 \
16519    hardcode_libdir_separator_F77 \
16520    hardcode_automatic_F77 \
16521    module_cmds_F77 \
16522    module_expsym_cmds_F77 \
16523    lt_cv_prog_compiler_c_o_F77 \
16524    fix_srcfile_path_F77 \
16525    exclude_expsyms_F77 \
16526    include_expsyms_F77; do
16527
16528    case $var in
16529    old_archive_cmds_F77 | \
16530    old_archive_from_new_cmds_F77 | \
16531    archive_cmds_F77 | \
16532    archive_expsym_cmds_F77 | \
16533    module_cmds_F77 | \
16534    module_expsym_cmds_F77 | \
16535    old_archive_from_expsyms_cmds_F77 | \
16536    export_symbols_cmds_F77 | \
16537    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16538    postinstall_cmds | postuninstall_cmds | \
16539    old_postinstall_cmds | old_postuninstall_cmds | \
16540    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16541      # Double-quote double-evaled strings.
16542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16543      ;;
16544    *)
16545      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16546      ;;
16547    esac
16548  done
16549
16550  case $lt_echo in
16551  *'\$0 --fallback-echo"')
16552    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16553    ;;
16554  esac
16555
16556cfgfile="$ofile"
16557
16558  cat <<__EOF__ >> "$cfgfile"
16559# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16560
16561# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16562
16563# Shell to use when invoking shell scripts.
16564SHELL=$lt_SHELL
16565
16566# Whether or not to build shared libraries.
16567build_libtool_libs=$enable_shared
16568
16569# Whether or not to build static libraries.
16570build_old_libs=$enable_static
16571
16572# Whether or not to add -lc for building shared libraries.
16573build_libtool_need_lc=$archive_cmds_need_lc_F77
16574
16575# Whether or not to disallow shared libs when runtime libs are static
16576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16577
16578# Whether or not to optimize for fast installation.
16579fast_install=$enable_fast_install
16580
16581# The host system.
16582host_alias=$host_alias
16583host=$host
16584host_os=$host_os
16585
16586# The build system.
16587build_alias=$build_alias
16588build=$build
16589build_os=$build_os
16590
16591# An echo program that does not interpret backslashes.
16592echo=$lt_echo
16593
16594# The archiver.
16595AR=$lt_AR
16596AR_FLAGS=$lt_AR_FLAGS
16597
16598# A C compiler.
16599LTCC=$lt_LTCC
16600
16601# LTCC compiler flags.
16602LTCFLAGS=$lt_LTCFLAGS
16603
16604# A language-specific compiler.
16605CC=$lt_compiler_F77
16606
16607# Is the compiler the GNU C compiler?
16608with_gcc=$GCC_F77
16609
16610# An ERE matcher.
16611EGREP=$lt_EGREP
16612
16613# The linker used to build libraries.
16614LD=$lt_LD_F77
16615
16616# Whether we need hard or soft links.
16617LN_S=$lt_LN_S
16618
16619# A BSD-compatible nm program.
16620NM=$lt_NM
16621
16622# A symbol stripping program
16623STRIP=$lt_STRIP
16624
16625# Used to examine libraries when file_magic_cmd begins "file"
16626MAGIC_CMD=$MAGIC_CMD
16627
16628# Used on cygwin: DLL creation program.
16629DLLTOOL="$DLLTOOL"
16630
16631# Used on cygwin: object dumper.
16632OBJDUMP="$OBJDUMP"
16633
16634# Used on cygwin: assembler.
16635AS="$AS"
16636
16637# The name of the directory that contains temporary libtool files.
16638objdir=$objdir
16639
16640# How to create reloadable object files.
16641reload_flag=$lt_reload_flag
16642reload_cmds=$lt_reload_cmds
16643
16644# How to pass a linker flag through the compiler.
16645wl=$lt_lt_prog_compiler_wl_F77
16646
16647# Object file suffix (normally "o").
16648objext="$ac_objext"
16649
16650# Old archive suffix (normally "a").
16651libext="$libext"
16652
16653# Shared library suffix (normally ".so").
16654shrext_cmds='$shrext_cmds'
16655
16656# Executable file suffix (normally "").
16657exeext="$exeext"
16658
16659# Additional compiler flags for building library objects.
16660pic_flag=$lt_lt_prog_compiler_pic_F77
16661pic_mode=$pic_mode
16662
16663# What is the maximum length of a command?
16664max_cmd_len=$lt_cv_sys_max_cmd_len
16665
16666# Does compiler simultaneously support -c and -o options?
16667compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16668
16669# Must we lock files when doing compilation?
16670need_locks=$lt_need_locks
16671
16672# Do we need the lib prefix for modules?
16673need_lib_prefix=$need_lib_prefix
16674
16675# Do we need a version for libraries?
16676need_version=$need_version
16677
16678# Whether dlopen is supported.
16679dlopen_support=$enable_dlopen
16680
16681# Whether dlopen of programs is supported.
16682dlopen_self=$enable_dlopen_self
16683
16684# Whether dlopen of statically linked programs is supported.
16685dlopen_self_static=$enable_dlopen_self_static
16686
16687# Compiler flag to prevent dynamic linking.
16688link_static_flag=$lt_lt_prog_compiler_static_F77
16689
16690# Compiler flag to turn off builtin functions.
16691no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16692
16693# Compiler flag to allow reflexive dlopens.
16694export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16695
16696# Compiler flag to generate shared objects directly from archives.
16697whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16698
16699# Compiler flag to generate thread-safe objects.
16700thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16701
16702# Library versioning type.
16703version_type=$version_type
16704
16705# Format of library name prefix.
16706libname_spec=$lt_libname_spec
16707
16708# List of archive names.  First name is the real one, the rest are links.
16709# The last name is the one that the linker finds with -lNAME.
16710library_names_spec=$lt_library_names_spec
16711
16712# The coded name of the library, if different from the real name.
16713soname_spec=$lt_soname_spec
16714
16715# Commands used to build and install an old-style archive.
16716RANLIB=$lt_RANLIB
16717old_archive_cmds=$lt_old_archive_cmds_F77
16718old_postinstall_cmds=$lt_old_postinstall_cmds
16719old_postuninstall_cmds=$lt_old_postuninstall_cmds
16720
16721# Create an old-style archive from a shared archive.
16722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16723
16724# Create a temporary old-style archive to link instead of a shared archive.
16725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16726
16727# Commands used to build and install a shared archive.
16728archive_cmds=$lt_archive_cmds_F77
16729archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16730postinstall_cmds=$lt_postinstall_cmds
16731postuninstall_cmds=$lt_postuninstall_cmds
16732
16733# Commands used to build a loadable module (assumed same as above if empty)
16734module_cmds=$lt_module_cmds_F77
16735module_expsym_cmds=$lt_module_expsym_cmds_F77
16736
16737# Commands to strip libraries.
16738old_striplib=$lt_old_striplib
16739striplib=$lt_striplib
16740
16741# Dependencies to place before the objects being linked to create a
16742# shared library.
16743predep_objects=$lt_predep_objects_F77
16744
16745# Dependencies to place after the objects being linked to create a
16746# shared library.
16747postdep_objects=$lt_postdep_objects_F77
16748
16749# Dependencies to place before the objects being linked to create a
16750# shared library.
16751predeps=$lt_predeps_F77
16752
16753# Dependencies to place after the objects being linked to create a
16754# shared library.
16755postdeps=$lt_postdeps_F77
16756
16757# The directories searched by this compiler when creating a shared
16758# library
16759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16760
16761# The library search path used internally by the compiler when linking
16762# a shared library.
16763compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16764
16765# Method to check whether dependent libraries are shared objects.
16766deplibs_check_method=$lt_deplibs_check_method
16767
16768# Command to use when deplibs_check_method == file_magic.
16769file_magic_cmd=$lt_file_magic_cmd
16770
16771# Flag that allows shared libraries with undefined symbols to be built.
16772allow_undefined_flag=$lt_allow_undefined_flag_F77
16773
16774# Flag that forces no undefined symbols.
16775no_undefined_flag=$lt_no_undefined_flag_F77
16776
16777# Commands used to finish a libtool library installation in a directory.
16778finish_cmds=$lt_finish_cmds
16779
16780# Same as above, but a single script fragment to be evaled but not shown.
16781finish_eval=$lt_finish_eval
16782
16783# Take the output of nm and produce a listing of raw symbols and C names.
16784global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16785
16786# Transform the output of nm in a proper C declaration
16787global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16788
16789# Transform the output of nm in a C name address pair
16790global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16791
16792# This is the shared library runtime path variable.
16793runpath_var=$runpath_var
16794
16795# This is the shared library path variable.
16796shlibpath_var=$shlibpath_var
16797
16798# Is shlibpath searched before the hard-coded library search path?
16799shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16800
16801# How to hardcode a shared library path into an executable.
16802hardcode_action=$hardcode_action_F77
16803
16804# Whether we should hardcode library paths into libraries.
16805hardcode_into_libs=$hardcode_into_libs
16806
16807# Flag to hardcode \$libdir into a binary during linking.
16808# This must work even if \$libdir does not exist.
16809hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16810
16811# If ld is used when linking, flag to hardcode \$libdir into
16812# a binary during linking. This must work even if \$libdir does
16813# not exist.
16814hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16815
16816# Whether we need a single -rpath flag with a separated argument.
16817hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16818
16819# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16820# resulting binary.
16821hardcode_direct=$hardcode_direct_F77
16822
16823# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16824# resulting binary.
16825hardcode_minus_L=$hardcode_minus_L_F77
16826
16827# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16828# the resulting binary.
16829hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16830
16831# Set to yes if building a shared library automatically hardcodes DIR into the library
16832# and all subsequent libraries and executables linked against it.
16833hardcode_automatic=$hardcode_automatic_F77
16834
16835# Variables whose values should be saved in libtool wrapper scripts and
16836# restored at relink time.
16837variables_saved_for_relink="$variables_saved_for_relink"
16838
16839# Whether libtool must link a program against all its dependency libraries.
16840link_all_deplibs=$link_all_deplibs_F77
16841
16842# Compile-time system search path for libraries
16843sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16844
16845# Run-time system search path for libraries
16846sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16847
16848# Fix the shell variable \$srcfile for the compiler.
16849fix_srcfile_path=$lt_fix_srcfile_path
16850
16851# Set to yes if exported symbols are required.
16852always_export_symbols=$always_export_symbols_F77
16853
16854# The commands to list exported symbols.
16855export_symbols_cmds=$lt_export_symbols_cmds_F77
16856
16857# The commands to extract the exported symbol list from a shared archive.
16858extract_expsyms_cmds=$lt_extract_expsyms_cmds
16859
16860# Symbols that should not be listed in the preloaded symbols.
16861exclude_expsyms=$lt_exclude_expsyms_F77
16862
16863# Symbols that must always be exported.
16864include_expsyms=$lt_include_expsyms_F77
16865
16866# ### END LIBTOOL TAG CONFIG: $tagname
16867
16868__EOF__
16869
16870
16871else
16872  # If there is no Makefile yet, we rely on a make rule to execute
16873  # `config.status --recheck' to rerun these tests and create the
16874  # libtool script then.
16875  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16876  if test -f "$ltmain_in"; then
16877    test -f Makefile && make "$ltmain"
16878  fi
16879fi
16880
16881
16882ac_ext=c
16883ac_cpp='$CPP $CPPFLAGS'
16884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886ac_compiler_gnu=$ac_cv_c_compiler_gnu
16887
16888CC="$lt_save_CC"
16889
16890	else
16891	  tagname=""
16892	fi
16893	;;
16894
16895      GCJ)
16896	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16897
16898
16899# Source file extension for Java test sources.
16900ac_ext=java
16901
16902# Object file extension for compiled Java test sources.
16903objext=o
16904objext_GCJ=$objext
16905
16906# Code to be used in simple compile tests
16907lt_simple_compile_test_code="class foo {}"
16908
16909# Code to be used in simple link tests
16910lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16911
16912# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16913
16914# If no C compiler was specified, use CC.
16915LTCC=${LTCC-"$CC"}
16916
16917# If no C compiler flags were specified, use CFLAGS.
16918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16919
16920# Allow CC to be a program name with arguments.
16921compiler=$CC
16922
16923
16924# save warnings/boilerplate of simple test code
16925ac_outfile=conftest.$ac_objext
16926echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16928_lt_compiler_boilerplate=`cat conftest.err`
16929$rm conftest*
16930
16931ac_outfile=conftest.$ac_objext
16932echo "$lt_simple_link_test_code" >conftest.$ac_ext
16933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16934_lt_linker_boilerplate=`cat conftest.err`
16935$rm -r conftest*
16936
16937
16938# Allow CC to be a program name with arguments.
16939lt_save_CC="$CC"
16940CC=${GCJ-"gcj"}
16941compiler=$CC
16942compiler_GCJ=$CC
16943for cc_temp in $compiler""; do
16944  case $cc_temp in
16945    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16946    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16947    \-*) ;;
16948    *) break;;
16949  esac
16950done
16951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16952
16953
16954# GCJ did not exist at the time GCC didn't implicitly link libc in.
16955archive_cmds_need_lc_GCJ=no
16956
16957old_archive_cmds_GCJ=$old_archive_cmds
16958
16959
16960lt_prog_compiler_no_builtin_flag_GCJ=
16961
16962if test "$GCC" = yes; then
16963  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16964
16965
16966{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16967$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16968if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16969  $as_echo_n "(cached) " >&6
16970else
16971  lt_cv_prog_compiler_rtti_exceptions=no
16972  ac_outfile=conftest.$ac_objext
16973   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16974   lt_compiler_flag="-fno-rtti -fno-exceptions"
16975   # Insert the option either (1) after the last *FLAGS variable, or
16976   # (2) before a word containing "conftest.", or (3) at the end.
16977   # Note that $ac_compile itself does not contain backslashes and begins
16978   # with a dollar sign (not a hyphen), so the echo should work correctly.
16979   # The option is referenced via a variable to avoid confusing sed.
16980   lt_compile=`echo "$ac_compile" | $SED \
16981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983   -e 's:$: $lt_compiler_flag:'`
16984   (eval echo "\"\$as_me:16984: $lt_compile\"" >&5)
16985   (eval "$lt_compile" 2>conftest.err)
16986   ac_status=$?
16987   cat conftest.err >&5
16988   echo "$as_me:16988: \$? = $ac_status" >&5
16989   if (exit $ac_status) && test -s "$ac_outfile"; then
16990     # The compiler can only warn and ignore the option if not recognized
16991     # So say no if there are warnings other than the usual output.
16992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16995       lt_cv_prog_compiler_rtti_exceptions=yes
16996     fi
16997   fi
16998   $rm conftest*
16999
17000fi
17001{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17002$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17003
17004if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17005    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17006else
17007    :
17008fi
17009
17010fi
17011
17012lt_prog_compiler_wl_GCJ=
17013lt_prog_compiler_pic_GCJ=
17014lt_prog_compiler_static_GCJ=
17015
17016{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17017$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17018
17019  if test "$GCC" = yes; then
17020    lt_prog_compiler_wl_GCJ='-Wl,'
17021    lt_prog_compiler_static_GCJ='-static'
17022
17023    case $host_os in
17024      aix*)
17025      # All AIX code is PIC.
17026      if test "$host_cpu" = ia64; then
17027	# AIX 5 now supports IA64 processor
17028	lt_prog_compiler_static_GCJ='-Bstatic'
17029      fi
17030      ;;
17031
17032    amigaos*)
17033      # FIXME: we need at least 68020 code to build shared libraries, but
17034      # adding the `-m68020' flag to GCC prevents building anything better,
17035      # like `-m68040'.
17036      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17037      ;;
17038
17039    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17040      # PIC is the default for these OSes.
17041      ;;
17042
17043    mingw* | cygwin* | pw32* | os2*)
17044      # This hack is so that the source file can tell whether it is being
17045      # built for inclusion in a dll (and should export symbols for example).
17046      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17047      # (--disable-auto-import) libraries
17048
17049      ;;
17050
17051    darwin* | rhapsody*)
17052      # PIC is the default on this platform
17053      # Common symbols not allowed in MH_DYLIB files
17054      lt_prog_compiler_pic_GCJ='-fno-common'
17055      ;;
17056
17057    interix[3-9]*)
17058      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17059      # Instead, we relocate shared libraries at runtime.
17060      ;;
17061
17062    msdosdjgpp*)
17063      # Just because we use GCC doesn't mean we suddenly get shared libraries
17064      # on systems that don't support them.
17065      lt_prog_compiler_can_build_shared_GCJ=no
17066      enable_shared=no
17067      ;;
17068
17069    sysv4*MP*)
17070      if test -d /usr/nec; then
17071	lt_prog_compiler_pic_GCJ=-Kconform_pic
17072      fi
17073      ;;
17074
17075    hpux*)
17076      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17077      # not for PA HP-UX.
17078      case $host_cpu in
17079      hppa*64*|ia64*)
17080	# +Z the default
17081	;;
17082      *)
17083	lt_prog_compiler_pic_GCJ='-fPIC'
17084	;;
17085      esac
17086      ;;
17087
17088    *)
17089      lt_prog_compiler_pic_GCJ='-fPIC'
17090      ;;
17091    esac
17092  else
17093    # PORTME Check for flag to pass linker flags through the system compiler.
17094    case $host_os in
17095    aix*)
17096      lt_prog_compiler_wl_GCJ='-Wl,'
17097      if test "$host_cpu" = ia64; then
17098	# AIX 5 now supports IA64 processor
17099	lt_prog_compiler_static_GCJ='-Bstatic'
17100      else
17101	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17102      fi
17103      ;;
17104      darwin*)
17105        # PIC is the default on this platform
17106        # Common symbols not allowed in MH_DYLIB files
17107       case $cc_basename in
17108         xlc*)
17109         lt_prog_compiler_pic_GCJ='-qnocommon'
17110         lt_prog_compiler_wl_GCJ='-Wl,'
17111         ;;
17112       esac
17113       ;;
17114
17115    mingw* | cygwin* | pw32* | os2*)
17116      # This hack is so that the source file can tell whether it is being
17117      # built for inclusion in a dll (and should export symbols for example).
17118
17119      ;;
17120
17121    hpux9* | hpux10* | hpux11*)
17122      lt_prog_compiler_wl_GCJ='-Wl,'
17123      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17124      # not for PA HP-UX.
17125      case $host_cpu in
17126      hppa*64*|ia64*)
17127	# +Z the default
17128	;;
17129      *)
17130	lt_prog_compiler_pic_GCJ='+Z'
17131	;;
17132      esac
17133      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17134      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17135      ;;
17136
17137    irix5* | irix6* | nonstopux*)
17138      lt_prog_compiler_wl_GCJ='-Wl,'
17139      # PIC (with -KPIC) is the default.
17140      lt_prog_compiler_static_GCJ='-non_shared'
17141      ;;
17142
17143    newsos6)
17144      lt_prog_compiler_pic_GCJ='-KPIC'
17145      lt_prog_compiler_static_GCJ='-Bstatic'
17146      ;;
17147
17148    linux* | k*bsd*-gnu)
17149      case $cc_basename in
17150      icc* | ecc*)
17151	lt_prog_compiler_wl_GCJ='-Wl,'
17152	lt_prog_compiler_pic_GCJ='-KPIC'
17153	lt_prog_compiler_static_GCJ='-static'
17154        ;;
17155      pgcc* | pgf77* | pgf90* | pgf95*)
17156        # Portland Group compilers (*not* the Pentium gcc compiler,
17157	# which looks to be a dead project)
17158	lt_prog_compiler_wl_GCJ='-Wl,'
17159	lt_prog_compiler_pic_GCJ='-fpic'
17160	lt_prog_compiler_static_GCJ='-Bstatic'
17161        ;;
17162      ccc*)
17163        lt_prog_compiler_wl_GCJ='-Wl,'
17164        # All Alpha code is PIC.
17165        lt_prog_compiler_static_GCJ='-non_shared'
17166        ;;
17167      *)
17168        case `$CC -V 2>&1 | sed 5q` in
17169	*Sun\ C*)
17170	  # Sun C 5.9
17171	  lt_prog_compiler_pic_GCJ='-KPIC'
17172	  lt_prog_compiler_static_GCJ='-Bstatic'
17173	  lt_prog_compiler_wl_GCJ='-Wl,'
17174	  ;;
17175	*Sun\ F*)
17176	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17177	  lt_prog_compiler_pic_GCJ='-KPIC'
17178	  lt_prog_compiler_static_GCJ='-Bstatic'
17179	  lt_prog_compiler_wl_GCJ=''
17180	  ;;
17181	esac
17182	;;
17183      esac
17184      ;;
17185
17186    osf3* | osf4* | osf5*)
17187      lt_prog_compiler_wl_GCJ='-Wl,'
17188      # All OSF/1 code is PIC.
17189      lt_prog_compiler_static_GCJ='-non_shared'
17190      ;;
17191
17192    rdos*)
17193      lt_prog_compiler_static_GCJ='-non_shared'
17194      ;;
17195
17196    solaris*)
17197      lt_prog_compiler_pic_GCJ='-KPIC'
17198      lt_prog_compiler_static_GCJ='-Bstatic'
17199      case $cc_basename in
17200      f77* | f90* | f95*)
17201	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17202      *)
17203	lt_prog_compiler_wl_GCJ='-Wl,';;
17204      esac
17205      ;;
17206
17207    sunos4*)
17208      lt_prog_compiler_wl_GCJ='-Qoption ld '
17209      lt_prog_compiler_pic_GCJ='-PIC'
17210      lt_prog_compiler_static_GCJ='-Bstatic'
17211      ;;
17212
17213    sysv4 | sysv4.2uw2* | sysv4.3*)
17214      lt_prog_compiler_wl_GCJ='-Wl,'
17215      lt_prog_compiler_pic_GCJ='-KPIC'
17216      lt_prog_compiler_static_GCJ='-Bstatic'
17217      ;;
17218
17219    sysv4*MP*)
17220      if test -d /usr/nec ;then
17221	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17222	lt_prog_compiler_static_GCJ='-Bstatic'
17223      fi
17224      ;;
17225
17226    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17227      lt_prog_compiler_wl_GCJ='-Wl,'
17228      lt_prog_compiler_pic_GCJ='-KPIC'
17229      lt_prog_compiler_static_GCJ='-Bstatic'
17230      ;;
17231
17232    unicos*)
17233      lt_prog_compiler_wl_GCJ='-Wl,'
17234      lt_prog_compiler_can_build_shared_GCJ=no
17235      ;;
17236
17237    uts4*)
17238      lt_prog_compiler_pic_GCJ='-pic'
17239      lt_prog_compiler_static_GCJ='-Bstatic'
17240      ;;
17241
17242    *)
17243      lt_prog_compiler_can_build_shared_GCJ=no
17244      ;;
17245    esac
17246  fi
17247
17248{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17249$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17250
17251#
17252# Check to make sure the PIC flag actually works.
17253#
17254if test -n "$lt_prog_compiler_pic_GCJ"; then
17255
17256{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17257$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17258if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17259  $as_echo_n "(cached) " >&6
17260else
17261  lt_cv_prog_compiler_pic_works_GCJ=no
17262  ac_outfile=conftest.$ac_objext
17263   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17264   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17265   # Insert the option either (1) after the last *FLAGS variable, or
17266   # (2) before a word containing "conftest.", or (3) at the end.
17267   # Note that $ac_compile itself does not contain backslashes and begins
17268   # with a dollar sign (not a hyphen), so the echo should work correctly.
17269   # The option is referenced via a variable to avoid confusing sed.
17270   lt_compile=`echo "$ac_compile" | $SED \
17271   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17272   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17273   -e 's:$: $lt_compiler_flag:'`
17274   (eval echo "\"\$as_me:17274: $lt_compile\"" >&5)
17275   (eval "$lt_compile" 2>conftest.err)
17276   ac_status=$?
17277   cat conftest.err >&5
17278   echo "$as_me:17278: \$? = $ac_status" >&5
17279   if (exit $ac_status) && test -s "$ac_outfile"; then
17280     # The compiler can only warn and ignore the option if not recognized
17281     # So say no if there are warnings other than the usual output.
17282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17283     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17284     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17285       lt_cv_prog_compiler_pic_works_GCJ=yes
17286     fi
17287   fi
17288   $rm conftest*
17289
17290fi
17291{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17292$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17293
17294if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17295    case $lt_prog_compiler_pic_GCJ in
17296     "" | " "*) ;;
17297     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17298     esac
17299else
17300    lt_prog_compiler_pic_GCJ=
17301     lt_prog_compiler_can_build_shared_GCJ=no
17302fi
17303
17304fi
17305case $host_os in
17306  # For platforms which do not support PIC, -DPIC is meaningless:
17307  *djgpp*)
17308    lt_prog_compiler_pic_GCJ=
17309    ;;
17310  *)
17311    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17312    ;;
17313esac
17314
17315#
17316# Check to make sure the static flag actually works.
17317#
17318wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17319{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17320$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17321if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17322  $as_echo_n "(cached) " >&6
17323else
17324  lt_cv_prog_compiler_static_works_GCJ=no
17325   save_LDFLAGS="$LDFLAGS"
17326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17327   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17329     # The linker can only warn and ignore the option if not recognized
17330     # So say no if there are warnings
17331     if test -s conftest.err; then
17332       # Append any errors to the config.log.
17333       cat conftest.err 1>&5
17334       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17336       if diff conftest.exp conftest.er2 >/dev/null; then
17337         lt_cv_prog_compiler_static_works_GCJ=yes
17338       fi
17339     else
17340       lt_cv_prog_compiler_static_works_GCJ=yes
17341     fi
17342   fi
17343   $rm -r conftest*
17344   LDFLAGS="$save_LDFLAGS"
17345
17346fi
17347{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17348$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17349
17350if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17351    :
17352else
17353    lt_prog_compiler_static_GCJ=
17354fi
17355
17356
17357{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17359if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17360  $as_echo_n "(cached) " >&6
17361else
17362  lt_cv_prog_compiler_c_o_GCJ=no
17363   $rm -r conftest 2>/dev/null
17364   mkdir conftest
17365   cd conftest
17366   mkdir out
17367   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17368
17369   lt_compiler_flag="-o out/conftest2.$ac_objext"
17370   # Insert the option either (1) after the last *FLAGS variable, or
17371   # (2) before a word containing "conftest.", or (3) at the end.
17372   # Note that $ac_compile itself does not contain backslashes and begins
17373   # with a dollar sign (not a hyphen), so the echo should work correctly.
17374   lt_compile=`echo "$ac_compile" | $SED \
17375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17377   -e 's:$: $lt_compiler_flag:'`
17378   (eval echo "\"\$as_me:17378: $lt_compile\"" >&5)
17379   (eval "$lt_compile" 2>out/conftest.err)
17380   ac_status=$?
17381   cat out/conftest.err >&5
17382   echo "$as_me:17382: \$? = $ac_status" >&5
17383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17384   then
17385     # The compiler can only warn and ignore the option if not recognized
17386     # So say no if there are warnings
17387     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17390       lt_cv_prog_compiler_c_o_GCJ=yes
17391     fi
17392   fi
17393   chmod u+w . 2>&5
17394   $rm conftest*
17395   # SGI C++ compiler will create directory out/ii_files/ for
17396   # template instantiation
17397   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17398   $rm out/* && rmdir out
17399   cd ..
17400   rmdir conftest
17401   $rm conftest*
17402
17403fi
17404{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17405$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17406
17407
17408hard_links="nottested"
17409if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17410  # do not overwrite the value of need_locks provided by the user
17411  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17412$as_echo_n "checking if we can lock with hard links... " >&6; }
17413  hard_links=yes
17414  $rm conftest*
17415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17416  touch conftest.a
17417  ln conftest.a conftest.b 2>&5 || hard_links=no
17418  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17419  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17420$as_echo "$hard_links" >&6; }
17421  if test "$hard_links" = no; then
17422    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17423$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17424    need_locks=warn
17425  fi
17426else
17427  need_locks=no
17428fi
17429
17430{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17432
17433  runpath_var=
17434  allow_undefined_flag_GCJ=
17435  enable_shared_with_static_runtimes_GCJ=no
17436  archive_cmds_GCJ=
17437  archive_expsym_cmds_GCJ=
17438  old_archive_From_new_cmds_GCJ=
17439  old_archive_from_expsyms_cmds_GCJ=
17440  export_dynamic_flag_spec_GCJ=
17441  whole_archive_flag_spec_GCJ=
17442  thread_safe_flag_spec_GCJ=
17443  hardcode_libdir_flag_spec_GCJ=
17444  hardcode_libdir_flag_spec_ld_GCJ=
17445  hardcode_libdir_separator_GCJ=
17446  hardcode_direct_GCJ=no
17447  hardcode_minus_L_GCJ=no
17448  hardcode_shlibpath_var_GCJ=unsupported
17449  link_all_deplibs_GCJ=unknown
17450  hardcode_automatic_GCJ=no
17451  module_cmds_GCJ=
17452  module_expsym_cmds_GCJ=
17453  always_export_symbols_GCJ=no
17454  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17455  # include_expsyms should be a list of space-separated symbols to be *always*
17456  # included in the symbol list
17457  include_expsyms_GCJ=
17458  # exclude_expsyms can be an extended regexp of symbols to exclude
17459  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17460  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17461  # as well as any symbol that contains `d'.
17462  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17463  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17464  # platforms (ab)use it in PIC code, but their linkers get confused if
17465  # the symbol is explicitly referenced.  Since portable code cannot
17466  # rely on this symbol name, it's probably fine to never include it in
17467  # preloaded symbol tables.
17468  # Exclude shared library initialization/finalization symbols.
17469  extract_expsyms_cmds=
17470  # Just being paranoid about ensuring that cc_basename is set.
17471  for cc_temp in $compiler""; do
17472  case $cc_temp in
17473    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17474    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17475    \-*) ;;
17476    *) break;;
17477  esac
17478done
17479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17480
17481  case $host_os in
17482  cygwin* | mingw* | pw32*)
17483    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17484    # When not using gcc, we currently assume that we are using
17485    # Microsoft Visual C++.
17486    if test "$GCC" != yes; then
17487      with_gnu_ld=no
17488    fi
17489    ;;
17490  interix*)
17491    # we just hope/assume this is gcc and not c89 (= MSVC++)
17492    with_gnu_ld=yes
17493    ;;
17494  openbsd*)
17495    with_gnu_ld=no
17496    ;;
17497  esac
17498
17499  ld_shlibs_GCJ=yes
17500  if test "$with_gnu_ld" = yes; then
17501    # If archive_cmds runs LD, not CC, wlarc should be empty
17502    wlarc='${wl}'
17503
17504    # Set some defaults for GNU ld with shared library support. These
17505    # are reset later if shared libraries are not supported. Putting them
17506    # here allows them to be overridden if necessary.
17507    runpath_var=LD_RUN_PATH
17508    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17509    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17510    # ancient GNU ld didn't support --whole-archive et. al.
17511    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17512	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17513      else
17514  	whole_archive_flag_spec_GCJ=
17515    fi
17516    supports_anon_versioning=no
17517    case `$LD -v 2>/dev/null` in
17518      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17519      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17520      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17521      *\ 2.11.*) ;; # other 2.11 versions
17522      *) supports_anon_versioning=yes ;;
17523    esac
17524
17525    # See if GNU ld supports shared libraries.
17526    case $host_os in
17527    aix[3-9]*)
17528      # On AIX/PPC, the GNU linker is very broken
17529      if test "$host_cpu" != ia64; then
17530	ld_shlibs_GCJ=no
17531	cat <<EOF 1>&2
17532
17533*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17534*** to be unable to reliably create shared libraries on AIX.
17535*** Therefore, libtool is disabling shared libraries support.  If you
17536*** really care for shared libraries, you may want to modify your PATH
17537*** so that a non-GNU linker is found, and then restart.
17538
17539EOF
17540      fi
17541      ;;
17542
17543    amigaos*)
17544      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)'
17545      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546      hardcode_minus_L_GCJ=yes
17547
17548      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17549      # that the semantics of dynamic libraries on AmigaOS, at least up
17550      # to version 4, is to share data among multiple programs linked
17551      # with the same dynamic library.  Since this doesn't match the
17552      # behavior of shared libraries on other platforms, we can't use
17553      # them.
17554      ld_shlibs_GCJ=no
17555      ;;
17556
17557    beos*)
17558      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17559	allow_undefined_flag_GCJ=unsupported
17560	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17561	# support --undefined.  This deserves some investigation.  FIXME
17562	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563      else
17564	ld_shlibs_GCJ=no
17565      fi
17566      ;;
17567
17568    cygwin* | mingw* | pw32*)
17569      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17570      # as there is no search path for DLLs.
17571      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17572      allow_undefined_flag_GCJ=unsupported
17573      always_export_symbols_GCJ=no
17574      enable_shared_with_static_runtimes_GCJ=yes
17575      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17576
17577      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17578        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17579	# If the export-symbols file already is a .def file (1st line
17580	# is EXPORTS), use it as is; otherwise, prepend...
17581	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17582	  cp $export_symbols $output_objdir/$soname.def;
17583	else
17584	  echo EXPORTS > $output_objdir/$soname.def;
17585	  cat $export_symbols >> $output_objdir/$soname.def;
17586	fi~
17587	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17588      else
17589	ld_shlibs_GCJ=no
17590      fi
17591      ;;
17592
17593    interix[3-9]*)
17594      hardcode_direct_GCJ=no
17595      hardcode_shlibpath_var_GCJ=no
17596      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17597      export_dynamic_flag_spec_GCJ='${wl}-E'
17598      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17599      # Instead, shared libraries are loaded at an image base (0x10000000 by
17600      # default) and relocated if they conflict, which is a slow very memory
17601      # consuming and fragmenting process.  To avoid this, we pick a random,
17602      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17603      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17604      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'
17605      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'
17606      ;;
17607
17608    gnu* | linux* | k*bsd*-gnu)
17609      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17610	tmp_addflag=
17611	case $cc_basename,$host_cpu in
17612	pgcc*)				# Portland Group C compiler
17613	  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'
17614	  tmp_addflag=' $pic_flag'
17615	  ;;
17616	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17617	  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'
17618	  tmp_addflag=' $pic_flag -Mnomain' ;;
17619	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17620	  tmp_addflag=' -i_dynamic' ;;
17621	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17622	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17623	ifc* | ifort*)			# Intel Fortran compiler
17624	  tmp_addflag=' -nofor_main' ;;
17625	esac
17626	case `$CC -V 2>&1 | sed 5q` in
17627	*Sun\ C*)			# Sun C 5.9
17628	  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'
17629	  tmp_sharedflag='-G' ;;
17630	*Sun\ F*)			# Sun Fortran 8.3
17631	  tmp_sharedflag='-G' ;;
17632	*)
17633	  tmp_sharedflag='-shared' ;;
17634	esac
17635	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17636
17637	if test $supports_anon_versioning = yes; then
17638	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17639  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17640  $echo "local: *; };" >> $output_objdir/$libname.ver~
17641	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17642	fi
17643      else
17644	ld_shlibs_GCJ=no
17645      fi
17646      ;;
17647
17648    netbsd*)
17649      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17650	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17651	wlarc=
17652      else
17653	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655      fi
17656      ;;
17657
17658    solaris*)
17659      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17660	ld_shlibs_GCJ=no
17661	cat <<EOF 1>&2
17662
17663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17664*** create shared libraries on Solaris systems.  Therefore, libtool
17665*** is disabling shared libraries support.  We urge you to upgrade GNU
17666*** binutils to release 2.9.1 or newer.  Another option is to modify
17667*** your PATH or compiler configuration so that the native linker is
17668*** used, and then restart.
17669
17670EOF
17671      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17672	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17674      else
17675	ld_shlibs_GCJ=no
17676      fi
17677      ;;
17678
17679    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17680      case `$LD -v 2>&1` in
17681        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17682	ld_shlibs_GCJ=no
17683	cat <<_LT_EOF 1>&2
17684
17685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17686*** reliably create shared libraries on SCO systems.  Therefore, libtool
17687*** is disabling shared libraries support.  We urge you to upgrade GNU
17688*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17689*** your PATH or compiler configuration so that the native linker is
17690*** used, and then restart.
17691
17692_LT_EOF
17693	;;
17694	*)
17695	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17696	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17697	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17698	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17699	  else
17700	    ld_shlibs_GCJ=no
17701	  fi
17702	;;
17703      esac
17704      ;;
17705
17706    sunos4*)
17707      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17708      wlarc=
17709      hardcode_direct_GCJ=yes
17710      hardcode_shlibpath_var_GCJ=no
17711      ;;
17712
17713    *)
17714      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17715	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17716	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17717      else
17718	ld_shlibs_GCJ=no
17719      fi
17720      ;;
17721    esac
17722
17723    if test "$ld_shlibs_GCJ" = no; then
17724      runpath_var=
17725      hardcode_libdir_flag_spec_GCJ=
17726      export_dynamic_flag_spec_GCJ=
17727      whole_archive_flag_spec_GCJ=
17728    fi
17729  else
17730    # PORTME fill in a description of your system's linker (not GNU ld)
17731    case $host_os in
17732    aix3*)
17733      allow_undefined_flag_GCJ=unsupported
17734      always_export_symbols_GCJ=yes
17735      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'
17736      # Note: this linker hardcodes the directories in LIBPATH if there
17737      # are no directories specified by -L.
17738      hardcode_minus_L_GCJ=yes
17739      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17740	# Neither direct hardcoding nor static linking is supported with a
17741	# broken collect2.
17742	hardcode_direct_GCJ=unsupported
17743      fi
17744      ;;
17745
17746    aix[4-9]*)
17747      if test "$host_cpu" = ia64; then
17748	# On IA64, the linker does run time linking by default, so we don't
17749	# have to do anything special.
17750	aix_use_runtimelinking=no
17751	exp_sym_flag='-Bexport'
17752	no_entry_flag=""
17753      else
17754	# If we're using GNU nm, then we don't want the "-C" option.
17755	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17756	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17757	  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'
17758	else
17759	  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'
17760	fi
17761	aix_use_runtimelinking=no
17762
17763	# Test if we are trying to use run time linking or normal
17764	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17765	# need to do runtime linking.
17766	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17767	  for ld_flag in $LDFLAGS; do
17768  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17769  	    aix_use_runtimelinking=yes
17770  	    break
17771  	  fi
17772	  done
17773	  ;;
17774	esac
17775
17776	exp_sym_flag='-bexport'
17777	no_entry_flag='-bnoentry'
17778      fi
17779
17780      # When large executables or shared objects are built, AIX ld can
17781      # have problems creating the table of contents.  If linking a library
17782      # or program results in "error TOC overflow" add -mminimal-toc to
17783      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17784      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17785
17786      archive_cmds_GCJ=''
17787      hardcode_direct_GCJ=yes
17788      hardcode_libdir_separator_GCJ=':'
17789      link_all_deplibs_GCJ=yes
17790
17791      if test "$GCC" = yes; then
17792	case $host_os in aix4.[012]|aix4.[012].*)
17793	# We only want to do this on AIX 4.2 and lower, the check
17794	# below for broken collect2 doesn't work under 4.3+
17795	  collect2name=`${CC} -print-prog-name=collect2`
17796	  if test -f "$collect2name" && \
17797  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17798	  then
17799  	  # We have reworked collect2
17800  	  :
17801	  else
17802  	  # We have old collect2
17803  	  hardcode_direct_GCJ=unsupported
17804  	  # It fails to find uninstalled libraries when the uninstalled
17805  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17806  	  # to unsupported forces relinking
17807  	  hardcode_minus_L_GCJ=yes
17808  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809  	  hardcode_libdir_separator_GCJ=
17810	  fi
17811	  ;;
17812	esac
17813	shared_flag='-shared'
17814	if test "$aix_use_runtimelinking" = yes; then
17815	  shared_flag="$shared_flag "'${wl}-G'
17816	fi
17817      else
17818	# not using gcc
17819	if test "$host_cpu" = ia64; then
17820  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17821  	# chokes on -Wl,-G. The following line is correct:
17822	  shared_flag='-G'
17823	else
17824	  if test "$aix_use_runtimelinking" = yes; then
17825	    shared_flag='${wl}-G'
17826	  else
17827	    shared_flag='${wl}-bM:SRE'
17828	  fi
17829	fi
17830      fi
17831
17832      # It seems that -bexpall does not export symbols beginning with
17833      # underscore (_), so it is better to generate a list of symbols to export.
17834      always_export_symbols_GCJ=yes
17835      if test "$aix_use_runtimelinking" = yes; then
17836	# Warning - without using the other runtime loading flags (-brtl),
17837	# -berok will link without error, but may produce a broken library.
17838	allow_undefined_flag_GCJ='-berok'
17839       # Determine the default libpath from the value encoded in an empty executable.
17840       cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h.  */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h.  */
17846
17847int
17848main ()
17849{
17850
17851  ;
17852  return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext conftest$ac_exeext
17856if { (ac_try="$ac_link"
17857case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17862$as_echo "$ac_try_echo") >&5
17863  (eval "$ac_link") 2>conftest.er1
17864  ac_status=$?
17865  grep -v '^ *+' conftest.er1 >conftest.err
17866  rm -f conftest.er1
17867  cat conftest.err >&5
17868  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869  (exit $ac_status); } && {
17870	 test -z "$ac_c_werror_flag" ||
17871	 test ! -s conftest.err
17872       } && test -s conftest$ac_exeext && {
17873	 test "$cross_compiling" = yes ||
17874	 $as_test_x conftest$ac_exeext
17875       }; then
17876
17877lt_aix_libpath_sed='
17878    /Import File Strings/,/^$/ {
17879	/^0/ {
17880	    s/^0  *\(.*\)$/\1/
17881	    p
17882	}
17883    }'
17884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17885# Check for a 64-bit object if we didn't find anything.
17886if test -z "$aix_libpath"; then
17887  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888fi
17889else
17890  $as_echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893
17894fi
17895
17896rm -rf conftest.dSYM
17897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17898      conftest$ac_exeext conftest.$ac_ext
17899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17900
17901       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17902	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"
17903       else
17904	if test "$host_cpu" = ia64; then
17905	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17906	  allow_undefined_flag_GCJ="-z nodefs"
17907	  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"
17908	else
17909	 # Determine the default libpath from the value encoded in an empty executable.
17910	 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h.  */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h.  */
17916
17917int
17918main ()
17919{
17920
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext conftest$ac_exeext
17926if { (ac_try="$ac_link"
17927case "(($ac_try" in
17928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929  *) ac_try_echo=$ac_try;;
17930esac
17931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17932$as_echo "$ac_try_echo") >&5
17933  (eval "$ac_link") 2>conftest.er1
17934  ac_status=$?
17935  grep -v '^ *+' conftest.er1 >conftest.err
17936  rm -f conftest.er1
17937  cat conftest.err >&5
17938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); } && {
17940	 test -z "$ac_c_werror_flag" ||
17941	 test ! -s conftest.err
17942       } && test -s conftest$ac_exeext && {
17943	 test "$cross_compiling" = yes ||
17944	 $as_test_x conftest$ac_exeext
17945       }; then
17946
17947lt_aix_libpath_sed='
17948    /Import File Strings/,/^$/ {
17949	/^0/ {
17950	    s/^0  *\(.*\)$/\1/
17951	    p
17952	}
17953    }'
17954aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17955# Check for a 64-bit object if we didn't find anything.
17956if test -z "$aix_libpath"; then
17957  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958fi
17959else
17960  $as_echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963
17964fi
17965
17966rm -rf conftest.dSYM
17967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17968      conftest$ac_exeext conftest.$ac_ext
17969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17970
17971	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17972	  # Warning - without using the other run time loading flags,
17973	  # -berok will link without error, but may produce a broken library.
17974	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17975	  allow_undefined_flag_GCJ=' ${wl}-berok'
17976	  # Exported symbols can be pulled into shared objects from archives
17977	  whole_archive_flag_spec_GCJ='$convenience'
17978	  archive_cmds_need_lc_GCJ=yes
17979	  # This is similar to how AIX traditionally builds its shared libraries.
17980	  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'
17981	fi
17982      fi
17983      ;;
17984
17985    amigaos*)
17986      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)'
17987      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988      hardcode_minus_L_GCJ=yes
17989      # see comment about different semantics on the GNU ld section
17990      ld_shlibs_GCJ=no
17991      ;;
17992
17993    bsdi[45]*)
17994      export_dynamic_flag_spec_GCJ=-rdynamic
17995      ;;
17996
17997    cygwin* | mingw* | pw32*)
17998      # When not using gcc, we currently assume that we are using
17999      # Microsoft Visual C++.
18000      # hardcode_libdir_flag_spec is actually meaningless, as there is
18001      # no search path for DLLs.
18002      hardcode_libdir_flag_spec_GCJ=' '
18003      allow_undefined_flag_GCJ=unsupported
18004      # Tell ltmain to make .lib files, not .a files.
18005      libext=lib
18006      # Tell ltmain to make .dll files, not .so files.
18007      shrext_cmds=".dll"
18008      # FIXME: Setting linknames here is a bad hack.
18009      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18010      # The linker will automatically build a .lib file if we build a DLL.
18011      old_archive_From_new_cmds_GCJ='true'
18012      # FIXME: Should let the user specify the lib program.
18013      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18014      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18015      enable_shared_with_static_runtimes_GCJ=yes
18016      ;;
18017
18018    darwin* | rhapsody*)
18019      case $host_os in
18020        rhapsody* | darwin1.[012])
18021         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18022         ;;
18023       *) # Darwin 1.3 on
18024         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18025           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18026         else
18027           case ${MACOSX_DEPLOYMENT_TARGET} in
18028             10.[012])
18029               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18030               ;;
18031             10.*)
18032               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18033               ;;
18034           esac
18035         fi
18036         ;;
18037      esac
18038      archive_cmds_need_lc_GCJ=no
18039      hardcode_direct_GCJ=no
18040      hardcode_automatic_GCJ=yes
18041      hardcode_shlibpath_var_GCJ=unsupported
18042      whole_archive_flag_spec_GCJ=''
18043      link_all_deplibs_GCJ=yes
18044    if test "$GCC" = yes ; then
18045    	output_verbose_link_cmd='echo'
18046        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}"
18047        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18048        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}"
18049        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}"
18050    else
18051      case $cc_basename in
18052        xlc*)
18053         output_verbose_link_cmd='echo'
18054         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18055         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18056          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18057         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}'
18058          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}'
18059          ;;
18060       *)
18061         ld_shlibs_GCJ=no
18062          ;;
18063      esac
18064    fi
18065      ;;
18066
18067    dgux*)
18068      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18070      hardcode_shlibpath_var_GCJ=no
18071      ;;
18072
18073    freebsd1*)
18074      ld_shlibs_GCJ=no
18075      ;;
18076
18077    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18078    # support.  Future versions do this automatically, but an explicit c++rt0.o
18079    # does not break anything, and helps significantly (at the cost of a little
18080    # extra space).
18081    freebsd2.2*)
18082      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18083      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18084      hardcode_direct_GCJ=yes
18085      hardcode_shlibpath_var_GCJ=no
18086      ;;
18087
18088    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18089    freebsd2*)
18090      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18091      hardcode_direct_GCJ=yes
18092      hardcode_minus_L_GCJ=yes
18093      hardcode_shlibpath_var_GCJ=no
18094      ;;
18095
18096    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18097    freebsd* | dragonfly*)
18098      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18099      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18100      hardcode_direct_GCJ=yes
18101      hardcode_shlibpath_var_GCJ=no
18102      ;;
18103
18104    hpux9*)
18105      if test "$GCC" = yes; then
18106	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'
18107      else
18108	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'
18109      fi
18110      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18111      hardcode_libdir_separator_GCJ=:
18112      hardcode_direct_GCJ=yes
18113
18114      # hardcode_minus_L: Not really in the search PATH,
18115      # but as the default location of the library.
18116      hardcode_minus_L_GCJ=yes
18117      export_dynamic_flag_spec_GCJ='${wl}-E'
18118      ;;
18119
18120    hpux10*)
18121      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18122	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18123      else
18124	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18125      fi
18126      if test "$with_gnu_ld" = no; then
18127	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18128	hardcode_libdir_separator_GCJ=:
18129
18130	hardcode_direct_GCJ=yes
18131	export_dynamic_flag_spec_GCJ='${wl}-E'
18132
18133	# hardcode_minus_L: Not really in the search PATH,
18134	# but as the default location of the library.
18135	hardcode_minus_L_GCJ=yes
18136      fi
18137      ;;
18138
18139    hpux11*)
18140      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18141	case $host_cpu in
18142	hppa*64*)
18143	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144	  ;;
18145	ia64*)
18146	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147	  ;;
18148	*)
18149	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150	  ;;
18151	esac
18152      else
18153	case $host_cpu in
18154	hppa*64*)
18155	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18156	  ;;
18157	ia64*)
18158	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18159	  ;;
18160	*)
18161	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18162	  ;;
18163	esac
18164      fi
18165      if test "$with_gnu_ld" = no; then
18166	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18167	hardcode_libdir_separator_GCJ=:
18168
18169	case $host_cpu in
18170	hppa*64*|ia64*)
18171	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18172	  hardcode_direct_GCJ=no
18173	  hardcode_shlibpath_var_GCJ=no
18174	  ;;
18175	*)
18176	  hardcode_direct_GCJ=yes
18177	  export_dynamic_flag_spec_GCJ='${wl}-E'
18178
18179	  # hardcode_minus_L: Not really in the search PATH,
18180	  # but as the default location of the library.
18181	  hardcode_minus_L_GCJ=yes
18182	  ;;
18183	esac
18184      fi
18185      ;;
18186
18187    irix5* | irix6* | nonstopux*)
18188      if test "$GCC" = yes; then
18189	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'
18190      else
18191	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'
18192	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18193      fi
18194      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18195      hardcode_libdir_separator_GCJ=:
18196      link_all_deplibs_GCJ=yes
18197      ;;
18198
18199    netbsd*)
18200      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18201	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18202      else
18203	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18204      fi
18205      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18206      hardcode_direct_GCJ=yes
18207      hardcode_shlibpath_var_GCJ=no
18208      ;;
18209
18210    newsos6)
18211      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18212      hardcode_direct_GCJ=yes
18213      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18214      hardcode_libdir_separator_GCJ=:
18215      hardcode_shlibpath_var_GCJ=no
18216      ;;
18217
18218    openbsd*)
18219      if test -f /usr/libexec/ld.so; then
18220	hardcode_direct_GCJ=yes
18221	hardcode_shlibpath_var_GCJ=no
18222	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18223	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18224	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18225	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18226	  export_dynamic_flag_spec_GCJ='${wl}-E'
18227	else
18228	  case $host_os in
18229	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18230	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18231	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18232	     ;;
18233	   *)
18234	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18235	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18236	     ;;
18237	  esac
18238        fi
18239      else
18240	ld_shlibs_GCJ=no
18241      fi
18242      ;;
18243
18244    os2*)
18245      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18246      hardcode_minus_L_GCJ=yes
18247      allow_undefined_flag_GCJ=unsupported
18248      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'
18249      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18250      ;;
18251
18252    osf3*)
18253      if test "$GCC" = yes; then
18254	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255	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'
18256      else
18257	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18258	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'
18259      fi
18260      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18261      hardcode_libdir_separator_GCJ=:
18262      ;;
18263
18264    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18265      if test "$GCC" = yes; then
18266	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18267	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'
18268	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269      else
18270	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18271	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'
18272	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~
18273	$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'
18274
18275	# Both c and cxx compiler support -rpath directly
18276	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18277      fi
18278      hardcode_libdir_separator_GCJ=:
18279      ;;
18280
18281    solaris*)
18282      no_undefined_flag_GCJ=' -z text'
18283      if test "$GCC" = yes; then
18284	wlarc='${wl}'
18285	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18286	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18287	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18288      else
18289	wlarc=''
18290	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18291	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18292  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18293      fi
18294      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18295      hardcode_shlibpath_var_GCJ=no
18296      case $host_os in
18297      solaris2.[0-5] | solaris2.[0-5].*) ;;
18298      *)
18299	# The compiler driver will combine and reorder linker options,
18300	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18301	# but is careful enough not to reorder.
18302 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18303	if test "$GCC" = yes; then
18304	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18305	else
18306	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18307	fi
18308	;;
18309      esac
18310      link_all_deplibs_GCJ=yes
18311      ;;
18312
18313    sunos4*)
18314      if test "x$host_vendor" = xsequent; then
18315	# Use $CC to link under sequent, because it throws in some extra .o
18316	# files that make .init and .fini sections work.
18317	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18318      else
18319	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18320      fi
18321      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18322      hardcode_direct_GCJ=yes
18323      hardcode_minus_L_GCJ=yes
18324      hardcode_shlibpath_var_GCJ=no
18325      ;;
18326
18327    sysv4)
18328      case $host_vendor in
18329	sni)
18330	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331	  hardcode_direct_GCJ=yes # is this really true???
18332	;;
18333	siemens)
18334	  ## LD is ld it makes a PLAMLIB
18335	  ## CC just makes a GrossModule.
18336	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18337	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18338	  hardcode_direct_GCJ=no
18339        ;;
18340	motorola)
18341	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18343	;;
18344      esac
18345      runpath_var='LD_RUN_PATH'
18346      hardcode_shlibpath_var_GCJ=no
18347      ;;
18348
18349    sysv4.3*)
18350      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351      hardcode_shlibpath_var_GCJ=no
18352      export_dynamic_flag_spec_GCJ='-Bexport'
18353      ;;
18354
18355    sysv4*MP*)
18356      if test -d /usr/nec; then
18357	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358	hardcode_shlibpath_var_GCJ=no
18359	runpath_var=LD_RUN_PATH
18360	hardcode_runpath_var=yes
18361	ld_shlibs_GCJ=yes
18362      fi
18363      ;;
18364
18365    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18366      no_undefined_flag_GCJ='${wl}-z,text'
18367      archive_cmds_need_lc_GCJ=no
18368      hardcode_shlibpath_var_GCJ=no
18369      runpath_var='LD_RUN_PATH'
18370
18371      if test "$GCC" = yes; then
18372	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18373	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18374      else
18375	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377      fi
18378      ;;
18379
18380    sysv5* | sco3.2v5* | sco5v6*)
18381      # Note: We can NOT use -z defs as we might desire, because we do not
18382      # link with -lc, and that would cause any symbols used from libc to
18383      # always be unresolved, which means just about no library would
18384      # ever link correctly.  If we're not using GNU ld we use -z text
18385      # though, which does catch some bad symbols but isn't as heavy-handed
18386      # as -z defs.
18387      no_undefined_flag_GCJ='${wl}-z,text'
18388      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18389      archive_cmds_need_lc_GCJ=no
18390      hardcode_shlibpath_var_GCJ=no
18391      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18392      hardcode_libdir_separator_GCJ=':'
18393      link_all_deplibs_GCJ=yes
18394      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18395      runpath_var='LD_RUN_PATH'
18396
18397      if test "$GCC" = yes; then
18398	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18399	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18400      else
18401	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403      fi
18404      ;;
18405
18406    uts4*)
18407      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18409      hardcode_shlibpath_var_GCJ=no
18410      ;;
18411
18412    *)
18413      ld_shlibs_GCJ=no
18414      ;;
18415    esac
18416  fi
18417
18418{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18419$as_echo "$ld_shlibs_GCJ" >&6; }
18420test "$ld_shlibs_GCJ" = no && can_build_shared=no
18421
18422#
18423# Do we need to explicitly link libc?
18424#
18425case "x$archive_cmds_need_lc_GCJ" in
18426x|xyes)
18427  # Assume -lc should be added
18428  archive_cmds_need_lc_GCJ=yes
18429
18430  if test "$enable_shared" = yes && test "$GCC" = yes; then
18431    case $archive_cmds_GCJ in
18432    *'~'*)
18433      # FIXME: we may have to deal with multi-command sequences.
18434      ;;
18435    '$CC '*)
18436      # Test whether the compiler implicitly links with -lc since on some
18437      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18438      # to ld, don't add -lc before -lgcc.
18439      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18440$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18441      $rm conftest*
18442      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18443
18444      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445  (eval $ac_compile) 2>&5
18446  ac_status=$?
18447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448  (exit $ac_status); } 2>conftest.err; then
18449        soname=conftest
18450        lib=conftest
18451        libobjs=conftest.$ac_objext
18452        deplibs=
18453        wl=$lt_prog_compiler_wl_GCJ
18454	pic_flag=$lt_prog_compiler_pic_GCJ
18455        compiler_flags=-v
18456        linker_flags=-v
18457        verstring=
18458        output_objdir=.
18459        libname=conftest
18460        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18461        allow_undefined_flag_GCJ=
18462        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18463  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18464  ac_status=$?
18465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466  (exit $ac_status); }
18467        then
18468	  archive_cmds_need_lc_GCJ=no
18469        else
18470	  archive_cmds_need_lc_GCJ=yes
18471        fi
18472        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18473      else
18474        cat conftest.err 1>&5
18475      fi
18476      $rm conftest*
18477      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18478$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18479      ;;
18480    esac
18481  fi
18482  ;;
18483esac
18484
18485{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18486$as_echo_n "checking dynamic linker characteristics... " >&6; }
18487library_names_spec=
18488libname_spec='lib$name'
18489soname_spec=
18490shrext_cmds=".so"
18491postinstall_cmds=
18492postuninstall_cmds=
18493finish_cmds=
18494finish_eval=
18495shlibpath_var=
18496shlibpath_overrides_runpath=unknown
18497version_type=none
18498dynamic_linker="$host_os ld.so"
18499sys_lib_dlsearch_path_spec="/lib /usr/lib"
18500
18501need_lib_prefix=unknown
18502hardcode_into_libs=no
18503
18504# when you set need_version to no, make sure it does not cause -set_version
18505# flags to be left without arguments
18506need_version=unknown
18507
18508case $host_os in
18509aix3*)
18510  version_type=linux
18511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18512  shlibpath_var=LIBPATH
18513
18514  # AIX 3 has no versioning support, so we append a major version to the name.
18515  soname_spec='${libname}${release}${shared_ext}$major'
18516  ;;
18517
18518aix[4-9]*)
18519  version_type=linux
18520  need_lib_prefix=no
18521  need_version=no
18522  hardcode_into_libs=yes
18523  if test "$host_cpu" = ia64; then
18524    # AIX 5 supports IA64
18525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18526    shlibpath_var=LD_LIBRARY_PATH
18527  else
18528    # With GCC up to 2.95.x, collect2 would create an import file
18529    # for dependence libraries.  The import file would start with
18530    # the line `#! .'.  This would cause the generated library to
18531    # depend on `.', always an invalid library.  This was fixed in
18532    # development snapshots of GCC prior to 3.0.
18533    case $host_os in
18534      aix4 | aix4.[01] | aix4.[01].*)
18535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18536	   echo ' yes '
18537	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18538	:
18539      else
18540	can_build_shared=no
18541      fi
18542      ;;
18543    esac
18544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18545    # soname into executable. Probably we can add versioning support to
18546    # collect2, so additional links can be useful in future.
18547    if test "$aix_use_runtimelinking" = yes; then
18548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18549      # instead of lib<name>.a to let people know that these are not
18550      # typical AIX shared libraries.
18551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552    else
18553      # We preserve .a as extension for shared libraries through AIX4.2
18554      # and later when we are not doing run time linking.
18555      library_names_spec='${libname}${release}.a $libname.a'
18556      soname_spec='${libname}${release}${shared_ext}$major'
18557    fi
18558    shlibpath_var=LIBPATH
18559  fi
18560  ;;
18561
18562amigaos*)
18563  library_names_spec='$libname.ixlibrary $libname.a'
18564  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18565  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'
18566  ;;
18567
18568beos*)
18569  library_names_spec='${libname}${shared_ext}'
18570  dynamic_linker="$host_os ld.so"
18571  shlibpath_var=LIBRARY_PATH
18572  ;;
18573
18574bsdi[45]*)
18575  version_type=linux
18576  need_version=no
18577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578  soname_spec='${libname}${release}${shared_ext}$major'
18579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18580  shlibpath_var=LD_LIBRARY_PATH
18581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18583  # the default ld.so.conf also contains /usr/contrib/lib and
18584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18585  # libtool to hard-code these into programs
18586  ;;
18587
18588cygwin* | mingw* | pw32*)
18589  version_type=windows
18590  shrext_cmds=".dll"
18591  need_version=no
18592  need_lib_prefix=no
18593
18594  case $GCC,$host_os in
18595  yes,cygwin* | yes,mingw* | yes,pw32*)
18596    library_names_spec='$libname.dll.a'
18597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18598    postinstall_cmds='base_file=`basename \${file}`~
18599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18600      dldir=$destdir/`dirname \$dlpath`~
18601      test -d \$dldir || mkdir -p \$dldir~
18602      $install_prog $dir/$dlname \$dldir/$dlname~
18603      chmod a+x \$dldir/$dlname'
18604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18605      dlpath=$dir/\$dldll~
18606       $rm \$dlpath'
18607    shlibpath_overrides_runpath=yes
18608
18609    case $host_os in
18610    cygwin*)
18611      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18612      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18613      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18614      ;;
18615    mingw*)
18616      # MinGW DLLs use traditional 'lib' prefix
18617      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18618      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18619      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18620        # It is most probably a Windows format PATH printed by
18621        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18622        # path with ; separators, and with drive letters. We can handle the
18623        # drive letters (cygwin fileutils understands them), so leave them,
18624        # especially as we might pass files found there to a mingw objdump,
18625        # which wouldn't understand a cygwinified path. Ahh.
18626        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18627      else
18628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18629      fi
18630      ;;
18631    pw32*)
18632      # pw32 DLLs use 'pw' prefix rather than 'lib'
18633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18634      ;;
18635    esac
18636    ;;
18637
18638  *)
18639    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18640    ;;
18641  esac
18642  dynamic_linker='Win32 ld.exe'
18643  # FIXME: first we should search . and the directory the executable is in
18644  shlibpath_var=PATH
18645  ;;
18646
18647darwin* | rhapsody*)
18648  dynamic_linker="$host_os dyld"
18649  version_type=darwin
18650  need_lib_prefix=no
18651  need_version=no
18652  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18653  soname_spec='${libname}${release}${major}$shared_ext'
18654  shlibpath_overrides_runpath=yes
18655  shlibpath_var=DYLD_LIBRARY_PATH
18656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18657
18658  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18659  ;;
18660
18661dgux*)
18662  version_type=linux
18663  need_lib_prefix=no
18664  need_version=no
18665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18666  soname_spec='${libname}${release}${shared_ext}$major'
18667  shlibpath_var=LD_LIBRARY_PATH
18668  ;;
18669
18670freebsd1*)
18671  dynamic_linker=no
18672  ;;
18673
18674freebsd* | dragonfly*)
18675  # DragonFly does not have aout.  When/if they implement a new
18676  # versioning mechanism, adjust this.
18677  if test -x /usr/bin/objformat; then
18678    objformat=`/usr/bin/objformat`
18679  else
18680    case $host_os in
18681    freebsd[123]*) objformat=aout ;;
18682    *) objformat=elf ;;
18683    esac
18684  fi
18685  version_type=freebsd-$objformat
18686  case $version_type in
18687    freebsd-elf*)
18688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18689      need_version=no
18690      need_lib_prefix=no
18691      ;;
18692    freebsd-*)
18693      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18694      need_version=yes
18695      ;;
18696  esac
18697  shlibpath_var=LD_LIBRARY_PATH
18698  case $host_os in
18699  freebsd2*)
18700    shlibpath_overrides_runpath=yes
18701    ;;
18702  freebsd3.[01]* | freebsdelf3.[01]*)
18703    shlibpath_overrides_runpath=yes
18704    hardcode_into_libs=yes
18705    ;;
18706  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18707  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18708    shlibpath_overrides_runpath=no
18709    hardcode_into_libs=yes
18710    ;;
18711  *) # from 4.6 on, and DragonFly
18712    shlibpath_overrides_runpath=yes
18713    hardcode_into_libs=yes
18714    ;;
18715  esac
18716  ;;
18717
18718gnu*)
18719  version_type=linux
18720  need_lib_prefix=no
18721  need_version=no
18722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18723  soname_spec='${libname}${release}${shared_ext}$major'
18724  shlibpath_var=LD_LIBRARY_PATH
18725  hardcode_into_libs=yes
18726  ;;
18727
18728hpux9* | hpux10* | hpux11*)
18729  # Give a soname corresponding to the major version so that dld.sl refuses to
18730  # link against other versions.
18731  version_type=sunos
18732  need_lib_prefix=no
18733  need_version=no
18734  case $host_cpu in
18735  ia64*)
18736    shrext_cmds='.so'
18737    hardcode_into_libs=yes
18738    dynamic_linker="$host_os dld.so"
18739    shlibpath_var=LD_LIBRARY_PATH
18740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742    soname_spec='${libname}${release}${shared_ext}$major'
18743    if test "X$HPUX_IA64_MODE" = X32; then
18744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18745    else
18746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18747    fi
18748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18749    ;;
18750   hppa*64*)
18751     shrext_cmds='.sl'
18752     hardcode_into_libs=yes
18753     dynamic_linker="$host_os dld.sl"
18754     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757     soname_spec='${libname}${release}${shared_ext}$major'
18758     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18760     ;;
18761   *)
18762    shrext_cmds='.sl'
18763    dynamic_linker="$host_os dld.sl"
18764    shlibpath_var=SHLIB_PATH
18765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767    soname_spec='${libname}${release}${shared_ext}$major'
18768    ;;
18769  esac
18770  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18771  postinstall_cmds='chmod 555 $lib'
18772  ;;
18773
18774interix[3-9]*)
18775  version_type=linux
18776  need_lib_prefix=no
18777  need_version=no
18778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18779  soname_spec='${libname}${release}${shared_ext}$major'
18780  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18781  shlibpath_var=LD_LIBRARY_PATH
18782  shlibpath_overrides_runpath=no
18783  hardcode_into_libs=yes
18784  ;;
18785
18786irix5* | irix6* | nonstopux*)
18787  case $host_os in
18788    nonstopux*) version_type=nonstopux ;;
18789    *)
18790	if test "$lt_cv_prog_gnu_ld" = yes; then
18791		version_type=linux
18792	else
18793		version_type=irix
18794	fi ;;
18795  esac
18796  need_lib_prefix=no
18797  need_version=no
18798  soname_spec='${libname}${release}${shared_ext}$major'
18799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18800  case $host_os in
18801  irix5* | nonstopux*)
18802    libsuff= shlibsuff=
18803    ;;
18804  *)
18805    case $LD in # libtool.m4 will add one of these switches to LD
18806    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18807      libsuff= shlibsuff= libmagic=32-bit;;
18808    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18809      libsuff=32 shlibsuff=N32 libmagic=N32;;
18810    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18811      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18812    *) libsuff= shlibsuff= libmagic=never-match;;
18813    esac
18814    ;;
18815  esac
18816  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18817  shlibpath_overrides_runpath=no
18818  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18819  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18820  hardcode_into_libs=yes
18821  ;;
18822
18823# No shared lib support for Linux oldld, aout, or coff.
18824linux*oldld* | linux*aout* | linux*coff*)
18825  dynamic_linker=no
18826  ;;
18827
18828# This must be Linux ELF.
18829linux* | k*bsd*-gnu)
18830  version_type=linux
18831  need_lib_prefix=no
18832  need_version=no
18833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18834  soname_spec='${libname}${release}${shared_ext}$major'
18835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18836  shlibpath_var=LD_LIBRARY_PATH
18837  shlibpath_overrides_runpath=no
18838  # This implies no fast_install, which is unacceptable.
18839  # Some rework will be needed to allow for fast_install
18840  # before this can be enabled.
18841  hardcode_into_libs=yes
18842
18843  # Append ld.so.conf contents to the search path
18844  if test -f /etc/ld.so.conf; then
18845    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' ' '`
18846    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18847  fi
18848
18849  # We used to test for /lib/ld.so.1 and disable shared libraries on
18850  # powerpc, because MkLinux only supported shared libraries with the
18851  # GNU dynamic linker.  Since this was broken with cross compilers,
18852  # most powerpc-linux boxes support dynamic linking these days and
18853  # people can always --disable-shared, the test was removed, and we
18854  # assume the GNU/Linux dynamic linker is in use.
18855  dynamic_linker='GNU/Linux ld.so'
18856  ;;
18857
18858netbsd*)
18859  version_type=sunos
18860  need_lib_prefix=no
18861  need_version=no
18862  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18863    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865    dynamic_linker='NetBSD (a.out) ld.so'
18866  else
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    dynamic_linker='NetBSD ld.elf_so'
18870  fi
18871  shlibpath_var=LD_LIBRARY_PATH
18872  shlibpath_overrides_runpath=yes
18873  hardcode_into_libs=yes
18874  ;;
18875
18876newsos6)
18877  version_type=linux
18878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879  shlibpath_var=LD_LIBRARY_PATH
18880  shlibpath_overrides_runpath=yes
18881  ;;
18882
18883nto-qnx*)
18884  version_type=linux
18885  need_lib_prefix=no
18886  need_version=no
18887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888  soname_spec='${libname}${release}${shared_ext}$major'
18889  shlibpath_var=LD_LIBRARY_PATH
18890  shlibpath_overrides_runpath=yes
18891  ;;
18892
18893openbsd*)
18894  version_type=sunos
18895  sys_lib_dlsearch_path_spec="/usr/lib"
18896  need_lib_prefix=no
18897  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18898  case $host_os in
18899    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18900    *)                         need_version=no  ;;
18901  esac
18902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18904  shlibpath_var=LD_LIBRARY_PATH
18905  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18906    case $host_os in
18907      openbsd2.[89] | openbsd2.[89].*)
18908	shlibpath_overrides_runpath=no
18909	;;
18910      *)
18911	shlibpath_overrides_runpath=yes
18912	;;
18913      esac
18914  else
18915    shlibpath_overrides_runpath=yes
18916  fi
18917  ;;
18918
18919os2*)
18920  libname_spec='$name'
18921  shrext_cmds=".dll"
18922  need_lib_prefix=no
18923  library_names_spec='$libname${shared_ext} $libname.a'
18924  dynamic_linker='OS/2 ld.exe'
18925  shlibpath_var=LIBPATH
18926  ;;
18927
18928osf3* | osf4* | osf5*)
18929  version_type=osf
18930  need_lib_prefix=no
18931  need_version=no
18932  soname_spec='${libname}${release}${shared_ext}$major'
18933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934  shlibpath_var=LD_LIBRARY_PATH
18935  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18936  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18937  ;;
18938
18939rdos*)
18940  dynamic_linker=no
18941  ;;
18942
18943solaris*)
18944  version_type=linux
18945  need_lib_prefix=no
18946  need_version=no
18947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948  soname_spec='${libname}${release}${shared_ext}$major'
18949  shlibpath_var=LD_LIBRARY_PATH
18950  shlibpath_overrides_runpath=yes
18951  hardcode_into_libs=yes
18952  # ldd complains unless libraries are executable
18953  postinstall_cmds='chmod +x $lib'
18954  ;;
18955
18956sunos4*)
18957  version_type=sunos
18958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18960  shlibpath_var=LD_LIBRARY_PATH
18961  shlibpath_overrides_runpath=yes
18962  if test "$with_gnu_ld" = yes; then
18963    need_lib_prefix=no
18964  fi
18965  need_version=yes
18966  ;;
18967
18968sysv4 | sysv4.3*)
18969  version_type=linux
18970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971  soname_spec='${libname}${release}${shared_ext}$major'
18972  shlibpath_var=LD_LIBRARY_PATH
18973  case $host_vendor in
18974    sni)
18975      shlibpath_overrides_runpath=no
18976      need_lib_prefix=no
18977      export_dynamic_flag_spec='${wl}-Blargedynsym'
18978      runpath_var=LD_RUN_PATH
18979      ;;
18980    siemens)
18981      need_lib_prefix=no
18982      ;;
18983    motorola)
18984      need_lib_prefix=no
18985      need_version=no
18986      shlibpath_overrides_runpath=no
18987      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18988      ;;
18989  esac
18990  ;;
18991
18992sysv4*MP*)
18993  if test -d /usr/nec ;then
18994    version_type=linux
18995    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18996    soname_spec='$libname${shared_ext}.$major'
18997    shlibpath_var=LD_LIBRARY_PATH
18998  fi
18999  ;;
19000
19001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19002  version_type=freebsd-elf
19003  need_lib_prefix=no
19004  need_version=no
19005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006  soname_spec='${libname}${release}${shared_ext}$major'
19007  shlibpath_var=LD_LIBRARY_PATH
19008  hardcode_into_libs=yes
19009  if test "$with_gnu_ld" = yes; then
19010    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19011    shlibpath_overrides_runpath=no
19012  else
19013    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19014    shlibpath_overrides_runpath=yes
19015    case $host_os in
19016      sco3.2v5*)
19017        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19018	;;
19019    esac
19020  fi
19021  sys_lib_dlsearch_path_spec='/usr/lib'
19022  ;;
19023
19024uts4*)
19025  version_type=linux
19026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027  soname_spec='${libname}${release}${shared_ext}$major'
19028  shlibpath_var=LD_LIBRARY_PATH
19029  ;;
19030
19031*)
19032  dynamic_linker=no
19033  ;;
19034esac
19035{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19036$as_echo "$dynamic_linker" >&6; }
19037test "$dynamic_linker" = no && can_build_shared=no
19038
19039if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19040  $as_echo_n "(cached) " >&6
19041else
19042  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19043fi
19044
19045sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19046if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19047  $as_echo_n "(cached) " >&6
19048else
19049  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19050fi
19051
19052sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19053
19054variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055if test "$GCC" = yes; then
19056  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19057fi
19058
19059{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19061hardcode_action_GCJ=
19062if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063   test -n "$runpath_var_GCJ" || \
19064   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19065
19066  # We can hardcode non-existant directories.
19067  if test "$hardcode_direct_GCJ" != no &&
19068     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069     # have to relink, otherwise we might link with an installed library
19070     # when we should be linking with a yet-to-be-installed one
19071     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072     test "$hardcode_minus_L_GCJ" != no; then
19073    # Linking always hardcodes the temporary library directory.
19074    hardcode_action_GCJ=relink
19075  else
19076    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077    hardcode_action_GCJ=immediate
19078  fi
19079else
19080  # We cannot hardcode anything, or else we can only hardcode existing
19081  # directories.
19082  hardcode_action_GCJ=unsupported
19083fi
19084{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085$as_echo "$hardcode_action_GCJ" >&6; }
19086
19087if test "$hardcode_action_GCJ" = relink; then
19088  # Fast installation is not supported
19089  enable_fast_install=no
19090elif test "$shlibpath_overrides_runpath" = yes ||
19091     test "$enable_shared" = no; then
19092  # Fast installation is not necessary
19093  enable_fast_install=needless
19094fi
19095
19096
19097# The else clause should only fire when bootstrapping the
19098# libtool distribution, otherwise you forgot to ship ltmain.sh
19099# with your package, and you will get complaints that there are
19100# no rules to generate ltmain.sh.
19101if test -f "$ltmain"; then
19102  # See if we are running on zsh, and set the options which allow our commands through
19103  # without removal of \ escapes.
19104  if test -n "${ZSH_VERSION+set}" ; then
19105    setopt NO_GLOB_SUBST
19106  fi
19107  # Now quote all the things that may contain metacharacters while being
19108  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19109  # variables and quote the copies for generation of the libtool script.
19110  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19111    SED SHELL STRIP \
19112    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114    deplibs_check_method reload_flag reload_cmds need_locks \
19115    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116    lt_cv_sys_global_symbol_to_c_name_address \
19117    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118    old_postinstall_cmds old_postuninstall_cmds \
19119    compiler_GCJ \
19120    CC_GCJ \
19121    LD_GCJ \
19122    lt_prog_compiler_wl_GCJ \
19123    lt_prog_compiler_pic_GCJ \
19124    lt_prog_compiler_static_GCJ \
19125    lt_prog_compiler_no_builtin_flag_GCJ \
19126    export_dynamic_flag_spec_GCJ \
19127    thread_safe_flag_spec_GCJ \
19128    whole_archive_flag_spec_GCJ \
19129    enable_shared_with_static_runtimes_GCJ \
19130    old_archive_cmds_GCJ \
19131    old_archive_from_new_cmds_GCJ \
19132    predep_objects_GCJ \
19133    postdep_objects_GCJ \
19134    predeps_GCJ \
19135    postdeps_GCJ \
19136    compiler_lib_search_path_GCJ \
19137    compiler_lib_search_dirs_GCJ \
19138    archive_cmds_GCJ \
19139    archive_expsym_cmds_GCJ \
19140    postinstall_cmds_GCJ \
19141    postuninstall_cmds_GCJ \
19142    old_archive_from_expsyms_cmds_GCJ \
19143    allow_undefined_flag_GCJ \
19144    no_undefined_flag_GCJ \
19145    export_symbols_cmds_GCJ \
19146    hardcode_libdir_flag_spec_GCJ \
19147    hardcode_libdir_flag_spec_ld_GCJ \
19148    hardcode_libdir_separator_GCJ \
19149    hardcode_automatic_GCJ \
19150    module_cmds_GCJ \
19151    module_expsym_cmds_GCJ \
19152    lt_cv_prog_compiler_c_o_GCJ \
19153    fix_srcfile_path_GCJ \
19154    exclude_expsyms_GCJ \
19155    include_expsyms_GCJ; do
19156
19157    case $var in
19158    old_archive_cmds_GCJ | \
19159    old_archive_from_new_cmds_GCJ | \
19160    archive_cmds_GCJ | \
19161    archive_expsym_cmds_GCJ | \
19162    module_cmds_GCJ | \
19163    module_expsym_cmds_GCJ | \
19164    old_archive_from_expsyms_cmds_GCJ | \
19165    export_symbols_cmds_GCJ | \
19166    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19167    postinstall_cmds | postuninstall_cmds | \
19168    old_postinstall_cmds | old_postuninstall_cmds | \
19169    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19170      # Double-quote double-evaled strings.
19171      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19172      ;;
19173    *)
19174      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19175      ;;
19176    esac
19177  done
19178
19179  case $lt_echo in
19180  *'\$0 --fallback-echo"')
19181    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19182    ;;
19183  esac
19184
19185cfgfile="$ofile"
19186
19187  cat <<__EOF__ >> "$cfgfile"
19188# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19189
19190# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19191
19192# Shell to use when invoking shell scripts.
19193SHELL=$lt_SHELL
19194
19195# Whether or not to build shared libraries.
19196build_libtool_libs=$enable_shared
19197
19198# Whether or not to build static libraries.
19199build_old_libs=$enable_static
19200
19201# Whether or not to add -lc for building shared libraries.
19202build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19203
19204# Whether or not to disallow shared libs when runtime libs are static
19205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19206
19207# Whether or not to optimize for fast installation.
19208fast_install=$enable_fast_install
19209
19210# The host system.
19211host_alias=$host_alias
19212host=$host
19213host_os=$host_os
19214
19215# The build system.
19216build_alias=$build_alias
19217build=$build
19218build_os=$build_os
19219
19220# An echo program that does not interpret backslashes.
19221echo=$lt_echo
19222
19223# The archiver.
19224AR=$lt_AR
19225AR_FLAGS=$lt_AR_FLAGS
19226
19227# A C compiler.
19228LTCC=$lt_LTCC
19229
19230# LTCC compiler flags.
19231LTCFLAGS=$lt_LTCFLAGS
19232
19233# A language-specific compiler.
19234CC=$lt_compiler_GCJ
19235
19236# Is the compiler the GNU C compiler?
19237with_gcc=$GCC_GCJ
19238
19239# An ERE matcher.
19240EGREP=$lt_EGREP
19241
19242# The linker used to build libraries.
19243LD=$lt_LD_GCJ
19244
19245# Whether we need hard or soft links.
19246LN_S=$lt_LN_S
19247
19248# A BSD-compatible nm program.
19249NM=$lt_NM
19250
19251# A symbol stripping program
19252STRIP=$lt_STRIP
19253
19254# Used to examine libraries when file_magic_cmd begins "file"
19255MAGIC_CMD=$MAGIC_CMD
19256
19257# Used on cygwin: DLL creation program.
19258DLLTOOL="$DLLTOOL"
19259
19260# Used on cygwin: object dumper.
19261OBJDUMP="$OBJDUMP"
19262
19263# Used on cygwin: assembler.
19264AS="$AS"
19265
19266# The name of the directory that contains temporary libtool files.
19267objdir=$objdir
19268
19269# How to create reloadable object files.
19270reload_flag=$lt_reload_flag
19271reload_cmds=$lt_reload_cmds
19272
19273# How to pass a linker flag through the compiler.
19274wl=$lt_lt_prog_compiler_wl_GCJ
19275
19276# Object file suffix (normally "o").
19277objext="$ac_objext"
19278
19279# Old archive suffix (normally "a").
19280libext="$libext"
19281
19282# Shared library suffix (normally ".so").
19283shrext_cmds='$shrext_cmds'
19284
19285# Executable file suffix (normally "").
19286exeext="$exeext"
19287
19288# Additional compiler flags for building library objects.
19289pic_flag=$lt_lt_prog_compiler_pic_GCJ
19290pic_mode=$pic_mode
19291
19292# What is the maximum length of a command?
19293max_cmd_len=$lt_cv_sys_max_cmd_len
19294
19295# Does compiler simultaneously support -c and -o options?
19296compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19297
19298# Must we lock files when doing compilation?
19299need_locks=$lt_need_locks
19300
19301# Do we need the lib prefix for modules?
19302need_lib_prefix=$need_lib_prefix
19303
19304# Do we need a version for libraries?
19305need_version=$need_version
19306
19307# Whether dlopen is supported.
19308dlopen_support=$enable_dlopen
19309
19310# Whether dlopen of programs is supported.
19311dlopen_self=$enable_dlopen_self
19312
19313# Whether dlopen of statically linked programs is supported.
19314dlopen_self_static=$enable_dlopen_self_static
19315
19316# Compiler flag to prevent dynamic linking.
19317link_static_flag=$lt_lt_prog_compiler_static_GCJ
19318
19319# Compiler flag to turn off builtin functions.
19320no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19321
19322# Compiler flag to allow reflexive dlopens.
19323export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19324
19325# Compiler flag to generate shared objects directly from archives.
19326whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19327
19328# Compiler flag to generate thread-safe objects.
19329thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19330
19331# Library versioning type.
19332version_type=$version_type
19333
19334# Format of library name prefix.
19335libname_spec=$lt_libname_spec
19336
19337# List of archive names.  First name is the real one, the rest are links.
19338# The last name is the one that the linker finds with -lNAME.
19339library_names_spec=$lt_library_names_spec
19340
19341# The coded name of the library, if different from the real name.
19342soname_spec=$lt_soname_spec
19343
19344# Commands used to build and install an old-style archive.
19345RANLIB=$lt_RANLIB
19346old_archive_cmds=$lt_old_archive_cmds_GCJ
19347old_postinstall_cmds=$lt_old_postinstall_cmds
19348old_postuninstall_cmds=$lt_old_postuninstall_cmds
19349
19350# Create an old-style archive from a shared archive.
19351old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19352
19353# Create a temporary old-style archive to link instead of a shared archive.
19354old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19355
19356# Commands used to build and install a shared archive.
19357archive_cmds=$lt_archive_cmds_GCJ
19358archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19359postinstall_cmds=$lt_postinstall_cmds
19360postuninstall_cmds=$lt_postuninstall_cmds
19361
19362# Commands used to build a loadable module (assumed same as above if empty)
19363module_cmds=$lt_module_cmds_GCJ
19364module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19365
19366# Commands to strip libraries.
19367old_striplib=$lt_old_striplib
19368striplib=$lt_striplib
19369
19370# Dependencies to place before the objects being linked to create a
19371# shared library.
19372predep_objects=$lt_predep_objects_GCJ
19373
19374# Dependencies to place after the objects being linked to create a
19375# shared library.
19376postdep_objects=$lt_postdep_objects_GCJ
19377
19378# Dependencies to place before the objects being linked to create a
19379# shared library.
19380predeps=$lt_predeps_GCJ
19381
19382# Dependencies to place after the objects being linked to create a
19383# shared library.
19384postdeps=$lt_postdeps_GCJ
19385
19386# The directories searched by this compiler when creating a shared
19387# library
19388compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19389
19390# The library search path used internally by the compiler when linking
19391# a shared library.
19392compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19393
19394# Method to check whether dependent libraries are shared objects.
19395deplibs_check_method=$lt_deplibs_check_method
19396
19397# Command to use when deplibs_check_method == file_magic.
19398file_magic_cmd=$lt_file_magic_cmd
19399
19400# Flag that allows shared libraries with undefined symbols to be built.
19401allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19402
19403# Flag that forces no undefined symbols.
19404no_undefined_flag=$lt_no_undefined_flag_GCJ
19405
19406# Commands used to finish a libtool library installation in a directory.
19407finish_cmds=$lt_finish_cmds
19408
19409# Same as above, but a single script fragment to be evaled but not shown.
19410finish_eval=$lt_finish_eval
19411
19412# Take the output of nm and produce a listing of raw symbols and C names.
19413global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19414
19415# Transform the output of nm in a proper C declaration
19416global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19417
19418# Transform the output of nm in a C name address pair
19419global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19420
19421# This is the shared library runtime path variable.
19422runpath_var=$runpath_var
19423
19424# This is the shared library path variable.
19425shlibpath_var=$shlibpath_var
19426
19427# Is shlibpath searched before the hard-coded library search path?
19428shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19429
19430# How to hardcode a shared library path into an executable.
19431hardcode_action=$hardcode_action_GCJ
19432
19433# Whether we should hardcode library paths into libraries.
19434hardcode_into_libs=$hardcode_into_libs
19435
19436# Flag to hardcode \$libdir into a binary during linking.
19437# This must work even if \$libdir does not exist.
19438hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19439
19440# If ld is used when linking, flag to hardcode \$libdir into
19441# a binary during linking. This must work even if \$libdir does
19442# not exist.
19443hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19444
19445# Whether we need a single -rpath flag with a separated argument.
19446hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19447
19448# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19449# resulting binary.
19450hardcode_direct=$hardcode_direct_GCJ
19451
19452# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19453# resulting binary.
19454hardcode_minus_L=$hardcode_minus_L_GCJ
19455
19456# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19457# the resulting binary.
19458hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19459
19460# Set to yes if building a shared library automatically hardcodes DIR into the library
19461# and all subsequent libraries and executables linked against it.
19462hardcode_automatic=$hardcode_automatic_GCJ
19463
19464# Variables whose values should be saved in libtool wrapper scripts and
19465# restored at relink time.
19466variables_saved_for_relink="$variables_saved_for_relink"
19467
19468# Whether libtool must link a program against all its dependency libraries.
19469link_all_deplibs=$link_all_deplibs_GCJ
19470
19471# Compile-time system search path for libraries
19472sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19473
19474# Run-time system search path for libraries
19475sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19476
19477# Fix the shell variable \$srcfile for the compiler.
19478fix_srcfile_path=$lt_fix_srcfile_path
19479
19480# Set to yes if exported symbols are required.
19481always_export_symbols=$always_export_symbols_GCJ
19482
19483# The commands to list exported symbols.
19484export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19485
19486# The commands to extract the exported symbol list from a shared archive.
19487extract_expsyms_cmds=$lt_extract_expsyms_cmds
19488
19489# Symbols that should not be listed in the preloaded symbols.
19490exclude_expsyms=$lt_exclude_expsyms_GCJ
19491
19492# Symbols that must always be exported.
19493include_expsyms=$lt_include_expsyms_GCJ
19494
19495# ### END LIBTOOL TAG CONFIG: $tagname
19496
19497__EOF__
19498
19499
19500else
19501  # If there is no Makefile yet, we rely on a make rule to execute
19502  # `config.status --recheck' to rerun these tests and create the
19503  # libtool script then.
19504  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19505  if test -f "$ltmain_in"; then
19506    test -f Makefile && make "$ltmain"
19507  fi
19508fi
19509
19510
19511ac_ext=c
19512ac_cpp='$CPP $CPPFLAGS'
19513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517CC="$lt_save_CC"
19518
19519	else
19520	  tagname=""
19521	fi
19522	;;
19523
19524      RC)
19525
19526
19527# Source file extension for RC test sources.
19528ac_ext=rc
19529
19530# Object file extension for compiled RC test sources.
19531objext=o
19532objext_RC=$objext
19533
19534# Code to be used in simple compile tests
19535lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19536
19537# Code to be used in simple link tests
19538lt_simple_link_test_code="$lt_simple_compile_test_code"
19539
19540# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19541
19542# If no C compiler was specified, use CC.
19543LTCC=${LTCC-"$CC"}
19544
19545# If no C compiler flags were specified, use CFLAGS.
19546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19547
19548# Allow CC to be a program name with arguments.
19549compiler=$CC
19550
19551
19552# save warnings/boilerplate of simple test code
19553ac_outfile=conftest.$ac_objext
19554echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556_lt_compiler_boilerplate=`cat conftest.err`
19557$rm conftest*
19558
19559ac_outfile=conftest.$ac_objext
19560echo "$lt_simple_link_test_code" >conftest.$ac_ext
19561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19562_lt_linker_boilerplate=`cat conftest.err`
19563$rm -r conftest*
19564
19565
19566# Allow CC to be a program name with arguments.
19567lt_save_CC="$CC"
19568CC=${RC-"windres"}
19569compiler=$CC
19570compiler_RC=$CC
19571for cc_temp in $compiler""; do
19572  case $cc_temp in
19573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19575    \-*) ;;
19576    *) break;;
19577  esac
19578done
19579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19580
19581lt_cv_prog_compiler_c_o_RC=yes
19582
19583# The else clause should only fire when bootstrapping the
19584# libtool distribution, otherwise you forgot to ship ltmain.sh
19585# with your package, and you will get complaints that there are
19586# no rules to generate ltmain.sh.
19587if test -f "$ltmain"; then
19588  # See if we are running on zsh, and set the options which allow our commands through
19589  # without removal of \ escapes.
19590  if test -n "${ZSH_VERSION+set}" ; then
19591    setopt NO_GLOB_SUBST
19592  fi
19593  # Now quote all the things that may contain metacharacters while being
19594  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19595  # variables and quote the copies for generation of the libtool script.
19596  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19597    SED SHELL STRIP \
19598    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19599    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19600    deplibs_check_method reload_flag reload_cmds need_locks \
19601    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19602    lt_cv_sys_global_symbol_to_c_name_address \
19603    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19604    old_postinstall_cmds old_postuninstall_cmds \
19605    compiler_RC \
19606    CC_RC \
19607    LD_RC \
19608    lt_prog_compiler_wl_RC \
19609    lt_prog_compiler_pic_RC \
19610    lt_prog_compiler_static_RC \
19611    lt_prog_compiler_no_builtin_flag_RC \
19612    export_dynamic_flag_spec_RC \
19613    thread_safe_flag_spec_RC \
19614    whole_archive_flag_spec_RC \
19615    enable_shared_with_static_runtimes_RC \
19616    old_archive_cmds_RC \
19617    old_archive_from_new_cmds_RC \
19618    predep_objects_RC \
19619    postdep_objects_RC \
19620    predeps_RC \
19621    postdeps_RC \
19622    compiler_lib_search_path_RC \
19623    compiler_lib_search_dirs_RC \
19624    archive_cmds_RC \
19625    archive_expsym_cmds_RC \
19626    postinstall_cmds_RC \
19627    postuninstall_cmds_RC \
19628    old_archive_from_expsyms_cmds_RC \
19629    allow_undefined_flag_RC \
19630    no_undefined_flag_RC \
19631    export_symbols_cmds_RC \
19632    hardcode_libdir_flag_spec_RC \
19633    hardcode_libdir_flag_spec_ld_RC \
19634    hardcode_libdir_separator_RC \
19635    hardcode_automatic_RC \
19636    module_cmds_RC \
19637    module_expsym_cmds_RC \
19638    lt_cv_prog_compiler_c_o_RC \
19639    fix_srcfile_path_RC \
19640    exclude_expsyms_RC \
19641    include_expsyms_RC; do
19642
19643    case $var in
19644    old_archive_cmds_RC | \
19645    old_archive_from_new_cmds_RC | \
19646    archive_cmds_RC | \
19647    archive_expsym_cmds_RC | \
19648    module_cmds_RC | \
19649    module_expsym_cmds_RC | \
19650    old_archive_from_expsyms_cmds_RC | \
19651    export_symbols_cmds_RC | \
19652    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653    postinstall_cmds | postuninstall_cmds | \
19654    old_postinstall_cmds | old_postuninstall_cmds | \
19655    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656      # Double-quote double-evaled strings.
19657      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19658      ;;
19659    *)
19660      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661      ;;
19662    esac
19663  done
19664
19665  case $lt_echo in
19666  *'\$0 --fallback-echo"')
19667    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668    ;;
19669  esac
19670
19671cfgfile="$ofile"
19672
19673  cat <<__EOF__ >> "$cfgfile"
19674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19675
19676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19677
19678# Shell to use when invoking shell scripts.
19679SHELL=$lt_SHELL
19680
19681# Whether or not to build shared libraries.
19682build_libtool_libs=$enable_shared
19683
19684# Whether or not to build static libraries.
19685build_old_libs=$enable_static
19686
19687# Whether or not to add -lc for building shared libraries.
19688build_libtool_need_lc=$archive_cmds_need_lc_RC
19689
19690# Whether or not to disallow shared libs when runtime libs are static
19691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19692
19693# Whether or not to optimize for fast installation.
19694fast_install=$enable_fast_install
19695
19696# The host system.
19697host_alias=$host_alias
19698host=$host
19699host_os=$host_os
19700
19701# The build system.
19702build_alias=$build_alias
19703build=$build
19704build_os=$build_os
19705
19706# An echo program that does not interpret backslashes.
19707echo=$lt_echo
19708
19709# The archiver.
19710AR=$lt_AR
19711AR_FLAGS=$lt_AR_FLAGS
19712
19713# A C compiler.
19714LTCC=$lt_LTCC
19715
19716# LTCC compiler flags.
19717LTCFLAGS=$lt_LTCFLAGS
19718
19719# A language-specific compiler.
19720CC=$lt_compiler_RC
19721
19722# Is the compiler the GNU C compiler?
19723with_gcc=$GCC_RC
19724
19725# An ERE matcher.
19726EGREP=$lt_EGREP
19727
19728# The linker used to build libraries.
19729LD=$lt_LD_RC
19730
19731# Whether we need hard or soft links.
19732LN_S=$lt_LN_S
19733
19734# A BSD-compatible nm program.
19735NM=$lt_NM
19736
19737# A symbol stripping program
19738STRIP=$lt_STRIP
19739
19740# Used to examine libraries when file_magic_cmd begins "file"
19741MAGIC_CMD=$MAGIC_CMD
19742
19743# Used on cygwin: DLL creation program.
19744DLLTOOL="$DLLTOOL"
19745
19746# Used on cygwin: object dumper.
19747OBJDUMP="$OBJDUMP"
19748
19749# Used on cygwin: assembler.
19750AS="$AS"
19751
19752# The name of the directory that contains temporary libtool files.
19753objdir=$objdir
19754
19755# How to create reloadable object files.
19756reload_flag=$lt_reload_flag
19757reload_cmds=$lt_reload_cmds
19758
19759# How to pass a linker flag through the compiler.
19760wl=$lt_lt_prog_compiler_wl_RC
19761
19762# Object file suffix (normally "o").
19763objext="$ac_objext"
19764
19765# Old archive suffix (normally "a").
19766libext="$libext"
19767
19768# Shared library suffix (normally ".so").
19769shrext_cmds='$shrext_cmds'
19770
19771# Executable file suffix (normally "").
19772exeext="$exeext"
19773
19774# Additional compiler flags for building library objects.
19775pic_flag=$lt_lt_prog_compiler_pic_RC
19776pic_mode=$pic_mode
19777
19778# What is the maximum length of a command?
19779max_cmd_len=$lt_cv_sys_max_cmd_len
19780
19781# Does compiler simultaneously support -c and -o options?
19782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19783
19784# Must we lock files when doing compilation?
19785need_locks=$lt_need_locks
19786
19787# Do we need the lib prefix for modules?
19788need_lib_prefix=$need_lib_prefix
19789
19790# Do we need a version for libraries?
19791need_version=$need_version
19792
19793# Whether dlopen is supported.
19794dlopen_support=$enable_dlopen
19795
19796# Whether dlopen of programs is supported.
19797dlopen_self=$enable_dlopen_self
19798
19799# Whether dlopen of statically linked programs is supported.
19800dlopen_self_static=$enable_dlopen_self_static
19801
19802# Compiler flag to prevent dynamic linking.
19803link_static_flag=$lt_lt_prog_compiler_static_RC
19804
19805# Compiler flag to turn off builtin functions.
19806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19807
19808# Compiler flag to allow reflexive dlopens.
19809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19810
19811# Compiler flag to generate shared objects directly from archives.
19812whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19813
19814# Compiler flag to generate thread-safe objects.
19815thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19816
19817# Library versioning type.
19818version_type=$version_type
19819
19820# Format of library name prefix.
19821libname_spec=$lt_libname_spec
19822
19823# List of archive names.  First name is the real one, the rest are links.
19824# The last name is the one that the linker finds with -lNAME.
19825library_names_spec=$lt_library_names_spec
19826
19827# The coded name of the library, if different from the real name.
19828soname_spec=$lt_soname_spec
19829
19830# Commands used to build and install an old-style archive.
19831RANLIB=$lt_RANLIB
19832old_archive_cmds=$lt_old_archive_cmds_RC
19833old_postinstall_cmds=$lt_old_postinstall_cmds
19834old_postuninstall_cmds=$lt_old_postuninstall_cmds
19835
19836# Create an old-style archive from a shared archive.
19837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19838
19839# Create a temporary old-style archive to link instead of a shared archive.
19840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19841
19842# Commands used to build and install a shared archive.
19843archive_cmds=$lt_archive_cmds_RC
19844archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19845postinstall_cmds=$lt_postinstall_cmds
19846postuninstall_cmds=$lt_postuninstall_cmds
19847
19848# Commands used to build a loadable module (assumed same as above if empty)
19849module_cmds=$lt_module_cmds_RC
19850module_expsym_cmds=$lt_module_expsym_cmds_RC
19851
19852# Commands to strip libraries.
19853old_striplib=$lt_old_striplib
19854striplib=$lt_striplib
19855
19856# Dependencies to place before the objects being linked to create a
19857# shared library.
19858predep_objects=$lt_predep_objects_RC
19859
19860# Dependencies to place after the objects being linked to create a
19861# shared library.
19862postdep_objects=$lt_postdep_objects_RC
19863
19864# Dependencies to place before the objects being linked to create a
19865# shared library.
19866predeps=$lt_predeps_RC
19867
19868# Dependencies to place after the objects being linked to create a
19869# shared library.
19870postdeps=$lt_postdeps_RC
19871
19872# The directories searched by this compiler when creating a shared
19873# library
19874compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19875
19876# The library search path used internally by the compiler when linking
19877# a shared library.
19878compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19879
19880# Method to check whether dependent libraries are shared objects.
19881deplibs_check_method=$lt_deplibs_check_method
19882
19883# Command to use when deplibs_check_method == file_magic.
19884file_magic_cmd=$lt_file_magic_cmd
19885
19886# Flag that allows shared libraries with undefined symbols to be built.
19887allow_undefined_flag=$lt_allow_undefined_flag_RC
19888
19889# Flag that forces no undefined symbols.
19890no_undefined_flag=$lt_no_undefined_flag_RC
19891
19892# Commands used to finish a libtool library installation in a directory.
19893finish_cmds=$lt_finish_cmds
19894
19895# Same as above, but a single script fragment to be evaled but not shown.
19896finish_eval=$lt_finish_eval
19897
19898# Take the output of nm and produce a listing of raw symbols and C names.
19899global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19900
19901# Transform the output of nm in a proper C declaration
19902global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19903
19904# Transform the output of nm in a C name address pair
19905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19906
19907# This is the shared library runtime path variable.
19908runpath_var=$runpath_var
19909
19910# This is the shared library path variable.
19911shlibpath_var=$shlibpath_var
19912
19913# Is shlibpath searched before the hard-coded library search path?
19914shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19915
19916# How to hardcode a shared library path into an executable.
19917hardcode_action=$hardcode_action_RC
19918
19919# Whether we should hardcode library paths into libraries.
19920hardcode_into_libs=$hardcode_into_libs
19921
19922# Flag to hardcode \$libdir into a binary during linking.
19923# This must work even if \$libdir does not exist.
19924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19925
19926# If ld is used when linking, flag to hardcode \$libdir into
19927# a binary during linking. This must work even if \$libdir does
19928# not exist.
19929hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19930
19931# Whether we need a single -rpath flag with a separated argument.
19932hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19933
19934# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19935# resulting binary.
19936hardcode_direct=$hardcode_direct_RC
19937
19938# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19939# resulting binary.
19940hardcode_minus_L=$hardcode_minus_L_RC
19941
19942# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19943# the resulting binary.
19944hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19945
19946# Set to yes if building a shared library automatically hardcodes DIR into the library
19947# and all subsequent libraries and executables linked against it.
19948hardcode_automatic=$hardcode_automatic_RC
19949
19950# Variables whose values should be saved in libtool wrapper scripts and
19951# restored at relink time.
19952variables_saved_for_relink="$variables_saved_for_relink"
19953
19954# Whether libtool must link a program against all its dependency libraries.
19955link_all_deplibs=$link_all_deplibs_RC
19956
19957# Compile-time system search path for libraries
19958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19959
19960# Run-time system search path for libraries
19961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19962
19963# Fix the shell variable \$srcfile for the compiler.
19964fix_srcfile_path=$lt_fix_srcfile_path
19965
19966# Set to yes if exported symbols are required.
19967always_export_symbols=$always_export_symbols_RC
19968
19969# The commands to list exported symbols.
19970export_symbols_cmds=$lt_export_symbols_cmds_RC
19971
19972# The commands to extract the exported symbol list from a shared archive.
19973extract_expsyms_cmds=$lt_extract_expsyms_cmds
19974
19975# Symbols that should not be listed in the preloaded symbols.
19976exclude_expsyms=$lt_exclude_expsyms_RC
19977
19978# Symbols that must always be exported.
19979include_expsyms=$lt_include_expsyms_RC
19980
19981# ### END LIBTOOL TAG CONFIG: $tagname
19982
19983__EOF__
19984
19985
19986else
19987  # If there is no Makefile yet, we rely on a make rule to execute
19988  # `config.status --recheck' to rerun these tests and create the
19989  # libtool script then.
19990  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19991  if test -f "$ltmain_in"; then
19992    test -f Makefile && make "$ltmain"
19993  fi
19994fi
19995
19996
19997ac_ext=c
19998ac_cpp='$CPP $CPPFLAGS'
19999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
20003CC="$lt_save_CC"
20004
20005	;;
20006
20007      *)
20008	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20009$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20010   { (exit 1); exit 1; }; }
20011	;;
20012      esac
20013
20014      # Append the new tag name to the list of available tags.
20015      if test -n "$tagname" ; then
20016      available_tags="$available_tags $tagname"
20017    fi
20018    fi
20019  done
20020  IFS="$lt_save_ifs"
20021
20022  # Now substitute the updated list of available tags.
20023  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20024    mv "${ofile}T" "$ofile"
20025    chmod +x "$ofile"
20026  else
20027    rm -f "${ofile}T"
20028    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20029$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20030   { (exit 1); exit 1; }; }
20031  fi
20032fi
20033
20034
20035
20036# This can be used to rebuild libtool when needed
20037LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20038
20039# Always use our own libtool.
20040LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20041
20042# Prevent multiple expansion
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063if test "x$CC" != xcc; then
20064  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20065$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
20066else
20067  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20068$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
20069fi
20070set dummy $CC; ac_cc=`$as_echo "$2" |
20071		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20072if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20073  $as_echo_n "(cached) " >&6
20074else
20075  cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h.  */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h.  */
20081
20082int
20083main ()
20084{
20085
20086  ;
20087  return 0;
20088}
20089_ACEOF
20090# Make sure it works both with $CC and with simple cc.
20091# We do the test twice because some compilers refuse to overwrite an
20092# existing .o file with -o, though they will create one.
20093ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20094rm -f conftest2.*
20095if { (case "(($ac_try" in
20096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097  *) ac_try_echo=$ac_try;;
20098esac
20099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20100$as_echo "$ac_try_echo") >&5
20101  (eval "$ac_try") 2>&5
20102  ac_status=$?
20103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104  (exit $ac_status); } &&
20105   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107  *) ac_try_echo=$ac_try;;
20108esac
20109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20110$as_echo "$ac_try_echo") >&5
20111  (eval "$ac_try") 2>&5
20112  ac_status=$?
20113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114  (exit $ac_status); };
20115then
20116  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20117  if test "x$CC" != xcc; then
20118    # Test first that cc exists at all.
20119    if { ac_try='cc -c conftest.$ac_ext >&5'
20120  { (case "(($ac_try" in
20121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122  *) ac_try_echo=$ac_try;;
20123esac
20124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20125$as_echo "$ac_try_echo") >&5
20126  (eval "$ac_try") 2>&5
20127  ac_status=$?
20128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129  (exit $ac_status); }; }; then
20130      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20131      rm -f conftest2.*
20132      if { (case "(($ac_try" in
20133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134  *) ac_try_echo=$ac_try;;
20135esac
20136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137$as_echo "$ac_try_echo") >&5
20138  (eval "$ac_try") 2>&5
20139  ac_status=$?
20140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141  (exit $ac_status); } &&
20142	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144  *) ac_try_echo=$ac_try;;
20145esac
20146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147$as_echo "$ac_try_echo") >&5
20148  (eval "$ac_try") 2>&5
20149  ac_status=$?
20150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); };
20152      then
20153	# cc works too.
20154	:
20155      else
20156	# cc exists but doesn't like -o.
20157	eval ac_cv_prog_cc_${ac_cc}_c_o=no
20158      fi
20159    fi
20160  fi
20161else
20162  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20163fi
20164rm -f core conftest*
20165
20166fi
20167if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20168  { $as_echo "$as_me:$LINENO: result: yes" >&5
20169$as_echo "yes" >&6; }
20170else
20171  { $as_echo "$as_me:$LINENO: result: no" >&5
20172$as_echo "no" >&6; }
20173
20174cat >>confdefs.h <<\_ACEOF
20175#define NO_MINUS_C_MINUS_O 1
20176_ACEOF
20177
20178fi
20179
20180# FIXME: we rely on the cache variable name because
20181# there is no other way.
20182set dummy $CC
20183am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20184eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
20185if test "$am_t" != yes; then
20186   # Losing compiler, so override with the script.
20187   # FIXME: It is wrong to rewrite CC.
20188   # But if we don't then we get into trouble of one sort or another.
20189   # A longer-term fix would be to have automake use am__CC in this case,
20190   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20191   CC="$am_aux_dir/compile $CC"
20192fi
20193
20194
20195   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20196$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20197if test "${ac_cv_prog_cc_c99+set}" = set; then
20198  $as_echo_n "(cached) " >&6
20199else
20200  ac_cv_prog_cc_c99=no
20201ac_save_CC=$CC
20202cat >conftest.$ac_ext <<_ACEOF
20203/* confdefs.h.  */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h.  */
20208#include <stdarg.h>
20209#include <stdbool.h>
20210#include <stdlib.h>
20211#include <wchar.h>
20212#include <stdio.h>
20213
20214// Check varargs macros.  These examples are taken from C99 6.10.3.5.
20215#define debug(...) fprintf (stderr, __VA_ARGS__)
20216#define showlist(...) puts (#__VA_ARGS__)
20217#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20218static void
20219test_varargs_macros (void)
20220{
20221  int x = 1234;
20222  int y = 5678;
20223  debug ("Flag");
20224  debug ("X = %d\n", x);
20225  showlist (The first, second, and third items.);
20226  report (x>y, "x is %d but y is %d", x, y);
20227}
20228
20229// Check long long types.
20230#define BIG64 18446744073709551615ull
20231#define BIG32 4294967295ul
20232#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20233#if !BIG_OK
20234  your preprocessor is broken;
20235#endif
20236#if BIG_OK
20237#else
20238  your preprocessor is broken;
20239#endif
20240static long long int bignum = -9223372036854775807LL;
20241static unsigned long long int ubignum = BIG64;
20242
20243struct incomplete_array
20244{
20245  int datasize;
20246  double data[];
20247};
20248
20249struct named_init {
20250  int number;
20251  const wchar_t *name;
20252  double average;
20253};
20254
20255typedef const char *ccp;
20256
20257static inline int
20258test_restrict (ccp restrict text)
20259{
20260  // See if C++-style comments work.
20261  // Iterate through items via the restricted pointer.
20262  // Also check for declarations in for loops.
20263  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20264    continue;
20265  return 0;
20266}
20267
20268// Check varargs and va_copy.
20269static void
20270test_varargs (const char *format, ...)
20271{
20272  va_list args;
20273  va_start (args, format);
20274  va_list args_copy;
20275  va_copy (args_copy, args);
20276
20277  const char *str;
20278  int number;
20279  float fnumber;
20280
20281  while (*format)
20282    {
20283      switch (*format++)
20284	{
20285	case 's': // string
20286	  str = va_arg (args_copy, const char *);
20287	  break;
20288	case 'd': // int
20289	  number = va_arg (args_copy, int);
20290	  break;
20291	case 'f': // float
20292	  fnumber = va_arg (args_copy, double);
20293	  break;
20294	default:
20295	  break;
20296	}
20297    }
20298  va_end (args_copy);
20299  va_end (args);
20300}
20301
20302int
20303main ()
20304{
20305
20306  // Check bool.
20307  _Bool success = false;
20308
20309  // Check restrict.
20310  if (test_restrict ("String literal") == 0)
20311    success = true;
20312  char *restrict newvar = "Another string";
20313
20314  // Check varargs.
20315  test_varargs ("s, d' f .", "string", 65, 34.234);
20316  test_varargs_macros ();
20317
20318  // Check flexible array members.
20319  struct incomplete_array *ia =
20320    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20321  ia->datasize = 10;
20322  for (int i = 0; i < ia->datasize; ++i)
20323    ia->data[i] = i * 1.234;
20324
20325  // Check named initializers.
20326  struct named_init ni = {
20327    .number = 34,
20328    .name = L"Test wide string",
20329    .average = 543.34343,
20330  };
20331
20332  ni.number = 58;
20333
20334  int dynamic_array[ni.number];
20335  dynamic_array[ni.number - 1] = 543;
20336
20337  // work around unused variable warnings
20338  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20339	  || dynamic_array[ni.number - 1] != 543);
20340
20341  ;
20342  return 0;
20343}
20344_ACEOF
20345for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
20346do
20347  CC="$ac_save_CC $ac_arg"
20348  rm -f conftest.$ac_objext
20349if { (ac_try="$ac_compile"
20350case "(($ac_try" in
20351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352  *) ac_try_echo=$ac_try;;
20353esac
20354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20355$as_echo "$ac_try_echo") >&5
20356  (eval "$ac_compile") 2>conftest.er1
20357  ac_status=$?
20358  grep -v '^ *+' conftest.er1 >conftest.err
20359  rm -f conftest.er1
20360  cat conftest.err >&5
20361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362  (exit $ac_status); } && {
20363	 test -z "$ac_c_werror_flag" ||
20364	 test ! -s conftest.err
20365       } && test -s conftest.$ac_objext; then
20366  ac_cv_prog_cc_c99=$ac_arg
20367else
20368  $as_echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371
20372fi
20373
20374rm -f core conftest.err conftest.$ac_objext
20375  test "x$ac_cv_prog_cc_c99" != "xno" && break
20376done
20377rm -f conftest.$ac_ext
20378CC=$ac_save_CC
20379
20380fi
20381# AC_CACHE_VAL
20382case "x$ac_cv_prog_cc_c99" in
20383  x)
20384    { $as_echo "$as_me:$LINENO: result: none needed" >&5
20385$as_echo "none needed" >&6; } ;;
20386  xno)
20387    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20388$as_echo "unsupported" >&6; } ;;
20389  *)
20390    CC="$CC $ac_cv_prog_cc_c99"
20391    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20392$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20393esac
20394
20395
20396
20397
20398
20399
20400if  test "x$GCC" = xyes ; then
20401    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20402-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20403-Wbad-function-cast"
20404    case `$CC -dumpversion` in
20405    3.4.* | 4.*)
20406	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20407	;;
20408    esac
20409else
20410    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20411$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20412if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20413  $as_echo_n "(cached) " >&6
20414else
20415  cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h.  */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h.  */
20421$ac_includes_default
20422int
20423main ()
20424{
20425#ifndef __SUNPRO_C
20426  (void) __SUNPRO_C;
20427#endif
20428
20429  ;
20430  return 0;
20431}
20432_ACEOF
20433rm -f conftest.$ac_objext
20434if { (ac_try="$ac_compile"
20435case "(($ac_try" in
20436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437  *) ac_try_echo=$ac_try;;
20438esac
20439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20440$as_echo "$ac_try_echo") >&5
20441  (eval "$ac_compile") 2>conftest.er1
20442  ac_status=$?
20443  grep -v '^ *+' conftest.er1 >conftest.err
20444  rm -f conftest.er1
20445  cat conftest.err >&5
20446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); } && {
20448	 test -z "$ac_c_werror_flag" ||
20449	 test ! -s conftest.err
20450       } && test -s conftest.$ac_objext; then
20451  ac_cv_have_decl___SUNPRO_C=yes
20452else
20453  $as_echo "$as_me: failed program was:" >&5
20454sed 's/^/| /' conftest.$ac_ext >&5
20455
20456	ac_cv_have_decl___SUNPRO_C=no
20457fi
20458
20459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460fi
20461{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20462$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20463if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20464  SUNCC="yes"
20465else
20466  SUNCC="no"
20467fi
20468
20469    if test "x$SUNCC" = "xyes"; then
20470	CWARNFLAGS="-v"
20471    fi
20472fi
20473
20474# Check whether --enable-silent-rules was given.
20475if test "${enable_silent_rules+set}" = set; then
20476  enableval=$enable_silent_rules;
20477fi
20478
20479case $enable_silent_rules in
20480yes) AM_DEFAULT_VERBOSITY=0;;
20481no)  AM_DEFAULT_VERBOSITY=1;;
20482*)   AM_DEFAULT_VERBOSITY=0;;
20483esac
20484AM_BACKSLASH='\'
20485
20486
20487
20488
20489
20490
20491
20492# Check whether --enable-strict-compilation was given.
20493if test "${enable_strict_compilation+set}" = set; then
20494  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20495else
20496  STRICT_COMPILE=no
20497fi
20498
20499if test "x$STRICT_COMPILE" = "xyes"; then
20500	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20501$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20502if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20503  $as_echo_n "(cached) " >&6
20504else
20505  cat >conftest.$ac_ext <<_ACEOF
20506/* confdefs.h.  */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h.  */
20511$ac_includes_default
20512int
20513main ()
20514{
20515#ifndef __SUNPRO_C
20516  (void) __SUNPRO_C;
20517#endif
20518
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523rm -f conftest.$ac_objext
20524if { (ac_try="$ac_compile"
20525case "(($ac_try" in
20526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527  *) ac_try_echo=$ac_try;;
20528esac
20529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20530$as_echo "$ac_try_echo") >&5
20531  (eval "$ac_compile") 2>conftest.er1
20532  ac_status=$?
20533  grep -v '^ *+' conftest.er1 >conftest.err
20534  rm -f conftest.er1
20535  cat conftest.err >&5
20536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537  (exit $ac_status); } && {
20538	 test -z "$ac_c_werror_flag" ||
20539	 test ! -s conftest.err
20540       } && test -s conftest.$ac_objext; then
20541  ac_cv_have_decl___SUNPRO_C=yes
20542else
20543  $as_echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
20546	ac_cv_have_decl___SUNPRO_C=no
20547fi
20548
20549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550fi
20551{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20552$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20553if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20554  SUNCC="yes"
20555else
20556  SUNCC="no"
20557fi
20558
20559	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
20560$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
20561if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
20562  $as_echo_n "(cached) " >&6
20563else
20564  cat >conftest.$ac_ext <<_ACEOF
20565/* confdefs.h.  */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h.  */
20570$ac_includes_default
20571int
20572main ()
20573{
20574#ifndef __INTEL_COMPILER
20575  (void) __INTEL_COMPILER;
20576#endif
20577
20578  ;
20579  return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext
20583if { (ac_try="$ac_compile"
20584case "(($ac_try" in
20585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586  *) ac_try_echo=$ac_try;;
20587esac
20588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20589$as_echo "$ac_try_echo") >&5
20590  (eval "$ac_compile") 2>conftest.er1
20591  ac_status=$?
20592  grep -v '^ *+' conftest.er1 >conftest.err
20593  rm -f conftest.er1
20594  cat conftest.err >&5
20595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596  (exit $ac_status); } && {
20597	 test -z "$ac_c_werror_flag" ||
20598	 test ! -s conftest.err
20599       } && test -s conftest.$ac_objext; then
20600  ac_cv_have_decl___INTEL_COMPILER=yes
20601else
20602  $as_echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605	ac_cv_have_decl___INTEL_COMPILER=no
20606fi
20607
20608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609fi
20610{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
20611$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
20612if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
20613  INTELCC="yes"
20614else
20615  INTELCC="no"
20616fi
20617
20618	if test "x$GCC" = xyes ; then
20619		STRICT_CFLAGS="-pedantic -Werror"
20620	elif test "x$SUNCC" = "xyes"; then
20621		STRICT_CFLAGS="-errwarn"
20622    elif test "x$INTELCC" = "xyes"; then
20623		STRICT_CFLAGS="-Werror"
20624	fi
20625fi
20626CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20627
20628
20629
20630
20631# Check whether --with-release-version was given.
20632if test "${with_release_version+set}" = set; then
20633  withval=$with_release_version; RELEASE_VERSION="$withval"
20634else
20635  RELEASE_VERSION=""
20636fi
20637
20638	if test "x$RELEASE_VERSION" != "x"; then
20639		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20640		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20641		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20642$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20643	fi
20644
20645cat >>confdefs.h <<_ACEOF
20646#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20647_ACEOF
20648
20649	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20650	if test "x$PVM" = "x"; then
20651		PVM="0"
20652	fi
20653
20654cat >>confdefs.h <<_ACEOF
20655#define PACKAGE_VERSION_MINOR $PVM
20656_ACEOF
20657
20658	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20659	if test "x$PVP" = "x"; then
20660		PVP="0"
20661	fi
20662
20663cat >>confdefs.h <<_ACEOF
20664#define PACKAGE_VERSION_PATCHLEVEL $PVP
20665_ACEOF
20666
20667
20668
20669CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20670mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20671echo 'git directory not found: installing possibly empty changelog.' >&2)"
20672
20673distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20674
20675
20676
20677
20678
20679if test x$APP_MAN_SUFFIX = x    ; then
20680    APP_MAN_SUFFIX=1
20681fi
20682if test x$APP_MAN_DIR = x    ; then
20683    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20684fi
20685
20686if test x$LIB_MAN_SUFFIX = x    ; then
20687    LIB_MAN_SUFFIX=3
20688fi
20689if test x$LIB_MAN_DIR = x    ; then
20690    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20691fi
20692
20693if test x$FILE_MAN_SUFFIX = x    ; then
20694    case $host_os in
20695	solaris*)	FILE_MAN_SUFFIX=4  ;;
20696	*)		FILE_MAN_SUFFIX=5  ;;
20697    esac
20698fi
20699if test x$FILE_MAN_DIR = x    ; then
20700    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20701fi
20702
20703if test x$MISC_MAN_SUFFIX = x    ; then
20704    case $host_os in
20705	solaris*)	MISC_MAN_SUFFIX=5  ;;
20706	*)		MISC_MAN_SUFFIX=7  ;;
20707    esac
20708fi
20709if test x$MISC_MAN_DIR = x    ; then
20710    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20711fi
20712
20713if test x$DRIVER_MAN_SUFFIX = x    ; then
20714    case $host_os in
20715	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20716	*)		DRIVER_MAN_SUFFIX=4  ;;
20717    esac
20718fi
20719if test x$DRIVER_MAN_DIR = x    ; then
20720    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20721fi
20722
20723if test x$ADMIN_MAN_SUFFIX = x    ; then
20724    case $host_os in
20725	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20726	*)		ADMIN_MAN_SUFFIX=8  ;;
20727    esac
20728fi
20729if test x$ADMIN_MAN_DIR = x    ; then
20730    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20731fi
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749if test x"$CC_FOR_BUILD" = x; then
20750	if test x"$cross_compiling" = xyes; then
20751		for ac_prog in gcc cc
20752do
20753  # Extract the first word of "$ac_prog", so it can be a program name with args.
20754set dummy $ac_prog; ac_word=$2
20755{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20756$as_echo_n "checking for $ac_word... " >&6; }
20757if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
20758  $as_echo_n "(cached) " >&6
20759else
20760  if test -n "$CC_FOR_BUILD"; then
20761  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
20762else
20763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20764for as_dir in $PATH
20765do
20766  IFS=$as_save_IFS
20767  test -z "$as_dir" && as_dir=.
20768  for ac_exec_ext in '' $ac_executable_extensions; do
20769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20770    ac_cv_prog_CC_FOR_BUILD="$ac_prog"
20771    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20772    break 2
20773  fi
20774done
20775done
20776IFS=$as_save_IFS
20777
20778fi
20779fi
20780CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
20781if test -n "$CC_FOR_BUILD"; then
20782  { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20783$as_echo "$CC_FOR_BUILD" >&6; }
20784else
20785  { $as_echo "$as_me:$LINENO: result: no" >&5
20786$as_echo "no" >&6; }
20787fi
20788
20789
20790  test -n "$CC_FOR_BUILD" && break
20791done
20792
20793	else
20794	        CC_FOR_BUILD="$CC"
20795	fi
20796fi
20797
20798CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
20799
20800LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
20801
20802
20803
20804
20805if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20806	if test -n "$ac_tool_prefix"; then
20807  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20808set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20810$as_echo_n "checking for $ac_word... " >&6; }
20811if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20812  $as_echo_n "(cached) " >&6
20813else
20814  case $PKG_CONFIG in
20815  [\\/]* | ?:[\\/]*)
20816  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20817  ;;
20818  *)
20819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20820for as_dir in $PATH
20821do
20822  IFS=$as_save_IFS
20823  test -z "$as_dir" && as_dir=.
20824  for ac_exec_ext in '' $ac_executable_extensions; do
20825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20826    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20827    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20828    break 2
20829  fi
20830done
20831done
20832IFS=$as_save_IFS
20833
20834  ;;
20835esac
20836fi
20837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20838if test -n "$PKG_CONFIG"; then
20839  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20840$as_echo "$PKG_CONFIG" >&6; }
20841else
20842  { $as_echo "$as_me:$LINENO: result: no" >&5
20843$as_echo "no" >&6; }
20844fi
20845
20846
20847fi
20848if test -z "$ac_cv_path_PKG_CONFIG"; then
20849  ac_pt_PKG_CONFIG=$PKG_CONFIG
20850  # Extract the first word of "pkg-config", so it can be a program name with args.
20851set dummy pkg-config; ac_word=$2
20852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20853$as_echo_n "checking for $ac_word... " >&6; }
20854if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20855  $as_echo_n "(cached) " >&6
20856else
20857  case $ac_pt_PKG_CONFIG in
20858  [\\/]* | ?:[\\/]*)
20859  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20860  ;;
20861  *)
20862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20863for as_dir in $PATH
20864do
20865  IFS=$as_save_IFS
20866  test -z "$as_dir" && as_dir=.
20867  for ac_exec_ext in '' $ac_executable_extensions; do
20868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20869    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20870    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20871    break 2
20872  fi
20873done
20874done
20875IFS=$as_save_IFS
20876
20877  ;;
20878esac
20879fi
20880ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20881if test -n "$ac_pt_PKG_CONFIG"; then
20882  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20883$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20884else
20885  { $as_echo "$as_me:$LINENO: result: no" >&5
20886$as_echo "no" >&6; }
20887fi
20888
20889  if test "x$ac_pt_PKG_CONFIG" = x; then
20890    PKG_CONFIG=""
20891  else
20892    case $cross_compiling:$ac_tool_warned in
20893yes:)
20894{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20896ac_tool_warned=yes ;;
20897esac
20898    PKG_CONFIG=$ac_pt_PKG_CONFIG
20899  fi
20900else
20901  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20902fi
20903
20904fi
20905if test -n "$PKG_CONFIG"; then
20906	_pkg_min_version=0.9.0
20907	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20908$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20909	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20910		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20911$as_echo "yes" >&6; }
20912	else
20913		{ $as_echo "$as_me:$LINENO: result: no" >&5
20914$as_echo "no" >&6; }
20915		PKG_CONFIG=""
20916	fi
20917
20918fi
20919
20920pkg_failed=no
20921{ $as_echo "$as_me:$LINENO: checking for XT" >&5
20922$as_echo_n "checking for XT... " >&6; }
20923
20924if test -n "$XT_CFLAGS"; then
20925    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
20926 elif test -n "$PKG_CONFIG"; then
20927    if test -n "$PKG_CONFIG" && \
20928    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\"") >&5
20929  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
20930  ac_status=$?
20931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932  (exit $ac_status); }; then
20933  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null`
20934else
20935  pkg_failed=yes
20936fi
20937 else
20938    pkg_failed=untried
20939fi
20940if test -n "$XT_LIBS"; then
20941    pkg_cv_XT_LIBS="$XT_LIBS"
20942 elif test -n "$PKG_CONFIG"; then
20943    if test -n "$PKG_CONFIG" && \
20944    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\"") >&5
20945  ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5
20946  ac_status=$?
20947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948  (exit $ac_status); }; then
20949  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null`
20950else
20951  pkg_failed=yes
20952fi
20953 else
20954    pkg_failed=untried
20955fi
20956
20957
20958
20959if test $pkg_failed = yes; then
20960
20961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20962        _pkg_short_errors_supported=yes
20963else
20964        _pkg_short_errors_supported=no
20965fi
20966        if test $_pkg_short_errors_supported = yes; then
20967	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1`
20968        else
20969	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1`
20970        fi
20971	# Put the nasty error message in config.log where it belongs
20972	echo "$XT_PKG_ERRORS" >&5
20973
20974	{ { $as_echo "$as_me:$LINENO: error: Package requirements (sm ice x11 xproto kbproto) were not met:
20975
20976$XT_PKG_ERRORS
20977
20978Consider adjusting the PKG_CONFIG_PATH environment variable if you
20979installed software in a non-standard prefix.
20980
20981Alternatively, you may set the environment variables XT_CFLAGS
20982and XT_LIBS to avoid the need to call pkg-config.
20983See the pkg-config man page for more details.
20984" >&5
20985$as_echo "$as_me: error: Package requirements (sm ice x11 xproto kbproto) were not met:
20986
20987$XT_PKG_ERRORS
20988
20989Consider adjusting the PKG_CONFIG_PATH environment variable if you
20990installed software in a non-standard prefix.
20991
20992Alternatively, you may set the environment variables XT_CFLAGS
20993and XT_LIBS to avoid the need to call pkg-config.
20994See the pkg-config man page for more details.
20995" >&2;}
20996   { (exit 1); exit 1; }; }
20997elif test $pkg_failed = untried; then
20998	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21000{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21001is in your PATH or set the PKG_CONFIG environment variable to the full
21002path to pkg-config.
21003
21004Alternatively, you may set the environment variables XT_CFLAGS
21005and XT_LIBS to avoid the need to call pkg-config.
21006See the pkg-config man page for more details.
21007
21008To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21009See \`config.log' for more details." >&5
21010$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21011is in your PATH or set the PKG_CONFIG environment variable to the full
21012path to pkg-config.
21013
21014Alternatively, you may set the environment variables XT_CFLAGS
21015and XT_LIBS to avoid the need to call pkg-config.
21016See the pkg-config man page for more details.
21017
21018To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21019See \`config.log' for more details." >&2;}
21020   { (exit 1); exit 1; }; }; }
21021else
21022	XT_CFLAGS=$pkg_cv_XT_CFLAGS
21023	XT_LIBS=$pkg_cv_XT_LIBS
21024        { $as_echo "$as_me:$LINENO: result: yes" >&5
21025$as_echo "yes" >&6; }
21026	:
21027fi
21028
21029# Needed for including Xalloca.h
21030if test "${ac_cv_header_alloca_h+set}" = set; then
21031  { $as_echo "$as_me:$LINENO: checking for alloca.h" >&5
21032$as_echo_n "checking for alloca.h... " >&6; }
21033if test "${ac_cv_header_alloca_h+set}" = set; then
21034  $as_echo_n "(cached) " >&6
21035fi
21036{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
21037$as_echo "$ac_cv_header_alloca_h" >&6; }
21038else
21039  # Is the header compilable?
21040{ $as_echo "$as_me:$LINENO: checking alloca.h usability" >&5
21041$as_echo_n "checking alloca.h usability... " >&6; }
21042cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h.  */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h.  */
21048$ac_includes_default
21049#include <alloca.h>
21050_ACEOF
21051rm -f conftest.$ac_objext
21052if { (ac_try="$ac_compile"
21053case "(($ac_try" in
21054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055  *) ac_try_echo=$ac_try;;
21056esac
21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21058$as_echo "$ac_try_echo") >&5
21059  (eval "$ac_compile") 2>conftest.er1
21060  ac_status=$?
21061  grep -v '^ *+' conftest.er1 >conftest.err
21062  rm -f conftest.er1
21063  cat conftest.err >&5
21064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065  (exit $ac_status); } && {
21066	 test -z "$ac_c_werror_flag" ||
21067	 test ! -s conftest.err
21068       } && test -s conftest.$ac_objext; then
21069  ac_header_compiler=yes
21070else
21071  $as_echo "$as_me: failed program was:" >&5
21072sed 's/^/| /' conftest.$ac_ext >&5
21073
21074	ac_header_compiler=no
21075fi
21076
21077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21079$as_echo "$ac_header_compiler" >&6; }
21080
21081# Is the header present?
21082{ $as_echo "$as_me:$LINENO: checking alloca.h presence" >&5
21083$as_echo_n "checking alloca.h presence... " >&6; }
21084cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h.  */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h.  */
21090#include <alloca.h>
21091_ACEOF
21092if { (ac_try="$ac_cpp conftest.$ac_ext"
21093case "(($ac_try" in
21094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095  *) ac_try_echo=$ac_try;;
21096esac
21097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21098$as_echo "$ac_try_echo") >&5
21099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21100  ac_status=$?
21101  grep -v '^ *+' conftest.er1 >conftest.err
21102  rm -f conftest.er1
21103  cat conftest.err >&5
21104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105  (exit $ac_status); } >/dev/null && {
21106	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21107	 test ! -s conftest.err
21108       }; then
21109  ac_header_preproc=yes
21110else
21111  $as_echo "$as_me: failed program was:" >&5
21112sed 's/^/| /' conftest.$ac_ext >&5
21113
21114  ac_header_preproc=no
21115fi
21116
21117rm -f conftest.err conftest.$ac_ext
21118{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21119$as_echo "$ac_header_preproc" >&6; }
21120
21121# So?  What about this header?
21122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21123  yes:no: )
21124    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&5
21125$as_echo "$as_me: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21126    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the compiler's result" >&5
21127$as_echo "$as_me: WARNING: alloca.h: proceeding with the compiler's result" >&2;}
21128    ac_header_preproc=yes
21129    ;;
21130  no:yes:* )
21131    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: present but cannot be compiled" >&5
21132$as_echo "$as_me: WARNING: alloca.h: present but cannot be compiled" >&2;}
21133    { $as_echo "$as_me:$LINENO: WARNING: alloca.h:     check for missing prerequisite headers?" >&5
21134$as_echo "$as_me: WARNING: alloca.h:     check for missing prerequisite headers?" >&2;}
21135    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: see the Autoconf documentation" >&5
21136$as_echo "$as_me: WARNING: alloca.h: see the Autoconf documentation" >&2;}
21137    { $as_echo "$as_me:$LINENO: WARNING: alloca.h:     section \"Present But Cannot Be Compiled\"" >&5
21138$as_echo "$as_me: WARNING: alloca.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21139    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the preprocessor's result" >&5
21140$as_echo "$as_me: WARNING: alloca.h: proceeding with the preprocessor's result" >&2;}
21141    { $as_echo "$as_me:$LINENO: WARNING: alloca.h: in the future, the compiler will take precedence" >&5
21142$as_echo "$as_me: WARNING: alloca.h: in the future, the compiler will take precedence" >&2;}
21143    ( cat <<\_ASBOX
21144## ---------------------------------------------------------------------- ##
21145## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
21146## ---------------------------------------------------------------------- ##
21147_ASBOX
21148     ) | sed "s/^/$as_me: WARNING:     /" >&2
21149    ;;
21150esac
21151{ $as_echo "$as_me:$LINENO: checking for alloca.h" >&5
21152$as_echo_n "checking for alloca.h... " >&6; }
21153if test "${ac_cv_header_alloca_h+set}" = set; then
21154  $as_echo_n "(cached) " >&6
21155else
21156  ac_cv_header_alloca_h=$ac_header_preproc
21157fi
21158{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
21159$as_echo "$ac_cv_header_alloca_h" >&6; }
21160
21161fi
21162if test "x$ac_cv_header_alloca_h" = x""yes; then
21163
21164cat >>confdefs.h <<\_ACEOF
21165#define INCLUDE_ALLOCA_H 1
21166_ACEOF
21167
21168fi
21169
21170
21171
21172# Map function checks to old Imake #defines
21173case $host_os in
21174	# darwin has poll() but can't be used to poll character devices
21175	# darwin10 (SnowLeopard) should be tested as well once released
21176	darwin7*) ;; darwin8*) ;; darwin9*) ;;
21177	*)
21178		{ $as_echo "$as_me:$LINENO: checking for poll" >&5
21179$as_echo_n "checking for poll... " >&6; }
21180if test "${ac_cv_func_poll+set}" = set; then
21181  $as_echo_n "(cached) " >&6
21182else
21183  cat >conftest.$ac_ext <<_ACEOF
21184/* confdefs.h.  */
21185_ACEOF
21186cat confdefs.h >>conftest.$ac_ext
21187cat >>conftest.$ac_ext <<_ACEOF
21188/* end confdefs.h.  */
21189/* Define poll to an innocuous variant, in case <limits.h> declares poll.
21190   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21191#define poll innocuous_poll
21192
21193/* System header to define __stub macros and hopefully few prototypes,
21194    which can conflict with char poll (); below.
21195    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21196    <limits.h> exists even on freestanding compilers.  */
21197
21198#ifdef __STDC__
21199# include <limits.h>
21200#else
21201# include <assert.h>
21202#endif
21203
21204#undef poll
21205
21206/* Override any GCC internal prototype to avoid an error.
21207   Use char because int might match the return type of a GCC
21208   builtin and then its argument prototype would still apply.  */
21209#ifdef __cplusplus
21210extern "C"
21211#endif
21212char poll ();
21213/* The GNU C library defines this for functions which it implements
21214    to always fail with ENOSYS.  Some functions are actually named
21215    something starting with __ and the normal name is an alias.  */
21216#if defined __stub_poll || defined __stub___poll
21217choke me
21218#endif
21219
21220int
21221main ()
21222{
21223return poll ();
21224  ;
21225  return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext conftest$ac_exeext
21229if { (ac_try="$ac_link"
21230case "(($ac_try" in
21231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232  *) ac_try_echo=$ac_try;;
21233esac
21234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21235$as_echo "$ac_try_echo") >&5
21236  (eval "$ac_link") 2>conftest.er1
21237  ac_status=$?
21238  grep -v '^ *+' conftest.er1 >conftest.err
21239  rm -f conftest.er1
21240  cat conftest.err >&5
21241  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242  (exit $ac_status); } && {
21243	 test -z "$ac_c_werror_flag" ||
21244	 test ! -s conftest.err
21245       } && test -s conftest$ac_exeext && {
21246	 test "$cross_compiling" = yes ||
21247	 $as_test_x conftest$ac_exeext
21248       }; then
21249  ac_cv_func_poll=yes
21250else
21251  $as_echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254	ac_cv_func_poll=no
21255fi
21256
21257rm -rf conftest.dSYM
21258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21259      conftest$ac_exeext conftest.$ac_ext
21260fi
21261{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
21262$as_echo "$ac_cv_func_poll" >&6; }
21263if test "x$ac_cv_func_poll" = x""yes; then
21264
21265cat >>confdefs.h <<\_ACEOF
21266#define USE_POLL 1
21267_ACEOF
21268
21269fi
21270
21271	;;
21272esac
21273{ $as_echo "$as_me:$LINENO: checking for snprintf" >&5
21274$as_echo_n "checking for snprintf... " >&6; }
21275if test "${ac_cv_func_snprintf+set}" = set; then
21276  $as_echo_n "(cached) " >&6
21277else
21278  cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h.  */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h.  */
21284/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
21285   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21286#define snprintf innocuous_snprintf
21287
21288/* System header to define __stub macros and hopefully few prototypes,
21289    which can conflict with char snprintf (); below.
21290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291    <limits.h> exists even on freestanding compilers.  */
21292
21293#ifdef __STDC__
21294# include <limits.h>
21295#else
21296# include <assert.h>
21297#endif
21298
21299#undef snprintf
21300
21301/* Override any GCC internal prototype to avoid an error.
21302   Use char because int might match the return type of a GCC
21303   builtin and then its argument prototype would still apply.  */
21304#ifdef __cplusplus
21305extern "C"
21306#endif
21307char snprintf ();
21308/* The GNU C library defines this for functions which it implements
21309    to always fail with ENOSYS.  Some functions are actually named
21310    something starting with __ and the normal name is an alias.  */
21311#if defined __stub_snprintf || defined __stub___snprintf
21312choke me
21313#endif
21314
21315int
21316main ()
21317{
21318return snprintf ();
21319  ;
21320  return 0;
21321}
21322_ACEOF
21323rm -f conftest.$ac_objext conftest$ac_exeext
21324if { (ac_try="$ac_link"
21325case "(($ac_try" in
21326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327  *) ac_try_echo=$ac_try;;
21328esac
21329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21330$as_echo "$ac_try_echo") >&5
21331  (eval "$ac_link") 2>conftest.er1
21332  ac_status=$?
21333  grep -v '^ *+' conftest.er1 >conftest.err
21334  rm -f conftest.er1
21335  cat conftest.err >&5
21336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337  (exit $ac_status); } && {
21338	 test -z "$ac_c_werror_flag" ||
21339	 test ! -s conftest.err
21340       } && test -s conftest$ac_exeext && {
21341	 test "$cross_compiling" = yes ||
21342	 $as_test_x conftest$ac_exeext
21343       }; then
21344  ac_cv_func_snprintf=yes
21345else
21346  $as_echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349	ac_cv_func_snprintf=no
21350fi
21351
21352rm -rf conftest.dSYM
21353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21354      conftest$ac_exeext conftest.$ac_ext
21355fi
21356{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
21357$as_echo "$ac_cv_func_snprintf" >&6; }
21358if test "x$ac_cv_func_snprintf" = x""yes; then
21359
21360cat >>confdefs.h <<\_ACEOF
21361#define USE_SNPRINTF 1
21362_ACEOF
21363
21364fi
21365
21366
21367
21368{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
21369$as_echo_n "checking for main in -lws2_32... " >&6; }
21370if test "${ac_cv_lib_ws2_32_main+set}" = set; then
21371  $as_echo_n "(cached) " >&6
21372else
21373  ac_check_lib_save_LIBS=$LIBS
21374LIBS="-lws2_32  $LIBS"
21375cat >conftest.$ac_ext <<_ACEOF
21376/* confdefs.h.  */
21377_ACEOF
21378cat confdefs.h >>conftest.$ac_ext
21379cat >>conftest.$ac_ext <<_ACEOF
21380/* end confdefs.h.  */
21381
21382
21383int
21384main ()
21385{
21386return main ();
21387  ;
21388  return 0;
21389}
21390_ACEOF
21391rm -f conftest.$ac_objext conftest$ac_exeext
21392if { (ac_try="$ac_link"
21393case "(($ac_try" in
21394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395  *) ac_try_echo=$ac_try;;
21396esac
21397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21398$as_echo "$ac_try_echo") >&5
21399  (eval "$ac_link") 2>conftest.er1
21400  ac_status=$?
21401  grep -v '^ *+' conftest.er1 >conftest.err
21402  rm -f conftest.er1
21403  cat conftest.err >&5
21404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405  (exit $ac_status); } && {
21406	 test -z "$ac_c_werror_flag" ||
21407	 test ! -s conftest.err
21408       } && test -s conftest$ac_exeext && {
21409	 test "$cross_compiling" = yes ||
21410	 $as_test_x conftest$ac_exeext
21411       }; then
21412  ac_cv_lib_ws2_32_main=yes
21413else
21414  $as_echo "$as_me: failed program was:" >&5
21415sed 's/^/| /' conftest.$ac_ext >&5
21416
21417	ac_cv_lib_ws2_32_main=no
21418fi
21419
21420rm -rf conftest.dSYM
21421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21422      conftest$ac_exeext conftest.$ac_ext
21423LIBS=$ac_check_lib_save_LIBS
21424fi
21425{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
21426$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
21427if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
21428  cat >>confdefs.h <<_ACEOF
21429#define HAVE_LIBWS2_32 1
21430_ACEOF
21431
21432  LIBS="-lws2_32 $LIBS"
21433
21434fi
21435ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
21436
21437
21438# Options
21439# Check whether --enable-xkb was given.
21440if test "${enable_xkb+set}" = set; then
21441  enableval=$enable_xkb; XKB="$enableval"
21442else
21443  XKB="yes"
21444fi
21445
21446if test "x$XKB" = "xyes" ; then
21447
21448cat >>confdefs.h <<\_ACEOF
21449#define XKB 1
21450_ACEOF
21451
21452fi
21453
21454# Check whether --enable-install-makestrs was given.
21455if test "${enable_install_makestrs+set}" = set; then
21456  enableval=$enable_install_makestrs; INSTALL_MAKESTRS="$enableval"
21457else
21458  INSTALL_MAKESTRS="yes"
21459fi
21460
21461 if test "x$INSTALL_MAKESTRS" = xyes; then
21462  INSTALL_MAKESTRS_TRUE=
21463  INSTALL_MAKESTRS_FALSE='#'
21464else
21465  INSTALL_MAKESTRS_TRUE='#'
21466  INSTALL_MAKESTRS_FALSE=
21467fi
21468
21469
21470# Replaces XFileSearchPathDefault from Imake configs
21471XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S'
21472
21473
21474# Check whether --with-xfile-search-path was given.
21475if test "${with_xfile_search_path+set}" = set; then
21476  withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval"
21477fi
21478
21479
21480
21481
21482# Check whether --with-appdefaultdir was given.
21483if test "${with_appdefaultdir+set}" = set; then
21484  withval=$with_appdefaultdir; appdefaultdir="$withval"
21485else
21486  appdefaultdir=${datadir}/X11/app-defaults
21487fi
21488
21489
21490  prefix_NONE=
21491  exec_prefix_NONE=
21492  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21493  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21494  eval ax_define_dir="\"$appdefaultdir\""
21495  eval ax_define_dir="\"$ax_define_dir\""
21496  appdefaultdir="$ax_define_dir"
21497
21498
21499cat >>confdefs.h <<_ACEOF
21500#define appdefaultdir "$ax_define_dir"
21501_ACEOF
21502
21503  test "$prefix_NONE" && prefix=NONE
21504  test "$exec_prefix_NONE" && exec_prefix=NONE
21505
21506
21507# Replacement for Imake ToolkitStringsABIOptions, controls string tables
21508# generated by util/string.list in StringDefs.h & Shell.h
21509case $host_os in
21510	solaris*)
21511		# Solaris uses -intelabi even on SPARC
21512  		STRINGSABIOPTIONS="-intelabi -solarisabinames"
21513		;;
21514	sco* | svr4*)
21515		case $host_cpu in
21516		    i*86) STRINGSABIOPTIONS="-intelabi" ;;
21517		       *) STRINGSABIOPTIONS="" ;;
21518		esac
21519		;;
21520esac
21521
21522
21523case $host_os in
21524    darwin*)
21525        OS_CFLAGS="-Wl,-flat_namespace"
21526	;;
21527    *)
21528        OS_CFLAGS=
21529        ;;
21530esac
21531
21532XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS"
21533
21534# Man page processing requirements
21535
21536
21537for ac_prog in cpp
21538do
21539  # Extract the first word of "$ac_prog", so it can be a program name with args.
21540set dummy $ac_prog; ac_word=$2
21541{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21542$as_echo_n "checking for $ac_word... " >&6; }
21543if test "${ac_cv_path_RAWCPP+set}" = set; then
21544  $as_echo_n "(cached) " >&6
21545else
21546  case $RAWCPP in
21547  [\\/]* | ?:[\\/]*)
21548  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21549  ;;
21550  *)
21551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21552as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21553for as_dir in $as_dummy
21554do
21555  IFS=$as_save_IFS
21556  test -z "$as_dir" && as_dir=.
21557  for ac_exec_ext in '' $ac_executable_extensions; do
21558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21559    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21560    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21561    break 2
21562  fi
21563done
21564done
21565IFS=$as_save_IFS
21566
21567  ;;
21568esac
21569fi
21570RAWCPP=$ac_cv_path_RAWCPP
21571if test -n "$RAWCPP"; then
21572  { $as_echo "$as_me:$LINENO: result: $RAWCPP" >&5
21573$as_echo "$RAWCPP" >&6; }
21574else
21575  { $as_echo "$as_me:$LINENO: result: no" >&5
21576$as_echo "no" >&6; }
21577fi
21578
21579
21580  test -n "$RAWCPP" && break
21581done
21582test -n "$RAWCPP" || RAWCPP="${CPP}"
21583
21584
21585# Check for flag to avoid builtin definitions - assumes unix is predefined,
21586# which is not the best choice for supporting other OS'es, but covers most
21587# of the ones we need for now.
21588{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
21589$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
21590cat >conftest.$ac_ext <<_ACEOF
21591Does cpp redefine unix ?
21592_ACEOF
21593if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21594	{ $as_echo "$as_me:$LINENO: result: no" >&5
21595$as_echo "no" >&6; }
21596else
21597	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21598		RAWCPPFLAGS=-undef
21599		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21600$as_echo "yes" >&6; }
21601	# under Cygwin unix is still defined even with -undef
21602	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21603		RAWCPPFLAGS="-undef -ansi"
21604		{ $as_echo "$as_me:$LINENO: result: yes, with -ansi" >&5
21605$as_echo "yes, with -ansi" >&6; }
21606	else
21607		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&5
21608$as_echo "$as_me: error: ${RAWCPP} defines unix with or without -undef.  I don't know what to do." >&2;}
21609   { (exit 1); exit 1; }; }
21610	fi
21611fi
21612rm -f conftest.$ac_ext
21613
21614{ $as_echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
21615$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
21616cat >conftest.$ac_ext <<_ACEOF
21617Does cpp preserve   "whitespace"?
21618_ACEOF
21619if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21620	{ $as_echo "$as_me:$LINENO: result: no" >&5
21621$as_echo "no" >&6; }
21622else
21623	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21624		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21625		{ $as_echo "$as_me:$LINENO: result: yes" >&5
21626$as_echo "yes" >&6; }
21627	else
21628		{ { $as_echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&5
21629$as_echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." >&2;}
21630   { (exit 1); exit 1; }; }
21631	fi
21632fi
21633rm -f conftest.$ac_ext
21634
21635
21636
21637
21638# Check whether --enable-malloc0returnsnull was given.
21639if test "${enable_malloc0returnsnull+set}" = set; then
21640  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21641else
21642  MALLOC_ZERO_RETURNS_NULL=auto
21643fi
21644
21645
21646{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
21647$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21648if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21649	if test "$cross_compiling" = yes; then
21650  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21652{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21653See \`config.log' for more details." >&5
21654$as_echo "$as_me: error: cannot run test program while cross compiling
21655See \`config.log' for more details." >&2;}
21656   { (exit 1); exit 1; }; }; }
21657else
21658  cat >conftest.$ac_ext <<_ACEOF
21659
21660char *malloc();
21661char *realloc();
21662char *calloc();
21663main() {
21664    char *m0, *r0, *c0, *p;
21665    m0 = malloc(0);
21666    p = malloc(10);
21667    r0 = realloc(p,0);
21668    c0 = calloc(0);
21669    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
21670}
21671_ACEOF
21672rm -f conftest$ac_exeext
21673if { (ac_try="$ac_link"
21674case "(($ac_try" in
21675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676  *) ac_try_echo=$ac_try;;
21677esac
21678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21679$as_echo "$ac_try_echo") >&5
21680  (eval "$ac_link") 2>&5
21681  ac_status=$?
21682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21684  { (case "(($ac_try" in
21685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686  *) ac_try_echo=$ac_try;;
21687esac
21688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21689$as_echo "$ac_try_echo") >&5
21690  (eval "$ac_try") 2>&5
21691  ac_status=$?
21692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693  (exit $ac_status); }; }; then
21694  MALLOC_ZERO_RETURNS_NULL=yes
21695else
21696  $as_echo "$as_me: program exited with status $ac_status" >&5
21697$as_echo "$as_me: failed program was:" >&5
21698sed 's/^/| /' conftest.$ac_ext >&5
21699
21700( exit $ac_status )
21701MALLOC_ZERO_RETURNS_NULL=no
21702fi
21703rm -rf conftest.dSYM
21704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21705fi
21706
21707
21708fi
21709{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21710$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21711
21712if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21713	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21714	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21715	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21716else
21717	MALLOC_ZERO_CFLAGS=""
21718	XMALLOC_ZERO_CFLAGS=""
21719	XTMALLOC_ZERO_CFLAGS=""
21720fi
21721
21722
21723
21724
21725
21726
21727ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile xt.pc"
21728
21729cat >confcache <<\_ACEOF
21730# This file is a shell script that caches the results of configure
21731# tests run on this system so they can be shared between configure
21732# scripts and configure runs, see configure's option --config-cache.
21733# It is not useful on other systems.  If it contains results you don't
21734# want to keep, you may remove or edit it.
21735#
21736# config.status only pays attention to the cache file if you give it
21737# the --recheck option to rerun configure.
21738#
21739# `ac_cv_env_foo' variables (set or unset) will be overridden when
21740# loading this file, other *unset* `ac_cv_foo' will be assigned the
21741# following values.
21742
21743_ACEOF
21744
21745# The following way of writing the cache mishandles newlines in values,
21746# but we know of no workaround that is simple, portable, and efficient.
21747# So, we kill variables containing newlines.
21748# Ultrix sh set writes to stderr and can't be redirected directly,
21749# and sets the high bit in the cache file unless we assign to the vars.
21750(
21751  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21752    eval ac_val=\$$ac_var
21753    case $ac_val in #(
21754    *${as_nl}*)
21755      case $ac_var in #(
21756      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21758      esac
21759      case $ac_var in #(
21760      _ | IFS | as_nl) ;; #(
21761      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21762      *) $as_unset $ac_var ;;
21763      esac ;;
21764    esac
21765  done
21766
21767  (set) 2>&1 |
21768    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21769    *${as_nl}ac_space=\ *)
21770      # `set' does not quote correctly, so add quotes (double-quote
21771      # substitution turns \\\\ into \\, and sed turns \\ into \).
21772      sed -n \
21773	"s/'/'\\\\''/g;
21774	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21775      ;; #(
21776    *)
21777      # `set' quotes correctly as required by POSIX, so do not add quotes.
21778      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21779      ;;
21780    esac |
21781    sort
21782) |
21783  sed '
21784     /^ac_cv_env_/b end
21785     t clear
21786     :clear
21787     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21788     t end
21789     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21790     :end' >>confcache
21791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21792  if test -w "$cache_file"; then
21793    test "x$cache_file" != "x/dev/null" &&
21794      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21795$as_echo "$as_me: updating cache $cache_file" >&6;}
21796    cat confcache >$cache_file
21797  else
21798    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21799$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21800  fi
21801fi
21802rm -f confcache
21803
21804test "x$prefix" = xNONE && prefix=$ac_default_prefix
21805# Let make expand exec_prefix.
21806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21807
21808DEFS=-DHAVE_CONFIG_H
21809
21810ac_libobjs=
21811ac_ltlibobjs=
21812for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21813  # 1. Remove the extension, and $U if already installed.
21814  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21815  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21816  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21817  #    will be set to the directory where LIBOBJS objects are built.
21818  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21819  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21820done
21821LIBOBJS=$ac_libobjs
21822
21823LTLIBOBJS=$ac_ltlibobjs
21824
21825
21826 if test -n "$EXEEXT"; then
21827  am__EXEEXT_TRUE=
21828  am__EXEEXT_FALSE='#'
21829else
21830  am__EXEEXT_TRUE='#'
21831  am__EXEEXT_FALSE=
21832fi
21833
21834if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21835  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21836Usually this means the macro was only invoked conditionally." >&5
21837$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21838Usually this means the macro was only invoked conditionally." >&2;}
21839   { (exit 1); exit 1; }; }
21840fi
21841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21842  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21843Usually this means the macro was only invoked conditionally." >&5
21844$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21845Usually this means the macro was only invoked conditionally." >&2;}
21846   { (exit 1); exit 1; }; }
21847fi
21848if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21849  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21850Usually this means the macro was only invoked conditionally." >&5
21851$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21852Usually this means the macro was only invoked conditionally." >&2;}
21853   { (exit 1); exit 1; }; }
21854fi
21855if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21856  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21857Usually this means the macro was only invoked conditionally." >&5
21858$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21859Usually this means the macro was only invoked conditionally." >&2;}
21860   { (exit 1); exit 1; }; }
21861fi
21862if test -z "${INSTALL_MAKESTRS_TRUE}" && test -z "${INSTALL_MAKESTRS_FALSE}"; then
21863  { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_MAKESTRS\" was never defined.
21864Usually this means the macro was only invoked conditionally." >&5
21865$as_echo "$as_me: error: conditional \"INSTALL_MAKESTRS\" was never defined.
21866Usually this means the macro was only invoked conditionally." >&2;}
21867   { (exit 1); exit 1; }; }
21868fi
21869
21870: ${CONFIG_STATUS=./config.status}
21871ac_write_fail=0
21872ac_clean_files_save=$ac_clean_files
21873ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21874{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21875$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21876cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21877#! $SHELL
21878# Generated by $as_me.
21879# Run this file to recreate the current configuration.
21880# Compiler output produced by configure, useful for debugging
21881# configure, is in config.log if it exists.
21882
21883debug=false
21884ac_cs_recheck=false
21885ac_cs_silent=false
21886SHELL=\${CONFIG_SHELL-$SHELL}
21887_ACEOF
21888
21889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21890## --------------------- ##
21891## M4sh Initialization.  ##
21892## --------------------- ##
21893
21894# Be more Bourne compatible
21895DUALCASE=1; export DUALCASE # for MKS sh
21896if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21897  emulate sh
21898  NULLCMD=:
21899  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21900  # is contrary to our usage.  Disable this feature.
21901  alias -g '${1+"$@"}'='"$@"'
21902  setopt NO_GLOB_SUBST
21903else
21904  case `(set -o) 2>/dev/null` in
21905  *posix*) set -o posix ;;
21906esac
21907
21908fi
21909
21910
21911
21912
21913# PATH needs CR
21914# Avoid depending upon Character Ranges.
21915as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21916as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21917as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21918as_cr_digits='0123456789'
21919as_cr_alnum=$as_cr_Letters$as_cr_digits
21920
21921as_nl='
21922'
21923export as_nl
21924# Printing a long string crashes Solaris 7 /usr/bin/printf.
21925as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21927as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21928if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21929  as_echo='printf %s\n'
21930  as_echo_n='printf %s'
21931else
21932  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21933    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21934    as_echo_n='/usr/ucb/echo -n'
21935  else
21936    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21937    as_echo_n_body='eval
21938      arg=$1;
21939      case $arg in
21940      *"$as_nl"*)
21941	expr "X$arg" : "X\\(.*\\)$as_nl";
21942	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21943      esac;
21944      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21945    '
21946    export as_echo_n_body
21947    as_echo_n='sh -c $as_echo_n_body as_echo'
21948  fi
21949  export as_echo_body
21950  as_echo='sh -c $as_echo_body as_echo'
21951fi
21952
21953# The user is always right.
21954if test "${PATH_SEPARATOR+set}" != set; then
21955  PATH_SEPARATOR=:
21956  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21957    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21958      PATH_SEPARATOR=';'
21959  }
21960fi
21961
21962# Support unset when possible.
21963if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21964  as_unset=unset
21965else
21966  as_unset=false
21967fi
21968
21969
21970# IFS
21971# We need space, tab and new line, in precisely that order.  Quoting is
21972# there to prevent editors from complaining about space-tab.
21973# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21974# splitting by setting IFS to empty value.)
21975IFS=" ""	$as_nl"
21976
21977# Find who we are.  Look in the path if we contain no directory separator.
21978case $0 in
21979  *[\\/]* ) as_myself=$0 ;;
21980  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21981for as_dir in $PATH
21982do
21983  IFS=$as_save_IFS
21984  test -z "$as_dir" && as_dir=.
21985  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21986done
21987IFS=$as_save_IFS
21988
21989     ;;
21990esac
21991# We did not find ourselves, most probably we were run as `sh COMMAND'
21992# in which case we are not to be found in the path.
21993if test "x$as_myself" = x; then
21994  as_myself=$0
21995fi
21996if test ! -f "$as_myself"; then
21997  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21998  { (exit 1); exit 1; }
21999fi
22000
22001# Work around bugs in pre-3.0 UWIN ksh.
22002for as_var in ENV MAIL MAILPATH
22003do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22004done
22005PS1='$ '
22006PS2='> '
22007PS4='+ '
22008
22009# NLS nuisances.
22010LC_ALL=C
22011export LC_ALL
22012LANGUAGE=C
22013export LANGUAGE
22014
22015# Required to use basename.
22016if expr a : '\(a\)' >/dev/null 2>&1 &&
22017   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22018  as_expr=expr
22019else
22020  as_expr=false
22021fi
22022
22023if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22024  as_basename=basename
22025else
22026  as_basename=false
22027fi
22028
22029
22030# Name of the executable.
22031as_me=`$as_basename -- "$0" ||
22032$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22033	 X"$0" : 'X\(//\)$' \| \
22034	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22035$as_echo X/"$0" |
22036    sed '/^.*\/\([^/][^/]*\)\/*$/{
22037	    s//\1/
22038	    q
22039	  }
22040	  /^X\/\(\/\/\)$/{
22041	    s//\1/
22042	    q
22043	  }
22044	  /^X\/\(\/\).*/{
22045	    s//\1/
22046	    q
22047	  }
22048	  s/.*/./; q'`
22049
22050# CDPATH.
22051$as_unset CDPATH
22052
22053
22054
22055  as_lineno_1=$LINENO
22056  as_lineno_2=$LINENO
22057  test "x$as_lineno_1" != "x$as_lineno_2" &&
22058  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22059
22060  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22061  # uniformly replaced by the line number.  The first 'sed' inserts a
22062  # line-number line after each line using $LINENO; the second 'sed'
22063  # does the real work.  The second script uses 'N' to pair each
22064  # line-number line with the line containing $LINENO, and appends
22065  # trailing '-' during substitution so that $LINENO is not a special
22066  # case at line end.
22067  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22068  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22069  # E. McMahon (1931-1989) for sed's syntax.  :-)
22070  sed -n '
22071    p
22072    /[$]LINENO/=
22073  ' <$as_myself |
22074    sed '
22075      s/[$]LINENO.*/&-/
22076      t lineno
22077      b
22078      :lineno
22079      N
22080      :loop
22081      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22082      t loop
22083      s/-\n.*//
22084    ' >$as_me.lineno &&
22085  chmod +x "$as_me.lineno" ||
22086    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22087   { (exit 1); exit 1; }; }
22088
22089  # Don't try to exec as it changes $[0], causing all sort of problems
22090  # (the dirname of $[0] is not the place where we might find the
22091  # original and so on.  Autoconf is especially sensitive to this).
22092  . "./$as_me.lineno"
22093  # Exit status is that of the last command.
22094  exit
22095}
22096
22097
22098if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22099  as_dirname=dirname
22100else
22101  as_dirname=false
22102fi
22103
22104ECHO_C= ECHO_N= ECHO_T=
22105case `echo -n x` in
22106-n*)
22107  case `echo 'x\c'` in
22108  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22109  *)   ECHO_C='\c';;
22110  esac;;
22111*)
22112  ECHO_N='-n';;
22113esac
22114if expr a : '\(a\)' >/dev/null 2>&1 &&
22115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22116  as_expr=expr
22117else
22118  as_expr=false
22119fi
22120
22121rm -f conf$$ conf$$.exe conf$$.file
22122if test -d conf$$.dir; then
22123  rm -f conf$$.dir/conf$$.file
22124else
22125  rm -f conf$$.dir
22126  mkdir conf$$.dir 2>/dev/null
22127fi
22128if (echo >conf$$.file) 2>/dev/null; then
22129  if ln -s conf$$.file conf$$ 2>/dev/null; then
22130    as_ln_s='ln -s'
22131    # ... but there are two gotchas:
22132    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22133    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22134    # In both cases, we have to default to `cp -p'.
22135    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22136      as_ln_s='cp -p'
22137  elif ln conf$$.file conf$$ 2>/dev/null; then
22138    as_ln_s=ln
22139  else
22140    as_ln_s='cp -p'
22141  fi
22142else
22143  as_ln_s='cp -p'
22144fi
22145rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22146rmdir conf$$.dir 2>/dev/null
22147
22148if mkdir -p . 2>/dev/null; then
22149  as_mkdir_p=:
22150else
22151  test -d ./-p && rmdir ./-p
22152  as_mkdir_p=false
22153fi
22154
22155if test -x / >/dev/null 2>&1; then
22156  as_test_x='test -x'
22157else
22158  if ls -dL / >/dev/null 2>&1; then
22159    as_ls_L_option=L
22160  else
22161    as_ls_L_option=
22162  fi
22163  as_test_x='
22164    eval sh -c '\''
22165      if test -d "$1"; then
22166	test -d "$1/.";
22167      else
22168	case $1 in
22169	-*)set "./$1";;
22170	esac;
22171	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22172	???[sx]*):;;*)false;;esac;fi
22173    '\'' sh
22174  '
22175fi
22176as_executable_p=$as_test_x
22177
22178# Sed expression to map a string onto a valid CPP name.
22179as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22180
22181# Sed expression to map a string onto a valid variable name.
22182as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22183
22184
22185exec 6>&1
22186
22187# Save the log message, to keep $[0] and so on meaningful, and to
22188# report actual input values of CONFIG_FILES etc. instead of their
22189# values after options handling.
22190ac_log="
22191This file was extended by libXt $as_me 1.0.7, which was
22192generated by GNU Autoconf 2.63.  Invocation command line was
22193
22194  CONFIG_FILES    = $CONFIG_FILES
22195  CONFIG_HEADERS  = $CONFIG_HEADERS
22196  CONFIG_LINKS    = $CONFIG_LINKS
22197  CONFIG_COMMANDS = $CONFIG_COMMANDS
22198  $ $0 $@
22199
22200on `(hostname || uname -n) 2>/dev/null | sed 1q`
22201"
22202
22203_ACEOF
22204
22205case $ac_config_files in *"
22206"*) set x $ac_config_files; shift; ac_config_files=$*;;
22207esac
22208
22209case $ac_config_headers in *"
22210"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22211esac
22212
22213
22214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22215# Files that config.status was made for.
22216config_files="$ac_config_files"
22217config_headers="$ac_config_headers"
22218config_commands="$ac_config_commands"
22219
22220_ACEOF
22221
22222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22223ac_cs_usage="\
22224\`$as_me' instantiates files from templates according to the
22225current configuration.
22226
22227Usage: $0 [OPTION]... [FILE]...
22228
22229  -h, --help       print this help, then exit
22230  -V, --version    print version number and configuration settings, then exit
22231  -q, --quiet, --silent
22232                   do not print progress messages
22233  -d, --debug      don't remove temporary files
22234      --recheck    update $as_me by reconfiguring in the same conditions
22235      --file=FILE[:TEMPLATE]
22236                   instantiate the configuration file FILE
22237      --header=FILE[:TEMPLATE]
22238                   instantiate the configuration header FILE
22239
22240Configuration files:
22241$config_files
22242
22243Configuration headers:
22244$config_headers
22245
22246Configuration commands:
22247$config_commands
22248
22249Report bugs to <bug-autoconf@gnu.org>."
22250
22251_ACEOF
22252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22253ac_cs_version="\\
22254libXt config.status 1.0.7
22255configured by $0, generated by GNU Autoconf 2.63,
22256  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22257
22258Copyright (C) 2008 Free Software Foundation, Inc.
22259This config.status script is free software; the Free Software Foundation
22260gives unlimited permission to copy, distribute and modify it."
22261
22262ac_pwd='$ac_pwd'
22263srcdir='$srcdir'
22264INSTALL='$INSTALL'
22265MKDIR_P='$MKDIR_P'
22266AWK='$AWK'
22267test -n "\$AWK" || AWK=awk
22268_ACEOF
22269
22270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22271# The default lists apply if the user does not specify any file.
22272ac_need_defaults=:
22273while test $# != 0
22274do
22275  case $1 in
22276  --*=*)
22277    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22278    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22279    ac_shift=:
22280    ;;
22281  *)
22282    ac_option=$1
22283    ac_optarg=$2
22284    ac_shift=shift
22285    ;;
22286  esac
22287
22288  case $ac_option in
22289  # Handling of the options.
22290  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22291    ac_cs_recheck=: ;;
22292  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22293    $as_echo "$ac_cs_version"; exit ;;
22294  --debug | --debu | --deb | --de | --d | -d )
22295    debug=: ;;
22296  --file | --fil | --fi | --f )
22297    $ac_shift
22298    case $ac_optarg in
22299    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22300    esac
22301    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22302    ac_need_defaults=false;;
22303  --header | --heade | --head | --hea )
22304    $ac_shift
22305    case $ac_optarg in
22306    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22307    esac
22308    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22309    ac_need_defaults=false;;
22310  --he | --h)
22311    # Conflict between --help and --header
22312    { $as_echo "$as_me: error: ambiguous option: $1
22313Try \`$0 --help' for more information." >&2
22314   { (exit 1); exit 1; }; };;
22315  --help | --hel | -h )
22316    $as_echo "$ac_cs_usage"; exit ;;
22317  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22318  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22319    ac_cs_silent=: ;;
22320
22321  # This is an error.
22322  -*) { $as_echo "$as_me: error: unrecognized option: $1
22323Try \`$0 --help' for more information." >&2
22324   { (exit 1); exit 1; }; } ;;
22325
22326  *) ac_config_targets="$ac_config_targets $1"
22327     ac_need_defaults=false ;;
22328
22329  esac
22330  shift
22331done
22332
22333ac_configure_extra_args=
22334
22335if $ac_cs_silent; then
22336  exec 6>/dev/null
22337  ac_configure_extra_args="$ac_configure_extra_args --silent"
22338fi
22339
22340_ACEOF
22341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22342if \$ac_cs_recheck; then
22343  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22344  shift
22345  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22346  CONFIG_SHELL='$SHELL'
22347  export CONFIG_SHELL
22348  exec "\$@"
22349fi
22350
22351_ACEOF
22352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22353exec 5>>config.log
22354{
22355  echo
22356  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22357## Running $as_me. ##
22358_ASBOX
22359  $as_echo "$ac_log"
22360} >&5
22361
22362_ACEOF
22363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22364#
22365# INIT-COMMANDS
22366#
22367AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22368
22369_ACEOF
22370
22371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22372
22373# Handling of arguments.
22374for ac_config_target in $ac_config_targets
22375do
22376  case $ac_config_target in
22377    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22378    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22379    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22380    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22381    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22382    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22383    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22384    "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;;
22385
22386  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22387$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22388   { (exit 1); exit 1; }; };;
22389  esac
22390done
22391
22392
22393# If the user did not use the arguments to specify the items to instantiate,
22394# then the envvar interface is used.  Set only those that are not.
22395# We use the long form for the default assignment because of an extremely
22396# bizarre bug on SunOS 4.1.3.
22397if $ac_need_defaults; then
22398  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22399  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22400  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22401fi
22402
22403# Have a temporary directory for convenience.  Make it in the build tree
22404# simply because there is no reason against having it here, and in addition,
22405# creating and moving files from /tmp can sometimes cause problems.
22406# Hook for its removal unless debugging.
22407# Note that there is a small window in which the directory will not be cleaned:
22408# after its creation but before its name has been assigned to `$tmp'.
22409$debug ||
22410{
22411  tmp=
22412  trap 'exit_status=$?
22413  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22414' 0
22415  trap '{ (exit 1); exit 1; }' 1 2 13 15
22416}
22417# Create a (secure) tmp directory for tmp files.
22418
22419{
22420  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22421  test -n "$tmp" && test -d "$tmp"
22422}  ||
22423{
22424  tmp=./conf$$-$RANDOM
22425  (umask 077 && mkdir "$tmp")
22426} ||
22427{
22428   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22429   { (exit 1); exit 1; }
22430}
22431
22432# Set up the scripts for CONFIG_FILES section.
22433# No need to generate them if there are no CONFIG_FILES.
22434# This happens for instance with `./config.status config.h'.
22435if test -n "$CONFIG_FILES"; then
22436
22437
22438ac_cr='
22439'
22440ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22441if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22442  ac_cs_awk_cr='\\r'
22443else
22444  ac_cs_awk_cr=$ac_cr
22445fi
22446
22447echo 'BEGIN {' >"$tmp/subs1.awk" &&
22448_ACEOF
22449
22450
22451{
22452  echo "cat >conf$$subs.awk <<_ACEOF" &&
22453  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22454  echo "_ACEOF"
22455} >conf$$subs.sh ||
22456  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22457$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22458   { (exit 1); exit 1; }; }
22459ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22460ac_delim='%!_!# '
22461for ac_last_try in false false false false false :; do
22462  . ./conf$$subs.sh ||
22463    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22464$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22465   { (exit 1); exit 1; }; }
22466
22467  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22468  if test $ac_delim_n = $ac_delim_num; then
22469    break
22470  elif $ac_last_try; then
22471    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22472$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22473   { (exit 1); exit 1; }; }
22474  else
22475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22476  fi
22477done
22478rm -f conf$$subs.sh
22479
22480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22481cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22482_ACEOF
22483sed -n '
22484h
22485s/^/S["/; s/!.*/"]=/
22486p
22487g
22488s/^[^!]*!//
22489:repl
22490t repl
22491s/'"$ac_delim"'$//
22492t delim
22493:nl
22494h
22495s/\(.\{148\}\).*/\1/
22496t more1
22497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22498p
22499n
22500b repl
22501:more1
22502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22503p
22504g
22505s/.\{148\}//
22506t nl
22507:delim
22508h
22509s/\(.\{148\}\).*/\1/
22510t more2
22511s/["\\]/\\&/g; s/^/"/; s/$/"/
22512p
22513b
22514:more2
22515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22516p
22517g
22518s/.\{148\}//
22519t delim
22520' <conf$$subs.awk | sed '
22521/^[^""]/{
22522  N
22523  s/\n//
22524}
22525' >>$CONFIG_STATUS || ac_write_fail=1
22526rm -f conf$$subs.awk
22527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22528_ACAWK
22529cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22530  for (key in S) S_is_set[key] = 1
22531  FS = ""
22532
22533}
22534{
22535  line = $ 0
22536  nfields = split(line, field, "@")
22537  substed = 0
22538  len = length(field[1])
22539  for (i = 2; i < nfields; i++) {
22540    key = field[i]
22541    keylen = length(key)
22542    if (S_is_set[key]) {
22543      value = S[key]
22544      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22545      len += length(value) + length(field[++i])
22546      substed = 1
22547    } else
22548      len += 1 + keylen
22549  }
22550
22551  print line
22552}
22553
22554_ACAWK
22555_ACEOF
22556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22558  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22559else
22560  cat
22561fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22562  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22563$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22564   { (exit 1); exit 1; }; }
22565_ACEOF
22566
22567# VPATH may cause trouble with some makes, so we remove $(srcdir),
22568# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22569# trailing colons and then remove the whole line if VPATH becomes empty
22570# (actually we leave an empty line to preserve line numbers).
22571if test "x$srcdir" = x.; then
22572  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22573s/:*\$(srcdir):*/:/
22574s/:*\${srcdir}:*/:/
22575s/:*@srcdir@:*/:/
22576s/^\([^=]*=[	 ]*\):*/\1/
22577s/:*$//
22578s/^[^=]*=[	 ]*$//
22579}'
22580fi
22581
22582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22583fi # test -n "$CONFIG_FILES"
22584
22585# Set up the scripts for CONFIG_HEADERS section.
22586# No need to generate them if there are no CONFIG_HEADERS.
22587# This happens for instance with `./config.status Makefile'.
22588if test -n "$CONFIG_HEADERS"; then
22589cat >"$tmp/defines.awk" <<\_ACAWK ||
22590BEGIN {
22591_ACEOF
22592
22593# Transform confdefs.h into an awk script `defines.awk', embedded as
22594# here-document in config.status, that substitutes the proper values into
22595# config.h.in to produce config.h.
22596
22597# Create a delimiter string that does not exist in confdefs.h, to ease
22598# handling of long lines.
22599ac_delim='%!_!# '
22600for ac_last_try in false false :; do
22601  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22602  if test -z "$ac_t"; then
22603    break
22604  elif $ac_last_try; then
22605    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22606$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22607   { (exit 1); exit 1; }; }
22608  else
22609    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22610  fi
22611done
22612
22613# For the awk script, D is an array of macro values keyed by name,
22614# likewise P contains macro parameters if any.  Preserve backslash
22615# newline sequences.
22616
22617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22618sed -n '
22619s/.\{148\}/&'"$ac_delim"'/g
22620t rset
22621:rset
22622s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22623t def
22624d
22625:def
22626s/\\$//
22627t bsnl
22628s/["\\]/\\&/g
22629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22630D["\1"]=" \3"/p
22631s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22632d
22633:bsnl
22634s/["\\]/\\&/g
22635s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22636D["\1"]=" \3\\\\\\n"\\/p
22637t cont
22638s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22639t cont
22640d
22641:cont
22642n
22643s/.\{148\}/&'"$ac_delim"'/g
22644t clear
22645:clear
22646s/\\$//
22647t bsnlc
22648s/["\\]/\\&/g; s/^/"/; s/$/"/p
22649d
22650:bsnlc
22651s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22652b cont
22653' <confdefs.h | sed '
22654s/'"$ac_delim"'/"\\\
22655"/g' >>$CONFIG_STATUS || ac_write_fail=1
22656
22657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22658  for (key in D) D_is_set[key] = 1
22659  FS = ""
22660}
22661/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22662  line = \$ 0
22663  split(line, arg, " ")
22664  if (arg[1] == "#") {
22665    defundef = arg[2]
22666    mac1 = arg[3]
22667  } else {
22668    defundef = substr(arg[1], 2)
22669    mac1 = arg[2]
22670  }
22671  split(mac1, mac2, "(") #)
22672  macro = mac2[1]
22673  prefix = substr(line, 1, index(line, defundef) - 1)
22674  if (D_is_set[macro]) {
22675    # Preserve the white space surrounding the "#".
22676    print prefix "define", macro P[macro] D[macro]
22677    next
22678  } else {
22679    # Replace #undef with comments.  This is necessary, for example,
22680    # in the case of _POSIX_SOURCE, which is predefined and required
22681    # on some systems where configure will not decide to define it.
22682    if (defundef == "undef") {
22683      print "/*", prefix defundef, macro, "*/"
22684      next
22685    }
22686  }
22687}
22688{ print }
22689_ACAWK
22690_ACEOF
22691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22692  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22693$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22694   { (exit 1); exit 1; }; }
22695fi # test -n "$CONFIG_HEADERS"
22696
22697
22698eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22699shift
22700for ac_tag
22701do
22702  case $ac_tag in
22703  :[FHLC]) ac_mode=$ac_tag; continue;;
22704  esac
22705  case $ac_mode$ac_tag in
22706  :[FHL]*:*);;
22707  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22708$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22709   { (exit 1); exit 1; }; };;
22710  :[FH]-) ac_tag=-:-;;
22711  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22712  esac
22713  ac_save_IFS=$IFS
22714  IFS=:
22715  set x $ac_tag
22716  IFS=$ac_save_IFS
22717  shift
22718  ac_file=$1
22719  shift
22720
22721  case $ac_mode in
22722  :L) ac_source=$1;;
22723  :[FH])
22724    ac_file_inputs=
22725    for ac_f
22726    do
22727      case $ac_f in
22728      -) ac_f="$tmp/stdin";;
22729      *) # Look for the file first in the build tree, then in the source tree
22730	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22731	 # because $ac_f cannot contain `:'.
22732	 test -f "$ac_f" ||
22733	   case $ac_f in
22734	   [\\/$]*) false;;
22735	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22736	   esac ||
22737	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22738$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22739   { (exit 1); exit 1; }; };;
22740      esac
22741      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22742      ac_file_inputs="$ac_file_inputs '$ac_f'"
22743    done
22744
22745    # Let's still pretend it is `configure' which instantiates (i.e., don't
22746    # use $as_me), people would be surprised to read:
22747    #    /* config.h.  Generated by config.status.  */
22748    configure_input='Generated from '`
22749	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22750	`' by configure.'
22751    if test x"$ac_file" != x-; then
22752      configure_input="$ac_file.  $configure_input"
22753      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22754$as_echo "$as_me: creating $ac_file" >&6;}
22755    fi
22756    # Neutralize special characters interpreted by sed in replacement strings.
22757    case $configure_input in #(
22758    *\&* | *\|* | *\\* )
22759       ac_sed_conf_input=`$as_echo "$configure_input" |
22760       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22761    *) ac_sed_conf_input=$configure_input;;
22762    esac
22763
22764    case $ac_tag in
22765    *:-:* | *:-) cat >"$tmp/stdin" \
22766      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22767$as_echo "$as_me: error: could not create $ac_file" >&2;}
22768   { (exit 1); exit 1; }; } ;;
22769    esac
22770    ;;
22771  esac
22772
22773  ac_dir=`$as_dirname -- "$ac_file" ||
22774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775	 X"$ac_file" : 'X\(//\)[^/]' \| \
22776	 X"$ac_file" : 'X\(//\)$' \| \
22777	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22778$as_echo X"$ac_file" |
22779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22780	    s//\1/
22781	    q
22782	  }
22783	  /^X\(\/\/\)[^/].*/{
22784	    s//\1/
22785	    q
22786	  }
22787	  /^X\(\/\/\)$/{
22788	    s//\1/
22789	    q
22790	  }
22791	  /^X\(\/\).*/{
22792	    s//\1/
22793	    q
22794	  }
22795	  s/.*/./; q'`
22796  { as_dir="$ac_dir"
22797  case $as_dir in #(
22798  -*) as_dir=./$as_dir;;
22799  esac
22800  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22801    as_dirs=
22802    while :; do
22803      case $as_dir in #(
22804      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22805      *) as_qdir=$as_dir;;
22806      esac
22807      as_dirs="'$as_qdir' $as_dirs"
22808      as_dir=`$as_dirname -- "$as_dir" ||
22809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22810	 X"$as_dir" : 'X\(//\)[^/]' \| \
22811	 X"$as_dir" : 'X\(//\)$' \| \
22812	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22813$as_echo X"$as_dir" |
22814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22815	    s//\1/
22816	    q
22817	  }
22818	  /^X\(\/\/\)[^/].*/{
22819	    s//\1/
22820	    q
22821	  }
22822	  /^X\(\/\/\)$/{
22823	    s//\1/
22824	    q
22825	  }
22826	  /^X\(\/\).*/{
22827	    s//\1/
22828	    q
22829	  }
22830	  s/.*/./; q'`
22831      test -d "$as_dir" && break
22832    done
22833    test -z "$as_dirs" || eval "mkdir $as_dirs"
22834  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22835$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22836   { (exit 1); exit 1; }; }; }
22837  ac_builddir=.
22838
22839case "$ac_dir" in
22840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22841*)
22842  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22843  # A ".." for each directory in $ac_dir_suffix.
22844  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22845  case $ac_top_builddir_sub in
22846  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22847  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22848  esac ;;
22849esac
22850ac_abs_top_builddir=$ac_pwd
22851ac_abs_builddir=$ac_pwd$ac_dir_suffix
22852# for backward compatibility:
22853ac_top_builddir=$ac_top_build_prefix
22854
22855case $srcdir in
22856  .)  # We are building in place.
22857    ac_srcdir=.
22858    ac_top_srcdir=$ac_top_builddir_sub
22859    ac_abs_top_srcdir=$ac_pwd ;;
22860  [\\/]* | ?:[\\/]* )  # Absolute name.
22861    ac_srcdir=$srcdir$ac_dir_suffix;
22862    ac_top_srcdir=$srcdir
22863    ac_abs_top_srcdir=$srcdir ;;
22864  *) # Relative name.
22865    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22866    ac_top_srcdir=$ac_top_build_prefix$srcdir
22867    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22868esac
22869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22870
22871
22872  case $ac_mode in
22873  :F)
22874  #
22875  # CONFIG_FILE
22876  #
22877
22878  case $INSTALL in
22879  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22880  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22881  esac
22882  ac_MKDIR_P=$MKDIR_P
22883  case $MKDIR_P in
22884  [\\/$]* | ?:[\\/]* ) ;;
22885  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22886  esac
22887_ACEOF
22888
22889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22890# If the template does not know about datarootdir, expand it.
22891# FIXME: This hack should be removed a few years after 2.60.
22892ac_datarootdir_hack=; ac_datarootdir_seen=
22893
22894ac_sed_dataroot='
22895/datarootdir/ {
22896  p
22897  q
22898}
22899/@datadir@/p
22900/@docdir@/p
22901/@infodir@/p
22902/@localedir@/p
22903/@mandir@/p
22904'
22905case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22906*datarootdir*) ac_datarootdir_seen=yes;;
22907*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22908  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22909$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22910_ACEOF
22911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912  ac_datarootdir_hack='
22913  s&@datadir@&$datadir&g
22914  s&@docdir@&$docdir&g
22915  s&@infodir@&$infodir&g
22916  s&@localedir@&$localedir&g
22917  s&@mandir@&$mandir&g
22918    s&\\\${datarootdir}&$datarootdir&g' ;;
22919esac
22920_ACEOF
22921
22922# Neutralize VPATH when `$srcdir' = `.'.
22923# Shell code in configure.ac might set extrasub.
22924# FIXME: do we really want to maintain this feature?
22925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22926ac_sed_extra="$ac_vpsub
22927$extrasub
22928_ACEOF
22929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22930:t
22931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22932s|@configure_input@|$ac_sed_conf_input|;t t
22933s&@top_builddir@&$ac_top_builddir_sub&;t t
22934s&@top_build_prefix@&$ac_top_build_prefix&;t t
22935s&@srcdir@&$ac_srcdir&;t t
22936s&@abs_srcdir@&$ac_abs_srcdir&;t t
22937s&@top_srcdir@&$ac_top_srcdir&;t t
22938s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22939s&@builddir@&$ac_builddir&;t t
22940s&@abs_builddir@&$ac_abs_builddir&;t t
22941s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22942s&@INSTALL@&$ac_INSTALL&;t t
22943s&@MKDIR_P@&$ac_MKDIR_P&;t t
22944$ac_datarootdir_hack
22945"
22946eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22947  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22948$as_echo "$as_me: error: could not create $ac_file" >&2;}
22949   { (exit 1); exit 1; }; }
22950
22951test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22952  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22953  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22954  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22955which seems to be undefined.  Please make sure it is defined." >&5
22956$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22957which seems to be undefined.  Please make sure it is defined." >&2;}
22958
22959  rm -f "$tmp/stdin"
22960  case $ac_file in
22961  -) cat "$tmp/out" && rm -f "$tmp/out";;
22962  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22963  esac \
22964  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22965$as_echo "$as_me: error: could not create $ac_file" >&2;}
22966   { (exit 1); exit 1; }; }
22967 ;;
22968  :H)
22969  #
22970  # CONFIG_HEADER
22971  #
22972  if test x"$ac_file" != x-; then
22973    {
22974      $as_echo "/* $configure_input  */" \
22975      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22976    } >"$tmp/config.h" \
22977      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22978$as_echo "$as_me: error: could not create $ac_file" >&2;}
22979   { (exit 1); exit 1; }; }
22980    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22981      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22982$as_echo "$as_me: $ac_file is unchanged" >&6;}
22983    else
22984      rm -f "$ac_file"
22985      mv "$tmp/config.h" "$ac_file" \
22986	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22987$as_echo "$as_me: error: could not create $ac_file" >&2;}
22988   { (exit 1); exit 1; }; }
22989    fi
22990  else
22991    $as_echo "/* $configure_input  */" \
22992      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22993      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22994$as_echo "$as_me: error: could not create -" >&2;}
22995   { (exit 1); exit 1; }; }
22996  fi
22997# Compute "$ac_file"'s index in $config_headers.
22998_am_arg="$ac_file"
22999_am_stamp_count=1
23000for _am_header in $config_headers :; do
23001  case $_am_header in
23002    $_am_arg | $_am_arg:* )
23003      break ;;
23004    * )
23005      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23006  esac
23007done
23008echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23009$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23010	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23011	 X"$_am_arg" : 'X\(//\)$' \| \
23012	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23013$as_echo X"$_am_arg" |
23014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23015	    s//\1/
23016	    q
23017	  }
23018	  /^X\(\/\/\)[^/].*/{
23019	    s//\1/
23020	    q
23021	  }
23022	  /^X\(\/\/\)$/{
23023	    s//\1/
23024	    q
23025	  }
23026	  /^X\(\/\).*/{
23027	    s//\1/
23028	    q
23029	  }
23030	  s/.*/./; q'`/stamp-h$_am_stamp_count
23031 ;;
23032
23033  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23034$as_echo "$as_me: executing $ac_file commands" >&6;}
23035 ;;
23036  esac
23037
23038
23039  case $ac_file$ac_mode in
23040    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23041  # Autoconf 2.62 quotes --file arguments for eval, but not when files
23042  # are listed without --file.  Let's play safe and only enable the eval
23043  # if we detect the quoting.
23044  case $CONFIG_FILES in
23045  *\'*) eval set x "$CONFIG_FILES" ;;
23046  *)   set x $CONFIG_FILES ;;
23047  esac
23048  shift
23049  for mf
23050  do
23051    # Strip MF so we end up with the name of the file.
23052    mf=`echo "$mf" | sed -e 's/:.*$//'`
23053    # Check whether this is an Automake generated Makefile or not.
23054    # We used to match only the files named `Makefile.in', but
23055    # some people rename them; so instead we look at the file content.
23056    # Grep'ing the first line is not enough: some people post-process
23057    # each Makefile.in and add a new line on top of each file to say so.
23058    # Grep'ing the whole file is not good either: AIX grep has a line
23059    # limit of 2048, but all sed's we know have understand at least 4000.
23060    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23061      dirpart=`$as_dirname -- "$mf" ||
23062$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23063	 X"$mf" : 'X\(//\)[^/]' \| \
23064	 X"$mf" : 'X\(//\)$' \| \
23065	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23066$as_echo X"$mf" |
23067    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23068	    s//\1/
23069	    q
23070	  }
23071	  /^X\(\/\/\)[^/].*/{
23072	    s//\1/
23073	    q
23074	  }
23075	  /^X\(\/\/\)$/{
23076	    s//\1/
23077	    q
23078	  }
23079	  /^X\(\/\).*/{
23080	    s//\1/
23081	    q
23082	  }
23083	  s/.*/./; q'`
23084    else
23085      continue
23086    fi
23087    # Extract the definition of DEPDIR, am__include, and am__quote
23088    # from the Makefile without running `make'.
23089    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23090    test -z "$DEPDIR" && continue
23091    am__include=`sed -n 's/^am__include = //p' < "$mf"`
23092    test -z "am__include" && continue
23093    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23094    # When using ansi2knr, U may be empty or an underscore; expand it
23095    U=`sed -n 's/^U = //p' < "$mf"`
23096    # Find all dependency output files, they are included files with
23097    # $(DEPDIR) in their names.  We invoke sed twice because it is the
23098    # simplest approach to changing $(DEPDIR) to its actual value in the
23099    # expansion.
23100    for file in `sed -n "
23101      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23102	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23103      # Make sure the directory exists.
23104      test -f "$dirpart/$file" && continue
23105      fdir=`$as_dirname -- "$file" ||
23106$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23107	 X"$file" : 'X\(//\)[^/]' \| \
23108	 X"$file" : 'X\(//\)$' \| \
23109	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23110$as_echo X"$file" |
23111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23112	    s//\1/
23113	    q
23114	  }
23115	  /^X\(\/\/\)[^/].*/{
23116	    s//\1/
23117	    q
23118	  }
23119	  /^X\(\/\/\)$/{
23120	    s//\1/
23121	    q
23122	  }
23123	  /^X\(\/\).*/{
23124	    s//\1/
23125	    q
23126	  }
23127	  s/.*/./; q'`
23128      { as_dir=$dirpart/$fdir
23129  case $as_dir in #(
23130  -*) as_dir=./$as_dir;;
23131  esac
23132  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23133    as_dirs=
23134    while :; do
23135      case $as_dir in #(
23136      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23137      *) as_qdir=$as_dir;;
23138      esac
23139      as_dirs="'$as_qdir' $as_dirs"
23140      as_dir=`$as_dirname -- "$as_dir" ||
23141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23142	 X"$as_dir" : 'X\(//\)[^/]' \| \
23143	 X"$as_dir" : 'X\(//\)$' \| \
23144	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23145$as_echo X"$as_dir" |
23146    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23147	    s//\1/
23148	    q
23149	  }
23150	  /^X\(\/\/\)[^/].*/{
23151	    s//\1/
23152	    q
23153	  }
23154	  /^X\(\/\/\)$/{
23155	    s//\1/
23156	    q
23157	  }
23158	  /^X\(\/\).*/{
23159	    s//\1/
23160	    q
23161	  }
23162	  s/.*/./; q'`
23163      test -d "$as_dir" && break
23164    done
23165    test -z "$as_dirs" || eval "mkdir $as_dirs"
23166  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23167$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23168   { (exit 1); exit 1; }; }; }
23169      # echo "creating $dirpart/$file"
23170      echo '# dummy' > "$dirpart/$file"
23171    done
23172  done
23173}
23174 ;;
23175
23176  esac
23177done # for ac_tag
23178
23179
23180{ (exit 0); exit 0; }
23181_ACEOF
23182chmod +x $CONFIG_STATUS
23183ac_clean_files=$ac_clean_files_save
23184
23185test $ac_write_fail = 0 ||
23186  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23187$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23188   { (exit 1); exit 1; }; }
23189
23190
23191# configure is writing to config.log, and then calls config.status.
23192# config.status does its own redirection, appending to config.log.
23193# Unfortunately, on DOS this fails, as config.log is still kept open
23194# by configure, so config.status won't be able to write to it; its
23195# output is simply discarded.  So we exec the FD to /dev/null,
23196# effectively closing config.log, so it can be properly (re)opened and
23197# appended to by config.status.  When coming back to configure, we
23198# need to make the FD available again.
23199if test "$no_create" != yes; then
23200  ac_cs_success=:
23201  ac_config_status_args=
23202  test "$silent" = yes &&
23203    ac_config_status_args="$ac_config_status_args --quiet"
23204  exec 5>/dev/null
23205  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23206  exec 5>>config.log
23207  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23208  # would make configure fail if this is the last instruction.
23209  $ac_cs_success || { (exit 1); exit 1; }
23210fi
23211if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23212  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23213$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23214fi
23215
23216