1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585echo=${ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $echo works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<EOF
604$*
605EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$ECHO"; then
614if test "X${echo_test_string+set}" != Xset; then
615# find a string as large as possible, as long as the shell can cope with it
616  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619       echo_test_string=`eval $cmd` &&
620       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621    then
622      break
623    fi
624  done
625fi
626
627if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629   test "X$echo_testing_string" = "X$echo_test_string"; then
630  :
631else
632  # The Solaris, AIX, and Digital Unix default echo programs unquote
633  # backslashes.  This makes it impossible to quote backslashes using
634  #   echo "$something" | sed 's/\\/\\\\/g'
635  #
636  # So, first we look for a working echo in the user's PATH.
637
638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639  for dir in $PATH /usr/ucb; do
640    IFS="$lt_save_ifs"
641    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644       test "X$echo_testing_string" = "X$echo_test_string"; then
645      echo="$dir/echo"
646      break
647    fi
648  done
649  IFS="$lt_save_ifs"
650
651  if test "X$echo" = Xecho; then
652    # We didn't find a better echo, so look for alternatives.
653    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655       test "X$echo_testing_string" = "X$echo_test_string"; then
656      # This shell has a builtin print -r that does the trick.
657      echo='print -r'
658    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659	 test "X$CONFIG_SHELL" != X/bin/ksh; then
660      # If we have ksh, try running configure again with it.
661      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662      export ORIGINAL_CONFIG_SHELL
663      CONFIG_SHELL=/bin/ksh
664      export CONFIG_SHELL
665      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666    else
667      # Try using printf.
668      echo='printf %s\n'
669      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671	 test "X$echo_testing_string" = "X$echo_test_string"; then
672	# Cool, printf works
673	:
674      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675	   test "X$echo_testing_string" = 'X\t' &&
676	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677	   test "X$echo_testing_string" = "X$echo_test_string"; then
678	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679	export CONFIG_SHELL
680	SHELL="$CONFIG_SHELL"
681	export SHELL
682	echo="$CONFIG_SHELL $0 --fallback-echo"
683      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684	   test "X$echo_testing_string" = 'X\t' &&
685	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686	   test "X$echo_testing_string" = "X$echo_test_string"; then
687	echo="$CONFIG_SHELL $0 --fallback-echo"
688      else
689	# maybe with a smaller string...
690	prev=:
691
692	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694	  then
695	    break
696	  fi
697	  prev="$cmd"
698	done
699
700	if test "$prev" != 'sed 50q "$0"'; then
701	  echo_test_string=`eval $prev`
702	  export echo_test_string
703	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704	else
705	  # Oops.  We lost completely, so just stick with echo.
706	  echo=echo
707	fi
708      fi
709    fi
710  fi
711fi
712fi
713
714# Copy echo and quote the copy suitably for passing to libtool from
715# the Makefile, instead of quoting the original, which is used later.
716ECHO=$echo
717if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719fi
720
721
722
723
724tagnames=${tagnames+${tagnames},}CXX
725
726tagnames=${tagnames+${tagnames},}F77
727
728exec 7<&0 </dev/null 6>&1
729
730# Name of the host.
731# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732# so uname gets run too.
733ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735#
736# Initializations.
737#
738ac_default_prefix=/usr/local
739ac_clean_files=
740ac_config_libobj_dir=.
741LIBOBJS=
742cross_compiling=no
743subdirs=
744MFLAGS=
745MAKEFLAGS=
746SHELL=${CONFIG_SHELL-/bin/sh}
747
748# Identity of this package.
749PACKAGE_NAME=
750PACKAGE_TARNAME=
751PACKAGE_VERSION=
752PACKAGE_STRING=
753PACKAGE_BUGREPORT=
754
755ac_unique_file="libiptcdata/iptc-data.h"
756# Factoring default headers for most tests.
757ac_includes_default="\
758#include <stdio.h>
759#ifdef HAVE_SYS_TYPES_H
760# include <sys/types.h>
761#endif
762#ifdef HAVE_SYS_STAT_H
763# include <sys/stat.h>
764#endif
765#ifdef STDC_HEADERS
766# include <stdlib.h>
767# include <stddef.h>
768#else
769# ifdef HAVE_STDLIB_H
770#  include <stdlib.h>
771# endif
772#endif
773#ifdef HAVE_STRING_H
774# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775#  include <memory.h>
776# endif
777# include <string.h>
778#endif
779#ifdef HAVE_STRINGS_H
780# include <strings.h>
781#endif
782#ifdef HAVE_INTTYPES_H
783# include <inttypes.h>
784#endif
785#ifdef HAVE_STDINT_H
786# include <stdint.h>
787#endif
788#ifdef HAVE_UNISTD_H
789# include <unistd.h>
790#endif"
791
792ac_subst_vars='am__EXEEXT_FALSE
793am__EXEEXT_TRUE
794LTLIBOBJS
795LIBOBJS
796GTK_DOC_USE_LIBTOOL_FALSE
797GTK_DOC_USE_LIBTOOL_TRUE
798ENABLE_GTK_DOC_FALSE
799ENABLE_GTK_DOC_TRUE
800GTKDOC_CHECK
801PKG_CONFIG
802HTML_DIR
803POSUB
804LTLIBINTL
805LIBINTL
806INTLLIBS
807LTLIBICONV
808LIBICONV
809MSGMERGE
810XGETTEXT
811GMSGFMT
812MSGFMT
813USE_NLS
814MKINSTALLDIRS
815GETTEXT_PACKAGE
816IPTC_GETTEXT_PACKAGE
817pkgpyexecdir
818pyexecdir
819pkgpythondir
820pythondir
821PYTHON_PLATFORM
822PYTHON_EXEC_PREFIX
823PYTHON_PREFIX
824PYTHON_EXTRA_LDFLAGS
825PYTHON_EXTRA_LIBS
826PYTHON_SITE_PKG
827PYTHON_LDFLAGS
828PYTHON_CPPFLAGS
829PYTHON
830PYTHON_VERSION
831PYTHONLIB_FALSE
832PYTHONLIB_TRUE
833LIBTOOL
834ac_ct_F77
835FFLAGS
836F77
837CXXCPP
838am__fastdepCXX_FALSE
839am__fastdepCXX_TRUE
840CXXDEPMODE
841ac_ct_CXX
842CXXFLAGS
843CXX
844CPP
845NMEDIT
846DSYMUTIL
847RANLIB
848AR
849ECHO
850LN_S
851EGREP
852GREP
853SED
854am__fastdepCC_FALSE
855am__fastdepCC_TRUE
856CCDEPMODE
857AMDEPBACKSLASH
858AMDEP_FALSE
859AMDEP_TRUE
860am__quote
861am__include
862DEPDIR
863OBJEXT
864EXEEXT
865ac_ct_CC
866CPPFLAGS
867LDFLAGS
868CFLAGS
869CC
870host_os
871host_vendor
872host_cpu
873host
874build_os
875build_vendor
876build_cpu
877build
878LIBIPTCDATA_VERSION_INFO
879LIBIPTCDATA_CURRENT
880LIBIPTCDATA_REVISION
881LIBIPTCDATA_AGE
882MAINT
883MAINTAINER_MODE_FALSE
884MAINTAINER_MODE_TRUE
885am__untar
886am__tar
887AMTAR
888am__leading_dot
889SET_MAKE
890AWK
891mkdir_p
892MKDIR_P
893INSTALL_STRIP_PROGRAM
894STRIP
895install_sh
896MAKEINFO
897AUTOHEADER
898AUTOMAKE
899AUTOCONF
900ACLOCAL
901VERSION
902PACKAGE
903CYGPATH_W
904am__isrc
905INSTALL_DATA
906INSTALL_SCRIPT
907INSTALL_PROGRAM
908target_alias
909host_alias
910build_alias
911LIBS
912ECHO_T
913ECHO_N
914ECHO_C
915DEFS
916mandir
917localedir
918libdir
919psdir
920pdfdir
921dvidir
922htmldir
923infodir
924docdir
925oldincludedir
926includedir
927localstatedir
928sharedstatedir
929sysconfdir
930datadir
931datarootdir
932libexecdir
933sbindir
934bindir
935program_transform_name
936prefix
937exec_prefix
938PACKAGE_BUGREPORT
939PACKAGE_STRING
940PACKAGE_VERSION
941PACKAGE_TARNAME
942PACKAGE_NAME
943PATH_SEPARATOR
944SHELL'
945ac_subst_files=''
946ac_user_opts='
947enable_option_checking
948enable_maintainer_mode
949enable_static
950enable_shared
951enable_fast_install
952enable_dependency_tracking
953with_gnu_ld
954enable_libtool_lock
955with_pic
956with_tags
957enable_python
958enable_nls
959enable_rpath
960with_libiconv_prefix
961with_libintl_prefix
962with_html_dir
963enable_gtk_doc
964'
965      ac_precious_vars='build_alias
966host_alias
967target_alias
968CC
969CFLAGS
970LDFLAGS
971LIBS
972CPPFLAGS
973CPP
974CXX
975CXXFLAGS
976CCC
977CXXCPP
978F77
979FFLAGS
980PYTHON_VERSION
981PKG_CONFIG'
982
983
984# Initialize some variables set by options.
985ac_init_help=
986ac_init_version=false
987ac_unrecognized_opts=
988ac_unrecognized_sep=
989# The variables have the same names as the options, with
990# dashes changed to underlines.
991cache_file=/dev/null
992exec_prefix=NONE
993no_create=
994no_recursion=
995prefix=NONE
996program_prefix=NONE
997program_suffix=NONE
998program_transform_name=s,x,x,
999silent=
1000site=
1001srcdir=
1002verbose=
1003x_includes=NONE
1004x_libraries=NONE
1005
1006# Installation directory options.
1007# These are left unexpanded so users can "make install exec_prefix=/foo"
1008# and all the variables that are supposed to be based on exec_prefix
1009# by default will actually change.
1010# Use braces instead of parens because sh, perl, etc. also accept them.
1011# (The list follows the same order as the GNU Coding Standards.)
1012bindir='${exec_prefix}/bin'
1013sbindir='${exec_prefix}/sbin'
1014libexecdir='${exec_prefix}/libexec'
1015datarootdir='${prefix}/share'
1016datadir='${datarootdir}'
1017sysconfdir='${prefix}/etc'
1018sharedstatedir='${prefix}/com'
1019localstatedir='${prefix}/var'
1020includedir='${prefix}/include'
1021oldincludedir='/usr/include'
1022docdir='${datarootdir}/doc/${PACKAGE}'
1023infodir='${datarootdir}/info'
1024htmldir='${docdir}'
1025dvidir='${docdir}'
1026pdfdir='${docdir}'
1027psdir='${docdir}'
1028libdir='${exec_prefix}/lib'
1029localedir='${datarootdir}/locale'
1030mandir='${datarootdir}/man'
1031
1032ac_prev=
1033ac_dashdash=
1034for ac_option
1035do
1036  # If the previous option needs an argument, assign it.
1037  if test -n "$ac_prev"; then
1038    eval $ac_prev=\$ac_option
1039    ac_prev=
1040    continue
1041  fi
1042
1043  case $ac_option in
1044  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045  *)	ac_optarg=yes ;;
1046  esac
1047
1048  # Accept the important Cygnus configure options, so we can diagnose typos.
1049
1050  case $ac_dashdash$ac_option in
1051  --)
1052    ac_dashdash=yes ;;
1053
1054  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055    ac_prev=bindir ;;
1056  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057    bindir=$ac_optarg ;;
1058
1059  -build | --build | --buil | --bui | --bu)
1060    ac_prev=build_alias ;;
1061  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062    build_alias=$ac_optarg ;;
1063
1064  -cache-file | --cache-file | --cache-fil | --cache-fi \
1065  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066    ac_prev=cache_file ;;
1067  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069    cache_file=$ac_optarg ;;
1070
1071  --config-cache | -C)
1072    cache_file=config.cache ;;
1073
1074  -datadir | --datadir | --datadi | --datad)
1075    ac_prev=datadir ;;
1076  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077    datadir=$ac_optarg ;;
1078
1079  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080  | --dataroo | --dataro | --datar)
1081    ac_prev=datarootdir ;;
1082  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084    datarootdir=$ac_optarg ;;
1085
1086  -disable-* | --disable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1091   { (exit 1); exit 1; }; }
1092    ac_useropt_orig=$ac_useropt
1093    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094    case $ac_user_opts in
1095      *"
1096"enable_$ac_useropt"
1097"*) ;;
1098      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099	 ac_unrecognized_sep=', ';;
1100    esac
1101    eval enable_$ac_useropt=no ;;
1102
1103  -docdir | --docdir | --docdi | --doc | --do)
1104    ac_prev=docdir ;;
1105  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106    docdir=$ac_optarg ;;
1107
1108  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109    ac_prev=dvidir ;;
1110  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111    dvidir=$ac_optarg ;;
1112
1113  -enable-* | --enable-*)
1114    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115    # Reject names that are not valid shell variable names.
1116    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1118   { (exit 1); exit 1; }; }
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"enable_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132  | --exec | --exe | --ex)
1133    ac_prev=exec_prefix ;;
1134  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136  | --exec=* | --exe=* | --ex=*)
1137    exec_prefix=$ac_optarg ;;
1138
1139  -gas | --gas | --ga | --g)
1140    # Obsolete; use --with-gas.
1141    with_gas=yes ;;
1142
1143  -help | --help | --hel | --he | -h)
1144    ac_init_help=long ;;
1145  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146    ac_init_help=recursive ;;
1147  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148    ac_init_help=short ;;
1149
1150  -host | --host | --hos | --ho)
1151    ac_prev=host_alias ;;
1152  -host=* | --host=* | --hos=* | --ho=*)
1153    host_alias=$ac_optarg ;;
1154
1155  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156    ac_prev=htmldir ;;
1157  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158  | --ht=*)
1159    htmldir=$ac_optarg ;;
1160
1161  -includedir | --includedir | --includedi | --included | --include \
1162  | --includ | --inclu | --incl | --inc)
1163    ac_prev=includedir ;;
1164  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165  | --includ=* | --inclu=* | --incl=* | --inc=*)
1166    includedir=$ac_optarg ;;
1167
1168  -infodir | --infodir | --infodi | --infod | --info | --inf)
1169    ac_prev=infodir ;;
1170  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171    infodir=$ac_optarg ;;
1172
1173  -libdir | --libdir | --libdi | --libd)
1174    ac_prev=libdir ;;
1175  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176    libdir=$ac_optarg ;;
1177
1178  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179  | --libexe | --libex | --libe)
1180    ac_prev=libexecdir ;;
1181  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182  | --libexe=* | --libex=* | --libe=*)
1183    libexecdir=$ac_optarg ;;
1184
1185  -localedir | --localedir | --localedi | --localed | --locale)
1186    ac_prev=localedir ;;
1187  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188    localedir=$ac_optarg ;;
1189
1190  -localstatedir | --localstatedir | --localstatedi | --localstated \
1191  | --localstate | --localstat | --localsta | --localst | --locals)
1192    ac_prev=localstatedir ;;
1193  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195    localstatedir=$ac_optarg ;;
1196
1197  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198    ac_prev=mandir ;;
1199  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200    mandir=$ac_optarg ;;
1201
1202  -nfp | --nfp | --nf)
1203    # Obsolete; use --without-fp.
1204    with_fp=no ;;
1205
1206  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207  | --no-cr | --no-c | -n)
1208    no_create=yes ;;
1209
1210  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212    no_recursion=yes ;;
1213
1214  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216  | --oldin | --oldi | --old | --ol | --o)
1217    ac_prev=oldincludedir ;;
1218  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221    oldincludedir=$ac_optarg ;;
1222
1223  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224    ac_prev=prefix ;;
1225  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226    prefix=$ac_optarg ;;
1227
1228  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229  | --program-pre | --program-pr | --program-p)
1230    ac_prev=program_prefix ;;
1231  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233    program_prefix=$ac_optarg ;;
1234
1235  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236  | --program-suf | --program-su | --program-s)
1237    ac_prev=program_suffix ;;
1238  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240    program_suffix=$ac_optarg ;;
1241
1242  -program-transform-name | --program-transform-name \
1243  | --program-transform-nam | --program-transform-na \
1244  | --program-transform-n | --program-transform- \
1245  | --program-transform | --program-transfor \
1246  | --program-transfo | --program-transf \
1247  | --program-trans | --program-tran \
1248  | --progr-tra | --program-tr | --program-t)
1249    ac_prev=program_transform_name ;;
1250  -program-transform-name=* | --program-transform-name=* \
1251  | --program-transform-nam=* | --program-transform-na=* \
1252  | --program-transform-n=* | --program-transform-=* \
1253  | --program-transform=* | --program-transfor=* \
1254  | --program-transfo=* | --program-transf=* \
1255  | --program-trans=* | --program-tran=* \
1256  | --progr-tra=* | --program-tr=* | --program-t=*)
1257    program_transform_name=$ac_optarg ;;
1258
1259  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260    ac_prev=pdfdir ;;
1261  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262    pdfdir=$ac_optarg ;;
1263
1264  -psdir | --psdir | --psdi | --psd | --ps)
1265    ac_prev=psdir ;;
1266  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267    psdir=$ac_optarg ;;
1268
1269  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270  | -silent | --silent | --silen | --sile | --sil)
1271    silent=yes ;;
1272
1273  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274    ac_prev=sbindir ;;
1275  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276  | --sbi=* | --sb=*)
1277    sbindir=$ac_optarg ;;
1278
1279  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281  | --sharedst | --shareds | --shared | --share | --shar \
1282  | --sha | --sh)
1283    ac_prev=sharedstatedir ;;
1284  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287  | --sha=* | --sh=*)
1288    sharedstatedir=$ac_optarg ;;
1289
1290  -site | --site | --sit)
1291    ac_prev=site ;;
1292  -site=* | --site=* | --sit=*)
1293    site=$ac_optarg ;;
1294
1295  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296    ac_prev=srcdir ;;
1297  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298    srcdir=$ac_optarg ;;
1299
1300  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301  | --syscon | --sysco | --sysc | --sys | --sy)
1302    ac_prev=sysconfdir ;;
1303  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305    sysconfdir=$ac_optarg ;;
1306
1307  -target | --target | --targe | --targ | --tar | --ta | --t)
1308    ac_prev=target_alias ;;
1309  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310    target_alias=$ac_optarg ;;
1311
1312  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313    verbose=yes ;;
1314
1315  -version | --version | --versio | --versi | --vers | -V)
1316    ac_init_version=: ;;
1317
1318  -with-* | --with-*)
1319    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320    # Reject names that are not valid shell variable names.
1321    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1323   { (exit 1); exit 1; }; }
1324    ac_useropt_orig=$ac_useropt
1325    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326    case $ac_user_opts in
1327      *"
1328"with_$ac_useropt"
1329"*) ;;
1330      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331	 ac_unrecognized_sep=', ';;
1332    esac
1333    eval with_$ac_useropt=\$ac_optarg ;;
1334
1335  -without-* | --without-*)
1336    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337    # Reject names that are not valid shell variable names.
1338    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1340   { (exit 1); exit 1; }; }
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=no ;;
1351
1352  --x)
1353    # Obsolete; use --with-x.
1354    with_x=yes ;;
1355
1356  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357  | --x-incl | --x-inc | --x-in | --x-i)
1358    ac_prev=x_includes ;;
1359  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361    x_includes=$ac_optarg ;;
1362
1363  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365    ac_prev=x_libraries ;;
1366  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368    x_libraries=$ac_optarg ;;
1369
1370  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1371Try \`$0 --help' for more information." >&2
1372   { (exit 1); exit 1; }; }
1373    ;;
1374
1375  *=*)
1376    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377    # Reject names that are not valid shell variable names.
1378    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1379      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1380   { (exit 1); exit 1; }; }
1381    eval $ac_envvar=\$ac_optarg
1382    export $ac_envvar ;;
1383
1384  *)
1385    # FIXME: should be removed in autoconf 3.0.
1386    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390    ;;
1391
1392  esac
1393done
1394
1395if test -n "$ac_prev"; then
1396  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1398   { (exit 1); exit 1; }; }
1399fi
1400
1401if test -n "$ac_unrecognized_opts"; then
1402  case $enable_option_checking in
1403    no) ;;
1404    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1405   { (exit 1); exit 1; }; } ;;
1406    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407  esac
1408fi
1409
1410# Check all directory arguments for consistency.
1411for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412		datadir sysconfdir sharedstatedir localstatedir includedir \
1413		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414		libdir localedir mandir
1415do
1416  eval ac_val=\$$ac_var
1417  # Remove trailing slashes.
1418  case $ac_val in
1419    */ )
1420      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421      eval $ac_var=\$ac_val;;
1422  esac
1423  # Be sure to have absolute directory names.
1424  case $ac_val in
1425    [\\/$]* | ?:[\\/]* )  continue;;
1426    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427  esac
1428  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1429   { (exit 1); exit 1; }; }
1430done
1431
1432# There might be people who depend on the old broken behavior: `$host'
1433# used to hold the argument of --host etc.
1434# FIXME: To remove some day.
1435build=$build_alias
1436host=$host_alias
1437target=$target_alias
1438
1439# FIXME: To remove some day.
1440if test "x$host_alias" != x; then
1441  if test "x$build_alias" = x; then
1442    cross_compiling=maybe
1443    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1444    If a cross compiler is detected then cross compile mode will be used." >&2
1445  elif test "x$build_alias" != "x$host_alias"; then
1446    cross_compiling=yes
1447  fi
1448fi
1449
1450ac_tool_prefix=
1451test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
1453test "$silent" = yes && exec 6>/dev/null
1454
1455
1456ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457ac_ls_di=`ls -di .` &&
1458ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1460   { (exit 1); exit 1; }; }
1461test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1463   { (exit 1); exit 1; }; }
1464
1465
1466# Find the source files, if location was not specified.
1467if test -z "$srcdir"; then
1468  ac_srcdir_defaulted=yes
1469  # Try the directory containing this script, then the parent directory.
1470  ac_confdir=`$as_dirname -- "$as_myself" ||
1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472	 X"$as_myself" : 'X\(//\)[^/]' \| \
1473	 X"$as_myself" : 'X\(//\)$' \| \
1474	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475$as_echo X"$as_myself" |
1476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477	    s//\1/
1478	    q
1479	  }
1480	  /^X\(\/\/\)[^/].*/{
1481	    s//\1/
1482	    q
1483	  }
1484	  /^X\(\/\/\)$/{
1485	    s//\1/
1486	    q
1487	  }
1488	  /^X\(\/\).*/{
1489	    s//\1/
1490	    q
1491	  }
1492	  s/.*/./; q'`
1493  srcdir=$ac_confdir
1494  if test ! -r "$srcdir/$ac_unique_file"; then
1495    srcdir=..
1496  fi
1497else
1498  ac_srcdir_defaulted=no
1499fi
1500if test ! -r "$srcdir/$ac_unique_file"; then
1501  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1503   { (exit 1); exit 1; }; }
1504fi
1505ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506ac_abs_confdir=`(
1507	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1508   { (exit 1); exit 1; }; }
1509	pwd)`
1510# When building in place, set srcdir=.
1511if test "$ac_abs_confdir" = "$ac_pwd"; then
1512  srcdir=.
1513fi
1514# Remove unnecessary trailing slashes from srcdir.
1515# Double slashes in file names in object file debugging info
1516# mess up M-x gdb in Emacs.
1517case $srcdir in
1518*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519esac
1520for ac_var in $ac_precious_vars; do
1521  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522  eval ac_env_${ac_var}_value=\$${ac_var}
1523  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525done
1526
1527#
1528# Report the --help message.
1529#
1530if test "$ac_init_help" = "long"; then
1531  # Omit some internal or obsolete options to make the list less imposing.
1532  # This message is too long to be a string in the A/UX 3.1 sh.
1533  cat <<_ACEOF
1534\`configure' configures this package to adapt to many kinds of systems.
1535
1536Usage: $0 [OPTION]... [VAR=VALUE]...
1537
1538To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539VAR=VALUE.  See below for descriptions of some of the useful variables.
1540
1541Defaults for the options are specified in brackets.
1542
1543Configuration:
1544  -h, --help              display this help and exit
1545      --help=short        display options specific to this package
1546      --help=recursive    display the short help of all the included packages
1547  -V, --version           display version information and exit
1548  -q, --quiet, --silent   do not print \`checking...' messages
1549      --cache-file=FILE   cache test results in FILE [disabled]
1550  -C, --config-cache      alias for \`--cache-file=config.cache'
1551  -n, --no-create         do not create output files
1552      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1553
1554Installation directories:
1555  --prefix=PREFIX         install architecture-independent files in PREFIX
1556                          [$ac_default_prefix]
1557  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1558                          [PREFIX]
1559
1560By default, \`make install' will install all the files in
1561\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1562an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563for instance \`--prefix=\$HOME'.
1564
1565For better control, use the options below.
1566
1567Fine tuning of the installation directories:
1568  --bindir=DIR            user executables [EPREFIX/bin]
1569  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1570  --libexecdir=DIR        program executables [EPREFIX/libexec]
1571  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1572  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1573  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1574  --libdir=DIR            object code libraries [EPREFIX/lib]
1575  --includedir=DIR        C header files [PREFIX/include]
1576  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1577  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1578  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1579  --infodir=DIR           info documentation [DATAROOTDIR/info]
1580  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1581  --mandir=DIR            man documentation [DATAROOTDIR/man]
1582  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1583  --htmldir=DIR           html documentation [DOCDIR]
1584  --dvidir=DIR            dvi documentation [DOCDIR]
1585  --pdfdir=DIR            pdf documentation [DOCDIR]
1586  --psdir=DIR             ps documentation [DOCDIR]
1587_ACEOF
1588
1589  cat <<\_ACEOF
1590
1591Program names:
1592  --program-prefix=PREFIX            prepend PREFIX to installed program names
1593  --program-suffix=SUFFIX            append SUFFIX to installed program names
1594  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1595
1596System types:
1597  --build=BUILD     configure for building on BUILD [guessed]
1598  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1599_ACEOF
1600fi
1601
1602if test -n "$ac_init_help"; then
1603
1604  cat <<\_ACEOF
1605
1606Optional Features:
1607  --disable-option-checking  ignore unrecognized --enable/--with options
1608  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1609  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1610  --enable-maintainer-mode  enable make rules and dependencies not useful
1611			  (and sometimes confusing) to the casual installer
1612  --enable-static[=PKGS]  build static libraries [default=no]
1613  --enable-shared[=PKGS]  build shared libraries [default=yes]
1614  --enable-fast-install[=PKGS]
1615                          optimize for fast installation [default=yes]
1616  --disable-dependency-tracking  speeds up one-time build
1617  --enable-dependency-tracking   do not reject slow dependency extractors
1618  --disable-libtool-lock  avoid locking (might break parallel builds)
1619  --enable-python         Build Python wrapper library
1620  --disable-nls           do not use Native Language Support
1621  --disable-rpath         do not hardcode runtime library paths
1622  --enable-gtk-doc        use gtk-doc to build documentation [default=no]
1623
1624Optional Packages:
1625  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1626  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1627  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1628  --with-pic              try to use only PIC/non-PIC objects [default=use
1629                          both]
1630  --with-tags[=TAGS]      include additional configurations [automatic]
1631  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1632  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1633  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1634  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1635  --without-libintl-prefix     don't search for libintl in includedir and libdir
1636  --with-html-dir=PATH    path to installed docs
1637
1638Some influential environment variables:
1639  CC          C compiler command
1640  CFLAGS      C compiler flags
1641  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642              nonstandard directory <lib dir>
1643  LIBS        libraries to pass to the linker, e.g. -l<library>
1644  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645              you have headers in a nonstandard directory <include dir>
1646  CPP         C preprocessor
1647  CXX         C++ compiler command
1648  CXXFLAGS    C++ compiler flags
1649  CXXCPP      C++ preprocessor
1650  F77         Fortran 77 compiler command
1651  FFLAGS      Fortran 77 compiler flags
1652  PYTHON_VERSION
1653              The installed Python version to use, for example '2.3'. This
1654              string will be appended to the Python interpreter canonical
1655              name.
1656  PKG_CONFIG  path to pkg-config utility
1657
1658Use these variables to override the choices made by `configure' or to help
1659it to find libraries and programs with nonstandard names/locations.
1660
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666  # If there are subdirs, report their specific --help.
1667  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668    test -d "$ac_dir" ||
1669      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670      continue
1671    ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677  # A ".." for each directory in $ac_dir_suffix.
1678  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679  case $ac_top_builddir_sub in
1680  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682  esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690  .)  # We are building in place.
1691    ac_srcdir=.
1692    ac_top_srcdir=$ac_top_builddir_sub
1693    ac_abs_top_srcdir=$ac_pwd ;;
1694  [\\/]* | ?:[\\/]* )  # Absolute name.
1695    ac_srcdir=$srcdir$ac_dir_suffix;
1696    ac_top_srcdir=$srcdir
1697    ac_abs_top_srcdir=$srcdir ;;
1698  *) # Relative name.
1699    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700    ac_top_srcdir=$ac_top_build_prefix$srcdir
1701    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702esac
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705    cd "$ac_dir" || { ac_status=$?; continue; }
1706    # Check for guested configure.
1707    if test -f "$ac_srcdir/configure.gnu"; then
1708      echo &&
1709      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710    elif test -f "$ac_srcdir/configure"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure" --help=recursive
1713    else
1714      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715    fi || ac_status=$?
1716    cd "$ac_pwd" || { ac_status=$?; break; }
1717  done
1718fi
1719
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722  cat <<\_ACEOF
1723configure
1724generated by GNU Autoconf 2.63
1725
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
1731  exit
1732fi
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by $as_me, which was
1738generated by GNU Autoconf 2.63.  Invocation command line was
1739
1740  $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772  IFS=$as_save_IFS
1773  test -z "$as_dir" && as_dir=.
1774  $as_echo "PATH: $as_dir"
1775done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801  for ac_arg
1802  do
1803    case $ac_arg in
1804    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806    | -silent | --silent | --silen | --sile | --sil)
1807      continue ;;
1808    *\'*)
1809      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810    esac
1811    case $ac_pass in
1812    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813    2)
1814      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815      if test $ac_must_keep_next = true; then
1816	ac_must_keep_next=false # Got value, back to normal.
1817      else
1818	case $ac_arg in
1819	  *=* | --config-cache | -C | -disable-* | --disable-* \
1820	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822	  | -with-* | --with-* | -without-* | --without-* | --x)
1823	    case "$ac_configure_args0 " in
1824	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825	    esac
1826	    ;;
1827	  -* ) ac_must_keep_next=true ;;
1828	esac
1829      fi
1830      ac_configure_args="$ac_configure_args '$ac_arg'"
1831      ;;
1832    esac
1833  done
1834done
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log.  We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844  # Save into config.log some information that might help in debugging.
1845  {
1846    echo
1847
1848    cat <<\_ASBOX
1849## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##
1852_ASBOX
1853    echo
1854    # The following way of writing the cache mishandles newlines in values,
1855(
1856  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857    eval ac_val=\$$ac_var
1858    case $ac_val in #(
1859    *${as_nl}*)
1860      case $ac_var in #(
1861      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863      esac
1864      case $ac_var in #(
1865      _ | IFS | as_nl) ;; #(
1866      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867      *) $as_unset $ac_var ;;
1868      esac ;;
1869    esac
1870  done
1871  (set) 2>&1 |
1872    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873    *${as_nl}ac_space=\ *)
1874      sed -n \
1875	"s/'\''/'\''\\\\'\'''\''/g;
1876	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877      ;; #(
1878    *)
1879      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880      ;;
1881    esac |
1882    sort
1883)
1884    echo
1885
1886    cat <<\_ASBOX
1887## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##
1890_ASBOX
1891    echo
1892    for ac_var in $ac_subst_vars
1893    do
1894      eval ac_val=\$$ac_var
1895      case $ac_val in
1896      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897      esac
1898      $as_echo "$ac_var='\''$ac_val'\''"
1899    done | sort
1900    echo
1901
1902    if test -n "$ac_subst_files"; then
1903      cat <<\_ASBOX
1904## ------------------- ##
1905## File substitutions. ##
1906## ------------------- ##
1907_ASBOX
1908      echo
1909      for ac_var in $ac_subst_files
1910      do
1911	eval ac_val=\$$ac_var
1912	case $ac_val in
1913	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914	esac
1915	$as_echo "$ac_var='\''$ac_val'\''"
1916      done | sort
1917      echo
1918    fi
1919
1920    if test -s confdefs.h; then
1921      cat <<\_ASBOX
1922## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##
1925_ASBOX
1926      echo
1927      cat confdefs.h
1928      echo
1929    fi
1930    test "$ac_signal" != 0 &&
1931      $as_echo "$as_me: caught signal $ac_signal"
1932    $as_echo "$as_me: exit $exit_status"
1933  } >&5
1934  rm -f core *.core core.conftest.* &&
1935    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936    exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978  ac_site_file1=$CONFIG_SITE
1979elif test "x$prefix" != xNONE; then
1980  ac_site_file1=$prefix/share/config.site
1981  ac_site_file2=$prefix/etc/config.site
1982else
1983  ac_site_file1=$ac_default_prefix/share/config.site
1984  ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988  test "x$ac_site_file" = xNONE && continue
1989  if test -r "$ac_site_file"; then
1990    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992    sed 's/^/| /' "$ac_site_file" >&5
1993    . "$ac_site_file"
1994  fi
1995done
1996
1997if test -r "$cache_file"; then
1998  # Some versions of bash will fail to source /dev/null (special
1999  # files actually), so we avoid doing that.
2000  if test -f "$cache_file"; then
2001    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003    case $cache_file in
2004      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005      *)                      . "./$cache_file";;
2006    esac
2007  fi
2008else
2009  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011  >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019  eval ac_new_set=\$ac_env_${ac_var}_set
2020  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021  eval ac_new_val=\$ac_env_${ac_var}_value
2022  case $ac_old_set,$ac_new_set in
2023    set,)
2024      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026      ac_cache_corrupted=: ;;
2027    ,set)
2028      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,);;
2032    *)
2033      if test "x$ac_old_val" != "x$ac_new_val"; then
2034	# differences in whitespace do not lead to failure.
2035	ac_old_val_w=`echo x $ac_old_val`
2036	ac_new_val_w=`echo x $ac_new_val`
2037	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040	  ac_cache_corrupted=:
2041	else
2042	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044	  eval $ac_var=\$ac_old_val
2045	fi
2046	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050      fi;;
2051  esac
2052  # Pass precious variables to config.status.
2053  if test "$ac_new_set" = set; then
2054    case $ac_new_val in
2055    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    *) ac_arg=$ac_var=$ac_new_val ;;
2057    esac
2058    case " $ac_configure_args " in
2059      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061    esac
2062  fi
2063done
2064if $ac_cache_corrupted; then
2065  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071   { (exit 1); exit 1; }; }
2072fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097ac_config_headers="$ac_config_headers config.h"
2098
2099am__api_version='1.11'
2100
2101ac_aux_dir=
2102for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103  if test -f "$ac_dir/install-sh"; then
2104    ac_aux_dir=$ac_dir
2105    ac_install_sh="$ac_aux_dir/install-sh -c"
2106    break
2107  elif test -f "$ac_dir/install.sh"; then
2108    ac_aux_dir=$ac_dir
2109    ac_install_sh="$ac_aux_dir/install.sh -c"
2110    break
2111  elif test -f "$ac_dir/shtool"; then
2112    ac_aux_dir=$ac_dir
2113    ac_install_sh="$ac_aux_dir/shtool install -c"
2114    break
2115  fi
2116done
2117if test -z "$ac_aux_dir"; then
2118  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120   { (exit 1); exit 1; }; }
2121fi
2122
2123# These three variables are undocumented and unsupported,
2124# and are intended to be withdrawn in a future Autoconf release.
2125# They can cause serious problems if a builder's source tree is in a directory
2126# whose full name contains unusual characters.
2127ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2128ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2129ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2130
2131
2132# Find a good install program.  We prefer a C program (faster),
2133# so one script is as good as another.  But avoid the broken or
2134# incompatible versions:
2135# SysV /etc/install, /usr/sbin/install
2136# SunOS /usr/etc/install
2137# IRIX /sbin/install
2138# AIX /bin/install
2139# AmigaOS /C/install, which installs bootblocks on floppy discs
2140# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143# OS/2's system install, which has a completely different semantic
2144# ./install, which can be erroneously created by make from ./install.sh.
2145# Reject install programs that cannot install multiple files.
2146{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2147$as_echo_n "checking for a BSD-compatible install... " >&6; }
2148if test -z "$INSTALL"; then
2149if test "${ac_cv_path_install+set}" = set; then
2150  $as_echo_n "(cached) " >&6
2151else
2152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157  # Account for people who put trailing slashes in PATH elements.
2158case $as_dir/ in
2159  ./ | .// | /cC/* | \
2160  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2161  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2162  /usr/ucb/* ) ;;
2163  *)
2164    # OSF1 and SCO ODT 3.0 have their own names for install.
2165    # Don't use installbsd from OSF since it installs stuff as root
2166    # by default.
2167    for ac_prog in ginstall scoinst install; do
2168      for ac_exec_ext in '' $ac_executable_extensions; do
2169	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2170	  if test $ac_prog = install &&
2171	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172	    # AIX install.  It has an incompatible calling convention.
2173	    :
2174	  elif test $ac_prog = install &&
2175	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176	    # program-specific install script used by HP pwplus--don't use.
2177	    :
2178	  else
2179	    rm -rf conftest.one conftest.two conftest.dir
2180	    echo one > conftest.one
2181	    echo two > conftest.two
2182	    mkdir conftest.dir
2183	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2184	      test -s conftest.one && test -s conftest.two &&
2185	      test -s conftest.dir/conftest.one &&
2186	      test -s conftest.dir/conftest.two
2187	    then
2188	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2189	      break 3
2190	    fi
2191	  fi
2192	fi
2193      done
2194    done
2195    ;;
2196esac
2197
2198done
2199IFS=$as_save_IFS
2200
2201rm -rf conftest.one conftest.two conftest.dir
2202
2203fi
2204  if test "${ac_cv_path_install+set}" = set; then
2205    INSTALL=$ac_cv_path_install
2206  else
2207    # As a last resort, use the slow shell script.  Don't cache a
2208    # value for INSTALL within a source directory, because that will
2209    # break other packages using the cache if that directory is
2210    # removed, or if the value is a relative name.
2211    INSTALL=$ac_install_sh
2212  fi
2213fi
2214{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2215$as_echo "$INSTALL" >&6; }
2216
2217# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2218# It thinks the first close brace ends the variable substitution.
2219test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2220
2221test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2222
2223test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2224
2225{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2226$as_echo_n "checking whether build environment is sane... " >&6; }
2227# Just in case
2228sleep 1
2229echo timestamp > conftest.file
2230# Reject unsafe characters in $srcdir or the absolute working directory
2231# name.  Accept space and tab only in the latter.
2232am_lf='
2233'
2234case `pwd` in
2235  *[\\\"\#\$\&\'\`$am_lf]*)
2236    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2237$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2238   { (exit 1); exit 1; }; };;
2239esac
2240case $srcdir in
2241  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2242    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2243$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2244   { (exit 1); exit 1; }; };;
2245esac
2246
2247# Do `set' in a subshell so we don't clobber the current shell's
2248# arguments.  Must try -L first in case configure is actually a
2249# symlink; some systems play weird games with the mod time of symlinks
2250# (eg FreeBSD returns the mod time of the symlink's containing
2251# directory).
2252if (
2253   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2254   if test "$*" = "X"; then
2255      # -L didn't work.
2256      set X `ls -t "$srcdir/configure" conftest.file`
2257   fi
2258   rm -f conftest.file
2259   if test "$*" != "X $srcdir/configure conftest.file" \
2260      && test "$*" != "X conftest.file $srcdir/configure"; then
2261
2262      # If neither matched, then we have a broken ls.  This can happen
2263      # if, for instance, CONFIG_SHELL is bash and it inherits a
2264      # broken ls alias from the environment.  This has actually
2265      # happened.  Such a system could not be considered "sane".
2266      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2267alias in your environment" >&5
2268$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2269alias in your environment" >&2;}
2270   { (exit 1); exit 1; }; }
2271   fi
2272
2273   test "$2" = conftest.file
2274   )
2275then
2276   # Ok.
2277   :
2278else
2279   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2280Check your system clock" >&5
2281$as_echo "$as_me: error: newly created file is older than distributed files!
2282Check your system clock" >&2;}
2283   { (exit 1); exit 1; }; }
2284fi
2285{ $as_echo "$as_me:$LINENO: result: yes" >&5
2286$as_echo "yes" >&6; }
2287test "$program_prefix" != NONE &&
2288  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289# Use a double $ so make ignores it.
2290test "$program_suffix" != NONE &&
2291  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292# Double any \ or $.
2293# By default was `s,x,x', remove it if useless.
2294ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2295program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2296
2297# expand $ac_aux_dir to an absolute path
2298am_aux_dir=`cd $ac_aux_dir && pwd`
2299
2300if test x"${MISSING+set}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2304  *)
2305    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2306  esac
2307fi
2308# Use eval to expand $SHELL
2309if eval "$MISSING --run true"; then
2310  am_missing_run="$MISSING --run "
2311else
2312  am_missing_run=
2313  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2314$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2315fi
2316
2317if test x"${install_sh}" != xset; then
2318  case $am_aux_dir in
2319  *\ * | *\	*)
2320    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2321  *)
2322    install_sh="\${SHELL} $am_aux_dir/install-sh"
2323  esac
2324fi
2325
2326# Installed binaries are usually stripped using `strip' when the user
2327# run `make install-strip'.  However `strip' might not be the right
2328# tool to use in cross-compilation environments, therefore Automake
2329# will honor the `STRIP' environment variable to overrule this program.
2330if test "$cross_compiling" != no; then
2331  if test -n "$ac_tool_prefix"; then
2332  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}strip; ac_word=$2
2334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if test "${ac_cv_prog_STRIP+set}" = set; then
2337  $as_echo_n "(cached) " >&6
2338else
2339  if test -n "$STRIP"; then
2340  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347  for ac_exec_ext in '' $ac_executable_extensions; do
2348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359STRIP=$ac_cv_prog_STRIP
2360if test -n "$STRIP"; then
2361  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2362$as_echo "$STRIP" >&6; }
2363else
2364  { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369fi
2370if test -z "$ac_cv_prog_STRIP"; then
2371  ac_ct_STRIP=$STRIP
2372  # Extract the first word of "strip", so it can be a program name with args.
2373set dummy strip; ac_word=$2
2374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377  $as_echo_n "(cached) " >&6
2378else
2379  if test -n "$ac_ct_STRIP"; then
2380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_ac_ct_STRIP="strip"
2390    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400if test -n "$ac_ct_STRIP"; then
2401  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402$as_echo "$ac_ct_STRIP" >&6; }
2403else
2404  { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408  if test "x$ac_ct_STRIP" = x; then
2409    STRIP=":"
2410  else
2411    case $cross_compiling:$ac_tool_warned in
2412yes:)
2413{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415ac_tool_warned=yes ;;
2416esac
2417    STRIP=$ac_ct_STRIP
2418  fi
2419else
2420  STRIP="$ac_cv_prog_STRIP"
2421fi
2422
2423fi
2424INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2425
2426{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2427$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428if test -z "$MKDIR_P"; then
2429  if test "${ac_cv_path_mkdir+set}" = set; then
2430  $as_echo_n "(cached) " >&6
2431else
2432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437  for ac_prog in mkdir gmkdir; do
2438	 for ac_exec_ext in '' $ac_executable_extensions; do
2439	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2440	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441	     'mkdir (GNU coreutils) '* | \
2442	     'mkdir (coreutils) '* | \
2443	     'mkdir (fileutils) '4.1*)
2444	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445	       break 3;;
2446	   esac
2447	 done
2448       done
2449done
2450IFS=$as_save_IFS
2451
2452fi
2453
2454  if test "${ac_cv_path_mkdir+set}" = set; then
2455    MKDIR_P="$ac_cv_path_mkdir -p"
2456  else
2457    # As a last resort, use the slow shell script.  Don't cache a
2458    # value for MKDIR_P within a source directory, because that will
2459    # break other packages using the cache if that directory is
2460    # removed, or if the value is a relative name.
2461    test -d ./--version && rmdir ./--version
2462    MKDIR_P="$ac_install_sh -d"
2463  fi
2464fi
2465{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2466$as_echo "$MKDIR_P" >&6; }
2467
2468mkdir_p="$MKDIR_P"
2469case $mkdir_p in
2470  [\\/$]* | ?:[\\/]*) ;;
2471  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2472esac
2473
2474for ac_prog in gawk mawk nawk awk
2475do
2476  # Extract the first word of "$ac_prog", so it can be a program name with args.
2477set dummy $ac_prog; ac_word=$2
2478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479$as_echo_n "checking for $ac_word... " >&6; }
2480if test "${ac_cv_prog_AWK+set}" = set; then
2481  $as_echo_n "(cached) " >&6
2482else
2483  if test -n "$AWK"; then
2484  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489  IFS=$as_save_IFS
2490  test -z "$as_dir" && as_dir=.
2491  for ac_exec_ext in '' $ac_executable_extensions; do
2492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493    ac_cv_prog_AWK="$ac_prog"
2494    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495    break 2
2496  fi
2497done
2498done
2499IFS=$as_save_IFS
2500
2501fi
2502fi
2503AWK=$ac_cv_prog_AWK
2504if test -n "$AWK"; then
2505  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2506$as_echo "$AWK" >&6; }
2507else
2508  { $as_echo "$as_me:$LINENO: result: no" >&5
2509$as_echo "no" >&6; }
2510fi
2511
2512
2513  test -n "$AWK" && break
2514done
2515
2516{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2517$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2518set x ${MAKE-make}
2519ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2520if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2521  $as_echo_n "(cached) " >&6
2522else
2523  cat >conftest.make <<\_ACEOF
2524SHELL = /bin/sh
2525all:
2526	@echo '@@@%%%=$(MAKE)=@@@%%%'
2527_ACEOF
2528# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529case `${MAKE-make} -f conftest.make 2>/dev/null` in
2530  *@@@%%%=?*=@@@%%%*)
2531    eval ac_cv_prog_make_${ac_make}_set=yes;;
2532  *)
2533    eval ac_cv_prog_make_${ac_make}_set=no;;
2534esac
2535rm -f conftest.make
2536fi
2537if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2538  { $as_echo "$as_me:$LINENO: result: yes" >&5
2539$as_echo "yes" >&6; }
2540  SET_MAKE=
2541else
2542  { $as_echo "$as_me:$LINENO: result: no" >&5
2543$as_echo "no" >&6; }
2544  SET_MAKE="MAKE=${MAKE-make}"
2545fi
2546
2547rm -rf .tst 2>/dev/null
2548mkdir .tst 2>/dev/null
2549if test -d .tst; then
2550  am__leading_dot=.
2551else
2552  am__leading_dot=_
2553fi
2554rmdir .tst 2>/dev/null
2555
2556if test "`cd $srcdir && pwd`" != "`pwd`"; then
2557  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2558  # is not polluted with repeated "-I."
2559  am__isrc=' -I$(srcdir)'
2560  # test to see if srcdir already configured
2561  if test -f $srcdir/config.status; then
2562    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2563$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2564   { (exit 1); exit 1; }; }
2565  fi
2566fi
2567
2568# test whether we have cygpath
2569if test -z "$CYGPATH_W"; then
2570  if (cygpath --version) >/dev/null 2>/dev/null; then
2571    CYGPATH_W='cygpath -w'
2572  else
2573    CYGPATH_W=echo
2574  fi
2575fi
2576
2577
2578# Define the identity of the package.
2579 PACKAGE=libiptcdata
2580 VERSION=1.0.4
2581
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE "$PACKAGE"
2585_ACEOF
2586
2587
2588cat >>confdefs.h <<_ACEOF
2589#define VERSION "$VERSION"
2590_ACEOF
2591
2592# Some tools Automake needs.
2593
2594ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2595
2596
2597AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2598
2599
2600AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2601
2602
2603AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2604
2605
2606MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2607
2608# We need awk for the "check" target.  The system "awk" is bad on
2609# some platforms.
2610# Always define AMTAR for backward compatibility.
2611
2612AMTAR=${AMTAR-"${am_missing_run}tar"}
2613
2614am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2615
2616
2617
2618
2619
2620
2621{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2622$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2623    # Check whether --enable-maintainer-mode was given.
2624if test "${enable_maintainer_mode+set}" = set; then
2625  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2626else
2627  USE_MAINTAINER_MODE=no
2628fi
2629
2630  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2631$as_echo "$USE_MAINTAINER_MODE" >&6; }
2632   if test $USE_MAINTAINER_MODE = yes; then
2633  MAINTAINER_MODE_TRUE=
2634  MAINTAINER_MODE_FALSE='#'
2635else
2636  MAINTAINER_MODE_TRUE='#'
2637  MAINTAINER_MODE_FALSE=
2638fi
2639
2640  MAINT=$MAINTAINER_MODE_TRUE
2641
2642
2643
2644LIBIPTCDATA_AGE=3
2645LIBIPTCDATA_REVISION=3
2646LIBIPTCDATA_CURRENT=3
2647
2648
2649
2650LIBIPTCDATA_VERSION_INFO=$LIBIPTCDATA_CURRENT:$LIBIPTCDATA_REVISION:$LIBIPTCDATA_AGE
2651
2652
2653# Check whether --enable-static was given.
2654if test "${enable_static+set}" = set; then
2655  enableval=$enable_static; p=${PACKAGE-default}
2656    case $enableval in
2657    yes) enable_static=yes ;;
2658    no) enable_static=no ;;
2659    *)
2660     enable_static=no
2661      # Look at the argument we got.  We use all the common list separators.
2662      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2663      for pkg in $enableval; do
2664	IFS="$lt_save_ifs"
2665	if test "X$pkg" = "X$p"; then
2666	  enable_static=yes
2667	fi
2668      done
2669      IFS="$lt_save_ifs"
2670      ;;
2671    esac
2672else
2673  enable_static=no
2674fi
2675
2676
2677
2678# Check whether --enable-shared was given.
2679if test "${enable_shared+set}" = set; then
2680  enableval=$enable_shared; p=${PACKAGE-default}
2681    case $enableval in
2682    yes) enable_shared=yes ;;
2683    no) enable_shared=no ;;
2684    *)
2685      enable_shared=no
2686      # Look at the argument we got.  We use all the common list separators.
2687      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2688      for pkg in $enableval; do
2689	IFS="$lt_save_ifs"
2690	if test "X$pkg" = "X$p"; then
2691	  enable_shared=yes
2692	fi
2693      done
2694      IFS="$lt_save_ifs"
2695      ;;
2696    esac
2697else
2698  enable_shared=yes
2699fi
2700
2701
2702# Check whether --enable-fast-install was given.
2703if test "${enable_fast_install+set}" = set; then
2704  enableval=$enable_fast_install; p=${PACKAGE-default}
2705    case $enableval in
2706    yes) enable_fast_install=yes ;;
2707    no) enable_fast_install=no ;;
2708    *)
2709      enable_fast_install=no
2710      # Look at the argument we got.  We use all the common list separators.
2711      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2712      for pkg in $enableval; do
2713	IFS="$lt_save_ifs"
2714	if test "X$pkg" = "X$p"; then
2715	  enable_fast_install=yes
2716	fi
2717      done
2718      IFS="$lt_save_ifs"
2719      ;;
2720    esac
2721else
2722  enable_fast_install=yes
2723fi
2724
2725
2726# Make sure we can run config.sub.
2727$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2728  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2729$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2730   { (exit 1); exit 1; }; }
2731
2732{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2733$as_echo_n "checking build system type... " >&6; }
2734if test "${ac_cv_build+set}" = set; then
2735  $as_echo_n "(cached) " >&6
2736else
2737  ac_build_alias=$build_alias
2738test "x$ac_build_alias" = x &&
2739  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740test "x$ac_build_alias" = x &&
2741  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2742$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2743   { (exit 1); exit 1; }; }
2744ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2745  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2746$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2747   { (exit 1); exit 1; }; }
2748
2749fi
2750{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2751$as_echo "$ac_cv_build" >&6; }
2752case $ac_cv_build in
2753*-*-*) ;;
2754*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2755$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2756   { (exit 1); exit 1; }; };;
2757esac
2758build=$ac_cv_build
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_build
2761shift
2762build_cpu=$1
2763build_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767build_os=$*
2768IFS=$ac_save_IFS
2769case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2770
2771
2772{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2773$as_echo_n "checking host system type... " >&6; }
2774if test "${ac_cv_host+set}" = set; then
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test "x$host_alias" = x; then
2778  ac_cv_host=$ac_cv_build
2779else
2780  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2782$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2783   { (exit 1); exit 1; }; }
2784fi
2785
2786fi
2787{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2788$as_echo "$ac_cv_host" >&6; }
2789case $ac_cv_host in
2790*-*-*) ;;
2791*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2792$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2793   { (exit 1); exit 1; }; };;
2794esac
2795host=$ac_cv_host
2796ac_save_IFS=$IFS; IFS='-'
2797set x $ac_cv_host
2798shift
2799host_cpu=$1
2800host_vendor=$2
2801shift; shift
2802# Remember, the first character of IFS is used to create $*,
2803# except with old shells:
2804host_os=$*
2805IFS=$ac_save_IFS
2806case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2807
2808
2809DEPDIR="${am__leading_dot}deps"
2810
2811ac_config_commands="$ac_config_commands depfiles"
2812
2813
2814am_make=${MAKE-make}
2815cat > confinc << 'END'
2816am__doit:
2817	@echo this is the am__doit target
2818.PHONY: am__doit
2819END
2820# If we don't find an include directive, just comment out the code.
2821{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2822$as_echo_n "checking for style of include used by $am_make... " >&6; }
2823am__include="#"
2824am__quote=
2825_am_result=none
2826# First try GNU make style include.
2827echo "include confinc" > confmf
2828# Ignore all kinds of additional output from `make'.
2829case `$am_make -s -f confmf 2> /dev/null` in #(
2830*the\ am__doit\ target*)
2831  am__include=include
2832  am__quote=
2833  _am_result=GNU
2834  ;;
2835esac
2836# Now try BSD make style include.
2837if test "$am__include" = "#"; then
2838   echo '.include "confinc"' > confmf
2839   case `$am_make -s -f confmf 2> /dev/null` in #(
2840   *the\ am__doit\ target*)
2841     am__include=.include
2842     am__quote="\""
2843     _am_result=BSD
2844     ;;
2845   esac
2846fi
2847
2848
2849{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2850$as_echo "$_am_result" >&6; }
2851rm -f confinc confmf
2852
2853# Check whether --enable-dependency-tracking was given.
2854if test "${enable_dependency_tracking+set}" = set; then
2855  enableval=$enable_dependency_tracking;
2856fi
2857
2858if test "x$enable_dependency_tracking" != xno; then
2859  am_depcomp="$ac_aux_dir/depcomp"
2860  AMDEPBACKSLASH='\'
2861fi
2862 if test "x$enable_dependency_tracking" != xno; then
2863  AMDEP_TRUE=
2864  AMDEP_FALSE='#'
2865else
2866  AMDEP_TRUE='#'
2867  AMDEP_FALSE=
2868fi
2869
2870
2871ac_ext=c
2872ac_cpp='$CPP $CPPFLAGS'
2873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876if test -n "$ac_tool_prefix"; then
2877  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}gcc; ac_word=$2
2879{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if test "${ac_cv_prog_CC+set}" = set; then
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$CC"; then
2885  ac_cv_prog_CC="$CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892  for ac_exec_ext in '' $ac_executable_extensions; do
2893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2895    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904CC=$ac_cv_prog_CC
2905if test -n "$CC"; then
2906  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907$as_echo "$CC" >&6; }
2908else
2909  { $as_echo "$as_me:$LINENO: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913
2914fi
2915if test -z "$ac_cv_prog_CC"; then
2916  ac_ct_CC=$CC
2917  # Extract the first word of "gcc", so it can be a program name with args.
2918set dummy gcc; ac_word=$2
2919{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920$as_echo_n "checking for $ac_word... " >&6; }
2921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2922  $as_echo_n "(cached) " >&6
2923else
2924  if test -n "$ac_ct_CC"; then
2925  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932  for ac_exec_ext in '' $ac_executable_extensions; do
2933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934    ac_cv_prog_ac_ct_CC="gcc"
2935    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939done
2940IFS=$as_save_IFS
2941
2942fi
2943fi
2944ac_ct_CC=$ac_cv_prog_ac_ct_CC
2945if test -n "$ac_ct_CC"; then
2946  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2947$as_echo "$ac_ct_CC" >&6; }
2948else
2949  { $as_echo "$as_me:$LINENO: result: no" >&5
2950$as_echo "no" >&6; }
2951fi
2952
2953  if test "x$ac_ct_CC" = x; then
2954    CC=""
2955  else
2956    case $cross_compiling:$ac_tool_warned in
2957yes:)
2958{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960ac_tool_warned=yes ;;
2961esac
2962    CC=$ac_ct_CC
2963  fi
2964else
2965  CC="$ac_cv_prog_CC"
2966fi
2967
2968if test -z "$CC"; then
2969          if test -n "$ac_tool_prefix"; then
2970    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}cc; ac_word=$2
2972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if test "${ac_cv_prog_CC+set}" = set; then
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985  for ac_exec_ext in '' $ac_executable_extensions; do
2986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987    ac_cv_prog_CC="${ac_tool_prefix}cc"
2988    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:$LINENO: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007  fi
3008fi
3009if test -z "$CC"; then
3010  # Extract the first word of "cc", so it can be a program name with args.
3011set dummy cc; ac_word=$2
3012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if test "${ac_cv_prog_CC+set}" = set; then
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$CC"; then
3018  ac_cv_prog_CC="$CC" # Let the user override the test.
3019else
3020  ac_prog_rejected=no
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026  for ac_exec_ext in '' $ac_executable_extensions; do
3027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3029       ac_prog_rejected=yes
3030       continue
3031     fi
3032    ac_cv_prog_CC="cc"
3033    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3034    break 2
3035  fi
3036done
3037done
3038IFS=$as_save_IFS
3039
3040if test $ac_prog_rejected = yes; then
3041  # We found a bogon in the path, so make sure we never use it.
3042  set dummy $ac_cv_prog_CC
3043  shift
3044  if test $# != 0; then
3045    # We chose a different compiler from the bogus one.
3046    # However, it has the same basename, so the bogon will be chosen
3047    # first if we set CC to just the basename; use the full file name.
3048    shift
3049    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3050  fi
3051fi
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
3056  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3057$as_echo "$CC" >&6; }
3058else
3059  { $as_echo "$as_me:$LINENO: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064fi
3065if test -z "$CC"; then
3066  if test -n "$ac_tool_prefix"; then
3067  for ac_prog in cl.exe
3068  do
3069    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
3073if test "${ac_cv_prog_CC+set}" = set; then
3074  $as_echo_n "(cached) " >&6
3075else
3076  if test -n "$CC"; then
3077  ac_cv_prog_CC="$CC" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084  for ac_exec_ext in '' $ac_executable_extensions; do
3085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3087    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088    break 2
3089  fi
3090done
3091done
3092IFS=$as_save_IFS
3093
3094fi
3095fi
3096CC=$ac_cv_prog_CC
3097if test -n "$CC"; then
3098  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3099$as_echo "$CC" >&6; }
3100else
3101  { $as_echo "$as_me:$LINENO: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106    test -n "$CC" && break
3107  done
3108fi
3109if test -z "$CC"; then
3110  ac_ct_CC=$CC
3111  for ac_prog in cl.exe
3112do
3113  # Extract the first word of "$ac_prog", so it can be a program name with args.
3114set dummy $ac_prog; ac_word=$2
3115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3118  $as_echo_n "(cached) " >&6
3119else
3120  if test -n "$ac_ct_CC"; then
3121  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128  for ac_exec_ext in '' $ac_executable_extensions; do
3129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130    ac_cv_prog_ac_ct_CC="$ac_prog"
3131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141if test -n "$ac_ct_CC"; then
3142  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3143$as_echo "$ac_ct_CC" >&6; }
3144else
3145  { $as_echo "$as_me:$LINENO: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150  test -n "$ac_ct_CC" && break
3151done
3152
3153  if test "x$ac_ct_CC" = x; then
3154    CC=""
3155  else
3156    case $cross_compiling:$ac_tool_warned in
3157yes:)
3158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160ac_tool_warned=yes ;;
3161esac
3162    CC=$ac_ct_CC
3163  fi
3164fi
3165
3166fi
3167
3168
3169test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3172See \`config.log' for more details." >&5
3173$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3174See \`config.log' for more details." >&2;}
3175   { (exit 1); exit 1; }; }; }
3176
3177# Provide some information about the compiler.
3178$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3179set X $ac_compile
3180ac_compiler=$2
3181{ (ac_try="$ac_compiler --version >&5"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187$as_echo "$ac_try_echo") >&5
3188  (eval "$ac_compiler --version >&5") 2>&5
3189  ac_status=$?
3190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }
3192{ (ac_try="$ac_compiler -v >&5"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198$as_echo "$ac_try_echo") >&5
3199  (eval "$ac_compiler -v >&5") 2>&5
3200  ac_status=$?
3201  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202  (exit $ac_status); }
3203{ (ac_try="$ac_compiler -V >&5"
3204case "(($ac_try" in
3205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206  *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209$as_echo "$ac_try_echo") >&5
3210  (eval "$ac_compiler -V >&5") 2>&5
3211  ac_status=$?
3212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); }
3214
3215cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h.  */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225
3226  ;
3227  return 0;
3228}
3229_ACEOF
3230ac_clean_files_save=$ac_clean_files
3231ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232# Try to create an executable without -o first, disregard a.out.
3233# It will help us diagnose broken compilers, and finding out an intuition
3234# of exeext.
3235{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3236$as_echo_n "checking for C compiler default output file name... " >&6; }
3237ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238
3239# The possible output files:
3240ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241
3242ac_rmfiles=
3243for ac_file in $ac_files
3244do
3245  case $ac_file in
3246    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248  esac
3249done
3250rm -f $ac_rmfiles
3251
3252if { (ac_try="$ac_link_default"
3253case "(($ac_try" in
3254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255  *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258$as_echo "$ac_try_echo") >&5
3259  (eval "$ac_link_default") 2>&5
3260  ac_status=$?
3261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); }; then
3263  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3266# so that the user can short-circuit this test for compilers unknown to
3267# Autoconf.
3268for ac_file in $ac_files ''
3269do
3270  test -f "$ac_file" || continue
3271  case $ac_file in
3272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273	;;
3274    [ab].out )
3275	# We found the default executable, but exeext='' is most
3276	# certainly right.
3277	break;;
3278    *.* )
3279        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280	then :; else
3281	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282	fi
3283	# We set ac_cv_exeext here because the later test for it is not
3284	# safe: cross compilers may not add the suffix if given an `-o'
3285	# argument, so we may need to know it at that point already.
3286	# Even if this section looks crufty: it has the advantage of
3287	# actually working.
3288	break;;
3289    * )
3290	break;;
3291  esac
3292done
3293test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295else
3296  ac_file=''
3297fi
3298
3299{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3300$as_echo "$ac_file" >&6; }
3301if test -z "$ac_file"; then
3302  $as_echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3308See \`config.log' for more details." >&5
3309$as_echo "$as_me: error: C compiler cannot create executables
3310See \`config.log' for more details." >&2;}
3311   { (exit 77); exit 77; }; }; }
3312fi
3313
3314ac_exeext=$ac_cv_exeext
3315
3316# Check that the compiler produces executables we can run.  If not, either
3317# the compiler is broken, or we cross compile.
3318{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3319$as_echo_n "checking whether the C compiler works... " >&6; }
3320# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3321# If not cross compiling, check that we can run a simple program.
3322if test "$cross_compiling" != yes; then
3323  if { ac_try='./$ac_file'
3324  { (case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329$as_echo "$ac_try_echo") >&5
3330  (eval "$ac_try") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; }; then
3334    cross_compiling=no
3335  else
3336    if test "$cross_compiling" = maybe; then
3337	cross_compiling=yes
3338    else
3339	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3342If you meant to cross compile, use \`--host'.
3343See \`config.log' for more details." >&5
3344$as_echo "$as_me: error: cannot run C compiled programs.
3345If you meant to cross compile, use \`--host'.
3346See \`config.log' for more details." >&2;}
3347   { (exit 1); exit 1; }; }; }
3348    fi
3349  fi
3350fi
3351{ $as_echo "$as_me:$LINENO: result: yes" >&5
3352$as_echo "yes" >&6; }
3353
3354rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355ac_clean_files=$ac_clean_files_save
3356# Check that the compiler produces executables we can run.  If not, either
3357# the compiler is broken, or we cross compile.
3358{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3359$as_echo_n "checking whether we are cross compiling... " >&6; }
3360{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3361$as_echo "$cross_compiling" >&6; }
3362
3363{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3364$as_echo_n "checking for suffix of executables... " >&6; }
3365if { (ac_try="$ac_link"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371$as_echo "$ac_try_echo") >&5
3372  (eval "$ac_link") 2>&5
3373  ac_status=$?
3374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; then
3376  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378# work properly (i.e., refer to `conftest.exe'), while it won't with
3379# `rm'.
3380for ac_file in conftest.exe conftest conftest.*; do
3381  test -f "$ac_file" || continue
3382  case $ac_file in
3383    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385	  break;;
3386    * ) break;;
3387  esac
3388done
3389else
3390  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3393See \`config.log' for more details." >&5
3394$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3395See \`config.log' for more details." >&2;}
3396   { (exit 1); exit 1; }; }; }
3397fi
3398
3399rm -f conftest$ac_cv_exeext
3400{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3401$as_echo "$ac_cv_exeext" >&6; }
3402
3403rm -f conftest.$ac_ext
3404EXEEXT=$ac_cv_exeext
3405ac_exeext=$EXEEXT
3406{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3407$as_echo_n "checking for suffix of object files... " >&6; }
3408if test "${ac_cv_objext+set}" = set; then
3409  $as_echo_n "(cached) " >&6
3410else
3411  cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.o conftest.obj
3427if { (ac_try="$ac_compile"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433$as_echo "$ac_try_echo") >&5
3434  (eval "$ac_compile") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; then
3438  for ac_file in conftest.o conftest.obj conftest.*; do
3439  test -f "$ac_file" || continue;
3440  case $ac_file in
3441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443       break;;
3444  esac
3445done
3446else
3447  $as_echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3453See \`config.log' for more details." >&5
3454$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3455See \`config.log' for more details." >&2;}
3456   { (exit 1); exit 1; }; }; }
3457fi
3458
3459rm -f conftest.$ac_cv_objext conftest.$ac_ext
3460fi
3461{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3462$as_echo "$ac_cv_objext" >&6; }
3463OBJEXT=$ac_cv_objext
3464ac_objext=$OBJEXT
3465{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3466$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467if test "${ac_cv_c_compiler_gnu+set}" = set; then
3468  $as_echo_n "(cached) " >&6
3469else
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476
3477int
3478main ()
3479{
3480#ifndef __GNUC__
3481       choke me
3482#endif
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (ac_try="$ac_compile"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495$as_echo "$ac_try_echo") >&5
3496  (eval "$ac_compile") 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } && {
3503	 test -z "$ac_c_werror_flag" ||
3504	 test ! -s conftest.err
3505       } && test -s conftest.$ac_objext; then
3506  ac_compiler_gnu=yes
3507else
3508  $as_echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511	ac_compiler_gnu=no
3512fi
3513
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517fi
3518{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520if test $ac_compiler_gnu = yes; then
3521  GCC=yes
3522else
3523  GCC=
3524fi
3525ac_test_CFLAGS=${CFLAGS+set}
3526ac_save_CFLAGS=$CFLAGS
3527{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3528$as_echo_n "checking whether $CC accepts -g... " >&6; }
3529if test "${ac_cv_prog_cc_g+set}" = set; then
3530  $as_echo_n "(cached) " >&6
3531else
3532  ac_save_c_werror_flag=$ac_c_werror_flag
3533   ac_c_werror_flag=yes
3534   ac_cv_prog_cc_g=no
3535   CFLAGS="-g"
3536   cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h.  */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
3552if { (ac_try="$ac_compile"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558$as_echo "$ac_try_echo") >&5
3559  (eval "$ac_compile") 2>conftest.er1
3560  ac_status=$?
3561  grep -v '^ *+' conftest.er1 >conftest.err
3562  rm -f conftest.er1
3563  cat conftest.err >&5
3564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); } && {
3566	 test -z "$ac_c_werror_flag" ||
3567	 test ! -s conftest.err
3568       } && test -s conftest.$ac_objext; then
3569  ac_cv_prog_cc_g=yes
3570else
3571  $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574	CFLAGS=""
3575      cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581
3582int
3583main ()
3584{
3585
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590rm -f conftest.$ac_objext
3591if { (ac_try="$ac_compile"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597$as_echo "$ac_try_echo") >&5
3598  (eval "$ac_compile") 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } && {
3605	 test -z "$ac_c_werror_flag" ||
3606	 test ! -s conftest.err
3607       } && test -s conftest.$ac_objext; then
3608  :
3609else
3610  $as_echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613	ac_c_werror_flag=$ac_save_c_werror_flag
3614	 CFLAGS="-g"
3615	 cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h.  */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (ac_try="$ac_compile"
3632case "(($ac_try" in
3633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634  *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637$as_echo "$ac_try_echo") >&5
3638  (eval "$ac_compile") 2>conftest.er1
3639  ac_status=$?
3640  grep -v '^ *+' conftest.er1 >conftest.err
3641  rm -f conftest.er1
3642  cat conftest.err >&5
3643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); } && {
3645	 test -z "$ac_c_werror_flag" ||
3646	 test ! -s conftest.err
3647       } && test -s conftest.$ac_objext; then
3648  ac_cv_prog_cc_g=yes
3649else
3650  $as_echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653
3654fi
3655
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi
3658
3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660fi
3661
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663   ac_c_werror_flag=$ac_save_c_werror_flag
3664fi
3665{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3666$as_echo "$ac_cv_prog_cc_g" >&6; }
3667if test "$ac_test_CFLAGS" = set; then
3668  CFLAGS=$ac_save_CFLAGS
3669elif test $ac_cv_prog_cc_g = yes; then
3670  if test "$GCC" = yes; then
3671    CFLAGS="-g -O2"
3672  else
3673    CFLAGS="-g"
3674  fi
3675else
3676  if test "$GCC" = yes; then
3677    CFLAGS="-O2"
3678  else
3679    CFLAGS=
3680  fi
3681fi
3682{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3683$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684if test "${ac_cv_prog_cc_c89+set}" = set; then
3685  $as_echo_n "(cached) " >&6
3686else
3687  ac_cv_prog_cc_c89=no
3688ac_save_CC=$CC
3689cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <stdarg.h>
3696#include <stdio.h>
3697#include <sys/types.h>
3698#include <sys/stat.h>
3699/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3700struct buf { int x; };
3701FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702static char *e (p, i)
3703     char **p;
3704     int i;
3705{
3706  return p[i];
3707}
3708static char *f (char * (*g) (char **, int), char **p, ...)
3709{
3710  char *s;
3711  va_list v;
3712  va_start (v,p);
3713  s = g (p, va_arg (v,int));
3714  va_end (v);
3715  return s;
3716}
3717
3718/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3719   function prototypes and stuff, but not '\xHH' hex character constants.
3720   These don't provoke an error unfortunately, instead are silently treated
3721   as 'x'.  The following induces an error, until -std is added to get
3722   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3723   array size at least.  It's necessary to write '\x00'==0 to get something
3724   that's true only with -std.  */
3725int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728   inside strings and character constants.  */
3729#define FOO(x) 'x'
3730int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732int test (int i, double x);
3733struct s1 {int (*f) (int a);};
3734struct s2 {int (*f) (double a);};
3735int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736int argc;
3737char **argv;
3738int
3739main ()
3740{
3741return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748do
3749  CC="$ac_save_CC $ac_arg"
3750  rm -f conftest.$ac_objext
3751if { (ac_try="$ac_compile"
3752case "(($ac_try" in
3753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754  *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3757$as_echo "$ac_try_echo") >&5
3758  (eval "$ac_compile") 2>conftest.er1
3759  ac_status=$?
3760  grep -v '^ *+' conftest.er1 >conftest.err
3761  rm -f conftest.er1
3762  cat conftest.err >&5
3763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); } && {
3765	 test -z "$ac_c_werror_flag" ||
3766	 test ! -s conftest.err
3767       } && test -s conftest.$ac_objext; then
3768  ac_cv_prog_cc_c89=$ac_arg
3769else
3770  $as_echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773
3774fi
3775
3776rm -f core conftest.err conftest.$ac_objext
3777  test "x$ac_cv_prog_cc_c89" != "xno" && break
3778done
3779rm -f conftest.$ac_ext
3780CC=$ac_save_CC
3781
3782fi
3783# AC_CACHE_VAL
3784case "x$ac_cv_prog_cc_c89" in
3785  x)
3786    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3787$as_echo "none needed" >&6; } ;;
3788  xno)
3789    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3790$as_echo "unsupported" >&6; } ;;
3791  *)
3792    CC="$CC $ac_cv_prog_cc_c89"
3793    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3795esac
3796
3797
3798ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804depcc="$CC"   am_compiler_list=
3805
3806{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3807$as_echo_n "checking dependency style of $depcc... " >&6; }
3808if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3809  $as_echo_n "(cached) " >&6
3810else
3811  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812  # We make a subdir and do the tests there.  Otherwise we can end up
3813  # making bogus files that we don't know about and never remove.  For
3814  # instance it was reported that on HP-UX the gcc test will end up
3815  # making a dummy file named `D' -- because `-MD' means `put the output
3816  # in D'.
3817  mkdir conftest.dir
3818  # Copy depcomp to subdir because otherwise we won't find it if we're
3819  # using a relative directory.
3820  cp "$am_depcomp" conftest.dir
3821  cd conftest.dir
3822  # We will build objects and dependencies in a subdirectory because
3823  # it helps to detect inapplicable dependency modes.  For instance
3824  # both Tru64's cc and ICC support -MD to output dependencies as a
3825  # side effect of compilation, but ICC will put the dependencies in
3826  # the current directory while Tru64 will put them in the object
3827  # directory.
3828  mkdir sub
3829
3830  am_cv_CC_dependencies_compiler_type=none
3831  if test "$am_compiler_list" = ""; then
3832     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3833  fi
3834  am__universal=false
3835  case " $depcc " in #(
3836     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3837     esac
3838
3839  for depmode in $am_compiler_list; do
3840    # Setup a source with many dependencies, because some compilers
3841    # like to wrap large dependency lists on column 80 (with \), and
3842    # we should not choose a depcomp mode which is confused by this.
3843    #
3844    # We need to recreate these files for each test, as the compiler may
3845    # overwrite some of them when testing with obscure command lines.
3846    # This happens at least with the AIX C compiler.
3847    : > sub/conftest.c
3848    for i in 1 2 3 4 5 6; do
3849      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3850      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3851      # Solaris 8's {/usr,}/bin/sh.
3852      touch sub/conftst$i.h
3853    done
3854    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3855
3856    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3857    # mode.  It turns out that the SunPro C++ compiler does not properly
3858    # handle `-M -o', and we need to detect this.  Also, some Intel
3859    # versions had trouble with output in subdirs
3860    am__obj=sub/conftest.${OBJEXT-o}
3861    am__minus_obj="-o $am__obj"
3862    case $depmode in
3863    gcc)
3864      # This depmode causes a compiler race in universal mode.
3865      test "$am__universal" = false || continue
3866      ;;
3867    nosideeffect)
3868      # after this tag, mechanisms are not by side-effect, so they'll
3869      # only be used when explicitly requested
3870      if test "x$enable_dependency_tracking" = xyes; then
3871	continue
3872      else
3873	break
3874      fi
3875      ;;
3876    msvisualcpp | msvcmsys)
3877      # This compiler won't grok `-c -o', but also, the minuso test has
3878      # not run yet.  These depmodes are late enough in the game, and
3879      # so weak that their functioning should not be impacted.
3880      am__obj=conftest.${OBJEXT-o}
3881      am__minus_obj=
3882      ;;
3883    none) break ;;
3884    esac
3885    if depmode=$depmode \
3886       source=sub/conftest.c object=$am__obj \
3887       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3888       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3889         >/dev/null 2>conftest.err &&
3890       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3891       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3892       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3893       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3894      # icc doesn't choke on unknown options, it will just issue warnings
3895      # or remarks (even with -Werror).  So we grep stderr for any message
3896      # that says an option was ignored or not supported.
3897      # When given -MP, icc 7.0 and 7.1 complain thusly:
3898      #   icc: Command line warning: ignoring option '-M'; no argument required
3899      # The diagnosis changed in icc 8.0:
3900      #   icc: Command line remark: option '-MP' not supported
3901      if (grep 'ignoring option' conftest.err ||
3902          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3903        am_cv_CC_dependencies_compiler_type=$depmode
3904        break
3905      fi
3906    fi
3907  done
3908
3909  cd ..
3910  rm -rf conftest.dir
3911else
3912  am_cv_CC_dependencies_compiler_type=none
3913fi
3914
3915fi
3916{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3917$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3918CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3919
3920 if
3921  test "x$enable_dependency_tracking" != xno \
3922  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3923  am__fastdepCC_TRUE=
3924  am__fastdepCC_FALSE='#'
3925else
3926  am__fastdepCC_TRUE='#'
3927  am__fastdepCC_FALSE=
3928fi
3929
3930
3931{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3932$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3933if test "${lt_cv_path_SED+set}" = set; then
3934  $as_echo_n "(cached) " >&6
3935else
3936  # Loop through the user's path and test for sed and gsed.
3937# Then use that list of sed's as ones to test for truncation.
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941  IFS=$as_save_IFS
3942  test -z "$as_dir" && as_dir=.
3943  for lt_ac_prog in sed gsed; do
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3946        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3947      fi
3948    done
3949  done
3950done
3951IFS=$as_save_IFS
3952lt_ac_max=0
3953lt_ac_count=0
3954# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3955# along with /bin/sed that truncates output.
3956for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3957  test ! -f $lt_ac_sed && continue
3958  cat /dev/null > conftest.in
3959  lt_ac_count=0
3960  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3961  # Check for GNU sed and select it if it is found.
3962  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3963    lt_cv_path_SED=$lt_ac_sed
3964    break
3965  fi
3966  while true; do
3967    cat conftest.in conftest.in >conftest.tmp
3968    mv conftest.tmp conftest.in
3969    cp conftest.in conftest.nl
3970    echo >>conftest.nl
3971    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3972    cmp -s conftest.out conftest.nl || break
3973    # 10000 chars as input seems more than enough
3974    test $lt_ac_count -gt 10 && break
3975    lt_ac_count=`expr $lt_ac_count + 1`
3976    if test $lt_ac_count -gt $lt_ac_max; then
3977      lt_ac_max=$lt_ac_count
3978      lt_cv_path_SED=$lt_ac_sed
3979    fi
3980  done
3981done
3982
3983fi
3984
3985SED=$lt_cv_path_SED
3986
3987{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3988$as_echo "$SED" >&6; }
3989
3990{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3991$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992if test "${ac_cv_path_GREP+set}" = set; then
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -z "$GREP"; then
3996  ac_path_GREP_found=false
3997  # Loop through the user's path and test for each of PROGNAME-LIST
3998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003  for ac_prog in grep ggrep; do
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007# Check for GNU ac_path_GREP and select it if it is found.
4008  # Check for GNU $ac_path_GREP
4009case `"$ac_path_GREP" --version 2>&1` in
4010*GNU*)
4011  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012*)
4013  ac_count=0
4014  $as_echo_n 0123456789 >"conftest.in"
4015  while :
4016  do
4017    cat "conftest.in" "conftest.in" >"conftest.tmp"
4018    mv "conftest.tmp" "conftest.in"
4019    cp "conftest.in" "conftest.nl"
4020    $as_echo 'GREP' >> "conftest.nl"
4021    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023    ac_count=`expr $ac_count + 1`
4024    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025      # Best one so far, save it but keep looking for a better one
4026      ac_cv_path_GREP="$ac_path_GREP"
4027      ac_path_GREP_max=$ac_count
4028    fi
4029    # 10*(2^10) chars as input seems more than enough
4030    test $ac_count -gt 10 && break
4031  done
4032  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033esac
4034
4035      $ac_path_GREP_found && break 3
4036    done
4037  done
4038done
4039IFS=$as_save_IFS
4040  if test -z "$ac_cv_path_GREP"; then
4041    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4042$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4043   { (exit 1); exit 1; }; }
4044  fi
4045else
4046  ac_cv_path_GREP=$GREP
4047fi
4048
4049fi
4050{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051$as_echo "$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4053
4054
4055{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4056$as_echo_n "checking for egrep... " >&6; }
4057if test "${ac_cv_path_EGREP+set}" = set; then
4058  $as_echo_n "(cached) " >&6
4059else
4060  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061   then ac_cv_path_EGREP="$GREP -E"
4062   else
4063     if test -z "$EGREP"; then
4064  ac_path_EGREP_found=false
4065  # Loop through the user's path and test for each of PROGNAME-LIST
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071  for ac_prog in egrep; do
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4074      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4075# Check for GNU ac_path_EGREP and select it if it is found.
4076  # Check for GNU $ac_path_EGREP
4077case `"$ac_path_EGREP" --version 2>&1` in
4078*GNU*)
4079  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4080*)
4081  ac_count=0
4082  $as_echo_n 0123456789 >"conftest.in"
4083  while :
4084  do
4085    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086    mv "conftest.tmp" "conftest.in"
4087    cp "conftest.in" "conftest.nl"
4088    $as_echo 'EGREP' >> "conftest.nl"
4089    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091    ac_count=`expr $ac_count + 1`
4092    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4093      # Best one so far, save it but keep looking for a better one
4094      ac_cv_path_EGREP="$ac_path_EGREP"
4095      ac_path_EGREP_max=$ac_count
4096    fi
4097    # 10*(2^10) chars as input seems more than enough
4098    test $ac_count -gt 10 && break
4099  done
4100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103      $ac_path_EGREP_found && break 3
4104    done
4105  done
4106done
4107IFS=$as_save_IFS
4108  if test -z "$ac_cv_path_EGREP"; then
4109    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111   { (exit 1); exit 1; }; }
4112  fi
4113else
4114  ac_cv_path_EGREP=$EGREP
4115fi
4116
4117   fi
4118fi
4119{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120$as_echo "$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124
4125# Check whether --with-gnu-ld was given.
4126if test "${with_gnu_ld+set}" = set; then
4127  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4128else
4129  with_gnu_ld=no
4130fi
4131
4132ac_prog=ld
4133if test "$GCC" = yes; then
4134  # Check if gcc -print-prog-name=ld gives a path.
4135  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4136$as_echo_n "checking for ld used by $CC... " >&6; }
4137  case $host in
4138  *-*-mingw*)
4139    # gcc leaves a trailing carriage return which upsets mingw
4140    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4141  *)
4142    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4143  esac
4144  case $ac_prog in
4145    # Accept absolute paths.
4146    [\\/]* | ?:[\\/]*)
4147      re_direlt='/[^/][^/]*/\.\./'
4148      # Canonicalize the pathname of ld
4149      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4150      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4151	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4152      done
4153      test -z "$LD" && LD="$ac_prog"
4154      ;;
4155  "")
4156    # If it fails, then pretend we aren't using GCC.
4157    ac_prog=ld
4158    ;;
4159  *)
4160    # If it is relative, then search for the first ld in PATH.
4161    with_gnu_ld=unknown
4162    ;;
4163  esac
4164elif test "$with_gnu_ld" = yes; then
4165  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4166$as_echo_n "checking for GNU ld... " >&6; }
4167else
4168  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4169$as_echo_n "checking for non-GNU ld... " >&6; }
4170fi
4171if test "${lt_cv_path_LD+set}" = set; then
4172  $as_echo_n "(cached) " >&6
4173else
4174  if test -z "$LD"; then
4175  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4176  for ac_dir in $PATH; do
4177    IFS="$lt_save_ifs"
4178    test -z "$ac_dir" && ac_dir=.
4179    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4180      lt_cv_path_LD="$ac_dir/$ac_prog"
4181      # Check to see if the program is GNU ld.  I'd rather use --version,
4182      # but apparently some variants of GNU ld only accept -v.
4183      # Break only if it was the GNU/non-GNU ld that we prefer.
4184      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4185      *GNU* | *'with BFD'*)
4186	test "$with_gnu_ld" != no && break
4187	;;
4188      *)
4189	test "$with_gnu_ld" != yes && break
4190	;;
4191      esac
4192    fi
4193  done
4194  IFS="$lt_save_ifs"
4195else
4196  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4197fi
4198fi
4199
4200LD="$lt_cv_path_LD"
4201if test -n "$LD"; then
4202  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4203$as_echo "$LD" >&6; }
4204else
4205  { $as_echo "$as_me:$LINENO: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4209$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4210   { (exit 1); exit 1; }; }
4211{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4212$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4213if test "${lt_cv_prog_gnu_ld+set}" = set; then
4214  $as_echo_n "(cached) " >&6
4215else
4216  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4217case `$LD -v 2>&1 </dev/null` in
4218*GNU* | *'with BFD'*)
4219  lt_cv_prog_gnu_ld=yes
4220  ;;
4221*)
4222  lt_cv_prog_gnu_ld=no
4223  ;;
4224esac
4225fi
4226{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4227$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4228with_gnu_ld=$lt_cv_prog_gnu_ld
4229
4230
4231{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4232$as_echo_n "checking for $LD option to reload object files... " >&6; }
4233if test "${lt_cv_ld_reload_flag+set}" = set; then
4234  $as_echo_n "(cached) " >&6
4235else
4236  lt_cv_ld_reload_flag='-r'
4237fi
4238{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4239$as_echo "$lt_cv_ld_reload_flag" >&6; }
4240reload_flag=$lt_cv_ld_reload_flag
4241case $reload_flag in
4242"" | " "*) ;;
4243*) reload_flag=" $reload_flag" ;;
4244esac
4245reload_cmds='$LD$reload_flag -o $output$reload_objs'
4246case $host_os in
4247  darwin*)
4248    if test "$GCC" = yes; then
4249      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4250    else
4251      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4252    fi
4253    ;;
4254esac
4255
4256{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4257$as_echo_n "checking for BSD-compatible nm... " >&6; }
4258if test "${lt_cv_path_NM+set}" = set; then
4259  $as_echo_n "(cached) " >&6
4260else
4261  if test -n "$NM"; then
4262  # Let the user override the test.
4263  lt_cv_path_NM="$NM"
4264else
4265  lt_nm_to_check="${ac_tool_prefix}nm"
4266  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4267    lt_nm_to_check="$lt_nm_to_check nm"
4268  fi
4269  for lt_tmp_nm in $lt_nm_to_check; do
4270    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4271    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4272      IFS="$lt_save_ifs"
4273      test -z "$ac_dir" && ac_dir=.
4274      tmp_nm="$ac_dir/$lt_tmp_nm"
4275      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4276	# Check to see if the nm accepts a BSD-compat flag.
4277	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4278	#   nm: unknown option "B" ignored
4279	# Tru64's nm complains that /dev/null is an invalid object file
4280	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4281	*/dev/null* | *'Invalid file or object type'*)
4282	  lt_cv_path_NM="$tmp_nm -B"
4283	  break
4284	  ;;
4285	*)
4286	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4287	  */dev/null*)
4288	    lt_cv_path_NM="$tmp_nm -p"
4289	    break
4290	    ;;
4291	  *)
4292	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4293	    continue # so that we can try to find one that supports BSD flags
4294	    ;;
4295	  esac
4296	  ;;
4297	esac
4298      fi
4299    done
4300    IFS="$lt_save_ifs"
4301  done
4302  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4303fi
4304fi
4305{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4306$as_echo "$lt_cv_path_NM" >&6; }
4307NM="$lt_cv_path_NM"
4308
4309{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4310$as_echo_n "checking whether ln -s works... " >&6; }
4311LN_S=$as_ln_s
4312if test "$LN_S" = "ln -s"; then
4313  { $as_echo "$as_me:$LINENO: result: yes" >&5
4314$as_echo "yes" >&6; }
4315else
4316  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4317$as_echo "no, using $LN_S" >&6; }
4318fi
4319
4320{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4321$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4322if test "${lt_cv_deplibs_check_method+set}" = set; then
4323  $as_echo_n "(cached) " >&6
4324else
4325  lt_cv_file_magic_cmd='$MAGIC_CMD'
4326lt_cv_file_magic_test_file=
4327lt_cv_deplibs_check_method='unknown'
4328# Need to set the preceding variable on all platforms that support
4329# interlibrary dependencies.
4330# 'none' -- dependencies not supported.
4331# `unknown' -- same as none, but documents that we really don't know.
4332# 'pass_all' -- all dependencies passed with no checks.
4333# 'test_compile' -- check by making test program.
4334# 'file_magic [[regex]]' -- check by looking for files in library path
4335# which responds to the $file_magic_cmd with a given extended regex.
4336# If you have `file' or equivalent on your system and you're not sure
4337# whether `pass_all' will *always* work, you probably want this one.
4338
4339case $host_os in
4340aix[4-9]*)
4341  lt_cv_deplibs_check_method=pass_all
4342  ;;
4343
4344beos*)
4345  lt_cv_deplibs_check_method=pass_all
4346  ;;
4347
4348bsdi[45]*)
4349  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4350  lt_cv_file_magic_cmd='/usr/bin/file -L'
4351  lt_cv_file_magic_test_file=/shlib/libc.so
4352  ;;
4353
4354cygwin*)
4355  # func_win32_libid is a shell function defined in ltmain.sh
4356  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4357  lt_cv_file_magic_cmd='func_win32_libid'
4358  ;;
4359
4360mingw* | pw32*)
4361  # Base MSYS/MinGW do not provide the 'file' command needed by
4362  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4363  # unless we find 'file', for example because we are cross-compiling.
4364  if ( file / ) >/dev/null 2>&1; then
4365    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4366    lt_cv_file_magic_cmd='func_win32_libid'
4367  else
4368    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4369    lt_cv_file_magic_cmd='$OBJDUMP -f'
4370  fi
4371  ;;
4372
4373darwin* | rhapsody*)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377freebsd* | dragonfly*)
4378  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379    case $host_cpu in
4380    i*86 )
4381      # Not sure whether the presence of OpenBSD here was a mistake.
4382      # Let's accept both of them until this is cleared up.
4383      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4384      lt_cv_file_magic_cmd=/usr/bin/file
4385      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4386      ;;
4387    esac
4388  else
4389    lt_cv_deplibs_check_method=pass_all
4390  fi
4391  ;;
4392
4393gnu*)
4394  lt_cv_deplibs_check_method=pass_all
4395  ;;
4396
4397hpux10.20* | hpux11*)
4398  lt_cv_file_magic_cmd=/usr/bin/file
4399  case $host_cpu in
4400  ia64*)
4401    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4402    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4403    ;;
4404  hppa*64*)
4405    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]'
4406    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4407    ;;
4408  *)
4409    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4410    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4411    ;;
4412  esac
4413  ;;
4414
4415interix[3-9]*)
4416  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4417  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4418  ;;
4419
4420irix5* | irix6* | nonstopux*)
4421  case $LD in
4422  *-32|*"-32 ") libmagic=32-bit;;
4423  *-n32|*"-n32 ") libmagic=N32;;
4424  *-64|*"-64 ") libmagic=64-bit;;
4425  *) libmagic=never-match;;
4426  esac
4427  lt_cv_deplibs_check_method=pass_all
4428  ;;
4429
4430# This must be Linux ELF.
4431linux* | k*bsd*-gnu)
4432  lt_cv_deplibs_check_method=pass_all
4433  ;;
4434
4435netbsd*)
4436  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4438  else
4439    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4440  fi
4441  ;;
4442
4443newos6*)
4444  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4445  lt_cv_file_magic_cmd=/usr/bin/file
4446  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4447  ;;
4448
4449nto-qnx*)
4450  lt_cv_deplibs_check_method=unknown
4451  ;;
4452
4453openbsd*)
4454  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4455    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4456  else
4457    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4458  fi
4459  ;;
4460
4461osf3* | osf4* | osf5*)
4462  lt_cv_deplibs_check_method=pass_all
4463  ;;
4464
4465rdos*)
4466  lt_cv_deplibs_check_method=pass_all
4467  ;;
4468
4469solaris*)
4470  lt_cv_deplibs_check_method=pass_all
4471  ;;
4472
4473sysv4 | sysv4.3*)
4474  case $host_vendor in
4475  motorola)
4476    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]'
4477    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4478    ;;
4479  ncr)
4480    lt_cv_deplibs_check_method=pass_all
4481    ;;
4482  sequent)
4483    lt_cv_file_magic_cmd='/bin/file'
4484    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4485    ;;
4486  sni)
4487    lt_cv_file_magic_cmd='/bin/file'
4488    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4489    lt_cv_file_magic_test_file=/lib/libc.so
4490    ;;
4491  siemens)
4492    lt_cv_deplibs_check_method=pass_all
4493    ;;
4494  pc)
4495    lt_cv_deplibs_check_method=pass_all
4496    ;;
4497  esac
4498  ;;
4499
4500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4501  lt_cv_deplibs_check_method=pass_all
4502  ;;
4503esac
4504
4505fi
4506{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4507$as_echo "$lt_cv_deplibs_check_method" >&6; }
4508file_magic_cmd=$lt_cv_file_magic_cmd
4509deplibs_check_method=$lt_cv_deplibs_check_method
4510test -z "$deplibs_check_method" && deplibs_check_method=unknown
4511
4512
4513
4514
4515# If no C compiler was specified, use CC.
4516LTCC=${LTCC-"$CC"}
4517
4518# If no C compiler flags were specified, use CFLAGS.
4519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4520
4521# Allow CC to be a program name with arguments.
4522compiler=$CC
4523
4524
4525# Check whether --enable-libtool-lock was given.
4526if test "${enable_libtool_lock+set}" = set; then
4527  enableval=$enable_libtool_lock;
4528fi
4529
4530test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4531
4532# Some flags need to be propagated to the compiler or linker for good
4533# libtool support.
4534case $host in
4535ia64-*-hpux*)
4536  # Find out which ABI we are using.
4537  echo 'int i;' > conftest.$ac_ext
4538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539  (eval $ac_compile) 2>&5
4540  ac_status=$?
4541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; then
4543    case `/usr/bin/file conftest.$ac_objext` in
4544    *ELF-32*)
4545      HPUX_IA64_MODE="32"
4546      ;;
4547    *ELF-64*)
4548      HPUX_IA64_MODE="64"
4549      ;;
4550    esac
4551  fi
4552  rm -rf conftest*
4553  ;;
4554*-*-irix6*)
4555  # Find out which ABI we are using.
4556  echo '#line 4556 "configure"' > conftest.$ac_ext
4557  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558  (eval $ac_compile) 2>&5
4559  ac_status=$?
4560  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; then
4562   if test "$lt_cv_prog_gnu_ld" = yes; then
4563    case `/usr/bin/file conftest.$ac_objext` in
4564    *32-bit*)
4565      LD="${LD-ld} -melf32bsmip"
4566      ;;
4567    *N32*)
4568      LD="${LD-ld} -melf32bmipn32"
4569      ;;
4570    *64-bit*)
4571      LD="${LD-ld} -melf64bmip"
4572      ;;
4573    esac
4574   else
4575    case `/usr/bin/file conftest.$ac_objext` in
4576    *32-bit*)
4577      LD="${LD-ld} -32"
4578      ;;
4579    *N32*)
4580      LD="${LD-ld} -n32"
4581      ;;
4582    *64-bit*)
4583      LD="${LD-ld} -64"
4584      ;;
4585    esac
4586   fi
4587  fi
4588  rm -rf conftest*
4589  ;;
4590
4591x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4592s390*-*linux*|sparc*-*linux*)
4593  # Find out which ABI we are using.
4594  echo 'int i;' > conftest.$ac_ext
4595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596  (eval $ac_compile) 2>&5
4597  ac_status=$?
4598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; then
4600    case `/usr/bin/file conftest.o` in
4601    *32-bit*)
4602      case $host in
4603        x86_64-*kfreebsd*-gnu)
4604          LD="${LD-ld} -m elf_i386_fbsd"
4605          ;;
4606        x86_64-*linux*)
4607          LD="${LD-ld} -m elf_i386"
4608          ;;
4609        ppc64-*linux*|powerpc64-*linux*)
4610          LD="${LD-ld} -m elf32ppclinux"
4611          ;;
4612        s390x-*linux*)
4613          LD="${LD-ld} -m elf_s390"
4614          ;;
4615        sparc64-*linux*)
4616          LD="${LD-ld} -m elf32_sparc"
4617          ;;
4618      esac
4619      ;;
4620    *64-bit*)
4621      libsuff=64
4622      case $host in
4623        x86_64-*kfreebsd*-gnu)
4624          LD="${LD-ld} -m elf_x86_64_fbsd"
4625          ;;
4626        x86_64-*linux*)
4627          LD="${LD-ld} -m elf_x86_64"
4628          ;;
4629        ppc*-*linux*|powerpc*-*linux*)
4630          LD="${LD-ld} -m elf64ppc"
4631          ;;
4632        s390*-*linux*)
4633          LD="${LD-ld} -m elf64_s390"
4634          ;;
4635        sparc*-*linux*)
4636          LD="${LD-ld} -m elf64_sparc"
4637          ;;
4638      esac
4639      ;;
4640    esac
4641  fi
4642  rm -rf conftest*
4643  ;;
4644
4645*-*-sco3.2v5*)
4646  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4647  SAVE_CFLAGS="$CFLAGS"
4648  CFLAGS="$CFLAGS -belf"
4649  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4650$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4651if test "${lt_cv_cc_needs_belf+set}" = set; then
4652  $as_echo_n "(cached) " >&6
4653else
4654  ac_ext=c
4655ac_cpp='$CPP $CPPFLAGS'
4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660     cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h.  */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h.  */
4666
4667int
4668main ()
4669{
4670
4671  ;
4672  return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext conftest$ac_exeext
4676if { (ac_try="$ac_link"
4677case "(($ac_try" in
4678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679  *) ac_try_echo=$ac_try;;
4680esac
4681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682$as_echo "$ac_try_echo") >&5
4683  (eval "$ac_link") 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } && {
4690	 test -z "$ac_c_werror_flag" ||
4691	 test ! -s conftest.err
4692       } && test -s conftest$ac_exeext && {
4693	 test "$cross_compiling" = yes ||
4694	 $as_test_x conftest$ac_exeext
4695       }; then
4696  lt_cv_cc_needs_belf=yes
4697else
4698  $as_echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701	lt_cv_cc_needs_belf=no
4702fi
4703
4704rm -rf conftest.dSYM
4705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4706      conftest$ac_exeext conftest.$ac_ext
4707     ac_ext=c
4708ac_cpp='$CPP $CPPFLAGS'
4709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712
4713fi
4714{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4715$as_echo "$lt_cv_cc_needs_belf" >&6; }
4716  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4717    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4718    CFLAGS="$SAVE_CFLAGS"
4719  fi
4720  ;;
4721sparc*-*solaris*)
4722  # Find out which ABI we are using.
4723  echo 'int i;' > conftest.$ac_ext
4724  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725  (eval $ac_compile) 2>&5
4726  ac_status=$?
4727  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); }; then
4729    case `/usr/bin/file conftest.o` in
4730    *64-bit*)
4731      case $lt_cv_prog_gnu_ld in
4732      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4733      *)
4734        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4735	  LD="${LD-ld} -64"
4736	fi
4737	;;
4738      esac
4739      ;;
4740    esac
4741  fi
4742  rm -rf conftest*
4743  ;;
4744
4745
4746esac
4747
4748need_locks="$enable_libtool_lock"
4749
4750
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4757$as_echo_n "checking how to run the C preprocessor... " >&6; }
4758# On Suns, sometimes $CPP names a directory.
4759if test -n "$CPP" && test -d "$CPP"; then
4760  CPP=
4761fi
4762if test -z "$CPP"; then
4763  if test "${ac_cv_prog_CPP+set}" = set; then
4764  $as_echo_n "(cached) " >&6
4765else
4766      # Double quotes because CPP needs to be expanded
4767    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4768    do
4769      ac_preproc_ok=false
4770for ac_c_preproc_warn_flag in '' yes
4771do
4772  # Use a header file that comes with gcc, so configuring glibc
4773  # with a fresh cross-compiler works.
4774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775  # <limits.h> exists even on freestanding compilers.
4776  # On the NeXT, cc -E runs the code through the compiler's parser,
4777  # not just through cpp. "Syntax error" is here to catch this case.
4778  cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784#ifdef __STDC__
4785# include <limits.h>
4786#else
4787# include <assert.h>
4788#endif
4789		     Syntax error
4790_ACEOF
4791if { (ac_try="$ac_cpp conftest.$ac_ext"
4792case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797$as_echo "$ac_try_echo") >&5
4798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799  ac_status=$?
4800  grep -v '^ *+' conftest.er1 >conftest.err
4801  rm -f conftest.er1
4802  cat conftest.err >&5
4803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } >/dev/null && {
4805	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806	 test ! -s conftest.err
4807       }; then
4808  :
4809else
4810  $as_echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813  # Broken: fails on valid input.
4814continue
4815fi
4816
4817rm -f conftest.err conftest.$ac_ext
4818
4819  # OK, works on sane cases.  Now check whether nonexistent headers
4820  # can be detected and how.
4821  cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h.  */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h.  */
4827#include <ac_nonexistent.h>
4828_ACEOF
4829if { (ac_try="$ac_cpp conftest.$ac_ext"
4830case "(($ac_try" in
4831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832  *) ac_try_echo=$ac_try;;
4833esac
4834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835$as_echo "$ac_try_echo") >&5
4836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837  ac_status=$?
4838  grep -v '^ *+' conftest.er1 >conftest.err
4839  rm -f conftest.er1
4840  cat conftest.err >&5
4841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); } >/dev/null && {
4843	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4844	 test ! -s conftest.err
4845       }; then
4846  # Broken: success on invalid input.
4847continue
4848else
4849  $as_echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852  # Passes both tests.
4853ac_preproc_ok=:
4854break
4855fi
4856
4857rm -f conftest.err conftest.$ac_ext
4858
4859done
4860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861rm -f conftest.err conftest.$ac_ext
4862if $ac_preproc_ok; then
4863  break
4864fi
4865
4866    done
4867    ac_cv_prog_CPP=$CPP
4868
4869fi
4870  CPP=$ac_cv_prog_CPP
4871else
4872  ac_cv_prog_CPP=$CPP
4873fi
4874{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4875$as_echo "$CPP" >&6; }
4876ac_preproc_ok=false
4877for ac_c_preproc_warn_flag in '' yes
4878do
4879  # Use a header file that comes with gcc, so configuring glibc
4880  # with a fresh cross-compiler works.
4881  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4882  # <limits.h> exists even on freestanding compilers.
4883  # On the NeXT, cc -E runs the code through the compiler's parser,
4884  # not just through cpp. "Syntax error" is here to catch this case.
4885  cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891#ifdef __STDC__
4892# include <limits.h>
4893#else
4894# include <assert.h>
4895#endif
4896		     Syntax error
4897_ACEOF
4898if { (ac_try="$ac_cpp conftest.$ac_ext"
4899case "(($ac_try" in
4900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901  *) ac_try_echo=$ac_try;;
4902esac
4903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904$as_echo "$ac_try_echo") >&5
4905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906  ac_status=$?
4907  grep -v '^ *+' conftest.er1 >conftest.err
4908  rm -f conftest.er1
4909  cat conftest.err >&5
4910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } >/dev/null && {
4912	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913	 test ! -s conftest.err
4914       }; then
4915  :
4916else
4917  $as_echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920  # Broken: fails on valid input.
4921continue
4922fi
4923
4924rm -f conftest.err conftest.$ac_ext
4925
4926  # OK, works on sane cases.  Now check whether nonexistent headers
4927  # can be detected and how.
4928  cat >conftest.$ac_ext <<_ACEOF
4929/* confdefs.h.  */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h.  */
4934#include <ac_nonexistent.h>
4935_ACEOF
4936if { (ac_try="$ac_cpp conftest.$ac_ext"
4937case "(($ac_try" in
4938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939  *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4942$as_echo "$ac_try_echo") >&5
4943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944  ac_status=$?
4945  grep -v '^ *+' conftest.er1 >conftest.err
4946  rm -f conftest.er1
4947  cat conftest.err >&5
4948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); } >/dev/null && {
4950	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4951	 test ! -s conftest.err
4952       }; then
4953  # Broken: success on invalid input.
4954continue
4955else
4956  $as_echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959  # Passes both tests.
4960ac_preproc_ok=:
4961break
4962fi
4963
4964rm -f conftest.err conftest.$ac_ext
4965
4966done
4967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968rm -f conftest.err conftest.$ac_ext
4969if $ac_preproc_ok; then
4970  :
4971else
4972  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4975See \`config.log' for more details." >&5
4976$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4977See \`config.log' for more details." >&2;}
4978   { (exit 1); exit 1; }; }; }
4979fi
4980
4981ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986
4987
4988{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4989$as_echo_n "checking for ANSI C header files... " >&6; }
4990if test "${ac_cv_header_stdc+set}" = set; then
4991  $as_echo_n "(cached) " >&6
4992else
4993  cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h.  */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h.  */
4999#include <stdlib.h>
5000#include <stdarg.h>
5001#include <string.h>
5002#include <float.h>
5003
5004int
5005main ()
5006{
5007
5008  ;
5009  return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
5013if { (ac_try="$ac_compile"
5014case "(($ac_try" in
5015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016  *) ac_try_echo=$ac_try;;
5017esac
5018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5019$as_echo "$ac_try_echo") >&5
5020  (eval "$ac_compile") 2>conftest.er1
5021  ac_status=$?
5022  grep -v '^ *+' conftest.er1 >conftest.err
5023  rm -f conftest.er1
5024  cat conftest.err >&5
5025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); } && {
5027	 test -z "$ac_c_werror_flag" ||
5028	 test ! -s conftest.err
5029       } && test -s conftest.$ac_objext; then
5030  ac_cv_header_stdc=yes
5031else
5032  $as_echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035	ac_cv_header_stdc=no
5036fi
5037
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039
5040if test $ac_cv_header_stdc = yes; then
5041  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5042  cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h.  */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h.  */
5048#include <string.h>
5049
5050_ACEOF
5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052  $EGREP "memchr" >/dev/null 2>&1; then
5053  :
5054else
5055  ac_cv_header_stdc=no
5056fi
5057rm -f conftest*
5058
5059fi
5060
5061if test $ac_cv_header_stdc = yes; then
5062  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5063  cat >conftest.$ac_ext <<_ACEOF
5064/* confdefs.h.  */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h.  */
5069#include <stdlib.h>
5070
5071_ACEOF
5072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5073  $EGREP "free" >/dev/null 2>&1; then
5074  :
5075else
5076  ac_cv_header_stdc=no
5077fi
5078rm -f conftest*
5079
5080fi
5081
5082if test $ac_cv_header_stdc = yes; then
5083  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5084  if test "$cross_compiling" = yes; then
5085  :
5086else
5087  cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093#include <ctype.h>
5094#include <stdlib.h>
5095#if ((' ' & 0x0FF) == 0x020)
5096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5098#else
5099# define ISLOWER(c) \
5100		   (('a' <= (c) && (c) <= 'i') \
5101		     || ('j' <= (c) && (c) <= 'r') \
5102		     || ('s' <= (c) && (c) <= 'z'))
5103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5104#endif
5105
5106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5107int
5108main ()
5109{
5110  int i;
5111  for (i = 0; i < 256; i++)
5112    if (XOR (islower (i), ISLOWER (i))
5113	|| toupper (i) != TOUPPER (i))
5114      return 2;
5115  return 0;
5116}
5117_ACEOF
5118rm -f conftest$ac_exeext
5119if { (ac_try="$ac_link"
5120case "(($ac_try" in
5121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122  *) ac_try_echo=$ac_try;;
5123esac
5124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5125$as_echo "$ac_try_echo") >&5
5126  (eval "$ac_link") 2>&5
5127  ac_status=$?
5128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5130  { (case "(($ac_try" in
5131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132  *) ac_try_echo=$ac_try;;
5133esac
5134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5135$as_echo "$ac_try_echo") >&5
5136  (eval "$ac_try") 2>&5
5137  ac_status=$?
5138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); }; }; then
5140  :
5141else
5142  $as_echo "$as_me: program exited with status $ac_status" >&5
5143$as_echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146( exit $ac_status )
5147ac_cv_header_stdc=no
5148fi
5149rm -rf conftest.dSYM
5150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5151fi
5152
5153
5154fi
5155fi
5156{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5157$as_echo "$ac_cv_header_stdc" >&6; }
5158if test $ac_cv_header_stdc = yes; then
5159
5160cat >>confdefs.h <<\_ACEOF
5161#define STDC_HEADERS 1
5162_ACEOF
5163
5164fi
5165
5166# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5177		  inttypes.h stdint.h unistd.h
5178do
5179as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5180{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5181$as_echo_n "checking for $ac_header... " >&6; }
5182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5183  $as_echo_n "(cached) " >&6
5184else
5185  cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h.  */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h.  */
5191$ac_includes_default
5192
5193#include <$ac_header>
5194_ACEOF
5195rm -f conftest.$ac_objext
5196if { (ac_try="$ac_compile"
5197case "(($ac_try" in
5198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199  *) ac_try_echo=$ac_try;;
5200esac
5201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5202$as_echo "$ac_try_echo") >&5
5203  (eval "$ac_compile") 2>conftest.er1
5204  ac_status=$?
5205  grep -v '^ *+' conftest.er1 >conftest.err
5206  rm -f conftest.er1
5207  cat conftest.err >&5
5208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); } && {
5210	 test -z "$ac_c_werror_flag" ||
5211	 test ! -s conftest.err
5212       } && test -s conftest.$ac_objext; then
5213  eval "$as_ac_Header=yes"
5214else
5215  $as_echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
5218	eval "$as_ac_Header=no"
5219fi
5220
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222fi
5223ac_res=`eval 'as_val=${'$as_ac_Header'}
5224		 $as_echo "$as_val"'`
5225	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5226$as_echo "$ac_res" >&6; }
5227as_val=`eval 'as_val=${'$as_ac_Header'}
5228		 $as_echo "$as_val"'`
5229   if test "x$as_val" = x""yes; then
5230  cat >>confdefs.h <<_ACEOF
5231#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232_ACEOF
5233
5234fi
5235
5236done
5237
5238
5239
5240for ac_header in dlfcn.h
5241do
5242as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5245$as_echo_n "checking for $ac_header... " >&6; }
5246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247  $as_echo_n "(cached) " >&6
5248fi
5249ac_res=`eval 'as_val=${'$as_ac_Header'}
5250		 $as_echo "$as_val"'`
5251	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5252$as_echo "$ac_res" >&6; }
5253else
5254  # Is the header compilable?
5255{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5256$as_echo_n "checking $ac_header usability... " >&6; }
5257cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263$ac_includes_default
5264#include <$ac_header>
5265_ACEOF
5266rm -f conftest.$ac_objext
5267if { (ac_try="$ac_compile"
5268case "(($ac_try" in
5269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270  *) ac_try_echo=$ac_try;;
5271esac
5272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273$as_echo "$ac_try_echo") >&5
5274  (eval "$ac_compile") 2>conftest.er1
5275  ac_status=$?
5276  grep -v '^ *+' conftest.er1 >conftest.err
5277  rm -f conftest.er1
5278  cat conftest.err >&5
5279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } && {
5281	 test -z "$ac_c_werror_flag" ||
5282	 test ! -s conftest.err
5283       } && test -s conftest.$ac_objext; then
5284  ac_header_compiler=yes
5285else
5286  $as_echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
5289	ac_header_compiler=no
5290fi
5291
5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5294$as_echo "$ac_header_compiler" >&6; }
5295
5296# Is the header present?
5297{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5298$as_echo_n "checking $ac_header presence... " >&6; }
5299cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h.  */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h.  */
5305#include <$ac_header>
5306_ACEOF
5307if { (ac_try="$ac_cpp conftest.$ac_ext"
5308case "(($ac_try" in
5309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310  *) ac_try_echo=$ac_try;;
5311esac
5312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5313$as_echo "$ac_try_echo") >&5
5314  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315  ac_status=$?
5316  grep -v '^ *+' conftest.er1 >conftest.err
5317  rm -f conftest.er1
5318  cat conftest.err >&5
5319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); } >/dev/null && {
5321	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5322	 test ! -s conftest.err
5323       }; then
5324  ac_header_preproc=yes
5325else
5326  $as_echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
5329  ac_header_preproc=no
5330fi
5331
5332rm -f conftest.err conftest.$ac_ext
5333{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5334$as_echo "$ac_header_preproc" >&6; }
5335
5336# So?  What about this header?
5337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5338  yes:no: )
5339    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5340$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5341    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5342$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5343    ac_header_preproc=yes
5344    ;;
5345  no:yes:* )
5346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5347$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5349$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5351$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5352    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5353$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5354    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5355$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5356    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5357$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5358
5359    ;;
5360esac
5361{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5362$as_echo_n "checking for $ac_header... " >&6; }
5363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5364  $as_echo_n "(cached) " >&6
5365else
5366  eval "$as_ac_Header=\$ac_header_preproc"
5367fi
5368ac_res=`eval 'as_val=${'$as_ac_Header'}
5369		 $as_echo "$as_val"'`
5370	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5371$as_echo "$ac_res" >&6; }
5372
5373fi
5374as_val=`eval 'as_val=${'$as_ac_Header'}
5375		 $as_echo "$as_val"'`
5376   if test "x$as_val" = x""yes; then
5377  cat >>confdefs.h <<_ACEOF
5378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379_ACEOF
5380
5381fi
5382
5383done
5384
5385ac_ext=cpp
5386ac_cpp='$CXXCPP $CPPFLAGS'
5387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390if test -z "$CXX"; then
5391  if test -n "$CCC"; then
5392    CXX=$CCC
5393  else
5394    if test -n "$ac_tool_prefix"; then
5395  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5396  do
5397    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if test "${ac_cv_prog_CXX+set}" = set; then
5402  $as_echo_n "(cached) " >&6
5403else
5404  if test -n "$CXX"; then
5405  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410  IFS=$as_save_IFS
5411  test -z "$as_dir" && as_dir=.
5412  for ac_exec_ext in '' $ac_executable_extensions; do
5413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5415    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416    break 2
5417  fi
5418done
5419done
5420IFS=$as_save_IFS
5421
5422fi
5423fi
5424CXX=$ac_cv_prog_CXX
5425if test -n "$CXX"; then
5426  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5427$as_echo "$CXX" >&6; }
5428else
5429  { $as_echo "$as_me:$LINENO: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434    test -n "$CXX" && break
5435  done
5436fi
5437if test -z "$CXX"; then
5438  ac_ct_CXX=$CXX
5439  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5440do
5441  # Extract the first word of "$ac_prog", so it can be a program name with args.
5442set dummy $ac_prog; ac_word=$2
5443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5446  $as_echo_n "(cached) " >&6
5447else
5448  if test -n "$ac_ct_CXX"; then
5449  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454  IFS=$as_save_IFS
5455  test -z "$as_dir" && as_dir=.
5456  for ac_exec_ext in '' $ac_executable_extensions; do
5457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458    ac_cv_prog_ac_ct_CXX="$ac_prog"
5459    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460    break 2
5461  fi
5462done
5463done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5469if test -n "$ac_ct_CXX"; then
5470  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5471$as_echo "$ac_ct_CXX" >&6; }
5472else
5473  { $as_echo "$as_me:$LINENO: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478  test -n "$ac_ct_CXX" && break
5479done
5480
5481  if test "x$ac_ct_CXX" = x; then
5482    CXX="g++"
5483  else
5484    case $cross_compiling:$ac_tool_warned in
5485yes:)
5486{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488ac_tool_warned=yes ;;
5489esac
5490    CXX=$ac_ct_CXX
5491  fi
5492fi
5493
5494  fi
5495fi
5496# Provide some information about the compiler.
5497$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5498set X $ac_compile
5499ac_compiler=$2
5500{ (ac_try="$ac_compiler --version >&5"
5501case "(($ac_try" in
5502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503  *) ac_try_echo=$ac_try;;
5504esac
5505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5506$as_echo "$ac_try_echo") >&5
5507  (eval "$ac_compiler --version >&5") 2>&5
5508  ac_status=$?
5509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); }
5511{ (ac_try="$ac_compiler -v >&5"
5512case "(($ac_try" in
5513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514  *) ac_try_echo=$ac_try;;
5515esac
5516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5517$as_echo "$ac_try_echo") >&5
5518  (eval "$ac_compiler -v >&5") 2>&5
5519  ac_status=$?
5520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); }
5522{ (ac_try="$ac_compiler -V >&5"
5523case "(($ac_try" in
5524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525  *) ac_try_echo=$ac_try;;
5526esac
5527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5528$as_echo "$ac_try_echo") >&5
5529  (eval "$ac_compiler -V >&5") 2>&5
5530  ac_status=$?
5531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); }
5533
5534{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5535$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5536if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5537  $as_echo_n "(cached) " >&6
5538else
5539  cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h.  */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h.  */
5545
5546int
5547main ()
5548{
5549#ifndef __GNUC__
5550       choke me
5551#endif
5552
5553  ;
5554  return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (ac_try="$ac_compile"
5559case "(($ac_try" in
5560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561  *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564$as_echo "$ac_try_echo") >&5
5565  (eval "$ac_compile") 2>conftest.er1
5566  ac_status=$?
5567  grep -v '^ *+' conftest.er1 >conftest.err
5568  rm -f conftest.er1
5569  cat conftest.err >&5
5570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); } && {
5572	 test -z "$ac_cxx_werror_flag" ||
5573	 test ! -s conftest.err
5574       } && test -s conftest.$ac_objext; then
5575  ac_compiler_gnu=yes
5576else
5577  $as_echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580	ac_compiler_gnu=no
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5585
5586fi
5587{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5588$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5589if test $ac_compiler_gnu = yes; then
5590  GXX=yes
5591else
5592  GXX=
5593fi
5594ac_test_CXXFLAGS=${CXXFLAGS+set}
5595ac_save_CXXFLAGS=$CXXFLAGS
5596{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5597$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5598if test "${ac_cv_prog_cxx_g+set}" = set; then
5599  $as_echo_n "(cached) " >&6
5600else
5601  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5602   ac_cxx_werror_flag=yes
5603   ac_cv_prog_cxx_g=no
5604   CXXFLAGS="-g"
5605   cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
5628  (eval "$ac_compile") 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } && {
5635	 test -z "$ac_cxx_werror_flag" ||
5636	 test ! -s conftest.err
5637       } && test -s conftest.$ac_objext; then
5638  ac_cv_prog_cxx_g=yes
5639else
5640  $as_echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643	CXXFLAGS=""
5644      cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h.  */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h.  */
5650
5651int
5652main ()
5653{
5654
5655  ;
5656  return 0;
5657}
5658_ACEOF
5659rm -f conftest.$ac_objext
5660if { (ac_try="$ac_compile"
5661case "(($ac_try" in
5662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663  *) ac_try_echo=$ac_try;;
5664esac
5665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5666$as_echo "$ac_try_echo") >&5
5667  (eval "$ac_compile") 2>conftest.er1
5668  ac_status=$?
5669  grep -v '^ *+' conftest.er1 >conftest.err
5670  rm -f conftest.er1
5671  cat conftest.err >&5
5672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); } && {
5674	 test -z "$ac_cxx_werror_flag" ||
5675	 test ! -s conftest.err
5676       } && test -s conftest.$ac_objext; then
5677  :
5678else
5679  $as_echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5683	 CXXFLAGS="-g"
5684	 cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h.  */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h.  */
5690
5691int
5692main ()
5693{
5694
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (ac_try="$ac_compile"
5701case "(($ac_try" in
5702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703  *) ac_try_echo=$ac_try;;
5704esac
5705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706$as_echo "$ac_try_echo") >&5
5707  (eval "$ac_compile") 2>conftest.er1
5708  ac_status=$?
5709  grep -v '^ *+' conftest.er1 >conftest.err
5710  rm -f conftest.er1
5711  cat conftest.err >&5
5712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); } && {
5714	 test -z "$ac_cxx_werror_flag" ||
5715	 test ! -s conftest.err
5716       } && test -s conftest.$ac_objext; then
5717  ac_cv_prog_cxx_g=yes
5718else
5719  $as_echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722
5723fi
5724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726fi
5727
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5733fi
5734{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5735$as_echo "$ac_cv_prog_cxx_g" >&6; }
5736if test "$ac_test_CXXFLAGS" = set; then
5737  CXXFLAGS=$ac_save_CXXFLAGS
5738elif test $ac_cv_prog_cxx_g = yes; then
5739  if test "$GXX" = yes; then
5740    CXXFLAGS="-g -O2"
5741  else
5742    CXXFLAGS="-g"
5743  fi
5744else
5745  if test "$GXX" = yes; then
5746    CXXFLAGS="-O2"
5747  else
5748    CXXFLAGS=
5749  fi
5750fi
5751ac_ext=cpp
5752ac_cpp='$CXXCPP $CPPFLAGS'
5753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
5757depcc="$CXX"  am_compiler_list=
5758
5759{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5760$as_echo_n "checking dependency style of $depcc... " >&6; }
5761if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5762  $as_echo_n "(cached) " >&6
5763else
5764  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5765  # We make a subdir and do the tests there.  Otherwise we can end up
5766  # making bogus files that we don't know about and never remove.  For
5767  # instance it was reported that on HP-UX the gcc test will end up
5768  # making a dummy file named `D' -- because `-MD' means `put the output
5769  # in D'.
5770  mkdir conftest.dir
5771  # Copy depcomp to subdir because otherwise we won't find it if we're
5772  # using a relative directory.
5773  cp "$am_depcomp" conftest.dir
5774  cd conftest.dir
5775  # We will build objects and dependencies in a subdirectory because
5776  # it helps to detect inapplicable dependency modes.  For instance
5777  # both Tru64's cc and ICC support -MD to output dependencies as a
5778  # side effect of compilation, but ICC will put the dependencies in
5779  # the current directory while Tru64 will put them in the object
5780  # directory.
5781  mkdir sub
5782
5783  am_cv_CXX_dependencies_compiler_type=none
5784  if test "$am_compiler_list" = ""; then
5785     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5786  fi
5787  am__universal=false
5788  case " $depcc " in #(
5789     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5790     esac
5791
5792  for depmode in $am_compiler_list; do
5793    # Setup a source with many dependencies, because some compilers
5794    # like to wrap large dependency lists on column 80 (with \), and
5795    # we should not choose a depcomp mode which is confused by this.
5796    #
5797    # We need to recreate these files for each test, as the compiler may
5798    # overwrite some of them when testing with obscure command lines.
5799    # This happens at least with the AIX C compiler.
5800    : > sub/conftest.c
5801    for i in 1 2 3 4 5 6; do
5802      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5803      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5804      # Solaris 8's {/usr,}/bin/sh.
5805      touch sub/conftst$i.h
5806    done
5807    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5808
5809    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5810    # mode.  It turns out that the SunPro C++ compiler does not properly
5811    # handle `-M -o', and we need to detect this.  Also, some Intel
5812    # versions had trouble with output in subdirs
5813    am__obj=sub/conftest.${OBJEXT-o}
5814    am__minus_obj="-o $am__obj"
5815    case $depmode in
5816    gcc)
5817      # This depmode causes a compiler race in universal mode.
5818      test "$am__universal" = false || continue
5819      ;;
5820    nosideeffect)
5821      # after this tag, mechanisms are not by side-effect, so they'll
5822      # only be used when explicitly requested
5823      if test "x$enable_dependency_tracking" = xyes; then
5824	continue
5825      else
5826	break
5827      fi
5828      ;;
5829    msvisualcpp | msvcmsys)
5830      # This compiler won't grok `-c -o', but also, the minuso test has
5831      # not run yet.  These depmodes are late enough in the game, and
5832      # so weak that their functioning should not be impacted.
5833      am__obj=conftest.${OBJEXT-o}
5834      am__minus_obj=
5835      ;;
5836    none) break ;;
5837    esac
5838    if depmode=$depmode \
5839       source=sub/conftest.c object=$am__obj \
5840       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5841       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5842         >/dev/null 2>conftest.err &&
5843       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5844       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5845       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5846       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5847      # icc doesn't choke on unknown options, it will just issue warnings
5848      # or remarks (even with -Werror).  So we grep stderr for any message
5849      # that says an option was ignored or not supported.
5850      # When given -MP, icc 7.0 and 7.1 complain thusly:
5851      #   icc: Command line warning: ignoring option '-M'; no argument required
5852      # The diagnosis changed in icc 8.0:
5853      #   icc: Command line remark: option '-MP' not supported
5854      if (grep 'ignoring option' conftest.err ||
5855          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5856        am_cv_CXX_dependencies_compiler_type=$depmode
5857        break
5858      fi
5859    fi
5860  done
5861
5862  cd ..
5863  rm -rf conftest.dir
5864else
5865  am_cv_CXX_dependencies_compiler_type=none
5866fi
5867
5868fi
5869{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5870$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5871CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5872
5873 if
5874  test "x$enable_dependency_tracking" != xno \
5875  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5876  am__fastdepCXX_TRUE=
5877  am__fastdepCXX_FALSE='#'
5878else
5879  am__fastdepCXX_TRUE='#'
5880  am__fastdepCXX_FALSE=
5881fi
5882
5883
5884
5885
5886if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5887    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5888    (test "X$CXX" != "Xg++"))) ; then
5889  ac_ext=cpp
5890ac_cpp='$CXXCPP $CPPFLAGS'
5891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5895$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5896if test -z "$CXXCPP"; then
5897  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5898  $as_echo_n "(cached) " >&6
5899else
5900      # Double quotes because CXXCPP needs to be expanded
5901    for CXXCPP in "$CXX -E" "/lib/cpp"
5902    do
5903      ac_preproc_ok=false
5904for ac_cxx_preproc_warn_flag in '' yes
5905do
5906  # Use a header file that comes with gcc, so configuring glibc
5907  # with a fresh cross-compiler works.
5908  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909  # <limits.h> exists even on freestanding compilers.
5910  # On the NeXT, cc -E runs the code through the compiler's parser,
5911  # not just through cpp. "Syntax error" is here to catch this case.
5912  cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918#ifdef __STDC__
5919# include <limits.h>
5920#else
5921# include <assert.h>
5922#endif
5923		     Syntax error
5924_ACEOF
5925if { (ac_try="$ac_cpp conftest.$ac_ext"
5926case "(($ac_try" in
5927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928  *) ac_try_echo=$ac_try;;
5929esac
5930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5931$as_echo "$ac_try_echo") >&5
5932  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933  ac_status=$?
5934  grep -v '^ *+' conftest.er1 >conftest.err
5935  rm -f conftest.er1
5936  cat conftest.err >&5
5937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } >/dev/null && {
5939	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5940	 test ! -s conftest.err
5941       }; then
5942  :
5943else
5944  $as_echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947  # Broken: fails on valid input.
5948continue
5949fi
5950
5951rm -f conftest.err conftest.$ac_ext
5952
5953  # OK, works on sane cases.  Now check whether nonexistent headers
5954  # can be detected and how.
5955  cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h.  */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h.  */
5961#include <ac_nonexistent.h>
5962_ACEOF
5963if { (ac_try="$ac_cpp conftest.$ac_ext"
5964case "(($ac_try" in
5965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966  *) ac_try_echo=$ac_try;;
5967esac
5968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969$as_echo "$ac_try_echo") >&5
5970  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971  ac_status=$?
5972  grep -v '^ *+' conftest.er1 >conftest.err
5973  rm -f conftest.er1
5974  cat conftest.err >&5
5975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } >/dev/null && {
5977	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978	 test ! -s conftest.err
5979       }; then
5980  # Broken: success on invalid input.
5981continue
5982else
5983  $as_echo "$as_me: failed program was:" >&5
5984sed 's/^/| /' conftest.$ac_ext >&5
5985
5986  # Passes both tests.
5987ac_preproc_ok=:
5988break
5989fi
5990
5991rm -f conftest.err conftest.$ac_ext
5992
5993done
5994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995rm -f conftest.err conftest.$ac_ext
5996if $ac_preproc_ok; then
5997  break
5998fi
5999
6000    done
6001    ac_cv_prog_CXXCPP=$CXXCPP
6002
6003fi
6004  CXXCPP=$ac_cv_prog_CXXCPP
6005else
6006  ac_cv_prog_CXXCPP=$CXXCPP
6007fi
6008{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6009$as_echo "$CXXCPP" >&6; }
6010ac_preproc_ok=false
6011for ac_cxx_preproc_warn_flag in '' yes
6012do
6013  # Use a header file that comes with gcc, so configuring glibc
6014  # with a fresh cross-compiler works.
6015  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016  # <limits.h> exists even on freestanding compilers.
6017  # On the NeXT, cc -E runs the code through the compiler's parser,
6018  # not just through cpp. "Syntax error" is here to catch this case.
6019  cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025#ifdef __STDC__
6026# include <limits.h>
6027#else
6028# include <assert.h>
6029#endif
6030		     Syntax error
6031_ACEOF
6032if { (ac_try="$ac_cpp conftest.$ac_ext"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6038$as_echo "$ac_try_echo") >&5
6039  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } >/dev/null && {
6046	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6047	 test ! -s conftest.err
6048       }; then
6049  :
6050else
6051  $as_echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054  # Broken: fails on valid input.
6055continue
6056fi
6057
6058rm -f conftest.err conftest.$ac_ext
6059
6060  # OK, works on sane cases.  Now check whether nonexistent headers
6061  # can be detected and how.
6062  cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h.  */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h.  */
6068#include <ac_nonexistent.h>
6069_ACEOF
6070if { (ac_try="$ac_cpp conftest.$ac_ext"
6071case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6076$as_echo "$ac_try_echo") >&5
6077  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078  ac_status=$?
6079  grep -v '^ *+' conftest.er1 >conftest.err
6080  rm -f conftest.er1
6081  cat conftest.err >&5
6082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083  (exit $ac_status); } >/dev/null && {
6084	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6085	 test ! -s conftest.err
6086       }; then
6087  # Broken: success on invalid input.
6088continue
6089else
6090  $as_echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093  # Passes both tests.
6094ac_preproc_ok=:
6095break
6096fi
6097
6098rm -f conftest.err conftest.$ac_ext
6099
6100done
6101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6102rm -f conftest.err conftest.$ac_ext
6103if $ac_preproc_ok; then
6104  :
6105else
6106  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6109See \`config.log' for more details." >&5
6110$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6111See \`config.log' for more details." >&2;}
6112   { (exit 1); exit 1; }; }; }
6113fi
6114
6115ac_ext=cpp
6116ac_cpp='$CXXCPP $CPPFLAGS'
6117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120
6121fi
6122
6123
6124ac_ext=f
6125ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6126ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6128if test -n "$ac_tool_prefix"; then
6129  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
6130  do
6131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6133{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6134$as_echo_n "checking for $ac_word... " >&6; }
6135if test "${ac_cv_prog_F77+set}" = set; then
6136  $as_echo_n "(cached) " >&6
6137else
6138  if test -n "$F77"; then
6139  ac_cv_prog_F77="$F77" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146  for ac_exec_ext in '' $ac_executable_extensions; do
6147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6149    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158F77=$ac_cv_prog_F77
6159if test -n "$F77"; then
6160  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6161$as_echo "$F77" >&6; }
6162else
6163  { $as_echo "$as_me:$LINENO: result: no" >&5
6164$as_echo "no" >&6; }
6165fi
6166
6167
6168    test -n "$F77" && break
6169  done
6170fi
6171if test -z "$F77"; then
6172  ac_ct_F77=$F77
6173  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
6174do
6175  # Extract the first word of "$ac_prog", so it can be a program name with args.
6176set dummy $ac_prog; ac_word=$2
6177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6178$as_echo_n "checking for $ac_word... " >&6; }
6179if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6180  $as_echo_n "(cached) " >&6
6181else
6182  if test -n "$ac_ct_F77"; then
6183  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188  IFS=$as_save_IFS
6189  test -z "$as_dir" && as_dir=.
6190  for ac_exec_ext in '' $ac_executable_extensions; do
6191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192    ac_cv_prog_ac_ct_F77="$ac_prog"
6193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194    break 2
6195  fi
6196done
6197done
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202ac_ct_F77=$ac_cv_prog_ac_ct_F77
6203if test -n "$ac_ct_F77"; then
6204  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6205$as_echo "$ac_ct_F77" >&6; }
6206else
6207  { $as_echo "$as_me:$LINENO: result: no" >&5
6208$as_echo "no" >&6; }
6209fi
6210
6211
6212  test -n "$ac_ct_F77" && break
6213done
6214
6215  if test "x$ac_ct_F77" = x; then
6216    F77=""
6217  else
6218    case $cross_compiling:$ac_tool_warned in
6219yes:)
6220{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222ac_tool_warned=yes ;;
6223esac
6224    F77=$ac_ct_F77
6225  fi
6226fi
6227
6228
6229# Provide some information about the compiler.
6230$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6231set X $ac_compile
6232ac_compiler=$2
6233{ (ac_try="$ac_compiler --version >&5"
6234case "(($ac_try" in
6235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236  *) ac_try_echo=$ac_try;;
6237esac
6238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239$as_echo "$ac_try_echo") >&5
6240  (eval "$ac_compiler --version >&5") 2>&5
6241  ac_status=$?
6242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }
6244{ (ac_try="$ac_compiler -v >&5"
6245case "(($ac_try" in
6246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247  *) ac_try_echo=$ac_try;;
6248esac
6249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6250$as_echo "$ac_try_echo") >&5
6251  (eval "$ac_compiler -v >&5") 2>&5
6252  ac_status=$?
6253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); }
6255{ (ac_try="$ac_compiler -V >&5"
6256case "(($ac_try" in
6257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258  *) ac_try_echo=$ac_try;;
6259esac
6260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261$as_echo "$ac_try_echo") >&5
6262  (eval "$ac_compiler -V >&5") 2>&5
6263  ac_status=$?
6264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }
6266rm -f a.out
6267
6268# If we don't use `.F' as extension, the preprocessor is not run on the
6269# input file.  (Note that this only needs to work for GNU compilers.)
6270ac_save_ext=$ac_ext
6271ac_ext=F
6272{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6273$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6274if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6275  $as_echo_n "(cached) " >&6
6276else
6277  cat >conftest.$ac_ext <<_ACEOF
6278      program main
6279#ifndef __GNUC__
6280       choke me
6281#endif
6282
6283      end
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289  *) ac_try_echo=$ac_try;;
6290esac
6291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292$as_echo "$ac_try_echo") >&5
6293  (eval "$ac_compile") 2>conftest.er1
6294  ac_status=$?
6295  grep -v '^ *+' conftest.er1 >conftest.err
6296  rm -f conftest.er1
6297  cat conftest.err >&5
6298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); } && {
6300	 test -z "$ac_f77_werror_flag" ||
6301	 test ! -s conftest.err
6302       } && test -s conftest.$ac_objext; then
6303  ac_compiler_gnu=yes
6304else
6305  $as_echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308	ac_compiler_gnu=no
6309fi
6310
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6313
6314fi
6315{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6316$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6317ac_ext=$ac_save_ext
6318ac_test_FFLAGS=${FFLAGS+set}
6319ac_save_FFLAGS=$FFLAGS
6320FFLAGS=
6321{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6322$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6323if test "${ac_cv_prog_f77_g+set}" = set; then
6324  $as_echo_n "(cached) " >&6
6325else
6326  FFLAGS=-g
6327cat >conftest.$ac_ext <<_ACEOF
6328      program main
6329
6330      end
6331_ACEOF
6332rm -f conftest.$ac_objext
6333if { (ac_try="$ac_compile"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339$as_echo "$ac_try_echo") >&5
6340  (eval "$ac_compile") 2>conftest.er1
6341  ac_status=$?
6342  grep -v '^ *+' conftest.er1 >conftest.err
6343  rm -f conftest.er1
6344  cat conftest.err >&5
6345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346  (exit $ac_status); } && {
6347	 test -z "$ac_f77_werror_flag" ||
6348	 test ! -s conftest.err
6349       } && test -s conftest.$ac_objext; then
6350  ac_cv_prog_f77_g=yes
6351else
6352  $as_echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355	ac_cv_prog_f77_g=no
6356fi
6357
6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359
6360fi
6361{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6362$as_echo "$ac_cv_prog_f77_g" >&6; }
6363if test "$ac_test_FFLAGS" = set; then
6364  FFLAGS=$ac_save_FFLAGS
6365elif test $ac_cv_prog_f77_g = yes; then
6366  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6367    FFLAGS="-g -O2"
6368  else
6369    FFLAGS="-g"
6370  fi
6371else
6372  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6373    FFLAGS="-O2"
6374  else
6375    FFLAGS=
6376  fi
6377fi
6378
6379if test $ac_compiler_gnu = yes; then
6380  G77=yes
6381else
6382  G77=
6383fi
6384ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390
6391
6392# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6393# find the maximum length of command line arguments
6394{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6395$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6396if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6397  $as_echo_n "(cached) " >&6
6398else
6399    i=0
6400  teststring="ABCD"
6401
6402  case $build_os in
6403  msdosdjgpp*)
6404    # On DJGPP, this test can blow up pretty badly due to problems in libc
6405    # (any single argument exceeding 2000 bytes causes a buffer overrun
6406    # during glob expansion).  Even if it were fixed, the result of this
6407    # check would be larger than it should be.
6408    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6409    ;;
6410
6411  gnu*)
6412    # Under GNU Hurd, this test is not required because there is
6413    # no limit to the length of command line arguments.
6414    # Libtool will interpret -1 as no limit whatsoever
6415    lt_cv_sys_max_cmd_len=-1;
6416    ;;
6417
6418  cygwin* | mingw*)
6419    # On Win9x/ME, this test blows up -- it succeeds, but takes
6420    # about 5 minutes as the teststring grows exponentially.
6421    # Worse, since 9x/ME are not pre-emptively multitasking,
6422    # you end up with a "frozen" computer, even though with patience
6423    # the test eventually succeeds (with a max line length of 256k).
6424    # Instead, let's just punt: use the minimum linelength reported by
6425    # all of the supported platforms: 8192 (on NT/2K/XP).
6426    lt_cv_sys_max_cmd_len=8192;
6427    ;;
6428
6429  amigaos*)
6430    # On AmigaOS with pdksh, this test takes hours, literally.
6431    # So we just punt and use a minimum line length of 8192.
6432    lt_cv_sys_max_cmd_len=8192;
6433    ;;
6434
6435  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6436    # This has been around since 386BSD, at least.  Likely further.
6437    if test -x /sbin/sysctl; then
6438      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6439    elif test -x /usr/sbin/sysctl; then
6440      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6441    else
6442      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6443    fi
6444    # And add a safety zone
6445    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6446    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6447    ;;
6448
6449  interix*)
6450    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6451    lt_cv_sys_max_cmd_len=196608
6452    ;;
6453
6454  osf*)
6455    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6456    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6457    # nice to cause kernel panics so lets avoid the loop below.
6458    # First set a reasonable default.
6459    lt_cv_sys_max_cmd_len=16384
6460    #
6461    if test -x /sbin/sysconfig; then
6462      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6463        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6464      esac
6465    fi
6466    ;;
6467  sco3.2v5*)
6468    lt_cv_sys_max_cmd_len=102400
6469    ;;
6470  sysv5* | sco5v6* | sysv4.2uw2*)
6471    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6472    if test -n "$kargmax"; then
6473      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6474    else
6475      lt_cv_sys_max_cmd_len=32768
6476    fi
6477    ;;
6478  *)
6479    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6480    if test -n "$lt_cv_sys_max_cmd_len"; then
6481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6482      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6483    else
6484      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6485      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6486	       = "XX$teststring") >/dev/null 2>&1 &&
6487	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6488	      lt_cv_sys_max_cmd_len=$new_result &&
6489	      test $i != 17 # 1/2 MB should be enough
6490      do
6491        i=`expr $i + 1`
6492        teststring=$teststring$teststring
6493      done
6494      teststring=
6495      # Add a significant safety factor because C++ compilers can tack on massive
6496      # amounts of additional arguments before passing them to the linker.
6497      # It appears as though 1/2 is a usable value.
6498      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6499    fi
6500    ;;
6501  esac
6502
6503fi
6504
6505if test -n $lt_cv_sys_max_cmd_len ; then
6506  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6507$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6508else
6509  { $as_echo "$as_me:$LINENO: result: none" >&5
6510$as_echo "none" >&6; }
6511fi
6512
6513
6514
6515
6516
6517# Check for command to grab the raw symbol name followed by C symbol from nm.
6518{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6519$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6520if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6521  $as_echo_n "(cached) " >&6
6522else
6523
6524# These are sane defaults that work on at least a few old systems.
6525# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6526
6527# Character class describing NM global symbol codes.
6528symcode='[BCDEGRST]'
6529
6530# Regexp to match symbols that can be accessed directly from C.
6531sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6532
6533# Transform an extracted symbol line into a proper C declaration
6534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6535
6536# Transform an extracted symbol line into symbol name and symbol address
6537lt_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'"
6538
6539# Define system-specific variables.
6540case $host_os in
6541aix*)
6542  symcode='[BCDT]'
6543  ;;
6544cygwin* | mingw* | pw32*)
6545  symcode='[ABCDGISTW]'
6546  ;;
6547hpux*) # Its linker distinguishes data from code symbols
6548  if test "$host_cpu" = ia64; then
6549    symcode='[ABCDEGRST]'
6550  fi
6551  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6552  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'"
6553  ;;
6554linux* | k*bsd*-gnu)
6555  if test "$host_cpu" = ia64; then
6556    symcode='[ABCDGIRSTW]'
6557    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6558    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'"
6559  fi
6560  ;;
6561irix* | nonstopux*)
6562  symcode='[BCDEGRST]'
6563  ;;
6564osf*)
6565  symcode='[BCDEGQRST]'
6566  ;;
6567solaris*)
6568  symcode='[BDRT]'
6569  ;;
6570sco3.2v5*)
6571  symcode='[DT]'
6572  ;;
6573sysv4.2uw2*)
6574  symcode='[DT]'
6575  ;;
6576sysv5* | sco5v6* | unixware* | OpenUNIX*)
6577  symcode='[ABDT]'
6578  ;;
6579sysv4)
6580  symcode='[DFNSTU]'
6581  ;;
6582esac
6583
6584# Handle CRLF in mingw tool chain
6585opt_cr=
6586case $build_os in
6587mingw*)
6588  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6589  ;;
6590esac
6591
6592# If we're using GNU nm, then use its standard symbol codes.
6593case `$NM -V 2>&1` in
6594*GNU* | *'with BFD'*)
6595  symcode='[ABCDGIRSTW]' ;;
6596esac
6597
6598# Try without a prefix undercore, then with it.
6599for ac_symprfx in "" "_"; do
6600
6601  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6602  symxfrm="\\1 $ac_symprfx\\2 \\2"
6603
6604  # Write the raw and C identifiers.
6605  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6606
6607  # Check to see that the pipe works correctly.
6608  pipe_works=no
6609
6610  rm -f conftest*
6611  cat > conftest.$ac_ext <<EOF
6612#ifdef __cplusplus
6613extern "C" {
6614#endif
6615char nm_test_var;
6616void nm_test_func(){}
6617#ifdef __cplusplus
6618}
6619#endif
6620int main(){nm_test_var='a';nm_test_func();return(0);}
6621EOF
6622
6623  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624  (eval $ac_compile) 2>&5
6625  ac_status=$?
6626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; then
6628    # Now try to grab the symbols.
6629    nlist=conftest.nm
6630    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6631  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6632  ac_status=$?
6633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } && test -s "$nlist"; then
6635      # Try sorting and uniquifying the output.
6636      if sort "$nlist" | uniq > "$nlist"T; then
6637	mv -f "$nlist"T "$nlist"
6638      else
6639	rm -f "$nlist"T
6640      fi
6641
6642      # Make sure that we snagged all the symbols we need.
6643      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6644	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6645	  cat <<EOF > conftest.$ac_ext
6646#ifdef __cplusplus
6647extern "C" {
6648#endif
6649
6650EOF
6651	  # Now generate the symbol file.
6652	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6653
6654	  cat <<EOF >> conftest.$ac_ext
6655#if defined (__STDC__) && __STDC__
6656# define lt_ptr_t void *
6657#else
6658# define lt_ptr_t char *
6659# define const
6660#endif
6661
6662/* The mapping between symbol names and symbols. */
6663const struct {
6664  const char *name;
6665  lt_ptr_t address;
6666}
6667lt_preloaded_symbols[] =
6668{
6669EOF
6670	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6671	  cat <<\EOF >> conftest.$ac_ext
6672  {0, (lt_ptr_t) 0}
6673};
6674
6675#ifdef __cplusplus
6676}
6677#endif
6678EOF
6679	  # Now try linking the two files.
6680	  mv conftest.$ac_objext conftstm.$ac_objext
6681	  lt_save_LIBS="$LIBS"
6682	  lt_save_CFLAGS="$CFLAGS"
6683	  LIBS="conftstm.$ac_objext"
6684	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6685	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686  (eval $ac_link) 2>&5
6687  ac_status=$?
6688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6690	    pipe_works=yes
6691	  fi
6692	  LIBS="$lt_save_LIBS"
6693	  CFLAGS="$lt_save_CFLAGS"
6694	else
6695	  echo "cannot find nm_test_func in $nlist" >&5
6696	fi
6697      else
6698	echo "cannot find nm_test_var in $nlist" >&5
6699      fi
6700    else
6701      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6702    fi
6703  else
6704    echo "$progname: failed program was:" >&5
6705    cat conftest.$ac_ext >&5
6706  fi
6707  rm -rf conftest* conftst*
6708
6709  # Do not use the global_symbol_pipe unless it works.
6710  if test "$pipe_works" = yes; then
6711    break
6712  else
6713    lt_cv_sys_global_symbol_pipe=
6714  fi
6715done
6716
6717fi
6718
6719if test -z "$lt_cv_sys_global_symbol_pipe"; then
6720  lt_cv_sys_global_symbol_to_cdecl=
6721fi
6722if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6723  { $as_echo "$as_me:$LINENO: result: failed" >&5
6724$as_echo "failed" >&6; }
6725else
6726  { $as_echo "$as_me:$LINENO: result: ok" >&5
6727$as_echo "ok" >&6; }
6728fi
6729
6730{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6731$as_echo_n "checking for objdir... " >&6; }
6732if test "${lt_cv_objdir+set}" = set; then
6733  $as_echo_n "(cached) " >&6
6734else
6735  rm -f .libs 2>/dev/null
6736mkdir .libs 2>/dev/null
6737if test -d .libs; then
6738  lt_cv_objdir=.libs
6739else
6740  # MS-DOS does not allow filenames that begin with a dot.
6741  lt_cv_objdir=_libs
6742fi
6743rmdir .libs 2>/dev/null
6744fi
6745{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6746$as_echo "$lt_cv_objdir" >&6; }
6747objdir=$lt_cv_objdir
6748
6749
6750
6751
6752
6753case $host_os in
6754aix3*)
6755  # AIX sometimes has problems with the GCC collect2 program.  For some
6756  # reason, if we set the COLLECT_NAMES environment variable, the problems
6757  # vanish in a puff of smoke.
6758  if test "X${COLLECT_NAMES+set}" != Xset; then
6759    COLLECT_NAMES=
6760    export COLLECT_NAMES
6761  fi
6762  ;;
6763esac
6764
6765# Sed substitution that helps us do robust quoting.  It backslashifies
6766# metacharacters that are still active within double-quoted strings.
6767Xsed='sed -e 1s/^X//'
6768sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6769
6770# Same as above, but do not quote variable references.
6771double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6772
6773# Sed substitution to delay expansion of an escaped shell variable in a
6774# double_quote_subst'ed string.
6775delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6776
6777# Sed substitution to avoid accidental globbing in evaled expressions
6778no_glob_subst='s/\*/\\\*/g'
6779
6780# Constants:
6781rm="rm -f"
6782
6783# Global variables:
6784default_ofile=libtool
6785can_build_shared=yes
6786
6787# All known linkers require a `.a' archive for static linking (except MSVC,
6788# which needs '.lib').
6789libext=a
6790ltmain="$ac_aux_dir/ltmain.sh"
6791ofile="$default_ofile"
6792with_gnu_ld="$lt_cv_prog_gnu_ld"
6793
6794if test -n "$ac_tool_prefix"; then
6795  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6796set dummy ${ac_tool_prefix}ar; ac_word=$2
6797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if test "${ac_cv_prog_AR+set}" = set; then
6800  $as_echo_n "(cached) " >&6
6801else
6802  if test -n "$AR"; then
6803  ac_cv_prog_AR="$AR" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810  for ac_exec_ext in '' $ac_executable_extensions; do
6811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812    ac_cv_prog_AR="${ac_tool_prefix}ar"
6813    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822AR=$ac_cv_prog_AR
6823if test -n "$AR"; then
6824  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6825$as_echo "$AR" >&6; }
6826else
6827  { $as_echo "$as_me:$LINENO: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831
6832fi
6833if test -z "$ac_cv_prog_AR"; then
6834  ac_ct_AR=$AR
6835  # Extract the first word of "ar", so it can be a program name with args.
6836set dummy ar; ac_word=$2
6837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -n "$ac_ct_AR"; then
6843  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850  for ac_exec_ext in '' $ac_executable_extensions; do
6851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852    ac_cv_prog_ac_ct_AR="ar"
6853    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862ac_ct_AR=$ac_cv_prog_ac_ct_AR
6863if test -n "$ac_ct_AR"; then
6864  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6865$as_echo "$ac_ct_AR" >&6; }
6866else
6867  { $as_echo "$as_me:$LINENO: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871  if test "x$ac_ct_AR" = x; then
6872    AR="false"
6873  else
6874    case $cross_compiling:$ac_tool_warned in
6875yes:)
6876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878ac_tool_warned=yes ;;
6879esac
6880    AR=$ac_ct_AR
6881  fi
6882else
6883  AR="$ac_cv_prog_AR"
6884fi
6885
6886if test -n "$ac_tool_prefix"; then
6887  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_RANLIB+set}" = set; then
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$RANLIB"; then
6895  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902  for ac_exec_ext in '' $ac_executable_extensions; do
6903  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6905    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914RANLIB=$ac_cv_prog_RANLIB
6915if test -n "$RANLIB"; then
6916  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6917$as_echo "$RANLIB" >&6; }
6918else
6919  { $as_echo "$as_me:$LINENO: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924fi
6925if test -z "$ac_cv_prog_RANLIB"; then
6926  ac_ct_RANLIB=$RANLIB
6927  # Extract the first word of "ranlib", so it can be a program name with args.
6928set dummy ranlib; ac_word=$2
6929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6932  $as_echo_n "(cached) " >&6
6933else
6934  if test -n "$ac_ct_RANLIB"; then
6935  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942  for ac_exec_ext in '' $ac_executable_extensions; do
6943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944    ac_cv_prog_ac_ct_RANLIB="ranlib"
6945    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6955if test -n "$ac_ct_RANLIB"; then
6956  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6957$as_echo "$ac_ct_RANLIB" >&6; }
6958else
6959  { $as_echo "$as_me:$LINENO: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963  if test "x$ac_ct_RANLIB" = x; then
6964    RANLIB=":"
6965  else
6966    case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970ac_tool_warned=yes ;;
6971esac
6972    RANLIB=$ac_ct_RANLIB
6973  fi
6974else
6975  RANLIB="$ac_cv_prog_RANLIB"
6976fi
6977
6978if test -n "$ac_tool_prefix"; then
6979  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6980set dummy ${ac_tool_prefix}strip; ac_word=$2
6981{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if test "${ac_cv_prog_STRIP+set}" = set; then
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$STRIP"; then
6987  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994  for ac_exec_ext in '' $ac_executable_extensions; do
6995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6997    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006STRIP=$ac_cv_prog_STRIP
7007if test -n "$STRIP"; then
7008  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7009$as_echo "$STRIP" >&6; }
7010else
7011  { $as_echo "$as_me:$LINENO: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015
7016fi
7017if test -z "$ac_cv_prog_STRIP"; then
7018  ac_ct_STRIP=$STRIP
7019  # Extract the first word of "strip", so it can be a program name with args.
7020set dummy strip; ac_word=$2
7021{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7024  $as_echo_n "(cached) " >&6
7025else
7026  if test -n "$ac_ct_STRIP"; then
7027  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034  for ac_exec_ext in '' $ac_executable_extensions; do
7035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036    ac_cv_prog_ac_ct_STRIP="strip"
7037    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7047if test -n "$ac_ct_STRIP"; then
7048  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7049$as_echo "$ac_ct_STRIP" >&6; }
7050else
7051  { $as_echo "$as_me:$LINENO: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055  if test "x$ac_ct_STRIP" = x; then
7056    STRIP=":"
7057  else
7058    case $cross_compiling:$ac_tool_warned in
7059yes:)
7060{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062ac_tool_warned=yes ;;
7063esac
7064    STRIP=$ac_ct_STRIP
7065  fi
7066else
7067  STRIP="$ac_cv_prog_STRIP"
7068fi
7069
7070
7071old_CC="$CC"
7072old_CFLAGS="$CFLAGS"
7073
7074# Set sane defaults for various variables
7075test -z "$AR" && AR=ar
7076test -z "$AR_FLAGS" && AR_FLAGS=cru
7077test -z "$AS" && AS=as
7078test -z "$CC" && CC=cc
7079test -z "$LTCC" && LTCC=$CC
7080test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7081test -z "$DLLTOOL" && DLLTOOL=dlltool
7082test -z "$LD" && LD=ld
7083test -z "$LN_S" && LN_S="ln -s"
7084test -z "$MAGIC_CMD" && MAGIC_CMD=file
7085test -z "$NM" && NM=nm
7086test -z "$SED" && SED=sed
7087test -z "$OBJDUMP" && OBJDUMP=objdump
7088test -z "$RANLIB" && RANLIB=:
7089test -z "$STRIP" && STRIP=:
7090test -z "$ac_objext" && ac_objext=o
7091
7092# Determine commands to create old-style static archives.
7093old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7094old_postinstall_cmds='chmod 644 $oldlib'
7095old_postuninstall_cmds=
7096
7097if test -n "$RANLIB"; then
7098  case $host_os in
7099  openbsd*)
7100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7101    ;;
7102  *)
7103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7104    ;;
7105  esac
7106  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7107fi
7108
7109for cc_temp in $compiler""; do
7110  case $cc_temp in
7111    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7112    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7113    \-*) ;;
7114    *) break;;
7115  esac
7116done
7117cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7118
7119
7120# Only perform the check for file, if the check method requires it
7121case $deplibs_check_method in
7122file_magic*)
7123  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7124    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7125$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7126if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7127  $as_echo_n "(cached) " >&6
7128else
7129  case $MAGIC_CMD in
7130[\\/*] |  ?:[\\/]*)
7131  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7132  ;;
7133*)
7134  lt_save_MAGIC_CMD="$MAGIC_CMD"
7135  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7136  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7137  for ac_dir in $ac_dummy; do
7138    IFS="$lt_save_ifs"
7139    test -z "$ac_dir" && ac_dir=.
7140    if test -f $ac_dir/${ac_tool_prefix}file; then
7141      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7142      if test -n "$file_magic_test_file"; then
7143	case $deplibs_check_method in
7144	"file_magic "*)
7145	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7146	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7147	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7148	    $EGREP "$file_magic_regex" > /dev/null; then
7149	    :
7150	  else
7151	    cat <<EOF 1>&2
7152
7153*** Warning: the command libtool uses to detect shared libraries,
7154*** $file_magic_cmd, produces output that libtool cannot recognize.
7155*** The result is that libtool may fail to recognize shared libraries
7156*** as such.  This will affect the creation of libtool libraries that
7157*** depend on shared libraries, but programs linked with such libtool
7158*** libraries will work regardless of this problem.  Nevertheless, you
7159*** may want to report the problem to your system manager and/or to
7160*** bug-libtool@gnu.org
7161
7162EOF
7163	  fi ;;
7164	esac
7165      fi
7166      break
7167    fi
7168  done
7169  IFS="$lt_save_ifs"
7170  MAGIC_CMD="$lt_save_MAGIC_CMD"
7171  ;;
7172esac
7173fi
7174
7175MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176if test -n "$MAGIC_CMD"; then
7177  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7178$as_echo "$MAGIC_CMD" >&6; }
7179else
7180  { $as_echo "$as_me:$LINENO: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184if test -z "$lt_cv_path_MAGIC_CMD"; then
7185  if test -n "$ac_tool_prefix"; then
7186    { $as_echo "$as_me:$LINENO: checking for file" >&5
7187$as_echo_n "checking for file... " >&6; }
7188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7189  $as_echo_n "(cached) " >&6
7190else
7191  case $MAGIC_CMD in
7192[\\/*] |  ?:[\\/]*)
7193  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7194  ;;
7195*)
7196  lt_save_MAGIC_CMD="$MAGIC_CMD"
7197  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7198  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7199  for ac_dir in $ac_dummy; do
7200    IFS="$lt_save_ifs"
7201    test -z "$ac_dir" && ac_dir=.
7202    if test -f $ac_dir/file; then
7203      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7204      if test -n "$file_magic_test_file"; then
7205	case $deplibs_check_method in
7206	"file_magic "*)
7207	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7208	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7209	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7210	    $EGREP "$file_magic_regex" > /dev/null; then
7211	    :
7212	  else
7213	    cat <<EOF 1>&2
7214
7215*** Warning: the command libtool uses to detect shared libraries,
7216*** $file_magic_cmd, produces output that libtool cannot recognize.
7217*** The result is that libtool may fail to recognize shared libraries
7218*** as such.  This will affect the creation of libtool libraries that
7219*** depend on shared libraries, but programs linked with such libtool
7220*** libraries will work regardless of this problem.  Nevertheless, you
7221*** may want to report the problem to your system manager and/or to
7222*** bug-libtool@gnu.org
7223
7224EOF
7225	  fi ;;
7226	esac
7227      fi
7228      break
7229    fi
7230  done
7231  IFS="$lt_save_ifs"
7232  MAGIC_CMD="$lt_save_MAGIC_CMD"
7233  ;;
7234esac
7235fi
7236
7237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7238if test -n "$MAGIC_CMD"; then
7239  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7240$as_echo "$MAGIC_CMD" >&6; }
7241else
7242  { $as_echo "$as_me:$LINENO: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246  else
7247    MAGIC_CMD=:
7248  fi
7249fi
7250
7251  fi
7252  ;;
7253esac
7254
7255
7256  case $host_os in
7257    rhapsody* | darwin*)
7258    if test -n "$ac_tool_prefix"; then
7259  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7260set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7261{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7264  $as_echo_n "(cached) " >&6
7265else
7266  if test -n "$DSYMUTIL"; then
7267  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272  IFS=$as_save_IFS
7273  test -z "$as_dir" && as_dir=.
7274  for ac_exec_ext in '' $ac_executable_extensions; do
7275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7277    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286DSYMUTIL=$ac_cv_prog_DSYMUTIL
7287if test -n "$DSYMUTIL"; then
7288  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7289$as_echo "$DSYMUTIL" >&6; }
7290else
7291  { $as_echo "$as_me:$LINENO: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295
7296fi
7297if test -z "$ac_cv_prog_DSYMUTIL"; then
7298  ac_ct_DSYMUTIL=$DSYMUTIL
7299  # Extract the first word of "dsymutil", so it can be a program name with args.
7300set dummy dsymutil; ac_word=$2
7301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7302$as_echo_n "checking for $ac_word... " >&6; }
7303if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7304  $as_echo_n "(cached) " >&6
7305else
7306  if test -n "$ac_ct_DSYMUTIL"; then
7307  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314  for ac_exec_ext in '' $ac_executable_extensions; do
7315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7317    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321done
7322IFS=$as_save_IFS
7323
7324fi
7325fi
7326ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7327if test -n "$ac_ct_DSYMUTIL"; then
7328  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7329$as_echo "$ac_ct_DSYMUTIL" >&6; }
7330else
7331  { $as_echo "$as_me:$LINENO: result: no" >&5
7332$as_echo "no" >&6; }
7333fi
7334
7335  if test "x$ac_ct_DSYMUTIL" = x; then
7336    DSYMUTIL=":"
7337  else
7338    case $cross_compiling:$ac_tool_warned in
7339yes:)
7340{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342ac_tool_warned=yes ;;
7343esac
7344    DSYMUTIL=$ac_ct_DSYMUTIL
7345  fi
7346else
7347  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7348fi
7349
7350    if test -n "$ac_tool_prefix"; then
7351  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7352set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if test "${ac_cv_prog_NMEDIT+set}" = set; then
7356  $as_echo_n "(cached) " >&6
7357else
7358  if test -n "$NMEDIT"; then
7359  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366  for ac_exec_ext in '' $ac_executable_extensions; do
7367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7369    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378NMEDIT=$ac_cv_prog_NMEDIT
7379if test -n "$NMEDIT"; then
7380  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7381$as_echo "$NMEDIT" >&6; }
7382else
7383  { $as_echo "$as_me:$LINENO: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387
7388fi
7389if test -z "$ac_cv_prog_NMEDIT"; then
7390  ac_ct_NMEDIT=$NMEDIT
7391  # Extract the first word of "nmedit", so it can be a program name with args.
7392set dummy nmedit; ac_word=$2
7393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7394$as_echo_n "checking for $ac_word... " >&6; }
7395if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7396  $as_echo_n "(cached) " >&6
7397else
7398  if test -n "$ac_ct_NMEDIT"; then
7399  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406  for ac_exec_ext in '' $ac_executable_extensions; do
7407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7409    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7419if test -n "$ac_ct_NMEDIT"; then
7420  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7421$as_echo "$ac_ct_NMEDIT" >&6; }
7422else
7423  { $as_echo "$as_me:$LINENO: result: no" >&5
7424$as_echo "no" >&6; }
7425fi
7426
7427  if test "x$ac_ct_NMEDIT" = x; then
7428    NMEDIT=":"
7429  else
7430    case $cross_compiling:$ac_tool_warned in
7431yes:)
7432{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434ac_tool_warned=yes ;;
7435esac
7436    NMEDIT=$ac_ct_NMEDIT
7437  fi
7438else
7439  NMEDIT="$ac_cv_prog_NMEDIT"
7440fi
7441
7442
7443    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7444$as_echo_n "checking for -single_module linker flag... " >&6; }
7445if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7446  $as_echo_n "(cached) " >&6
7447else
7448  lt_cv_apple_cc_single_mod=no
7449      if test -z "${LT_MULTI_MODULE}"; then
7450   # By default we will add the -single_module flag. You can override
7451   # by either setting the environment variable LT_MULTI_MODULE
7452   # non-empty at configure time, or by adding -multi_module to the
7453   # link flags.
7454   echo "int foo(void){return 1;}" > conftest.c
7455   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7456     -dynamiclib ${wl}-single_module conftest.c
7457   if test -f libconftest.dylib; then
7458     lt_cv_apple_cc_single_mod=yes
7459     rm -rf libconftest.dylib*
7460   fi
7461   rm conftest.c
7462      fi
7463fi
7464{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7465$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7466    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7467$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7468if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7469  $as_echo_n "(cached) " >&6
7470else
7471  lt_cv_ld_exported_symbols_list=no
7472      save_LDFLAGS=$LDFLAGS
7473      echo "_main" > conftest.sym
7474      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7475      cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h.  */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h.  */
7481
7482int
7483main ()
7484{
7485
7486  ;
7487  return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
7491if { (ac_try="$ac_link"
7492case "(($ac_try" in
7493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494  *) ac_try_echo=$ac_try;;
7495esac
7496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7497$as_echo "$ac_try_echo") >&5
7498  (eval "$ac_link") 2>conftest.er1
7499  ac_status=$?
7500  grep -v '^ *+' conftest.er1 >conftest.err
7501  rm -f conftest.er1
7502  cat conftest.err >&5
7503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); } && {
7505	 test -z "$ac_c_werror_flag" ||
7506	 test ! -s conftest.err
7507       } && test -s conftest$ac_exeext && {
7508	 test "$cross_compiling" = yes ||
7509	 $as_test_x conftest$ac_exeext
7510       }; then
7511  lt_cv_ld_exported_symbols_list=yes
7512else
7513  $as_echo "$as_me: failed program was:" >&5
7514sed 's/^/| /' conftest.$ac_ext >&5
7515
7516	lt_cv_ld_exported_symbols_list=no
7517fi
7518
7519rm -rf conftest.dSYM
7520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7521      conftest$ac_exeext conftest.$ac_ext
7522   LDFLAGS="$save_LDFLAGS"
7523
7524fi
7525{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7526$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7527    case $host_os in
7528    rhapsody* | darwin1.[0123])
7529      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7530    darwin1.*)
7531     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7532    darwin*)
7533      # if running on 10.5 or later, the deployment target defaults
7534      # to the OS version, if on x86, and 10.4, the deployment
7535      # target defaults to 10.4. Don't you love it?
7536      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7537   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7538     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7539   10.[012]*)
7540     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7541   10.*)
7542     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7543      esac
7544    ;;
7545  esac
7546    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7547      _lt_dar_single_mod='$single_module'
7548    fi
7549    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7550      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7551    else
7552      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7553    fi
7554    if test "$DSYMUTIL" != ":"; then
7555      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7556    else
7557      _lt_dsymutil=
7558    fi
7559    ;;
7560  esac
7561
7562
7563enable_dlopen=no
7564enable_win32_dll=no
7565
7566# Check whether --enable-libtool-lock was given.
7567if test "${enable_libtool_lock+set}" = set; then
7568  enableval=$enable_libtool_lock;
7569fi
7570
7571test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7572
7573
7574# Check whether --with-pic was given.
7575if test "${with_pic+set}" = set; then
7576  withval=$with_pic; pic_mode="$withval"
7577else
7578  pic_mode=default
7579fi
7580
7581test -z "$pic_mode" && pic_mode=default
7582
7583# Use C for the default configuration in the libtool script
7584tagname=
7585lt_save_CC="$CC"
7586ac_ext=c
7587ac_cpp='$CPP $CPPFLAGS'
7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592
7593# Source file extension for C test sources.
7594ac_ext=c
7595
7596# Object file extension for compiled C test sources.
7597objext=o
7598objext=$objext
7599
7600# Code to be used in simple compile tests
7601lt_simple_compile_test_code="int some_variable = 0;"
7602
7603# Code to be used in simple link tests
7604lt_simple_link_test_code='int main(){return(0);}'
7605
7606
7607# If no C compiler was specified, use CC.
7608LTCC=${LTCC-"$CC"}
7609
7610# If no C compiler flags were specified, use CFLAGS.
7611LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7612
7613# Allow CC to be a program name with arguments.
7614compiler=$CC
7615
7616
7617# save warnings/boilerplate of simple test code
7618ac_outfile=conftest.$ac_objext
7619echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7620eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7621_lt_compiler_boilerplate=`cat conftest.err`
7622$rm conftest*
7623
7624ac_outfile=conftest.$ac_objext
7625echo "$lt_simple_link_test_code" >conftest.$ac_ext
7626eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627_lt_linker_boilerplate=`cat conftest.err`
7628$rm -r conftest*
7629
7630
7631
7632lt_prog_compiler_no_builtin_flag=
7633
7634if test "$GCC" = yes; then
7635  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7636
7637
7638{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7639$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7640if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7641  $as_echo_n "(cached) " >&6
7642else
7643  lt_cv_prog_compiler_rtti_exceptions=no
7644  ac_outfile=conftest.$ac_objext
7645   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7646   lt_compiler_flag="-fno-rtti -fno-exceptions"
7647   # Insert the option either (1) after the last *FLAGS variable, or
7648   # (2) before a word containing "conftest.", or (3) at the end.
7649   # Note that $ac_compile itself does not contain backslashes and begins
7650   # with a dollar sign (not a hyphen), so the echo should work correctly.
7651   # The option is referenced via a variable to avoid confusing sed.
7652   lt_compile=`echo "$ac_compile" | $SED \
7653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7655   -e 's:$: $lt_compiler_flag:'`
7656   (eval echo "\"\$as_me:7656: $lt_compile\"" >&5)
7657   (eval "$lt_compile" 2>conftest.err)
7658   ac_status=$?
7659   cat conftest.err >&5
7660   echo "$as_me:7660: \$? = $ac_status" >&5
7661   if (exit $ac_status) && test -s "$ac_outfile"; then
7662     # The compiler can only warn and ignore the option if not recognized
7663     # So say no if there are warnings other than the usual output.
7664     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7665     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7666     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7667       lt_cv_prog_compiler_rtti_exceptions=yes
7668     fi
7669   fi
7670   $rm conftest*
7671
7672fi
7673{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7674$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7675
7676if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7677    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7678else
7679    :
7680fi
7681
7682fi
7683
7684lt_prog_compiler_wl=
7685lt_prog_compiler_pic=
7686lt_prog_compiler_static=
7687
7688{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7690
7691  if test "$GCC" = yes; then
7692    lt_prog_compiler_wl='-Wl,'
7693    lt_prog_compiler_static='-static'
7694
7695    case $host_os in
7696      aix*)
7697      # All AIX code is PIC.
7698      if test "$host_cpu" = ia64; then
7699	# AIX 5 now supports IA64 processor
7700	lt_prog_compiler_static='-Bstatic'
7701      fi
7702      ;;
7703
7704    amigaos*)
7705      # FIXME: we need at least 68020 code to build shared libraries, but
7706      # adding the `-m68020' flag to GCC prevents building anything better,
7707      # like `-m68040'.
7708      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7709      ;;
7710
7711    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7712      # PIC is the default for these OSes.
7713      ;;
7714
7715    mingw* | cygwin* | pw32* | os2*)
7716      # This hack is so that the source file can tell whether it is being
7717      # built for inclusion in a dll (and should export symbols for example).
7718      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7719      # (--disable-auto-import) libraries
7720      lt_prog_compiler_pic='-DDLL_EXPORT'
7721      ;;
7722
7723    darwin* | rhapsody*)
7724      # PIC is the default on this platform
7725      # Common symbols not allowed in MH_DYLIB files
7726      lt_prog_compiler_pic='-fno-common'
7727      ;;
7728
7729    interix[3-9]*)
7730      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7731      # Instead, we relocate shared libraries at runtime.
7732      ;;
7733
7734    msdosdjgpp*)
7735      # Just because we use GCC doesn't mean we suddenly get shared libraries
7736      # on systems that don't support them.
7737      lt_prog_compiler_can_build_shared=no
7738      enable_shared=no
7739      ;;
7740
7741    sysv4*MP*)
7742      if test -d /usr/nec; then
7743	lt_prog_compiler_pic=-Kconform_pic
7744      fi
7745      ;;
7746
7747    hpux*)
7748      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7749      # not for PA HP-UX.
7750      case $host_cpu in
7751      hppa*64*|ia64*)
7752	# +Z the default
7753	;;
7754      *)
7755	lt_prog_compiler_pic='-fPIC'
7756	;;
7757      esac
7758      ;;
7759
7760    *)
7761      lt_prog_compiler_pic='-fPIC'
7762      ;;
7763    esac
7764  else
7765    # PORTME Check for flag to pass linker flags through the system compiler.
7766    case $host_os in
7767    aix*)
7768      lt_prog_compiler_wl='-Wl,'
7769      if test "$host_cpu" = ia64; then
7770	# AIX 5 now supports IA64 processor
7771	lt_prog_compiler_static='-Bstatic'
7772      else
7773	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7774      fi
7775      ;;
7776      darwin*)
7777        # PIC is the default on this platform
7778        # Common symbols not allowed in MH_DYLIB files
7779       case $cc_basename in
7780         xlc*)
7781         lt_prog_compiler_pic='-qnocommon'
7782         lt_prog_compiler_wl='-Wl,'
7783         ;;
7784       esac
7785       ;;
7786
7787    mingw* | cygwin* | pw32* | os2*)
7788      # This hack is so that the source file can tell whether it is being
7789      # built for inclusion in a dll (and should export symbols for example).
7790      lt_prog_compiler_pic='-DDLL_EXPORT'
7791      ;;
7792
7793    hpux9* | hpux10* | hpux11*)
7794      lt_prog_compiler_wl='-Wl,'
7795      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7796      # not for PA HP-UX.
7797      case $host_cpu in
7798      hppa*64*|ia64*)
7799	# +Z the default
7800	;;
7801      *)
7802	lt_prog_compiler_pic='+Z'
7803	;;
7804      esac
7805      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7806      lt_prog_compiler_static='${wl}-a ${wl}archive'
7807      ;;
7808
7809    irix5* | irix6* | nonstopux*)
7810      lt_prog_compiler_wl='-Wl,'
7811      # PIC (with -KPIC) is the default.
7812      lt_prog_compiler_static='-non_shared'
7813      ;;
7814
7815    newsos6)
7816      lt_prog_compiler_pic='-KPIC'
7817      lt_prog_compiler_static='-Bstatic'
7818      ;;
7819
7820    linux* | k*bsd*-gnu)
7821      case $cc_basename in
7822      icc* | ecc*)
7823	lt_prog_compiler_wl='-Wl,'
7824	lt_prog_compiler_pic='-KPIC'
7825	lt_prog_compiler_static='-static'
7826        ;;
7827      pgcc* | pgf77* | pgf90* | pgf95*)
7828        # Portland Group compilers (*not* the Pentium gcc compiler,
7829	# which looks to be a dead project)
7830	lt_prog_compiler_wl='-Wl,'
7831	lt_prog_compiler_pic='-fpic'
7832	lt_prog_compiler_static='-Bstatic'
7833        ;;
7834      ccc*)
7835        lt_prog_compiler_wl='-Wl,'
7836        # All Alpha code is PIC.
7837        lt_prog_compiler_static='-non_shared'
7838        ;;
7839      *)
7840        case `$CC -V 2>&1 | sed 5q` in
7841	*Sun\ C*)
7842	  # Sun C 5.9
7843	  lt_prog_compiler_pic='-KPIC'
7844	  lt_prog_compiler_static='-Bstatic'
7845	  lt_prog_compiler_wl='-Wl,'
7846	  ;;
7847	*Sun\ F*)
7848	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7849	  lt_prog_compiler_pic='-KPIC'
7850	  lt_prog_compiler_static='-Bstatic'
7851	  lt_prog_compiler_wl=''
7852	  ;;
7853	esac
7854	;;
7855      esac
7856      ;;
7857
7858    osf3* | osf4* | osf5*)
7859      lt_prog_compiler_wl='-Wl,'
7860      # All OSF/1 code is PIC.
7861      lt_prog_compiler_static='-non_shared'
7862      ;;
7863
7864    rdos*)
7865      lt_prog_compiler_static='-non_shared'
7866      ;;
7867
7868    solaris*)
7869      lt_prog_compiler_pic='-KPIC'
7870      lt_prog_compiler_static='-Bstatic'
7871      case $cc_basename in
7872      f77* | f90* | f95*)
7873	lt_prog_compiler_wl='-Qoption ld ';;
7874      *)
7875	lt_prog_compiler_wl='-Wl,';;
7876      esac
7877      ;;
7878
7879    sunos4*)
7880      lt_prog_compiler_wl='-Qoption ld '
7881      lt_prog_compiler_pic='-PIC'
7882      lt_prog_compiler_static='-Bstatic'
7883      ;;
7884
7885    sysv4 | sysv4.2uw2* | sysv4.3*)
7886      lt_prog_compiler_wl='-Wl,'
7887      lt_prog_compiler_pic='-KPIC'
7888      lt_prog_compiler_static='-Bstatic'
7889      ;;
7890
7891    sysv4*MP*)
7892      if test -d /usr/nec ;then
7893	lt_prog_compiler_pic='-Kconform_pic'
7894	lt_prog_compiler_static='-Bstatic'
7895      fi
7896      ;;
7897
7898    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7899      lt_prog_compiler_wl='-Wl,'
7900      lt_prog_compiler_pic='-KPIC'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    unicos*)
7905      lt_prog_compiler_wl='-Wl,'
7906      lt_prog_compiler_can_build_shared=no
7907      ;;
7908
7909    uts4*)
7910      lt_prog_compiler_pic='-pic'
7911      lt_prog_compiler_static='-Bstatic'
7912      ;;
7913
7914    *)
7915      lt_prog_compiler_can_build_shared=no
7916      ;;
7917    esac
7918  fi
7919
7920{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7921$as_echo "$lt_prog_compiler_pic" >&6; }
7922
7923#
7924# Check to make sure the PIC flag actually works.
7925#
7926if test -n "$lt_prog_compiler_pic"; then
7927
7928{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7929$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7930if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7931  $as_echo_n "(cached) " >&6
7932else
7933  lt_cv_prog_compiler_pic_works=no
7934  ac_outfile=conftest.$ac_objext
7935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7936   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7937   # Insert the option either (1) after the last *FLAGS variable, or
7938   # (2) before a word containing "conftest.", or (3) at the end.
7939   # Note that $ac_compile itself does not contain backslashes and begins
7940   # with a dollar sign (not a hyphen), so the echo should work correctly.
7941   # The option is referenced via a variable to avoid confusing sed.
7942   lt_compile=`echo "$ac_compile" | $SED \
7943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945   -e 's:$: $lt_compiler_flag:'`
7946   (eval echo "\"\$as_me:7946: $lt_compile\"" >&5)
7947   (eval "$lt_compile" 2>conftest.err)
7948   ac_status=$?
7949   cat conftest.err >&5
7950   echo "$as_me:7950: \$? = $ac_status" >&5
7951   if (exit $ac_status) && test -s "$ac_outfile"; then
7952     # The compiler can only warn and ignore the option if not recognized
7953     # So say no if there are warnings other than the usual output.
7954     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7955     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7957       lt_cv_prog_compiler_pic_works=yes
7958     fi
7959   fi
7960   $rm conftest*
7961
7962fi
7963{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7964$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7965
7966if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7967    case $lt_prog_compiler_pic in
7968     "" | " "*) ;;
7969     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7970     esac
7971else
7972    lt_prog_compiler_pic=
7973     lt_prog_compiler_can_build_shared=no
7974fi
7975
7976fi
7977case $host_os in
7978  # For platforms which do not support PIC, -DPIC is meaningless:
7979  *djgpp*)
7980    lt_prog_compiler_pic=
7981    ;;
7982  *)
7983    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7984    ;;
7985esac
7986
7987#
7988# Check to make sure the static flag actually works.
7989#
7990wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7991{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7992$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7993if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7994  $as_echo_n "(cached) " >&6
7995else
7996  lt_cv_prog_compiler_static_works=no
7997   save_LDFLAGS="$LDFLAGS"
7998   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7999   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8000   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8001     # The linker can only warn and ignore the option if not recognized
8002     # So say no if there are warnings
8003     if test -s conftest.err; then
8004       # Append any errors to the config.log.
8005       cat conftest.err 1>&5
8006       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8007       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8008       if diff conftest.exp conftest.er2 >/dev/null; then
8009         lt_cv_prog_compiler_static_works=yes
8010       fi
8011     else
8012       lt_cv_prog_compiler_static_works=yes
8013     fi
8014   fi
8015   $rm -r conftest*
8016   LDFLAGS="$save_LDFLAGS"
8017
8018fi
8019{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8020$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8021
8022if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8023    :
8024else
8025    lt_prog_compiler_static=
8026fi
8027
8028
8029{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8031if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8032  $as_echo_n "(cached) " >&6
8033else
8034  lt_cv_prog_compiler_c_o=no
8035   $rm -r conftest 2>/dev/null
8036   mkdir conftest
8037   cd conftest
8038   mkdir out
8039   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8040
8041   lt_compiler_flag="-o out/conftest2.$ac_objext"
8042   # Insert the option either (1) after the last *FLAGS variable, or
8043   # (2) before a word containing "conftest.", or (3) at the end.
8044   # Note that $ac_compile itself does not contain backslashes and begins
8045   # with a dollar sign (not a hyphen), so the echo should work correctly.
8046   lt_compile=`echo "$ac_compile" | $SED \
8047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8049   -e 's:$: $lt_compiler_flag:'`
8050   (eval echo "\"\$as_me:8050: $lt_compile\"" >&5)
8051   (eval "$lt_compile" 2>out/conftest.err)
8052   ac_status=$?
8053   cat out/conftest.err >&5
8054   echo "$as_me:8054: \$? = $ac_status" >&5
8055   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8056   then
8057     # The compiler can only warn and ignore the option if not recognized
8058     # So say no if there are warnings
8059     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8060     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8061     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8062       lt_cv_prog_compiler_c_o=yes
8063     fi
8064   fi
8065   chmod u+w . 2>&5
8066   $rm conftest*
8067   # SGI C++ compiler will create directory out/ii_files/ for
8068   # template instantiation
8069   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8070   $rm out/* && rmdir out
8071   cd ..
8072   rmdir conftest
8073   $rm conftest*
8074
8075fi
8076{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8077$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8078
8079
8080hard_links="nottested"
8081if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8082  # do not overwrite the value of need_locks provided by the user
8083  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8084$as_echo_n "checking if we can lock with hard links... " >&6; }
8085  hard_links=yes
8086  $rm conftest*
8087  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8088  touch conftest.a
8089  ln conftest.a conftest.b 2>&5 || hard_links=no
8090  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8091  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8092$as_echo "$hard_links" >&6; }
8093  if test "$hard_links" = no; then
8094    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8095$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8096    need_locks=warn
8097  fi
8098else
8099  need_locks=no
8100fi
8101
8102{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8103$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8104
8105  runpath_var=
8106  allow_undefined_flag=
8107  enable_shared_with_static_runtimes=no
8108  archive_cmds=
8109  archive_expsym_cmds=
8110  old_archive_From_new_cmds=
8111  old_archive_from_expsyms_cmds=
8112  export_dynamic_flag_spec=
8113  whole_archive_flag_spec=
8114  thread_safe_flag_spec=
8115  hardcode_libdir_flag_spec=
8116  hardcode_libdir_flag_spec_ld=
8117  hardcode_libdir_separator=
8118  hardcode_direct=no
8119  hardcode_minus_L=no
8120  hardcode_shlibpath_var=unsupported
8121  link_all_deplibs=unknown
8122  hardcode_automatic=no
8123  module_cmds=
8124  module_expsym_cmds=
8125  always_export_symbols=no
8126  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8127  # include_expsyms should be a list of space-separated symbols to be *always*
8128  # included in the symbol list
8129  include_expsyms=
8130  # exclude_expsyms can be an extended regexp of symbols to exclude
8131  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8132  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8133  # as well as any symbol that contains `d'.
8134  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8135  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8136  # platforms (ab)use it in PIC code, but their linkers get confused if
8137  # the symbol is explicitly referenced.  Since portable code cannot
8138  # rely on this symbol name, it's probably fine to never include it in
8139  # preloaded symbol tables.
8140  # Exclude shared library initialization/finalization symbols.
8141  extract_expsyms_cmds=
8142  # Just being paranoid about ensuring that cc_basename is set.
8143  for cc_temp in $compiler""; do
8144  case $cc_temp in
8145    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8146    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8147    \-*) ;;
8148    *) break;;
8149  esac
8150done
8151cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8152
8153  case $host_os in
8154  cygwin* | mingw* | pw32*)
8155    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8156    # When not using gcc, we currently assume that we are using
8157    # Microsoft Visual C++.
8158    if test "$GCC" != yes; then
8159      with_gnu_ld=no
8160    fi
8161    ;;
8162  interix*)
8163    # we just hope/assume this is gcc and not c89 (= MSVC++)
8164    with_gnu_ld=yes
8165    ;;
8166  openbsd*)
8167    with_gnu_ld=no
8168    ;;
8169  esac
8170
8171  ld_shlibs=yes
8172  if test "$with_gnu_ld" = yes; then
8173    # If archive_cmds runs LD, not CC, wlarc should be empty
8174    wlarc='${wl}'
8175
8176    # Set some defaults for GNU ld with shared library support. These
8177    # are reset later if shared libraries are not supported. Putting them
8178    # here allows them to be overridden if necessary.
8179    runpath_var=LD_RUN_PATH
8180    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8181    export_dynamic_flag_spec='${wl}--export-dynamic'
8182    # ancient GNU ld didn't support --whole-archive et. al.
8183    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8184	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8185      else
8186  	whole_archive_flag_spec=
8187    fi
8188    supports_anon_versioning=no
8189    case `$LD -v 2>/dev/null` in
8190      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8191      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8192      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8193      *\ 2.11.*) ;; # other 2.11 versions
8194      *) supports_anon_versioning=yes ;;
8195    esac
8196
8197    # See if GNU ld supports shared libraries.
8198    case $host_os in
8199    aix[3-9]*)
8200      # On AIX/PPC, the GNU linker is very broken
8201      if test "$host_cpu" != ia64; then
8202	ld_shlibs=no
8203	cat <<EOF 1>&2
8204
8205*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8206*** to be unable to reliably create shared libraries on AIX.
8207*** Therefore, libtool is disabling shared libraries support.  If you
8208*** really care for shared libraries, you may want to modify your PATH
8209*** so that a non-GNU linker is found, and then restart.
8210
8211EOF
8212      fi
8213      ;;
8214
8215    amigaos*)
8216      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)'
8217      hardcode_libdir_flag_spec='-L$libdir'
8218      hardcode_minus_L=yes
8219
8220      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8221      # that the semantics of dynamic libraries on AmigaOS, at least up
8222      # to version 4, is to share data among multiple programs linked
8223      # with the same dynamic library.  Since this doesn't match the
8224      # behavior of shared libraries on other platforms, we can't use
8225      # them.
8226      ld_shlibs=no
8227      ;;
8228
8229    beos*)
8230      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231	allow_undefined_flag=unsupported
8232	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8233	# support --undefined.  This deserves some investigation.  FIXME
8234	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235      else
8236	ld_shlibs=no
8237      fi
8238      ;;
8239
8240    cygwin* | mingw* | pw32*)
8241      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8242      # as there is no search path for DLLs.
8243      hardcode_libdir_flag_spec='-L$libdir'
8244      allow_undefined_flag=unsupported
8245      always_export_symbols=no
8246      enable_shared_with_static_runtimes=yes
8247      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8248
8249      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8250        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8251	# If the export-symbols file already is a .def file (1st line
8252	# is EXPORTS), use it as is; otherwise, prepend...
8253	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8254	  cp $export_symbols $output_objdir/$soname.def;
8255	else
8256	  echo EXPORTS > $output_objdir/$soname.def;
8257	  cat $export_symbols >> $output_objdir/$soname.def;
8258	fi~
8259	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8260      else
8261	ld_shlibs=no
8262      fi
8263      ;;
8264
8265    interix[3-9]*)
8266      hardcode_direct=no
8267      hardcode_shlibpath_var=no
8268      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8269      export_dynamic_flag_spec='${wl}-E'
8270      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8271      # Instead, shared libraries are loaded at an image base (0x10000000 by
8272      # default) and relocated if they conflict, which is a slow very memory
8273      # consuming and fragmenting process.  To avoid this, we pick a random,
8274      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8275      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8276      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8277      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'
8278      ;;
8279
8280    gnu* | linux* | k*bsd*-gnu)
8281      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8282	tmp_addflag=
8283	case $cc_basename,$host_cpu in
8284	pgcc*)				# Portland Group C compiler
8285	  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'
8286	  tmp_addflag=' $pic_flag'
8287	  ;;
8288	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8289	  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'
8290	  tmp_addflag=' $pic_flag -Mnomain' ;;
8291	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8292	  tmp_addflag=' -i_dynamic' ;;
8293	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8294	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8295	ifc* | ifort*)			# Intel Fortran compiler
8296	  tmp_addflag=' -nofor_main' ;;
8297	esac
8298	case `$CC -V 2>&1 | sed 5q` in
8299	*Sun\ C*)			# Sun C 5.9
8300	  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'
8301	  tmp_sharedflag='-G' ;;
8302	*Sun\ F*)			# Sun Fortran 8.3
8303	  tmp_sharedflag='-G' ;;
8304	*)
8305	  tmp_sharedflag='-shared' ;;
8306	esac
8307	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308
8309	if test $supports_anon_versioning = yes; then
8310	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8311  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8312  $echo "local: *; };" >> $output_objdir/$libname.ver~
8313	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8314	fi
8315      else
8316	ld_shlibs=no
8317      fi
8318      ;;
8319
8320    netbsd*)
8321      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8323	wlarc=
8324      else
8325	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8326	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8327      fi
8328      ;;
8329
8330    solaris*)
8331      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8332	ld_shlibs=no
8333	cat <<EOF 1>&2
8334
8335*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8336*** create shared libraries on Solaris systems.  Therefore, libtool
8337*** is disabling shared libraries support.  We urge you to upgrade GNU
8338*** binutils to release 2.9.1 or newer.  Another option is to modify
8339*** your PATH or compiler configuration so that the native linker is
8340*** used, and then restart.
8341
8342EOF
8343      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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      else
8347	ld_shlibs=no
8348      fi
8349      ;;
8350
8351    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8352      case `$LD -v 2>&1` in
8353        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8354	ld_shlibs=no
8355	cat <<_LT_EOF 1>&2
8356
8357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8358*** reliably create shared libraries on SCO systems.  Therefore, libtool
8359*** is disabling shared libraries support.  We urge you to upgrade GNU
8360*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8361*** your PATH or compiler configuration so that the native linker is
8362*** used, and then restart.
8363
8364_LT_EOF
8365	;;
8366	*)
8367	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8368	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8369	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8370	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8371	  else
8372	    ld_shlibs=no
8373	  fi
8374	;;
8375      esac
8376      ;;
8377
8378    sunos4*)
8379      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8380      wlarc=
8381      hardcode_direct=yes
8382      hardcode_shlibpath_var=no
8383      ;;
8384
8385    *)
8386      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8387	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8389      else
8390	ld_shlibs=no
8391      fi
8392      ;;
8393    esac
8394
8395    if test "$ld_shlibs" = no; then
8396      runpath_var=
8397      hardcode_libdir_flag_spec=
8398      export_dynamic_flag_spec=
8399      whole_archive_flag_spec=
8400    fi
8401  else
8402    # PORTME fill in a description of your system's linker (not GNU ld)
8403    case $host_os in
8404    aix3*)
8405      allow_undefined_flag=unsupported
8406      always_export_symbols=yes
8407      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'
8408      # Note: this linker hardcodes the directories in LIBPATH if there
8409      # are no directories specified by -L.
8410      hardcode_minus_L=yes
8411      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8412	# Neither direct hardcoding nor static linking is supported with a
8413	# broken collect2.
8414	hardcode_direct=unsupported
8415      fi
8416      ;;
8417
8418    aix[4-9]*)
8419      if test "$host_cpu" = ia64; then
8420	# On IA64, the linker does run time linking by default, so we don't
8421	# have to do anything special.
8422	aix_use_runtimelinking=no
8423	exp_sym_flag='-Bexport'
8424	no_entry_flag=""
8425      else
8426	# If we're using GNU nm, then we don't want the "-C" option.
8427	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8428	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8429	  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'
8430	else
8431	  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'
8432	fi
8433	aix_use_runtimelinking=no
8434
8435	# Test if we are trying to use run time linking or normal
8436	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8437	# need to do runtime linking.
8438	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8439	  for ld_flag in $LDFLAGS; do
8440  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8441  	    aix_use_runtimelinking=yes
8442  	    break
8443  	  fi
8444	  done
8445	  ;;
8446	esac
8447
8448	exp_sym_flag='-bexport'
8449	no_entry_flag='-bnoentry'
8450      fi
8451
8452      # When large executables or shared objects are built, AIX ld can
8453      # have problems creating the table of contents.  If linking a library
8454      # or program results in "error TOC overflow" add -mminimal-toc to
8455      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8456      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8457
8458      archive_cmds=''
8459      hardcode_direct=yes
8460      hardcode_libdir_separator=':'
8461      link_all_deplibs=yes
8462
8463      if test "$GCC" = yes; then
8464	case $host_os in aix4.[012]|aix4.[012].*)
8465	# We only want to do this on AIX 4.2 and lower, the check
8466	# below for broken collect2 doesn't work under 4.3+
8467	  collect2name=`${CC} -print-prog-name=collect2`
8468	  if test -f "$collect2name" && \
8469  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8470	  then
8471  	  # We have reworked collect2
8472  	  :
8473	  else
8474  	  # We have old collect2
8475  	  hardcode_direct=unsupported
8476  	  # It fails to find uninstalled libraries when the uninstalled
8477  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8478  	  # to unsupported forces relinking
8479  	  hardcode_minus_L=yes
8480  	  hardcode_libdir_flag_spec='-L$libdir'
8481  	  hardcode_libdir_separator=
8482	  fi
8483	  ;;
8484	esac
8485	shared_flag='-shared'
8486	if test "$aix_use_runtimelinking" = yes; then
8487	  shared_flag="$shared_flag "'${wl}-G'
8488	fi
8489      else
8490	# not using gcc
8491	if test "$host_cpu" = ia64; then
8492  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8493  	# chokes on -Wl,-G. The following line is correct:
8494	  shared_flag='-G'
8495	else
8496	  if test "$aix_use_runtimelinking" = yes; then
8497	    shared_flag='${wl}-G'
8498	  else
8499	    shared_flag='${wl}-bM:SRE'
8500	  fi
8501	fi
8502      fi
8503
8504      # It seems that -bexpall does not export symbols beginning with
8505      # underscore (_), so it is better to generate a list of symbols to export.
8506      always_export_symbols=yes
8507      if test "$aix_use_runtimelinking" = yes; then
8508	# Warning - without using the other runtime loading flags (-brtl),
8509	# -berok will link without error, but may produce a broken library.
8510	allow_undefined_flag='-berok'
8511       # Determine the default libpath from the value encoded in an empty executable.
8512       cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h.  */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h.  */
8518
8519int
8520main ()
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (ac_try="$ac_link"
8529case "(($ac_try" in
8530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531  *) ac_try_echo=$ac_try;;
8532esac
8533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
8535  (eval "$ac_link") 2>conftest.er1
8536  ac_status=$?
8537  grep -v '^ *+' conftest.er1 >conftest.err
8538  rm -f conftest.er1
8539  cat conftest.err >&5
8540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); } && {
8542	 test -z "$ac_c_werror_flag" ||
8543	 test ! -s conftest.err
8544       } && test -s conftest$ac_exeext && {
8545	 test "$cross_compiling" = yes ||
8546	 $as_test_x conftest$ac_exeext
8547       }; then
8548
8549lt_aix_libpath_sed='
8550    /Import File Strings/,/^$/ {
8551	/^0/ {
8552	    s/^0  *\(.*\)$/\1/
8553	    p
8554	}
8555    }'
8556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8557# Check for a 64-bit object if we didn't find anything.
8558if test -z "$aix_libpath"; then
8559  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8560fi
8561else
8562  $as_echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566fi
8567
8568rm -rf conftest.dSYM
8569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8570      conftest$ac_exeext conftest.$ac_ext
8571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572
8573       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8574	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"
8575       else
8576	if test "$host_cpu" = ia64; then
8577	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8578	  allow_undefined_flag="-z nodefs"
8579	  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"
8580	else
8581	 # Determine the default libpath from the value encoded in an empty executable.
8582	 cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h.  */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h.  */
8588
8589int
8590main ()
8591{
8592
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601  *) ac_try_echo=$ac_try;;
8602esac
8603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8604$as_echo "$ac_try_echo") >&5
8605  (eval "$ac_link") 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } && {
8612	 test -z "$ac_c_werror_flag" ||
8613	 test ! -s conftest.err
8614       } && test -s conftest$ac_exeext && {
8615	 test "$cross_compiling" = yes ||
8616	 $as_test_x conftest$ac_exeext
8617       }; then
8618
8619lt_aix_libpath_sed='
8620    /Import File Strings/,/^$/ {
8621	/^0/ {
8622	    s/^0  *\(.*\)$/\1/
8623	    p
8624	}
8625    }'
8626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627# Check for a 64-bit object if we didn't find anything.
8628if test -z "$aix_libpath"; then
8629  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630fi
8631else
8632  $as_echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635
8636fi
8637
8638rm -rf conftest.dSYM
8639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8640      conftest$ac_exeext conftest.$ac_ext
8641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642
8643	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8644	  # Warning - without using the other run time loading flags,
8645	  # -berok will link without error, but may produce a broken library.
8646	  no_undefined_flag=' ${wl}-bernotok'
8647	  allow_undefined_flag=' ${wl}-berok'
8648	  # Exported symbols can be pulled into shared objects from archives
8649	  whole_archive_flag_spec='$convenience'
8650	  archive_cmds_need_lc=yes
8651	  # This is similar to how AIX traditionally builds its shared libraries.
8652	  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'
8653	fi
8654      fi
8655      ;;
8656
8657    amigaos*)
8658      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)'
8659      hardcode_libdir_flag_spec='-L$libdir'
8660      hardcode_minus_L=yes
8661      # see comment about different semantics on the GNU ld section
8662      ld_shlibs=no
8663      ;;
8664
8665    bsdi[45]*)
8666      export_dynamic_flag_spec=-rdynamic
8667      ;;
8668
8669    cygwin* | mingw* | pw32*)
8670      # When not using gcc, we currently assume that we are using
8671      # Microsoft Visual C++.
8672      # hardcode_libdir_flag_spec is actually meaningless, as there is
8673      # no search path for DLLs.
8674      hardcode_libdir_flag_spec=' '
8675      allow_undefined_flag=unsupported
8676      # Tell ltmain to make .lib files, not .a files.
8677      libext=lib
8678      # Tell ltmain to make .dll files, not .so files.
8679      shrext_cmds=".dll"
8680      # FIXME: Setting linknames here is a bad hack.
8681      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8682      # The linker will automatically build a .lib file if we build a DLL.
8683      old_archive_From_new_cmds='true'
8684      # FIXME: Should let the user specify the lib program.
8685      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8686      fix_srcfile_path='`cygpath -w "$srcfile"`'
8687      enable_shared_with_static_runtimes=yes
8688      ;;
8689
8690    darwin* | rhapsody*)
8691      case $host_os in
8692        rhapsody* | darwin1.[012])
8693         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8694         ;;
8695       *) # Darwin 1.3 on
8696         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8697           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8698         else
8699           case ${MACOSX_DEPLOYMENT_TARGET} in
8700             10.[012])
8701               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8702               ;;
8703             10.*)
8704               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8705               ;;
8706           esac
8707         fi
8708         ;;
8709      esac
8710      archive_cmds_need_lc=no
8711      hardcode_direct=no
8712      hardcode_automatic=yes
8713      hardcode_shlibpath_var=unsupported
8714      whole_archive_flag_spec=''
8715      link_all_deplibs=yes
8716    if test "$GCC" = yes ; then
8717    	output_verbose_link_cmd='echo'
8718        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8719        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8720        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}"
8721        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}"
8722    else
8723      case $cc_basename in
8724        xlc*)
8725         output_verbose_link_cmd='echo'
8726         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8727         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8728          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8729         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}'
8730          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}'
8731          ;;
8732       *)
8733         ld_shlibs=no
8734          ;;
8735      esac
8736    fi
8737      ;;
8738
8739    dgux*)
8740      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741      hardcode_libdir_flag_spec='-L$libdir'
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    freebsd1*)
8746      ld_shlibs=no
8747      ;;
8748
8749    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8750    # support.  Future versions do this automatically, but an explicit c++rt0.o
8751    # does not break anything, and helps significantly (at the cost of a little
8752    # extra space).
8753    freebsd2.2*)
8754      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8755      hardcode_libdir_flag_spec='-R$libdir'
8756      hardcode_direct=yes
8757      hardcode_shlibpath_var=no
8758      ;;
8759
8760    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8761    freebsd2*)
8762      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763      hardcode_direct=yes
8764      hardcode_minus_L=yes
8765      hardcode_shlibpath_var=no
8766      ;;
8767
8768    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8769    freebsd* | dragonfly*)
8770      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8771      hardcode_libdir_flag_spec='-R$libdir'
8772      hardcode_direct=yes
8773      hardcode_shlibpath_var=no
8774      ;;
8775
8776    hpux9*)
8777      if test "$GCC" = yes; then
8778	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'
8779      else
8780	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'
8781      fi
8782      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8783      hardcode_libdir_separator=:
8784      hardcode_direct=yes
8785
8786      # hardcode_minus_L: Not really in the search PATH,
8787      # but as the default location of the library.
8788      hardcode_minus_L=yes
8789      export_dynamic_flag_spec='${wl}-E'
8790      ;;
8791
8792    hpux10*)
8793      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8794	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8795      else
8796	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8797      fi
8798      if test "$with_gnu_ld" = no; then
8799	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8800	hardcode_libdir_separator=:
8801
8802	hardcode_direct=yes
8803	export_dynamic_flag_spec='${wl}-E'
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      fi
8809      ;;
8810
8811    hpux11*)
8812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8813	case $host_cpu in
8814	hppa*64*)
8815	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816	  ;;
8817	ia64*)
8818	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8819	  ;;
8820	*)
8821	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822	  ;;
8823	esac
8824      else
8825	case $host_cpu in
8826	hppa*64*)
8827	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828	  ;;
8829	ia64*)
8830	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8831	  ;;
8832	*)
8833	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834	  ;;
8835	esac
8836      fi
8837      if test "$with_gnu_ld" = no; then
8838	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839	hardcode_libdir_separator=:
8840
8841	case $host_cpu in
8842	hppa*64*|ia64*)
8843	  hardcode_libdir_flag_spec_ld='+b $libdir'
8844	  hardcode_direct=no
8845	  hardcode_shlibpath_var=no
8846	  ;;
8847	*)
8848	  hardcode_direct=yes
8849	  export_dynamic_flag_spec='${wl}-E'
8850
8851	  # hardcode_minus_L: Not really in the search PATH,
8852	  # but as the default location of the library.
8853	  hardcode_minus_L=yes
8854	  ;;
8855	esac
8856      fi
8857      ;;
8858
8859    irix5* | irix6* | nonstopux*)
8860      if test "$GCC" = yes; then
8861	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'
8862      else
8863	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'
8864	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8865      fi
8866      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867      hardcode_libdir_separator=:
8868      link_all_deplibs=yes
8869      ;;
8870
8871    netbsd*)
8872      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8873	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8874      else
8875	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8876      fi
8877      hardcode_libdir_flag_spec='-R$libdir'
8878      hardcode_direct=yes
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    newsos6)
8883      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884      hardcode_direct=yes
8885      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886      hardcode_libdir_separator=:
8887      hardcode_shlibpath_var=no
8888      ;;
8889
8890    openbsd*)
8891      if test -f /usr/libexec/ld.so; then
8892	hardcode_direct=yes
8893	hardcode_shlibpath_var=no
8894	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8895	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8896	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8897	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8898	  export_dynamic_flag_spec='${wl}-E'
8899	else
8900	  case $host_os in
8901	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8902	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8903	     hardcode_libdir_flag_spec='-R$libdir'
8904	     ;;
8905	   *)
8906	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8907	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908	     ;;
8909	  esac
8910        fi
8911      else
8912	ld_shlibs=no
8913      fi
8914      ;;
8915
8916    os2*)
8917      hardcode_libdir_flag_spec='-L$libdir'
8918      hardcode_minus_L=yes
8919      allow_undefined_flag=unsupported
8920      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'
8921      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8922      ;;
8923
8924    osf3*)
8925      if test "$GCC" = yes; then
8926	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8927	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'
8928      else
8929	allow_undefined_flag=' -expect_unresolved \*'
8930	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'
8931      fi
8932      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933      hardcode_libdir_separator=:
8934      ;;
8935
8936    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8937      if test "$GCC" = yes; then
8938	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8939	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'
8940	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941      else
8942	allow_undefined_flag=' -expect_unresolved \*'
8943	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'
8944	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8945	$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'
8946
8947	# Both c and cxx compiler support -rpath directly
8948	hardcode_libdir_flag_spec='-rpath $libdir'
8949      fi
8950      hardcode_libdir_separator=:
8951      ;;
8952
8953    solaris*)
8954      no_undefined_flag=' -z text'
8955      if test "$GCC" = yes; then
8956	wlarc='${wl}'
8957	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8959	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8960      else
8961	wlarc=''
8962	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8964  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965      fi
8966      hardcode_libdir_flag_spec='-R$libdir'
8967      hardcode_shlibpath_var=no
8968      case $host_os in
8969      solaris2.[0-5] | solaris2.[0-5].*) ;;
8970      *)
8971	# The compiler driver will combine and reorder linker options,
8972	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8973	# but is careful enough not to reorder.
8974 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8975	if test "$GCC" = yes; then
8976	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8977	else
8978	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8979	fi
8980	;;
8981      esac
8982      link_all_deplibs=yes
8983      ;;
8984
8985    sunos4*)
8986      if test "x$host_vendor" = xsequent; then
8987	# Use $CC to link under sequent, because it throws in some extra .o
8988	# files that make .init and .fini sections work.
8989	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8990      else
8991	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8992      fi
8993      hardcode_libdir_flag_spec='-L$libdir'
8994      hardcode_direct=yes
8995      hardcode_minus_L=yes
8996      hardcode_shlibpath_var=no
8997      ;;
8998
8999    sysv4)
9000      case $host_vendor in
9001	sni)
9002	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003	  hardcode_direct=yes # is this really true???
9004	;;
9005	siemens)
9006	  ## LD is ld it makes a PLAMLIB
9007	  ## CC just makes a GrossModule.
9008	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9009	  reload_cmds='$CC -r -o $output$reload_objs'
9010	  hardcode_direct=no
9011        ;;
9012	motorola)
9013	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9015	;;
9016      esac
9017      runpath_var='LD_RUN_PATH'
9018      hardcode_shlibpath_var=no
9019      ;;
9020
9021    sysv4.3*)
9022      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023      hardcode_shlibpath_var=no
9024      export_dynamic_flag_spec='-Bexport'
9025      ;;
9026
9027    sysv4*MP*)
9028      if test -d /usr/nec; then
9029	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030	hardcode_shlibpath_var=no
9031	runpath_var=LD_RUN_PATH
9032	hardcode_runpath_var=yes
9033	ld_shlibs=yes
9034      fi
9035      ;;
9036
9037    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9038      no_undefined_flag='${wl}-z,text'
9039      archive_cmds_need_lc=no
9040      hardcode_shlibpath_var=no
9041      runpath_var='LD_RUN_PATH'
9042
9043      if test "$GCC" = yes; then
9044	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046      else
9047	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049      fi
9050      ;;
9051
9052    sysv5* | sco3.2v5* | sco5v6*)
9053      # Note: We can NOT use -z defs as we might desire, because we do not
9054      # link with -lc, and that would cause any symbols used from libc to
9055      # always be unresolved, which means just about no library would
9056      # ever link correctly.  If we're not using GNU ld we use -z text
9057      # though, which does catch some bad symbols but isn't as heavy-handed
9058      # as -z defs.
9059      no_undefined_flag='${wl}-z,text'
9060      allow_undefined_flag='${wl}-z,nodefs'
9061      archive_cmds_need_lc=no
9062      hardcode_shlibpath_var=no
9063      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9064      hardcode_libdir_separator=':'
9065      link_all_deplibs=yes
9066      export_dynamic_flag_spec='${wl}-Bexport'
9067      runpath_var='LD_RUN_PATH'
9068
9069      if test "$GCC" = yes; then
9070	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072      else
9073	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075      fi
9076      ;;
9077
9078    uts4*)
9079      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080      hardcode_libdir_flag_spec='-L$libdir'
9081      hardcode_shlibpath_var=no
9082      ;;
9083
9084    *)
9085      ld_shlibs=no
9086      ;;
9087    esac
9088  fi
9089
9090{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9091$as_echo "$ld_shlibs" >&6; }
9092test "$ld_shlibs" = no && can_build_shared=no
9093
9094#
9095# Do we need to explicitly link libc?
9096#
9097case "x$archive_cmds_need_lc" in
9098x|xyes)
9099  # Assume -lc should be added
9100  archive_cmds_need_lc=yes
9101
9102  if test "$enable_shared" = yes && test "$GCC" = yes; then
9103    case $archive_cmds in
9104    *'~'*)
9105      # FIXME: we may have to deal with multi-command sequences.
9106      ;;
9107    '$CC '*)
9108      # Test whether the compiler implicitly links with -lc since on some
9109      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9110      # to ld, don't add -lc before -lgcc.
9111      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9112$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9113      $rm conftest*
9114      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115
9116      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117  (eval $ac_compile) 2>&5
9118  ac_status=$?
9119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); } 2>conftest.err; then
9121        soname=conftest
9122        lib=conftest
9123        libobjs=conftest.$ac_objext
9124        deplibs=
9125        wl=$lt_prog_compiler_wl
9126	pic_flag=$lt_prog_compiler_pic
9127        compiler_flags=-v
9128        linker_flags=-v
9129        verstring=
9130        output_objdir=.
9131        libname=conftest
9132        lt_save_allow_undefined_flag=$allow_undefined_flag
9133        allow_undefined_flag=
9134        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9135  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9136  ac_status=$?
9137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138  (exit $ac_status); }
9139        then
9140	  archive_cmds_need_lc=no
9141        else
9142	  archive_cmds_need_lc=yes
9143        fi
9144        allow_undefined_flag=$lt_save_allow_undefined_flag
9145      else
9146        cat conftest.err 1>&5
9147      fi
9148      $rm conftest*
9149      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9150$as_echo "$archive_cmds_need_lc" >&6; }
9151      ;;
9152    esac
9153  fi
9154  ;;
9155esac
9156
9157{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9158$as_echo_n "checking dynamic linker characteristics... " >&6; }
9159library_names_spec=
9160libname_spec='lib$name'
9161soname_spec=
9162shrext_cmds=".so"
9163postinstall_cmds=
9164postuninstall_cmds=
9165finish_cmds=
9166finish_eval=
9167shlibpath_var=
9168shlibpath_overrides_runpath=unknown
9169version_type=none
9170dynamic_linker="$host_os ld.so"
9171sys_lib_dlsearch_path_spec="/lib /usr/lib"
9172
9173if test "$GCC" = yes; then
9174  case $host_os in
9175    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9176    *) lt_awk_arg="/^libraries:/" ;;
9177  esac
9178  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9179  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9180    # if the path contains ";" then we assume it to be the separator
9181    # otherwise default to the standard path separator (i.e. ":") - it is
9182    # assumed that no part of a normal pathname contains ";" but that should
9183    # okay in the real world where ";" in dirpaths is itself problematic.
9184    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9185  else
9186    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9187  fi
9188  # Ok, now we have the path, separated by spaces, we can step through it
9189  # and add multilib dir if necessary.
9190  lt_tmp_lt_search_path_spec=
9191  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9192  for lt_sys_path in $lt_search_path_spec; do
9193    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9194      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9195    else
9196      test -d "$lt_sys_path" && \
9197	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9198    fi
9199  done
9200  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9201BEGIN {RS=" "; FS="/|\n";} {
9202  lt_foo="";
9203  lt_count=0;
9204  for (lt_i = NF; lt_i > 0; lt_i--) {
9205    if ($lt_i != "" && $lt_i != ".") {
9206      if ($lt_i == "..") {
9207        lt_count++;
9208      } else {
9209        if (lt_count == 0) {
9210          lt_foo="/" $lt_i lt_foo;
9211        } else {
9212          lt_count--;
9213        }
9214      }
9215    }
9216  }
9217  if (lt_foo != "") { lt_freq[lt_foo]++; }
9218  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9219}'`
9220  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9221else
9222  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9223fi
9224need_lib_prefix=unknown
9225hardcode_into_libs=no
9226
9227# when you set need_version to no, make sure it does not cause -set_version
9228# flags to be left without arguments
9229need_version=unknown
9230
9231case $host_os in
9232aix3*)
9233  version_type=linux
9234  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9235  shlibpath_var=LIBPATH
9236
9237  # AIX 3 has no versioning support, so we append a major version to the name.
9238  soname_spec='${libname}${release}${shared_ext}$major'
9239  ;;
9240
9241aix[4-9]*)
9242  version_type=linux
9243  need_lib_prefix=no
9244  need_version=no
9245  hardcode_into_libs=yes
9246  if test "$host_cpu" = ia64; then
9247    # AIX 5 supports IA64
9248    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9249    shlibpath_var=LD_LIBRARY_PATH
9250  else
9251    # With GCC up to 2.95.x, collect2 would create an import file
9252    # for dependence libraries.  The import file would start with
9253    # the line `#! .'.  This would cause the generated library to
9254    # depend on `.', always an invalid library.  This was fixed in
9255    # development snapshots of GCC prior to 3.0.
9256    case $host_os in
9257      aix4 | aix4.[01] | aix4.[01].*)
9258      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9259	   echo ' yes '
9260	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9261	:
9262      else
9263	can_build_shared=no
9264      fi
9265      ;;
9266    esac
9267    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9268    # soname into executable. Probably we can add versioning support to
9269    # collect2, so additional links can be useful in future.
9270    if test "$aix_use_runtimelinking" = yes; then
9271      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9272      # instead of lib<name>.a to let people know that these are not
9273      # typical AIX shared libraries.
9274      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275    else
9276      # We preserve .a as extension for shared libraries through AIX4.2
9277      # and later when we are not doing run time linking.
9278      library_names_spec='${libname}${release}.a $libname.a'
9279      soname_spec='${libname}${release}${shared_ext}$major'
9280    fi
9281    shlibpath_var=LIBPATH
9282  fi
9283  ;;
9284
9285amigaos*)
9286  library_names_spec='$libname.ixlibrary $libname.a'
9287  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9288  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'
9289  ;;
9290
9291beos*)
9292  library_names_spec='${libname}${shared_ext}'
9293  dynamic_linker="$host_os ld.so"
9294  shlibpath_var=LIBRARY_PATH
9295  ;;
9296
9297bsdi[45]*)
9298  version_type=linux
9299  need_version=no
9300  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9303  shlibpath_var=LD_LIBRARY_PATH
9304  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9305  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9306  # the default ld.so.conf also contains /usr/contrib/lib and
9307  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9308  # libtool to hard-code these into programs
9309  ;;
9310
9311cygwin* | mingw* | pw32*)
9312  version_type=windows
9313  shrext_cmds=".dll"
9314  need_version=no
9315  need_lib_prefix=no
9316
9317  case $GCC,$host_os in
9318  yes,cygwin* | yes,mingw* | yes,pw32*)
9319    library_names_spec='$libname.dll.a'
9320    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9321    postinstall_cmds='base_file=`basename \${file}`~
9322      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9323      dldir=$destdir/`dirname \$dlpath`~
9324      test -d \$dldir || mkdir -p \$dldir~
9325      $install_prog $dir/$dlname \$dldir/$dlname~
9326      chmod a+x \$dldir/$dlname'
9327    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9328      dlpath=$dir/\$dldll~
9329       $rm \$dlpath'
9330    shlibpath_overrides_runpath=yes
9331
9332    case $host_os in
9333    cygwin*)
9334      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9335      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9337      ;;
9338    mingw*)
9339      # MinGW DLLs use traditional 'lib' prefix
9340      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9341      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9342      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9343        # It is most probably a Windows format PATH printed by
9344        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9345        # path with ; separators, and with drive letters. We can handle the
9346        # drive letters (cygwin fileutils understands them), so leave them,
9347        # especially as we might pass files found there to a mingw objdump,
9348        # which wouldn't understand a cygwinified path. Ahh.
9349        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9350      else
9351        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9352      fi
9353      ;;
9354    pw32*)
9355      # pw32 DLLs use 'pw' prefix rather than 'lib'
9356      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9357      ;;
9358    esac
9359    ;;
9360
9361  *)
9362    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9363    ;;
9364  esac
9365  dynamic_linker='Win32 ld.exe'
9366  # FIXME: first we should search . and the directory the executable is in
9367  shlibpath_var=PATH
9368  ;;
9369
9370darwin* | rhapsody*)
9371  dynamic_linker="$host_os dyld"
9372  version_type=darwin
9373  need_lib_prefix=no
9374  need_version=no
9375  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9376  soname_spec='${libname}${release}${major}$shared_ext'
9377  shlibpath_overrides_runpath=yes
9378  shlibpath_var=DYLD_LIBRARY_PATH
9379  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9380
9381  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9382  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9383  ;;
9384
9385dgux*)
9386  version_type=linux
9387  need_lib_prefix=no
9388  need_version=no
9389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9390  soname_spec='${libname}${release}${shared_ext}$major'
9391  shlibpath_var=LD_LIBRARY_PATH
9392  ;;
9393
9394freebsd1*)
9395  dynamic_linker=no
9396  ;;
9397
9398freebsd* | dragonfly*)
9399  # DragonFly does not have aout.  When/if they implement a new
9400  # versioning mechanism, adjust this.
9401  if test -x /usr/bin/objformat; then
9402    objformat=`/usr/bin/objformat`
9403  else
9404    case $host_os in
9405    freebsd[123]*) objformat=aout ;;
9406    *) objformat=elf ;;
9407    esac
9408  fi
9409  version_type=freebsd-$objformat
9410  case $version_type in
9411    freebsd-elf*)
9412      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9413      need_version=no
9414      need_lib_prefix=no
9415      ;;
9416    freebsd-*)
9417      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9418      need_version=yes
9419      ;;
9420  esac
9421  shlibpath_var=LD_LIBRARY_PATH
9422  case $host_os in
9423  freebsd2*)
9424    shlibpath_overrides_runpath=yes
9425    ;;
9426  freebsd3.[01]* | freebsdelf3.[01]*)
9427    shlibpath_overrides_runpath=yes
9428    hardcode_into_libs=yes
9429    ;;
9430  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9431  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9432    shlibpath_overrides_runpath=no
9433    hardcode_into_libs=yes
9434    ;;
9435  *) # from 4.6 on, and DragonFly
9436    shlibpath_overrides_runpath=yes
9437    hardcode_into_libs=yes
9438    ;;
9439  esac
9440  ;;
9441
9442gnu*)
9443  version_type=linux
9444  need_lib_prefix=no
9445  need_version=no
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  shlibpath_var=LD_LIBRARY_PATH
9449  hardcode_into_libs=yes
9450  ;;
9451
9452hpux9* | hpux10* | hpux11*)
9453  # Give a soname corresponding to the major version so that dld.sl refuses to
9454  # link against other versions.
9455  version_type=sunos
9456  need_lib_prefix=no
9457  need_version=no
9458  case $host_cpu in
9459  ia64*)
9460    shrext_cmds='.so'
9461    hardcode_into_libs=yes
9462    dynamic_linker="$host_os dld.so"
9463    shlibpath_var=LD_LIBRARY_PATH
9464    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
9468      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9469    else
9470      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9471    fi
9472    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9473    ;;
9474   hppa*64*)
9475     shrext_cmds='.sl'
9476     hardcode_into_libs=yes
9477     dynamic_linker="$host_os dld.sl"
9478     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481     soname_spec='${libname}${release}${shared_ext}$major'
9482     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9484     ;;
9485   *)
9486    shrext_cmds='.sl'
9487    dynamic_linker="$host_os dld.sl"
9488    shlibpath_var=SHLIB_PATH
9489    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491    soname_spec='${libname}${release}${shared_ext}$major'
9492    ;;
9493  esac
9494  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9495  postinstall_cmds='chmod 555 $lib'
9496  ;;
9497
9498interix[3-9]*)
9499  version_type=linux
9500  need_lib_prefix=no
9501  need_version=no
9502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9503  soname_spec='${libname}${release}${shared_ext}$major'
9504  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9505  shlibpath_var=LD_LIBRARY_PATH
9506  shlibpath_overrides_runpath=no
9507  hardcode_into_libs=yes
9508  ;;
9509
9510irix5* | irix6* | nonstopux*)
9511  case $host_os in
9512    nonstopux*) version_type=nonstopux ;;
9513    *)
9514	if test "$lt_cv_prog_gnu_ld" = yes; then
9515		version_type=linux
9516	else
9517		version_type=irix
9518	fi ;;
9519  esac
9520  need_lib_prefix=no
9521  need_version=no
9522  soname_spec='${libname}${release}${shared_ext}$major'
9523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9524  case $host_os in
9525  irix5* | nonstopux*)
9526    libsuff= shlibsuff=
9527    ;;
9528  *)
9529    case $LD in # libtool.m4 will add one of these switches to LD
9530    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9531      libsuff= shlibsuff= libmagic=32-bit;;
9532    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9533      libsuff=32 shlibsuff=N32 libmagic=N32;;
9534    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9535      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9536    *) libsuff= shlibsuff= libmagic=never-match;;
9537    esac
9538    ;;
9539  esac
9540  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9541  shlibpath_overrides_runpath=no
9542  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9543  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9544  hardcode_into_libs=yes
9545  ;;
9546
9547# No shared lib support for Linux oldld, aout, or coff.
9548linux*oldld* | linux*aout* | linux*coff*)
9549  dynamic_linker=no
9550  ;;
9551
9552# This must be Linux ELF.
9553linux* | k*bsd*-gnu)
9554  version_type=linux
9555  need_lib_prefix=no
9556  need_version=no
9557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558  soname_spec='${libname}${release}${shared_ext}$major'
9559  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9560  shlibpath_var=LD_LIBRARY_PATH
9561  shlibpath_overrides_runpath=no
9562  # This implies no fast_install, which is unacceptable.
9563  # Some rework will be needed to allow for fast_install
9564  # before this can be enabled.
9565  hardcode_into_libs=yes
9566  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9567  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9568
9569  # Append ld.so.conf contents to the search path
9570  if test -f /etc/ld.so.conf; then
9571    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' ' '`
9572    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9573  fi
9574
9575  # We used to test for /lib/ld.so.1 and disable shared libraries on
9576  # powerpc, because MkLinux only supported shared libraries with the
9577  # GNU dynamic linker.  Since this was broken with cross compilers,
9578  # most powerpc-linux boxes support dynamic linking these days and
9579  # people can always --disable-shared, the test was removed, and we
9580  # assume the GNU/Linux dynamic linker is in use.
9581  dynamic_linker='GNU/Linux ld.so'
9582  ;;
9583
9584netbsd*)
9585  version_type=sunos
9586  need_lib_prefix=no
9587  need_version=no
9588  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9591    dynamic_linker='NetBSD (a.out) ld.so'
9592  else
9593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9594    soname_spec='${libname}${release}${shared_ext}$major'
9595    dynamic_linker='NetBSD ld.elf_so'
9596  fi
9597  shlibpath_var=LD_LIBRARY_PATH
9598  shlibpath_overrides_runpath=yes
9599  hardcode_into_libs=yes
9600  ;;
9601
9602newsos6)
9603  version_type=linux
9604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605  shlibpath_var=LD_LIBRARY_PATH
9606  shlibpath_overrides_runpath=yes
9607  ;;
9608
9609nto-qnx*)
9610  version_type=linux
9611  need_lib_prefix=no
9612  need_version=no
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  shlibpath_overrides_runpath=yes
9617  ;;
9618
9619openbsd*)
9620  version_type=sunos
9621  sys_lib_dlsearch_path_spec="/usr/lib"
9622  need_lib_prefix=no
9623  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9624  case $host_os in
9625    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9626    *)                         need_version=no  ;;
9627  esac
9628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9629  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9630  shlibpath_var=LD_LIBRARY_PATH
9631  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9632    case $host_os in
9633      openbsd2.[89] | openbsd2.[89].*)
9634	shlibpath_overrides_runpath=no
9635	;;
9636      *)
9637	shlibpath_overrides_runpath=yes
9638	;;
9639      esac
9640  else
9641    shlibpath_overrides_runpath=yes
9642  fi
9643  ;;
9644
9645os2*)
9646  libname_spec='$name'
9647  shrext_cmds=".dll"
9648  need_lib_prefix=no
9649  library_names_spec='$libname${shared_ext} $libname.a'
9650  dynamic_linker='OS/2 ld.exe'
9651  shlibpath_var=LIBPATH
9652  ;;
9653
9654osf3* | osf4* | osf5*)
9655  version_type=osf
9656  need_lib_prefix=no
9657  need_version=no
9658  soname_spec='${libname}${release}${shared_ext}$major'
9659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660  shlibpath_var=LD_LIBRARY_PATH
9661  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9662  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9663  ;;
9664
9665rdos*)
9666  dynamic_linker=no
9667  ;;
9668
9669solaris*)
9670  version_type=linux
9671  need_lib_prefix=no
9672  need_version=no
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674  soname_spec='${libname}${release}${shared_ext}$major'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  hardcode_into_libs=yes
9678  # ldd complains unless libraries are executable
9679  postinstall_cmds='chmod +x $lib'
9680  ;;
9681
9682sunos4*)
9683  version_type=sunos
9684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9685  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  shlibpath_overrides_runpath=yes
9688  if test "$with_gnu_ld" = yes; then
9689    need_lib_prefix=no
9690  fi
9691  need_version=yes
9692  ;;
9693
9694sysv4 | sysv4.3*)
9695  version_type=linux
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697  soname_spec='${libname}${release}${shared_ext}$major'
9698  shlibpath_var=LD_LIBRARY_PATH
9699  case $host_vendor in
9700    sni)
9701      shlibpath_overrides_runpath=no
9702      need_lib_prefix=no
9703      export_dynamic_flag_spec='${wl}-Blargedynsym'
9704      runpath_var=LD_RUN_PATH
9705      ;;
9706    siemens)
9707      need_lib_prefix=no
9708      ;;
9709    motorola)
9710      need_lib_prefix=no
9711      need_version=no
9712      shlibpath_overrides_runpath=no
9713      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9714      ;;
9715  esac
9716  ;;
9717
9718sysv4*MP*)
9719  if test -d /usr/nec ;then
9720    version_type=linux
9721    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9722    soname_spec='$libname${shared_ext}.$major'
9723    shlibpath_var=LD_LIBRARY_PATH
9724  fi
9725  ;;
9726
9727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9728  version_type=freebsd-elf
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  hardcode_into_libs=yes
9735  if test "$with_gnu_ld" = yes; then
9736    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9737    shlibpath_overrides_runpath=no
9738  else
9739    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9740    shlibpath_overrides_runpath=yes
9741    case $host_os in
9742      sco3.2v5*)
9743        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9744	;;
9745    esac
9746  fi
9747  sys_lib_dlsearch_path_spec='/usr/lib'
9748  ;;
9749
9750uts4*)
9751  version_type=linux
9752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753  soname_spec='${libname}${release}${shared_ext}$major'
9754  shlibpath_var=LD_LIBRARY_PATH
9755  ;;
9756
9757*)
9758  dynamic_linker=no
9759  ;;
9760esac
9761{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9762$as_echo "$dynamic_linker" >&6; }
9763test "$dynamic_linker" = no && can_build_shared=no
9764
9765if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9766  $as_echo_n "(cached) " >&6
9767else
9768  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9769fi
9770
9771sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9772if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9773  $as_echo_n "(cached) " >&6
9774else
9775  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9776fi
9777
9778sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9779
9780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781if test "$GCC" = yes; then
9782  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9783fi
9784
9785{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9786$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9787hardcode_action=
9788if test -n "$hardcode_libdir_flag_spec" || \
9789   test -n "$runpath_var" || \
9790   test "X$hardcode_automatic" = "Xyes" ; then
9791
9792  # We can hardcode non-existant directories.
9793  if test "$hardcode_direct" != no &&
9794     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9795     # have to relink, otherwise we might link with an installed library
9796     # when we should be linking with a yet-to-be-installed one
9797     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9798     test "$hardcode_minus_L" != no; then
9799    # Linking always hardcodes the temporary library directory.
9800    hardcode_action=relink
9801  else
9802    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9803    hardcode_action=immediate
9804  fi
9805else
9806  # We cannot hardcode anything, or else we can only hardcode existing
9807  # directories.
9808  hardcode_action=unsupported
9809fi
9810{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9811$as_echo "$hardcode_action" >&6; }
9812
9813if test "$hardcode_action" = relink; then
9814  # Fast installation is not supported
9815  enable_fast_install=no
9816elif test "$shlibpath_overrides_runpath" = yes ||
9817     test "$enable_shared" = no; then
9818  # Fast installation is not necessary
9819  enable_fast_install=needless
9820fi
9821
9822striplib=
9823old_striplib=
9824{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9825$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9826if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9827  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9828  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9829  { $as_echo "$as_me:$LINENO: result: yes" >&5
9830$as_echo "yes" >&6; }
9831else
9832# FIXME - insert some real tests, host_os isn't really good enough
9833  case $host_os in
9834   darwin*)
9835       if test -n "$STRIP" ; then
9836         striplib="$STRIP -x"
9837         old_striplib="$STRIP -S"
9838         { $as_echo "$as_me:$LINENO: result: yes" >&5
9839$as_echo "yes" >&6; }
9840       else
9841  { $as_echo "$as_me:$LINENO: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844       ;;
9845   *)
9846  { $as_echo "$as_me:$LINENO: result: no" >&5
9847$as_echo "no" >&6; }
9848    ;;
9849  esac
9850fi
9851
9852if test "x$enable_dlopen" != xyes; then
9853  enable_dlopen=unknown
9854  enable_dlopen_self=unknown
9855  enable_dlopen_self_static=unknown
9856else
9857  lt_cv_dlopen=no
9858  lt_cv_dlopen_libs=
9859
9860  case $host_os in
9861  beos*)
9862    lt_cv_dlopen="load_add_on"
9863    lt_cv_dlopen_libs=
9864    lt_cv_dlopen_self=yes
9865    ;;
9866
9867  mingw* | pw32*)
9868    lt_cv_dlopen="LoadLibrary"
9869    lt_cv_dlopen_libs=
9870   ;;
9871
9872  cygwin*)
9873    lt_cv_dlopen="dlopen"
9874    lt_cv_dlopen_libs=
9875   ;;
9876
9877  darwin*)
9878  # if libdl is installed we need to link against it
9879    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9880$as_echo_n "checking for dlopen in -ldl... " >&6; }
9881if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9882  $as_echo_n "(cached) " >&6
9883else
9884  ac_check_lib_save_LIBS=$LIBS
9885LIBS="-ldl  $LIBS"
9886cat >conftest.$ac_ext <<_ACEOF
9887/* confdefs.h.  */
9888_ACEOF
9889cat confdefs.h >>conftest.$ac_ext
9890cat >>conftest.$ac_ext <<_ACEOF
9891/* end confdefs.h.  */
9892
9893/* Override any GCC internal prototype to avoid an error.
9894   Use char because int might match the return type of a GCC
9895   builtin and then its argument prototype would still apply.  */
9896#ifdef __cplusplus
9897extern "C"
9898#endif
9899char dlopen ();
9900int
9901main ()
9902{
9903return dlopen ();
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908rm -f conftest.$ac_objext conftest$ac_exeext
9909if { (ac_try="$ac_link"
9910case "(($ac_try" in
9911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912  *) ac_try_echo=$ac_try;;
9913esac
9914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9915$as_echo "$ac_try_echo") >&5
9916  (eval "$ac_link") 2>conftest.er1
9917  ac_status=$?
9918  grep -v '^ *+' conftest.er1 >conftest.err
9919  rm -f conftest.er1
9920  cat conftest.err >&5
9921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); } && {
9923	 test -z "$ac_c_werror_flag" ||
9924	 test ! -s conftest.err
9925       } && test -s conftest$ac_exeext && {
9926	 test "$cross_compiling" = yes ||
9927	 $as_test_x conftest$ac_exeext
9928       }; then
9929  ac_cv_lib_dl_dlopen=yes
9930else
9931  $as_echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
9934	ac_cv_lib_dl_dlopen=no
9935fi
9936
9937rm -rf conftest.dSYM
9938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939      conftest$ac_exeext conftest.$ac_ext
9940LIBS=$ac_check_lib_save_LIBS
9941fi
9942{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9943$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9944if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9945  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9946else
9947
9948    lt_cv_dlopen="dyld"
9949    lt_cv_dlopen_libs=
9950    lt_cv_dlopen_self=yes
9951
9952fi
9953
9954   ;;
9955
9956  *)
9957    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9958$as_echo_n "checking for shl_load... " >&6; }
9959if test "${ac_cv_func_shl_load+set}" = set; then
9960  $as_echo_n "(cached) " >&6
9961else
9962  cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h.  */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h.  */
9968/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9970#define shl_load innocuous_shl_load
9971
9972/* System header to define __stub macros and hopefully few prototypes,
9973    which can conflict with char shl_load (); below.
9974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975    <limits.h> exists even on freestanding compilers.  */
9976
9977#ifdef __STDC__
9978# include <limits.h>
9979#else
9980# include <assert.h>
9981#endif
9982
9983#undef shl_load
9984
9985/* Override any GCC internal prototype to avoid an error.
9986   Use char because int might match the return type of a GCC
9987   builtin and then its argument prototype would still apply.  */
9988#ifdef __cplusplus
9989extern "C"
9990#endif
9991char shl_load ();
9992/* The GNU C library defines this for functions which it implements
9993    to always fail with ENOSYS.  Some functions are actually named
9994    something starting with __ and the normal name is an alias.  */
9995#if defined __stub_shl_load || defined __stub___shl_load
9996choke me
9997#endif
9998
9999int
10000main ()
10001{
10002return shl_load ();
10003  ;
10004  return 0;
10005}
10006_ACEOF
10007rm -f conftest.$ac_objext conftest$ac_exeext
10008if { (ac_try="$ac_link"
10009case "(($ac_try" in
10010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011  *) ac_try_echo=$ac_try;;
10012esac
10013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014$as_echo "$ac_try_echo") >&5
10015  (eval "$ac_link") 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } && {
10022	 test -z "$ac_c_werror_flag" ||
10023	 test ! -s conftest.err
10024       } && test -s conftest$ac_exeext && {
10025	 test "$cross_compiling" = yes ||
10026	 $as_test_x conftest$ac_exeext
10027       }; then
10028  ac_cv_func_shl_load=yes
10029else
10030  $as_echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
10033	ac_cv_func_shl_load=no
10034fi
10035
10036rm -rf conftest.dSYM
10037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038      conftest$ac_exeext conftest.$ac_ext
10039fi
10040{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10041$as_echo "$ac_cv_func_shl_load" >&6; }
10042if test "x$ac_cv_func_shl_load" = x""yes; then
10043  lt_cv_dlopen="shl_load"
10044else
10045  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10046$as_echo_n "checking for shl_load in -ldld... " >&6; }
10047if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10048  $as_echo_n "(cached) " >&6
10049else
10050  ac_check_lib_save_LIBS=$LIBS
10051LIBS="-ldld  $LIBS"
10052cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h.  */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h.  */
10058
10059/* Override any GCC internal prototype to avoid an error.
10060   Use char because int might match the return type of a GCC
10061   builtin and then its argument prototype would still apply.  */
10062#ifdef __cplusplus
10063extern "C"
10064#endif
10065char shl_load ();
10066int
10067main ()
10068{
10069return shl_load ();
10070  ;
10071  return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext conftest$ac_exeext
10075if { (ac_try="$ac_link"
10076case "(($ac_try" in
10077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078  *) ac_try_echo=$ac_try;;
10079esac
10080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081$as_echo "$ac_try_echo") >&5
10082  (eval "$ac_link") 2>conftest.er1
10083  ac_status=$?
10084  grep -v '^ *+' conftest.er1 >conftest.err
10085  rm -f conftest.er1
10086  cat conftest.err >&5
10087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); } && {
10089	 test -z "$ac_c_werror_flag" ||
10090	 test ! -s conftest.err
10091       } && test -s conftest$ac_exeext && {
10092	 test "$cross_compiling" = yes ||
10093	 $as_test_x conftest$ac_exeext
10094       }; then
10095  ac_cv_lib_dld_shl_load=yes
10096else
10097  $as_echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100	ac_cv_lib_dld_shl_load=no
10101fi
10102
10103rm -rf conftest.dSYM
10104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10105      conftest$ac_exeext conftest.$ac_ext
10106LIBS=$ac_check_lib_save_LIBS
10107fi
10108{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10109$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10110if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10111  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10112else
10113  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10114$as_echo_n "checking for dlopen... " >&6; }
10115if test "${ac_cv_func_dlopen+set}" = set; then
10116  $as_echo_n "(cached) " >&6
10117else
10118  cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h.  */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h.  */
10124/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10126#define dlopen innocuous_dlopen
10127
10128/* System header to define __stub macros and hopefully few prototypes,
10129    which can conflict with char dlopen (); below.
10130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131    <limits.h> exists even on freestanding compilers.  */
10132
10133#ifdef __STDC__
10134# include <limits.h>
10135#else
10136# include <assert.h>
10137#endif
10138
10139#undef dlopen
10140
10141/* Override any GCC internal prototype to avoid an error.
10142   Use char because int might match the return type of a GCC
10143   builtin and then its argument prototype would still apply.  */
10144#ifdef __cplusplus
10145extern "C"
10146#endif
10147char dlopen ();
10148/* The GNU C library defines this for functions which it implements
10149    to always fail with ENOSYS.  Some functions are actually named
10150    something starting with __ and the normal name is an alias.  */
10151#if defined __stub_dlopen || defined __stub___dlopen
10152choke me
10153#endif
10154
10155int
10156main ()
10157{
10158return dlopen ();
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163rm -f conftest.$ac_objext conftest$ac_exeext
10164if { (ac_try="$ac_link"
10165case "(($ac_try" in
10166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167  *) ac_try_echo=$ac_try;;
10168esac
10169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170$as_echo "$ac_try_echo") >&5
10171  (eval "$ac_link") 2>conftest.er1
10172  ac_status=$?
10173  grep -v '^ *+' conftest.er1 >conftest.err
10174  rm -f conftest.er1
10175  cat conftest.err >&5
10176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } && {
10178	 test -z "$ac_c_werror_flag" ||
10179	 test ! -s conftest.err
10180       } && test -s conftest$ac_exeext && {
10181	 test "$cross_compiling" = yes ||
10182	 $as_test_x conftest$ac_exeext
10183       }; then
10184  ac_cv_func_dlopen=yes
10185else
10186  $as_echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189	ac_cv_func_dlopen=no
10190fi
10191
10192rm -rf conftest.dSYM
10193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194      conftest$ac_exeext conftest.$ac_ext
10195fi
10196{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10197$as_echo "$ac_cv_func_dlopen" >&6; }
10198if test "x$ac_cv_func_dlopen" = x""yes; then
10199  lt_cv_dlopen="dlopen"
10200else
10201  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202$as_echo_n "checking for dlopen in -ldl... " >&6; }
10203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204  $as_echo_n "(cached) " >&6
10205else
10206  ac_check_lib_save_LIBS=$LIBS
10207LIBS="-ldl  $LIBS"
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h.  */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h.  */
10214
10215/* Override any GCC internal prototype to avoid an error.
10216   Use char because int might match the return type of a GCC
10217   builtin and then its argument prototype would still apply.  */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221char dlopen ();
10222int
10223main ()
10224{
10225return dlopen ();
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234  *) ac_try_echo=$ac_try;;
10235esac
10236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10237$as_echo "$ac_try_echo") >&5
10238  (eval "$ac_link") 2>conftest.er1
10239  ac_status=$?
10240  grep -v '^ *+' conftest.er1 >conftest.err
10241  rm -f conftest.er1
10242  cat conftest.err >&5
10243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244  (exit $ac_status); } && {
10245	 test -z "$ac_c_werror_flag" ||
10246	 test ! -s conftest.err
10247       } && test -s conftest$ac_exeext && {
10248	 test "$cross_compiling" = yes ||
10249	 $as_test_x conftest$ac_exeext
10250       }; then
10251  ac_cv_lib_dl_dlopen=yes
10252else
10253  $as_echo "$as_me: failed program was:" >&5
10254sed 's/^/| /' conftest.$ac_ext >&5
10255
10256	ac_cv_lib_dl_dlopen=no
10257fi
10258
10259rm -rf conftest.dSYM
10260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261      conftest$ac_exeext conftest.$ac_ext
10262LIBS=$ac_check_lib_save_LIBS
10263fi
10264{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10265$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10266if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10267  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268else
10269  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10270$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10271if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10272  $as_echo_n "(cached) " >&6
10273else
10274  ac_check_lib_save_LIBS=$LIBS
10275LIBS="-lsvld  $LIBS"
10276cat >conftest.$ac_ext <<_ACEOF
10277/* confdefs.h.  */
10278_ACEOF
10279cat confdefs.h >>conftest.$ac_ext
10280cat >>conftest.$ac_ext <<_ACEOF
10281/* end confdefs.h.  */
10282
10283/* Override any GCC internal prototype to avoid an error.
10284   Use char because int might match the return type of a GCC
10285   builtin and then its argument prototype would still apply.  */
10286#ifdef __cplusplus
10287extern "C"
10288#endif
10289char dlopen ();
10290int
10291main ()
10292{
10293return dlopen ();
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298rm -f conftest.$ac_objext conftest$ac_exeext
10299if { (ac_try="$ac_link"
10300case "(($ac_try" in
10301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302  *) ac_try_echo=$ac_try;;
10303esac
10304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305$as_echo "$ac_try_echo") >&5
10306  (eval "$ac_link") 2>conftest.er1
10307  ac_status=$?
10308  grep -v '^ *+' conftest.er1 >conftest.err
10309  rm -f conftest.er1
10310  cat conftest.err >&5
10311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); } && {
10313	 test -z "$ac_c_werror_flag" ||
10314	 test ! -s conftest.err
10315       } && test -s conftest$ac_exeext && {
10316	 test "$cross_compiling" = yes ||
10317	 $as_test_x conftest$ac_exeext
10318       }; then
10319  ac_cv_lib_svld_dlopen=yes
10320else
10321  $as_echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324	ac_cv_lib_svld_dlopen=no
10325fi
10326
10327rm -rf conftest.dSYM
10328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329      conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10333$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10334if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10335  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336else
10337  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10338$as_echo_n "checking for dld_link in -ldld... " >&6; }
10339if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10340  $as_echo_n "(cached) " >&6
10341else
10342  ac_check_lib_save_LIBS=$LIBS
10343LIBS="-ldld  $LIBS"
10344cat >conftest.$ac_ext <<_ACEOF
10345/* confdefs.h.  */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
10349/* end confdefs.h.  */
10350
10351/* Override any GCC internal prototype to avoid an error.
10352   Use char because int might match the return type of a GCC
10353   builtin and then its argument prototype would still apply.  */
10354#ifdef __cplusplus
10355extern "C"
10356#endif
10357char dld_link ();
10358int
10359main ()
10360{
10361return dld_link ();
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366rm -f conftest.$ac_objext conftest$ac_exeext
10367if { (ac_try="$ac_link"
10368case "(($ac_try" in
10369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370  *) ac_try_echo=$ac_try;;
10371esac
10372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373$as_echo "$ac_try_echo") >&5
10374  (eval "$ac_link") 2>conftest.er1
10375  ac_status=$?
10376  grep -v '^ *+' conftest.er1 >conftest.err
10377  rm -f conftest.er1
10378  cat conftest.err >&5
10379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); } && {
10381	 test -z "$ac_c_werror_flag" ||
10382	 test ! -s conftest.err
10383       } && test -s conftest$ac_exeext && {
10384	 test "$cross_compiling" = yes ||
10385	 $as_test_x conftest$ac_exeext
10386       }; then
10387  ac_cv_lib_dld_dld_link=yes
10388else
10389  $as_echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392	ac_cv_lib_dld_dld_link=no
10393fi
10394
10395rm -rf conftest.dSYM
10396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397      conftest$ac_exeext conftest.$ac_ext
10398LIBS=$ac_check_lib_save_LIBS
10399fi
10400{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10402if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10403  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10404fi
10405
10406
10407fi
10408
10409
10410fi
10411
10412
10413fi
10414
10415
10416fi
10417
10418
10419fi
10420
10421    ;;
10422  esac
10423
10424  if test "x$lt_cv_dlopen" != xno; then
10425    enable_dlopen=yes
10426  else
10427    enable_dlopen=no
10428  fi
10429
10430  case $lt_cv_dlopen in
10431  dlopen)
10432    save_CPPFLAGS="$CPPFLAGS"
10433    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10434
10435    save_LDFLAGS="$LDFLAGS"
10436    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10437
10438    save_LIBS="$LIBS"
10439    LIBS="$lt_cv_dlopen_libs $LIBS"
10440
10441    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10443if test "${lt_cv_dlopen_self+set}" = set; then
10444  $as_echo_n "(cached) " >&6
10445else
10446  	  if test "$cross_compiling" = yes; then :
10447  lt_cv_dlopen_self=cross
10448else
10449  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450  lt_status=$lt_dlunknown
10451  cat > conftest.$ac_ext <<EOF
10452#line 10452 "configure"
10453#include "confdefs.h"
10454
10455#if HAVE_DLFCN_H
10456#include <dlfcn.h>
10457#endif
10458
10459#include <stdio.h>
10460
10461#ifdef RTLD_GLOBAL
10462#  define LT_DLGLOBAL		RTLD_GLOBAL
10463#else
10464#  ifdef DL_GLOBAL
10465#    define LT_DLGLOBAL		DL_GLOBAL
10466#  else
10467#    define LT_DLGLOBAL		0
10468#  endif
10469#endif
10470
10471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472   find out it does not work in some platform. */
10473#ifndef LT_DLLAZY_OR_NOW
10474#  ifdef RTLD_LAZY
10475#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10476#  else
10477#    ifdef DL_LAZY
10478#      define LT_DLLAZY_OR_NOW		DL_LAZY
10479#    else
10480#      ifdef RTLD_NOW
10481#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10482#      else
10483#        ifdef DL_NOW
10484#          define LT_DLLAZY_OR_NOW	DL_NOW
10485#        else
10486#          define LT_DLLAZY_OR_NOW	0
10487#        endif
10488#      endif
10489#    endif
10490#  endif
10491#endif
10492
10493#ifdef __cplusplus
10494extern "C" void exit (int);
10495#endif
10496
10497void fnord() { int i=42;}
10498int main ()
10499{
10500  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501  int status = $lt_dlunknown;
10502
10503  if (self)
10504    {
10505      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10506      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507      /* dlclose (self); */
10508    }
10509  else
10510    puts (dlerror ());
10511
10512    exit (status);
10513}
10514EOF
10515  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516  (eval $ac_link) 2>&5
10517  ac_status=$?
10518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520    (./conftest; exit; ) >&5 2>/dev/null
10521    lt_status=$?
10522    case x$lt_status in
10523      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10526    esac
10527  else :
10528    # compilation failed
10529    lt_cv_dlopen_self=no
10530  fi
10531fi
10532rm -fr conftest*
10533
10534
10535fi
10536{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10537$as_echo "$lt_cv_dlopen_self" >&6; }
10538
10539    if test "x$lt_cv_dlopen_self" = xyes; then
10540      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10542$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10543if test "${lt_cv_dlopen_self_static+set}" = set; then
10544  $as_echo_n "(cached) " >&6
10545else
10546  	  if test "$cross_compiling" = yes; then :
10547  lt_cv_dlopen_self_static=cross
10548else
10549  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550  lt_status=$lt_dlunknown
10551  cat > conftest.$ac_ext <<EOF
10552#line 10552 "configure"
10553#include "confdefs.h"
10554
10555#if HAVE_DLFCN_H
10556#include <dlfcn.h>
10557#endif
10558
10559#include <stdio.h>
10560
10561#ifdef RTLD_GLOBAL
10562#  define LT_DLGLOBAL		RTLD_GLOBAL
10563#else
10564#  ifdef DL_GLOBAL
10565#    define LT_DLGLOBAL		DL_GLOBAL
10566#  else
10567#    define LT_DLGLOBAL		0
10568#  endif
10569#endif
10570
10571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572   find out it does not work in some platform. */
10573#ifndef LT_DLLAZY_OR_NOW
10574#  ifdef RTLD_LAZY
10575#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10576#  else
10577#    ifdef DL_LAZY
10578#      define LT_DLLAZY_OR_NOW		DL_LAZY
10579#    else
10580#      ifdef RTLD_NOW
10581#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10582#      else
10583#        ifdef DL_NOW
10584#          define LT_DLLAZY_OR_NOW	DL_NOW
10585#        else
10586#          define LT_DLLAZY_OR_NOW	0
10587#        endif
10588#      endif
10589#    endif
10590#  endif
10591#endif
10592
10593#ifdef __cplusplus
10594extern "C" void exit (int);
10595#endif
10596
10597void fnord() { int i=42;}
10598int main ()
10599{
10600  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10601  int status = $lt_dlunknown;
10602
10603  if (self)
10604    {
10605      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10606      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10607      /* dlclose (self); */
10608    }
10609  else
10610    puts (dlerror ());
10611
10612    exit (status);
10613}
10614EOF
10615  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616  (eval $ac_link) 2>&5
10617  ac_status=$?
10618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10620    (./conftest; exit; ) >&5 2>/dev/null
10621    lt_status=$?
10622    case x$lt_status in
10623      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10626    esac
10627  else :
10628    # compilation failed
10629    lt_cv_dlopen_self_static=no
10630  fi
10631fi
10632rm -fr conftest*
10633
10634
10635fi
10636{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10637$as_echo "$lt_cv_dlopen_self_static" >&6; }
10638    fi
10639
10640    CPPFLAGS="$save_CPPFLAGS"
10641    LDFLAGS="$save_LDFLAGS"
10642    LIBS="$save_LIBS"
10643    ;;
10644  esac
10645
10646  case $lt_cv_dlopen_self in
10647  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648  *) enable_dlopen_self=unknown ;;
10649  esac
10650
10651  case $lt_cv_dlopen_self_static in
10652  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653  *) enable_dlopen_self_static=unknown ;;
10654  esac
10655fi
10656
10657
10658# Report which library types will actually be built
10659{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10660$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10661{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10662$as_echo "$can_build_shared" >&6; }
10663
10664{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10665$as_echo_n "checking whether to build shared libraries... " >&6; }
10666test "$can_build_shared" = "no" && enable_shared=no
10667
10668# On AIX, shared libraries and static libraries use the same namespace, and
10669# are all built from PIC.
10670case $host_os in
10671aix3*)
10672  test "$enable_shared" = yes && enable_static=no
10673  if test -n "$RANLIB"; then
10674    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10675    postinstall_cmds='$RANLIB $lib'
10676  fi
10677  ;;
10678
10679aix[4-9]*)
10680  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10681    test "$enable_shared" = yes && enable_static=no
10682  fi
10683    ;;
10684esac
10685{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10686$as_echo "$enable_shared" >&6; }
10687
10688{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10689$as_echo_n "checking whether to build static libraries... " >&6; }
10690# Make sure either enable_shared or enable_static is yes.
10691test "$enable_shared" = yes || enable_static=yes
10692{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10693$as_echo "$enable_static" >&6; }
10694
10695# The else clause should only fire when bootstrapping the
10696# libtool distribution, otherwise you forgot to ship ltmain.sh
10697# with your package, and you will get complaints that there are
10698# no rules to generate ltmain.sh.
10699if test -f "$ltmain"; then
10700  # See if we are running on zsh, and set the options which allow our commands through
10701  # without removal of \ escapes.
10702  if test -n "${ZSH_VERSION+set}" ; then
10703    setopt NO_GLOB_SUBST
10704  fi
10705  # Now quote all the things that may contain metacharacters while being
10706  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10707  # variables and quote the copies for generation of the libtool script.
10708  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10709    SED SHELL STRIP \
10710    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10711    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10712    deplibs_check_method reload_flag reload_cmds need_locks \
10713    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10714    lt_cv_sys_global_symbol_to_c_name_address \
10715    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10716    old_postinstall_cmds old_postuninstall_cmds \
10717    compiler \
10718    CC \
10719    LD \
10720    lt_prog_compiler_wl \
10721    lt_prog_compiler_pic \
10722    lt_prog_compiler_static \
10723    lt_prog_compiler_no_builtin_flag \
10724    export_dynamic_flag_spec \
10725    thread_safe_flag_spec \
10726    whole_archive_flag_spec \
10727    enable_shared_with_static_runtimes \
10728    old_archive_cmds \
10729    old_archive_from_new_cmds \
10730    predep_objects \
10731    postdep_objects \
10732    predeps \
10733    postdeps \
10734    compiler_lib_search_path \
10735    compiler_lib_search_dirs \
10736    archive_cmds \
10737    archive_expsym_cmds \
10738    postinstall_cmds \
10739    postuninstall_cmds \
10740    old_archive_from_expsyms_cmds \
10741    allow_undefined_flag \
10742    no_undefined_flag \
10743    export_symbols_cmds \
10744    hardcode_libdir_flag_spec \
10745    hardcode_libdir_flag_spec_ld \
10746    hardcode_libdir_separator \
10747    hardcode_automatic \
10748    module_cmds \
10749    module_expsym_cmds \
10750    lt_cv_prog_compiler_c_o \
10751    fix_srcfile_path \
10752    exclude_expsyms \
10753    include_expsyms; do
10754
10755    case $var in
10756    old_archive_cmds | \
10757    old_archive_from_new_cmds | \
10758    archive_cmds | \
10759    archive_expsym_cmds | \
10760    module_cmds | \
10761    module_expsym_cmds | \
10762    old_archive_from_expsyms_cmds | \
10763    export_symbols_cmds | \
10764    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10765    postinstall_cmds | postuninstall_cmds | \
10766    old_postinstall_cmds | old_postuninstall_cmds | \
10767    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10768      # Double-quote double-evaled strings.
10769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10770      ;;
10771    *)
10772      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10773      ;;
10774    esac
10775  done
10776
10777  case $lt_echo in
10778  *'\$0 --fallback-echo"')
10779    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10780    ;;
10781  esac
10782
10783cfgfile="${ofile}T"
10784  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10785  $rm -f "$cfgfile"
10786  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10787$as_echo "$as_me: creating $ofile" >&6;}
10788
10789  cat <<__EOF__ >> "$cfgfile"
10790#! $SHELL
10791
10792# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10793# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10794# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10795#
10796# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10797# Free Software Foundation, Inc.
10798#
10799# This file is part of GNU Libtool:
10800# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10801#
10802# This program is free software; you can redistribute it and/or modify
10803# it under the terms of the GNU General Public License as published by
10804# the Free Software Foundation; either version 2 of the License, or
10805# (at your option) any later version.
10806#
10807# This program is distributed in the hope that it will be useful, but
10808# WITHOUT ANY WARRANTY; without even the implied warranty of
10809# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10810# General Public License for more details.
10811#
10812# You should have received a copy of the GNU General Public License
10813# along with this program; if not, write to the Free Software
10814# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10815#
10816# As a special exception to the GNU General Public License, if you
10817# distribute this file as part of a program that contains a
10818# configuration script generated by Autoconf, you may include it under
10819# the same distribution terms that you use for the rest of that program.
10820
10821# A sed program that does not truncate output.
10822SED=$lt_SED
10823
10824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10825Xsed="$SED -e 1s/^X//"
10826
10827# The HP-UX ksh and POSIX shell print the target directory to stdout
10828# if CDPATH is set.
10829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10830
10831# The names of the tagged configurations supported by this script.
10832available_tags=
10833
10834# ### BEGIN LIBTOOL CONFIG
10835
10836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10837
10838# Shell to use when invoking shell scripts.
10839SHELL=$lt_SHELL
10840
10841# Whether or not to build shared libraries.
10842build_libtool_libs=$enable_shared
10843
10844# Whether or not to build static libraries.
10845build_old_libs=$enable_static
10846
10847# Whether or not to add -lc for building shared libraries.
10848build_libtool_need_lc=$archive_cmds_need_lc
10849
10850# Whether or not to disallow shared libs when runtime libs are static
10851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10852
10853# Whether or not to optimize for fast installation.
10854fast_install=$enable_fast_install
10855
10856# The host system.
10857host_alias=$host_alias
10858host=$host
10859host_os=$host_os
10860
10861# The build system.
10862build_alias=$build_alias
10863build=$build
10864build_os=$build_os
10865
10866# An echo program that does not interpret backslashes.
10867echo=$lt_echo
10868
10869# The archiver.
10870AR=$lt_AR
10871AR_FLAGS=$lt_AR_FLAGS
10872
10873# A C compiler.
10874LTCC=$lt_LTCC
10875
10876# LTCC compiler flags.
10877LTCFLAGS=$lt_LTCFLAGS
10878
10879# A language-specific compiler.
10880CC=$lt_compiler
10881
10882# Is the compiler the GNU C compiler?
10883with_gcc=$GCC
10884
10885# An ERE matcher.
10886EGREP=$lt_EGREP
10887
10888# The linker used to build libraries.
10889LD=$lt_LD
10890
10891# Whether we need hard or soft links.
10892LN_S=$lt_LN_S
10893
10894# A BSD-compatible nm program.
10895NM=$lt_NM
10896
10897# A symbol stripping program
10898STRIP=$lt_STRIP
10899
10900# Used to examine libraries when file_magic_cmd begins "file"
10901MAGIC_CMD=$MAGIC_CMD
10902
10903# Used on cygwin: DLL creation program.
10904DLLTOOL="$DLLTOOL"
10905
10906# Used on cygwin: object dumper.
10907OBJDUMP="$OBJDUMP"
10908
10909# Used on cygwin: assembler.
10910AS="$AS"
10911
10912# The name of the directory that contains temporary libtool files.
10913objdir=$objdir
10914
10915# How to create reloadable object files.
10916reload_flag=$lt_reload_flag
10917reload_cmds=$lt_reload_cmds
10918
10919# How to pass a linker flag through the compiler.
10920wl=$lt_lt_prog_compiler_wl
10921
10922# Object file suffix (normally "o").
10923objext="$ac_objext"
10924
10925# Old archive suffix (normally "a").
10926libext="$libext"
10927
10928# Shared library suffix (normally ".so").
10929shrext_cmds='$shrext_cmds'
10930
10931# Executable file suffix (normally "").
10932exeext="$exeext"
10933
10934# Additional compiler flags for building library objects.
10935pic_flag=$lt_lt_prog_compiler_pic
10936pic_mode=$pic_mode
10937
10938# What is the maximum length of a command?
10939max_cmd_len=$lt_cv_sys_max_cmd_len
10940
10941# Does compiler simultaneously support -c and -o options?
10942compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10943
10944# Must we lock files when doing compilation?
10945need_locks=$lt_need_locks
10946
10947# Do we need the lib prefix for modules?
10948need_lib_prefix=$need_lib_prefix
10949
10950# Do we need a version for libraries?
10951need_version=$need_version
10952
10953# Whether dlopen is supported.
10954dlopen_support=$enable_dlopen
10955
10956# Whether dlopen of programs is supported.
10957dlopen_self=$enable_dlopen_self
10958
10959# Whether dlopen of statically linked programs is supported.
10960dlopen_self_static=$enable_dlopen_self_static
10961
10962# Compiler flag to prevent dynamic linking.
10963link_static_flag=$lt_lt_prog_compiler_static
10964
10965# Compiler flag to turn off builtin functions.
10966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10967
10968# Compiler flag to allow reflexive dlopens.
10969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10970
10971# Compiler flag to generate shared objects directly from archives.
10972whole_archive_flag_spec=$lt_whole_archive_flag_spec
10973
10974# Compiler flag to generate thread-safe objects.
10975thread_safe_flag_spec=$lt_thread_safe_flag_spec
10976
10977# Library versioning type.
10978version_type=$version_type
10979
10980# Format of library name prefix.
10981libname_spec=$lt_libname_spec
10982
10983# List of archive names.  First name is the real one, the rest are links.
10984# The last name is the one that the linker finds with -lNAME.
10985library_names_spec=$lt_library_names_spec
10986
10987# The coded name of the library, if different from the real name.
10988soname_spec=$lt_soname_spec
10989
10990# Commands used to build and install an old-style archive.
10991RANLIB=$lt_RANLIB
10992old_archive_cmds=$lt_old_archive_cmds
10993old_postinstall_cmds=$lt_old_postinstall_cmds
10994old_postuninstall_cmds=$lt_old_postuninstall_cmds
10995
10996# Create an old-style archive from a shared archive.
10997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10998
10999# Create a temporary old-style archive to link instead of a shared archive.
11000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11001
11002# Commands used to build and install a shared archive.
11003archive_cmds=$lt_archive_cmds
11004archive_expsym_cmds=$lt_archive_expsym_cmds
11005postinstall_cmds=$lt_postinstall_cmds
11006postuninstall_cmds=$lt_postuninstall_cmds
11007
11008# Commands used to build a loadable module (assumed same as above if empty)
11009module_cmds=$lt_module_cmds
11010module_expsym_cmds=$lt_module_expsym_cmds
11011
11012# Commands to strip libraries.
11013old_striplib=$lt_old_striplib
11014striplib=$lt_striplib
11015
11016# Dependencies to place before the objects being linked to create a
11017# shared library.
11018predep_objects=$lt_predep_objects
11019
11020# Dependencies to place after the objects being linked to create a
11021# shared library.
11022postdep_objects=$lt_postdep_objects
11023
11024# Dependencies to place before the objects being linked to create a
11025# shared library.
11026predeps=$lt_predeps
11027
11028# Dependencies to place after the objects being linked to create a
11029# shared library.
11030postdeps=$lt_postdeps
11031
11032# The directories searched by this compiler when creating a shared
11033# library
11034compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11035
11036# The library search path used internally by the compiler when linking
11037# a shared library.
11038compiler_lib_search_path=$lt_compiler_lib_search_path
11039
11040# Method to check whether dependent libraries are shared objects.
11041deplibs_check_method=$lt_deplibs_check_method
11042
11043# Command to use when deplibs_check_method == file_magic.
11044file_magic_cmd=$lt_file_magic_cmd
11045
11046# Flag that allows shared libraries with undefined symbols to be built.
11047allow_undefined_flag=$lt_allow_undefined_flag
11048
11049# Flag that forces no undefined symbols.
11050no_undefined_flag=$lt_no_undefined_flag
11051
11052# Commands used to finish a libtool library installation in a directory.
11053finish_cmds=$lt_finish_cmds
11054
11055# Same as above, but a single script fragment to be evaled but not shown.
11056finish_eval=$lt_finish_eval
11057
11058# Take the output of nm and produce a listing of raw symbols and C names.
11059global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11060
11061# Transform the output of nm in a proper C declaration
11062global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11063
11064# Transform the output of nm in a C name address pair
11065global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11066
11067# This is the shared library runtime path variable.
11068runpath_var=$runpath_var
11069
11070# This is the shared library path variable.
11071shlibpath_var=$shlibpath_var
11072
11073# Is shlibpath searched before the hard-coded library search path?
11074shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11075
11076# How to hardcode a shared library path into an executable.
11077hardcode_action=$hardcode_action
11078
11079# Whether we should hardcode library paths into libraries.
11080hardcode_into_libs=$hardcode_into_libs
11081
11082# Flag to hardcode \$libdir into a binary during linking.
11083# This must work even if \$libdir does not exist.
11084hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11085
11086# If ld is used when linking, flag to hardcode \$libdir into
11087# a binary during linking. This must work even if \$libdir does
11088# not exist.
11089hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11090
11091# Whether we need a single -rpath flag with a separated argument.
11092hardcode_libdir_separator=$lt_hardcode_libdir_separator
11093
11094# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11095# resulting binary.
11096hardcode_direct=$hardcode_direct
11097
11098# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11099# resulting binary.
11100hardcode_minus_L=$hardcode_minus_L
11101
11102# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11103# the resulting binary.
11104hardcode_shlibpath_var=$hardcode_shlibpath_var
11105
11106# Set to yes if building a shared library automatically hardcodes DIR into the library
11107# and all subsequent libraries and executables linked against it.
11108hardcode_automatic=$hardcode_automatic
11109
11110# Variables whose values should be saved in libtool wrapper scripts and
11111# restored at relink time.
11112variables_saved_for_relink="$variables_saved_for_relink"
11113
11114# Whether libtool must link a program against all its dependency libraries.
11115link_all_deplibs=$link_all_deplibs
11116
11117# Compile-time system search path for libraries
11118sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11119
11120# Run-time system search path for libraries
11121sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11122
11123# Fix the shell variable \$srcfile for the compiler.
11124fix_srcfile_path=$lt_fix_srcfile_path
11125
11126# Set to yes if exported symbols are required.
11127always_export_symbols=$always_export_symbols
11128
11129# The commands to list exported symbols.
11130export_symbols_cmds=$lt_export_symbols_cmds
11131
11132# The commands to extract the exported symbol list from a shared archive.
11133extract_expsyms_cmds=$lt_extract_expsyms_cmds
11134
11135# Symbols that should not be listed in the preloaded symbols.
11136exclude_expsyms=$lt_exclude_expsyms
11137
11138# Symbols that must always be exported.
11139include_expsyms=$lt_include_expsyms
11140
11141# ### END LIBTOOL CONFIG
11142
11143__EOF__
11144
11145
11146  case $host_os in
11147  aix3*)
11148    cat <<\EOF >> "$cfgfile"
11149
11150# AIX sometimes has problems with the GCC collect2 program.  For some
11151# reason, if we set the COLLECT_NAMES environment variable, the problems
11152# vanish in a puff of smoke.
11153if test "X${COLLECT_NAMES+set}" != Xset; then
11154  COLLECT_NAMES=
11155  export COLLECT_NAMES
11156fi
11157EOF
11158    ;;
11159  esac
11160
11161  # We use sed instead of cat because bash on DJGPP gets confused if
11162  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11163  # text mode, it properly converts lines to CR/LF.  This bash problem
11164  # is reportedly fixed, but why not run on old versions too?
11165  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11166
11167  mv -f "$cfgfile" "$ofile" || \
11168    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11169  chmod +x "$ofile"
11170
11171else
11172  # If there is no Makefile yet, we rely on a make rule to execute
11173  # `config.status --recheck' to rerun these tests and create the
11174  # libtool script then.
11175  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11176  if test -f "$ltmain_in"; then
11177    test -f Makefile && make "$ltmain"
11178  fi
11179fi
11180
11181
11182ac_ext=c
11183ac_cpp='$CPP $CPPFLAGS'
11184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11186ac_compiler_gnu=$ac_cv_c_compiler_gnu
11187
11188CC="$lt_save_CC"
11189
11190
11191# Check whether --with-tags was given.
11192if test "${with_tags+set}" = set; then
11193  withval=$with_tags; tagnames="$withval"
11194fi
11195
11196
11197if test -f "$ltmain" && test -n "$tagnames"; then
11198  if test ! -f "${ofile}"; then
11199    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11200$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11201  fi
11202
11203  if test -z "$LTCC"; then
11204    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11205    if test -z "$LTCC"; then
11206      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11207$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11208    else
11209      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11210$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11211    fi
11212  fi
11213  if test -z "$LTCFLAGS"; then
11214    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11215  fi
11216
11217  # Extract list of available tagged configurations in $ofile.
11218  # Note that this assumes the entire list is on one line.
11219  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11220
11221  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11222  for tagname in $tagnames; do
11223    IFS="$lt_save_ifs"
11224    # Check whether tagname contains only valid characters
11225    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11226    "") ;;
11227    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11228$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11229   { (exit 1); exit 1; }; }
11230	;;
11231    esac
11232
11233    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11234    then
11235      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11236$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11237   { (exit 1); exit 1; }; }
11238    fi
11239
11240    # Update the list of available tags.
11241    if test -n "$tagname"; then
11242      echo appending configuration tag \"$tagname\" to $ofile
11243
11244      case $tagname in
11245      CXX)
11246	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11247	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11248	    (test "X$CXX" != "Xg++"))) ; then
11249	  ac_ext=cpp
11250ac_cpp='$CXXCPP $CPPFLAGS'
11251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11254
11255
11256
11257
11258archive_cmds_need_lc_CXX=no
11259allow_undefined_flag_CXX=
11260always_export_symbols_CXX=no
11261archive_expsym_cmds_CXX=
11262export_dynamic_flag_spec_CXX=
11263hardcode_direct_CXX=no
11264hardcode_libdir_flag_spec_CXX=
11265hardcode_libdir_flag_spec_ld_CXX=
11266hardcode_libdir_separator_CXX=
11267hardcode_minus_L_CXX=no
11268hardcode_shlibpath_var_CXX=unsupported
11269hardcode_automatic_CXX=no
11270module_cmds_CXX=
11271module_expsym_cmds_CXX=
11272link_all_deplibs_CXX=unknown
11273old_archive_cmds_CXX=$old_archive_cmds
11274no_undefined_flag_CXX=
11275whole_archive_flag_spec_CXX=
11276enable_shared_with_static_runtimes_CXX=no
11277
11278# Dependencies to place before and after the object being linked:
11279predep_objects_CXX=
11280postdep_objects_CXX=
11281predeps_CXX=
11282postdeps_CXX=
11283compiler_lib_search_path_CXX=
11284compiler_lib_search_dirs_CXX=
11285
11286# Source file extension for C++ test sources.
11287ac_ext=cpp
11288
11289# Object file extension for compiled C++ test sources.
11290objext=o
11291objext_CXX=$objext
11292
11293# Code to be used in simple compile tests
11294lt_simple_compile_test_code="int some_variable = 0;"
11295
11296# Code to be used in simple link tests
11297lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11298
11299# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301# If no C compiler was specified, use CC.
11302LTCC=${LTCC-"$CC"}
11303
11304# If no C compiler flags were specified, use CFLAGS.
11305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11306
11307# Allow CC to be a program name with arguments.
11308compiler=$CC
11309
11310
11311# save warnings/boilerplate of simple test code
11312ac_outfile=conftest.$ac_objext
11313echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11315_lt_compiler_boilerplate=`cat conftest.err`
11316$rm conftest*
11317
11318ac_outfile=conftest.$ac_objext
11319echo "$lt_simple_link_test_code" >conftest.$ac_ext
11320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11321_lt_linker_boilerplate=`cat conftest.err`
11322$rm -r conftest*
11323
11324
11325# Allow CC to be a program name with arguments.
11326lt_save_CC=$CC
11327lt_save_LD=$LD
11328lt_save_GCC=$GCC
11329GCC=$GXX
11330lt_save_with_gnu_ld=$with_gnu_ld
11331lt_save_path_LD=$lt_cv_path_LD
11332if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11333  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11334else
11335  $as_unset lt_cv_prog_gnu_ld
11336fi
11337if test -n "${lt_cv_path_LDCXX+set}"; then
11338  lt_cv_path_LD=$lt_cv_path_LDCXX
11339else
11340  $as_unset lt_cv_path_LD
11341fi
11342test -z "${LDCXX+set}" || LD=$LDCXX
11343CC=${CXX-"c++"}
11344compiler=$CC
11345compiler_CXX=$CC
11346for cc_temp in $compiler""; do
11347  case $cc_temp in
11348    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11349    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11350    \-*) ;;
11351    *) break;;
11352  esac
11353done
11354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11355
11356
11357# We don't want -fno-exception wen compiling C++ code, so set the
11358# no_builtin_flag separately
11359if test "$GXX" = yes; then
11360  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11361else
11362  lt_prog_compiler_no_builtin_flag_CXX=
11363fi
11364
11365if test "$GXX" = yes; then
11366  # Set up default GNU C++ configuration
11367
11368
11369# Check whether --with-gnu-ld was given.
11370if test "${with_gnu_ld+set}" = set; then
11371  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11372else
11373  with_gnu_ld=no
11374fi
11375
11376ac_prog=ld
11377if test "$GCC" = yes; then
11378  # Check if gcc -print-prog-name=ld gives a path.
11379  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11380$as_echo_n "checking for ld used by $CC... " >&6; }
11381  case $host in
11382  *-*-mingw*)
11383    # gcc leaves a trailing carriage return which upsets mingw
11384    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11385  *)
11386    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11387  esac
11388  case $ac_prog in
11389    # Accept absolute paths.
11390    [\\/]* | ?:[\\/]*)
11391      re_direlt='/[^/][^/]*/\.\./'
11392      # Canonicalize the pathname of ld
11393      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11394      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11395	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11396      done
11397      test -z "$LD" && LD="$ac_prog"
11398      ;;
11399  "")
11400    # If it fails, then pretend we aren't using GCC.
11401    ac_prog=ld
11402    ;;
11403  *)
11404    # If it is relative, then search for the first ld in PATH.
11405    with_gnu_ld=unknown
11406    ;;
11407  esac
11408elif test "$with_gnu_ld" = yes; then
11409  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11410$as_echo_n "checking for GNU ld... " >&6; }
11411else
11412  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11413$as_echo_n "checking for non-GNU ld... " >&6; }
11414fi
11415if test "${lt_cv_path_LD+set}" = set; then
11416  $as_echo_n "(cached) " >&6
11417else
11418  if test -z "$LD"; then
11419  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11420  for ac_dir in $PATH; do
11421    IFS="$lt_save_ifs"
11422    test -z "$ac_dir" && ac_dir=.
11423    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11424      lt_cv_path_LD="$ac_dir/$ac_prog"
11425      # Check to see if the program is GNU ld.  I'd rather use --version,
11426      # but apparently some variants of GNU ld only accept -v.
11427      # Break only if it was the GNU/non-GNU ld that we prefer.
11428      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11429      *GNU* | *'with BFD'*)
11430	test "$with_gnu_ld" != no && break
11431	;;
11432      *)
11433	test "$with_gnu_ld" != yes && break
11434	;;
11435      esac
11436    fi
11437  done
11438  IFS="$lt_save_ifs"
11439else
11440  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11441fi
11442fi
11443
11444LD="$lt_cv_path_LD"
11445if test -n "$LD"; then
11446  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11447$as_echo "$LD" >&6; }
11448else
11449  { $as_echo "$as_me:$LINENO: result: no" >&5
11450$as_echo "no" >&6; }
11451fi
11452test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11453$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11454   { (exit 1); exit 1; }; }
11455{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11456$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11457if test "${lt_cv_prog_gnu_ld+set}" = set; then
11458  $as_echo_n "(cached) " >&6
11459else
11460  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11461case `$LD -v 2>&1 </dev/null` in
11462*GNU* | *'with BFD'*)
11463  lt_cv_prog_gnu_ld=yes
11464  ;;
11465*)
11466  lt_cv_prog_gnu_ld=no
11467  ;;
11468esac
11469fi
11470{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11471$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11472with_gnu_ld=$lt_cv_prog_gnu_ld
11473
11474
11475
11476  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11477  # archiving commands below assume that GNU ld is being used.
11478  if test "$with_gnu_ld" = yes; then
11479    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480    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'
11481
11482    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11483    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11484
11485    # If archive_cmds runs LD, not CC, wlarc should be empty
11486    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11487    #     investigate it a little bit more. (MM)
11488    wlarc='${wl}'
11489
11490    # ancient GNU ld didn't support --whole-archive et. al.
11491    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11492	grep 'no-whole-archive' > /dev/null; then
11493      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11494    else
11495      whole_archive_flag_spec_CXX=
11496    fi
11497  else
11498    with_gnu_ld=no
11499    wlarc=
11500
11501    # A generic and very simple default shared library creation
11502    # command for GNU C++ for the case where it uses the native
11503    # linker, instead of GNU ld.  If possible, this setting should
11504    # overridden to take advantage of the native linker features on
11505    # the platform it is being used on.
11506    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11507  fi
11508
11509  # Commands to make compiler produce verbose output that lists
11510  # what "hidden" libraries, object files and flags are used when
11511  # linking a shared library.
11512  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11513
11514else
11515  GXX=no
11516  with_gnu_ld=no
11517  wlarc=
11518fi
11519
11520# PORTME: fill in a description of your system's C++ link characteristics
11521{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11523ld_shlibs_CXX=yes
11524case $host_os in
11525  aix3*)
11526    # FIXME: insert proper C++ library support
11527    ld_shlibs_CXX=no
11528    ;;
11529  aix[4-9]*)
11530    if test "$host_cpu" = ia64; then
11531      # On IA64, the linker does run time linking by default, so we don't
11532      # have to do anything special.
11533      aix_use_runtimelinking=no
11534      exp_sym_flag='-Bexport'
11535      no_entry_flag=""
11536    else
11537      aix_use_runtimelinking=no
11538
11539      # Test if we are trying to use run time linking or normal
11540      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11541      # need to do runtime linking.
11542      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11543	for ld_flag in $LDFLAGS; do
11544	  case $ld_flag in
11545	  *-brtl*)
11546	    aix_use_runtimelinking=yes
11547	    break
11548	    ;;
11549	  esac
11550	done
11551	;;
11552      esac
11553
11554      exp_sym_flag='-bexport'
11555      no_entry_flag='-bnoentry'
11556    fi
11557
11558    # When large executables or shared objects are built, AIX ld can
11559    # have problems creating the table of contents.  If linking a library
11560    # or program results in "error TOC overflow" add -mminimal-toc to
11561    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11562    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11563
11564    archive_cmds_CXX=''
11565    hardcode_direct_CXX=yes
11566    hardcode_libdir_separator_CXX=':'
11567    link_all_deplibs_CXX=yes
11568
11569    if test "$GXX" = yes; then
11570      case $host_os in aix4.[012]|aix4.[012].*)
11571      # We only want to do this on AIX 4.2 and lower, the check
11572      # below for broken collect2 doesn't work under 4.3+
11573	collect2name=`${CC} -print-prog-name=collect2`
11574	if test -f "$collect2name" && \
11575	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11576	then
11577	  # We have reworked collect2
11578	  :
11579	else
11580	  # We have old collect2
11581	  hardcode_direct_CXX=unsupported
11582	  # It fails to find uninstalled libraries when the uninstalled
11583	  # path is not listed in the libpath.  Setting hardcode_minus_L
11584	  # to unsupported forces relinking
11585	  hardcode_minus_L_CXX=yes
11586	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11587	  hardcode_libdir_separator_CXX=
11588	fi
11589	;;
11590      esac
11591      shared_flag='-shared'
11592      if test "$aix_use_runtimelinking" = yes; then
11593	shared_flag="$shared_flag "'${wl}-G'
11594      fi
11595    else
11596      # not using gcc
11597      if test "$host_cpu" = ia64; then
11598	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11599	# chokes on -Wl,-G. The following line is correct:
11600	shared_flag='-G'
11601      else
11602	if test "$aix_use_runtimelinking" = yes; then
11603	  shared_flag='${wl}-G'
11604	else
11605	  shared_flag='${wl}-bM:SRE'
11606	fi
11607      fi
11608    fi
11609
11610    # It seems that -bexpall does not export symbols beginning with
11611    # underscore (_), so it is better to generate a list of symbols to export.
11612    always_export_symbols_CXX=yes
11613    if test "$aix_use_runtimelinking" = yes; then
11614      # Warning - without using the other runtime loading flags (-brtl),
11615      # -berok will link without error, but may produce a broken library.
11616      allow_undefined_flag_CXX='-berok'
11617      # Determine the default libpath from the value encoded in an empty executable.
11618      cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h.  */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h.  */
11624
11625int
11626main ()
11627{
11628
11629  ;
11630  return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext conftest$ac_exeext
11634if { (ac_try="$ac_link"
11635case "(($ac_try" in
11636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637  *) ac_try_echo=$ac_try;;
11638esac
11639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11640$as_echo "$ac_try_echo") >&5
11641  (eval "$ac_link") 2>conftest.er1
11642  ac_status=$?
11643  grep -v '^ *+' conftest.er1 >conftest.err
11644  rm -f conftest.er1
11645  cat conftest.err >&5
11646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647  (exit $ac_status); } && {
11648	 test -z "$ac_cxx_werror_flag" ||
11649	 test ! -s conftest.err
11650       } && test -s conftest$ac_exeext && {
11651	 test "$cross_compiling" = yes ||
11652	 $as_test_x conftest$ac_exeext
11653       }; then
11654
11655lt_aix_libpath_sed='
11656    /Import File Strings/,/^$/ {
11657	/^0/ {
11658	    s/^0  *\(.*\)$/\1/
11659	    p
11660	}
11661    }'
11662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663# Check for a 64-bit object if we didn't find anything.
11664if test -z "$aix_libpath"; then
11665  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11666fi
11667else
11668  $as_echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671
11672fi
11673
11674rm -rf conftest.dSYM
11675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11676      conftest$ac_exeext conftest.$ac_ext
11677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11678
11679      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11680
11681      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"
11682     else
11683      if test "$host_cpu" = ia64; then
11684	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11685	allow_undefined_flag_CXX="-z nodefs"
11686	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"
11687      else
11688	# Determine the default libpath from the value encoded in an empty executable.
11689	cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h.  */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h.  */
11695
11696int
11697main ()
11698{
11699
11700  ;
11701  return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
11705if { (ac_try="$ac_link"
11706case "(($ac_try" in
11707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708  *) ac_try_echo=$ac_try;;
11709esac
11710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11711$as_echo "$ac_try_echo") >&5
11712  (eval "$ac_link") 2>conftest.er1
11713  ac_status=$?
11714  grep -v '^ *+' conftest.er1 >conftest.err
11715  rm -f conftest.er1
11716  cat conftest.err >&5
11717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718  (exit $ac_status); } && {
11719	 test -z "$ac_cxx_werror_flag" ||
11720	 test ! -s conftest.err
11721       } && test -s conftest$ac_exeext && {
11722	 test "$cross_compiling" = yes ||
11723	 $as_test_x conftest$ac_exeext
11724       }; then
11725
11726lt_aix_libpath_sed='
11727    /Import File Strings/,/^$/ {
11728	/^0/ {
11729	    s/^0  *\(.*\)$/\1/
11730	    p
11731	}
11732    }'
11733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734# Check for a 64-bit object if we didn't find anything.
11735if test -z "$aix_libpath"; then
11736  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11737fi
11738else
11739  $as_echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
11742
11743fi
11744
11745rm -rf conftest.dSYM
11746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11747      conftest$ac_exeext conftest.$ac_ext
11748if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11749
11750	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11751	# Warning - without using the other run time loading flags,
11752	# -berok will link without error, but may produce a broken library.
11753	no_undefined_flag_CXX=' ${wl}-bernotok'
11754	allow_undefined_flag_CXX=' ${wl}-berok'
11755	# Exported symbols can be pulled into shared objects from archives
11756	whole_archive_flag_spec_CXX='$convenience'
11757	archive_cmds_need_lc_CXX=yes
11758	# This is similar to how AIX traditionally builds its shared libraries.
11759	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'
11760      fi
11761    fi
11762    ;;
11763
11764  beos*)
11765    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11766      allow_undefined_flag_CXX=unsupported
11767      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11768      # support --undefined.  This deserves some investigation.  FIXME
11769      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11770    else
11771      ld_shlibs_CXX=no
11772    fi
11773    ;;
11774
11775  chorus*)
11776    case $cc_basename in
11777      *)
11778	# FIXME: insert proper C++ library support
11779	ld_shlibs_CXX=no
11780	;;
11781    esac
11782    ;;
11783
11784  cygwin* | mingw* | pw32*)
11785    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11786    # as there is no search path for DLLs.
11787    hardcode_libdir_flag_spec_CXX='-L$libdir'
11788    allow_undefined_flag_CXX=unsupported
11789    always_export_symbols_CXX=no
11790    enable_shared_with_static_runtimes_CXX=yes
11791
11792    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11793      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'
11794      # If the export-symbols file already is a .def file (1st line
11795      # is EXPORTS), use it as is; otherwise, prepend...
11796      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11797	cp $export_symbols $output_objdir/$soname.def;
11798      else
11799	echo EXPORTS > $output_objdir/$soname.def;
11800	cat $export_symbols >> $output_objdir/$soname.def;
11801      fi~
11802      $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'
11803    else
11804      ld_shlibs_CXX=no
11805    fi
11806  ;;
11807      darwin* | rhapsody*)
11808      archive_cmds_need_lc_CXX=no
11809      hardcode_direct_CXX=no
11810      hardcode_automatic_CXX=yes
11811      hardcode_shlibpath_var_CXX=unsupported
11812      whole_archive_flag_spec_CXX=''
11813      link_all_deplibs_CXX=yes
11814      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11815      if test "$GXX" = yes ; then
11816      output_verbose_link_cmd='echo'
11817      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}"
11818      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11819      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}"
11820      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}"
11821      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11822        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}"
11823        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}"
11824      fi
11825      else
11826      case $cc_basename in
11827        xlc*)
11828         output_verbose_link_cmd='echo'
11829          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'
11830          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11831          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11832          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}'
11833          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}'
11834          ;;
11835       *)
11836         ld_shlibs_CXX=no
11837          ;;
11838      esac
11839      fi
11840        ;;
11841
11842  dgux*)
11843    case $cc_basename in
11844      ec++*)
11845	# FIXME: insert proper C++ library support
11846	ld_shlibs_CXX=no
11847	;;
11848      ghcx*)
11849	# Green Hills C++ Compiler
11850	# FIXME: insert proper C++ library support
11851	ld_shlibs_CXX=no
11852	;;
11853      *)
11854	# FIXME: insert proper C++ library support
11855	ld_shlibs_CXX=no
11856	;;
11857    esac
11858    ;;
11859  freebsd[12]*)
11860    # C++ shared libraries reported to be fairly broken before switch to ELF
11861    ld_shlibs_CXX=no
11862    ;;
11863  freebsd-elf*)
11864    archive_cmds_need_lc_CXX=no
11865    ;;
11866  freebsd* | dragonfly*)
11867    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11868    # conventions
11869    ld_shlibs_CXX=yes
11870    ;;
11871  gnu*)
11872    ;;
11873  hpux9*)
11874    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11875    hardcode_libdir_separator_CXX=:
11876    export_dynamic_flag_spec_CXX='${wl}-E'
11877    hardcode_direct_CXX=yes
11878    hardcode_minus_L_CXX=yes # Not in the search PATH,
11879				# but as the default
11880				# location of the library.
11881
11882    case $cc_basename in
11883    CC*)
11884      # FIXME: insert proper C++ library support
11885      ld_shlibs_CXX=no
11886      ;;
11887    aCC*)
11888      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'
11889      # Commands to make compiler produce verbose output that lists
11890      # what "hidden" libraries, object files and flags are used when
11891      # linking a shared library.
11892      #
11893      # There doesn't appear to be a way to prevent this compiler from
11894      # explicitly linking system object files so we need to strip them
11895      # from the output so that they don't get included in the library
11896      # dependencies.
11897      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'
11898      ;;
11899    *)
11900      if test "$GXX" = yes; then
11901        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'
11902      else
11903        # FIXME: insert proper C++ library support
11904        ld_shlibs_CXX=no
11905      fi
11906      ;;
11907    esac
11908    ;;
11909  hpux10*|hpux11*)
11910    if test $with_gnu_ld = no; then
11911      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11912      hardcode_libdir_separator_CXX=:
11913
11914      case $host_cpu in
11915      hppa*64*|ia64*) ;;
11916      *)
11917	export_dynamic_flag_spec_CXX='${wl}-E'
11918        ;;
11919      esac
11920    fi
11921    case $host_cpu in
11922    hppa*64*|ia64*)
11923      hardcode_direct_CXX=no
11924      hardcode_shlibpath_var_CXX=no
11925      ;;
11926    *)
11927      hardcode_direct_CXX=yes
11928      hardcode_minus_L_CXX=yes # Not in the search PATH,
11929					      # but as the default
11930					      # location of the library.
11931      ;;
11932    esac
11933
11934    case $cc_basename in
11935      CC*)
11936	# FIXME: insert proper C++ library support
11937	ld_shlibs_CXX=no
11938	;;
11939      aCC*)
11940	case $host_cpu in
11941	hppa*64*)
11942	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943	  ;;
11944	ia64*)
11945	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11946	  ;;
11947	*)
11948	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11949	  ;;
11950	esac
11951	# Commands to make compiler produce verbose output that lists
11952	# what "hidden" libraries, object files and flags are used when
11953	# linking a shared library.
11954	#
11955	# There doesn't appear to be a way to prevent this compiler from
11956	# explicitly linking system object files so we need to strip them
11957	# from the output so that they don't get included in the library
11958	# dependencies.
11959	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'
11960	;;
11961      *)
11962	if test "$GXX" = yes; then
11963	  if test $with_gnu_ld = no; then
11964	    case $host_cpu in
11965	    hppa*64*)
11966	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11967	      ;;
11968	    ia64*)
11969	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11970	      ;;
11971	    *)
11972	      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'
11973	      ;;
11974	    esac
11975	  fi
11976	else
11977	  # FIXME: insert proper C++ library support
11978	  ld_shlibs_CXX=no
11979	fi
11980	;;
11981    esac
11982    ;;
11983  interix[3-9]*)
11984    hardcode_direct_CXX=no
11985    hardcode_shlibpath_var_CXX=no
11986    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11987    export_dynamic_flag_spec_CXX='${wl}-E'
11988    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11989    # Instead, shared libraries are loaded at an image base (0x10000000 by
11990    # default) and relocated if they conflict, which is a slow very memory
11991    # consuming and fragmenting process.  To avoid this, we pick a random,
11992    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11993    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11994    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'
11995    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'
11996    ;;
11997  irix5* | irix6*)
11998    case $cc_basename in
11999      CC*)
12000	# SGI C++
12001	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'
12002
12003	# Archives containing C++ object files must be created using
12004	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12005	# necessary to make sure instantiated templates are included
12006	# in the archive.
12007	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12008	;;
12009      *)
12010	if test "$GXX" = yes; then
12011	  if test "$with_gnu_ld" = no; then
12012	    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'
12013	  else
12014	    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'
12015	  fi
12016	fi
12017	link_all_deplibs_CXX=yes
12018	;;
12019    esac
12020    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021    hardcode_libdir_separator_CXX=:
12022    ;;
12023  linux* | k*bsd*-gnu)
12024    case $cc_basename in
12025      KCC*)
12026	# Kuck and Associates, Inc. (KAI) C++ Compiler
12027
12028	# KCC will only create a shared library if the output file
12029	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12030	# to its proper name (with version) after linking.
12031	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'
12032	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'
12033	# Commands to make compiler produce verbose output that lists
12034	# what "hidden" libraries, object files and flags are used when
12035	# linking a shared library.
12036	#
12037	# There doesn't appear to be a way to prevent this compiler from
12038	# explicitly linking system object files so we need to strip them
12039	# from the output so that they don't get included in the library
12040	# dependencies.
12041	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'
12042
12043	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12044	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12045
12046	# Archives containing C++ object files must be created using
12047	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12048	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12049	;;
12050      icpc*)
12051	# Intel C++
12052	with_gnu_ld=yes
12053	# version 8.0 and above of icpc choke on multiply defined symbols
12054	# if we add $predep_objects and $postdep_objects, however 7.1 and
12055	# earlier do not add the objects themselves.
12056	case `$CC -V 2>&1` in
12057	*"Version 7."*)
12058  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059  	  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'
12060	  ;;
12061	*)  # Version 8.0 or newer
12062	  tmp_idyn=
12063	  case $host_cpu in
12064	    ia64*) tmp_idyn=' -i_dynamic';;
12065	  esac
12066  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067	  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'
12068	  ;;
12069	esac
12070	archive_cmds_need_lc_CXX=no
12071	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12072	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12073	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12074	;;
12075      pgCC* | pgcpp*)
12076        # Portland Group C++ compiler
12077	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12078  	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'
12079
12080	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12081	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12082	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'
12083        ;;
12084      cxx*)
12085	# Compaq C++
12086	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087	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'
12088
12089	runpath_var=LD_RUN_PATH
12090	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12091	hardcode_libdir_separator_CXX=:
12092
12093	# Commands to make compiler produce verbose output that lists
12094	# what "hidden" libraries, object files and flags are used when
12095	# linking a shared library.
12096	#
12097	# There doesn't appear to be a way to prevent this compiler from
12098	# explicitly linking system object files so we need to strip them
12099	# from the output so that they don't get included in the library
12100	# dependencies.
12101	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'
12102	;;
12103      *)
12104	case `$CC -V 2>&1 | sed 5q` in
12105	*Sun\ C*)
12106	  # Sun C++ 5.9
12107	  no_undefined_flag_CXX=' -zdefs'
12108	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109	  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'
12110	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12111	  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'
12112
12113	  # Not sure whether something based on
12114	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12115	  # would be better.
12116	  output_verbose_link_cmd='echo'
12117
12118	  # Archives containing C++ object files must be created using
12119	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12120	  # necessary to make sure instantiated templates are included
12121	  # in the archive.
12122	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12123	  ;;
12124	esac
12125	;;
12126    esac
12127    ;;
12128  lynxos*)
12129    # FIXME: insert proper C++ library support
12130    ld_shlibs_CXX=no
12131    ;;
12132  m88k*)
12133    # FIXME: insert proper C++ library support
12134    ld_shlibs_CXX=no
12135    ;;
12136  mvs*)
12137    case $cc_basename in
12138      cxx*)
12139	# FIXME: insert proper C++ library support
12140	ld_shlibs_CXX=no
12141	;;
12142      *)
12143	# FIXME: insert proper C++ library support
12144	ld_shlibs_CXX=no
12145	;;
12146    esac
12147    ;;
12148  netbsd*)
12149    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12150      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12151      wlarc=
12152      hardcode_libdir_flag_spec_CXX='-R$libdir'
12153      hardcode_direct_CXX=yes
12154      hardcode_shlibpath_var_CXX=no
12155    fi
12156    # Workaround some broken pre-1.5 toolchains
12157    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12158    ;;
12159  openbsd2*)
12160    # C++ shared libraries are fairly broken
12161    ld_shlibs_CXX=no
12162    ;;
12163  openbsd*)
12164    if test -f /usr/libexec/ld.so; then
12165      hardcode_direct_CXX=yes
12166      hardcode_shlibpath_var_CXX=no
12167      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12168      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12169      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12170	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12171	export_dynamic_flag_spec_CXX='${wl}-E'
12172	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12173      fi
12174      output_verbose_link_cmd='echo'
12175    else
12176      ld_shlibs_CXX=no
12177    fi
12178    ;;
12179  osf3*)
12180    case $cc_basename in
12181      KCC*)
12182	# Kuck and Associates, Inc. (KAI) C++ Compiler
12183
12184	# KCC will only create a shared library if the output file
12185	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12186	# to its proper name (with version) after linking.
12187	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'
12188
12189	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12190	hardcode_libdir_separator_CXX=:
12191
12192	# Archives containing C++ object files must be created using
12193	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12194	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12195
12196	;;
12197      RCC*)
12198	# Rational C++ 2.4.1
12199	# FIXME: insert proper C++ library support
12200	ld_shlibs_CXX=no
12201	;;
12202      cxx*)
12203	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12204	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'
12205
12206	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12207	hardcode_libdir_separator_CXX=:
12208
12209	# Commands to make compiler produce verbose output that lists
12210	# what "hidden" libraries, object files and flags are used when
12211	# linking a shared library.
12212	#
12213	# There doesn't appear to be a way to prevent this compiler from
12214	# explicitly linking system object files so we need to strip them
12215	# from the output so that they don't get included in the library
12216	# dependencies.
12217	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'
12218	;;
12219      *)
12220	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12222	  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'
12223
12224	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12225	  hardcode_libdir_separator_CXX=:
12226
12227	  # Commands to make compiler produce verbose output that lists
12228	  # what "hidden" libraries, object files and flags are used when
12229	  # linking a shared library.
12230	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12231
12232	else
12233	  # FIXME: insert proper C++ library support
12234	  ld_shlibs_CXX=no
12235	fi
12236	;;
12237    esac
12238    ;;
12239  osf4* | osf5*)
12240    case $cc_basename in
12241      KCC*)
12242	# Kuck and Associates, Inc. (KAI) C++ Compiler
12243
12244	# KCC will only create a shared library if the output file
12245	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12246	# to its proper name (with version) after linking.
12247	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'
12248
12249	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12250	hardcode_libdir_separator_CXX=:
12251
12252	# Archives containing C++ object files must be created using
12253	# the KAI C++ compiler.
12254	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12255	;;
12256      RCC*)
12257	# Rational C++ 2.4.1
12258	# FIXME: insert proper C++ library support
12259	ld_shlibs_CXX=no
12260	;;
12261      cxx*)
12262	allow_undefined_flag_CXX=' -expect_unresolved \*'
12263	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'
12264	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12265	  echo "-hidden">> $lib.exp~
12266	  $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~
12267	  $rm $lib.exp'
12268
12269	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12270	hardcode_libdir_separator_CXX=:
12271
12272	# Commands to make compiler produce verbose output that lists
12273	# what "hidden" libraries, object files and flags are used when
12274	# linking a shared library.
12275	#
12276	# There doesn't appear to be a way to prevent this compiler from
12277	# explicitly linking system object files so we need to strip them
12278	# from the output so that they don't get included in the library
12279	# dependencies.
12280	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'
12281	;;
12282      *)
12283	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12284	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12285	 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'
12286
12287	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12288	  hardcode_libdir_separator_CXX=:
12289
12290	  # Commands to make compiler produce verbose output that lists
12291	  # what "hidden" libraries, object files and flags are used when
12292	  # linking a shared library.
12293	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12294
12295	else
12296	  # FIXME: insert proper C++ library support
12297	  ld_shlibs_CXX=no
12298	fi
12299	;;
12300    esac
12301    ;;
12302  psos*)
12303    # FIXME: insert proper C++ library support
12304    ld_shlibs_CXX=no
12305    ;;
12306  sunos4*)
12307    case $cc_basename in
12308      CC*)
12309	# Sun C++ 4.x
12310	# FIXME: insert proper C++ library support
12311	ld_shlibs_CXX=no
12312	;;
12313      lcc*)
12314	# Lucid
12315	# FIXME: insert proper C++ library support
12316	ld_shlibs_CXX=no
12317	;;
12318      *)
12319	# FIXME: insert proper C++ library support
12320	ld_shlibs_CXX=no
12321	;;
12322    esac
12323    ;;
12324  solaris*)
12325    case $cc_basename in
12326      CC*)
12327	# Sun C++ 4.2, 5.x and Centerline C++
12328        archive_cmds_need_lc_CXX=yes
12329	no_undefined_flag_CXX=' -zdefs'
12330	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12331	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12332	$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'
12333
12334	hardcode_libdir_flag_spec_CXX='-R$libdir'
12335	hardcode_shlibpath_var_CXX=no
12336	case $host_os in
12337	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12338	  *)
12339	    # The compiler driver will combine and reorder linker options,
12340	    # but understands `-z linker_flag'.
12341	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12342	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12343	    ;;
12344	esac
12345	link_all_deplibs_CXX=yes
12346
12347	output_verbose_link_cmd='echo'
12348
12349	# Archives containing C++ object files must be created using
12350	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12351	# necessary to make sure instantiated templates are included
12352	# in the archive.
12353	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12354	;;
12355      gcx*)
12356	# Green Hills C++ Compiler
12357	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12358
12359	# The C++ compiler must be used to create the archive.
12360	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12361	;;
12362      *)
12363	# GNU C++ compiler with Solaris linker
12364	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12365	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12366	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12367	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12368	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12369		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12370
12371	    # Commands to make compiler produce verbose output that lists
12372	    # what "hidden" libraries, object files and flags are used when
12373	    # linking a shared library.
12374	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12375	  else
12376	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12377	    # platform.
12378	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12379	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12380		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12381
12382	    # Commands to make compiler produce verbose output that lists
12383	    # what "hidden" libraries, object files and flags are used when
12384	    # linking a shared library.
12385	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12386	  fi
12387
12388	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12389	  case $host_os in
12390	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12391	  *)
12392	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12393	    ;;
12394	  esac
12395	fi
12396	;;
12397    esac
12398    ;;
12399  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12400    no_undefined_flag_CXX='${wl}-z,text'
12401    archive_cmds_need_lc_CXX=no
12402    hardcode_shlibpath_var_CXX=no
12403    runpath_var='LD_RUN_PATH'
12404
12405    case $cc_basename in
12406      CC*)
12407	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409	;;
12410      *)
12411	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12412	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12413	;;
12414    esac
12415    ;;
12416  sysv5* | sco3.2v5* | sco5v6*)
12417    # Note: We can NOT use -z defs as we might desire, because we do not
12418    # link with -lc, and that would cause any symbols used from libc to
12419    # always be unresolved, which means just about no library would
12420    # ever link correctly.  If we're not using GNU ld we use -z text
12421    # though, which does catch some bad symbols but isn't as heavy-handed
12422    # as -z defs.
12423    # For security reasons, it is highly recommended that you always
12424    # use absolute paths for naming shared libraries, and exclude the
12425    # DT_RUNPATH tag from executables and libraries.  But doing so
12426    # requires that you compile everything twice, which is a pain.
12427    # So that behaviour is only enabled if SCOABSPATH is set to a
12428    # non-empty value in the environment.  Most likely only useful for
12429    # creating official distributions of packages.
12430    # This is a hack until libtool officially supports absolute path
12431    # names for shared libraries.
12432    no_undefined_flag_CXX='${wl}-z,text'
12433    allow_undefined_flag_CXX='${wl}-z,nodefs'
12434    archive_cmds_need_lc_CXX=no
12435    hardcode_shlibpath_var_CXX=no
12436    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12437    hardcode_libdir_separator_CXX=':'
12438    link_all_deplibs_CXX=yes
12439    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12440    runpath_var='LD_RUN_PATH'
12441
12442    case $cc_basename in
12443      CC*)
12444	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12445	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12446	;;
12447      *)
12448	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12449	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12450	;;
12451    esac
12452    ;;
12453  tandem*)
12454    case $cc_basename in
12455      NCC*)
12456	# NonStop-UX NCC 3.20
12457	# FIXME: insert proper C++ library support
12458	ld_shlibs_CXX=no
12459	;;
12460      *)
12461	# FIXME: insert proper C++ library support
12462	ld_shlibs_CXX=no
12463	;;
12464    esac
12465    ;;
12466  vxworks*)
12467    # FIXME: insert proper C++ library support
12468    ld_shlibs_CXX=no
12469    ;;
12470  *)
12471    # FIXME: insert proper C++ library support
12472    ld_shlibs_CXX=no
12473    ;;
12474esac
12475{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12476$as_echo "$ld_shlibs_CXX" >&6; }
12477test "$ld_shlibs_CXX" = no && can_build_shared=no
12478
12479GCC_CXX="$GXX"
12480LD_CXX="$LD"
12481
12482cat > conftest.$ac_ext <<EOF
12483class Foo
12484{
12485public:
12486  Foo (void) { a = 0; }
12487private:
12488  int a;
12489};
12490EOF
12491
12492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493  (eval $ac_compile) 2>&5
12494  ac_status=$?
12495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496  (exit $ac_status); }; then
12497  # Parse the compiler output and extract the necessary
12498  # objects, libraries and library flags.
12499
12500  # Sentinel used to keep track of whether or not we are before
12501  # the conftest object file.
12502  pre_test_object_deps_done=no
12503
12504  # The `*' in the case matches for architectures that use `case' in
12505  # $output_verbose_cmd can trigger glob expansion during the loop
12506  # eval without this substitution.
12507  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12508
12509  for p in `eval $output_verbose_link_cmd`; do
12510    case $p in
12511
12512    -L* | -R* | -l*)
12513       # Some compilers place space between "-{L,R}" and the path.
12514       # Remove the space.
12515       if test $p = "-L" \
12516	  || test $p = "-R"; then
12517	 prev=$p
12518	 continue
12519       else
12520	 prev=
12521       fi
12522
12523       if test "$pre_test_object_deps_done" = no; then
12524	 case $p in
12525	 -L* | -R*)
12526	   # Internal compiler library paths should come after those
12527	   # provided the user.  The postdeps already come after the
12528	   # user supplied libs so there is no need to process them.
12529	   if test -z "$compiler_lib_search_path_CXX"; then
12530	     compiler_lib_search_path_CXX="${prev}${p}"
12531	   else
12532	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12533	   fi
12534	   ;;
12535	 # The "-l" case would never come before the object being
12536	 # linked, so don't bother handling this case.
12537	 esac
12538       else
12539	 if test -z "$postdeps_CXX"; then
12540	   postdeps_CXX="${prev}${p}"
12541	 else
12542	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12543	 fi
12544       fi
12545       ;;
12546
12547    *.$objext)
12548       # This assumes that the test object file only shows up
12549       # once in the compiler output.
12550       if test "$p" = "conftest.$objext"; then
12551	 pre_test_object_deps_done=yes
12552	 continue
12553       fi
12554
12555       if test "$pre_test_object_deps_done" = no; then
12556	 if test -z "$predep_objects_CXX"; then
12557	   predep_objects_CXX="$p"
12558	 else
12559	   predep_objects_CXX="$predep_objects_CXX $p"
12560	 fi
12561       else
12562	 if test -z "$postdep_objects_CXX"; then
12563	   postdep_objects_CXX="$p"
12564	 else
12565	   postdep_objects_CXX="$postdep_objects_CXX $p"
12566	 fi
12567       fi
12568       ;;
12569
12570    *) ;; # Ignore the rest.
12571
12572    esac
12573  done
12574
12575  # Clean up.
12576  rm -f a.out a.exe
12577else
12578  echo "libtool.m4: error: problem compiling CXX test program"
12579fi
12580
12581$rm -f confest.$objext
12582
12583compiler_lib_search_dirs_CXX=
12584if test -n "$compiler_lib_search_path_CXX"; then
12585  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12586fi
12587
12588# PORTME: override above test on systems where it is broken
12589case $host_os in
12590interix[3-9]*)
12591  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12592  # hack all around it, let's just trust "g++" to DTRT.
12593  predep_objects_CXX=
12594  postdep_objects_CXX=
12595  postdeps_CXX=
12596  ;;
12597
12598linux*)
12599  case `$CC -V 2>&1 | sed 5q` in
12600  *Sun\ C*)
12601    # Sun C++ 5.9
12602    #
12603    # The more standards-conforming stlport4 library is
12604    # incompatible with the Cstd library. Avoid specifying
12605    # it if it's in CXXFLAGS. Ignore libCrun as
12606    # -library=stlport4 depends on it.
12607    case " $CXX $CXXFLAGS " in
12608    *" -library=stlport4 "*)
12609      solaris_use_stlport4=yes
12610      ;;
12611    esac
12612    if test "$solaris_use_stlport4" != yes; then
12613      postdeps_CXX='-library=Cstd -library=Crun'
12614    fi
12615    ;;
12616  esac
12617  ;;
12618
12619solaris*)
12620  case $cc_basename in
12621  CC*)
12622    # The more standards-conforming stlport4 library is
12623    # incompatible with the Cstd library. Avoid specifying
12624    # it if it's in CXXFLAGS. Ignore libCrun as
12625    # -library=stlport4 depends on it.
12626    case " $CXX $CXXFLAGS " in
12627    *" -library=stlport4 "*)
12628      solaris_use_stlport4=yes
12629      ;;
12630    esac
12631
12632    # Adding this requires a known-good setup of shared libraries for
12633    # Sun compiler versions before 5.6, else PIC objects from an old
12634    # archive will be linked into the output, leading to subtle bugs.
12635    if test "$solaris_use_stlport4" != yes; then
12636      postdeps_CXX='-library=Cstd -library=Crun'
12637    fi
12638    ;;
12639  esac
12640  ;;
12641esac
12642
12643case " $postdeps_CXX " in
12644*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12645esac
12646
12647lt_prog_compiler_wl_CXX=
12648lt_prog_compiler_pic_CXX=
12649lt_prog_compiler_static_CXX=
12650
12651{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12652$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12653
12654  # C++ specific cases for pic, static, wl, etc.
12655  if test "$GXX" = yes; then
12656    lt_prog_compiler_wl_CXX='-Wl,'
12657    lt_prog_compiler_static_CXX='-static'
12658
12659    case $host_os in
12660    aix*)
12661      # All AIX code is PIC.
12662      if test "$host_cpu" = ia64; then
12663	# AIX 5 now supports IA64 processor
12664	lt_prog_compiler_static_CXX='-Bstatic'
12665      fi
12666      ;;
12667    amigaos*)
12668      # FIXME: we need at least 68020 code to build shared libraries, but
12669      # adding the `-m68020' flag to GCC prevents building anything better,
12670      # like `-m68040'.
12671      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12672      ;;
12673    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12674      # PIC is the default for these OSes.
12675      ;;
12676    mingw* | cygwin* | os2* | pw32*)
12677      # This hack is so that the source file can tell whether it is being
12678      # built for inclusion in a dll (and should export symbols for example).
12679      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12680      # (--disable-auto-import) libraries
12681      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12682      ;;
12683    darwin* | rhapsody*)
12684      # PIC is the default on this platform
12685      # Common symbols not allowed in MH_DYLIB files
12686      lt_prog_compiler_pic_CXX='-fno-common'
12687      ;;
12688    *djgpp*)
12689      # DJGPP does not support shared libraries at all
12690      lt_prog_compiler_pic_CXX=
12691      ;;
12692    interix[3-9]*)
12693      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12694      # Instead, we relocate shared libraries at runtime.
12695      ;;
12696    sysv4*MP*)
12697      if test -d /usr/nec; then
12698	lt_prog_compiler_pic_CXX=-Kconform_pic
12699      fi
12700      ;;
12701    hpux*)
12702      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12703      # not for PA HP-UX.
12704      case $host_cpu in
12705      hppa*64*|ia64*)
12706	;;
12707      *)
12708	lt_prog_compiler_pic_CXX='-fPIC'
12709	;;
12710      esac
12711      ;;
12712    *)
12713      lt_prog_compiler_pic_CXX='-fPIC'
12714      ;;
12715    esac
12716  else
12717    case $host_os in
12718      aix[4-9]*)
12719	# All AIX code is PIC.
12720	if test "$host_cpu" = ia64; then
12721	  # AIX 5 now supports IA64 processor
12722	  lt_prog_compiler_static_CXX='-Bstatic'
12723	else
12724	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12725	fi
12726	;;
12727      chorus*)
12728	case $cc_basename in
12729	cxch68*)
12730	  # Green Hills C++ Compiler
12731	  # _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"
12732	  ;;
12733	esac
12734	;;
12735       darwin*)
12736         # PIC is the default on this platform
12737         # Common symbols not allowed in MH_DYLIB files
12738         case $cc_basename in
12739           xlc*)
12740           lt_prog_compiler_pic_CXX='-qnocommon'
12741           lt_prog_compiler_wl_CXX='-Wl,'
12742           ;;
12743         esac
12744       ;;
12745      dgux*)
12746	case $cc_basename in
12747	  ec++*)
12748	    lt_prog_compiler_pic_CXX='-KPIC'
12749	    ;;
12750	  ghcx*)
12751	    # Green Hills C++ Compiler
12752	    lt_prog_compiler_pic_CXX='-pic'
12753	    ;;
12754	  *)
12755	    ;;
12756	esac
12757	;;
12758      freebsd* | dragonfly*)
12759	# FreeBSD uses GNU C++
12760	;;
12761      hpux9* | hpux10* | hpux11*)
12762	case $cc_basename in
12763	  CC*)
12764	    lt_prog_compiler_wl_CXX='-Wl,'
12765	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12766	    if test "$host_cpu" != ia64; then
12767	      lt_prog_compiler_pic_CXX='+Z'
12768	    fi
12769	    ;;
12770	  aCC*)
12771	    lt_prog_compiler_wl_CXX='-Wl,'
12772	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12773	    case $host_cpu in
12774	    hppa*64*|ia64*)
12775	      # +Z the default
12776	      ;;
12777	    *)
12778	      lt_prog_compiler_pic_CXX='+Z'
12779	      ;;
12780	    esac
12781	    ;;
12782	  *)
12783	    ;;
12784	esac
12785	;;
12786      interix*)
12787	# This is c89, which is MS Visual C++ (no shared libs)
12788	# Anyone wants to do a port?
12789	;;
12790      irix5* | irix6* | nonstopux*)
12791	case $cc_basename in
12792	  CC*)
12793	    lt_prog_compiler_wl_CXX='-Wl,'
12794	    lt_prog_compiler_static_CXX='-non_shared'
12795	    # CC pic flag -KPIC is the default.
12796	    ;;
12797	  *)
12798	    ;;
12799	esac
12800	;;
12801      linux* | k*bsd*-gnu)
12802	case $cc_basename in
12803	  KCC*)
12804	    # KAI C++ Compiler
12805	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12806	    lt_prog_compiler_pic_CXX='-fPIC'
12807	    ;;
12808	  icpc* | ecpc*)
12809	    # Intel C++
12810	    lt_prog_compiler_wl_CXX='-Wl,'
12811	    lt_prog_compiler_pic_CXX='-KPIC'
12812	    lt_prog_compiler_static_CXX='-static'
12813	    ;;
12814	  pgCC* | pgcpp*)
12815	    # Portland Group C++ compiler.
12816	    lt_prog_compiler_wl_CXX='-Wl,'
12817	    lt_prog_compiler_pic_CXX='-fpic'
12818	    lt_prog_compiler_static_CXX='-Bstatic'
12819	    ;;
12820	  cxx*)
12821	    # Compaq C++
12822	    # Make sure the PIC flag is empty.  It appears that all Alpha
12823	    # Linux and Compaq Tru64 Unix objects are PIC.
12824	    lt_prog_compiler_pic_CXX=
12825	    lt_prog_compiler_static_CXX='-non_shared'
12826	    ;;
12827	  *)
12828	    case `$CC -V 2>&1 | sed 5q` in
12829	    *Sun\ C*)
12830	      # Sun C++ 5.9
12831	      lt_prog_compiler_pic_CXX='-KPIC'
12832	      lt_prog_compiler_static_CXX='-Bstatic'
12833	      lt_prog_compiler_wl_CXX='-Qoption ld '
12834	      ;;
12835	    esac
12836	    ;;
12837	esac
12838	;;
12839      lynxos*)
12840	;;
12841      m88k*)
12842	;;
12843      mvs*)
12844	case $cc_basename in
12845	  cxx*)
12846	    lt_prog_compiler_pic_CXX='-W c,exportall'
12847	    ;;
12848	  *)
12849	    ;;
12850	esac
12851	;;
12852      netbsd*)
12853	;;
12854      osf3* | osf4* | osf5*)
12855	case $cc_basename in
12856	  KCC*)
12857	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12858	    ;;
12859	  RCC*)
12860	    # Rational C++ 2.4.1
12861	    lt_prog_compiler_pic_CXX='-pic'
12862	    ;;
12863	  cxx*)
12864	    # Digital/Compaq C++
12865	    lt_prog_compiler_wl_CXX='-Wl,'
12866	    # Make sure the PIC flag is empty.  It appears that all Alpha
12867	    # Linux and Compaq Tru64 Unix objects are PIC.
12868	    lt_prog_compiler_pic_CXX=
12869	    lt_prog_compiler_static_CXX='-non_shared'
12870	    ;;
12871	  *)
12872	    ;;
12873	esac
12874	;;
12875      psos*)
12876	;;
12877      solaris*)
12878	case $cc_basename in
12879	  CC*)
12880	    # Sun C++ 4.2, 5.x and Centerline C++
12881	    lt_prog_compiler_pic_CXX='-KPIC'
12882	    lt_prog_compiler_static_CXX='-Bstatic'
12883	    lt_prog_compiler_wl_CXX='-Qoption ld '
12884	    ;;
12885	  gcx*)
12886	    # Green Hills C++ Compiler
12887	    lt_prog_compiler_pic_CXX='-PIC'
12888	    ;;
12889	  *)
12890	    ;;
12891	esac
12892	;;
12893      sunos4*)
12894	case $cc_basename in
12895	  CC*)
12896	    # Sun C++ 4.x
12897	    lt_prog_compiler_pic_CXX='-pic'
12898	    lt_prog_compiler_static_CXX='-Bstatic'
12899	    ;;
12900	  lcc*)
12901	    # Lucid
12902	    lt_prog_compiler_pic_CXX='-pic'
12903	    ;;
12904	  *)
12905	    ;;
12906	esac
12907	;;
12908      tandem*)
12909	case $cc_basename in
12910	  NCC*)
12911	    # NonStop-UX NCC 3.20
12912	    lt_prog_compiler_pic_CXX='-KPIC'
12913	    ;;
12914	  *)
12915	    ;;
12916	esac
12917	;;
12918      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12919	case $cc_basename in
12920	  CC*)
12921	    lt_prog_compiler_wl_CXX='-Wl,'
12922	    lt_prog_compiler_pic_CXX='-KPIC'
12923	    lt_prog_compiler_static_CXX='-Bstatic'
12924	    ;;
12925	esac
12926	;;
12927      vxworks*)
12928	;;
12929      *)
12930	lt_prog_compiler_can_build_shared_CXX=no
12931	;;
12932    esac
12933  fi
12934
12935{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12936$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12937
12938#
12939# Check to make sure the PIC flag actually works.
12940#
12941if test -n "$lt_prog_compiler_pic_CXX"; then
12942
12943{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12944$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12945if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12946  $as_echo_n "(cached) " >&6
12947else
12948  lt_cv_prog_compiler_pic_works_CXX=no
12949  ac_outfile=conftest.$ac_objext
12950   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12951   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12952   # Insert the option either (1) after the last *FLAGS variable, or
12953   # (2) before a word containing "conftest.", or (3) at the end.
12954   # Note that $ac_compile itself does not contain backslashes and begins
12955   # with a dollar sign (not a hyphen), so the echo should work correctly.
12956   # The option is referenced via a variable to avoid confusing sed.
12957   lt_compile=`echo "$ac_compile" | $SED \
12958   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12959   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12960   -e 's:$: $lt_compiler_flag:'`
12961   (eval echo "\"\$as_me:12961: $lt_compile\"" >&5)
12962   (eval "$lt_compile" 2>conftest.err)
12963   ac_status=$?
12964   cat conftest.err >&5
12965   echo "$as_me:12965: \$? = $ac_status" >&5
12966   if (exit $ac_status) && test -s "$ac_outfile"; then
12967     # The compiler can only warn and ignore the option if not recognized
12968     # So say no if there are warnings other than the usual output.
12969     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12970     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12971     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12972       lt_cv_prog_compiler_pic_works_CXX=yes
12973     fi
12974   fi
12975   $rm conftest*
12976
12977fi
12978{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12979$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12980
12981if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12982    case $lt_prog_compiler_pic_CXX in
12983     "" | " "*) ;;
12984     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12985     esac
12986else
12987    lt_prog_compiler_pic_CXX=
12988     lt_prog_compiler_can_build_shared_CXX=no
12989fi
12990
12991fi
12992case $host_os in
12993  # For platforms which do not support PIC, -DPIC is meaningless:
12994  *djgpp*)
12995    lt_prog_compiler_pic_CXX=
12996    ;;
12997  *)
12998    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12999    ;;
13000esac
13001
13002#
13003# Check to make sure the static flag actually works.
13004#
13005wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13006{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13007$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13008if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13009  $as_echo_n "(cached) " >&6
13010else
13011  lt_cv_prog_compiler_static_works_CXX=no
13012   save_LDFLAGS="$LDFLAGS"
13013   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13014   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13015   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13016     # The linker can only warn and ignore the option if not recognized
13017     # So say no if there are warnings
13018     if test -s conftest.err; then
13019       # Append any errors to the config.log.
13020       cat conftest.err 1>&5
13021       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13022       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13023       if diff conftest.exp conftest.er2 >/dev/null; then
13024         lt_cv_prog_compiler_static_works_CXX=yes
13025       fi
13026     else
13027       lt_cv_prog_compiler_static_works_CXX=yes
13028     fi
13029   fi
13030   $rm -r conftest*
13031   LDFLAGS="$save_LDFLAGS"
13032
13033fi
13034{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13035$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13036
13037if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13038    :
13039else
13040    lt_prog_compiler_static_CXX=
13041fi
13042
13043
13044{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13046if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13047  $as_echo_n "(cached) " >&6
13048else
13049  lt_cv_prog_compiler_c_o_CXX=no
13050   $rm -r conftest 2>/dev/null
13051   mkdir conftest
13052   cd conftest
13053   mkdir out
13054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13055
13056   lt_compiler_flag="-o out/conftest2.$ac_objext"
13057   # Insert the option either (1) after the last *FLAGS variable, or
13058   # (2) before a word containing "conftest.", or (3) at the end.
13059   # Note that $ac_compile itself does not contain backslashes and begins
13060   # with a dollar sign (not a hyphen), so the echo should work correctly.
13061   lt_compile=`echo "$ac_compile" | $SED \
13062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13064   -e 's:$: $lt_compiler_flag:'`
13065   (eval echo "\"\$as_me:13065: $lt_compile\"" >&5)
13066   (eval "$lt_compile" 2>out/conftest.err)
13067   ac_status=$?
13068   cat out/conftest.err >&5
13069   echo "$as_me:13069: \$? = $ac_status" >&5
13070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13071   then
13072     # The compiler can only warn and ignore the option if not recognized
13073     # So say no if there are warnings
13074     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13077       lt_cv_prog_compiler_c_o_CXX=yes
13078     fi
13079   fi
13080   chmod u+w . 2>&5
13081   $rm conftest*
13082   # SGI C++ compiler will create directory out/ii_files/ for
13083   # template instantiation
13084   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13085   $rm out/* && rmdir out
13086   cd ..
13087   rmdir conftest
13088   $rm conftest*
13089
13090fi
13091{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13092$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13093
13094
13095hard_links="nottested"
13096if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13097  # do not overwrite the value of need_locks provided by the user
13098  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13099$as_echo_n "checking if we can lock with hard links... " >&6; }
13100  hard_links=yes
13101  $rm conftest*
13102  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13103  touch conftest.a
13104  ln conftest.a conftest.b 2>&5 || hard_links=no
13105  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13106  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13107$as_echo "$hard_links" >&6; }
13108  if test "$hard_links" = no; then
13109    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13110$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13111    need_locks=warn
13112  fi
13113else
13114  need_locks=no
13115fi
13116
13117{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13118$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13119
13120  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13121  case $host_os in
13122  aix[4-9]*)
13123    # If we're using GNU nm, then we don't want the "-C" option.
13124    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13125    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13126      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'
13127    else
13128      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'
13129    fi
13130    ;;
13131  pw32*)
13132    export_symbols_cmds_CXX="$ltdll_cmds"
13133  ;;
13134  cygwin* | mingw*)
13135    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'
13136  ;;
13137  *)
13138    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13139  ;;
13140  esac
13141  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13142
13143{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13144$as_echo "$ld_shlibs_CXX" >&6; }
13145test "$ld_shlibs_CXX" = no && can_build_shared=no
13146
13147#
13148# Do we need to explicitly link libc?
13149#
13150case "x$archive_cmds_need_lc_CXX" in
13151x|xyes)
13152  # Assume -lc should be added
13153  archive_cmds_need_lc_CXX=yes
13154
13155  if test "$enable_shared" = yes && test "$GCC" = yes; then
13156    case $archive_cmds_CXX in
13157    *'~'*)
13158      # FIXME: we may have to deal with multi-command sequences.
13159      ;;
13160    '$CC '*)
13161      # Test whether the compiler implicitly links with -lc since on some
13162      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13163      # to ld, don't add -lc before -lgcc.
13164      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13165$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13166      $rm conftest*
13167      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13168
13169      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13170  (eval $ac_compile) 2>&5
13171  ac_status=$?
13172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173  (exit $ac_status); } 2>conftest.err; then
13174        soname=conftest
13175        lib=conftest
13176        libobjs=conftest.$ac_objext
13177        deplibs=
13178        wl=$lt_prog_compiler_wl_CXX
13179	pic_flag=$lt_prog_compiler_pic_CXX
13180        compiler_flags=-v
13181        linker_flags=-v
13182        verstring=
13183        output_objdir=.
13184        libname=conftest
13185        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13186        allow_undefined_flag_CXX=
13187        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13188  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13189  ac_status=$?
13190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191  (exit $ac_status); }
13192        then
13193	  archive_cmds_need_lc_CXX=no
13194        else
13195	  archive_cmds_need_lc_CXX=yes
13196        fi
13197        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13198      else
13199        cat conftest.err 1>&5
13200      fi
13201      $rm conftest*
13202      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13203$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13204      ;;
13205    esac
13206  fi
13207  ;;
13208esac
13209
13210{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13211$as_echo_n "checking dynamic linker characteristics... " >&6; }
13212library_names_spec=
13213libname_spec='lib$name'
13214soname_spec=
13215shrext_cmds=".so"
13216postinstall_cmds=
13217postuninstall_cmds=
13218finish_cmds=
13219finish_eval=
13220shlibpath_var=
13221shlibpath_overrides_runpath=unknown
13222version_type=none
13223dynamic_linker="$host_os ld.so"
13224sys_lib_dlsearch_path_spec="/lib /usr/lib"
13225
13226need_lib_prefix=unknown
13227hardcode_into_libs=no
13228
13229# when you set need_version to no, make sure it does not cause -set_version
13230# flags to be left without arguments
13231need_version=unknown
13232
13233case $host_os in
13234aix3*)
13235  version_type=linux
13236  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13237  shlibpath_var=LIBPATH
13238
13239  # AIX 3 has no versioning support, so we append a major version to the name.
13240  soname_spec='${libname}${release}${shared_ext}$major'
13241  ;;
13242
13243aix[4-9]*)
13244  version_type=linux
13245  need_lib_prefix=no
13246  need_version=no
13247  hardcode_into_libs=yes
13248  if test "$host_cpu" = ia64; then
13249    # AIX 5 supports IA64
13250    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13251    shlibpath_var=LD_LIBRARY_PATH
13252  else
13253    # With GCC up to 2.95.x, collect2 would create an import file
13254    # for dependence libraries.  The import file would start with
13255    # the line `#! .'.  This would cause the generated library to
13256    # depend on `.', always an invalid library.  This was fixed in
13257    # development snapshots of GCC prior to 3.0.
13258    case $host_os in
13259      aix4 | aix4.[01] | aix4.[01].*)
13260      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13261	   echo ' yes '
13262	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13263	:
13264      else
13265	can_build_shared=no
13266      fi
13267      ;;
13268    esac
13269    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13270    # soname into executable. Probably we can add versioning support to
13271    # collect2, so additional links can be useful in future.
13272    if test "$aix_use_runtimelinking" = yes; then
13273      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13274      # instead of lib<name>.a to let people know that these are not
13275      # typical AIX shared libraries.
13276      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13277    else
13278      # We preserve .a as extension for shared libraries through AIX4.2
13279      # and later when we are not doing run time linking.
13280      library_names_spec='${libname}${release}.a $libname.a'
13281      soname_spec='${libname}${release}${shared_ext}$major'
13282    fi
13283    shlibpath_var=LIBPATH
13284  fi
13285  ;;
13286
13287amigaos*)
13288  library_names_spec='$libname.ixlibrary $libname.a'
13289  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13290  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'
13291  ;;
13292
13293beos*)
13294  library_names_spec='${libname}${shared_ext}'
13295  dynamic_linker="$host_os ld.so"
13296  shlibpath_var=LIBRARY_PATH
13297  ;;
13298
13299bsdi[45]*)
13300  version_type=linux
13301  need_version=no
13302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303  soname_spec='${libname}${release}${shared_ext}$major'
13304  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13305  shlibpath_var=LD_LIBRARY_PATH
13306  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13307  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13308  # the default ld.so.conf also contains /usr/contrib/lib and
13309  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13310  # libtool to hard-code these into programs
13311  ;;
13312
13313cygwin* | mingw* | pw32*)
13314  version_type=windows
13315  shrext_cmds=".dll"
13316  need_version=no
13317  need_lib_prefix=no
13318
13319  case $GCC,$host_os in
13320  yes,cygwin* | yes,mingw* | yes,pw32*)
13321    library_names_spec='$libname.dll.a'
13322    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13323    postinstall_cmds='base_file=`basename \${file}`~
13324      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13325      dldir=$destdir/`dirname \$dlpath`~
13326      test -d \$dldir || mkdir -p \$dldir~
13327      $install_prog $dir/$dlname \$dldir/$dlname~
13328      chmod a+x \$dldir/$dlname'
13329    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13330      dlpath=$dir/\$dldll~
13331       $rm \$dlpath'
13332    shlibpath_overrides_runpath=yes
13333
13334    case $host_os in
13335    cygwin*)
13336      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13337      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13338      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13339      ;;
13340    mingw*)
13341      # MinGW DLLs use traditional 'lib' prefix
13342      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13343      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13344      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13345        # It is most probably a Windows format PATH printed by
13346        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13347        # path with ; separators, and with drive letters. We can handle the
13348        # drive letters (cygwin fileutils understands them), so leave them,
13349        # especially as we might pass files found there to a mingw objdump,
13350        # which wouldn't understand a cygwinified path. Ahh.
13351        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13352      else
13353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13354      fi
13355      ;;
13356    pw32*)
13357      # pw32 DLLs use 'pw' prefix rather than 'lib'
13358      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13359      ;;
13360    esac
13361    ;;
13362
13363  *)
13364    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13365    ;;
13366  esac
13367  dynamic_linker='Win32 ld.exe'
13368  # FIXME: first we should search . and the directory the executable is in
13369  shlibpath_var=PATH
13370  ;;
13371
13372darwin* | rhapsody*)
13373  dynamic_linker="$host_os dyld"
13374  version_type=darwin
13375  need_lib_prefix=no
13376  need_version=no
13377  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13378  soname_spec='${libname}${release}${major}$shared_ext'
13379  shlibpath_overrides_runpath=yes
13380  shlibpath_var=DYLD_LIBRARY_PATH
13381  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13382
13383  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13384  ;;
13385
13386dgux*)
13387  version_type=linux
13388  need_lib_prefix=no
13389  need_version=no
13390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13391  soname_spec='${libname}${release}${shared_ext}$major'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  ;;
13394
13395freebsd1*)
13396  dynamic_linker=no
13397  ;;
13398
13399freebsd* | dragonfly*)
13400  # DragonFly does not have aout.  When/if they implement a new
13401  # versioning mechanism, adjust this.
13402  if test -x /usr/bin/objformat; then
13403    objformat=`/usr/bin/objformat`
13404  else
13405    case $host_os in
13406    freebsd[123]*) objformat=aout ;;
13407    *) objformat=elf ;;
13408    esac
13409  fi
13410  version_type=freebsd-$objformat
13411  case $version_type in
13412    freebsd-elf*)
13413      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13414      need_version=no
13415      need_lib_prefix=no
13416      ;;
13417    freebsd-*)
13418      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13419      need_version=yes
13420      ;;
13421  esac
13422  shlibpath_var=LD_LIBRARY_PATH
13423  case $host_os in
13424  freebsd2*)
13425    shlibpath_overrides_runpath=yes
13426    ;;
13427  freebsd3.[01]* | freebsdelf3.[01]*)
13428    shlibpath_overrides_runpath=yes
13429    hardcode_into_libs=yes
13430    ;;
13431  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13432  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13433    shlibpath_overrides_runpath=no
13434    hardcode_into_libs=yes
13435    ;;
13436  *) # from 4.6 on, and DragonFly
13437    shlibpath_overrides_runpath=yes
13438    hardcode_into_libs=yes
13439    ;;
13440  esac
13441  ;;
13442
13443gnu*)
13444  version_type=linux
13445  need_lib_prefix=no
13446  need_version=no
13447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13448  soname_spec='${libname}${release}${shared_ext}$major'
13449  shlibpath_var=LD_LIBRARY_PATH
13450  hardcode_into_libs=yes
13451  ;;
13452
13453hpux9* | hpux10* | hpux11*)
13454  # Give a soname corresponding to the major version so that dld.sl refuses to
13455  # link against other versions.
13456  version_type=sunos
13457  need_lib_prefix=no
13458  need_version=no
13459  case $host_cpu in
13460  ia64*)
13461    shrext_cmds='.so'
13462    hardcode_into_libs=yes
13463    dynamic_linker="$host_os dld.so"
13464    shlibpath_var=LD_LIBRARY_PATH
13465    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13466    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467    soname_spec='${libname}${release}${shared_ext}$major'
13468    if test "X$HPUX_IA64_MODE" = X32; then
13469      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13470    else
13471      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13472    fi
13473    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13474    ;;
13475   hppa*64*)
13476     shrext_cmds='.sl'
13477     hardcode_into_libs=yes
13478     dynamic_linker="$host_os dld.sl"
13479     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482     soname_spec='${libname}${release}${shared_ext}$major'
13483     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13484     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13485     ;;
13486   *)
13487    shrext_cmds='.sl'
13488    dynamic_linker="$host_os dld.sl"
13489    shlibpath_var=SHLIB_PATH
13490    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492    soname_spec='${libname}${release}${shared_ext}$major'
13493    ;;
13494  esac
13495  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13496  postinstall_cmds='chmod 555 $lib'
13497  ;;
13498
13499interix[3-9]*)
13500  version_type=linux
13501  need_lib_prefix=no
13502  need_version=no
13503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13504  soname_spec='${libname}${release}${shared_ext}$major'
13505  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13506  shlibpath_var=LD_LIBRARY_PATH
13507  shlibpath_overrides_runpath=no
13508  hardcode_into_libs=yes
13509  ;;
13510
13511irix5* | irix6* | nonstopux*)
13512  case $host_os in
13513    nonstopux*) version_type=nonstopux ;;
13514    *)
13515	if test "$lt_cv_prog_gnu_ld" = yes; then
13516		version_type=linux
13517	else
13518		version_type=irix
13519	fi ;;
13520  esac
13521  need_lib_prefix=no
13522  need_version=no
13523  soname_spec='${libname}${release}${shared_ext}$major'
13524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13525  case $host_os in
13526  irix5* | nonstopux*)
13527    libsuff= shlibsuff=
13528    ;;
13529  *)
13530    case $LD in # libtool.m4 will add one of these switches to LD
13531    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13532      libsuff= shlibsuff= libmagic=32-bit;;
13533    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13534      libsuff=32 shlibsuff=N32 libmagic=N32;;
13535    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13536      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13537    *) libsuff= shlibsuff= libmagic=never-match;;
13538    esac
13539    ;;
13540  esac
13541  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13542  shlibpath_overrides_runpath=no
13543  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13544  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13545  hardcode_into_libs=yes
13546  ;;
13547
13548# No shared lib support for Linux oldld, aout, or coff.
13549linux*oldld* | linux*aout* | linux*coff*)
13550  dynamic_linker=no
13551  ;;
13552
13553# This must be Linux ELF.
13554linux* | k*bsd*-gnu)
13555  version_type=linux
13556  need_lib_prefix=no
13557  need_version=no
13558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559  soname_spec='${libname}${release}${shared_ext}$major'
13560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13561  shlibpath_var=LD_LIBRARY_PATH
13562  shlibpath_overrides_runpath=no
13563  # This implies no fast_install, which is unacceptable.
13564  # Some rework will be needed to allow for fast_install
13565  # before this can be enabled.
13566  hardcode_into_libs=yes
13567  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13568  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13569
13570  # Append ld.so.conf contents to the search path
13571  if test -f /etc/ld.so.conf; then
13572    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' ' '`
13573    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13574  fi
13575
13576  # We used to test for /lib/ld.so.1 and disable shared libraries on
13577  # powerpc, because MkLinux only supported shared libraries with the
13578  # GNU dynamic linker.  Since this was broken with cross compilers,
13579  # most powerpc-linux boxes support dynamic linking these days and
13580  # people can always --disable-shared, the test was removed, and we
13581  # assume the GNU/Linux dynamic linker is in use.
13582  dynamic_linker='GNU/Linux ld.so'
13583  ;;
13584
13585netbsd*)
13586  version_type=sunos
13587  need_lib_prefix=no
13588  need_version=no
13589  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13591    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13592    dynamic_linker='NetBSD (a.out) ld.so'
13593  else
13594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595    soname_spec='${libname}${release}${shared_ext}$major'
13596    dynamic_linker='NetBSD ld.elf_so'
13597  fi
13598  shlibpath_var=LD_LIBRARY_PATH
13599  shlibpath_overrides_runpath=yes
13600  hardcode_into_libs=yes
13601  ;;
13602
13603newsos6)
13604  version_type=linux
13605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=yes
13608  ;;
13609
13610nto-qnx*)
13611  version_type=linux
13612  need_lib_prefix=no
13613  need_version=no
13614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615  soname_spec='${libname}${release}${shared_ext}$major'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  shlibpath_overrides_runpath=yes
13618  ;;
13619
13620openbsd*)
13621  version_type=sunos
13622  sys_lib_dlsearch_path_spec="/usr/lib"
13623  need_lib_prefix=no
13624  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13625  case $host_os in
13626    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13627    *)                         need_version=no  ;;
13628  esac
13629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631  shlibpath_var=LD_LIBRARY_PATH
13632  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13633    case $host_os in
13634      openbsd2.[89] | openbsd2.[89].*)
13635	shlibpath_overrides_runpath=no
13636	;;
13637      *)
13638	shlibpath_overrides_runpath=yes
13639	;;
13640      esac
13641  else
13642    shlibpath_overrides_runpath=yes
13643  fi
13644  ;;
13645
13646os2*)
13647  libname_spec='$name'
13648  shrext_cmds=".dll"
13649  need_lib_prefix=no
13650  library_names_spec='$libname${shared_ext} $libname.a'
13651  dynamic_linker='OS/2 ld.exe'
13652  shlibpath_var=LIBPATH
13653  ;;
13654
13655osf3* | osf4* | osf5*)
13656  version_type=osf
13657  need_lib_prefix=no
13658  need_version=no
13659  soname_spec='${libname}${release}${shared_ext}$major'
13660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13663  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13664  ;;
13665
13666rdos*)
13667  dynamic_linker=no
13668  ;;
13669
13670solaris*)
13671  version_type=linux
13672  need_lib_prefix=no
13673  need_version=no
13674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675  soname_spec='${libname}${release}${shared_ext}$major'
13676  shlibpath_var=LD_LIBRARY_PATH
13677  shlibpath_overrides_runpath=yes
13678  hardcode_into_libs=yes
13679  # ldd complains unless libraries are executable
13680  postinstall_cmds='chmod +x $lib'
13681  ;;
13682
13683sunos4*)
13684  version_type=sunos
13685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13687  shlibpath_var=LD_LIBRARY_PATH
13688  shlibpath_overrides_runpath=yes
13689  if test "$with_gnu_ld" = yes; then
13690    need_lib_prefix=no
13691  fi
13692  need_version=yes
13693  ;;
13694
13695sysv4 | sysv4.3*)
13696  version_type=linux
13697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698  soname_spec='${libname}${release}${shared_ext}$major'
13699  shlibpath_var=LD_LIBRARY_PATH
13700  case $host_vendor in
13701    sni)
13702      shlibpath_overrides_runpath=no
13703      need_lib_prefix=no
13704      export_dynamic_flag_spec='${wl}-Blargedynsym'
13705      runpath_var=LD_RUN_PATH
13706      ;;
13707    siemens)
13708      need_lib_prefix=no
13709      ;;
13710    motorola)
13711      need_lib_prefix=no
13712      need_version=no
13713      shlibpath_overrides_runpath=no
13714      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13715      ;;
13716  esac
13717  ;;
13718
13719sysv4*MP*)
13720  if test -d /usr/nec ;then
13721    version_type=linux
13722    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13723    soname_spec='$libname${shared_ext}.$major'
13724    shlibpath_var=LD_LIBRARY_PATH
13725  fi
13726  ;;
13727
13728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729  version_type=freebsd-elf
13730  need_lib_prefix=no
13731  need_version=no
13732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13733  soname_spec='${libname}${release}${shared_ext}$major'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  hardcode_into_libs=yes
13736  if test "$with_gnu_ld" = yes; then
13737    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13738    shlibpath_overrides_runpath=no
13739  else
13740    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13741    shlibpath_overrides_runpath=yes
13742    case $host_os in
13743      sco3.2v5*)
13744        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13745	;;
13746    esac
13747  fi
13748  sys_lib_dlsearch_path_spec='/usr/lib'
13749  ;;
13750
13751uts4*)
13752  version_type=linux
13753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754  soname_spec='${libname}${release}${shared_ext}$major'
13755  shlibpath_var=LD_LIBRARY_PATH
13756  ;;
13757
13758*)
13759  dynamic_linker=no
13760  ;;
13761esac
13762{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13763$as_echo "$dynamic_linker" >&6; }
13764test "$dynamic_linker" = no && can_build_shared=no
13765
13766if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13767  $as_echo_n "(cached) " >&6
13768else
13769  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13770fi
13771
13772sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13773if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13774  $as_echo_n "(cached) " >&6
13775else
13776  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13777fi
13778
13779sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13780
13781variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13782if test "$GCC" = yes; then
13783  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13784fi
13785
13786{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13787$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13788hardcode_action_CXX=
13789if test -n "$hardcode_libdir_flag_spec_CXX" || \
13790   test -n "$runpath_var_CXX" || \
13791   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13792
13793  # We can hardcode non-existant directories.
13794  if test "$hardcode_direct_CXX" != no &&
13795     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13796     # have to relink, otherwise we might link with an installed library
13797     # when we should be linking with a yet-to-be-installed one
13798     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13799     test "$hardcode_minus_L_CXX" != no; then
13800    # Linking always hardcodes the temporary library directory.
13801    hardcode_action_CXX=relink
13802  else
13803    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13804    hardcode_action_CXX=immediate
13805  fi
13806else
13807  # We cannot hardcode anything, or else we can only hardcode existing
13808  # directories.
13809  hardcode_action_CXX=unsupported
13810fi
13811{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13812$as_echo "$hardcode_action_CXX" >&6; }
13813
13814if test "$hardcode_action_CXX" = relink; then
13815  # Fast installation is not supported
13816  enable_fast_install=no
13817elif test "$shlibpath_overrides_runpath" = yes ||
13818     test "$enable_shared" = no; then
13819  # Fast installation is not necessary
13820  enable_fast_install=needless
13821fi
13822
13823
13824# The else clause should only fire when bootstrapping the
13825# libtool distribution, otherwise you forgot to ship ltmain.sh
13826# with your package, and you will get complaints that there are
13827# no rules to generate ltmain.sh.
13828if test -f "$ltmain"; then
13829  # See if we are running on zsh, and set the options which allow our commands through
13830  # without removal of \ escapes.
13831  if test -n "${ZSH_VERSION+set}" ; then
13832    setopt NO_GLOB_SUBST
13833  fi
13834  # Now quote all the things that may contain metacharacters while being
13835  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13836  # variables and quote the copies for generation of the libtool script.
13837  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13838    SED SHELL STRIP \
13839    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13840    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13841    deplibs_check_method reload_flag reload_cmds need_locks \
13842    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13843    lt_cv_sys_global_symbol_to_c_name_address \
13844    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13845    old_postinstall_cmds old_postuninstall_cmds \
13846    compiler_CXX \
13847    CC_CXX \
13848    LD_CXX \
13849    lt_prog_compiler_wl_CXX \
13850    lt_prog_compiler_pic_CXX \
13851    lt_prog_compiler_static_CXX \
13852    lt_prog_compiler_no_builtin_flag_CXX \
13853    export_dynamic_flag_spec_CXX \
13854    thread_safe_flag_spec_CXX \
13855    whole_archive_flag_spec_CXX \
13856    enable_shared_with_static_runtimes_CXX \
13857    old_archive_cmds_CXX \
13858    old_archive_from_new_cmds_CXX \
13859    predep_objects_CXX \
13860    postdep_objects_CXX \
13861    predeps_CXX \
13862    postdeps_CXX \
13863    compiler_lib_search_path_CXX \
13864    compiler_lib_search_dirs_CXX \
13865    archive_cmds_CXX \
13866    archive_expsym_cmds_CXX \
13867    postinstall_cmds_CXX \
13868    postuninstall_cmds_CXX \
13869    old_archive_from_expsyms_cmds_CXX \
13870    allow_undefined_flag_CXX \
13871    no_undefined_flag_CXX \
13872    export_symbols_cmds_CXX \
13873    hardcode_libdir_flag_spec_CXX \
13874    hardcode_libdir_flag_spec_ld_CXX \
13875    hardcode_libdir_separator_CXX \
13876    hardcode_automatic_CXX \
13877    module_cmds_CXX \
13878    module_expsym_cmds_CXX \
13879    lt_cv_prog_compiler_c_o_CXX \
13880    fix_srcfile_path_CXX \
13881    exclude_expsyms_CXX \
13882    include_expsyms_CXX; do
13883
13884    case $var in
13885    old_archive_cmds_CXX | \
13886    old_archive_from_new_cmds_CXX | \
13887    archive_cmds_CXX | \
13888    archive_expsym_cmds_CXX | \
13889    module_cmds_CXX | \
13890    module_expsym_cmds_CXX | \
13891    old_archive_from_expsyms_cmds_CXX | \
13892    export_symbols_cmds_CXX | \
13893    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13894    postinstall_cmds | postuninstall_cmds | \
13895    old_postinstall_cmds | old_postuninstall_cmds | \
13896    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13897      # Double-quote double-evaled strings.
13898      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13899      ;;
13900    *)
13901      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13902      ;;
13903    esac
13904  done
13905
13906  case $lt_echo in
13907  *'\$0 --fallback-echo"')
13908    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13909    ;;
13910  esac
13911
13912cfgfile="$ofile"
13913
13914  cat <<__EOF__ >> "$cfgfile"
13915# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13916
13917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13918
13919# Shell to use when invoking shell scripts.
13920SHELL=$lt_SHELL
13921
13922# Whether or not to build shared libraries.
13923build_libtool_libs=$enable_shared
13924
13925# Whether or not to build static libraries.
13926build_old_libs=$enable_static
13927
13928# Whether or not to add -lc for building shared libraries.
13929build_libtool_need_lc=$archive_cmds_need_lc_CXX
13930
13931# Whether or not to disallow shared libs when runtime libs are static
13932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13933
13934# Whether or not to optimize for fast installation.
13935fast_install=$enable_fast_install
13936
13937# The host system.
13938host_alias=$host_alias
13939host=$host
13940host_os=$host_os
13941
13942# The build system.
13943build_alias=$build_alias
13944build=$build
13945build_os=$build_os
13946
13947# An echo program that does not interpret backslashes.
13948echo=$lt_echo
13949
13950# The archiver.
13951AR=$lt_AR
13952AR_FLAGS=$lt_AR_FLAGS
13953
13954# A C compiler.
13955LTCC=$lt_LTCC
13956
13957# LTCC compiler flags.
13958LTCFLAGS=$lt_LTCFLAGS
13959
13960# A language-specific compiler.
13961CC=$lt_compiler_CXX
13962
13963# Is the compiler the GNU C compiler?
13964with_gcc=$GCC_CXX
13965
13966# An ERE matcher.
13967EGREP=$lt_EGREP
13968
13969# The linker used to build libraries.
13970LD=$lt_LD_CXX
13971
13972# Whether we need hard or soft links.
13973LN_S=$lt_LN_S
13974
13975# A BSD-compatible nm program.
13976NM=$lt_NM
13977
13978# A symbol stripping program
13979STRIP=$lt_STRIP
13980
13981# Used to examine libraries when file_magic_cmd begins "file"
13982MAGIC_CMD=$MAGIC_CMD
13983
13984# Used on cygwin: DLL creation program.
13985DLLTOOL="$DLLTOOL"
13986
13987# Used on cygwin: object dumper.
13988OBJDUMP="$OBJDUMP"
13989
13990# Used on cygwin: assembler.
13991AS="$AS"
13992
13993# The name of the directory that contains temporary libtool files.
13994objdir=$objdir
13995
13996# How to create reloadable object files.
13997reload_flag=$lt_reload_flag
13998reload_cmds=$lt_reload_cmds
13999
14000# How to pass a linker flag through the compiler.
14001wl=$lt_lt_prog_compiler_wl_CXX
14002
14003# Object file suffix (normally "o").
14004objext="$ac_objext"
14005
14006# Old archive suffix (normally "a").
14007libext="$libext"
14008
14009# Shared library suffix (normally ".so").
14010shrext_cmds='$shrext_cmds'
14011
14012# Executable file suffix (normally "").
14013exeext="$exeext"
14014
14015# Additional compiler flags for building library objects.
14016pic_flag=$lt_lt_prog_compiler_pic_CXX
14017pic_mode=$pic_mode
14018
14019# What is the maximum length of a command?
14020max_cmd_len=$lt_cv_sys_max_cmd_len
14021
14022# Does compiler simultaneously support -c and -o options?
14023compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14024
14025# Must we lock files when doing compilation?
14026need_locks=$lt_need_locks
14027
14028# Do we need the lib prefix for modules?
14029need_lib_prefix=$need_lib_prefix
14030
14031# Do we need a version for libraries?
14032need_version=$need_version
14033
14034# Whether dlopen is supported.
14035dlopen_support=$enable_dlopen
14036
14037# Whether dlopen of programs is supported.
14038dlopen_self=$enable_dlopen_self
14039
14040# Whether dlopen of statically linked programs is supported.
14041dlopen_self_static=$enable_dlopen_self_static
14042
14043# Compiler flag to prevent dynamic linking.
14044link_static_flag=$lt_lt_prog_compiler_static_CXX
14045
14046# Compiler flag to turn off builtin functions.
14047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14048
14049# Compiler flag to allow reflexive dlopens.
14050export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14051
14052# Compiler flag to generate shared objects directly from archives.
14053whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14054
14055# Compiler flag to generate thread-safe objects.
14056thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14057
14058# Library versioning type.
14059version_type=$version_type
14060
14061# Format of library name prefix.
14062libname_spec=$lt_libname_spec
14063
14064# List of archive names.  First name is the real one, the rest are links.
14065# The last name is the one that the linker finds with -lNAME.
14066library_names_spec=$lt_library_names_spec
14067
14068# The coded name of the library, if different from the real name.
14069soname_spec=$lt_soname_spec
14070
14071# Commands used to build and install an old-style archive.
14072RANLIB=$lt_RANLIB
14073old_archive_cmds=$lt_old_archive_cmds_CXX
14074old_postinstall_cmds=$lt_old_postinstall_cmds
14075old_postuninstall_cmds=$lt_old_postuninstall_cmds
14076
14077# Create an old-style archive from a shared archive.
14078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14079
14080# Create a temporary old-style archive to link instead of a shared archive.
14081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14082
14083# Commands used to build and install a shared archive.
14084archive_cmds=$lt_archive_cmds_CXX
14085archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14086postinstall_cmds=$lt_postinstall_cmds
14087postuninstall_cmds=$lt_postuninstall_cmds
14088
14089# Commands used to build a loadable module (assumed same as above if empty)
14090module_cmds=$lt_module_cmds_CXX
14091module_expsym_cmds=$lt_module_expsym_cmds_CXX
14092
14093# Commands to strip libraries.
14094old_striplib=$lt_old_striplib
14095striplib=$lt_striplib
14096
14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predep_objects=$lt_predep_objects_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdep_objects=$lt_postdep_objects_CXX
14104
14105# Dependencies to place before the objects being linked to create a
14106# shared library.
14107predeps=$lt_predeps_CXX
14108
14109# Dependencies to place after the objects being linked to create a
14110# shared library.
14111postdeps=$lt_postdeps_CXX
14112
14113# The directories searched by this compiler when creating a shared
14114# library
14115compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14116
14117# The library search path used internally by the compiler when linking
14118# a shared library.
14119compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14120
14121# Method to check whether dependent libraries are shared objects.
14122deplibs_check_method=$lt_deplibs_check_method
14123
14124# Command to use when deplibs_check_method == file_magic.
14125file_magic_cmd=$lt_file_magic_cmd
14126
14127# Flag that allows shared libraries with undefined symbols to be built.
14128allow_undefined_flag=$lt_allow_undefined_flag_CXX
14129
14130# Flag that forces no undefined symbols.
14131no_undefined_flag=$lt_no_undefined_flag_CXX
14132
14133# Commands used to finish a libtool library installation in a directory.
14134finish_cmds=$lt_finish_cmds
14135
14136# Same as above, but a single script fragment to be evaled but not shown.
14137finish_eval=$lt_finish_eval
14138
14139# Take the output of nm and produce a listing of raw symbols and C names.
14140global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14141
14142# Transform the output of nm in a proper C declaration
14143global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14144
14145# Transform the output of nm in a C name address pair
14146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14147
14148# This is the shared library runtime path variable.
14149runpath_var=$runpath_var
14150
14151# This is the shared library path variable.
14152shlibpath_var=$shlibpath_var
14153
14154# Is shlibpath searched before the hard-coded library search path?
14155shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14156
14157# How to hardcode a shared library path into an executable.
14158hardcode_action=$hardcode_action_CXX
14159
14160# Whether we should hardcode library paths into libraries.
14161hardcode_into_libs=$hardcode_into_libs
14162
14163# Flag to hardcode \$libdir into a binary during linking.
14164# This must work even if \$libdir does not exist.
14165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14166
14167# If ld is used when linking, flag to hardcode \$libdir into
14168# a binary during linking. This must work even if \$libdir does
14169# not exist.
14170hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14171
14172# Whether we need a single -rpath flag with a separated argument.
14173hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14174
14175# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14176# resulting binary.
14177hardcode_direct=$hardcode_direct_CXX
14178
14179# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14180# resulting binary.
14181hardcode_minus_L=$hardcode_minus_L_CXX
14182
14183# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14184# the resulting binary.
14185hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14186
14187# Set to yes if building a shared library automatically hardcodes DIR into the library
14188# and all subsequent libraries and executables linked against it.
14189hardcode_automatic=$hardcode_automatic_CXX
14190
14191# Variables whose values should be saved in libtool wrapper scripts and
14192# restored at relink time.
14193variables_saved_for_relink="$variables_saved_for_relink"
14194
14195# Whether libtool must link a program against all its dependency libraries.
14196link_all_deplibs=$link_all_deplibs_CXX
14197
14198# Compile-time system search path for libraries
14199sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14200
14201# Run-time system search path for libraries
14202sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14203
14204# Fix the shell variable \$srcfile for the compiler.
14205fix_srcfile_path=$lt_fix_srcfile_path
14206
14207# Set to yes if exported symbols are required.
14208always_export_symbols=$always_export_symbols_CXX
14209
14210# The commands to list exported symbols.
14211export_symbols_cmds=$lt_export_symbols_cmds_CXX
14212
14213# The commands to extract the exported symbol list from a shared archive.
14214extract_expsyms_cmds=$lt_extract_expsyms_cmds
14215
14216# Symbols that should not be listed in the preloaded symbols.
14217exclude_expsyms=$lt_exclude_expsyms_CXX
14218
14219# Symbols that must always be exported.
14220include_expsyms=$lt_include_expsyms_CXX
14221
14222# ### END LIBTOOL TAG CONFIG: $tagname
14223
14224__EOF__
14225
14226
14227else
14228  # If there is no Makefile yet, we rely on a make rule to execute
14229  # `config.status --recheck' to rerun these tests and create the
14230  # libtool script then.
14231  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14232  if test -f "$ltmain_in"; then
14233    test -f Makefile && make "$ltmain"
14234  fi
14235fi
14236
14237
14238ac_ext=c
14239ac_cpp='$CPP $CPPFLAGS'
14240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_c_compiler_gnu
14243
14244CC=$lt_save_CC
14245LDCXX=$LD
14246LD=$lt_save_LD
14247GCC=$lt_save_GCC
14248with_gnu_ldcxx=$with_gnu_ld
14249with_gnu_ld=$lt_save_with_gnu_ld
14250lt_cv_path_LDCXX=$lt_cv_path_LD
14251lt_cv_path_LD=$lt_save_path_LD
14252lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14253lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14254
14255	else
14256	  tagname=""
14257	fi
14258	;;
14259
14260      F77)
14261	if test -n "$F77" && test "X$F77" != "Xno"; then
14262
14263ac_ext=f
14264ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14265ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14267
14268
14269archive_cmds_need_lc_F77=no
14270allow_undefined_flag_F77=
14271always_export_symbols_F77=no
14272archive_expsym_cmds_F77=
14273export_dynamic_flag_spec_F77=
14274hardcode_direct_F77=no
14275hardcode_libdir_flag_spec_F77=
14276hardcode_libdir_flag_spec_ld_F77=
14277hardcode_libdir_separator_F77=
14278hardcode_minus_L_F77=no
14279hardcode_automatic_F77=no
14280module_cmds_F77=
14281module_expsym_cmds_F77=
14282link_all_deplibs_F77=unknown
14283old_archive_cmds_F77=$old_archive_cmds
14284no_undefined_flag_F77=
14285whole_archive_flag_spec_F77=
14286enable_shared_with_static_runtimes_F77=no
14287
14288# Source file extension for f77 test sources.
14289ac_ext=f
14290
14291# Object file extension for compiled f77 test sources.
14292objext=o
14293objext_F77=$objext
14294
14295# Code to be used in simple compile tests
14296lt_simple_compile_test_code="\
14297      subroutine t
14298      return
14299      end
14300"
14301
14302# Code to be used in simple link tests
14303lt_simple_link_test_code="\
14304      program t
14305      end
14306"
14307
14308# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14309
14310# If no C compiler was specified, use CC.
14311LTCC=${LTCC-"$CC"}
14312
14313# If no C compiler flags were specified, use CFLAGS.
14314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14315
14316# Allow CC to be a program name with arguments.
14317compiler=$CC
14318
14319
14320# save warnings/boilerplate of simple test code
14321ac_outfile=conftest.$ac_objext
14322echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324_lt_compiler_boilerplate=`cat conftest.err`
14325$rm conftest*
14326
14327ac_outfile=conftest.$ac_objext
14328echo "$lt_simple_link_test_code" >conftest.$ac_ext
14329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330_lt_linker_boilerplate=`cat conftest.err`
14331$rm -r conftest*
14332
14333
14334# Allow CC to be a program name with arguments.
14335lt_save_CC="$CC"
14336CC=${F77-"f77"}
14337compiler=$CC
14338compiler_F77=$CC
14339for cc_temp in $compiler""; do
14340  case $cc_temp in
14341    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14342    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14343    \-*) ;;
14344    *) break;;
14345  esac
14346done
14347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14348
14349
14350{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14351$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14352{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14353$as_echo "$can_build_shared" >&6; }
14354
14355{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14356$as_echo_n "checking whether to build shared libraries... " >&6; }
14357test "$can_build_shared" = "no" && enable_shared=no
14358
14359# On AIX, shared libraries and static libraries use the same namespace, and
14360# are all built from PIC.
14361case $host_os in
14362aix3*)
14363  test "$enable_shared" = yes && enable_static=no
14364  if test -n "$RANLIB"; then
14365    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14366    postinstall_cmds='$RANLIB $lib'
14367  fi
14368  ;;
14369aix[4-9]*)
14370  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14371    test "$enable_shared" = yes && enable_static=no
14372  fi
14373  ;;
14374esac
14375{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14376$as_echo "$enable_shared" >&6; }
14377
14378{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14379$as_echo_n "checking whether to build static libraries... " >&6; }
14380# Make sure either enable_shared or enable_static is yes.
14381test "$enable_shared" = yes || enable_static=yes
14382{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14383$as_echo "$enable_static" >&6; }
14384
14385GCC_F77="$G77"
14386LD_F77="$LD"
14387
14388lt_prog_compiler_wl_F77=
14389lt_prog_compiler_pic_F77=
14390lt_prog_compiler_static_F77=
14391
14392{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14393$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14394
14395  if test "$GCC" = yes; then
14396    lt_prog_compiler_wl_F77='-Wl,'
14397    lt_prog_compiler_static_F77='-static'
14398
14399    case $host_os in
14400      aix*)
14401      # All AIX code is PIC.
14402      if test "$host_cpu" = ia64; then
14403	# AIX 5 now supports IA64 processor
14404	lt_prog_compiler_static_F77='-Bstatic'
14405      fi
14406      ;;
14407
14408    amigaos*)
14409      # FIXME: we need at least 68020 code to build shared libraries, but
14410      # adding the `-m68020' flag to GCC prevents building anything better,
14411      # like `-m68040'.
14412      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14413      ;;
14414
14415    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14416      # PIC is the default for these OSes.
14417      ;;
14418
14419    mingw* | cygwin* | pw32* | os2*)
14420      # This hack is so that the source file can tell whether it is being
14421      # built for inclusion in a dll (and should export symbols for example).
14422      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423      # (--disable-auto-import) libraries
14424      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14425      ;;
14426
14427    darwin* | rhapsody*)
14428      # PIC is the default on this platform
14429      # Common symbols not allowed in MH_DYLIB files
14430      lt_prog_compiler_pic_F77='-fno-common'
14431      ;;
14432
14433    interix[3-9]*)
14434      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435      # Instead, we relocate shared libraries at runtime.
14436      ;;
14437
14438    msdosdjgpp*)
14439      # Just because we use GCC doesn't mean we suddenly get shared libraries
14440      # on systems that don't support them.
14441      lt_prog_compiler_can_build_shared_F77=no
14442      enable_shared=no
14443      ;;
14444
14445    sysv4*MP*)
14446      if test -d /usr/nec; then
14447	lt_prog_compiler_pic_F77=-Kconform_pic
14448      fi
14449      ;;
14450
14451    hpux*)
14452      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453      # not for PA HP-UX.
14454      case $host_cpu in
14455      hppa*64*|ia64*)
14456	# +Z the default
14457	;;
14458      *)
14459	lt_prog_compiler_pic_F77='-fPIC'
14460	;;
14461      esac
14462      ;;
14463
14464    *)
14465      lt_prog_compiler_pic_F77='-fPIC'
14466      ;;
14467    esac
14468  else
14469    # PORTME Check for flag to pass linker flags through the system compiler.
14470    case $host_os in
14471    aix*)
14472      lt_prog_compiler_wl_F77='-Wl,'
14473      if test "$host_cpu" = ia64; then
14474	# AIX 5 now supports IA64 processor
14475	lt_prog_compiler_static_F77='-Bstatic'
14476      else
14477	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14478      fi
14479      ;;
14480      darwin*)
14481        # PIC is the default on this platform
14482        # Common symbols not allowed in MH_DYLIB files
14483       case $cc_basename in
14484         xlc*)
14485         lt_prog_compiler_pic_F77='-qnocommon'
14486         lt_prog_compiler_wl_F77='-Wl,'
14487         ;;
14488       esac
14489       ;;
14490
14491    mingw* | cygwin* | pw32* | os2*)
14492      # This hack is so that the source file can tell whether it is being
14493      # built for inclusion in a dll (and should export symbols for example).
14494      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14495      ;;
14496
14497    hpux9* | hpux10* | hpux11*)
14498      lt_prog_compiler_wl_F77='-Wl,'
14499      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500      # not for PA HP-UX.
14501      case $host_cpu in
14502      hppa*64*|ia64*)
14503	# +Z the default
14504	;;
14505      *)
14506	lt_prog_compiler_pic_F77='+Z'
14507	;;
14508      esac
14509      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14510      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14511      ;;
14512
14513    irix5* | irix6* | nonstopux*)
14514      lt_prog_compiler_wl_F77='-Wl,'
14515      # PIC (with -KPIC) is the default.
14516      lt_prog_compiler_static_F77='-non_shared'
14517      ;;
14518
14519    newsos6)
14520      lt_prog_compiler_pic_F77='-KPIC'
14521      lt_prog_compiler_static_F77='-Bstatic'
14522      ;;
14523
14524    linux* | k*bsd*-gnu)
14525      case $cc_basename in
14526      icc* | ecc*)
14527	lt_prog_compiler_wl_F77='-Wl,'
14528	lt_prog_compiler_pic_F77='-KPIC'
14529	lt_prog_compiler_static_F77='-static'
14530        ;;
14531      pgcc* | pgf77* | pgf90* | pgf95*)
14532        # Portland Group compilers (*not* the Pentium gcc compiler,
14533	# which looks to be a dead project)
14534	lt_prog_compiler_wl_F77='-Wl,'
14535	lt_prog_compiler_pic_F77='-fpic'
14536	lt_prog_compiler_static_F77='-Bstatic'
14537        ;;
14538      ccc*)
14539        lt_prog_compiler_wl_F77='-Wl,'
14540        # All Alpha code is PIC.
14541        lt_prog_compiler_static_F77='-non_shared'
14542        ;;
14543      *)
14544        case `$CC -V 2>&1 | sed 5q` in
14545	*Sun\ C*)
14546	  # Sun C 5.9
14547	  lt_prog_compiler_pic_F77='-KPIC'
14548	  lt_prog_compiler_static_F77='-Bstatic'
14549	  lt_prog_compiler_wl_F77='-Wl,'
14550	  ;;
14551	*Sun\ F*)
14552	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14553	  lt_prog_compiler_pic_F77='-KPIC'
14554	  lt_prog_compiler_static_F77='-Bstatic'
14555	  lt_prog_compiler_wl_F77=''
14556	  ;;
14557	esac
14558	;;
14559      esac
14560      ;;
14561
14562    osf3* | osf4* | osf5*)
14563      lt_prog_compiler_wl_F77='-Wl,'
14564      # All OSF/1 code is PIC.
14565      lt_prog_compiler_static_F77='-non_shared'
14566      ;;
14567
14568    rdos*)
14569      lt_prog_compiler_static_F77='-non_shared'
14570      ;;
14571
14572    solaris*)
14573      lt_prog_compiler_pic_F77='-KPIC'
14574      lt_prog_compiler_static_F77='-Bstatic'
14575      case $cc_basename in
14576      f77* | f90* | f95*)
14577	lt_prog_compiler_wl_F77='-Qoption ld ';;
14578      *)
14579	lt_prog_compiler_wl_F77='-Wl,';;
14580      esac
14581      ;;
14582
14583    sunos4*)
14584      lt_prog_compiler_wl_F77='-Qoption ld '
14585      lt_prog_compiler_pic_F77='-PIC'
14586      lt_prog_compiler_static_F77='-Bstatic'
14587      ;;
14588
14589    sysv4 | sysv4.2uw2* | sysv4.3*)
14590      lt_prog_compiler_wl_F77='-Wl,'
14591      lt_prog_compiler_pic_F77='-KPIC'
14592      lt_prog_compiler_static_F77='-Bstatic'
14593      ;;
14594
14595    sysv4*MP*)
14596      if test -d /usr/nec ;then
14597	lt_prog_compiler_pic_F77='-Kconform_pic'
14598	lt_prog_compiler_static_F77='-Bstatic'
14599      fi
14600      ;;
14601
14602    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14603      lt_prog_compiler_wl_F77='-Wl,'
14604      lt_prog_compiler_pic_F77='-KPIC'
14605      lt_prog_compiler_static_F77='-Bstatic'
14606      ;;
14607
14608    unicos*)
14609      lt_prog_compiler_wl_F77='-Wl,'
14610      lt_prog_compiler_can_build_shared_F77=no
14611      ;;
14612
14613    uts4*)
14614      lt_prog_compiler_pic_F77='-pic'
14615      lt_prog_compiler_static_F77='-Bstatic'
14616      ;;
14617
14618    *)
14619      lt_prog_compiler_can_build_shared_F77=no
14620      ;;
14621    esac
14622  fi
14623
14624{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14625$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14626
14627#
14628# Check to make sure the PIC flag actually works.
14629#
14630if test -n "$lt_prog_compiler_pic_F77"; then
14631
14632{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14633$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14634if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14635  $as_echo_n "(cached) " >&6
14636else
14637  lt_cv_prog_compiler_pic_works_F77=no
14638  ac_outfile=conftest.$ac_objext
14639   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14641   # Insert the option either (1) after the last *FLAGS variable, or
14642   # (2) before a word containing "conftest.", or (3) at the end.
14643   # Note that $ac_compile itself does not contain backslashes and begins
14644   # with a dollar sign (not a hyphen), so the echo should work correctly.
14645   # The option is referenced via a variable to avoid confusing sed.
14646   lt_compile=`echo "$ac_compile" | $SED \
14647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649   -e 's:$: $lt_compiler_flag:'`
14650   (eval echo "\"\$as_me:14650: $lt_compile\"" >&5)
14651   (eval "$lt_compile" 2>conftest.err)
14652   ac_status=$?
14653   cat conftest.err >&5
14654   echo "$as_me:14654: \$? = $ac_status" >&5
14655   if (exit $ac_status) && test -s "$ac_outfile"; then
14656     # The compiler can only warn and ignore the option if not recognized
14657     # So say no if there are warnings other than the usual output.
14658     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661       lt_cv_prog_compiler_pic_works_F77=yes
14662     fi
14663   fi
14664   $rm conftest*
14665
14666fi
14667{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14668$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14669
14670if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14671    case $lt_prog_compiler_pic_F77 in
14672     "" | " "*) ;;
14673     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14674     esac
14675else
14676    lt_prog_compiler_pic_F77=
14677     lt_prog_compiler_can_build_shared_F77=no
14678fi
14679
14680fi
14681case $host_os in
14682  # For platforms which do not support PIC, -DPIC is meaningless:
14683  *djgpp*)
14684    lt_prog_compiler_pic_F77=
14685    ;;
14686  *)
14687    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14688    ;;
14689esac
14690
14691#
14692# Check to make sure the static flag actually works.
14693#
14694wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14695{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14697if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14698  $as_echo_n "(cached) " >&6
14699else
14700  lt_cv_prog_compiler_static_works_F77=no
14701   save_LDFLAGS="$LDFLAGS"
14702   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705     # The linker can only warn and ignore the option if not recognized
14706     # So say no if there are warnings
14707     if test -s conftest.err; then
14708       # Append any errors to the config.log.
14709       cat conftest.err 1>&5
14710       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14711       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712       if diff conftest.exp conftest.er2 >/dev/null; then
14713         lt_cv_prog_compiler_static_works_F77=yes
14714       fi
14715     else
14716       lt_cv_prog_compiler_static_works_F77=yes
14717     fi
14718   fi
14719   $rm -r conftest*
14720   LDFLAGS="$save_LDFLAGS"
14721
14722fi
14723{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14724$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14725
14726if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14727    :
14728else
14729    lt_prog_compiler_static_F77=
14730fi
14731
14732
14733{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14735if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14736  $as_echo_n "(cached) " >&6
14737else
14738  lt_cv_prog_compiler_c_o_F77=no
14739   $rm -r conftest 2>/dev/null
14740   mkdir conftest
14741   cd conftest
14742   mkdir out
14743   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
14745   lt_compiler_flag="-o out/conftest2.$ac_objext"
14746   # Insert the option either (1) after the last *FLAGS variable, or
14747   # (2) before a word containing "conftest.", or (3) at the end.
14748   # Note that $ac_compile itself does not contain backslashes and begins
14749   # with a dollar sign (not a hyphen), so the echo should work correctly.
14750   lt_compile=`echo "$ac_compile" | $SED \
14751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753   -e 's:$: $lt_compiler_flag:'`
14754   (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755   (eval "$lt_compile" 2>out/conftest.err)
14756   ac_status=$?
14757   cat out/conftest.err >&5
14758   echo "$as_me:14758: \$? = $ac_status" >&5
14759   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14760   then
14761     # The compiler can only warn and ignore the option if not recognized
14762     # So say no if there are warnings
14763     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14764     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14765     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14766       lt_cv_prog_compiler_c_o_F77=yes
14767     fi
14768   fi
14769   chmod u+w . 2>&5
14770   $rm conftest*
14771   # SGI C++ compiler will create directory out/ii_files/ for
14772   # template instantiation
14773   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14774   $rm out/* && rmdir out
14775   cd ..
14776   rmdir conftest
14777   $rm conftest*
14778
14779fi
14780{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14781$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14782
14783
14784hard_links="nottested"
14785if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14786  # do not overwrite the value of need_locks provided by the user
14787  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14788$as_echo_n "checking if we can lock with hard links... " >&6; }
14789  hard_links=yes
14790  $rm conftest*
14791  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14792  touch conftest.a
14793  ln conftest.a conftest.b 2>&5 || hard_links=no
14794  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14795  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14796$as_echo "$hard_links" >&6; }
14797  if test "$hard_links" = no; then
14798    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14799$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14800    need_locks=warn
14801  fi
14802else
14803  need_locks=no
14804fi
14805
14806{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14808
14809  runpath_var=
14810  allow_undefined_flag_F77=
14811  enable_shared_with_static_runtimes_F77=no
14812  archive_cmds_F77=
14813  archive_expsym_cmds_F77=
14814  old_archive_From_new_cmds_F77=
14815  old_archive_from_expsyms_cmds_F77=
14816  export_dynamic_flag_spec_F77=
14817  whole_archive_flag_spec_F77=
14818  thread_safe_flag_spec_F77=
14819  hardcode_libdir_flag_spec_F77=
14820  hardcode_libdir_flag_spec_ld_F77=
14821  hardcode_libdir_separator_F77=
14822  hardcode_direct_F77=no
14823  hardcode_minus_L_F77=no
14824  hardcode_shlibpath_var_F77=unsupported
14825  link_all_deplibs_F77=unknown
14826  hardcode_automatic_F77=no
14827  module_cmds_F77=
14828  module_expsym_cmds_F77=
14829  always_export_symbols_F77=no
14830  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14831  # include_expsyms should be a list of space-separated symbols to be *always*
14832  # included in the symbol list
14833  include_expsyms_F77=
14834  # exclude_expsyms can be an extended regexp of symbols to exclude
14835  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14836  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14837  # as well as any symbol that contains `d'.
14838  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14839  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14840  # platforms (ab)use it in PIC code, but their linkers get confused if
14841  # the symbol is explicitly referenced.  Since portable code cannot
14842  # rely on this symbol name, it's probably fine to never include it in
14843  # preloaded symbol tables.
14844  # Exclude shared library initialization/finalization symbols.
14845  extract_expsyms_cmds=
14846  # Just being paranoid about ensuring that cc_basename is set.
14847  for cc_temp in $compiler""; do
14848  case $cc_temp in
14849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14851    \-*) ;;
14852    *) break;;
14853  esac
14854done
14855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14856
14857  case $host_os in
14858  cygwin* | mingw* | pw32*)
14859    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14860    # When not using gcc, we currently assume that we are using
14861    # Microsoft Visual C++.
14862    if test "$GCC" != yes; then
14863      with_gnu_ld=no
14864    fi
14865    ;;
14866  interix*)
14867    # we just hope/assume this is gcc and not c89 (= MSVC++)
14868    with_gnu_ld=yes
14869    ;;
14870  openbsd*)
14871    with_gnu_ld=no
14872    ;;
14873  esac
14874
14875  ld_shlibs_F77=yes
14876  if test "$with_gnu_ld" = yes; then
14877    # If archive_cmds runs LD, not CC, wlarc should be empty
14878    wlarc='${wl}'
14879
14880    # Set some defaults for GNU ld with shared library support. These
14881    # are reset later if shared libraries are not supported. Putting them
14882    # here allows them to be overridden if necessary.
14883    runpath_var=LD_RUN_PATH
14884    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14885    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14886    # ancient GNU ld didn't support --whole-archive et. al.
14887    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14888	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14889      else
14890  	whole_archive_flag_spec_F77=
14891    fi
14892    supports_anon_versioning=no
14893    case `$LD -v 2>/dev/null` in
14894      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897      *\ 2.11.*) ;; # other 2.11 versions
14898      *) supports_anon_versioning=yes ;;
14899    esac
14900
14901    # See if GNU ld supports shared libraries.
14902    case $host_os in
14903    aix[3-9]*)
14904      # On AIX/PPC, the GNU linker is very broken
14905      if test "$host_cpu" != ia64; then
14906	ld_shlibs_F77=no
14907	cat <<EOF 1>&2
14908
14909*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14910*** to be unable to reliably create shared libraries on AIX.
14911*** Therefore, libtool is disabling shared libraries support.  If you
14912*** really care for shared libraries, you may want to modify your PATH
14913*** so that a non-GNU linker is found, and then restart.
14914
14915EOF
14916      fi
14917      ;;
14918
14919    amigaos*)
14920      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)'
14921      hardcode_libdir_flag_spec_F77='-L$libdir'
14922      hardcode_minus_L_F77=yes
14923
14924      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14925      # that the semantics of dynamic libraries on AmigaOS, at least up
14926      # to version 4, is to share data among multiple programs linked
14927      # with the same dynamic library.  Since this doesn't match the
14928      # behavior of shared libraries on other platforms, we can't use
14929      # them.
14930      ld_shlibs_F77=no
14931      ;;
14932
14933    beos*)
14934      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14935	allow_undefined_flag_F77=unsupported
14936	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14937	# support --undefined.  This deserves some investigation.  FIXME
14938	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939      else
14940	ld_shlibs_F77=no
14941      fi
14942      ;;
14943
14944    cygwin* | mingw* | pw32*)
14945      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14946      # as there is no search path for DLLs.
14947      hardcode_libdir_flag_spec_F77='-L$libdir'
14948      allow_undefined_flag_F77=unsupported
14949      always_export_symbols_F77=no
14950      enable_shared_with_static_runtimes_F77=yes
14951      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14952
14953      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14954        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14955	# If the export-symbols file already is a .def file (1st line
14956	# is EXPORTS), use it as is; otherwise, prepend...
14957	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14958	  cp $export_symbols $output_objdir/$soname.def;
14959	else
14960	  echo EXPORTS > $output_objdir/$soname.def;
14961	  cat $export_symbols >> $output_objdir/$soname.def;
14962	fi~
14963	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14964      else
14965	ld_shlibs_F77=no
14966      fi
14967      ;;
14968
14969    interix[3-9]*)
14970      hardcode_direct_F77=no
14971      hardcode_shlibpath_var_F77=no
14972      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973      export_dynamic_flag_spec_F77='${wl}-E'
14974      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14975      # Instead, shared libraries are loaded at an image base (0x10000000 by
14976      # default) and relocated if they conflict, which is a slow very memory
14977      # consuming and fragmenting process.  To avoid this, we pick a random,
14978      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14979      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14980      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'
14981      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'
14982      ;;
14983
14984    gnu* | linux* | k*bsd*-gnu)
14985      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14986	tmp_addflag=
14987	case $cc_basename,$host_cpu in
14988	pgcc*)				# Portland Group C compiler
14989	  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'
14990	  tmp_addflag=' $pic_flag'
14991	  ;;
14992	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14993	  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'
14994	  tmp_addflag=' $pic_flag -Mnomain' ;;
14995	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14996	  tmp_addflag=' -i_dynamic' ;;
14997	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14998	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14999	ifc* | ifort*)			# Intel Fortran compiler
15000	  tmp_addflag=' -nofor_main' ;;
15001	esac
15002	case `$CC -V 2>&1 | sed 5q` in
15003	*Sun\ C*)			# Sun C 5.9
15004	  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'
15005	  tmp_sharedflag='-G' ;;
15006	*Sun\ F*)			# Sun Fortran 8.3
15007	  tmp_sharedflag='-G' ;;
15008	*)
15009	  tmp_sharedflag='-shared' ;;
15010	esac
15011	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012
15013	if test $supports_anon_versioning = yes; then
15014	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15015  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016  $echo "local: *; };" >> $output_objdir/$libname.ver~
15017	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15018	fi
15019      else
15020	ld_shlibs_F77=no
15021      fi
15022      ;;
15023
15024    netbsd*)
15025      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15026	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15027	wlarc=
15028      else
15029	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15031      fi
15032      ;;
15033
15034    solaris*)
15035      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15036	ld_shlibs_F77=no
15037	cat <<EOF 1>&2
15038
15039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15040*** create shared libraries on Solaris systems.  Therefore, libtool
15041*** is disabling shared libraries support.  We urge you to upgrade GNU
15042*** binutils to release 2.9.1 or newer.  Another option is to modify
15043*** your PATH or compiler configuration so that the native linker is
15044*** used, and then restart.
15045
15046EOF
15047      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15048	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15050      else
15051	ld_shlibs_F77=no
15052      fi
15053      ;;
15054
15055    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15056      case `$LD -v 2>&1` in
15057        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15058	ld_shlibs_F77=no
15059	cat <<_LT_EOF 1>&2
15060
15061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15062*** reliably create shared libraries on SCO systems.  Therefore, libtool
15063*** is disabling shared libraries support.  We urge you to upgrade GNU
15064*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15065*** your PATH or compiler configuration so that the native linker is
15066*** used, and then restart.
15067
15068_LT_EOF
15069	;;
15070	*)
15071	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15073	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15074	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15075	  else
15076	    ld_shlibs_F77=no
15077	  fi
15078	;;
15079      esac
15080      ;;
15081
15082    sunos4*)
15083      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084      wlarc=
15085      hardcode_direct_F77=yes
15086      hardcode_shlibpath_var_F77=no
15087      ;;
15088
15089    *)
15090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093      else
15094	ld_shlibs_F77=no
15095      fi
15096      ;;
15097    esac
15098
15099    if test "$ld_shlibs_F77" = no; then
15100      runpath_var=
15101      hardcode_libdir_flag_spec_F77=
15102      export_dynamic_flag_spec_F77=
15103      whole_archive_flag_spec_F77=
15104    fi
15105  else
15106    # PORTME fill in a description of your system's linker (not GNU ld)
15107    case $host_os in
15108    aix3*)
15109      allow_undefined_flag_F77=unsupported
15110      always_export_symbols_F77=yes
15111      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'
15112      # Note: this linker hardcodes the directories in LIBPATH if there
15113      # are no directories specified by -L.
15114      hardcode_minus_L_F77=yes
15115      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15116	# Neither direct hardcoding nor static linking is supported with a
15117	# broken collect2.
15118	hardcode_direct_F77=unsupported
15119      fi
15120      ;;
15121
15122    aix[4-9]*)
15123      if test "$host_cpu" = ia64; then
15124	# On IA64, the linker does run time linking by default, so we don't
15125	# have to do anything special.
15126	aix_use_runtimelinking=no
15127	exp_sym_flag='-Bexport'
15128	no_entry_flag=""
15129      else
15130	# If we're using GNU nm, then we don't want the "-C" option.
15131	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15132	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15133	  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'
15134	else
15135	  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'
15136	fi
15137	aix_use_runtimelinking=no
15138
15139	# Test if we are trying to use run time linking or normal
15140	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15141	# need to do runtime linking.
15142	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15143	  for ld_flag in $LDFLAGS; do
15144  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15145  	    aix_use_runtimelinking=yes
15146  	    break
15147  	  fi
15148	  done
15149	  ;;
15150	esac
15151
15152	exp_sym_flag='-bexport'
15153	no_entry_flag='-bnoentry'
15154      fi
15155
15156      # When large executables or shared objects are built, AIX ld can
15157      # have problems creating the table of contents.  If linking a library
15158      # or program results in "error TOC overflow" add -mminimal-toc to
15159      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15160      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15161
15162      archive_cmds_F77=''
15163      hardcode_direct_F77=yes
15164      hardcode_libdir_separator_F77=':'
15165      link_all_deplibs_F77=yes
15166
15167      if test "$GCC" = yes; then
15168	case $host_os in aix4.[012]|aix4.[012].*)
15169	# We only want to do this on AIX 4.2 and lower, the check
15170	# below for broken collect2 doesn't work under 4.3+
15171	  collect2name=`${CC} -print-prog-name=collect2`
15172	  if test -f "$collect2name" && \
15173  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15174	  then
15175  	  # We have reworked collect2
15176  	  :
15177	  else
15178  	  # We have old collect2
15179  	  hardcode_direct_F77=unsupported
15180  	  # It fails to find uninstalled libraries when the uninstalled
15181  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15182  	  # to unsupported forces relinking
15183  	  hardcode_minus_L_F77=yes
15184  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15185  	  hardcode_libdir_separator_F77=
15186	  fi
15187	  ;;
15188	esac
15189	shared_flag='-shared'
15190	if test "$aix_use_runtimelinking" = yes; then
15191	  shared_flag="$shared_flag "'${wl}-G'
15192	fi
15193      else
15194	# not using gcc
15195	if test "$host_cpu" = ia64; then
15196  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15197  	# chokes on -Wl,-G. The following line is correct:
15198	  shared_flag='-G'
15199	else
15200	  if test "$aix_use_runtimelinking" = yes; then
15201	    shared_flag='${wl}-G'
15202	  else
15203	    shared_flag='${wl}-bM:SRE'
15204	  fi
15205	fi
15206      fi
15207
15208      # It seems that -bexpall does not export symbols beginning with
15209      # underscore (_), so it is better to generate a list of symbols to export.
15210      always_export_symbols_F77=yes
15211      if test "$aix_use_runtimelinking" = yes; then
15212	# Warning - without using the other runtime loading flags (-brtl),
15213	# -berok will link without error, but may produce a broken library.
15214	allow_undefined_flag_F77='-berok'
15215       # Determine the default libpath from the value encoded in an empty executable.
15216       cat >conftest.$ac_ext <<_ACEOF
15217      program main
15218
15219      end
15220_ACEOF
15221rm -f conftest.$ac_objext conftest$ac_exeext
15222if { (ac_try="$ac_link"
15223case "(($ac_try" in
15224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225  *) ac_try_echo=$ac_try;;
15226esac
15227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15228$as_echo "$ac_try_echo") >&5
15229  (eval "$ac_link") 2>conftest.er1
15230  ac_status=$?
15231  grep -v '^ *+' conftest.er1 >conftest.err
15232  rm -f conftest.er1
15233  cat conftest.err >&5
15234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235  (exit $ac_status); } && {
15236	 test -z "$ac_f77_werror_flag" ||
15237	 test ! -s conftest.err
15238       } && test -s conftest$ac_exeext && {
15239	 test "$cross_compiling" = yes ||
15240	 $as_test_x conftest$ac_exeext
15241       }; then
15242
15243lt_aix_libpath_sed='
15244    /Import File Strings/,/^$/ {
15245	/^0/ {
15246	    s/^0  *\(.*\)$/\1/
15247	    p
15248	}
15249    }'
15250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251# Check for a 64-bit object if we didn't find anything.
15252if test -z "$aix_libpath"; then
15253  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254fi
15255else
15256  $as_echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
15259
15260fi
15261
15262rm -rf conftest.dSYM
15263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264      conftest$ac_exeext conftest.$ac_ext
15265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15266
15267       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15268	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"
15269       else
15270	if test "$host_cpu" = ia64; then
15271	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15272	  allow_undefined_flag_F77="-z nodefs"
15273	  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"
15274	else
15275	 # Determine the default libpath from the value encoded in an empty executable.
15276	 cat >conftest.$ac_ext <<_ACEOF
15277      program main
15278
15279      end
15280_ACEOF
15281rm -f conftest.$ac_objext conftest$ac_exeext
15282if { (ac_try="$ac_link"
15283case "(($ac_try" in
15284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285  *) ac_try_echo=$ac_try;;
15286esac
15287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15288$as_echo "$ac_try_echo") >&5
15289  (eval "$ac_link") 2>conftest.er1
15290  ac_status=$?
15291  grep -v '^ *+' conftest.er1 >conftest.err
15292  rm -f conftest.er1
15293  cat conftest.err >&5
15294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295  (exit $ac_status); } && {
15296	 test -z "$ac_f77_werror_flag" ||
15297	 test ! -s conftest.err
15298       } && test -s conftest$ac_exeext && {
15299	 test "$cross_compiling" = yes ||
15300	 $as_test_x conftest$ac_exeext
15301       }; then
15302
15303lt_aix_libpath_sed='
15304    /Import File Strings/,/^$/ {
15305	/^0/ {
15306	    s/^0  *\(.*\)$/\1/
15307	    p
15308	}
15309    }'
15310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311# Check for a 64-bit object if we didn't find anything.
15312if test -z "$aix_libpath"; then
15313  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15314fi
15315else
15316  $as_echo "$as_me: failed program was:" >&5
15317sed 's/^/| /' conftest.$ac_ext >&5
15318
15319
15320fi
15321
15322rm -rf conftest.dSYM
15323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15324      conftest$ac_exeext conftest.$ac_ext
15325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15326
15327	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15328	  # Warning - without using the other run time loading flags,
15329	  # -berok will link without error, but may produce a broken library.
15330	  no_undefined_flag_F77=' ${wl}-bernotok'
15331	  allow_undefined_flag_F77=' ${wl}-berok'
15332	  # Exported symbols can be pulled into shared objects from archives
15333	  whole_archive_flag_spec_F77='$convenience'
15334	  archive_cmds_need_lc_F77=yes
15335	  # This is similar to how AIX traditionally builds its shared libraries.
15336	  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'
15337	fi
15338      fi
15339      ;;
15340
15341    amigaos*)
15342      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)'
15343      hardcode_libdir_flag_spec_F77='-L$libdir'
15344      hardcode_minus_L_F77=yes
15345      # see comment about different semantics on the GNU ld section
15346      ld_shlibs_F77=no
15347      ;;
15348
15349    bsdi[45]*)
15350      export_dynamic_flag_spec_F77=-rdynamic
15351      ;;
15352
15353    cygwin* | mingw* | pw32*)
15354      # When not using gcc, we currently assume that we are using
15355      # Microsoft Visual C++.
15356      # hardcode_libdir_flag_spec is actually meaningless, as there is
15357      # no search path for DLLs.
15358      hardcode_libdir_flag_spec_F77=' '
15359      allow_undefined_flag_F77=unsupported
15360      # Tell ltmain to make .lib files, not .a files.
15361      libext=lib
15362      # Tell ltmain to make .dll files, not .so files.
15363      shrext_cmds=".dll"
15364      # FIXME: Setting linknames here is a bad hack.
15365      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15366      # The linker will automatically build a .lib file if we build a DLL.
15367      old_archive_From_new_cmds_F77='true'
15368      # FIXME: Should let the user specify the lib program.
15369      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15370      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15371      enable_shared_with_static_runtimes_F77=yes
15372      ;;
15373
15374    darwin* | rhapsody*)
15375      case $host_os in
15376        rhapsody* | darwin1.[012])
15377         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15378         ;;
15379       *) # Darwin 1.3 on
15380         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15381           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15382         else
15383           case ${MACOSX_DEPLOYMENT_TARGET} in
15384             10.[012])
15385               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15386               ;;
15387             10.*)
15388               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15389               ;;
15390           esac
15391         fi
15392         ;;
15393      esac
15394      archive_cmds_need_lc_F77=no
15395      hardcode_direct_F77=no
15396      hardcode_automatic_F77=yes
15397      hardcode_shlibpath_var_F77=unsupported
15398      whole_archive_flag_spec_F77=''
15399      link_all_deplibs_F77=yes
15400    if test "$GCC" = yes ; then
15401    	output_verbose_link_cmd='echo'
15402        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}"
15403        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15404        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}"
15405        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}"
15406    else
15407      case $cc_basename in
15408        xlc*)
15409         output_verbose_link_cmd='echo'
15410         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15411         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15412          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15413         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}'
15414          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}'
15415          ;;
15416       *)
15417         ld_shlibs_F77=no
15418          ;;
15419      esac
15420    fi
15421      ;;
15422
15423    dgux*)
15424      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425      hardcode_libdir_flag_spec_F77='-L$libdir'
15426      hardcode_shlibpath_var_F77=no
15427      ;;
15428
15429    freebsd1*)
15430      ld_shlibs_F77=no
15431      ;;
15432
15433    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15434    # support.  Future versions do this automatically, but an explicit c++rt0.o
15435    # does not break anything, and helps significantly (at the cost of a little
15436    # extra space).
15437    freebsd2.2*)
15438      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15439      hardcode_libdir_flag_spec_F77='-R$libdir'
15440      hardcode_direct_F77=yes
15441      hardcode_shlibpath_var_F77=no
15442      ;;
15443
15444    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15445    freebsd2*)
15446      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15447      hardcode_direct_F77=yes
15448      hardcode_minus_L_F77=yes
15449      hardcode_shlibpath_var_F77=no
15450      ;;
15451
15452    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15453    freebsd* | dragonfly*)
15454      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15455      hardcode_libdir_flag_spec_F77='-R$libdir'
15456      hardcode_direct_F77=yes
15457      hardcode_shlibpath_var_F77=no
15458      ;;
15459
15460    hpux9*)
15461      if test "$GCC" = yes; then
15462	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'
15463      else
15464	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'
15465      fi
15466      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15467      hardcode_libdir_separator_F77=:
15468      hardcode_direct_F77=yes
15469
15470      # hardcode_minus_L: Not really in the search PATH,
15471      # but as the default location of the library.
15472      hardcode_minus_L_F77=yes
15473      export_dynamic_flag_spec_F77='${wl}-E'
15474      ;;
15475
15476    hpux10*)
15477      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15478	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15479      else
15480	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15481      fi
15482      if test "$with_gnu_ld" = no; then
15483	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15484	hardcode_libdir_separator_F77=:
15485
15486	hardcode_direct_F77=yes
15487	export_dynamic_flag_spec_F77='${wl}-E'
15488
15489	# hardcode_minus_L: Not really in the search PATH,
15490	# but as the default location of the library.
15491	hardcode_minus_L_F77=yes
15492      fi
15493      ;;
15494
15495    hpux11*)
15496      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497	case $host_cpu in
15498	hppa*64*)
15499	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500	  ;;
15501	ia64*)
15502	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15503	  ;;
15504	*)
15505	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506	  ;;
15507	esac
15508      else
15509	case $host_cpu in
15510	hppa*64*)
15511	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512	  ;;
15513	ia64*)
15514	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15515	  ;;
15516	*)
15517	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15518	  ;;
15519	esac
15520      fi
15521      if test "$with_gnu_ld" = no; then
15522	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15523	hardcode_libdir_separator_F77=:
15524
15525	case $host_cpu in
15526	hppa*64*|ia64*)
15527	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15528	  hardcode_direct_F77=no
15529	  hardcode_shlibpath_var_F77=no
15530	  ;;
15531	*)
15532	  hardcode_direct_F77=yes
15533	  export_dynamic_flag_spec_F77='${wl}-E'
15534
15535	  # hardcode_minus_L: Not really in the search PATH,
15536	  # but as the default location of the library.
15537	  hardcode_minus_L_F77=yes
15538	  ;;
15539	esac
15540      fi
15541      ;;
15542
15543    irix5* | irix6* | nonstopux*)
15544      if test "$GCC" = yes; then
15545	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'
15546      else
15547	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'
15548	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15549      fi
15550      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15551      hardcode_libdir_separator_F77=:
15552      link_all_deplibs_F77=yes
15553      ;;
15554
15555    netbsd*)
15556      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15558      else
15559	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15560      fi
15561      hardcode_libdir_flag_spec_F77='-R$libdir'
15562      hardcode_direct_F77=yes
15563      hardcode_shlibpath_var_F77=no
15564      ;;
15565
15566    newsos6)
15567      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15568      hardcode_direct_F77=yes
15569      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570      hardcode_libdir_separator_F77=:
15571      hardcode_shlibpath_var_F77=no
15572      ;;
15573
15574    openbsd*)
15575      if test -f /usr/libexec/ld.so; then
15576	hardcode_direct_F77=yes
15577	hardcode_shlibpath_var_F77=no
15578	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15579	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15581	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15582	  export_dynamic_flag_spec_F77='${wl}-E'
15583	else
15584	  case $host_os in
15585	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15586	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587	     hardcode_libdir_flag_spec_F77='-R$libdir'
15588	     ;;
15589	   *)
15590	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15591	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15592	     ;;
15593	  esac
15594        fi
15595      else
15596	ld_shlibs_F77=no
15597      fi
15598      ;;
15599
15600    os2*)
15601      hardcode_libdir_flag_spec_F77='-L$libdir'
15602      hardcode_minus_L_F77=yes
15603      allow_undefined_flag_F77=unsupported
15604      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'
15605      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15606      ;;
15607
15608    osf3*)
15609      if test "$GCC" = yes; then
15610	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15611	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'
15612      else
15613	allow_undefined_flag_F77=' -expect_unresolved \*'
15614	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'
15615      fi
15616      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15617      hardcode_libdir_separator_F77=:
15618      ;;
15619
15620    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15621      if test "$GCC" = yes; then
15622	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15623	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'
15624	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15625      else
15626	allow_undefined_flag_F77=' -expect_unresolved \*'
15627	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'
15628	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~
15629	$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'
15630
15631	# Both c and cxx compiler support -rpath directly
15632	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15633      fi
15634      hardcode_libdir_separator_F77=:
15635      ;;
15636
15637    solaris*)
15638      no_undefined_flag_F77=' -z text'
15639      if test "$GCC" = yes; then
15640	wlarc='${wl}'
15641	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15643	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15644      else
15645	wlarc=''
15646	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15648  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15649      fi
15650      hardcode_libdir_flag_spec_F77='-R$libdir'
15651      hardcode_shlibpath_var_F77=no
15652      case $host_os in
15653      solaris2.[0-5] | solaris2.[0-5].*) ;;
15654      *)
15655	# The compiler driver will combine and reorder linker options,
15656	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15657	# but is careful enough not to reorder.
15658 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15659	if test "$GCC" = yes; then
15660	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15661	else
15662	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15663	fi
15664	;;
15665      esac
15666      link_all_deplibs_F77=yes
15667      ;;
15668
15669    sunos4*)
15670      if test "x$host_vendor" = xsequent; then
15671	# Use $CC to link under sequent, because it throws in some extra .o
15672	# files that make .init and .fini sections work.
15673	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15674      else
15675	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15676      fi
15677      hardcode_libdir_flag_spec_F77='-L$libdir'
15678      hardcode_direct_F77=yes
15679      hardcode_minus_L_F77=yes
15680      hardcode_shlibpath_var_F77=no
15681      ;;
15682
15683    sysv4)
15684      case $host_vendor in
15685	sni)
15686	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687	  hardcode_direct_F77=yes # is this really true???
15688	;;
15689	siemens)
15690	  ## LD is ld it makes a PLAMLIB
15691	  ## CC just makes a GrossModule.
15692	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15693	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15694	  hardcode_direct_F77=no
15695        ;;
15696	motorola)
15697	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15699	;;
15700      esac
15701      runpath_var='LD_RUN_PATH'
15702      hardcode_shlibpath_var_F77=no
15703      ;;
15704
15705    sysv4.3*)
15706      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707      hardcode_shlibpath_var_F77=no
15708      export_dynamic_flag_spec_F77='-Bexport'
15709      ;;
15710
15711    sysv4*MP*)
15712      if test -d /usr/nec; then
15713	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714	hardcode_shlibpath_var_F77=no
15715	runpath_var=LD_RUN_PATH
15716	hardcode_runpath_var=yes
15717	ld_shlibs_F77=yes
15718      fi
15719      ;;
15720
15721    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15722      no_undefined_flag_F77='${wl}-z,text'
15723      archive_cmds_need_lc_F77=no
15724      hardcode_shlibpath_var_F77=no
15725      runpath_var='LD_RUN_PATH'
15726
15727      if test "$GCC" = yes; then
15728	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730      else
15731	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733      fi
15734      ;;
15735
15736    sysv5* | sco3.2v5* | sco5v6*)
15737      # Note: We can NOT use -z defs as we might desire, because we do not
15738      # link with -lc, and that would cause any symbols used from libc to
15739      # always be unresolved, which means just about no library would
15740      # ever link correctly.  If we're not using GNU ld we use -z text
15741      # though, which does catch some bad symbols but isn't as heavy-handed
15742      # as -z defs.
15743      no_undefined_flag_F77='${wl}-z,text'
15744      allow_undefined_flag_F77='${wl}-z,nodefs'
15745      archive_cmds_need_lc_F77=no
15746      hardcode_shlibpath_var_F77=no
15747      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15748      hardcode_libdir_separator_F77=':'
15749      link_all_deplibs_F77=yes
15750      export_dynamic_flag_spec_F77='${wl}-Bexport'
15751      runpath_var='LD_RUN_PATH'
15752
15753      if test "$GCC" = yes; then
15754	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756      else
15757	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15759      fi
15760      ;;
15761
15762    uts4*)
15763      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764      hardcode_libdir_flag_spec_F77='-L$libdir'
15765      hardcode_shlibpath_var_F77=no
15766      ;;
15767
15768    *)
15769      ld_shlibs_F77=no
15770      ;;
15771    esac
15772  fi
15773
15774{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15775$as_echo "$ld_shlibs_F77" >&6; }
15776test "$ld_shlibs_F77" = no && can_build_shared=no
15777
15778#
15779# Do we need to explicitly link libc?
15780#
15781case "x$archive_cmds_need_lc_F77" in
15782x|xyes)
15783  # Assume -lc should be added
15784  archive_cmds_need_lc_F77=yes
15785
15786  if test "$enable_shared" = yes && test "$GCC" = yes; then
15787    case $archive_cmds_F77 in
15788    *'~'*)
15789      # FIXME: we may have to deal with multi-command sequences.
15790      ;;
15791    '$CC '*)
15792      # Test whether the compiler implicitly links with -lc since on some
15793      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15794      # to ld, don't add -lc before -lgcc.
15795      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15796$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15797      $rm conftest*
15798      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15799
15800      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801  (eval $ac_compile) 2>&5
15802  ac_status=$?
15803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804  (exit $ac_status); } 2>conftest.err; then
15805        soname=conftest
15806        lib=conftest
15807        libobjs=conftest.$ac_objext
15808        deplibs=
15809        wl=$lt_prog_compiler_wl_F77
15810	pic_flag=$lt_prog_compiler_pic_F77
15811        compiler_flags=-v
15812        linker_flags=-v
15813        verstring=
15814        output_objdir=.
15815        libname=conftest
15816        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15817        allow_undefined_flag_F77=
15818        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15819  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820  ac_status=$?
15821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822  (exit $ac_status); }
15823        then
15824	  archive_cmds_need_lc_F77=no
15825        else
15826	  archive_cmds_need_lc_F77=yes
15827        fi
15828        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15829      else
15830        cat conftest.err 1>&5
15831      fi
15832      $rm conftest*
15833      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15834$as_echo "$archive_cmds_need_lc_F77" >&6; }
15835      ;;
15836    esac
15837  fi
15838  ;;
15839esac
15840
15841{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15842$as_echo_n "checking dynamic linker characteristics... " >&6; }
15843library_names_spec=
15844libname_spec='lib$name'
15845soname_spec=
15846shrext_cmds=".so"
15847postinstall_cmds=
15848postuninstall_cmds=
15849finish_cmds=
15850finish_eval=
15851shlibpath_var=
15852shlibpath_overrides_runpath=unknown
15853version_type=none
15854dynamic_linker="$host_os ld.so"
15855sys_lib_dlsearch_path_spec="/lib /usr/lib"
15856
15857need_lib_prefix=unknown
15858hardcode_into_libs=no
15859
15860# when you set need_version to no, make sure it does not cause -set_version
15861# flags to be left without arguments
15862need_version=unknown
15863
15864case $host_os in
15865aix3*)
15866  version_type=linux
15867  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15868  shlibpath_var=LIBPATH
15869
15870  # AIX 3 has no versioning support, so we append a major version to the name.
15871  soname_spec='${libname}${release}${shared_ext}$major'
15872  ;;
15873
15874aix[4-9]*)
15875  version_type=linux
15876  need_lib_prefix=no
15877  need_version=no
15878  hardcode_into_libs=yes
15879  if test "$host_cpu" = ia64; then
15880    # AIX 5 supports IA64
15881    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15882    shlibpath_var=LD_LIBRARY_PATH
15883  else
15884    # With GCC up to 2.95.x, collect2 would create an import file
15885    # for dependence libraries.  The import file would start with
15886    # the line `#! .'.  This would cause the generated library to
15887    # depend on `.', always an invalid library.  This was fixed in
15888    # development snapshots of GCC prior to 3.0.
15889    case $host_os in
15890      aix4 | aix4.[01] | aix4.[01].*)
15891      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15892	   echo ' yes '
15893	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15894	:
15895      else
15896	can_build_shared=no
15897      fi
15898      ;;
15899    esac
15900    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15901    # soname into executable. Probably we can add versioning support to
15902    # collect2, so additional links can be useful in future.
15903    if test "$aix_use_runtimelinking" = yes; then
15904      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15905      # instead of lib<name>.a to let people know that these are not
15906      # typical AIX shared libraries.
15907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908    else
15909      # We preserve .a as extension for shared libraries through AIX4.2
15910      # and later when we are not doing run time linking.
15911      library_names_spec='${libname}${release}.a $libname.a'
15912      soname_spec='${libname}${release}${shared_ext}$major'
15913    fi
15914    shlibpath_var=LIBPATH
15915  fi
15916  ;;
15917
15918amigaos*)
15919  library_names_spec='$libname.ixlibrary $libname.a'
15920  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15921  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'
15922  ;;
15923
15924beos*)
15925  library_names_spec='${libname}${shared_ext}'
15926  dynamic_linker="$host_os ld.so"
15927  shlibpath_var=LIBRARY_PATH
15928  ;;
15929
15930bsdi[45]*)
15931  version_type=linux
15932  need_version=no
15933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934  soname_spec='${libname}${release}${shared_ext}$major'
15935  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15936  shlibpath_var=LD_LIBRARY_PATH
15937  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15938  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15939  # the default ld.so.conf also contains /usr/contrib/lib and
15940  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15941  # libtool to hard-code these into programs
15942  ;;
15943
15944cygwin* | mingw* | pw32*)
15945  version_type=windows
15946  shrext_cmds=".dll"
15947  need_version=no
15948  need_lib_prefix=no
15949
15950  case $GCC,$host_os in
15951  yes,cygwin* | yes,mingw* | yes,pw32*)
15952    library_names_spec='$libname.dll.a'
15953    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15954    postinstall_cmds='base_file=`basename \${file}`~
15955      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15956      dldir=$destdir/`dirname \$dlpath`~
15957      test -d \$dldir || mkdir -p \$dldir~
15958      $install_prog $dir/$dlname \$dldir/$dlname~
15959      chmod a+x \$dldir/$dlname'
15960    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15961      dlpath=$dir/\$dldll~
15962       $rm \$dlpath'
15963    shlibpath_overrides_runpath=yes
15964
15965    case $host_os in
15966    cygwin*)
15967      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15968      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15970      ;;
15971    mingw*)
15972      # MinGW DLLs use traditional 'lib' prefix
15973      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15974      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15976        # It is most probably a Windows format PATH printed by
15977        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15978        # path with ; separators, and with drive letters. We can handle the
15979        # drive letters (cygwin fileutils understands them), so leave them,
15980        # especially as we might pass files found there to a mingw objdump,
15981        # which wouldn't understand a cygwinified path. Ahh.
15982        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15983      else
15984        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15985      fi
15986      ;;
15987    pw32*)
15988      # pw32 DLLs use 'pw' prefix rather than 'lib'
15989      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15990      ;;
15991    esac
15992    ;;
15993
15994  *)
15995    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15996    ;;
15997  esac
15998  dynamic_linker='Win32 ld.exe'
15999  # FIXME: first we should search . and the directory the executable is in
16000  shlibpath_var=PATH
16001  ;;
16002
16003darwin* | rhapsody*)
16004  dynamic_linker="$host_os dyld"
16005  version_type=darwin
16006  need_lib_prefix=no
16007  need_version=no
16008  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16009  soname_spec='${libname}${release}${major}$shared_ext'
16010  shlibpath_overrides_runpath=yes
16011  shlibpath_var=DYLD_LIBRARY_PATH
16012  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16013
16014  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16015  ;;
16016
16017dgux*)
16018  version_type=linux
16019  need_lib_prefix=no
16020  need_version=no
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16022  soname_spec='${libname}${release}${shared_ext}$major'
16023  shlibpath_var=LD_LIBRARY_PATH
16024  ;;
16025
16026freebsd1*)
16027  dynamic_linker=no
16028  ;;
16029
16030freebsd* | dragonfly*)
16031  # DragonFly does not have aout.  When/if they implement a new
16032  # versioning mechanism, adjust this.
16033  if test -x /usr/bin/objformat; then
16034    objformat=`/usr/bin/objformat`
16035  else
16036    case $host_os in
16037    freebsd[123]*) objformat=aout ;;
16038    *) objformat=elf ;;
16039    esac
16040  fi
16041  version_type=freebsd-$objformat
16042  case $version_type in
16043    freebsd-elf*)
16044      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16045      need_version=no
16046      need_lib_prefix=no
16047      ;;
16048    freebsd-*)
16049      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16050      need_version=yes
16051      ;;
16052  esac
16053  shlibpath_var=LD_LIBRARY_PATH
16054  case $host_os in
16055  freebsd2*)
16056    shlibpath_overrides_runpath=yes
16057    ;;
16058  freebsd3.[01]* | freebsdelf3.[01]*)
16059    shlibpath_overrides_runpath=yes
16060    hardcode_into_libs=yes
16061    ;;
16062  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16063  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16064    shlibpath_overrides_runpath=no
16065    hardcode_into_libs=yes
16066    ;;
16067  *) # from 4.6 on, and DragonFly
16068    shlibpath_overrides_runpath=yes
16069    hardcode_into_libs=yes
16070    ;;
16071  esac
16072  ;;
16073
16074gnu*)
16075  version_type=linux
16076  need_lib_prefix=no
16077  need_version=no
16078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16079  soname_spec='${libname}${release}${shared_ext}$major'
16080  shlibpath_var=LD_LIBRARY_PATH
16081  hardcode_into_libs=yes
16082  ;;
16083
16084hpux9* | hpux10* | hpux11*)
16085  # Give a soname corresponding to the major version so that dld.sl refuses to
16086  # link against other versions.
16087  version_type=sunos
16088  need_lib_prefix=no
16089  need_version=no
16090  case $host_cpu in
16091  ia64*)
16092    shrext_cmds='.so'
16093    hardcode_into_libs=yes
16094    dynamic_linker="$host_os dld.so"
16095    shlibpath_var=LD_LIBRARY_PATH
16096    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16097    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098    soname_spec='${libname}${release}${shared_ext}$major'
16099    if test "X$HPUX_IA64_MODE" = X32; then
16100      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16101    else
16102      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16103    fi
16104    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105    ;;
16106   hppa*64*)
16107     shrext_cmds='.sl'
16108     hardcode_into_libs=yes
16109     dynamic_linker="$host_os dld.sl"
16110     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16116     ;;
16117   *)
16118    shrext_cmds='.sl'
16119    dynamic_linker="$host_os dld.sl"
16120    shlibpath_var=SHLIB_PATH
16121    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123    soname_spec='${libname}${release}${shared_ext}$major'
16124    ;;
16125  esac
16126  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16127  postinstall_cmds='chmod 555 $lib'
16128  ;;
16129
16130interix[3-9]*)
16131  version_type=linux
16132  need_lib_prefix=no
16133  need_version=no
16134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16135  soname_spec='${libname}${release}${shared_ext}$major'
16136  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16137  shlibpath_var=LD_LIBRARY_PATH
16138  shlibpath_overrides_runpath=no
16139  hardcode_into_libs=yes
16140  ;;
16141
16142irix5* | irix6* | nonstopux*)
16143  case $host_os in
16144    nonstopux*) version_type=nonstopux ;;
16145    *)
16146	if test "$lt_cv_prog_gnu_ld" = yes; then
16147		version_type=linux
16148	else
16149		version_type=irix
16150	fi ;;
16151  esac
16152  need_lib_prefix=no
16153  need_version=no
16154  soname_spec='${libname}${release}${shared_ext}$major'
16155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16156  case $host_os in
16157  irix5* | nonstopux*)
16158    libsuff= shlibsuff=
16159    ;;
16160  *)
16161    case $LD in # libtool.m4 will add one of these switches to LD
16162    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16163      libsuff= shlibsuff= libmagic=32-bit;;
16164    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16165      libsuff=32 shlibsuff=N32 libmagic=N32;;
16166    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16167      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16168    *) libsuff= shlibsuff= libmagic=never-match;;
16169    esac
16170    ;;
16171  esac
16172  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16173  shlibpath_overrides_runpath=no
16174  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16175  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16176  hardcode_into_libs=yes
16177  ;;
16178
16179# No shared lib support for Linux oldld, aout, or coff.
16180linux*oldld* | linux*aout* | linux*coff*)
16181  dynamic_linker=no
16182  ;;
16183
16184# This must be Linux ELF.
16185linux* | k*bsd*-gnu)
16186  version_type=linux
16187  need_lib_prefix=no
16188  need_version=no
16189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190  soname_spec='${libname}${release}${shared_ext}$major'
16191  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16192  shlibpath_var=LD_LIBRARY_PATH
16193  shlibpath_overrides_runpath=no
16194  # This implies no fast_install, which is unacceptable.
16195  # Some rework will be needed to allow for fast_install
16196  # before this can be enabled.
16197  hardcode_into_libs=yes
16198  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16199  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16200
16201  # Append ld.so.conf contents to the search path
16202  if test -f /etc/ld.so.conf; then
16203    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' ' '`
16204    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16205  fi
16206
16207  # We used to test for /lib/ld.so.1 and disable shared libraries on
16208  # powerpc, because MkLinux only supported shared libraries with the
16209  # GNU dynamic linker.  Since this was broken with cross compilers,
16210  # most powerpc-linux boxes support dynamic linking these days and
16211  # people can always --disable-shared, the test was removed, and we
16212  # assume the GNU/Linux dynamic linker is in use.
16213  dynamic_linker='GNU/Linux ld.so'
16214  ;;
16215
16216netbsd*)
16217  version_type=sunos
16218  need_lib_prefix=no
16219  need_version=no
16220  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16221    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16222    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16223    dynamic_linker='NetBSD (a.out) ld.so'
16224  else
16225    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16226    soname_spec='${libname}${release}${shared_ext}$major'
16227    dynamic_linker='NetBSD ld.elf_so'
16228  fi
16229  shlibpath_var=LD_LIBRARY_PATH
16230  shlibpath_overrides_runpath=yes
16231  hardcode_into_libs=yes
16232  ;;
16233
16234newsos6)
16235  version_type=linux
16236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237  shlibpath_var=LD_LIBRARY_PATH
16238  shlibpath_overrides_runpath=yes
16239  ;;
16240
16241nto-qnx*)
16242  version_type=linux
16243  need_lib_prefix=no
16244  need_version=no
16245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246  soname_spec='${libname}${release}${shared_ext}$major'
16247  shlibpath_var=LD_LIBRARY_PATH
16248  shlibpath_overrides_runpath=yes
16249  ;;
16250
16251openbsd*)
16252  version_type=sunos
16253  sys_lib_dlsearch_path_spec="/usr/lib"
16254  need_lib_prefix=no
16255  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16256  case $host_os in
16257    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16258    *)                         need_version=no  ;;
16259  esac
16260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16261  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16262  shlibpath_var=LD_LIBRARY_PATH
16263  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16264    case $host_os in
16265      openbsd2.[89] | openbsd2.[89].*)
16266	shlibpath_overrides_runpath=no
16267	;;
16268      *)
16269	shlibpath_overrides_runpath=yes
16270	;;
16271      esac
16272  else
16273    shlibpath_overrides_runpath=yes
16274  fi
16275  ;;
16276
16277os2*)
16278  libname_spec='$name'
16279  shrext_cmds=".dll"
16280  need_lib_prefix=no
16281  library_names_spec='$libname${shared_ext} $libname.a'
16282  dynamic_linker='OS/2 ld.exe'
16283  shlibpath_var=LIBPATH
16284  ;;
16285
16286osf3* | osf4* | osf5*)
16287  version_type=osf
16288  need_lib_prefix=no
16289  need_version=no
16290  soname_spec='${libname}${release}${shared_ext}$major'
16291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16292  shlibpath_var=LD_LIBRARY_PATH
16293  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16294  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16295  ;;
16296
16297rdos*)
16298  dynamic_linker=no
16299  ;;
16300
16301solaris*)
16302  version_type=linux
16303  need_lib_prefix=no
16304  need_version=no
16305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306  soname_spec='${libname}${release}${shared_ext}$major'
16307  shlibpath_var=LD_LIBRARY_PATH
16308  shlibpath_overrides_runpath=yes
16309  hardcode_into_libs=yes
16310  # ldd complains unless libraries are executable
16311  postinstall_cmds='chmod +x $lib'
16312  ;;
16313
16314sunos4*)
16315  version_type=sunos
16316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16317  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16318  shlibpath_var=LD_LIBRARY_PATH
16319  shlibpath_overrides_runpath=yes
16320  if test "$with_gnu_ld" = yes; then
16321    need_lib_prefix=no
16322  fi
16323  need_version=yes
16324  ;;
16325
16326sysv4 | sysv4.3*)
16327  version_type=linux
16328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329  soname_spec='${libname}${release}${shared_ext}$major'
16330  shlibpath_var=LD_LIBRARY_PATH
16331  case $host_vendor in
16332    sni)
16333      shlibpath_overrides_runpath=no
16334      need_lib_prefix=no
16335      export_dynamic_flag_spec='${wl}-Blargedynsym'
16336      runpath_var=LD_RUN_PATH
16337      ;;
16338    siemens)
16339      need_lib_prefix=no
16340      ;;
16341    motorola)
16342      need_lib_prefix=no
16343      need_version=no
16344      shlibpath_overrides_runpath=no
16345      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16346      ;;
16347  esac
16348  ;;
16349
16350sysv4*MP*)
16351  if test -d /usr/nec ;then
16352    version_type=linux
16353    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16354    soname_spec='$libname${shared_ext}.$major'
16355    shlibpath_var=LD_LIBRARY_PATH
16356  fi
16357  ;;
16358
16359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16360  version_type=freebsd-elf
16361  need_lib_prefix=no
16362  need_version=no
16363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16364  soname_spec='${libname}${release}${shared_ext}$major'
16365  shlibpath_var=LD_LIBRARY_PATH
16366  hardcode_into_libs=yes
16367  if test "$with_gnu_ld" = yes; then
16368    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16369    shlibpath_overrides_runpath=no
16370  else
16371    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16372    shlibpath_overrides_runpath=yes
16373    case $host_os in
16374      sco3.2v5*)
16375        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16376	;;
16377    esac
16378  fi
16379  sys_lib_dlsearch_path_spec='/usr/lib'
16380  ;;
16381
16382uts4*)
16383  version_type=linux
16384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385  soname_spec='${libname}${release}${shared_ext}$major'
16386  shlibpath_var=LD_LIBRARY_PATH
16387  ;;
16388
16389*)
16390  dynamic_linker=no
16391  ;;
16392esac
16393{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16394$as_echo "$dynamic_linker" >&6; }
16395test "$dynamic_linker" = no && can_build_shared=no
16396
16397if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16398  $as_echo_n "(cached) " >&6
16399else
16400  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16401fi
16402
16403sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16404if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16405  $as_echo_n "(cached) " >&6
16406else
16407  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16408fi
16409
16410sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16411
16412variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16413if test "$GCC" = yes; then
16414  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16415fi
16416
16417{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16418$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16419hardcode_action_F77=
16420if test -n "$hardcode_libdir_flag_spec_F77" || \
16421   test -n "$runpath_var_F77" || \
16422   test "X$hardcode_automatic_F77" = "Xyes" ; then
16423
16424  # We can hardcode non-existant directories.
16425  if test "$hardcode_direct_F77" != no &&
16426     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16427     # have to relink, otherwise we might link with an installed library
16428     # when we should be linking with a yet-to-be-installed one
16429     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16430     test "$hardcode_minus_L_F77" != no; then
16431    # Linking always hardcodes the temporary library directory.
16432    hardcode_action_F77=relink
16433  else
16434    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16435    hardcode_action_F77=immediate
16436  fi
16437else
16438  # We cannot hardcode anything, or else we can only hardcode existing
16439  # directories.
16440  hardcode_action_F77=unsupported
16441fi
16442{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16443$as_echo "$hardcode_action_F77" >&6; }
16444
16445if test "$hardcode_action_F77" = relink; then
16446  # Fast installation is not supported
16447  enable_fast_install=no
16448elif test "$shlibpath_overrides_runpath" = yes ||
16449     test "$enable_shared" = no; then
16450  # Fast installation is not necessary
16451  enable_fast_install=needless
16452fi
16453
16454
16455# The else clause should only fire when bootstrapping the
16456# libtool distribution, otherwise you forgot to ship ltmain.sh
16457# with your package, and you will get complaints that there are
16458# no rules to generate ltmain.sh.
16459if test -f "$ltmain"; then
16460  # See if we are running on zsh, and set the options which allow our commands through
16461  # without removal of \ escapes.
16462  if test -n "${ZSH_VERSION+set}" ; then
16463    setopt NO_GLOB_SUBST
16464  fi
16465  # Now quote all the things that may contain metacharacters while being
16466  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16467  # variables and quote the copies for generation of the libtool script.
16468  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16469    SED SHELL STRIP \
16470    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16471    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16472    deplibs_check_method reload_flag reload_cmds need_locks \
16473    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16474    lt_cv_sys_global_symbol_to_c_name_address \
16475    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16476    old_postinstall_cmds old_postuninstall_cmds \
16477    compiler_F77 \
16478    CC_F77 \
16479    LD_F77 \
16480    lt_prog_compiler_wl_F77 \
16481    lt_prog_compiler_pic_F77 \
16482    lt_prog_compiler_static_F77 \
16483    lt_prog_compiler_no_builtin_flag_F77 \
16484    export_dynamic_flag_spec_F77 \
16485    thread_safe_flag_spec_F77 \
16486    whole_archive_flag_spec_F77 \
16487    enable_shared_with_static_runtimes_F77 \
16488    old_archive_cmds_F77 \
16489    old_archive_from_new_cmds_F77 \
16490    predep_objects_F77 \
16491    postdep_objects_F77 \
16492    predeps_F77 \
16493    postdeps_F77 \
16494    compiler_lib_search_path_F77 \
16495    compiler_lib_search_dirs_F77 \
16496    archive_cmds_F77 \
16497    archive_expsym_cmds_F77 \
16498    postinstall_cmds_F77 \
16499    postuninstall_cmds_F77 \
16500    old_archive_from_expsyms_cmds_F77 \
16501    allow_undefined_flag_F77 \
16502    no_undefined_flag_F77 \
16503    export_symbols_cmds_F77 \
16504    hardcode_libdir_flag_spec_F77 \
16505    hardcode_libdir_flag_spec_ld_F77 \
16506    hardcode_libdir_separator_F77 \
16507    hardcode_automatic_F77 \
16508    module_cmds_F77 \
16509    module_expsym_cmds_F77 \
16510    lt_cv_prog_compiler_c_o_F77 \
16511    fix_srcfile_path_F77 \
16512    exclude_expsyms_F77 \
16513    include_expsyms_F77; do
16514
16515    case $var in
16516    old_archive_cmds_F77 | \
16517    old_archive_from_new_cmds_F77 | \
16518    archive_cmds_F77 | \
16519    archive_expsym_cmds_F77 | \
16520    module_cmds_F77 | \
16521    module_expsym_cmds_F77 | \
16522    old_archive_from_expsyms_cmds_F77 | \
16523    export_symbols_cmds_F77 | \
16524    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16525    postinstall_cmds | postuninstall_cmds | \
16526    old_postinstall_cmds | old_postuninstall_cmds | \
16527    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16528      # Double-quote double-evaled strings.
16529      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16530      ;;
16531    *)
16532      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16533      ;;
16534    esac
16535  done
16536
16537  case $lt_echo in
16538  *'\$0 --fallback-echo"')
16539    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16540    ;;
16541  esac
16542
16543cfgfile="$ofile"
16544
16545  cat <<__EOF__ >> "$cfgfile"
16546# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16547
16548# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16549
16550# Shell to use when invoking shell scripts.
16551SHELL=$lt_SHELL
16552
16553# Whether or not to build shared libraries.
16554build_libtool_libs=$enable_shared
16555
16556# Whether or not to build static libraries.
16557build_old_libs=$enable_static
16558
16559# Whether or not to add -lc for building shared libraries.
16560build_libtool_need_lc=$archive_cmds_need_lc_F77
16561
16562# Whether or not to disallow shared libs when runtime libs are static
16563allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16564
16565# Whether or not to optimize for fast installation.
16566fast_install=$enable_fast_install
16567
16568# The host system.
16569host_alias=$host_alias
16570host=$host
16571host_os=$host_os
16572
16573# The build system.
16574build_alias=$build_alias
16575build=$build
16576build_os=$build_os
16577
16578# An echo program that does not interpret backslashes.
16579echo=$lt_echo
16580
16581# The archiver.
16582AR=$lt_AR
16583AR_FLAGS=$lt_AR_FLAGS
16584
16585# A C compiler.
16586LTCC=$lt_LTCC
16587
16588# LTCC compiler flags.
16589LTCFLAGS=$lt_LTCFLAGS
16590
16591# A language-specific compiler.
16592CC=$lt_compiler_F77
16593
16594# Is the compiler the GNU C compiler?
16595with_gcc=$GCC_F77
16596
16597# An ERE matcher.
16598EGREP=$lt_EGREP
16599
16600# The linker used to build libraries.
16601LD=$lt_LD_F77
16602
16603# Whether we need hard or soft links.
16604LN_S=$lt_LN_S
16605
16606# A BSD-compatible nm program.
16607NM=$lt_NM
16608
16609# A symbol stripping program
16610STRIP=$lt_STRIP
16611
16612# Used to examine libraries when file_magic_cmd begins "file"
16613MAGIC_CMD=$MAGIC_CMD
16614
16615# Used on cygwin: DLL creation program.
16616DLLTOOL="$DLLTOOL"
16617
16618# Used on cygwin: object dumper.
16619OBJDUMP="$OBJDUMP"
16620
16621# Used on cygwin: assembler.
16622AS="$AS"
16623
16624# The name of the directory that contains temporary libtool files.
16625objdir=$objdir
16626
16627# How to create reloadable object files.
16628reload_flag=$lt_reload_flag
16629reload_cmds=$lt_reload_cmds
16630
16631# How to pass a linker flag through the compiler.
16632wl=$lt_lt_prog_compiler_wl_F77
16633
16634# Object file suffix (normally "o").
16635objext="$ac_objext"
16636
16637# Old archive suffix (normally "a").
16638libext="$libext"
16639
16640# Shared library suffix (normally ".so").
16641shrext_cmds='$shrext_cmds'
16642
16643# Executable file suffix (normally "").
16644exeext="$exeext"
16645
16646# Additional compiler flags for building library objects.
16647pic_flag=$lt_lt_prog_compiler_pic_F77
16648pic_mode=$pic_mode
16649
16650# What is the maximum length of a command?
16651max_cmd_len=$lt_cv_sys_max_cmd_len
16652
16653# Does compiler simultaneously support -c and -o options?
16654compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16655
16656# Must we lock files when doing compilation?
16657need_locks=$lt_need_locks
16658
16659# Do we need the lib prefix for modules?
16660need_lib_prefix=$need_lib_prefix
16661
16662# Do we need a version for libraries?
16663need_version=$need_version
16664
16665# Whether dlopen is supported.
16666dlopen_support=$enable_dlopen
16667
16668# Whether dlopen of programs is supported.
16669dlopen_self=$enable_dlopen_self
16670
16671# Whether dlopen of statically linked programs is supported.
16672dlopen_self_static=$enable_dlopen_self_static
16673
16674# Compiler flag to prevent dynamic linking.
16675link_static_flag=$lt_lt_prog_compiler_static_F77
16676
16677# Compiler flag to turn off builtin functions.
16678no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16679
16680# Compiler flag to allow reflexive dlopens.
16681export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16682
16683# Compiler flag to generate shared objects directly from archives.
16684whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16685
16686# Compiler flag to generate thread-safe objects.
16687thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16688
16689# Library versioning type.
16690version_type=$version_type
16691
16692# Format of library name prefix.
16693libname_spec=$lt_libname_spec
16694
16695# List of archive names.  First name is the real one, the rest are links.
16696# The last name is the one that the linker finds with -lNAME.
16697library_names_spec=$lt_library_names_spec
16698
16699# The coded name of the library, if different from the real name.
16700soname_spec=$lt_soname_spec
16701
16702# Commands used to build and install an old-style archive.
16703RANLIB=$lt_RANLIB
16704old_archive_cmds=$lt_old_archive_cmds_F77
16705old_postinstall_cmds=$lt_old_postinstall_cmds
16706old_postuninstall_cmds=$lt_old_postuninstall_cmds
16707
16708# Create an old-style archive from a shared archive.
16709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16710
16711# Create a temporary old-style archive to link instead of a shared archive.
16712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16713
16714# Commands used to build and install a shared archive.
16715archive_cmds=$lt_archive_cmds_F77
16716archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16717postinstall_cmds=$lt_postinstall_cmds
16718postuninstall_cmds=$lt_postuninstall_cmds
16719
16720# Commands used to build a loadable module (assumed same as above if empty)
16721module_cmds=$lt_module_cmds_F77
16722module_expsym_cmds=$lt_module_expsym_cmds_F77
16723
16724# Commands to strip libraries.
16725old_striplib=$lt_old_striplib
16726striplib=$lt_striplib
16727
16728# Dependencies to place before the objects being linked to create a
16729# shared library.
16730predep_objects=$lt_predep_objects_F77
16731
16732# Dependencies to place after the objects being linked to create a
16733# shared library.
16734postdep_objects=$lt_postdep_objects_F77
16735
16736# Dependencies to place before the objects being linked to create a
16737# shared library.
16738predeps=$lt_predeps_F77
16739
16740# Dependencies to place after the objects being linked to create a
16741# shared library.
16742postdeps=$lt_postdeps_F77
16743
16744# The directories searched by this compiler when creating a shared
16745# library
16746compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16747
16748# The library search path used internally by the compiler when linking
16749# a shared library.
16750compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16751
16752# Method to check whether dependent libraries are shared objects.
16753deplibs_check_method=$lt_deplibs_check_method
16754
16755# Command to use when deplibs_check_method == file_magic.
16756file_magic_cmd=$lt_file_magic_cmd
16757
16758# Flag that allows shared libraries with undefined symbols to be built.
16759allow_undefined_flag=$lt_allow_undefined_flag_F77
16760
16761# Flag that forces no undefined symbols.
16762no_undefined_flag=$lt_no_undefined_flag_F77
16763
16764# Commands used to finish a libtool library installation in a directory.
16765finish_cmds=$lt_finish_cmds
16766
16767# Same as above, but a single script fragment to be evaled but not shown.
16768finish_eval=$lt_finish_eval
16769
16770# Take the output of nm and produce a listing of raw symbols and C names.
16771global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16772
16773# Transform the output of nm in a proper C declaration
16774global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16775
16776# Transform the output of nm in a C name address pair
16777global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16778
16779# This is the shared library runtime path variable.
16780runpath_var=$runpath_var
16781
16782# This is the shared library path variable.
16783shlibpath_var=$shlibpath_var
16784
16785# Is shlibpath searched before the hard-coded library search path?
16786shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16787
16788# How to hardcode a shared library path into an executable.
16789hardcode_action=$hardcode_action_F77
16790
16791# Whether we should hardcode library paths into libraries.
16792hardcode_into_libs=$hardcode_into_libs
16793
16794# Flag to hardcode \$libdir into a binary during linking.
16795# This must work even if \$libdir does not exist.
16796hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16797
16798# If ld is used when linking, flag to hardcode \$libdir into
16799# a binary during linking. This must work even if \$libdir does
16800# not exist.
16801hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16802
16803# Whether we need a single -rpath flag with a separated argument.
16804hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16805
16806# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16807# resulting binary.
16808hardcode_direct=$hardcode_direct_F77
16809
16810# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16811# resulting binary.
16812hardcode_minus_L=$hardcode_minus_L_F77
16813
16814# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16815# the resulting binary.
16816hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16817
16818# Set to yes if building a shared library automatically hardcodes DIR into the library
16819# and all subsequent libraries and executables linked against it.
16820hardcode_automatic=$hardcode_automatic_F77
16821
16822# Variables whose values should be saved in libtool wrapper scripts and
16823# restored at relink time.
16824variables_saved_for_relink="$variables_saved_for_relink"
16825
16826# Whether libtool must link a program against all its dependency libraries.
16827link_all_deplibs=$link_all_deplibs_F77
16828
16829# Compile-time system search path for libraries
16830sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16831
16832# Run-time system search path for libraries
16833sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16834
16835# Fix the shell variable \$srcfile for the compiler.
16836fix_srcfile_path=$lt_fix_srcfile_path
16837
16838# Set to yes if exported symbols are required.
16839always_export_symbols=$always_export_symbols_F77
16840
16841# The commands to list exported symbols.
16842export_symbols_cmds=$lt_export_symbols_cmds_F77
16843
16844# The commands to extract the exported symbol list from a shared archive.
16845extract_expsyms_cmds=$lt_extract_expsyms_cmds
16846
16847# Symbols that should not be listed in the preloaded symbols.
16848exclude_expsyms=$lt_exclude_expsyms_F77
16849
16850# Symbols that must always be exported.
16851include_expsyms=$lt_include_expsyms_F77
16852
16853# ### END LIBTOOL TAG CONFIG: $tagname
16854
16855__EOF__
16856
16857
16858else
16859  # If there is no Makefile yet, we rely on a make rule to execute
16860  # `config.status --recheck' to rerun these tests and create the
16861  # libtool script then.
16862  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16863  if test -f "$ltmain_in"; then
16864    test -f Makefile && make "$ltmain"
16865  fi
16866fi
16867
16868
16869ac_ext=c
16870ac_cpp='$CPP $CPPFLAGS'
16871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16873ac_compiler_gnu=$ac_cv_c_compiler_gnu
16874
16875CC="$lt_save_CC"
16876
16877	else
16878	  tagname=""
16879	fi
16880	;;
16881
16882      GCJ)
16883	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16884
16885
16886# Source file extension for Java test sources.
16887ac_ext=java
16888
16889# Object file extension for compiled Java test sources.
16890objext=o
16891objext_GCJ=$objext
16892
16893# Code to be used in simple compile tests
16894lt_simple_compile_test_code="class foo {}"
16895
16896# Code to be used in simple link tests
16897lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16898
16899# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16900
16901# If no C compiler was specified, use CC.
16902LTCC=${LTCC-"$CC"}
16903
16904# If no C compiler flags were specified, use CFLAGS.
16905LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16906
16907# Allow CC to be a program name with arguments.
16908compiler=$CC
16909
16910
16911# save warnings/boilerplate of simple test code
16912ac_outfile=conftest.$ac_objext
16913echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16914eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16915_lt_compiler_boilerplate=`cat conftest.err`
16916$rm conftest*
16917
16918ac_outfile=conftest.$ac_objext
16919echo "$lt_simple_link_test_code" >conftest.$ac_ext
16920eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16921_lt_linker_boilerplate=`cat conftest.err`
16922$rm -r conftest*
16923
16924
16925# Allow CC to be a program name with arguments.
16926lt_save_CC="$CC"
16927CC=${GCJ-"gcj"}
16928compiler=$CC
16929compiler_GCJ=$CC
16930for cc_temp in $compiler""; do
16931  case $cc_temp in
16932    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16933    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16934    \-*) ;;
16935    *) break;;
16936  esac
16937done
16938cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16939
16940
16941# GCJ did not exist at the time GCC didn't implicitly link libc in.
16942archive_cmds_need_lc_GCJ=no
16943
16944old_archive_cmds_GCJ=$old_archive_cmds
16945
16946
16947lt_prog_compiler_no_builtin_flag_GCJ=
16948
16949if test "$GCC" = yes; then
16950  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16951
16952
16953{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16954$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16955if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16956  $as_echo_n "(cached) " >&6
16957else
16958  lt_cv_prog_compiler_rtti_exceptions=no
16959  ac_outfile=conftest.$ac_objext
16960   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16961   lt_compiler_flag="-fno-rtti -fno-exceptions"
16962   # Insert the option either (1) after the last *FLAGS variable, or
16963   # (2) before a word containing "conftest.", or (3) at the end.
16964   # Note that $ac_compile itself does not contain backslashes and begins
16965   # with a dollar sign (not a hyphen), so the echo should work correctly.
16966   # The option is referenced via a variable to avoid confusing sed.
16967   lt_compile=`echo "$ac_compile" | $SED \
16968   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16969   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16970   -e 's:$: $lt_compiler_flag:'`
16971   (eval echo "\"\$as_me:16971: $lt_compile\"" >&5)
16972   (eval "$lt_compile" 2>conftest.err)
16973   ac_status=$?
16974   cat conftest.err >&5
16975   echo "$as_me:16975: \$? = $ac_status" >&5
16976   if (exit $ac_status) && test -s "$ac_outfile"; then
16977     # The compiler can only warn and ignore the option if not recognized
16978     # So say no if there are warnings other than the usual output.
16979     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16980     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16981     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16982       lt_cv_prog_compiler_rtti_exceptions=yes
16983     fi
16984   fi
16985   $rm conftest*
16986
16987fi
16988{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16989$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16990
16991if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16992    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16993else
16994    :
16995fi
16996
16997fi
16998
16999lt_prog_compiler_wl_GCJ=
17000lt_prog_compiler_pic_GCJ=
17001lt_prog_compiler_static_GCJ=
17002
17003{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17004$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17005
17006  if test "$GCC" = yes; then
17007    lt_prog_compiler_wl_GCJ='-Wl,'
17008    lt_prog_compiler_static_GCJ='-static'
17009
17010    case $host_os in
17011      aix*)
17012      # All AIX code is PIC.
17013      if test "$host_cpu" = ia64; then
17014	# AIX 5 now supports IA64 processor
17015	lt_prog_compiler_static_GCJ='-Bstatic'
17016      fi
17017      ;;
17018
17019    amigaos*)
17020      # FIXME: we need at least 68020 code to build shared libraries, but
17021      # adding the `-m68020' flag to GCC prevents building anything better,
17022      # like `-m68040'.
17023      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17024      ;;
17025
17026    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17027      # PIC is the default for these OSes.
17028      ;;
17029
17030    mingw* | cygwin* | pw32* | os2*)
17031      # This hack is so that the source file can tell whether it is being
17032      # built for inclusion in a dll (and should export symbols for example).
17033      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17034      # (--disable-auto-import) libraries
17035
17036      ;;
17037
17038    darwin* | rhapsody*)
17039      # PIC is the default on this platform
17040      # Common symbols not allowed in MH_DYLIB files
17041      lt_prog_compiler_pic_GCJ='-fno-common'
17042      ;;
17043
17044    interix[3-9]*)
17045      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17046      # Instead, we relocate shared libraries at runtime.
17047      ;;
17048
17049    msdosdjgpp*)
17050      # Just because we use GCC doesn't mean we suddenly get shared libraries
17051      # on systems that don't support them.
17052      lt_prog_compiler_can_build_shared_GCJ=no
17053      enable_shared=no
17054      ;;
17055
17056    sysv4*MP*)
17057      if test -d /usr/nec; then
17058	lt_prog_compiler_pic_GCJ=-Kconform_pic
17059      fi
17060      ;;
17061
17062    hpux*)
17063      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17064      # not for PA HP-UX.
17065      case $host_cpu in
17066      hppa*64*|ia64*)
17067	# +Z the default
17068	;;
17069      *)
17070	lt_prog_compiler_pic_GCJ='-fPIC'
17071	;;
17072      esac
17073      ;;
17074
17075    *)
17076      lt_prog_compiler_pic_GCJ='-fPIC'
17077      ;;
17078    esac
17079  else
17080    # PORTME Check for flag to pass linker flags through the system compiler.
17081    case $host_os in
17082    aix*)
17083      lt_prog_compiler_wl_GCJ='-Wl,'
17084      if test "$host_cpu" = ia64; then
17085	# AIX 5 now supports IA64 processor
17086	lt_prog_compiler_static_GCJ='-Bstatic'
17087      else
17088	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17089      fi
17090      ;;
17091      darwin*)
17092        # PIC is the default on this platform
17093        # Common symbols not allowed in MH_DYLIB files
17094       case $cc_basename in
17095         xlc*)
17096         lt_prog_compiler_pic_GCJ='-qnocommon'
17097         lt_prog_compiler_wl_GCJ='-Wl,'
17098         ;;
17099       esac
17100       ;;
17101
17102    mingw* | cygwin* | pw32* | os2*)
17103      # This hack is so that the source file can tell whether it is being
17104      # built for inclusion in a dll (and should export symbols for example).
17105
17106      ;;
17107
17108    hpux9* | hpux10* | hpux11*)
17109      lt_prog_compiler_wl_GCJ='-Wl,'
17110      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17111      # not for PA HP-UX.
17112      case $host_cpu in
17113      hppa*64*|ia64*)
17114	# +Z the default
17115	;;
17116      *)
17117	lt_prog_compiler_pic_GCJ='+Z'
17118	;;
17119      esac
17120      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17121      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17122      ;;
17123
17124    irix5* | irix6* | nonstopux*)
17125      lt_prog_compiler_wl_GCJ='-Wl,'
17126      # PIC (with -KPIC) is the default.
17127      lt_prog_compiler_static_GCJ='-non_shared'
17128      ;;
17129
17130    newsos6)
17131      lt_prog_compiler_pic_GCJ='-KPIC'
17132      lt_prog_compiler_static_GCJ='-Bstatic'
17133      ;;
17134
17135    linux* | k*bsd*-gnu)
17136      case $cc_basename in
17137      icc* | ecc*)
17138	lt_prog_compiler_wl_GCJ='-Wl,'
17139	lt_prog_compiler_pic_GCJ='-KPIC'
17140	lt_prog_compiler_static_GCJ='-static'
17141        ;;
17142      pgcc* | pgf77* | pgf90* | pgf95*)
17143        # Portland Group compilers (*not* the Pentium gcc compiler,
17144	# which looks to be a dead project)
17145	lt_prog_compiler_wl_GCJ='-Wl,'
17146	lt_prog_compiler_pic_GCJ='-fpic'
17147	lt_prog_compiler_static_GCJ='-Bstatic'
17148        ;;
17149      ccc*)
17150        lt_prog_compiler_wl_GCJ='-Wl,'
17151        # All Alpha code is PIC.
17152        lt_prog_compiler_static_GCJ='-non_shared'
17153        ;;
17154      *)
17155        case `$CC -V 2>&1 | sed 5q` in
17156	*Sun\ C*)
17157	  # Sun C 5.9
17158	  lt_prog_compiler_pic_GCJ='-KPIC'
17159	  lt_prog_compiler_static_GCJ='-Bstatic'
17160	  lt_prog_compiler_wl_GCJ='-Wl,'
17161	  ;;
17162	*Sun\ F*)
17163	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17164	  lt_prog_compiler_pic_GCJ='-KPIC'
17165	  lt_prog_compiler_static_GCJ='-Bstatic'
17166	  lt_prog_compiler_wl_GCJ=''
17167	  ;;
17168	esac
17169	;;
17170      esac
17171      ;;
17172
17173    osf3* | osf4* | osf5*)
17174      lt_prog_compiler_wl_GCJ='-Wl,'
17175      # All OSF/1 code is PIC.
17176      lt_prog_compiler_static_GCJ='-non_shared'
17177      ;;
17178
17179    rdos*)
17180      lt_prog_compiler_static_GCJ='-non_shared'
17181      ;;
17182
17183    solaris*)
17184      lt_prog_compiler_pic_GCJ='-KPIC'
17185      lt_prog_compiler_static_GCJ='-Bstatic'
17186      case $cc_basename in
17187      f77* | f90* | f95*)
17188	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17189      *)
17190	lt_prog_compiler_wl_GCJ='-Wl,';;
17191      esac
17192      ;;
17193
17194    sunos4*)
17195      lt_prog_compiler_wl_GCJ='-Qoption ld '
17196      lt_prog_compiler_pic_GCJ='-PIC'
17197      lt_prog_compiler_static_GCJ='-Bstatic'
17198      ;;
17199
17200    sysv4 | sysv4.2uw2* | sysv4.3*)
17201      lt_prog_compiler_wl_GCJ='-Wl,'
17202      lt_prog_compiler_pic_GCJ='-KPIC'
17203      lt_prog_compiler_static_GCJ='-Bstatic'
17204      ;;
17205
17206    sysv4*MP*)
17207      if test -d /usr/nec ;then
17208	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17209	lt_prog_compiler_static_GCJ='-Bstatic'
17210      fi
17211      ;;
17212
17213    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17214      lt_prog_compiler_wl_GCJ='-Wl,'
17215      lt_prog_compiler_pic_GCJ='-KPIC'
17216      lt_prog_compiler_static_GCJ='-Bstatic'
17217      ;;
17218
17219    unicos*)
17220      lt_prog_compiler_wl_GCJ='-Wl,'
17221      lt_prog_compiler_can_build_shared_GCJ=no
17222      ;;
17223
17224    uts4*)
17225      lt_prog_compiler_pic_GCJ='-pic'
17226      lt_prog_compiler_static_GCJ='-Bstatic'
17227      ;;
17228
17229    *)
17230      lt_prog_compiler_can_build_shared_GCJ=no
17231      ;;
17232    esac
17233  fi
17234
17235{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17236$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17237
17238#
17239# Check to make sure the PIC flag actually works.
17240#
17241if test -n "$lt_prog_compiler_pic_GCJ"; then
17242
17243{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17244$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17245if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17246  $as_echo_n "(cached) " >&6
17247else
17248  lt_cv_prog_compiler_pic_works_GCJ=no
17249  ac_outfile=conftest.$ac_objext
17250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17251   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17252   # Insert the option either (1) after the last *FLAGS variable, or
17253   # (2) before a word containing "conftest.", or (3) at the end.
17254   # Note that $ac_compile itself does not contain backslashes and begins
17255   # with a dollar sign (not a hyphen), so the echo should work correctly.
17256   # The option is referenced via a variable to avoid confusing sed.
17257   lt_compile=`echo "$ac_compile" | $SED \
17258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17260   -e 's:$: $lt_compiler_flag:'`
17261   (eval echo "\"\$as_me:17261: $lt_compile\"" >&5)
17262   (eval "$lt_compile" 2>conftest.err)
17263   ac_status=$?
17264   cat conftest.err >&5
17265   echo "$as_me:17265: \$? = $ac_status" >&5
17266   if (exit $ac_status) && test -s "$ac_outfile"; then
17267     # The compiler can only warn and ignore the option if not recognized
17268     # So say no if there are warnings other than the usual output.
17269     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17272       lt_cv_prog_compiler_pic_works_GCJ=yes
17273     fi
17274   fi
17275   $rm conftest*
17276
17277fi
17278{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17279$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17280
17281if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17282    case $lt_prog_compiler_pic_GCJ in
17283     "" | " "*) ;;
17284     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17285     esac
17286else
17287    lt_prog_compiler_pic_GCJ=
17288     lt_prog_compiler_can_build_shared_GCJ=no
17289fi
17290
17291fi
17292case $host_os in
17293  # For platforms which do not support PIC, -DPIC is meaningless:
17294  *djgpp*)
17295    lt_prog_compiler_pic_GCJ=
17296    ;;
17297  *)
17298    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17299    ;;
17300esac
17301
17302#
17303# Check to make sure the static flag actually works.
17304#
17305wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17306{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17307$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17308if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17309  $as_echo_n "(cached) " >&6
17310else
17311  lt_cv_prog_compiler_static_works_GCJ=no
17312   save_LDFLAGS="$LDFLAGS"
17313   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17314   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17315   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17316     # The linker can only warn and ignore the option if not recognized
17317     # So say no if there are warnings
17318     if test -s conftest.err; then
17319       # Append any errors to the config.log.
17320       cat conftest.err 1>&5
17321       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17322       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17323       if diff conftest.exp conftest.er2 >/dev/null; then
17324         lt_cv_prog_compiler_static_works_GCJ=yes
17325       fi
17326     else
17327       lt_cv_prog_compiler_static_works_GCJ=yes
17328     fi
17329   fi
17330   $rm -r conftest*
17331   LDFLAGS="$save_LDFLAGS"
17332
17333fi
17334{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17335$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17336
17337if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17338    :
17339else
17340    lt_prog_compiler_static_GCJ=
17341fi
17342
17343
17344{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17346if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17347  $as_echo_n "(cached) " >&6
17348else
17349  lt_cv_prog_compiler_c_o_GCJ=no
17350   $rm -r conftest 2>/dev/null
17351   mkdir conftest
17352   cd conftest
17353   mkdir out
17354   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17355
17356   lt_compiler_flag="-o out/conftest2.$ac_objext"
17357   # Insert the option either (1) after the last *FLAGS variable, or
17358   # (2) before a word containing "conftest.", or (3) at the end.
17359   # Note that $ac_compile itself does not contain backslashes and begins
17360   # with a dollar sign (not a hyphen), so the echo should work correctly.
17361   lt_compile=`echo "$ac_compile" | $SED \
17362   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17363   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17364   -e 's:$: $lt_compiler_flag:'`
17365   (eval echo "\"\$as_me:17365: $lt_compile\"" >&5)
17366   (eval "$lt_compile" 2>out/conftest.err)
17367   ac_status=$?
17368   cat out/conftest.err >&5
17369   echo "$as_me:17369: \$? = $ac_status" >&5
17370   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17371   then
17372     # The compiler can only warn and ignore the option if not recognized
17373     # So say no if there are warnings
17374     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17375     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17376     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17377       lt_cv_prog_compiler_c_o_GCJ=yes
17378     fi
17379   fi
17380   chmod u+w . 2>&5
17381   $rm conftest*
17382   # SGI C++ compiler will create directory out/ii_files/ for
17383   # template instantiation
17384   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17385   $rm out/* && rmdir out
17386   cd ..
17387   rmdir conftest
17388   $rm conftest*
17389
17390fi
17391{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17392$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17393
17394
17395hard_links="nottested"
17396if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17397  # do not overwrite the value of need_locks provided by the user
17398  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17399$as_echo_n "checking if we can lock with hard links... " >&6; }
17400  hard_links=yes
17401  $rm conftest*
17402  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17403  touch conftest.a
17404  ln conftest.a conftest.b 2>&5 || hard_links=no
17405  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17406  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17407$as_echo "$hard_links" >&6; }
17408  if test "$hard_links" = no; then
17409    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17410$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17411    need_locks=warn
17412  fi
17413else
17414  need_locks=no
17415fi
17416
17417{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17418$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17419
17420  runpath_var=
17421  allow_undefined_flag_GCJ=
17422  enable_shared_with_static_runtimes_GCJ=no
17423  archive_cmds_GCJ=
17424  archive_expsym_cmds_GCJ=
17425  old_archive_From_new_cmds_GCJ=
17426  old_archive_from_expsyms_cmds_GCJ=
17427  export_dynamic_flag_spec_GCJ=
17428  whole_archive_flag_spec_GCJ=
17429  thread_safe_flag_spec_GCJ=
17430  hardcode_libdir_flag_spec_GCJ=
17431  hardcode_libdir_flag_spec_ld_GCJ=
17432  hardcode_libdir_separator_GCJ=
17433  hardcode_direct_GCJ=no
17434  hardcode_minus_L_GCJ=no
17435  hardcode_shlibpath_var_GCJ=unsupported
17436  link_all_deplibs_GCJ=unknown
17437  hardcode_automatic_GCJ=no
17438  module_cmds_GCJ=
17439  module_expsym_cmds_GCJ=
17440  always_export_symbols_GCJ=no
17441  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17442  # include_expsyms should be a list of space-separated symbols to be *always*
17443  # included in the symbol list
17444  include_expsyms_GCJ=
17445  # exclude_expsyms can be an extended regexp of symbols to exclude
17446  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17447  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17448  # as well as any symbol that contains `d'.
17449  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17450  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17451  # platforms (ab)use it in PIC code, but their linkers get confused if
17452  # the symbol is explicitly referenced.  Since portable code cannot
17453  # rely on this symbol name, it's probably fine to never include it in
17454  # preloaded symbol tables.
17455  # Exclude shared library initialization/finalization symbols.
17456  extract_expsyms_cmds=
17457  # Just being paranoid about ensuring that cc_basename is set.
17458  for cc_temp in $compiler""; do
17459  case $cc_temp in
17460    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17461    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17462    \-*) ;;
17463    *) break;;
17464  esac
17465done
17466cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17467
17468  case $host_os in
17469  cygwin* | mingw* | pw32*)
17470    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17471    # When not using gcc, we currently assume that we are using
17472    # Microsoft Visual C++.
17473    if test "$GCC" != yes; then
17474      with_gnu_ld=no
17475    fi
17476    ;;
17477  interix*)
17478    # we just hope/assume this is gcc and not c89 (= MSVC++)
17479    with_gnu_ld=yes
17480    ;;
17481  openbsd*)
17482    with_gnu_ld=no
17483    ;;
17484  esac
17485
17486  ld_shlibs_GCJ=yes
17487  if test "$with_gnu_ld" = yes; then
17488    # If archive_cmds runs LD, not CC, wlarc should be empty
17489    wlarc='${wl}'
17490
17491    # Set some defaults for GNU ld with shared library support. These
17492    # are reset later if shared libraries are not supported. Putting them
17493    # here allows them to be overridden if necessary.
17494    runpath_var=LD_RUN_PATH
17495    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17496    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17497    # ancient GNU ld didn't support --whole-archive et. al.
17498    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17499	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17500      else
17501  	whole_archive_flag_spec_GCJ=
17502    fi
17503    supports_anon_versioning=no
17504    case `$LD -v 2>/dev/null` in
17505      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17506      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17507      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17508      *\ 2.11.*) ;; # other 2.11 versions
17509      *) supports_anon_versioning=yes ;;
17510    esac
17511
17512    # See if GNU ld supports shared libraries.
17513    case $host_os in
17514    aix[3-9]*)
17515      # On AIX/PPC, the GNU linker is very broken
17516      if test "$host_cpu" != ia64; then
17517	ld_shlibs_GCJ=no
17518	cat <<EOF 1>&2
17519
17520*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17521*** to be unable to reliably create shared libraries on AIX.
17522*** Therefore, libtool is disabling shared libraries support.  If you
17523*** really care for shared libraries, you may want to modify your PATH
17524*** so that a non-GNU linker is found, and then restart.
17525
17526EOF
17527      fi
17528      ;;
17529
17530    amigaos*)
17531      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)'
17532      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17533      hardcode_minus_L_GCJ=yes
17534
17535      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17536      # that the semantics of dynamic libraries on AmigaOS, at least up
17537      # to version 4, is to share data among multiple programs linked
17538      # with the same dynamic library.  Since this doesn't match the
17539      # behavior of shared libraries on other platforms, we can't use
17540      # them.
17541      ld_shlibs_GCJ=no
17542      ;;
17543
17544    beos*)
17545      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17546	allow_undefined_flag_GCJ=unsupported
17547	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17548	# support --undefined.  This deserves some investigation.  FIXME
17549	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17550      else
17551	ld_shlibs_GCJ=no
17552      fi
17553      ;;
17554
17555    cygwin* | mingw* | pw32*)
17556      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17557      # as there is no search path for DLLs.
17558      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17559      allow_undefined_flag_GCJ=unsupported
17560      always_export_symbols_GCJ=no
17561      enable_shared_with_static_runtimes_GCJ=yes
17562      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17563
17564      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17565        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17566	# If the export-symbols file already is a .def file (1st line
17567	# is EXPORTS), use it as is; otherwise, prepend...
17568	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17569	  cp $export_symbols $output_objdir/$soname.def;
17570	else
17571	  echo EXPORTS > $output_objdir/$soname.def;
17572	  cat $export_symbols >> $output_objdir/$soname.def;
17573	fi~
17574	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17575      else
17576	ld_shlibs_GCJ=no
17577      fi
17578      ;;
17579
17580    interix[3-9]*)
17581      hardcode_direct_GCJ=no
17582      hardcode_shlibpath_var_GCJ=no
17583      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17584      export_dynamic_flag_spec_GCJ='${wl}-E'
17585      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17586      # Instead, shared libraries are loaded at an image base (0x10000000 by
17587      # default) and relocated if they conflict, which is a slow very memory
17588      # consuming and fragmenting process.  To avoid this, we pick a random,
17589      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17590      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17591      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'
17592      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'
17593      ;;
17594
17595    gnu* | linux* | k*bsd*-gnu)
17596      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17597	tmp_addflag=
17598	case $cc_basename,$host_cpu in
17599	pgcc*)				# Portland Group C compiler
17600	  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'
17601	  tmp_addflag=' $pic_flag'
17602	  ;;
17603	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17604	  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'
17605	  tmp_addflag=' $pic_flag -Mnomain' ;;
17606	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17607	  tmp_addflag=' -i_dynamic' ;;
17608	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17609	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17610	ifc* | ifort*)			# Intel Fortran compiler
17611	  tmp_addflag=' -nofor_main' ;;
17612	esac
17613	case `$CC -V 2>&1 | sed 5q` in
17614	*Sun\ C*)			# Sun C 5.9
17615	  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'
17616	  tmp_sharedflag='-G' ;;
17617	*Sun\ F*)			# Sun Fortran 8.3
17618	  tmp_sharedflag='-G' ;;
17619	*)
17620	  tmp_sharedflag='-shared' ;;
17621	esac
17622	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623
17624	if test $supports_anon_versioning = yes; then
17625	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17626  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17627  $echo "local: *; };" >> $output_objdir/$libname.ver~
17628	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17629	fi
17630      else
17631	ld_shlibs_GCJ=no
17632      fi
17633      ;;
17634
17635    netbsd*)
17636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17637	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17638	wlarc=
17639      else
17640	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17641	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17642      fi
17643      ;;
17644
17645    solaris*)
17646      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17647	ld_shlibs_GCJ=no
17648	cat <<EOF 1>&2
17649
17650*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17651*** create shared libraries on Solaris systems.  Therefore, libtool
17652*** is disabling shared libraries support.  We urge you to upgrade GNU
17653*** binutils to release 2.9.1 or newer.  Another option is to modify
17654*** your PATH or compiler configuration so that the native linker is
17655*** used, and then restart.
17656
17657EOF
17658      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17659	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17660	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17661      else
17662	ld_shlibs_GCJ=no
17663      fi
17664      ;;
17665
17666    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17667      case `$LD -v 2>&1` in
17668        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17669	ld_shlibs_GCJ=no
17670	cat <<_LT_EOF 1>&2
17671
17672*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17673*** reliably create shared libraries on SCO systems.  Therefore, libtool
17674*** is disabling shared libraries support.  We urge you to upgrade GNU
17675*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17676*** your PATH or compiler configuration so that the native linker is
17677*** used, and then restart.
17678
17679_LT_EOF
17680	;;
17681	*)
17682	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17683	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17684	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17685	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17686	  else
17687	    ld_shlibs_GCJ=no
17688	  fi
17689	;;
17690      esac
17691      ;;
17692
17693    sunos4*)
17694      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17695      wlarc=
17696      hardcode_direct_GCJ=yes
17697      hardcode_shlibpath_var_GCJ=no
17698      ;;
17699
17700    *)
17701      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17702	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17703	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17704      else
17705	ld_shlibs_GCJ=no
17706      fi
17707      ;;
17708    esac
17709
17710    if test "$ld_shlibs_GCJ" = no; then
17711      runpath_var=
17712      hardcode_libdir_flag_spec_GCJ=
17713      export_dynamic_flag_spec_GCJ=
17714      whole_archive_flag_spec_GCJ=
17715    fi
17716  else
17717    # PORTME fill in a description of your system's linker (not GNU ld)
17718    case $host_os in
17719    aix3*)
17720      allow_undefined_flag_GCJ=unsupported
17721      always_export_symbols_GCJ=yes
17722      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'
17723      # Note: this linker hardcodes the directories in LIBPATH if there
17724      # are no directories specified by -L.
17725      hardcode_minus_L_GCJ=yes
17726      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17727	# Neither direct hardcoding nor static linking is supported with a
17728	# broken collect2.
17729	hardcode_direct_GCJ=unsupported
17730      fi
17731      ;;
17732
17733    aix[4-9]*)
17734      if test "$host_cpu" = ia64; then
17735	# On IA64, the linker does run time linking by default, so we don't
17736	# have to do anything special.
17737	aix_use_runtimelinking=no
17738	exp_sym_flag='-Bexport'
17739	no_entry_flag=""
17740      else
17741	# If we're using GNU nm, then we don't want the "-C" option.
17742	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17743	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17744	  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'
17745	else
17746	  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'
17747	fi
17748	aix_use_runtimelinking=no
17749
17750	# Test if we are trying to use run time linking or normal
17751	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17752	# need to do runtime linking.
17753	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17754	  for ld_flag in $LDFLAGS; do
17755  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17756  	    aix_use_runtimelinking=yes
17757  	    break
17758  	  fi
17759	  done
17760	  ;;
17761	esac
17762
17763	exp_sym_flag='-bexport'
17764	no_entry_flag='-bnoentry'
17765      fi
17766
17767      # When large executables or shared objects are built, AIX ld can
17768      # have problems creating the table of contents.  If linking a library
17769      # or program results in "error TOC overflow" add -mminimal-toc to
17770      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17771      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17772
17773      archive_cmds_GCJ=''
17774      hardcode_direct_GCJ=yes
17775      hardcode_libdir_separator_GCJ=':'
17776      link_all_deplibs_GCJ=yes
17777
17778      if test "$GCC" = yes; then
17779	case $host_os in aix4.[012]|aix4.[012].*)
17780	# We only want to do this on AIX 4.2 and lower, the check
17781	# below for broken collect2 doesn't work under 4.3+
17782	  collect2name=`${CC} -print-prog-name=collect2`
17783	  if test -f "$collect2name" && \
17784  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17785	  then
17786  	  # We have reworked collect2
17787  	  :
17788	  else
17789  	  # We have old collect2
17790  	  hardcode_direct_GCJ=unsupported
17791  	  # It fails to find uninstalled libraries when the uninstalled
17792  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17793  	  # to unsupported forces relinking
17794  	  hardcode_minus_L_GCJ=yes
17795  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17796  	  hardcode_libdir_separator_GCJ=
17797	  fi
17798	  ;;
17799	esac
17800	shared_flag='-shared'
17801	if test "$aix_use_runtimelinking" = yes; then
17802	  shared_flag="$shared_flag "'${wl}-G'
17803	fi
17804      else
17805	# not using gcc
17806	if test "$host_cpu" = ia64; then
17807  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17808  	# chokes on -Wl,-G. The following line is correct:
17809	  shared_flag='-G'
17810	else
17811	  if test "$aix_use_runtimelinking" = yes; then
17812	    shared_flag='${wl}-G'
17813	  else
17814	    shared_flag='${wl}-bM:SRE'
17815	  fi
17816	fi
17817      fi
17818
17819      # It seems that -bexpall does not export symbols beginning with
17820      # underscore (_), so it is better to generate a list of symbols to export.
17821      always_export_symbols_GCJ=yes
17822      if test "$aix_use_runtimelinking" = yes; then
17823	# Warning - without using the other runtime loading flags (-brtl),
17824	# -berok will link without error, but may produce a broken library.
17825	allow_undefined_flag_GCJ='-berok'
17826       # Determine the default libpath from the value encoded in an empty executable.
17827       cat >conftest.$ac_ext <<_ACEOF
17828/* confdefs.h.  */
17829_ACEOF
17830cat confdefs.h >>conftest.$ac_ext
17831cat >>conftest.$ac_ext <<_ACEOF
17832/* end confdefs.h.  */
17833
17834int
17835main ()
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext conftest$ac_exeext
17843if { (ac_try="$ac_link"
17844case "(($ac_try" in
17845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846  *) ac_try_echo=$ac_try;;
17847esac
17848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17849$as_echo "$ac_try_echo") >&5
17850  (eval "$ac_link") 2>conftest.er1
17851  ac_status=$?
17852  grep -v '^ *+' conftest.er1 >conftest.err
17853  rm -f conftest.er1
17854  cat conftest.err >&5
17855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856  (exit $ac_status); } && {
17857	 test -z "$ac_c_werror_flag" ||
17858	 test ! -s conftest.err
17859       } && test -s conftest$ac_exeext && {
17860	 test "$cross_compiling" = yes ||
17861	 $as_test_x conftest$ac_exeext
17862       }; then
17863
17864lt_aix_libpath_sed='
17865    /Import File Strings/,/^$/ {
17866	/^0/ {
17867	    s/^0  *\(.*\)$/\1/
17868	    p
17869	}
17870    }'
17871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17872# Check for a 64-bit object if we didn't find anything.
17873if test -z "$aix_libpath"; then
17874  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875fi
17876else
17877  $as_echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880
17881fi
17882
17883rm -rf conftest.dSYM
17884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885      conftest$ac_exeext conftest.$ac_ext
17886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17887
17888       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17889	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"
17890       else
17891	if test "$host_cpu" = ia64; then
17892	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17893	  allow_undefined_flag_GCJ="-z nodefs"
17894	  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"
17895	else
17896	 # Determine the default libpath from the value encoded in an empty executable.
17897	 cat >conftest.$ac_ext <<_ACEOF
17898/* confdefs.h.  */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h.  */
17903
17904int
17905main ()
17906{
17907
17908  ;
17909  return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext conftest$ac_exeext
17913if { (ac_try="$ac_link"
17914case "(($ac_try" in
17915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916  *) ac_try_echo=$ac_try;;
17917esac
17918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17919$as_echo "$ac_try_echo") >&5
17920  (eval "$ac_link") 2>conftest.er1
17921  ac_status=$?
17922  grep -v '^ *+' conftest.er1 >conftest.err
17923  rm -f conftest.er1
17924  cat conftest.err >&5
17925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926  (exit $ac_status); } && {
17927	 test -z "$ac_c_werror_flag" ||
17928	 test ! -s conftest.err
17929       } && test -s conftest$ac_exeext && {
17930	 test "$cross_compiling" = yes ||
17931	 $as_test_x conftest$ac_exeext
17932       }; then
17933
17934lt_aix_libpath_sed='
17935    /Import File Strings/,/^$/ {
17936	/^0/ {
17937	    s/^0  *\(.*\)$/\1/
17938	    p
17939	}
17940    }'
17941aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17942# Check for a 64-bit object if we didn't find anything.
17943if test -z "$aix_libpath"; then
17944  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945fi
17946else
17947  $as_echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950
17951fi
17952
17953rm -rf conftest.dSYM
17954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17955      conftest$ac_exeext conftest.$ac_ext
17956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17957
17958	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17959	  # Warning - without using the other run time loading flags,
17960	  # -berok will link without error, but may produce a broken library.
17961	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17962	  allow_undefined_flag_GCJ=' ${wl}-berok'
17963	  # Exported symbols can be pulled into shared objects from archives
17964	  whole_archive_flag_spec_GCJ='$convenience'
17965	  archive_cmds_need_lc_GCJ=yes
17966	  # This is similar to how AIX traditionally builds its shared libraries.
17967	  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'
17968	fi
17969      fi
17970      ;;
17971
17972    amigaos*)
17973      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)'
17974      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975      hardcode_minus_L_GCJ=yes
17976      # see comment about different semantics on the GNU ld section
17977      ld_shlibs_GCJ=no
17978      ;;
17979
17980    bsdi[45]*)
17981      export_dynamic_flag_spec_GCJ=-rdynamic
17982      ;;
17983
17984    cygwin* | mingw* | pw32*)
17985      # When not using gcc, we currently assume that we are using
17986      # Microsoft Visual C++.
17987      # hardcode_libdir_flag_spec is actually meaningless, as there is
17988      # no search path for DLLs.
17989      hardcode_libdir_flag_spec_GCJ=' '
17990      allow_undefined_flag_GCJ=unsupported
17991      # Tell ltmain to make .lib files, not .a files.
17992      libext=lib
17993      # Tell ltmain to make .dll files, not .so files.
17994      shrext_cmds=".dll"
17995      # FIXME: Setting linknames here is a bad hack.
17996      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17997      # The linker will automatically build a .lib file if we build a DLL.
17998      old_archive_From_new_cmds_GCJ='true'
17999      # FIXME: Should let the user specify the lib program.
18000      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18001      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18002      enable_shared_with_static_runtimes_GCJ=yes
18003      ;;
18004
18005    darwin* | rhapsody*)
18006      case $host_os in
18007        rhapsody* | darwin1.[012])
18008         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18009         ;;
18010       *) # Darwin 1.3 on
18011         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18012           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18013         else
18014           case ${MACOSX_DEPLOYMENT_TARGET} in
18015             10.[012])
18016               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18017               ;;
18018             10.*)
18019               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18020               ;;
18021           esac
18022         fi
18023         ;;
18024      esac
18025      archive_cmds_need_lc_GCJ=no
18026      hardcode_direct_GCJ=no
18027      hardcode_automatic_GCJ=yes
18028      hardcode_shlibpath_var_GCJ=unsupported
18029      whole_archive_flag_spec_GCJ=''
18030      link_all_deplibs_GCJ=yes
18031    if test "$GCC" = yes ; then
18032    	output_verbose_link_cmd='echo'
18033        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}"
18034        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18035        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}"
18036        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}"
18037    else
18038      case $cc_basename in
18039        xlc*)
18040         output_verbose_link_cmd='echo'
18041         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18042         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18043          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18044         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}'
18045          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}'
18046          ;;
18047       *)
18048         ld_shlibs_GCJ=no
18049          ;;
18050      esac
18051    fi
18052      ;;
18053
18054    dgux*)
18055      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18057      hardcode_shlibpath_var_GCJ=no
18058      ;;
18059
18060    freebsd1*)
18061      ld_shlibs_GCJ=no
18062      ;;
18063
18064    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18065    # support.  Future versions do this automatically, but an explicit c++rt0.o
18066    # does not break anything, and helps significantly (at the cost of a little
18067    # extra space).
18068    freebsd2.2*)
18069      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18070      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18071      hardcode_direct_GCJ=yes
18072      hardcode_shlibpath_var_GCJ=no
18073      ;;
18074
18075    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18076    freebsd2*)
18077      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18078      hardcode_direct_GCJ=yes
18079      hardcode_minus_L_GCJ=yes
18080      hardcode_shlibpath_var_GCJ=no
18081      ;;
18082
18083    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18084    freebsd* | dragonfly*)
18085      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18086      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18087      hardcode_direct_GCJ=yes
18088      hardcode_shlibpath_var_GCJ=no
18089      ;;
18090
18091    hpux9*)
18092      if test "$GCC" = yes; then
18093	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'
18094      else
18095	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'
18096      fi
18097      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18098      hardcode_libdir_separator_GCJ=:
18099      hardcode_direct_GCJ=yes
18100
18101      # hardcode_minus_L: Not really in the search PATH,
18102      # but as the default location of the library.
18103      hardcode_minus_L_GCJ=yes
18104      export_dynamic_flag_spec_GCJ='${wl}-E'
18105      ;;
18106
18107    hpux10*)
18108      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18109	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18110      else
18111	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18112      fi
18113      if test "$with_gnu_ld" = no; then
18114	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18115	hardcode_libdir_separator_GCJ=:
18116
18117	hardcode_direct_GCJ=yes
18118	export_dynamic_flag_spec_GCJ='${wl}-E'
18119
18120	# hardcode_minus_L: Not really in the search PATH,
18121	# but as the default location of the library.
18122	hardcode_minus_L_GCJ=yes
18123      fi
18124      ;;
18125
18126    hpux11*)
18127      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18128	case $host_cpu in
18129	hppa*64*)
18130	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131	  ;;
18132	ia64*)
18133	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18134	  ;;
18135	*)
18136	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18137	  ;;
18138	esac
18139      else
18140	case $host_cpu in
18141	hppa*64*)
18142	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143	  ;;
18144	ia64*)
18145	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18146	  ;;
18147	*)
18148	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18149	  ;;
18150	esac
18151      fi
18152      if test "$with_gnu_ld" = no; then
18153	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18154	hardcode_libdir_separator_GCJ=:
18155
18156	case $host_cpu in
18157	hppa*64*|ia64*)
18158	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18159	  hardcode_direct_GCJ=no
18160	  hardcode_shlibpath_var_GCJ=no
18161	  ;;
18162	*)
18163	  hardcode_direct_GCJ=yes
18164	  export_dynamic_flag_spec_GCJ='${wl}-E'
18165
18166	  # hardcode_minus_L: Not really in the search PATH,
18167	  # but as the default location of the library.
18168	  hardcode_minus_L_GCJ=yes
18169	  ;;
18170	esac
18171      fi
18172      ;;
18173
18174    irix5* | irix6* | nonstopux*)
18175      if test "$GCC" = yes; then
18176	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'
18177      else
18178	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'
18179	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18180      fi
18181      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18182      hardcode_libdir_separator_GCJ=:
18183      link_all_deplibs_GCJ=yes
18184      ;;
18185
18186    netbsd*)
18187      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18188	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18189      else
18190	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18191      fi
18192      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18193      hardcode_direct_GCJ=yes
18194      hardcode_shlibpath_var_GCJ=no
18195      ;;
18196
18197    newsos6)
18198      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199      hardcode_direct_GCJ=yes
18200      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18201      hardcode_libdir_separator_GCJ=:
18202      hardcode_shlibpath_var_GCJ=no
18203      ;;
18204
18205    openbsd*)
18206      if test -f /usr/libexec/ld.so; then
18207	hardcode_direct_GCJ=yes
18208	hardcode_shlibpath_var_GCJ=no
18209	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18210	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18211	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18212	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18213	  export_dynamic_flag_spec_GCJ='${wl}-E'
18214	else
18215	  case $host_os in
18216	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18217	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18218	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18219	     ;;
18220	   *)
18221	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18222	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18223	     ;;
18224	  esac
18225        fi
18226      else
18227	ld_shlibs_GCJ=no
18228      fi
18229      ;;
18230
18231    os2*)
18232      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18233      hardcode_minus_L_GCJ=yes
18234      allow_undefined_flag_GCJ=unsupported
18235      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'
18236      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18237      ;;
18238
18239    osf3*)
18240      if test "$GCC" = yes; then
18241	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18242	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'
18243      else
18244	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18245	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'
18246      fi
18247      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18248      hardcode_libdir_separator_GCJ=:
18249      ;;
18250
18251    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18252      if test "$GCC" = yes; then
18253	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18254	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'
18255	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18256      else
18257	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18258	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'
18259	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~
18260	$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'
18261
18262	# Both c and cxx compiler support -rpath directly
18263	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18264      fi
18265      hardcode_libdir_separator_GCJ=:
18266      ;;
18267
18268    solaris*)
18269      no_undefined_flag_GCJ=' -z text'
18270      if test "$GCC" = yes; then
18271	wlarc='${wl}'
18272	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18273	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18274	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18275      else
18276	wlarc=''
18277	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18278	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18279  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18280      fi
18281      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18282      hardcode_shlibpath_var_GCJ=no
18283      case $host_os in
18284      solaris2.[0-5] | solaris2.[0-5].*) ;;
18285      *)
18286	# The compiler driver will combine and reorder linker options,
18287	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18288	# but is careful enough not to reorder.
18289 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18290	if test "$GCC" = yes; then
18291	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18292	else
18293	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18294	fi
18295	;;
18296      esac
18297      link_all_deplibs_GCJ=yes
18298      ;;
18299
18300    sunos4*)
18301      if test "x$host_vendor" = xsequent; then
18302	# Use $CC to link under sequent, because it throws in some extra .o
18303	# files that make .init and .fini sections work.
18304	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18305      else
18306	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18307      fi
18308      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18309      hardcode_direct_GCJ=yes
18310      hardcode_minus_L_GCJ=yes
18311      hardcode_shlibpath_var_GCJ=no
18312      ;;
18313
18314    sysv4)
18315      case $host_vendor in
18316	sni)
18317	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18318	  hardcode_direct_GCJ=yes # is this really true???
18319	;;
18320	siemens)
18321	  ## LD is ld it makes a PLAMLIB
18322	  ## CC just makes a GrossModule.
18323	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18324	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18325	  hardcode_direct_GCJ=no
18326        ;;
18327	motorola)
18328	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18329	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18330	;;
18331      esac
18332      runpath_var='LD_RUN_PATH'
18333      hardcode_shlibpath_var_GCJ=no
18334      ;;
18335
18336    sysv4.3*)
18337      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18338      hardcode_shlibpath_var_GCJ=no
18339      export_dynamic_flag_spec_GCJ='-Bexport'
18340      ;;
18341
18342    sysv4*MP*)
18343      if test -d /usr/nec; then
18344	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345	hardcode_shlibpath_var_GCJ=no
18346	runpath_var=LD_RUN_PATH
18347	hardcode_runpath_var=yes
18348	ld_shlibs_GCJ=yes
18349      fi
18350      ;;
18351
18352    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18353      no_undefined_flag_GCJ='${wl}-z,text'
18354      archive_cmds_need_lc_GCJ=no
18355      hardcode_shlibpath_var_GCJ=no
18356      runpath_var='LD_RUN_PATH'
18357
18358      if test "$GCC" = yes; then
18359	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361      else
18362	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364      fi
18365      ;;
18366
18367    sysv5* | sco3.2v5* | sco5v6*)
18368      # Note: We can NOT use -z defs as we might desire, because we do not
18369      # link with -lc, and that would cause any symbols used from libc to
18370      # always be unresolved, which means just about no library would
18371      # ever link correctly.  If we're not using GNU ld we use -z text
18372      # though, which does catch some bad symbols but isn't as heavy-handed
18373      # as -z defs.
18374      no_undefined_flag_GCJ='${wl}-z,text'
18375      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18376      archive_cmds_need_lc_GCJ=no
18377      hardcode_shlibpath_var_GCJ=no
18378      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18379      hardcode_libdir_separator_GCJ=':'
18380      link_all_deplibs_GCJ=yes
18381      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18382      runpath_var='LD_RUN_PATH'
18383
18384      if test "$GCC" = yes; then
18385	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387      else
18388	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390      fi
18391      ;;
18392
18393    uts4*)
18394      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18395      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18396      hardcode_shlibpath_var_GCJ=no
18397      ;;
18398
18399    *)
18400      ld_shlibs_GCJ=no
18401      ;;
18402    esac
18403  fi
18404
18405{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18406$as_echo "$ld_shlibs_GCJ" >&6; }
18407test "$ld_shlibs_GCJ" = no && can_build_shared=no
18408
18409#
18410# Do we need to explicitly link libc?
18411#
18412case "x$archive_cmds_need_lc_GCJ" in
18413x|xyes)
18414  # Assume -lc should be added
18415  archive_cmds_need_lc_GCJ=yes
18416
18417  if test "$enable_shared" = yes && test "$GCC" = yes; then
18418    case $archive_cmds_GCJ in
18419    *'~'*)
18420      # FIXME: we may have to deal with multi-command sequences.
18421      ;;
18422    '$CC '*)
18423      # Test whether the compiler implicitly links with -lc since on some
18424      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18425      # to ld, don't add -lc before -lgcc.
18426      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18427$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18428      $rm conftest*
18429      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18430
18431      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18432  (eval $ac_compile) 2>&5
18433  ac_status=$?
18434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435  (exit $ac_status); } 2>conftest.err; then
18436        soname=conftest
18437        lib=conftest
18438        libobjs=conftest.$ac_objext
18439        deplibs=
18440        wl=$lt_prog_compiler_wl_GCJ
18441	pic_flag=$lt_prog_compiler_pic_GCJ
18442        compiler_flags=-v
18443        linker_flags=-v
18444        verstring=
18445        output_objdir=.
18446        libname=conftest
18447        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18448        allow_undefined_flag_GCJ=
18449        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18450  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18451  ac_status=$?
18452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); }
18454        then
18455	  archive_cmds_need_lc_GCJ=no
18456        else
18457	  archive_cmds_need_lc_GCJ=yes
18458        fi
18459        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18460      else
18461        cat conftest.err 1>&5
18462      fi
18463      $rm conftest*
18464      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18465$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18466      ;;
18467    esac
18468  fi
18469  ;;
18470esac
18471
18472{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18473$as_echo_n "checking dynamic linker characteristics... " >&6; }
18474library_names_spec=
18475libname_spec='lib$name'
18476soname_spec=
18477shrext_cmds=".so"
18478postinstall_cmds=
18479postuninstall_cmds=
18480finish_cmds=
18481finish_eval=
18482shlibpath_var=
18483shlibpath_overrides_runpath=unknown
18484version_type=none
18485dynamic_linker="$host_os ld.so"
18486sys_lib_dlsearch_path_spec="/lib /usr/lib"
18487
18488need_lib_prefix=unknown
18489hardcode_into_libs=no
18490
18491# when you set need_version to no, make sure it does not cause -set_version
18492# flags to be left without arguments
18493need_version=unknown
18494
18495case $host_os in
18496aix3*)
18497  version_type=linux
18498  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18499  shlibpath_var=LIBPATH
18500
18501  # AIX 3 has no versioning support, so we append a major version to the name.
18502  soname_spec='${libname}${release}${shared_ext}$major'
18503  ;;
18504
18505aix[4-9]*)
18506  version_type=linux
18507  need_lib_prefix=no
18508  need_version=no
18509  hardcode_into_libs=yes
18510  if test "$host_cpu" = ia64; then
18511    # AIX 5 supports IA64
18512    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18513    shlibpath_var=LD_LIBRARY_PATH
18514  else
18515    # With GCC up to 2.95.x, collect2 would create an import file
18516    # for dependence libraries.  The import file would start with
18517    # the line `#! .'.  This would cause the generated library to
18518    # depend on `.', always an invalid library.  This was fixed in
18519    # development snapshots of GCC prior to 3.0.
18520    case $host_os in
18521      aix4 | aix4.[01] | aix4.[01].*)
18522      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18523	   echo ' yes '
18524	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18525	:
18526      else
18527	can_build_shared=no
18528      fi
18529      ;;
18530    esac
18531    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18532    # soname into executable. Probably we can add versioning support to
18533    # collect2, so additional links can be useful in future.
18534    if test "$aix_use_runtimelinking" = yes; then
18535      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18536      # instead of lib<name>.a to let people know that these are not
18537      # typical AIX shared libraries.
18538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539    else
18540      # We preserve .a as extension for shared libraries through AIX4.2
18541      # and later when we are not doing run time linking.
18542      library_names_spec='${libname}${release}.a $libname.a'
18543      soname_spec='${libname}${release}${shared_ext}$major'
18544    fi
18545    shlibpath_var=LIBPATH
18546  fi
18547  ;;
18548
18549amigaos*)
18550  library_names_spec='$libname.ixlibrary $libname.a'
18551  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18552  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'
18553  ;;
18554
18555beos*)
18556  library_names_spec='${libname}${shared_ext}'
18557  dynamic_linker="$host_os ld.so"
18558  shlibpath_var=LIBRARY_PATH
18559  ;;
18560
18561bsdi[45]*)
18562  version_type=linux
18563  need_version=no
18564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565  soname_spec='${libname}${release}${shared_ext}$major'
18566  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18567  shlibpath_var=LD_LIBRARY_PATH
18568  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18569  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18570  # the default ld.so.conf also contains /usr/contrib/lib and
18571  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18572  # libtool to hard-code these into programs
18573  ;;
18574
18575cygwin* | mingw* | pw32*)
18576  version_type=windows
18577  shrext_cmds=".dll"
18578  need_version=no
18579  need_lib_prefix=no
18580
18581  case $GCC,$host_os in
18582  yes,cygwin* | yes,mingw* | yes,pw32*)
18583    library_names_spec='$libname.dll.a'
18584    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18585    postinstall_cmds='base_file=`basename \${file}`~
18586      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18587      dldir=$destdir/`dirname \$dlpath`~
18588      test -d \$dldir || mkdir -p \$dldir~
18589      $install_prog $dir/$dlname \$dldir/$dlname~
18590      chmod a+x \$dldir/$dlname'
18591    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18592      dlpath=$dir/\$dldll~
18593       $rm \$dlpath'
18594    shlibpath_overrides_runpath=yes
18595
18596    case $host_os in
18597    cygwin*)
18598      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18599      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18600      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18601      ;;
18602    mingw*)
18603      # MinGW DLLs use traditional 'lib' prefix
18604      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18605      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18606      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18607        # It is most probably a Windows format PATH printed by
18608        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18609        # path with ; separators, and with drive letters. We can handle the
18610        # drive letters (cygwin fileutils understands them), so leave them,
18611        # especially as we might pass files found there to a mingw objdump,
18612        # which wouldn't understand a cygwinified path. Ahh.
18613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18614      else
18615        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18616      fi
18617      ;;
18618    pw32*)
18619      # pw32 DLLs use 'pw' prefix rather than 'lib'
18620      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621      ;;
18622    esac
18623    ;;
18624
18625  *)
18626    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18627    ;;
18628  esac
18629  dynamic_linker='Win32 ld.exe'
18630  # FIXME: first we should search . and the directory the executable is in
18631  shlibpath_var=PATH
18632  ;;
18633
18634darwin* | rhapsody*)
18635  dynamic_linker="$host_os dyld"
18636  version_type=darwin
18637  need_lib_prefix=no
18638  need_version=no
18639  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18640  soname_spec='${libname}${release}${major}$shared_ext'
18641  shlibpath_overrides_runpath=yes
18642  shlibpath_var=DYLD_LIBRARY_PATH
18643  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18644
18645  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18646  ;;
18647
18648dgux*)
18649  version_type=linux
18650  need_lib_prefix=no
18651  need_version=no
18652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18653  soname_spec='${libname}${release}${shared_ext}$major'
18654  shlibpath_var=LD_LIBRARY_PATH
18655  ;;
18656
18657freebsd1*)
18658  dynamic_linker=no
18659  ;;
18660
18661freebsd* | dragonfly*)
18662  # DragonFly does not have aout.  When/if they implement a new
18663  # versioning mechanism, adjust this.
18664  if test -x /usr/bin/objformat; then
18665    objformat=`/usr/bin/objformat`
18666  else
18667    case $host_os in
18668    freebsd[123]*) objformat=aout ;;
18669    *) objformat=elf ;;
18670    esac
18671  fi
18672  version_type=freebsd-$objformat
18673  case $version_type in
18674    freebsd-elf*)
18675      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18676      need_version=no
18677      need_lib_prefix=no
18678      ;;
18679    freebsd-*)
18680      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18681      need_version=yes
18682      ;;
18683  esac
18684  shlibpath_var=LD_LIBRARY_PATH
18685  case $host_os in
18686  freebsd2*)
18687    shlibpath_overrides_runpath=yes
18688    ;;
18689  freebsd3.[01]* | freebsdelf3.[01]*)
18690    shlibpath_overrides_runpath=yes
18691    hardcode_into_libs=yes
18692    ;;
18693  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18694  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18695    shlibpath_overrides_runpath=no
18696    hardcode_into_libs=yes
18697    ;;
18698  *) # from 4.6 on, and DragonFly
18699    shlibpath_overrides_runpath=yes
18700    hardcode_into_libs=yes
18701    ;;
18702  esac
18703  ;;
18704
18705gnu*)
18706  version_type=linux
18707  need_lib_prefix=no
18708  need_version=no
18709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18710  soname_spec='${libname}${release}${shared_ext}$major'
18711  shlibpath_var=LD_LIBRARY_PATH
18712  hardcode_into_libs=yes
18713  ;;
18714
18715hpux9* | hpux10* | hpux11*)
18716  # Give a soname corresponding to the major version so that dld.sl refuses to
18717  # link against other versions.
18718  version_type=sunos
18719  need_lib_prefix=no
18720  need_version=no
18721  case $host_cpu in
18722  ia64*)
18723    shrext_cmds='.so'
18724    hardcode_into_libs=yes
18725    dynamic_linker="$host_os dld.so"
18726    shlibpath_var=LD_LIBRARY_PATH
18727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729    soname_spec='${libname}${release}${shared_ext}$major'
18730    if test "X$HPUX_IA64_MODE" = X32; then
18731      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18732    else
18733      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18734    fi
18735    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18736    ;;
18737   hppa*64*)
18738     shrext_cmds='.sl'
18739     hardcode_into_libs=yes
18740     dynamic_linker="$host_os dld.sl"
18741     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18742     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744     soname_spec='${libname}${release}${shared_ext}$major'
18745     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18746     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18747     ;;
18748   *)
18749    shrext_cmds='.sl'
18750    dynamic_linker="$host_os dld.sl"
18751    shlibpath_var=SHLIB_PATH
18752    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754    soname_spec='${libname}${release}${shared_ext}$major'
18755    ;;
18756  esac
18757  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18758  postinstall_cmds='chmod 555 $lib'
18759  ;;
18760
18761interix[3-9]*)
18762  version_type=linux
18763  need_lib_prefix=no
18764  need_version=no
18765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18766  soname_spec='${libname}${release}${shared_ext}$major'
18767  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18768  shlibpath_var=LD_LIBRARY_PATH
18769  shlibpath_overrides_runpath=no
18770  hardcode_into_libs=yes
18771  ;;
18772
18773irix5* | irix6* | nonstopux*)
18774  case $host_os in
18775    nonstopux*) version_type=nonstopux ;;
18776    *)
18777	if test "$lt_cv_prog_gnu_ld" = yes; then
18778		version_type=linux
18779	else
18780		version_type=irix
18781	fi ;;
18782  esac
18783  need_lib_prefix=no
18784  need_version=no
18785  soname_spec='${libname}${release}${shared_ext}$major'
18786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18787  case $host_os in
18788  irix5* | nonstopux*)
18789    libsuff= shlibsuff=
18790    ;;
18791  *)
18792    case $LD in # libtool.m4 will add one of these switches to LD
18793    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18794      libsuff= shlibsuff= libmagic=32-bit;;
18795    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18796      libsuff=32 shlibsuff=N32 libmagic=N32;;
18797    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18798      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18799    *) libsuff= shlibsuff= libmagic=never-match;;
18800    esac
18801    ;;
18802  esac
18803  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18804  shlibpath_overrides_runpath=no
18805  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18806  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18807  hardcode_into_libs=yes
18808  ;;
18809
18810# No shared lib support for Linux oldld, aout, or coff.
18811linux*oldld* | linux*aout* | linux*coff*)
18812  dynamic_linker=no
18813  ;;
18814
18815# This must be Linux ELF.
18816linux* | k*bsd*-gnu)
18817  version_type=linux
18818  need_lib_prefix=no
18819  need_version=no
18820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18821  soname_spec='${libname}${release}${shared_ext}$major'
18822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18823  shlibpath_var=LD_LIBRARY_PATH
18824  shlibpath_overrides_runpath=no
18825  # This implies no fast_install, which is unacceptable.
18826  # Some rework will be needed to allow for fast_install
18827  # before this can be enabled.
18828  hardcode_into_libs=yes
18829  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18830  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18831
18832  # Append ld.so.conf contents to the search path
18833  if test -f /etc/ld.so.conf; then
18834    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' ' '`
18835    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18836  fi
18837
18838  # We used to test for /lib/ld.so.1 and disable shared libraries on
18839  # powerpc, because MkLinux only supported shared libraries with the
18840  # GNU dynamic linker.  Since this was broken with cross compilers,
18841  # most powerpc-linux boxes support dynamic linking these days and
18842  # people can always --disable-shared, the test was removed, and we
18843  # assume the GNU/Linux dynamic linker is in use.
18844  dynamic_linker='GNU/Linux ld.so'
18845  ;;
18846
18847netbsd*)
18848  version_type=sunos
18849  need_lib_prefix=no
18850  need_version=no
18851  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18853    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18854    dynamic_linker='NetBSD (a.out) ld.so'
18855  else
18856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18857    soname_spec='${libname}${release}${shared_ext}$major'
18858    dynamic_linker='NetBSD ld.elf_so'
18859  fi
18860  shlibpath_var=LD_LIBRARY_PATH
18861  shlibpath_overrides_runpath=yes
18862  hardcode_into_libs=yes
18863  ;;
18864
18865newsos6)
18866  version_type=linux
18867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868  shlibpath_var=LD_LIBRARY_PATH
18869  shlibpath_overrides_runpath=yes
18870  ;;
18871
18872nto-qnx*)
18873  version_type=linux
18874  need_lib_prefix=no
18875  need_version=no
18876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877  soname_spec='${libname}${release}${shared_ext}$major'
18878  shlibpath_var=LD_LIBRARY_PATH
18879  shlibpath_overrides_runpath=yes
18880  ;;
18881
18882openbsd*)
18883  version_type=sunos
18884  sys_lib_dlsearch_path_spec="/usr/lib"
18885  need_lib_prefix=no
18886  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18887  case $host_os in
18888    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18889    *)                         need_version=no  ;;
18890  esac
18891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18892  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18893  shlibpath_var=LD_LIBRARY_PATH
18894  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18895    case $host_os in
18896      openbsd2.[89] | openbsd2.[89].*)
18897	shlibpath_overrides_runpath=no
18898	;;
18899      *)
18900	shlibpath_overrides_runpath=yes
18901	;;
18902      esac
18903  else
18904    shlibpath_overrides_runpath=yes
18905  fi
18906  ;;
18907
18908os2*)
18909  libname_spec='$name'
18910  shrext_cmds=".dll"
18911  need_lib_prefix=no
18912  library_names_spec='$libname${shared_ext} $libname.a'
18913  dynamic_linker='OS/2 ld.exe'
18914  shlibpath_var=LIBPATH
18915  ;;
18916
18917osf3* | osf4* | osf5*)
18918  version_type=osf
18919  need_lib_prefix=no
18920  need_version=no
18921  soname_spec='${libname}${release}${shared_ext}$major'
18922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18923  shlibpath_var=LD_LIBRARY_PATH
18924  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18925  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18926  ;;
18927
18928rdos*)
18929  dynamic_linker=no
18930  ;;
18931
18932solaris*)
18933  version_type=linux
18934  need_lib_prefix=no
18935  need_version=no
18936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18937  soname_spec='${libname}${release}${shared_ext}$major'
18938  shlibpath_var=LD_LIBRARY_PATH
18939  shlibpath_overrides_runpath=yes
18940  hardcode_into_libs=yes
18941  # ldd complains unless libraries are executable
18942  postinstall_cmds='chmod +x $lib'
18943  ;;
18944
18945sunos4*)
18946  version_type=sunos
18947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18948  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18949  shlibpath_var=LD_LIBRARY_PATH
18950  shlibpath_overrides_runpath=yes
18951  if test "$with_gnu_ld" = yes; then
18952    need_lib_prefix=no
18953  fi
18954  need_version=yes
18955  ;;
18956
18957sysv4 | sysv4.3*)
18958  version_type=linux
18959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960  soname_spec='${libname}${release}${shared_ext}$major'
18961  shlibpath_var=LD_LIBRARY_PATH
18962  case $host_vendor in
18963    sni)
18964      shlibpath_overrides_runpath=no
18965      need_lib_prefix=no
18966      export_dynamic_flag_spec='${wl}-Blargedynsym'
18967      runpath_var=LD_RUN_PATH
18968      ;;
18969    siemens)
18970      need_lib_prefix=no
18971      ;;
18972    motorola)
18973      need_lib_prefix=no
18974      need_version=no
18975      shlibpath_overrides_runpath=no
18976      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18977      ;;
18978  esac
18979  ;;
18980
18981sysv4*MP*)
18982  if test -d /usr/nec ;then
18983    version_type=linux
18984    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18985    soname_spec='$libname${shared_ext}.$major'
18986    shlibpath_var=LD_LIBRARY_PATH
18987  fi
18988  ;;
18989
18990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18991  version_type=freebsd-elf
18992  need_lib_prefix=no
18993  need_version=no
18994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18995  soname_spec='${libname}${release}${shared_ext}$major'
18996  shlibpath_var=LD_LIBRARY_PATH
18997  hardcode_into_libs=yes
18998  if test "$with_gnu_ld" = yes; then
18999    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19000    shlibpath_overrides_runpath=no
19001  else
19002    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19003    shlibpath_overrides_runpath=yes
19004    case $host_os in
19005      sco3.2v5*)
19006        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19007	;;
19008    esac
19009  fi
19010  sys_lib_dlsearch_path_spec='/usr/lib'
19011  ;;
19012
19013uts4*)
19014  version_type=linux
19015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016  soname_spec='${libname}${release}${shared_ext}$major'
19017  shlibpath_var=LD_LIBRARY_PATH
19018  ;;
19019
19020*)
19021  dynamic_linker=no
19022  ;;
19023esac
19024{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19025$as_echo "$dynamic_linker" >&6; }
19026test "$dynamic_linker" = no && can_build_shared=no
19027
19028if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19029  $as_echo_n "(cached) " >&6
19030else
19031  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19032fi
19033
19034sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19035if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19036  $as_echo_n "(cached) " >&6
19037else
19038  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19039fi
19040
19041sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19042
19043variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19044if test "$GCC" = yes; then
19045  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19046fi
19047
19048{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19049$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19050hardcode_action_GCJ=
19051if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19052   test -n "$runpath_var_GCJ" || \
19053   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19054
19055  # We can hardcode non-existant directories.
19056  if test "$hardcode_direct_GCJ" != no &&
19057     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19058     # have to relink, otherwise we might link with an installed library
19059     # when we should be linking with a yet-to-be-installed one
19060     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19061     test "$hardcode_minus_L_GCJ" != no; then
19062    # Linking always hardcodes the temporary library directory.
19063    hardcode_action_GCJ=relink
19064  else
19065    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19066    hardcode_action_GCJ=immediate
19067  fi
19068else
19069  # We cannot hardcode anything, or else we can only hardcode existing
19070  # directories.
19071  hardcode_action_GCJ=unsupported
19072fi
19073{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19074$as_echo "$hardcode_action_GCJ" >&6; }
19075
19076if test "$hardcode_action_GCJ" = relink; then
19077  # Fast installation is not supported
19078  enable_fast_install=no
19079elif test "$shlibpath_overrides_runpath" = yes ||
19080     test "$enable_shared" = no; then
19081  # Fast installation is not necessary
19082  enable_fast_install=needless
19083fi
19084
19085
19086# The else clause should only fire when bootstrapping the
19087# libtool distribution, otherwise you forgot to ship ltmain.sh
19088# with your package, and you will get complaints that there are
19089# no rules to generate ltmain.sh.
19090if test -f "$ltmain"; then
19091  # See if we are running on zsh, and set the options which allow our commands through
19092  # without removal of \ escapes.
19093  if test -n "${ZSH_VERSION+set}" ; then
19094    setopt NO_GLOB_SUBST
19095  fi
19096  # Now quote all the things that may contain metacharacters while being
19097  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19098  # variables and quote the copies for generation of the libtool script.
19099  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19100    SED SHELL STRIP \
19101    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19102    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19103    deplibs_check_method reload_flag reload_cmds need_locks \
19104    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19105    lt_cv_sys_global_symbol_to_c_name_address \
19106    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19107    old_postinstall_cmds old_postuninstall_cmds \
19108    compiler_GCJ \
19109    CC_GCJ \
19110    LD_GCJ \
19111    lt_prog_compiler_wl_GCJ \
19112    lt_prog_compiler_pic_GCJ \
19113    lt_prog_compiler_static_GCJ \
19114    lt_prog_compiler_no_builtin_flag_GCJ \
19115    export_dynamic_flag_spec_GCJ \
19116    thread_safe_flag_spec_GCJ \
19117    whole_archive_flag_spec_GCJ \
19118    enable_shared_with_static_runtimes_GCJ \
19119    old_archive_cmds_GCJ \
19120    old_archive_from_new_cmds_GCJ \
19121    predep_objects_GCJ \
19122    postdep_objects_GCJ \
19123    predeps_GCJ \
19124    postdeps_GCJ \
19125    compiler_lib_search_path_GCJ \
19126    compiler_lib_search_dirs_GCJ \
19127    archive_cmds_GCJ \
19128    archive_expsym_cmds_GCJ \
19129    postinstall_cmds_GCJ \
19130    postuninstall_cmds_GCJ \
19131    old_archive_from_expsyms_cmds_GCJ \
19132    allow_undefined_flag_GCJ \
19133    no_undefined_flag_GCJ \
19134    export_symbols_cmds_GCJ \
19135    hardcode_libdir_flag_spec_GCJ \
19136    hardcode_libdir_flag_spec_ld_GCJ \
19137    hardcode_libdir_separator_GCJ \
19138    hardcode_automatic_GCJ \
19139    module_cmds_GCJ \
19140    module_expsym_cmds_GCJ \
19141    lt_cv_prog_compiler_c_o_GCJ \
19142    fix_srcfile_path_GCJ \
19143    exclude_expsyms_GCJ \
19144    include_expsyms_GCJ; do
19145
19146    case $var in
19147    old_archive_cmds_GCJ | \
19148    old_archive_from_new_cmds_GCJ | \
19149    archive_cmds_GCJ | \
19150    archive_expsym_cmds_GCJ | \
19151    module_cmds_GCJ | \
19152    module_expsym_cmds_GCJ | \
19153    old_archive_from_expsyms_cmds_GCJ | \
19154    export_symbols_cmds_GCJ | \
19155    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19156    postinstall_cmds | postuninstall_cmds | \
19157    old_postinstall_cmds | old_postuninstall_cmds | \
19158    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19159      # Double-quote double-evaled strings.
19160      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19161      ;;
19162    *)
19163      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19164      ;;
19165    esac
19166  done
19167
19168  case $lt_echo in
19169  *'\$0 --fallback-echo"')
19170    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19171    ;;
19172  esac
19173
19174cfgfile="$ofile"
19175
19176  cat <<__EOF__ >> "$cfgfile"
19177# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19178
19179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19180
19181# Shell to use when invoking shell scripts.
19182SHELL=$lt_SHELL
19183
19184# Whether or not to build shared libraries.
19185build_libtool_libs=$enable_shared
19186
19187# Whether or not to build static libraries.
19188build_old_libs=$enable_static
19189
19190# Whether or not to add -lc for building shared libraries.
19191build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19192
19193# Whether or not to disallow shared libs when runtime libs are static
19194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19195
19196# Whether or not to optimize for fast installation.
19197fast_install=$enable_fast_install
19198
19199# The host system.
19200host_alias=$host_alias
19201host=$host
19202host_os=$host_os
19203
19204# The build system.
19205build_alias=$build_alias
19206build=$build
19207build_os=$build_os
19208
19209# An echo program that does not interpret backslashes.
19210echo=$lt_echo
19211
19212# The archiver.
19213AR=$lt_AR
19214AR_FLAGS=$lt_AR_FLAGS
19215
19216# A C compiler.
19217LTCC=$lt_LTCC
19218
19219# LTCC compiler flags.
19220LTCFLAGS=$lt_LTCFLAGS
19221
19222# A language-specific compiler.
19223CC=$lt_compiler_GCJ
19224
19225# Is the compiler the GNU C compiler?
19226with_gcc=$GCC_GCJ
19227
19228# An ERE matcher.
19229EGREP=$lt_EGREP
19230
19231# The linker used to build libraries.
19232LD=$lt_LD_GCJ
19233
19234# Whether we need hard or soft links.
19235LN_S=$lt_LN_S
19236
19237# A BSD-compatible nm program.
19238NM=$lt_NM
19239
19240# A symbol stripping program
19241STRIP=$lt_STRIP
19242
19243# Used to examine libraries when file_magic_cmd begins "file"
19244MAGIC_CMD=$MAGIC_CMD
19245
19246# Used on cygwin: DLL creation program.
19247DLLTOOL="$DLLTOOL"
19248
19249# Used on cygwin: object dumper.
19250OBJDUMP="$OBJDUMP"
19251
19252# Used on cygwin: assembler.
19253AS="$AS"
19254
19255# The name of the directory that contains temporary libtool files.
19256objdir=$objdir
19257
19258# How to create reloadable object files.
19259reload_flag=$lt_reload_flag
19260reload_cmds=$lt_reload_cmds
19261
19262# How to pass a linker flag through the compiler.
19263wl=$lt_lt_prog_compiler_wl_GCJ
19264
19265# Object file suffix (normally "o").
19266objext="$ac_objext"
19267
19268# Old archive suffix (normally "a").
19269libext="$libext"
19270
19271# Shared library suffix (normally ".so").
19272shrext_cmds='$shrext_cmds'
19273
19274# Executable file suffix (normally "").
19275exeext="$exeext"
19276
19277# Additional compiler flags for building library objects.
19278pic_flag=$lt_lt_prog_compiler_pic_GCJ
19279pic_mode=$pic_mode
19280
19281# What is the maximum length of a command?
19282max_cmd_len=$lt_cv_sys_max_cmd_len
19283
19284# Does compiler simultaneously support -c and -o options?
19285compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19286
19287# Must we lock files when doing compilation?
19288need_locks=$lt_need_locks
19289
19290# Do we need the lib prefix for modules?
19291need_lib_prefix=$need_lib_prefix
19292
19293# Do we need a version for libraries?
19294need_version=$need_version
19295
19296# Whether dlopen is supported.
19297dlopen_support=$enable_dlopen
19298
19299# Whether dlopen of programs is supported.
19300dlopen_self=$enable_dlopen_self
19301
19302# Whether dlopen of statically linked programs is supported.
19303dlopen_self_static=$enable_dlopen_self_static
19304
19305# Compiler flag to prevent dynamic linking.
19306link_static_flag=$lt_lt_prog_compiler_static_GCJ
19307
19308# Compiler flag to turn off builtin functions.
19309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19310
19311# Compiler flag to allow reflexive dlopens.
19312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19313
19314# Compiler flag to generate shared objects directly from archives.
19315whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19316
19317# Compiler flag to generate thread-safe objects.
19318thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19319
19320# Library versioning type.
19321version_type=$version_type
19322
19323# Format of library name prefix.
19324libname_spec=$lt_libname_spec
19325
19326# List of archive names.  First name is the real one, the rest are links.
19327# The last name is the one that the linker finds with -lNAME.
19328library_names_spec=$lt_library_names_spec
19329
19330# The coded name of the library, if different from the real name.
19331soname_spec=$lt_soname_spec
19332
19333# Commands used to build and install an old-style archive.
19334RANLIB=$lt_RANLIB
19335old_archive_cmds=$lt_old_archive_cmds_GCJ
19336old_postinstall_cmds=$lt_old_postinstall_cmds
19337old_postuninstall_cmds=$lt_old_postuninstall_cmds
19338
19339# Create an old-style archive from a shared archive.
19340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19341
19342# Create a temporary old-style archive to link instead of a shared archive.
19343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19344
19345# Commands used to build and install a shared archive.
19346archive_cmds=$lt_archive_cmds_GCJ
19347archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19348postinstall_cmds=$lt_postinstall_cmds
19349postuninstall_cmds=$lt_postuninstall_cmds
19350
19351# Commands used to build a loadable module (assumed same as above if empty)
19352module_cmds=$lt_module_cmds_GCJ
19353module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19354
19355# Commands to strip libraries.
19356old_striplib=$lt_old_striplib
19357striplib=$lt_striplib
19358
19359# Dependencies to place before the objects being linked to create a
19360# shared library.
19361predep_objects=$lt_predep_objects_GCJ
19362
19363# Dependencies to place after the objects being linked to create a
19364# shared library.
19365postdep_objects=$lt_postdep_objects_GCJ
19366
19367# Dependencies to place before the objects being linked to create a
19368# shared library.
19369predeps=$lt_predeps_GCJ
19370
19371# Dependencies to place after the objects being linked to create a
19372# shared library.
19373postdeps=$lt_postdeps_GCJ
19374
19375# The directories searched by this compiler when creating a shared
19376# library
19377compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19378
19379# The library search path used internally by the compiler when linking
19380# a shared library.
19381compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19382
19383# Method to check whether dependent libraries are shared objects.
19384deplibs_check_method=$lt_deplibs_check_method
19385
19386# Command to use when deplibs_check_method == file_magic.
19387file_magic_cmd=$lt_file_magic_cmd
19388
19389# Flag that allows shared libraries with undefined symbols to be built.
19390allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19391
19392# Flag that forces no undefined symbols.
19393no_undefined_flag=$lt_no_undefined_flag_GCJ
19394
19395# Commands used to finish a libtool library installation in a directory.
19396finish_cmds=$lt_finish_cmds
19397
19398# Same as above, but a single script fragment to be evaled but not shown.
19399finish_eval=$lt_finish_eval
19400
19401# Take the output of nm and produce a listing of raw symbols and C names.
19402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19403
19404# Transform the output of nm in a proper C declaration
19405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19406
19407# Transform the output of nm in a C name address pair
19408global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19409
19410# This is the shared library runtime path variable.
19411runpath_var=$runpath_var
19412
19413# This is the shared library path variable.
19414shlibpath_var=$shlibpath_var
19415
19416# Is shlibpath searched before the hard-coded library search path?
19417shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19418
19419# How to hardcode a shared library path into an executable.
19420hardcode_action=$hardcode_action_GCJ
19421
19422# Whether we should hardcode library paths into libraries.
19423hardcode_into_libs=$hardcode_into_libs
19424
19425# Flag to hardcode \$libdir into a binary during linking.
19426# This must work even if \$libdir does not exist.
19427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19428
19429# If ld is used when linking, flag to hardcode \$libdir into
19430# a binary during linking. This must work even if \$libdir does
19431# not exist.
19432hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19433
19434# Whether we need a single -rpath flag with a separated argument.
19435hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19436
19437# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19438# resulting binary.
19439hardcode_direct=$hardcode_direct_GCJ
19440
19441# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19442# resulting binary.
19443hardcode_minus_L=$hardcode_minus_L_GCJ
19444
19445# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19446# the resulting binary.
19447hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19448
19449# Set to yes if building a shared library automatically hardcodes DIR into the library
19450# and all subsequent libraries and executables linked against it.
19451hardcode_automatic=$hardcode_automatic_GCJ
19452
19453# Variables whose values should be saved in libtool wrapper scripts and
19454# restored at relink time.
19455variables_saved_for_relink="$variables_saved_for_relink"
19456
19457# Whether libtool must link a program against all its dependency libraries.
19458link_all_deplibs=$link_all_deplibs_GCJ
19459
19460# Compile-time system search path for libraries
19461sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19462
19463# Run-time system search path for libraries
19464sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19465
19466# Fix the shell variable \$srcfile for the compiler.
19467fix_srcfile_path=$lt_fix_srcfile_path
19468
19469# Set to yes if exported symbols are required.
19470always_export_symbols=$always_export_symbols_GCJ
19471
19472# The commands to list exported symbols.
19473export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19474
19475# The commands to extract the exported symbol list from a shared archive.
19476extract_expsyms_cmds=$lt_extract_expsyms_cmds
19477
19478# Symbols that should not be listed in the preloaded symbols.
19479exclude_expsyms=$lt_exclude_expsyms_GCJ
19480
19481# Symbols that must always be exported.
19482include_expsyms=$lt_include_expsyms_GCJ
19483
19484# ### END LIBTOOL TAG CONFIG: $tagname
19485
19486__EOF__
19487
19488
19489else
19490  # If there is no Makefile yet, we rely on a make rule to execute
19491  # `config.status --recheck' to rerun these tests and create the
19492  # libtool script then.
19493  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19494  if test -f "$ltmain_in"; then
19495    test -f Makefile && make "$ltmain"
19496  fi
19497fi
19498
19499
19500ac_ext=c
19501ac_cpp='$CPP $CPPFLAGS'
19502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19504ac_compiler_gnu=$ac_cv_c_compiler_gnu
19505
19506CC="$lt_save_CC"
19507
19508	else
19509	  tagname=""
19510	fi
19511	;;
19512
19513      RC)
19514
19515
19516# Source file extension for RC test sources.
19517ac_ext=rc
19518
19519# Object file extension for compiled RC test sources.
19520objext=o
19521objext_RC=$objext
19522
19523# Code to be used in simple compile tests
19524lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19525
19526# Code to be used in simple link tests
19527lt_simple_link_test_code="$lt_simple_compile_test_code"
19528
19529# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19530
19531# If no C compiler was specified, use CC.
19532LTCC=${LTCC-"$CC"}
19533
19534# If no C compiler flags were specified, use CFLAGS.
19535LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19536
19537# Allow CC to be a program name with arguments.
19538compiler=$CC
19539
19540
19541# save warnings/boilerplate of simple test code
19542ac_outfile=conftest.$ac_objext
19543echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19545_lt_compiler_boilerplate=`cat conftest.err`
19546$rm conftest*
19547
19548ac_outfile=conftest.$ac_objext
19549echo "$lt_simple_link_test_code" >conftest.$ac_ext
19550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19551_lt_linker_boilerplate=`cat conftest.err`
19552$rm -r conftest*
19553
19554
19555# Allow CC to be a program name with arguments.
19556lt_save_CC="$CC"
19557CC=${RC-"windres"}
19558compiler=$CC
19559compiler_RC=$CC
19560for cc_temp in $compiler""; do
19561  case $cc_temp in
19562    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19563    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19564    \-*) ;;
19565    *) break;;
19566  esac
19567done
19568cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19569
19570lt_cv_prog_compiler_c_o_RC=yes
19571
19572# The else clause should only fire when bootstrapping the
19573# libtool distribution, otherwise you forgot to ship ltmain.sh
19574# with your package, and you will get complaints that there are
19575# no rules to generate ltmain.sh.
19576if test -f "$ltmain"; then
19577  # See if we are running on zsh, and set the options which allow our commands through
19578  # without removal of \ escapes.
19579  if test -n "${ZSH_VERSION+set}" ; then
19580    setopt NO_GLOB_SUBST
19581  fi
19582  # Now quote all the things that may contain metacharacters while being
19583  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19584  # variables and quote the copies for generation of the libtool script.
19585  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19586    SED SHELL STRIP \
19587    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19588    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19589    deplibs_check_method reload_flag reload_cmds need_locks \
19590    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19591    lt_cv_sys_global_symbol_to_c_name_address \
19592    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19593    old_postinstall_cmds old_postuninstall_cmds \
19594    compiler_RC \
19595    CC_RC \
19596    LD_RC \
19597    lt_prog_compiler_wl_RC \
19598    lt_prog_compiler_pic_RC \
19599    lt_prog_compiler_static_RC \
19600    lt_prog_compiler_no_builtin_flag_RC \
19601    export_dynamic_flag_spec_RC \
19602    thread_safe_flag_spec_RC \
19603    whole_archive_flag_spec_RC \
19604    enable_shared_with_static_runtimes_RC \
19605    old_archive_cmds_RC \
19606    old_archive_from_new_cmds_RC \
19607    predep_objects_RC \
19608    postdep_objects_RC \
19609    predeps_RC \
19610    postdeps_RC \
19611    compiler_lib_search_path_RC \
19612    compiler_lib_search_dirs_RC \
19613    archive_cmds_RC \
19614    archive_expsym_cmds_RC \
19615    postinstall_cmds_RC \
19616    postuninstall_cmds_RC \
19617    old_archive_from_expsyms_cmds_RC \
19618    allow_undefined_flag_RC \
19619    no_undefined_flag_RC \
19620    export_symbols_cmds_RC \
19621    hardcode_libdir_flag_spec_RC \
19622    hardcode_libdir_flag_spec_ld_RC \
19623    hardcode_libdir_separator_RC \
19624    hardcode_automatic_RC \
19625    module_cmds_RC \
19626    module_expsym_cmds_RC \
19627    lt_cv_prog_compiler_c_o_RC \
19628    fix_srcfile_path_RC \
19629    exclude_expsyms_RC \
19630    include_expsyms_RC; do
19631
19632    case $var in
19633    old_archive_cmds_RC | \
19634    old_archive_from_new_cmds_RC | \
19635    archive_cmds_RC | \
19636    archive_expsym_cmds_RC | \
19637    module_cmds_RC | \
19638    module_expsym_cmds_RC | \
19639    old_archive_from_expsyms_cmds_RC | \
19640    export_symbols_cmds_RC | \
19641    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19642    postinstall_cmds | postuninstall_cmds | \
19643    old_postinstall_cmds | old_postuninstall_cmds | \
19644    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19645      # Double-quote double-evaled strings.
19646      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19647      ;;
19648    *)
19649      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19650      ;;
19651    esac
19652  done
19653
19654  case $lt_echo in
19655  *'\$0 --fallback-echo"')
19656    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19657    ;;
19658  esac
19659
19660cfgfile="$ofile"
19661
19662  cat <<__EOF__ >> "$cfgfile"
19663# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19664
19665# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19666
19667# Shell to use when invoking shell scripts.
19668SHELL=$lt_SHELL
19669
19670# Whether or not to build shared libraries.
19671build_libtool_libs=$enable_shared
19672
19673# Whether or not to build static libraries.
19674build_old_libs=$enable_static
19675
19676# Whether or not to add -lc for building shared libraries.
19677build_libtool_need_lc=$archive_cmds_need_lc_RC
19678
19679# Whether or not to disallow shared libs when runtime libs are static
19680allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19681
19682# Whether or not to optimize for fast installation.
19683fast_install=$enable_fast_install
19684
19685# The host system.
19686host_alias=$host_alias
19687host=$host
19688host_os=$host_os
19689
19690# The build system.
19691build_alias=$build_alias
19692build=$build
19693build_os=$build_os
19694
19695# An echo program that does not interpret backslashes.
19696echo=$lt_echo
19697
19698# The archiver.
19699AR=$lt_AR
19700AR_FLAGS=$lt_AR_FLAGS
19701
19702# A C compiler.
19703LTCC=$lt_LTCC
19704
19705# LTCC compiler flags.
19706LTCFLAGS=$lt_LTCFLAGS
19707
19708# A language-specific compiler.
19709CC=$lt_compiler_RC
19710
19711# Is the compiler the GNU C compiler?
19712with_gcc=$GCC_RC
19713
19714# An ERE matcher.
19715EGREP=$lt_EGREP
19716
19717# The linker used to build libraries.
19718LD=$lt_LD_RC
19719
19720# Whether we need hard or soft links.
19721LN_S=$lt_LN_S
19722
19723# A BSD-compatible nm program.
19724NM=$lt_NM
19725
19726# A symbol stripping program
19727STRIP=$lt_STRIP
19728
19729# Used to examine libraries when file_magic_cmd begins "file"
19730MAGIC_CMD=$MAGIC_CMD
19731
19732# Used on cygwin: DLL creation program.
19733DLLTOOL="$DLLTOOL"
19734
19735# Used on cygwin: object dumper.
19736OBJDUMP="$OBJDUMP"
19737
19738# Used on cygwin: assembler.
19739AS="$AS"
19740
19741# The name of the directory that contains temporary libtool files.
19742objdir=$objdir
19743
19744# How to create reloadable object files.
19745reload_flag=$lt_reload_flag
19746reload_cmds=$lt_reload_cmds
19747
19748# How to pass a linker flag through the compiler.
19749wl=$lt_lt_prog_compiler_wl_RC
19750
19751# Object file suffix (normally "o").
19752objext="$ac_objext"
19753
19754# Old archive suffix (normally "a").
19755libext="$libext"
19756
19757# Shared library suffix (normally ".so").
19758shrext_cmds='$shrext_cmds'
19759
19760# Executable file suffix (normally "").
19761exeext="$exeext"
19762
19763# Additional compiler flags for building library objects.
19764pic_flag=$lt_lt_prog_compiler_pic_RC
19765pic_mode=$pic_mode
19766
19767# What is the maximum length of a command?
19768max_cmd_len=$lt_cv_sys_max_cmd_len
19769
19770# Does compiler simultaneously support -c and -o options?
19771compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19772
19773# Must we lock files when doing compilation?
19774need_locks=$lt_need_locks
19775
19776# Do we need the lib prefix for modules?
19777need_lib_prefix=$need_lib_prefix
19778
19779# Do we need a version for libraries?
19780need_version=$need_version
19781
19782# Whether dlopen is supported.
19783dlopen_support=$enable_dlopen
19784
19785# Whether dlopen of programs is supported.
19786dlopen_self=$enable_dlopen_self
19787
19788# Whether dlopen of statically linked programs is supported.
19789dlopen_self_static=$enable_dlopen_self_static
19790
19791# Compiler flag to prevent dynamic linking.
19792link_static_flag=$lt_lt_prog_compiler_static_RC
19793
19794# Compiler flag to turn off builtin functions.
19795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19796
19797# Compiler flag to allow reflexive dlopens.
19798export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19799
19800# Compiler flag to generate shared objects directly from archives.
19801whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19802
19803# Compiler flag to generate thread-safe objects.
19804thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19805
19806# Library versioning type.
19807version_type=$version_type
19808
19809# Format of library name prefix.
19810libname_spec=$lt_libname_spec
19811
19812# List of archive names.  First name is the real one, the rest are links.
19813# The last name is the one that the linker finds with -lNAME.
19814library_names_spec=$lt_library_names_spec
19815
19816# The coded name of the library, if different from the real name.
19817soname_spec=$lt_soname_spec
19818
19819# Commands used to build and install an old-style archive.
19820RANLIB=$lt_RANLIB
19821old_archive_cmds=$lt_old_archive_cmds_RC
19822old_postinstall_cmds=$lt_old_postinstall_cmds
19823old_postuninstall_cmds=$lt_old_postuninstall_cmds
19824
19825# Create an old-style archive from a shared archive.
19826old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19827
19828# Create a temporary old-style archive to link instead of a shared archive.
19829old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19830
19831# Commands used to build and install a shared archive.
19832archive_cmds=$lt_archive_cmds_RC
19833archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19834postinstall_cmds=$lt_postinstall_cmds
19835postuninstall_cmds=$lt_postuninstall_cmds
19836
19837# Commands used to build a loadable module (assumed same as above if empty)
19838module_cmds=$lt_module_cmds_RC
19839module_expsym_cmds=$lt_module_expsym_cmds_RC
19840
19841# Commands to strip libraries.
19842old_striplib=$lt_old_striplib
19843striplib=$lt_striplib
19844
19845# Dependencies to place before the objects being linked to create a
19846# shared library.
19847predep_objects=$lt_predep_objects_RC
19848
19849# Dependencies to place after the objects being linked to create a
19850# shared library.
19851postdep_objects=$lt_postdep_objects_RC
19852
19853# Dependencies to place before the objects being linked to create a
19854# shared library.
19855predeps=$lt_predeps_RC
19856
19857# Dependencies to place after the objects being linked to create a
19858# shared library.
19859postdeps=$lt_postdeps_RC
19860
19861# The directories searched by this compiler when creating a shared
19862# library
19863compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19864
19865# The library search path used internally by the compiler when linking
19866# a shared library.
19867compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19868
19869# Method to check whether dependent libraries are shared objects.
19870deplibs_check_method=$lt_deplibs_check_method
19871
19872# Command to use when deplibs_check_method == file_magic.
19873file_magic_cmd=$lt_file_magic_cmd
19874
19875# Flag that allows shared libraries with undefined symbols to be built.
19876allow_undefined_flag=$lt_allow_undefined_flag_RC
19877
19878# Flag that forces no undefined symbols.
19879no_undefined_flag=$lt_no_undefined_flag_RC
19880
19881# Commands used to finish a libtool library installation in a directory.
19882finish_cmds=$lt_finish_cmds
19883
19884# Same as above, but a single script fragment to be evaled but not shown.
19885finish_eval=$lt_finish_eval
19886
19887# Take the output of nm and produce a listing of raw symbols and C names.
19888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19889
19890# Transform the output of nm in a proper C declaration
19891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19892
19893# Transform the output of nm in a C name address pair
19894global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19895
19896# This is the shared library runtime path variable.
19897runpath_var=$runpath_var
19898
19899# This is the shared library path variable.
19900shlibpath_var=$shlibpath_var
19901
19902# Is shlibpath searched before the hard-coded library search path?
19903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19904
19905# How to hardcode a shared library path into an executable.
19906hardcode_action=$hardcode_action_RC
19907
19908# Whether we should hardcode library paths into libraries.
19909hardcode_into_libs=$hardcode_into_libs
19910
19911# Flag to hardcode \$libdir into a binary during linking.
19912# This must work even if \$libdir does not exist.
19913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19914
19915# If ld is used when linking, flag to hardcode \$libdir into
19916# a binary during linking. This must work even if \$libdir does
19917# not exist.
19918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19919
19920# Whether we need a single -rpath flag with a separated argument.
19921hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19922
19923# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19924# resulting binary.
19925hardcode_direct=$hardcode_direct_RC
19926
19927# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19928# resulting binary.
19929hardcode_minus_L=$hardcode_minus_L_RC
19930
19931# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19932# the resulting binary.
19933hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19934
19935# Set to yes if building a shared library automatically hardcodes DIR into the library
19936# and all subsequent libraries and executables linked against it.
19937hardcode_automatic=$hardcode_automatic_RC
19938
19939# Variables whose values should be saved in libtool wrapper scripts and
19940# restored at relink time.
19941variables_saved_for_relink="$variables_saved_for_relink"
19942
19943# Whether libtool must link a program against all its dependency libraries.
19944link_all_deplibs=$link_all_deplibs_RC
19945
19946# Compile-time system search path for libraries
19947sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19948
19949# Run-time system search path for libraries
19950sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19951
19952# Fix the shell variable \$srcfile for the compiler.
19953fix_srcfile_path=$lt_fix_srcfile_path
19954
19955# Set to yes if exported symbols are required.
19956always_export_symbols=$always_export_symbols_RC
19957
19958# The commands to list exported symbols.
19959export_symbols_cmds=$lt_export_symbols_cmds_RC
19960
19961# The commands to extract the exported symbol list from a shared archive.
19962extract_expsyms_cmds=$lt_extract_expsyms_cmds
19963
19964# Symbols that should not be listed in the preloaded symbols.
19965exclude_expsyms=$lt_exclude_expsyms_RC
19966
19967# Symbols that must always be exported.
19968include_expsyms=$lt_include_expsyms_RC
19969
19970# ### END LIBTOOL TAG CONFIG: $tagname
19971
19972__EOF__
19973
19974
19975else
19976  # If there is no Makefile yet, we rely on a make rule to execute
19977  # `config.status --recheck' to rerun these tests and create the
19978  # libtool script then.
19979  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19980  if test -f "$ltmain_in"; then
19981    test -f Makefile && make "$ltmain"
19982  fi
19983fi
19984
19985
19986ac_ext=c
19987ac_cpp='$CPP $CPPFLAGS'
19988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19990ac_compiler_gnu=$ac_cv_c_compiler_gnu
19991
19992CC="$lt_save_CC"
19993
19994	;;
19995
19996      *)
19997	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19998$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19999   { (exit 1); exit 1; }; }
20000	;;
20001      esac
20002
20003      # Append the new tag name to the list of available tags.
20004      if test -n "$tagname" ; then
20005      available_tags="$available_tags $tagname"
20006    fi
20007    fi
20008  done
20009  IFS="$lt_save_ifs"
20010
20011  # Now substitute the updated list of available tags.
20012  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20013    mv "${ofile}T" "$ofile"
20014    chmod +x "$ofile"
20015  else
20016    rm -f "${ofile}T"
20017    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20018$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20019   { (exit 1); exit 1; }; }
20020  fi
20021fi
20022
20023
20024
20025# This can be used to rebuild libtool when needed
20026LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20027
20028# Always use our own libtool.
20029LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20030
20031# Prevent multiple expansion
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054# Check whether --enable-python was given.
20055if test "${enable_python+set}" = set; then
20056  enableval=$enable_python; case "${enableval}" in
20057  yes) pythonlib=true ;;
20058  no)  pythonlib=false ;;
20059  *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-python" >&5
20060$as_echo "$as_me: error: bad value ${enableval} for --enable-python" >&2;}
20061   { (exit 1); exit 1; }; } ;;
20062esac
20063else
20064  pythonlib=false
20065fi
20066
20067 if test x$pythonlib = xtrue; then
20068  PYTHONLIB_TRUE=
20069  PYTHONLIB_FALSE='#'
20070else
20071  PYTHONLIB_TRUE='#'
20072  PYTHONLIB_FALSE=
20073fi
20074
20075
20076if test "x$pythonlib" = "xtrue"; then
20077
20078        #
20079        # Allow the use of a (user set) custom python version
20080        #
20081
20082
20083        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20084set dummy python$PYTHON_VERSION; ac_word=$2
20085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20086$as_echo_n "checking for $ac_word... " >&6; }
20087if test "${ac_cv_path_PYTHON+set}" = set; then
20088  $as_echo_n "(cached) " >&6
20089else
20090  case $PYTHON in
20091  [\\/]* | ?:[\\/]*)
20092  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20093  ;;
20094  *)
20095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096for as_dir in $PATH
20097do
20098  IFS=$as_save_IFS
20099  test -z "$as_dir" && as_dir=.
20100  for ac_exec_ext in '' $ac_executable_extensions; do
20101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20102    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20103    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20104    break 2
20105  fi
20106done
20107done
20108IFS=$as_save_IFS
20109
20110  ;;
20111esac
20112fi
20113PYTHON=$ac_cv_path_PYTHON
20114if test -n "$PYTHON"; then
20115  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
20116$as_echo "$PYTHON" >&6; }
20117else
20118  { $as_echo "$as_me:$LINENO: result: no" >&5
20119$as_echo "no" >&6; }
20120fi
20121
20122
20123        if test -z "$PYTHON"; then
20124           { { $as_echo "$as_me:$LINENO: error: Cannot find python$PYTHON_VERSION in your system path" >&5
20125$as_echo "$as_me: error: Cannot find python$PYTHON_VERSION in your system path" >&2;}
20126   { (exit 1); exit 1; }; }
20127           PYTHON_VERSION=""
20128        fi
20129
20130        #
20131        # Check for a version of Python >= 2.1.0
20132        #
20133        { $as_echo "$as_me:$LINENO: checking for a version of Python >= '2.1.0'" >&5
20134$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20135        ac_supports_python_ver=`$PYTHON -c "import sys, string; \
20136                ver = string.split(sys.version)[0]; \
20137                print ver >= '2.1.0'"`
20138        if test "$ac_supports_python_ver" != "True"; then
20139                if test -z "$PYTHON_NOVERSIONCHECK"; then
20140                        { $as_echo "$as_me:$LINENO: result: no" >&5
20141$as_echo "no" >&6; }
20142                        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20144{ { $as_echo "$as_me:$LINENO: error:
20145This version of the AC_PYTHON_DEVEL macro
20146doesn't work properly with versions of Python before
201472.1.0. You may need to re-run configure, setting the
20148variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20149PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20150Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20151to something else than an empty string.
20152
20153See \`config.log' for more details." >&5
20154$as_echo "$as_me: error:
20155This version of the AC_PYTHON_DEVEL macro
20156doesn't work properly with versions of Python before
201572.1.0. You may need to re-run configure, setting the
20158variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20159PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20160Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20161to something else than an empty string.
20162
20163See \`config.log' for more details." >&2;}
20164   { (exit 1); exit 1; }; }; }
20165                else
20166                        { $as_echo "$as_me:$LINENO: result: skip at user request" >&5
20167$as_echo "skip at user request" >&6; }
20168                fi
20169        else
20170                { $as_echo "$as_me:$LINENO: result: yes" >&5
20171$as_echo "yes" >&6; }
20172        fi
20173
20174        #
20175        # if the macro parameter ``version'' is set, honour it
20176        #
20177        if test -n ""; then
20178                { $as_echo "$as_me:$LINENO: checking for a version of Python " >&5
20179$as_echo_n "checking for a version of Python ... " >&6; }
20180                ac_supports_python_ver=`$PYTHON -c "import sys, string; \
20181                        ver = string.split(sys.version)[0]; \
20182                        print ver "`
20183                if test "$ac_supports_python_ver" = "True"; then
20184                   { $as_echo "$as_me:$LINENO: result: yes" >&5
20185$as_echo "yes" >&6; }
20186                else
20187                        { $as_echo "$as_me:$LINENO: result: no" >&5
20188$as_echo "no" >&6; }
20189                        { { $as_echo "$as_me:$LINENO: error: this package requires Python .
20190If you have it installed, but it isn't the default Python
20191interpreter in your system path, please pass the PYTHON_VERSION
20192variable to configure. See \`\`configure --help'' for reference.
20193" >&5
20194$as_echo "$as_me: error: this package requires Python .
20195If you have it installed, but it isn't the default Python
20196interpreter in your system path, please pass the PYTHON_VERSION
20197variable to configure. See \`\`configure --help'' for reference.
20198" >&2;}
20199   { (exit 1); exit 1; }; }
20200                        PYTHON_VERSION=""
20201                fi
20202        fi
20203
20204        #
20205        # Check if you have distutils, else fail
20206        #
20207        { $as_echo "$as_me:$LINENO: checking for the distutils Python package" >&5
20208$as_echo_n "checking for the distutils Python package... " >&6; }
20209        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20210        if test -z "$ac_distutils_result"; then
20211                { $as_echo "$as_me:$LINENO: result: yes" >&5
20212$as_echo "yes" >&6; }
20213        else
20214                { $as_echo "$as_me:$LINENO: result: no" >&5
20215$as_echo "no" >&6; }
20216                { { $as_echo "$as_me:$LINENO: error: cannot import Python module \"distutils\".
20217Please check your Python installation. The error was:
20218$ac_distutils_result" >&5
20219$as_echo "$as_me: error: cannot import Python module \"distutils\".
20220Please check your Python installation. The error was:
20221$ac_distutils_result" >&2;}
20222   { (exit 1); exit 1; }; }
20223                PYTHON_VERSION=""
20224        fi
20225
20226        #
20227        # Check for Python include path
20228        #
20229        { $as_echo "$as_me:$LINENO: checking for Python include path" >&5
20230$as_echo_n "checking for Python include path... " >&6; }
20231        if test -z "$PYTHON_CPPFLAGS"; then
20232                python_path=`$PYTHON -c "import distutils.sysconfig; \
20233                        print distutils.sysconfig.get_python_inc();"`
20234                if test -n "${python_path}"; then
20235                        python_path="-I$python_path"
20236                fi
20237                PYTHON_CPPFLAGS=$python_path
20238        fi
20239        { $as_echo "$as_me:$LINENO: result: $PYTHON_CPPFLAGS" >&5
20240$as_echo "$PYTHON_CPPFLAGS" >&6; }
20241
20242
20243        #
20244        # Check for Python library path
20245        #
20246        { $as_echo "$as_me:$LINENO: checking for Python library path" >&5
20247$as_echo_n "checking for Python library path... " >&6; }
20248        if test -z "$PYTHON_LDFLAGS"; then
20249                # (makes two attempts to ensure we've got a version number
20250                # from the interpreter)
20251                py_version=`$PYTHON -c "from distutils.sysconfig import *; \
20252                        from string import join; \
20253                        print join(get_config_vars('VERSION'))"`
20254                if test "$py_version" == "None"; then
20255                        if test -n "$PYTHON_VERSION"; then
20256                                py_version=$PYTHON_VERSION
20257                        else
20258                                py_version=`$PYTHON -c "import sys; \
20259                                        print sys.version[:3]"`
20260                        fi
20261                fi
20262
20263                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
20264                        from string import join; \
20265                        print '-L' + get_python_lib(0,1), \
20266                        '-lpython';"`$py_version
20267        fi
20268        { $as_echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
20269$as_echo "$PYTHON_LDFLAGS" >&6; }
20270
20271
20272        #
20273        # Check for site packages
20274        #
20275        { $as_echo "$as_me:$LINENO: checking for Python site-packages path" >&5
20276$as_echo_n "checking for Python site-packages path... " >&6; }
20277        if test -z "$PYTHON_SITE_PKG"; then
20278                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20279                        print distutils.sysconfig.get_python_lib(0,0);"`
20280        fi
20281        { $as_echo "$as_me:$LINENO: result: $PYTHON_SITE_PKG" >&5
20282$as_echo "$PYTHON_SITE_PKG" >&6; }
20283
20284
20285        #
20286        # libraries which must be linked in when embedding
20287        #
20288        { $as_echo "$as_me:$LINENO: checking python extra libraries" >&5
20289$as_echo_n "checking python extra libraries... " >&6; }
20290        if test -z "$PYTHON_EXTRA_LIBS"; then
20291           PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20292                conf = distutils.sysconfig.get_config_var; \
20293                print conf('LOCALMODLIBS'), conf('LIBS')"`
20294        fi
20295        { $as_echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5
20296$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20297
20298
20299        #
20300        # linking flags needed when embedding
20301        #
20302        { $as_echo "$as_me:$LINENO: checking python extra linking flags" >&5
20303$as_echo_n "checking python extra linking flags... " >&6; }
20304        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20305                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20306                        conf = distutils.sysconfig.get_config_var; \
20307                        print conf('LINKFORSHARED')"`
20308        fi
20309        { $as_echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LDFLAGS" >&5
20310$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20311
20312
20313        #
20314        # final check to see if everything compiles alright
20315        #
20316        { $as_echo "$as_me:$LINENO: checking consistency of all components of python development environment" >&5
20317$as_echo_n "checking consistency of all components of python development environment... " >&6; }
20318        ac_ext=c
20319ac_cpp='$CPP $CPPFLAGS'
20320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323
20324        # save current global flags
20325        LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
20326        CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20327        cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h.  */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h.  */
20333
20334                #include <Python.h>
20335
20336int
20337main ()
20338{
20339
20340                Py_Initialize();
20341
20342  ;
20343  return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext conftest$ac_exeext
20347if { (ac_try="$ac_link"
20348case "(($ac_try" in
20349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350  *) ac_try_echo=$ac_try;;
20351esac
20352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20353$as_echo "$ac_try_echo") >&5
20354  (eval "$ac_link") 2>conftest.er1
20355  ac_status=$?
20356  grep -v '^ *+' conftest.er1 >conftest.err
20357  rm -f conftest.er1
20358  cat conftest.err >&5
20359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); } && {
20361	 test -z "$ac_c_werror_flag" ||
20362	 test ! -s conftest.err
20363       } && test -s conftest$ac_exeext && {
20364	 test "$cross_compiling" = yes ||
20365	 $as_test_x conftest$ac_exeext
20366       }; then
20367  pythonexists=yes
20368else
20369  $as_echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
20372	pythonexists=no
20373fi
20374
20375rm -rf conftest.dSYM
20376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377      conftest$ac_exeext conftest.$ac_ext
20378
20379        { $as_echo "$as_me:$LINENO: result: $pythonexists" >&5
20380$as_echo "$pythonexists" >&6; }
20381
20382        if test ! "$pythonexists" = "yes"; then
20383           { { $as_echo "$as_me:$LINENO: error:
20384  Could not link test program to Python. Maybe the main Python library has been
20385  installed in some non-standard library path. If so, pass it to configure,
20386  via the LDFLAGS environment variable.
20387  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20388  ============================================================================
20389   ERROR!
20390   You probably have to install the development version of the Python package
20391   for your distribution.  The exact name of this package varies among them.
20392  ============================================================================
20393           " >&5
20394$as_echo "$as_me: error:
20395  Could not link test program to Python. Maybe the main Python library has been
20396  installed in some non-standard library path. If so, pass it to configure,
20397  via the LDFLAGS environment variable.
20398  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20399  ============================================================================
20400   ERROR!
20401   You probably have to install the development version of the Python package
20402   for your distribution.  The exact name of this package varies among them.
20403  ============================================================================
20404           " >&2;}
20405   { (exit 1); exit 1; }; }
20406          PYTHON_VERSION=""
20407        fi
20408        ac_ext=c
20409ac_cpp='$CPP $CPPFLAGS'
20410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413
20414        # turn back to default flags
20415        CPPFLAGS="$ac_save_CPPFLAGS"
20416        LIBS="$ac_save_LIBS"
20417
20418        #
20419        # all done!
20420        #
20421
20422
20423
20424
20425
20426        # Find any Python interpreter.
20427    if test -z "$PYTHON"; then
20428      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
20429do
20430  # Extract the first word of "$ac_prog", so it can be a program name with args.
20431set dummy $ac_prog; ac_word=$2
20432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20433$as_echo_n "checking for $ac_word... " >&6; }
20434if test "${ac_cv_path_PYTHON+set}" = set; then
20435  $as_echo_n "(cached) " >&6
20436else
20437  case $PYTHON in
20438  [\\/]* | ?:[\\/]*)
20439  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20440  ;;
20441  *)
20442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20443for as_dir in $PATH
20444do
20445  IFS=$as_save_IFS
20446  test -z "$as_dir" && as_dir=.
20447  for ac_exec_ext in '' $ac_executable_extensions; do
20448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20449    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20450    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20451    break 2
20452  fi
20453done
20454done
20455IFS=$as_save_IFS
20456
20457  ;;
20458esac
20459fi
20460PYTHON=$ac_cv_path_PYTHON
20461if test -n "$PYTHON"; then
20462  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
20463$as_echo "$PYTHON" >&6; }
20464else
20465  { $as_echo "$as_me:$LINENO: result: no" >&5
20466$as_echo "no" >&6; }
20467fi
20468
20469
20470  test -n "$PYTHON" && break
20471done
20472test -n "$PYTHON" || PYTHON=":"
20473
20474    fi
20475    am_display_PYTHON=python
20476
20477
20478  if test "$PYTHON" = :; then
20479      { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
20480$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
20481   { (exit 1); exit 1; }; }
20482  else
20483
20484
20485  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20486$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20487if test "${am_cv_python_version+set}" = set; then
20488  $as_echo_n "(cached) " >&6
20489else
20490  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20491fi
20492{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20493$as_echo "$am_cv_python_version" >&6; }
20494  PYTHON_VERSION=$am_cv_python_version
20495
20496
20497
20498  PYTHON_PREFIX='${prefix}'
20499
20500  PYTHON_EXEC_PREFIX='${exec_prefix}'
20501
20502
20503
20504  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
20505$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20506if test "${am_cv_python_platform+set}" = set; then
20507  $as_echo_n "(cached) " >&6
20508else
20509  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20510fi
20511{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
20512$as_echo "$am_cv_python_platform" >&6; }
20513  PYTHON_PLATFORM=$am_cv_python_platform
20514
20515
20516
20517
20518                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
20519$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20520if test "${am_cv_python_pythondir+set}" = set; then
20521  $as_echo_n "(cached) " >&6
20522else
20523  if test "x$prefix" = xNONE
20524     then
20525       am_py_prefix=$ac_default_prefix
20526     else
20527       am_py_prefix=$prefix
20528     fi
20529     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
20530     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20531     case $am_cv_python_pythondir in
20532     $am_py_prefix*)
20533       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20534       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20535       ;;
20536     esac
20537
20538fi
20539{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
20540$as_echo "$am_cv_python_pythondir" >&6; }
20541  pythondir=$am_cv_python_pythondir
20542
20543
20544
20545  pkgpythondir=\${pythondir}/$PACKAGE
20546
20547
20548            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
20549$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20550if test "${am_cv_python_pyexecdir+set}" = set; then
20551  $as_echo_n "(cached) " >&6
20552else
20553  if test "x$exec_prefix" = xNONE
20554     then
20555       am_py_exec_prefix=$am_py_prefix
20556     else
20557       am_py_exec_prefix=$exec_prefix
20558     fi
20559     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
20560     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
20561     case $am_cv_python_pyexecdir in
20562     $am_py_exec_prefix*)
20563       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20564       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20565       ;;
20566     esac
20567
20568fi
20569{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
20570$as_echo "$am_cv_python_pyexecdir" >&6; }
20571  pyexecdir=$am_cv_python_pyexecdir
20572
20573
20574
20575  pkgpyexecdir=\${pyexecdir}/$PACKAGE
20576
20577
20578
20579  fi
20580
20581
20582fi
20583
20584
20585ac_dir=`echo "libiptcdata/_stdint.h"|sed 's%/[^/][^/]*$%%'`
20586if test "$ac_dir" != "libiptcdata/_stdint.h" && test "$ac_dir" != .; then
20587  # The file is in a subdirectory.
20588  test ! -d "$ac_dir" && mkdir "$ac_dir"
20589fi
20590
20591{ $as_echo "$as_me:$LINENO: checking for uint8_t in stdint.h" >&5
20592$as_echo_n "checking for uint8_t in stdint.h... " >&6; }
20593cat >conftest.$ac_ext <<_ACEOF
20594/* confdefs.h.  */
20595_ACEOF
20596cat confdefs.h >>conftest.$ac_ext
20597cat >>conftest.$ac_ext <<_ACEOF
20598/* end confdefs.h.  */
20599#include <stdint.h>
20600_ACEOF
20601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20603  ac_cv_type_uint8_t=yes
20604else
20605  ac_cv_type_uint8_t=no
20606fi
20607rm -f conftest*
20608{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20609$as_echo "$ac_cv_type_uint8_t" >&6; }
20610if test $ac_cv_type_uint8_t = yes; then
20611
20612cat > "libiptcdata/_stdint.h" <<EOF
20613/* This file is generated automatically by configure */
20614#include <stdint.h>
20615EOF
20616else
20617  { $as_echo "$as_me:$LINENO: checking for uint8_t in inttypes.h" >&5
20618$as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
20619cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h.  */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h.  */
20625#include <inttypes.h>
20626_ACEOF
20627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20628  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20629  ac_cv_type_uint8_t=yes
20630else
20631  ac_cv_type_uint8_t=no
20632fi
20633rm -f conftest*
20634{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20635$as_echo "$ac_cv_type_uint8_t" >&6; }
20636if test $ac_cv_type_uint8_t = yes; then
20637  cat > "libiptcdata/_stdint.h" <<EOF
20638/* This file is generated automatically by configure */
20639#include <inttypes.h>
20640EOF
20641else
20642  { $as_echo "$as_me:$LINENO: checking for uint8_t in sys/types.h" >&5
20643$as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
20644cat >conftest.$ac_ext <<_ACEOF
20645/* confdefs.h.  */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h.  */
20650#include <sys/types.h>
20651_ACEOF
20652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20654  ac_cv_type_uint8_t=yes
20655else
20656  ac_cv_type_uint8_t=no
20657fi
20658rm -f conftest*
20659{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20660$as_echo "$ac_cv_type_uint8_t" >&6; }
20661if test $ac_cv_type_uint8_t = yes; then
20662  cat > "libiptcdata/_stdint.h" <<EOF
20663/* This file is generated automatically by configure */
20664#include <sys/types.h>
20665EOF
20666else
20667  { $as_echo "$as_me:$LINENO: checking for u_int8_t in sys/types.h" >&5
20668$as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
20669cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h.  */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h.  */
20675#include <sys/types.h>
20676_ACEOF
20677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20678  $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20679  ac_cv_type_u_int8_t=yes
20680else
20681  ac_cv_type_u_int8_t=no
20682fi
20683rm -f conftest*
20684{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
20685$as_echo "$ac_cv_type_u_int8_t" >&6; }
20686if test $ac_cv_type_u_int8_t = yes; then
20687  cat > "libiptcdata/_stdint.h" <<EOF
20688/* This file is generated automatically by configure */
20689#ifndef __STDINT_H
20690#define __STDINT_H
20691#include <sys/types.h>
20692typedef u_int8_t uint8_t;
20693typedef u_int16_t uint16_t;
20694typedef u_int32_t uint32_t;
20695EOF
20696
20697{ $as_echo "$as_me:$LINENO: checking for u_int64_t in sys/types.h" >&5
20698$as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
20699cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h.  */
20701_ACEOF
20702cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h.  */
20705#include <sys/types.h>
20706_ACEOF
20707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20708  $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20709  ac_cv_type_u_int64_t=yes
20710else
20711  ac_cv_type_u_int64_t=no
20712fi
20713rm -f conftest*
20714{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20715$as_echo "$ac_cv_type_u_int64_t" >&6; }
20716if test $ac_cv_type_u_int64_t = yes; then
20717  cat >> "libiptcdata/_stdint.h" <<EOF
20718typedef u_int64_t uint64_t;
20719#endif /*!__STDINT_H*/
20720EOF
20721else
20722  cat >> "libiptcdata/_stdint.h" <<EOF
20723/* 64-bit types are not available on this system */
20724/* typedef u_int64_t uint64_t; */
20725#endif /*!__STDINT_H*/
20726EOF
20727fi
20728
20729
20730
20731else
20732  { $as_echo "$as_me:$LINENO: WARNING: I can't find size-specific integer definitions on this system" >&5
20733$as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
20734if test -e "libiptcdata/_stdint.h" ; then
20735	rm -f "libiptcdata/_stdint.h"
20736fi
20737
20738fi
20739
20740fi
20741
20742fi
20743
20744fi
20745
20746
20747
20748IPTC_GETTEXT_PACKAGE=iptc
20749
20750cat >>confdefs.h <<_ACEOF
20751#define IPTC_GETTEXT_PACKAGE "$IPTC_GETTEXT_PACKAGE"
20752_ACEOF
20753
20754
20755
20756GETTEXT_PACKAGE=${PACKAGE}
20757
20758cat >>confdefs.h <<_ACEOF
20759#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
20760_ACEOF
20761
20762
20763#if test -f po/Makevars.template
20764#then
20765#	sed -e "s/^DOMAIN.*/DOMAIN = ${GETTEXT_PACKAGE}/" < po/Makevars.template > po/Makevars
20766#	AC_MSG_RESULT([yes. done.])
20767#else
20768#	AC_MSG_RESULT([no])
20769#fi
20770
20771        MKINSTALLDIRS=
20772  if test -n "$ac_aux_dir"; then
20773    case "$ac_aux_dir" in
20774      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20775      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20776    esac
20777  fi
20778  if test -z "$MKINSTALLDIRS"; then
20779    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20780  fi
20781
20782
20783
20784  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20785$as_echo_n "checking whether NLS is requested... " >&6; }
20786    # Check whether --enable-nls was given.
20787if test "${enable_nls+set}" = set; then
20788  enableval=$enable_nls; USE_NLS=$enableval
20789else
20790  USE_NLS=yes
20791fi
20792
20793  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
20794$as_echo "$USE_NLS" >&6; }
20795
20796
20797
20798
20799
20800
20801# Prepare PATH_SEPARATOR.
20802# The user is always right.
20803if test "${PATH_SEPARATOR+set}" != set; then
20804  echo "#! /bin/sh" >conf$$.sh
20805  echo  "exit 0"   >>conf$$.sh
20806  chmod +x conf$$.sh
20807  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20808    PATH_SEPARATOR=';'
20809  else
20810    PATH_SEPARATOR=:
20811  fi
20812  rm -f conf$$.sh
20813fi
20814
20815# Find out how to test for executable files. Don't use a zero-byte file,
20816# as systems may use methods other than mode bits to determine executability.
20817cat >conf$$.file <<_ASEOF
20818#! /bin/sh
20819exit 0
20820_ASEOF
20821chmod +x conf$$.file
20822if test -x conf$$.file >/dev/null 2>&1; then
20823  ac_executable_p="test -x"
20824else
20825  ac_executable_p="test -f"
20826fi
20827rm -f conf$$.file
20828
20829# Extract the first word of "msgfmt", so it can be a program name with args.
20830set dummy msgfmt; ac_word=$2
20831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20832$as_echo_n "checking for $ac_word... " >&6; }
20833if test "${ac_cv_path_MSGFMT+set}" = set; then
20834  $as_echo_n "(cached) " >&6
20835else
20836  case "$MSGFMT" in
20837  [\\/]* | ?:[\\/]*)
20838    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20839    ;;
20840  *)
20841    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20842    for ac_dir in $PATH; do
20843      IFS="$ac_save_IFS"
20844      test -z "$ac_dir" && ac_dir=.
20845      for ac_exec_ext in '' $ac_executable_extensions; do
20846        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20847          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
20848     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20849            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20850            break 2
20851          fi
20852        fi
20853      done
20854    done
20855    IFS="$ac_save_IFS"
20856  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20857    ;;
20858esac
20859fi
20860MSGFMT="$ac_cv_path_MSGFMT"
20861if test "$MSGFMT" != ":"; then
20862  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
20863$as_echo "$MSGFMT" >&6; }
20864else
20865  { $as_echo "$as_me:$LINENO: result: no" >&5
20866$as_echo "no" >&6; }
20867fi
20868
20869  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20870set dummy gmsgfmt; ac_word=$2
20871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20872$as_echo_n "checking for $ac_word... " >&6; }
20873if test "${ac_cv_path_GMSGFMT+set}" = set; then
20874  $as_echo_n "(cached) " >&6
20875else
20876  case $GMSGFMT in
20877  [\\/]* | ?:[\\/]*)
20878  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20879  ;;
20880  *)
20881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20882for as_dir in $PATH
20883do
20884  IFS=$as_save_IFS
20885  test -z "$as_dir" && as_dir=.
20886  for ac_exec_ext in '' $ac_executable_extensions; do
20887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20888    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20889    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20890    break 2
20891  fi
20892done
20893done
20894IFS=$as_save_IFS
20895
20896  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20897  ;;
20898esac
20899fi
20900GMSGFMT=$ac_cv_path_GMSGFMT
20901if test -n "$GMSGFMT"; then
20902  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20903$as_echo "$GMSGFMT" >&6; }
20904else
20905  { $as_echo "$as_me:$LINENO: result: no" >&5
20906$as_echo "no" >&6; }
20907fi
20908
20909
20910
20911
20912# Prepare PATH_SEPARATOR.
20913# The user is always right.
20914if test "${PATH_SEPARATOR+set}" != set; then
20915  echo "#! /bin/sh" >conf$$.sh
20916  echo  "exit 0"   >>conf$$.sh
20917  chmod +x conf$$.sh
20918  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20919    PATH_SEPARATOR=';'
20920  else
20921    PATH_SEPARATOR=:
20922  fi
20923  rm -f conf$$.sh
20924fi
20925
20926# Find out how to test for executable files. Don't use a zero-byte file,
20927# as systems may use methods other than mode bits to determine executability.
20928cat >conf$$.file <<_ASEOF
20929#! /bin/sh
20930exit 0
20931_ASEOF
20932chmod +x conf$$.file
20933if test -x conf$$.file >/dev/null 2>&1; then
20934  ac_executable_p="test -x"
20935else
20936  ac_executable_p="test -f"
20937fi
20938rm -f conf$$.file
20939
20940# Extract the first word of "xgettext", so it can be a program name with args.
20941set dummy xgettext; ac_word=$2
20942{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20943$as_echo_n "checking for $ac_word... " >&6; }
20944if test "${ac_cv_path_XGETTEXT+set}" = set; then
20945  $as_echo_n "(cached) " >&6
20946else
20947  case "$XGETTEXT" in
20948  [\\/]* | ?:[\\/]*)
20949    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20950    ;;
20951  *)
20952    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20953    for ac_dir in $PATH; do
20954      IFS="$ac_save_IFS"
20955      test -z "$ac_dir" && ac_dir=.
20956      for ac_exec_ext in '' $ac_executable_extensions; do
20957        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20958          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20959     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20960            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20961            break 2
20962          fi
20963        fi
20964      done
20965    done
20966    IFS="$ac_save_IFS"
20967  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20968    ;;
20969esac
20970fi
20971XGETTEXT="$ac_cv_path_XGETTEXT"
20972if test "$XGETTEXT" != ":"; then
20973  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20974$as_echo "$XGETTEXT" >&6; }
20975else
20976  { $as_echo "$as_me:$LINENO: result: no" >&5
20977$as_echo "no" >&6; }
20978fi
20979
20980    rm -f messages.po
20981
20982
20983# Prepare PATH_SEPARATOR.
20984# The user is always right.
20985if test "${PATH_SEPARATOR+set}" != set; then
20986  echo "#! /bin/sh" >conf$$.sh
20987  echo  "exit 0"   >>conf$$.sh
20988  chmod +x conf$$.sh
20989  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20990    PATH_SEPARATOR=';'
20991  else
20992    PATH_SEPARATOR=:
20993  fi
20994  rm -f conf$$.sh
20995fi
20996
20997# Find out how to test for executable files. Don't use a zero-byte file,
20998# as systems may use methods other than mode bits to determine executability.
20999cat >conf$$.file <<_ASEOF
21000#! /bin/sh
21001exit 0
21002_ASEOF
21003chmod +x conf$$.file
21004if test -x conf$$.file >/dev/null 2>&1; then
21005  ac_executable_p="test -x"
21006else
21007  ac_executable_p="test -f"
21008fi
21009rm -f conf$$.file
21010
21011# Extract the first word of "msgmerge", so it can be a program name with args.
21012set dummy msgmerge; ac_word=$2
21013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21014$as_echo_n "checking for $ac_word... " >&6; }
21015if test "${ac_cv_path_MSGMERGE+set}" = set; then
21016  $as_echo_n "(cached) " >&6
21017else
21018  case "$MSGMERGE" in
21019  [\\/]* | ?:[\\/]*)
21020    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21021    ;;
21022  *)
21023    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21024    for ac_dir in $PATH; do
21025      IFS="$ac_save_IFS"
21026      test -z "$ac_dir" && ac_dir=.
21027      for ac_exec_ext in '' $ac_executable_extensions; do
21028        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21029          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
21030            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21031            break 2
21032          fi
21033        fi
21034      done
21035    done
21036    IFS="$ac_save_IFS"
21037  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21038    ;;
21039esac
21040fi
21041MSGMERGE="$ac_cv_path_MSGMERGE"
21042if test "$MSGMERGE" != ":"; then
21043  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21044$as_echo "$MSGMERGE" >&6; }
21045else
21046  { $as_echo "$as_me:$LINENO: result: no" >&5
21047$as_echo "no" >&6; }
21048fi
21049
21050
21051      if test "$GMSGFMT" != ":"; then
21052            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
21053       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21054      : ;
21055    else
21056      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
21057      { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
21058$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
21059      GMSGFMT=":"
21060    fi
21061  fi
21062
21063      if test "$XGETTEXT" != ":"; then
21064            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21065       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21066      : ;
21067    else
21068      { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21069$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
21070      XGETTEXT=":"
21071    fi
21072        rm -f messages.po
21073  fi
21074
21075  ac_config_commands="$ac_config_commands default-1"
21076
21077
21078
21079      if test "X$prefix" = "XNONE"; then
21080    acl_final_prefix="$ac_default_prefix"
21081  else
21082    acl_final_prefix="$prefix"
21083  fi
21084  if test "X$exec_prefix" = "XNONE"; then
21085    acl_final_exec_prefix='${prefix}'
21086  else
21087    acl_final_exec_prefix="$exec_prefix"
21088  fi
21089  acl_save_prefix="$prefix"
21090  prefix="$acl_final_prefix"
21091  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21092  prefix="$acl_save_prefix"
21093
21094
21095# Check whether --with-gnu-ld was given.
21096if test "${with_gnu_ld+set}" = set; then
21097  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21098else
21099  with_gnu_ld=no
21100fi
21101
21102# Prepare PATH_SEPARATOR.
21103# The user is always right.
21104if test "${PATH_SEPARATOR+set}" != set; then
21105  echo "#! /bin/sh" >conf$$.sh
21106  echo  "exit 0"   >>conf$$.sh
21107  chmod +x conf$$.sh
21108  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21109    PATH_SEPARATOR=';'
21110  else
21111    PATH_SEPARATOR=:
21112  fi
21113  rm -f conf$$.sh
21114fi
21115ac_prog=ld
21116if test "$GCC" = yes; then
21117  # Check if gcc -print-prog-name=ld gives a path.
21118  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21119$as_echo_n "checking for ld used by GCC... " >&6; }
21120  case $host in
21121  *-*-mingw*)
21122    # gcc leaves a trailing carriage return which upsets mingw
21123    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21124  *)
21125    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21126  esac
21127  case $ac_prog in
21128    # Accept absolute paths.
21129    [\\/]* | [A-Za-z]:[\\/]*)
21130      re_direlt='/[^/][^/]*/\.\./'
21131      # Canonicalize the path of ld
21132      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21133      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21134	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21135      done
21136      test -z "$LD" && LD="$ac_prog"
21137      ;;
21138  "")
21139    # If it fails, then pretend we aren't using GCC.
21140    ac_prog=ld
21141    ;;
21142  *)
21143    # If it is relative, then search for the first ld in PATH.
21144    with_gnu_ld=unknown
21145    ;;
21146  esac
21147elif test "$with_gnu_ld" = yes; then
21148  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
21149$as_echo_n "checking for GNU ld... " >&6; }
21150else
21151  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21152$as_echo_n "checking for non-GNU ld... " >&6; }
21153fi
21154if test "${acl_cv_path_LD+set}" = set; then
21155  $as_echo_n "(cached) " >&6
21156else
21157  if test -z "$LD"; then
21158  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21159  for ac_dir in $PATH; do
21160    test -z "$ac_dir" && ac_dir=.
21161    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21162      acl_cv_path_LD="$ac_dir/$ac_prog"
21163      # Check to see if the program is GNU ld.  I'd rather use --version,
21164      # but apparently some GNU ld's only accept -v.
21165      # Break only if it was the GNU/non-GNU ld that we prefer.
21166      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21167      *GNU* | *'with BFD'*)
21168	test "$with_gnu_ld" != no && break ;;
21169      *)
21170	test "$with_gnu_ld" != yes && break ;;
21171      esac
21172    fi
21173  done
21174  IFS="$ac_save_ifs"
21175else
21176  acl_cv_path_LD="$LD" # Let the user override the test with a path.
21177fi
21178fi
21179
21180LD="$acl_cv_path_LD"
21181if test -n "$LD"; then
21182  { $as_echo "$as_me:$LINENO: result: $LD" >&5
21183$as_echo "$LD" >&6; }
21184else
21185  { $as_echo "$as_me:$LINENO: result: no" >&5
21186$as_echo "no" >&6; }
21187fi
21188test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21189$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21190   { (exit 1); exit 1; }; }
21191{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21192$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21193if test "${acl_cv_prog_gnu_ld+set}" = set; then
21194  $as_echo_n "(cached) " >&6
21195else
21196  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21197case `$LD -v 2>&1 </dev/null` in
21198*GNU* | *'with BFD'*)
21199  acl_cv_prog_gnu_ld=yes ;;
21200*)
21201  acl_cv_prog_gnu_ld=no ;;
21202esac
21203fi
21204{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21205$as_echo "$acl_cv_prog_gnu_ld" >&6; }
21206with_gnu_ld=$acl_cv_prog_gnu_ld
21207
21208
21209
21210                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21211$as_echo_n "checking for shared library run path origin... " >&6; }
21212if test "${acl_cv_rpath+set}" = set; then
21213  $as_echo_n "(cached) " >&6
21214else
21215
21216    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21217    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21218    . ./conftest.sh
21219    rm -f ./conftest.sh
21220    acl_cv_rpath=done
21221
21222fi
21223{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21224$as_echo "$acl_cv_rpath" >&6; }
21225  wl="$acl_cv_wl"
21226  libext="$acl_cv_libext"
21227  shlibext="$acl_cv_shlibext"
21228  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21229  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21230  hardcode_direct="$acl_cv_hardcode_direct"
21231  hardcode_minus_L="$acl_cv_hardcode_minus_L"
21232    # Check whether --enable-rpath was given.
21233if test "${enable_rpath+set}" = set; then
21234  enableval=$enable_rpath; :
21235else
21236  enable_rpath=yes
21237fi
21238
21239
21240
21241
21242
21243
21244
21245
21246    use_additional=yes
21247
21248  acl_save_prefix="$prefix"
21249  prefix="$acl_final_prefix"
21250  acl_save_exec_prefix="$exec_prefix"
21251  exec_prefix="$acl_final_exec_prefix"
21252
21253    eval additional_includedir=\"$includedir\"
21254    eval additional_libdir=\"$libdir\"
21255
21256  exec_prefix="$acl_save_exec_prefix"
21257  prefix="$acl_save_prefix"
21258
21259
21260# Check whether --with-libiconv-prefix was given.
21261if test "${with_libiconv_prefix+set}" = set; then
21262  withval=$with_libiconv_prefix;
21263    if test "X$withval" = "Xno"; then
21264      use_additional=no
21265    else
21266      if test "X$withval" = "X"; then
21267
21268  acl_save_prefix="$prefix"
21269  prefix="$acl_final_prefix"
21270  acl_save_exec_prefix="$exec_prefix"
21271  exec_prefix="$acl_final_exec_prefix"
21272
21273          eval additional_includedir=\"$includedir\"
21274          eval additional_libdir=\"$libdir\"
21275
21276  exec_prefix="$acl_save_exec_prefix"
21277  prefix="$acl_save_prefix"
21278
21279      else
21280        additional_includedir="$withval/include"
21281        additional_libdir="$withval/lib"
21282      fi
21283    fi
21284
21285fi
21286
21287      LIBICONV=
21288  LTLIBICONV=
21289  INCICONV=
21290  rpathdirs=
21291  ltrpathdirs=
21292  names_already_handled=
21293  names_next_round='iconv '
21294  while test -n "$names_next_round"; do
21295    names_this_round="$names_next_round"
21296    names_next_round=
21297    for name in $names_this_round; do
21298      already_handled=
21299      for n in $names_already_handled; do
21300        if test "$n" = "$name"; then
21301          already_handled=yes
21302          break
21303        fi
21304      done
21305      if test -z "$already_handled"; then
21306        names_already_handled="$names_already_handled $name"
21307                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21308        eval value=\"\$HAVE_LIB$uppername\"
21309        if test -n "$value"; then
21310          if test "$value" = yes; then
21311            eval value=\"\$LIB$uppername\"
21312            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21313            eval value=\"\$LTLIB$uppername\"
21314            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21315          else
21316                                    :
21317          fi
21318        else
21319                              found_dir=
21320          found_la=
21321          found_so=
21322          found_a=
21323          if test $use_additional = yes; then
21324            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21325              found_dir="$additional_libdir"
21326              found_so="$additional_libdir/lib$name.$shlibext"
21327              if test -f "$additional_libdir/lib$name.la"; then
21328                found_la="$additional_libdir/lib$name.la"
21329              fi
21330            else
21331              if test -f "$additional_libdir/lib$name.$libext"; then
21332                found_dir="$additional_libdir"
21333                found_a="$additional_libdir/lib$name.$libext"
21334                if test -f "$additional_libdir/lib$name.la"; then
21335                  found_la="$additional_libdir/lib$name.la"
21336                fi
21337              fi
21338            fi
21339          fi
21340          if test "X$found_dir" = "X"; then
21341            for x in $LDFLAGS $LTLIBICONV; do
21342
21343  acl_save_prefix="$prefix"
21344  prefix="$acl_final_prefix"
21345  acl_save_exec_prefix="$exec_prefix"
21346  exec_prefix="$acl_final_exec_prefix"
21347  eval x=\"$x\"
21348  exec_prefix="$acl_save_exec_prefix"
21349  prefix="$acl_save_prefix"
21350
21351              case "$x" in
21352                -L*)
21353                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21354                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21355                    found_dir="$dir"
21356                    found_so="$dir/lib$name.$shlibext"
21357                    if test -f "$dir/lib$name.la"; then
21358                      found_la="$dir/lib$name.la"
21359                    fi
21360                  else
21361                    if test -f "$dir/lib$name.$libext"; then
21362                      found_dir="$dir"
21363                      found_a="$dir/lib$name.$libext"
21364                      if test -f "$dir/lib$name.la"; then
21365                        found_la="$dir/lib$name.la"
21366                      fi
21367                    fi
21368                  fi
21369                  ;;
21370              esac
21371              if test "X$found_dir" != "X"; then
21372                break
21373              fi
21374            done
21375          fi
21376          if test "X$found_dir" != "X"; then
21377                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21378            if test "X$found_so" != "X"; then
21379                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21380                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21381              else
21382                                                                                haveit=
21383                for x in $ltrpathdirs; do
21384                  if test "X$x" = "X$found_dir"; then
21385                    haveit=yes
21386                    break
21387                  fi
21388                done
21389                if test -z "$haveit"; then
21390                  ltrpathdirs="$ltrpathdirs $found_dir"
21391                fi
21392                                if test "$hardcode_direct" = yes; then
21393                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21394                else
21395                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21396                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21397                                                            haveit=
21398                    for x in $rpathdirs; do
21399                      if test "X$x" = "X$found_dir"; then
21400                        haveit=yes
21401                        break
21402                      fi
21403                    done
21404                    if test -z "$haveit"; then
21405                      rpathdirs="$rpathdirs $found_dir"
21406                    fi
21407                  else
21408                                                                                haveit=
21409                    for x in $LDFLAGS $LIBICONV; do
21410
21411  acl_save_prefix="$prefix"
21412  prefix="$acl_final_prefix"
21413  acl_save_exec_prefix="$exec_prefix"
21414  exec_prefix="$acl_final_exec_prefix"
21415  eval x=\"$x\"
21416  exec_prefix="$acl_save_exec_prefix"
21417  prefix="$acl_save_prefix"
21418
21419                      if test "X$x" = "X-L$found_dir"; then
21420                        haveit=yes
21421                        break
21422                      fi
21423                    done
21424                    if test -z "$haveit"; then
21425                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21426                    fi
21427                    if test "$hardcode_minus_L" != no; then
21428                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21429                    else
21430                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21431                    fi
21432                  fi
21433                fi
21434              fi
21435            else
21436              if test "X$found_a" != "X"; then
21437                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21438              else
21439                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21440              fi
21441            fi
21442                        additional_includedir=
21443            case "$found_dir" in
21444              */lib | */lib/)
21445                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21446                additional_includedir="$basedir/include"
21447                ;;
21448            esac
21449            if test "X$additional_includedir" != "X"; then
21450                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21451                haveit=
21452                if test "X$additional_includedir" = "X/usr/local/include"; then
21453                  if test -n "$GCC"; then
21454                    case $host_os in
21455                      linux*) haveit=yes;;
21456                    esac
21457                  fi
21458                fi
21459                if test -z "$haveit"; then
21460                  for x in $CPPFLAGS $INCICONV; do
21461
21462  acl_save_prefix="$prefix"
21463  prefix="$acl_final_prefix"
21464  acl_save_exec_prefix="$exec_prefix"
21465  exec_prefix="$acl_final_exec_prefix"
21466  eval x=\"$x\"
21467  exec_prefix="$acl_save_exec_prefix"
21468  prefix="$acl_save_prefix"
21469
21470                    if test "X$x" = "X-I$additional_includedir"; then
21471                      haveit=yes
21472                      break
21473                    fi
21474                  done
21475                  if test -z "$haveit"; then
21476                    if test -d "$additional_includedir"; then
21477                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21478                    fi
21479                  fi
21480                fi
21481              fi
21482            fi
21483                        if test -n "$found_la"; then
21484                                                        save_libdir="$libdir"
21485              case "$found_la" in
21486                */* | *\\*) . "$found_la" ;;
21487                *) . "./$found_la" ;;
21488              esac
21489              libdir="$save_libdir"
21490                            for dep in $dependency_libs; do
21491                case "$dep" in
21492                  -L*)
21493                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21494                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
21495                      haveit=
21496                      if test "X$additional_libdir" = "X/usr/local/lib"; then
21497                        if test -n "$GCC"; then
21498                          case $host_os in
21499                            linux*) haveit=yes;;
21500                          esac
21501                        fi
21502                      fi
21503                      if test -z "$haveit"; then
21504                        haveit=
21505                        for x in $LDFLAGS $LIBICONV; do
21506
21507  acl_save_prefix="$prefix"
21508  prefix="$acl_final_prefix"
21509  acl_save_exec_prefix="$exec_prefix"
21510  exec_prefix="$acl_final_exec_prefix"
21511  eval x=\"$x\"
21512  exec_prefix="$acl_save_exec_prefix"
21513  prefix="$acl_save_prefix"
21514
21515                          if test "X$x" = "X-L$additional_libdir"; then
21516                            haveit=yes
21517                            break
21518                          fi
21519                        done
21520                        if test -z "$haveit"; then
21521                          if test -d "$additional_libdir"; then
21522                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21523                          fi
21524                        fi
21525                        haveit=
21526                        for x in $LDFLAGS $LTLIBICONV; do
21527
21528  acl_save_prefix="$prefix"
21529  prefix="$acl_final_prefix"
21530  acl_save_exec_prefix="$exec_prefix"
21531  exec_prefix="$acl_final_exec_prefix"
21532  eval x=\"$x\"
21533  exec_prefix="$acl_save_exec_prefix"
21534  prefix="$acl_save_prefix"
21535
21536                          if test "X$x" = "X-L$additional_libdir"; then
21537                            haveit=yes
21538                            break
21539                          fi
21540                        done
21541                        if test -z "$haveit"; then
21542                          if test -d "$additional_libdir"; then
21543                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21544                          fi
21545                        fi
21546                      fi
21547                    fi
21548                    ;;
21549                  -R*)
21550                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21551                    if test "$enable_rpath" != no; then
21552                                                                  haveit=
21553                      for x in $rpathdirs; do
21554                        if test "X$x" = "X$dir"; then
21555                          haveit=yes
21556                          break
21557                        fi
21558                      done
21559                      if test -z "$haveit"; then
21560                        rpathdirs="$rpathdirs $dir"
21561                      fi
21562                                                                  haveit=
21563                      for x in $ltrpathdirs; do
21564                        if test "X$x" = "X$dir"; then
21565                          haveit=yes
21566                          break
21567                        fi
21568                      done
21569                      if test -z "$haveit"; then
21570                        ltrpathdirs="$ltrpathdirs $dir"
21571                      fi
21572                    fi
21573                    ;;
21574                  -l*)
21575                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21576                    ;;
21577                  *.la)
21578                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21579                    ;;
21580                  *)
21581                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21582                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21583                    ;;
21584                esac
21585              done
21586            fi
21587          else
21588                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21589            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21590          fi
21591        fi
21592      fi
21593    done
21594  done
21595  if test "X$rpathdirs" != "X"; then
21596    if test -n "$hardcode_libdir_separator"; then
21597                        alldirs=
21598      for found_dir in $rpathdirs; do
21599        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21600      done
21601            acl_save_libdir="$libdir"
21602      libdir="$alldirs"
21603      eval flag=\"$hardcode_libdir_flag_spec\"
21604      libdir="$acl_save_libdir"
21605      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21606    else
21607            for found_dir in $rpathdirs; do
21608        acl_save_libdir="$libdir"
21609        libdir="$found_dir"
21610        eval flag=\"$hardcode_libdir_flag_spec\"
21611        libdir="$acl_save_libdir"
21612        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21613      done
21614    fi
21615  fi
21616  if test "X$ltrpathdirs" != "X"; then
21617            for found_dir in $ltrpathdirs; do
21618      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21619    done
21620  fi
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21640$as_echo_n "checking whether NLS is requested... " >&6; }
21641    # Check whether --enable-nls was given.
21642if test "${enable_nls+set}" = set; then
21643  enableval=$enable_nls; USE_NLS=$enableval
21644else
21645  USE_NLS=yes
21646fi
21647
21648  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
21649$as_echo "$USE_NLS" >&6; }
21650
21651
21652
21653
21654  LIBINTL=
21655  LTLIBINTL=
21656  POSUB=
21657
21658    if test "$USE_NLS" = "yes"; then
21659    gt_use_preinstalled_gnugettext=no
21660
21661
21662
21663
21664
21665
21666        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21667$as_echo_n "checking for GNU gettext in libc... " >&6; }
21668if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21669  $as_echo_n "(cached) " >&6
21670else
21671  cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h.  */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h.  */
21677#include <libintl.h>
21678extern int _nl_msg_cat_cntr;
21679extern int *_nl_domain_bindings;
21680int
21681main ()
21682{
21683bindtextdomain ("", "");
21684return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21685  ;
21686  return 0;
21687}
21688_ACEOF
21689rm -f conftest.$ac_objext conftest$ac_exeext
21690if { (ac_try="$ac_link"
21691case "(($ac_try" in
21692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693  *) ac_try_echo=$ac_try;;
21694esac
21695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21696$as_echo "$ac_try_echo") >&5
21697  (eval "$ac_link") 2>conftest.er1
21698  ac_status=$?
21699  grep -v '^ *+' conftest.er1 >conftest.err
21700  rm -f conftest.er1
21701  cat conftest.err >&5
21702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703  (exit $ac_status); } && {
21704	 test -z "$ac_c_werror_flag" ||
21705	 test ! -s conftest.err
21706       } && test -s conftest$ac_exeext && {
21707	 test "$cross_compiling" = yes ||
21708	 $as_test_x conftest$ac_exeext
21709       }; then
21710  gt_cv_func_gnugettext1_libc=yes
21711else
21712  $as_echo "$as_me: failed program was:" >&5
21713sed 's/^/| /' conftest.$ac_ext >&5
21714
21715	gt_cv_func_gnugettext1_libc=no
21716fi
21717
21718rm -rf conftest.dSYM
21719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720      conftest$ac_exeext conftest.$ac_ext
21721fi
21722{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21723$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21724
21725        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21726
21727
21728
21729
21730
21731          am_save_CPPFLAGS="$CPPFLAGS"
21732
21733  for element in $INCICONV; do
21734    haveit=
21735    for x in $CPPFLAGS; do
21736
21737  acl_save_prefix="$prefix"
21738  prefix="$acl_final_prefix"
21739  acl_save_exec_prefix="$exec_prefix"
21740  exec_prefix="$acl_final_exec_prefix"
21741  eval x=\"$x\"
21742  exec_prefix="$acl_save_exec_prefix"
21743  prefix="$acl_save_prefix"
21744
21745      if test "X$x" = "X$element"; then
21746        haveit=yes
21747        break
21748      fi
21749    done
21750    if test -z "$haveit"; then
21751      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21752    fi
21753  done
21754
21755
21756  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21757$as_echo_n "checking for iconv... " >&6; }
21758if test "${am_cv_func_iconv+set}" = set; then
21759  $as_echo_n "(cached) " >&6
21760else
21761
21762    am_cv_func_iconv="no, consider installing GNU libiconv"
21763    am_cv_lib_iconv=no
21764    cat >conftest.$ac_ext <<_ACEOF
21765/* confdefs.h.  */
21766_ACEOF
21767cat confdefs.h >>conftest.$ac_ext
21768cat >>conftest.$ac_ext <<_ACEOF
21769/* end confdefs.h.  */
21770#include <stdlib.h>
21771#include <iconv.h>
21772int
21773main ()
21774{
21775iconv_t cd = iconv_open("","");
21776       iconv(cd,NULL,NULL,NULL,NULL);
21777       iconv_close(cd);
21778  ;
21779  return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext conftest$ac_exeext
21783if { (ac_try="$ac_link"
21784case "(($ac_try" in
21785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786  *) ac_try_echo=$ac_try;;
21787esac
21788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21789$as_echo "$ac_try_echo") >&5
21790  (eval "$ac_link") 2>conftest.er1
21791  ac_status=$?
21792  grep -v '^ *+' conftest.er1 >conftest.err
21793  rm -f conftest.er1
21794  cat conftest.err >&5
21795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796  (exit $ac_status); } && {
21797	 test -z "$ac_c_werror_flag" ||
21798	 test ! -s conftest.err
21799       } && test -s conftest$ac_exeext && {
21800	 test "$cross_compiling" = yes ||
21801	 $as_test_x conftest$ac_exeext
21802       }; then
21803  am_cv_func_iconv=yes
21804else
21805  $as_echo "$as_me: failed program was:" >&5
21806sed 's/^/| /' conftest.$ac_ext >&5
21807
21808
21809fi
21810
21811rm -rf conftest.dSYM
21812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813      conftest$ac_exeext conftest.$ac_ext
21814    if test "$am_cv_func_iconv" != yes; then
21815      am_save_LIBS="$LIBS"
21816      LIBS="$LIBS $LIBICONV"
21817      cat >conftest.$ac_ext <<_ACEOF
21818/* confdefs.h.  */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h.  */
21823#include <stdlib.h>
21824#include <iconv.h>
21825int
21826main ()
21827{
21828iconv_t cd = iconv_open("","");
21829         iconv(cd,NULL,NULL,NULL,NULL);
21830         iconv_close(cd);
21831  ;
21832  return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext conftest$ac_exeext
21836if { (ac_try="$ac_link"
21837case "(($ac_try" in
21838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839  *) ac_try_echo=$ac_try;;
21840esac
21841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21842$as_echo "$ac_try_echo") >&5
21843  (eval "$ac_link") 2>conftest.er1
21844  ac_status=$?
21845  grep -v '^ *+' conftest.er1 >conftest.err
21846  rm -f conftest.er1
21847  cat conftest.err >&5
21848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849  (exit $ac_status); } && {
21850	 test -z "$ac_c_werror_flag" ||
21851	 test ! -s conftest.err
21852       } && test -s conftest$ac_exeext && {
21853	 test "$cross_compiling" = yes ||
21854	 $as_test_x conftest$ac_exeext
21855       }; then
21856  am_cv_lib_iconv=yes
21857        am_cv_func_iconv=yes
21858else
21859  $as_echo "$as_me: failed program was:" >&5
21860sed 's/^/| /' conftest.$ac_ext >&5
21861
21862
21863fi
21864
21865rm -rf conftest.dSYM
21866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867      conftest$ac_exeext conftest.$ac_ext
21868      LIBS="$am_save_LIBS"
21869    fi
21870
21871fi
21872{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21873$as_echo "$am_cv_func_iconv" >&6; }
21874  if test "$am_cv_func_iconv" = yes; then
21875
21876cat >>confdefs.h <<\_ACEOF
21877#define HAVE_ICONV 1
21878_ACEOF
21879
21880  fi
21881  if test "$am_cv_lib_iconv" = yes; then
21882    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21883$as_echo_n "checking how to link with libiconv... " >&6; }
21884    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21885$as_echo "$LIBICONV" >&6; }
21886  else
21887            CPPFLAGS="$am_save_CPPFLAGS"
21888    LIBICONV=
21889    LTLIBICONV=
21890  fi
21891
21892
21893
21894
21895
21896
21897    use_additional=yes
21898
21899  acl_save_prefix="$prefix"
21900  prefix="$acl_final_prefix"
21901  acl_save_exec_prefix="$exec_prefix"
21902  exec_prefix="$acl_final_exec_prefix"
21903
21904    eval additional_includedir=\"$includedir\"
21905    eval additional_libdir=\"$libdir\"
21906
21907  exec_prefix="$acl_save_exec_prefix"
21908  prefix="$acl_save_prefix"
21909
21910
21911# Check whether --with-libintl-prefix was given.
21912if test "${with_libintl_prefix+set}" = set; then
21913  withval=$with_libintl_prefix;
21914    if test "X$withval" = "Xno"; then
21915      use_additional=no
21916    else
21917      if test "X$withval" = "X"; then
21918
21919  acl_save_prefix="$prefix"
21920  prefix="$acl_final_prefix"
21921  acl_save_exec_prefix="$exec_prefix"
21922  exec_prefix="$acl_final_exec_prefix"
21923
21924          eval additional_includedir=\"$includedir\"
21925          eval additional_libdir=\"$libdir\"
21926
21927  exec_prefix="$acl_save_exec_prefix"
21928  prefix="$acl_save_prefix"
21929
21930      else
21931        additional_includedir="$withval/include"
21932        additional_libdir="$withval/lib"
21933      fi
21934    fi
21935
21936fi
21937
21938      LIBINTL=
21939  LTLIBINTL=
21940  INCINTL=
21941  rpathdirs=
21942  ltrpathdirs=
21943  names_already_handled=
21944  names_next_round='intl '
21945  while test -n "$names_next_round"; do
21946    names_this_round="$names_next_round"
21947    names_next_round=
21948    for name in $names_this_round; do
21949      already_handled=
21950      for n in $names_already_handled; do
21951        if test "$n" = "$name"; then
21952          already_handled=yes
21953          break
21954        fi
21955      done
21956      if test -z "$already_handled"; then
21957        names_already_handled="$names_already_handled $name"
21958                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21959        eval value=\"\$HAVE_LIB$uppername\"
21960        if test -n "$value"; then
21961          if test "$value" = yes; then
21962            eval value=\"\$LIB$uppername\"
21963            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21964            eval value=\"\$LTLIB$uppername\"
21965            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21966          else
21967                                    :
21968          fi
21969        else
21970                              found_dir=
21971          found_la=
21972          found_so=
21973          found_a=
21974          if test $use_additional = yes; then
21975            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21976              found_dir="$additional_libdir"
21977              found_so="$additional_libdir/lib$name.$shlibext"
21978              if test -f "$additional_libdir/lib$name.la"; then
21979                found_la="$additional_libdir/lib$name.la"
21980              fi
21981            else
21982              if test -f "$additional_libdir/lib$name.$libext"; then
21983                found_dir="$additional_libdir"
21984                found_a="$additional_libdir/lib$name.$libext"
21985                if test -f "$additional_libdir/lib$name.la"; then
21986                  found_la="$additional_libdir/lib$name.la"
21987                fi
21988              fi
21989            fi
21990          fi
21991          if test "X$found_dir" = "X"; then
21992            for x in $LDFLAGS $LTLIBINTL; do
21993
21994  acl_save_prefix="$prefix"
21995  prefix="$acl_final_prefix"
21996  acl_save_exec_prefix="$exec_prefix"
21997  exec_prefix="$acl_final_exec_prefix"
21998  eval x=\"$x\"
21999  exec_prefix="$acl_save_exec_prefix"
22000  prefix="$acl_save_prefix"
22001
22002              case "$x" in
22003                -L*)
22004                  dir=`echo "X$x" | sed -e 's/^X-L//'`
22005                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22006                    found_dir="$dir"
22007                    found_so="$dir/lib$name.$shlibext"
22008                    if test -f "$dir/lib$name.la"; then
22009                      found_la="$dir/lib$name.la"
22010                    fi
22011                  else
22012                    if test -f "$dir/lib$name.$libext"; then
22013                      found_dir="$dir"
22014                      found_a="$dir/lib$name.$libext"
22015                      if test -f "$dir/lib$name.la"; then
22016                        found_la="$dir/lib$name.la"
22017                      fi
22018                    fi
22019                  fi
22020                  ;;
22021              esac
22022              if test "X$found_dir" != "X"; then
22023                break
22024              fi
22025            done
22026          fi
22027          if test "X$found_dir" != "X"; then
22028                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22029            if test "X$found_so" != "X"; then
22030                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22031                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22032              else
22033                                                                                haveit=
22034                for x in $ltrpathdirs; do
22035                  if test "X$x" = "X$found_dir"; then
22036                    haveit=yes
22037                    break
22038                  fi
22039                done
22040                if test -z "$haveit"; then
22041                  ltrpathdirs="$ltrpathdirs $found_dir"
22042                fi
22043                                if test "$hardcode_direct" = yes; then
22044                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22045                else
22046                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22047                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22048                                                            haveit=
22049                    for x in $rpathdirs; do
22050                      if test "X$x" = "X$found_dir"; then
22051                        haveit=yes
22052                        break
22053                      fi
22054                    done
22055                    if test -z "$haveit"; then
22056                      rpathdirs="$rpathdirs $found_dir"
22057                    fi
22058                  else
22059                                                                                haveit=
22060                    for x in $LDFLAGS $LIBINTL; do
22061
22062  acl_save_prefix="$prefix"
22063  prefix="$acl_final_prefix"
22064  acl_save_exec_prefix="$exec_prefix"
22065  exec_prefix="$acl_final_exec_prefix"
22066  eval x=\"$x\"
22067  exec_prefix="$acl_save_exec_prefix"
22068  prefix="$acl_save_prefix"
22069
22070                      if test "X$x" = "X-L$found_dir"; then
22071                        haveit=yes
22072                        break
22073                      fi
22074                    done
22075                    if test -z "$haveit"; then
22076                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22077                    fi
22078                    if test "$hardcode_minus_L" != no; then
22079                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22080                    else
22081                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22082                    fi
22083                  fi
22084                fi
22085              fi
22086            else
22087              if test "X$found_a" != "X"; then
22088                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22089              else
22090                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22091              fi
22092            fi
22093                        additional_includedir=
22094            case "$found_dir" in
22095              */lib | */lib/)
22096                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22097                additional_includedir="$basedir/include"
22098                ;;
22099            esac
22100            if test "X$additional_includedir" != "X"; then
22101                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
22102                haveit=
22103                if test "X$additional_includedir" = "X/usr/local/include"; then
22104                  if test -n "$GCC"; then
22105                    case $host_os in
22106                      linux*) haveit=yes;;
22107                    esac
22108                  fi
22109                fi
22110                if test -z "$haveit"; then
22111                  for x in $CPPFLAGS $INCINTL; do
22112
22113  acl_save_prefix="$prefix"
22114  prefix="$acl_final_prefix"
22115  acl_save_exec_prefix="$exec_prefix"
22116  exec_prefix="$acl_final_exec_prefix"
22117  eval x=\"$x\"
22118  exec_prefix="$acl_save_exec_prefix"
22119  prefix="$acl_save_prefix"
22120
22121                    if test "X$x" = "X-I$additional_includedir"; then
22122                      haveit=yes
22123                      break
22124                    fi
22125                  done
22126                  if test -z "$haveit"; then
22127                    if test -d "$additional_includedir"; then
22128                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22129                    fi
22130                  fi
22131                fi
22132              fi
22133            fi
22134                        if test -n "$found_la"; then
22135                                                        save_libdir="$libdir"
22136              case "$found_la" in
22137                */* | *\\*) . "$found_la" ;;
22138                *) . "./$found_la" ;;
22139              esac
22140              libdir="$save_libdir"
22141                            for dep in $dependency_libs; do
22142                case "$dep" in
22143                  -L*)
22144                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22145                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
22146                      haveit=
22147                      if test "X$additional_libdir" = "X/usr/local/lib"; then
22148                        if test -n "$GCC"; then
22149                          case $host_os in
22150                            linux*) haveit=yes;;
22151                          esac
22152                        fi
22153                      fi
22154                      if test -z "$haveit"; then
22155                        haveit=
22156                        for x in $LDFLAGS $LIBINTL; do
22157
22158  acl_save_prefix="$prefix"
22159  prefix="$acl_final_prefix"
22160  acl_save_exec_prefix="$exec_prefix"
22161  exec_prefix="$acl_final_exec_prefix"
22162  eval x=\"$x\"
22163  exec_prefix="$acl_save_exec_prefix"
22164  prefix="$acl_save_prefix"
22165
22166                          if test "X$x" = "X-L$additional_libdir"; then
22167                            haveit=yes
22168                            break
22169                          fi
22170                        done
22171                        if test -z "$haveit"; then
22172                          if test -d "$additional_libdir"; then
22173                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22174                          fi
22175                        fi
22176                        haveit=
22177                        for x in $LDFLAGS $LTLIBINTL; do
22178
22179  acl_save_prefix="$prefix"
22180  prefix="$acl_final_prefix"
22181  acl_save_exec_prefix="$exec_prefix"
22182  exec_prefix="$acl_final_exec_prefix"
22183  eval x=\"$x\"
22184  exec_prefix="$acl_save_exec_prefix"
22185  prefix="$acl_save_prefix"
22186
22187                          if test "X$x" = "X-L$additional_libdir"; then
22188                            haveit=yes
22189                            break
22190                          fi
22191                        done
22192                        if test -z "$haveit"; then
22193                          if test -d "$additional_libdir"; then
22194                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22195                          fi
22196                        fi
22197                      fi
22198                    fi
22199                    ;;
22200                  -R*)
22201                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
22202                    if test "$enable_rpath" != no; then
22203                                                                  haveit=
22204                      for x in $rpathdirs; do
22205                        if test "X$x" = "X$dir"; then
22206                          haveit=yes
22207                          break
22208                        fi
22209                      done
22210                      if test -z "$haveit"; then
22211                        rpathdirs="$rpathdirs $dir"
22212                      fi
22213                                                                  haveit=
22214                      for x in $ltrpathdirs; do
22215                        if test "X$x" = "X$dir"; then
22216                          haveit=yes
22217                          break
22218                        fi
22219                      done
22220                      if test -z "$haveit"; then
22221                        ltrpathdirs="$ltrpathdirs $dir"
22222                      fi
22223                    fi
22224                    ;;
22225                  -l*)
22226                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22227                    ;;
22228                  *.la)
22229                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22230                    ;;
22231                  *)
22232                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22233                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22234                    ;;
22235                esac
22236              done
22237            fi
22238          else
22239                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22240            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22241          fi
22242        fi
22243      fi
22244    done
22245  done
22246  if test "X$rpathdirs" != "X"; then
22247    if test -n "$hardcode_libdir_separator"; then
22248                        alldirs=
22249      for found_dir in $rpathdirs; do
22250        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22251      done
22252            acl_save_libdir="$libdir"
22253      libdir="$alldirs"
22254      eval flag=\"$hardcode_libdir_flag_spec\"
22255      libdir="$acl_save_libdir"
22256      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22257    else
22258            for found_dir in $rpathdirs; do
22259        acl_save_libdir="$libdir"
22260        libdir="$found_dir"
22261        eval flag=\"$hardcode_libdir_flag_spec\"
22262        libdir="$acl_save_libdir"
22263        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22264      done
22265    fi
22266  fi
22267  if test "X$ltrpathdirs" != "X"; then
22268            for found_dir in $ltrpathdirs; do
22269      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22270    done
22271  fi
22272
22273          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22274$as_echo_n "checking for GNU gettext in libintl... " >&6; }
22275if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22276  $as_echo_n "(cached) " >&6
22277else
22278  gt_save_CPPFLAGS="$CPPFLAGS"
22279            CPPFLAGS="$CPPFLAGS $INCINTL"
22280            gt_save_LIBS="$LIBS"
22281            LIBS="$LIBS $LIBINTL"
22282                        cat >conftest.$ac_ext <<_ACEOF
22283/* confdefs.h.  */
22284_ACEOF
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h.  */
22288#include <libintl.h>
22289extern int _nl_msg_cat_cntr;
22290extern
22291#ifdef __cplusplus
22292"C"
22293#endif
22294const char *_nl_expand_alias ();
22295int
22296main ()
22297{
22298bindtextdomain ("", "");
22299return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
22300  ;
22301  return 0;
22302}
22303_ACEOF
22304rm -f conftest.$ac_objext conftest$ac_exeext
22305if { (ac_try="$ac_link"
22306case "(($ac_try" in
22307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308  *) ac_try_echo=$ac_try;;
22309esac
22310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311$as_echo "$ac_try_echo") >&5
22312  (eval "$ac_link") 2>conftest.er1
22313  ac_status=$?
22314  grep -v '^ *+' conftest.er1 >conftest.err
22315  rm -f conftest.er1
22316  cat conftest.err >&5
22317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318  (exit $ac_status); } && {
22319	 test -z "$ac_c_werror_flag" ||
22320	 test ! -s conftest.err
22321       } && test -s conftest$ac_exeext && {
22322	 test "$cross_compiling" = yes ||
22323	 $as_test_x conftest$ac_exeext
22324       }; then
22325  gt_cv_func_gnugettext1_libintl=yes
22326else
22327  $as_echo "$as_me: failed program was:" >&5
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
22330	gt_cv_func_gnugettext1_libintl=no
22331fi
22332
22333rm -rf conftest.dSYM
22334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335      conftest$ac_exeext conftest.$ac_ext
22336                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
22337              LIBS="$LIBS $LIBICONV"
22338              cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h.  */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h.  */
22344#include <libintl.h>
22345extern int _nl_msg_cat_cntr;
22346extern
22347#ifdef __cplusplus
22348"C"
22349#endif
22350const char *_nl_expand_alias ();
22351int
22352main ()
22353{
22354bindtextdomain ("", "");
22355return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
22356  ;
22357  return 0;
22358}
22359_ACEOF
22360rm -f conftest.$ac_objext conftest$ac_exeext
22361if { (ac_try="$ac_link"
22362case "(($ac_try" in
22363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364  *) ac_try_echo=$ac_try;;
22365esac
22366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367$as_echo "$ac_try_echo") >&5
22368  (eval "$ac_link") 2>conftest.er1
22369  ac_status=$?
22370  grep -v '^ *+' conftest.er1 >conftest.err
22371  rm -f conftest.er1
22372  cat conftest.err >&5
22373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374  (exit $ac_status); } && {
22375	 test -z "$ac_c_werror_flag" ||
22376	 test ! -s conftest.err
22377       } && test -s conftest$ac_exeext && {
22378	 test "$cross_compiling" = yes ||
22379	 $as_test_x conftest$ac_exeext
22380       }; then
22381  LIBINTL="$LIBINTL $LIBICONV"
22382                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22383                gt_cv_func_gnugettext1_libintl=yes
22384
22385else
22386  $as_echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389
22390fi
22391
22392rm -rf conftest.dSYM
22393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22394      conftest$ac_exeext conftest.$ac_ext
22395            fi
22396            CPPFLAGS="$gt_save_CPPFLAGS"
22397            LIBS="$gt_save_LIBS"
22398fi
22399{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22400$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
22401        fi
22402
22403                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22404           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22405                && test "$PACKAGE" != gettext-runtime \
22406                && test "$PACKAGE" != gettext-tools; }; then
22407          gt_use_preinstalled_gnugettext=yes
22408        else
22409                    LIBINTL=
22410          LTLIBINTL=
22411          INCINTL=
22412        fi
22413
22414
22415
22416    if test "$gt_use_preinstalled_gnugettext" = "yes" \
22417       || test "$nls_cv_use_gnu_gettext" = "yes"; then
22418
22419cat >>confdefs.h <<\_ACEOF
22420#define ENABLE_NLS 1
22421_ACEOF
22422
22423    else
22424      USE_NLS=no
22425    fi
22426  fi
22427
22428  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
22429$as_echo_n "checking whether to use NLS... " >&6; }
22430  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22431$as_echo "$USE_NLS" >&6; }
22432  if test "$USE_NLS" = "yes"; then
22433    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22434$as_echo_n "checking where the gettext function comes from... " >&6; }
22435    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22436      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22437        gt_source="external libintl"
22438      else
22439        gt_source="libc"
22440      fi
22441    else
22442      gt_source="included intl directory"
22443    fi
22444    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
22445$as_echo "$gt_source" >&6; }
22446  fi
22447
22448  if test "$USE_NLS" = "yes"; then
22449
22450    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22451      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22452        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
22453$as_echo_n "checking how to link with libintl... " >&6; }
22454        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
22455$as_echo "$LIBINTL" >&6; }
22456
22457  for element in $INCINTL; do
22458    haveit=
22459    for x in $CPPFLAGS; do
22460
22461  acl_save_prefix="$prefix"
22462  prefix="$acl_final_prefix"
22463  acl_save_exec_prefix="$exec_prefix"
22464  exec_prefix="$acl_final_exec_prefix"
22465  eval x=\"$x\"
22466  exec_prefix="$acl_save_exec_prefix"
22467  prefix="$acl_save_prefix"
22468
22469      if test "X$x" = "X$element"; then
22470        haveit=yes
22471        break
22472      fi
22473    done
22474    if test -z "$haveit"; then
22475      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22476    fi
22477  done
22478
22479      fi
22480
22481
22482cat >>confdefs.h <<\_ACEOF
22483#define HAVE_GETTEXT 1
22484_ACEOF
22485
22486
22487cat >>confdefs.h <<\_ACEOF
22488#define HAVE_DCGETTEXT 1
22489_ACEOF
22490
22491    fi
22492
22493        POSUB=po
22494  fi
22495
22496
22497
22498    INTLLIBS="$LIBINTL"
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512          am_save_CPPFLAGS="$CPPFLAGS"
22513
22514  for element in $INCICONV; do
22515    haveit=
22516    for x in $CPPFLAGS; do
22517
22518  acl_save_prefix="$prefix"
22519  prefix="$acl_final_prefix"
22520  acl_save_exec_prefix="$exec_prefix"
22521  exec_prefix="$acl_final_exec_prefix"
22522  eval x=\"$x\"
22523  exec_prefix="$acl_save_exec_prefix"
22524  prefix="$acl_save_prefix"
22525
22526      if test "X$x" = "X$element"; then
22527        haveit=yes
22528        break
22529      fi
22530    done
22531    if test -z "$haveit"; then
22532      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22533    fi
22534  done
22535
22536
22537  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
22538$as_echo_n "checking for iconv... " >&6; }
22539if test "${am_cv_func_iconv+set}" = set; then
22540  $as_echo_n "(cached) " >&6
22541else
22542
22543    am_cv_func_iconv="no, consider installing GNU libiconv"
22544    am_cv_lib_iconv=no
22545    cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h.  */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h.  */
22551#include <stdlib.h>
22552#include <iconv.h>
22553int
22554main ()
22555{
22556iconv_t cd = iconv_open("","");
22557       iconv(cd,NULL,NULL,NULL,NULL);
22558       iconv_close(cd);
22559  ;
22560  return 0;
22561}
22562_ACEOF
22563rm -f conftest.$ac_objext conftest$ac_exeext
22564if { (ac_try="$ac_link"
22565case "(($ac_try" in
22566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567  *) ac_try_echo=$ac_try;;
22568esac
22569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22570$as_echo "$ac_try_echo") >&5
22571  (eval "$ac_link") 2>conftest.er1
22572  ac_status=$?
22573  grep -v '^ *+' conftest.er1 >conftest.err
22574  rm -f conftest.er1
22575  cat conftest.err >&5
22576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577  (exit $ac_status); } && {
22578	 test -z "$ac_c_werror_flag" ||
22579	 test ! -s conftest.err
22580       } && test -s conftest$ac_exeext && {
22581	 test "$cross_compiling" = yes ||
22582	 $as_test_x conftest$ac_exeext
22583       }; then
22584  am_cv_func_iconv=yes
22585else
22586  $as_echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589
22590fi
22591
22592rm -rf conftest.dSYM
22593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22594      conftest$ac_exeext conftest.$ac_ext
22595    if test "$am_cv_func_iconv" != yes; then
22596      am_save_LIBS="$LIBS"
22597      LIBS="$LIBS $LIBICONV"
22598      cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h.  */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h.  */
22604#include <stdlib.h>
22605#include <iconv.h>
22606int
22607main ()
22608{
22609iconv_t cd = iconv_open("","");
22610         iconv(cd,NULL,NULL,NULL,NULL);
22611         iconv_close(cd);
22612  ;
22613  return 0;
22614}
22615_ACEOF
22616rm -f conftest.$ac_objext conftest$ac_exeext
22617if { (ac_try="$ac_link"
22618case "(($ac_try" in
22619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620  *) ac_try_echo=$ac_try;;
22621esac
22622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22623$as_echo "$ac_try_echo") >&5
22624  (eval "$ac_link") 2>conftest.er1
22625  ac_status=$?
22626  grep -v '^ *+' conftest.er1 >conftest.err
22627  rm -f conftest.er1
22628  cat conftest.err >&5
22629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630  (exit $ac_status); } && {
22631	 test -z "$ac_c_werror_flag" ||
22632	 test ! -s conftest.err
22633       } && test -s conftest$ac_exeext && {
22634	 test "$cross_compiling" = yes ||
22635	 $as_test_x conftest$ac_exeext
22636       }; then
22637  am_cv_lib_iconv=yes
22638        am_cv_func_iconv=yes
22639else
22640  $as_echo "$as_me: failed program was:" >&5
22641sed 's/^/| /' conftest.$ac_ext >&5
22642
22643
22644fi
22645
22646rm -rf conftest.dSYM
22647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648      conftest$ac_exeext conftest.$ac_ext
22649      LIBS="$am_save_LIBS"
22650    fi
22651
22652fi
22653{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22654$as_echo "$am_cv_func_iconv" >&6; }
22655  if test "$am_cv_func_iconv" = yes; then
22656
22657cat >>confdefs.h <<\_ACEOF
22658#define HAVE_ICONV 1
22659_ACEOF
22660
22661  fi
22662  if test "$am_cv_lib_iconv" = yes; then
22663    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22664$as_echo_n "checking how to link with libiconv... " >&6; }
22665    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
22666$as_echo "$LIBICONV" >&6; }
22667  else
22668            CPPFLAGS="$am_save_CPPFLAGS"
22669    LIBICONV=
22670    LTLIBICONV=
22671  fi
22672
22673
22674
22675  if test "$am_cv_func_iconv" = yes; then
22676    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
22677$as_echo_n "checking for iconv declaration... " >&6; }
22678    if test "${am_cv_proto_iconv+set}" = set; then
22679  $as_echo_n "(cached) " >&6
22680else
22681
22682      cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h.  */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h.  */
22688
22689#include <stdlib.h>
22690#include <iconv.h>
22691extern
22692#ifdef __cplusplus
22693"C"
22694#endif
22695#if defined(__STDC__) || defined(__cplusplus)
22696size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22697#else
22698size_t iconv();
22699#endif
22700
22701int
22702main ()
22703{
22704
22705  ;
22706  return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext
22710if { (ac_try="$ac_compile"
22711case "(($ac_try" in
22712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713  *) ac_try_echo=$ac_try;;
22714esac
22715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22716$as_echo "$ac_try_echo") >&5
22717  (eval "$ac_compile") 2>conftest.er1
22718  ac_status=$?
22719  grep -v '^ *+' conftest.er1 >conftest.err
22720  rm -f conftest.er1
22721  cat conftest.err >&5
22722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723  (exit $ac_status); } && {
22724	 test -z "$ac_c_werror_flag" ||
22725	 test ! -s conftest.err
22726       } && test -s conftest.$ac_objext; then
22727  am_cv_proto_iconv_arg1=""
22728else
22729  $as_echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732	am_cv_proto_iconv_arg1="const"
22733fi
22734
22735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22737fi
22738
22739    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22740    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
22741         }$am_cv_proto_iconv" >&5
22742$as_echo "${ac_t:-
22743         }$am_cv_proto_iconv" >&6; }
22744
22745cat >>confdefs.h <<_ACEOF
22746#define ICONV_CONST $am_cv_proto_iconv_arg1
22747_ACEOF
22748
22749  fi
22750
22751
22752
22753
22754
22755for ac_header in getopt.h wchar.h iconv.h
22756do
22757as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22759  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22760$as_echo_n "checking for $ac_header... " >&6; }
22761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22762  $as_echo_n "(cached) " >&6
22763fi
22764ac_res=`eval 'as_val=${'$as_ac_Header'}
22765		 $as_echo "$as_val"'`
22766	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22767$as_echo "$ac_res" >&6; }
22768else
22769  # Is the header compilable?
22770{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22771$as_echo_n "checking $ac_header usability... " >&6; }
22772cat >conftest.$ac_ext <<_ACEOF
22773/* confdefs.h.  */
22774_ACEOF
22775cat confdefs.h >>conftest.$ac_ext
22776cat >>conftest.$ac_ext <<_ACEOF
22777/* end confdefs.h.  */
22778$ac_includes_default
22779#include <$ac_header>
22780_ACEOF
22781rm -f conftest.$ac_objext
22782if { (ac_try="$ac_compile"
22783case "(($ac_try" in
22784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785  *) ac_try_echo=$ac_try;;
22786esac
22787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22788$as_echo "$ac_try_echo") >&5
22789  (eval "$ac_compile") 2>conftest.er1
22790  ac_status=$?
22791  grep -v '^ *+' conftest.er1 >conftest.err
22792  rm -f conftest.er1
22793  cat conftest.err >&5
22794  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795  (exit $ac_status); } && {
22796	 test -z "$ac_c_werror_flag" ||
22797	 test ! -s conftest.err
22798       } && test -s conftest.$ac_objext; then
22799  ac_header_compiler=yes
22800else
22801  $as_echo "$as_me: failed program was:" >&5
22802sed 's/^/| /' conftest.$ac_ext >&5
22803
22804	ac_header_compiler=no
22805fi
22806
22807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22809$as_echo "$ac_header_compiler" >&6; }
22810
22811# Is the header present?
22812{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22813$as_echo_n "checking $ac_header presence... " >&6; }
22814cat >conftest.$ac_ext <<_ACEOF
22815/* confdefs.h.  */
22816_ACEOF
22817cat confdefs.h >>conftest.$ac_ext
22818cat >>conftest.$ac_ext <<_ACEOF
22819/* end confdefs.h.  */
22820#include <$ac_header>
22821_ACEOF
22822if { (ac_try="$ac_cpp conftest.$ac_ext"
22823case "(($ac_try" in
22824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825  *) ac_try_echo=$ac_try;;
22826esac
22827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22828$as_echo "$ac_try_echo") >&5
22829  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22830  ac_status=$?
22831  grep -v '^ *+' conftest.er1 >conftest.err
22832  rm -f conftest.er1
22833  cat conftest.err >&5
22834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835  (exit $ac_status); } >/dev/null && {
22836	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22837	 test ! -s conftest.err
22838       }; then
22839  ac_header_preproc=yes
22840else
22841  $as_echo "$as_me: failed program was:" >&5
22842sed 's/^/| /' conftest.$ac_ext >&5
22843
22844  ac_header_preproc=no
22845fi
22846
22847rm -f conftest.err conftest.$ac_ext
22848{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22849$as_echo "$ac_header_preproc" >&6; }
22850
22851# So?  What about this header?
22852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22853  yes:no: )
22854    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22855$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22856    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22857$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22858    ac_header_preproc=yes
22859    ;;
22860  no:yes:* )
22861    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22862$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22863    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22864$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22865    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22866$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22867    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22868$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22869    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22870$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22871    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22872$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22873
22874    ;;
22875esac
22876{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22877$as_echo_n "checking for $ac_header... " >&6; }
22878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22879  $as_echo_n "(cached) " >&6
22880else
22881  eval "$as_ac_Header=\$ac_header_preproc"
22882fi
22883ac_res=`eval 'as_val=${'$as_ac_Header'}
22884		 $as_echo "$as_val"'`
22885	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22886$as_echo "$ac_res" >&6; }
22887
22888fi
22889as_val=`eval 'as_val=${'$as_ac_Header'}
22890		 $as_echo "$as_val"'`
22891   if test "x$as_val" = x""yes; then
22892  cat >>confdefs.h <<_ACEOF
22893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22894_ACEOF
22895
22896fi
22897
22898done
22899
22900
22901
22902
22903
22904if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22905	if test -n "$ac_tool_prefix"; then
22906  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22907set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22909$as_echo_n "checking for $ac_word... " >&6; }
22910if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22911  $as_echo_n "(cached) " >&6
22912else
22913  case $PKG_CONFIG in
22914  [\\/]* | ?:[\\/]*)
22915  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22916  ;;
22917  *)
22918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22919for as_dir in $PATH
22920do
22921  IFS=$as_save_IFS
22922  test -z "$as_dir" && as_dir=.
22923  for ac_exec_ext in '' $ac_executable_extensions; do
22924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22925    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22927    break 2
22928  fi
22929done
22930done
22931IFS=$as_save_IFS
22932
22933  ;;
22934esac
22935fi
22936PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22937if test -n "$PKG_CONFIG"; then
22938  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22939$as_echo "$PKG_CONFIG" >&6; }
22940else
22941  { $as_echo "$as_me:$LINENO: result: no" >&5
22942$as_echo "no" >&6; }
22943fi
22944
22945
22946fi
22947if test -z "$ac_cv_path_PKG_CONFIG"; then
22948  ac_pt_PKG_CONFIG=$PKG_CONFIG
22949  # Extract the first word of "pkg-config", so it can be a program name with args.
22950set dummy pkg-config; ac_word=$2
22951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22952$as_echo_n "checking for $ac_word... " >&6; }
22953if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22954  $as_echo_n "(cached) " >&6
22955else
22956  case $ac_pt_PKG_CONFIG in
22957  [\\/]* | ?:[\\/]*)
22958  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22959  ;;
22960  *)
22961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962for as_dir in $PATH
22963do
22964  IFS=$as_save_IFS
22965  test -z "$as_dir" && as_dir=.
22966  for ac_exec_ext in '' $ac_executable_extensions; do
22967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22968    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22970    break 2
22971  fi
22972done
22973done
22974IFS=$as_save_IFS
22975
22976  ;;
22977esac
22978fi
22979ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22980if test -n "$ac_pt_PKG_CONFIG"; then
22981  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22982$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22983else
22984  { $as_echo "$as_me:$LINENO: result: no" >&5
22985$as_echo "no" >&6; }
22986fi
22987
22988  if test "x$ac_pt_PKG_CONFIG" = x; then
22989    PKG_CONFIG=""
22990  else
22991    case $cross_compiling:$ac_tool_warned in
22992yes:)
22993{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
22994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22995ac_tool_warned=yes ;;
22996esac
22997    PKG_CONFIG=$ac_pt_PKG_CONFIG
22998  fi
22999else
23000  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23001fi
23002
23003fi
23004if test -n "$PKG_CONFIG"; then
23005	_pkg_min_version=0.9.0
23006	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23007$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23008	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23009		{ $as_echo "$as_me:$LINENO: result: yes" >&5
23010$as_echo "yes" >&6; }
23011	else
23012		{ $as_echo "$as_me:$LINENO: result: no" >&5
23013$as_echo "no" >&6; }
23014		PKG_CONFIG=""
23015	fi
23016
23017fi
23018
23019
23020# Check whether --with-html-dir was given.
23021if test "${with_html_dir+set}" = set; then
23022  withval=$with_html_dir;
23023else
23024  with_html_dir='${datadir}/gtk-doc/html'
23025fi
23026
23027  HTML_DIR="$with_html_dir"
23028
23029
23030    # Check whether --enable-gtk-doc was given.
23031if test "${enable_gtk_doc+set}" = set; then
23032  enableval=$enable_gtk_doc;
23033else
23034  enable_gtk_doc=no
23035fi
23036
23037
23038  if test x$enable_gtk_doc = xyes; then
23039    if test -n "$PKG_CONFIG" && \
23040    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
23041  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
23042  ac_status=$?
23043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044  (exit $ac_status); }; then
23045  :
23046else
23047  { { $as_echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&5
23048$as_echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&2;}
23049   { (exit 1); exit 1; }; }
23050fi
23051  fi
23052
23053  { $as_echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
23054$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
23055  { $as_echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
23056$as_echo "$enable_gtk_doc" >&6; }
23057
23058  for ac_prog in gtkdoc-check
23059do
23060  # Extract the first word of "$ac_prog", so it can be a program name with args.
23061set dummy $ac_prog; ac_word=$2
23062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23063$as_echo_n "checking for $ac_word... " >&6; }
23064if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
23065  $as_echo_n "(cached) " >&6
23066else
23067  case $GTKDOC_CHECK in
23068  [\\/]* | ?:[\\/]*)
23069  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
23070  ;;
23071  *)
23072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23073for as_dir in $PATH
23074do
23075  IFS=$as_save_IFS
23076  test -z "$as_dir" && as_dir=.
23077  for ac_exec_ext in '' $ac_executable_extensions; do
23078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23079    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
23080    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23081    break 2
23082  fi
23083done
23084done
23085IFS=$as_save_IFS
23086
23087  ;;
23088esac
23089fi
23090GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
23091if test -n "$GTKDOC_CHECK"; then
23092  { $as_echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
23093$as_echo "$GTKDOC_CHECK" >&6; }
23094else
23095  { $as_echo "$as_me:$LINENO: result: no" >&5
23096$as_echo "no" >&6; }
23097fi
23098
23099
23100  test -n "$GTKDOC_CHECK" && break
23101done
23102
23103
23104   if test x$enable_gtk_doc = xyes; then
23105  ENABLE_GTK_DOC_TRUE=
23106  ENABLE_GTK_DOC_FALSE='#'
23107else
23108  ENABLE_GTK_DOC_TRUE='#'
23109  ENABLE_GTK_DOC_FALSE=
23110fi
23111
23112   if test -n "$LIBTOOL"; then
23113  GTK_DOC_USE_LIBTOOL_TRUE=
23114  GTK_DOC_USE_LIBTOOL_FALSE='#'
23115else
23116  GTK_DOC_USE_LIBTOOL_TRUE='#'
23117  GTK_DOC_USE_LIBTOOL_FALSE=
23118fi
23119
23120
23121
23122
23123if test "x$GCC" = "xyes"; then
23124    CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
23125    LDFLAGS="$LDFLAGS -g -Wall"
23126
23127
23128fi
23129
23130ac_config_files="$ac_config_files Makefile libiptcdata.spec libiptcdata/Makefile m4/Makefile libiptcdata/libiptcdata.pc iptc/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml po/Makefile.in iptc/po/Makefile.in win/Makefile win/iptctool/Makefile python/Makefile"
23131
23132cat >confcache <<\_ACEOF
23133# This file is a shell script that caches the results of configure
23134# tests run on this system so they can be shared between configure
23135# scripts and configure runs, see configure's option --config-cache.
23136# It is not useful on other systems.  If it contains results you don't
23137# want to keep, you may remove or edit it.
23138#
23139# config.status only pays attention to the cache file if you give it
23140# the --recheck option to rerun configure.
23141#
23142# `ac_cv_env_foo' variables (set or unset) will be overridden when
23143# loading this file, other *unset* `ac_cv_foo' will be assigned the
23144# following values.
23145
23146_ACEOF
23147
23148# The following way of writing the cache mishandles newlines in values,
23149# but we know of no workaround that is simple, portable, and efficient.
23150# So, we kill variables containing newlines.
23151# Ultrix sh set writes to stderr and can't be redirected directly,
23152# and sets the high bit in the cache file unless we assign to the vars.
23153(
23154  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23155    eval ac_val=\$$ac_var
23156    case $ac_val in #(
23157    *${as_nl}*)
23158      case $ac_var in #(
23159      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23161      esac
23162      case $ac_var in #(
23163      _ | IFS | as_nl) ;; #(
23164      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23165      *) $as_unset $ac_var ;;
23166      esac ;;
23167    esac
23168  done
23169
23170  (set) 2>&1 |
23171    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23172    *${as_nl}ac_space=\ *)
23173      # `set' does not quote correctly, so add quotes (double-quote
23174      # substitution turns \\\\ into \\, and sed turns \\ into \).
23175      sed -n \
23176	"s/'/'\\\\''/g;
23177	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23178      ;; #(
23179    *)
23180      # `set' quotes correctly as required by POSIX, so do not add quotes.
23181      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23182      ;;
23183    esac |
23184    sort
23185) |
23186  sed '
23187     /^ac_cv_env_/b end
23188     t clear
23189     :clear
23190     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23191     t end
23192     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23193     :end' >>confcache
23194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23195  if test -w "$cache_file"; then
23196    test "x$cache_file" != "x/dev/null" &&
23197      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23198$as_echo "$as_me: updating cache $cache_file" >&6;}
23199    cat confcache >$cache_file
23200  else
23201    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23202$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23203  fi
23204fi
23205rm -f confcache
23206
23207test "x$prefix" = xNONE && prefix=$ac_default_prefix
23208# Let make expand exec_prefix.
23209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23210
23211DEFS=-DHAVE_CONFIG_H
23212
23213ac_libobjs=
23214ac_ltlibobjs=
23215for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23216  # 1. Remove the extension, and $U if already installed.
23217  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23218  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23219  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23220  #    will be set to the directory where LIBOBJS objects are built.
23221  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23222  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23223done
23224LIBOBJS=$ac_libobjs
23225
23226LTLIBOBJS=$ac_ltlibobjs
23227
23228
23229 if test -n "$EXEEXT"; then
23230  am__EXEEXT_TRUE=
23231  am__EXEEXT_FALSE='#'
23232else
23233  am__EXEEXT_TRUE='#'
23234  am__EXEEXT_FALSE=
23235fi
23236
23237if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23238  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23239Usually this means the macro was only invoked conditionally." >&5
23240$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23241Usually this means the macro was only invoked conditionally." >&2;}
23242   { (exit 1); exit 1; }; }
23243fi
23244if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23245  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23246Usually this means the macro was only invoked conditionally." >&5
23247$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23248Usually this means the macro was only invoked conditionally." >&2;}
23249   { (exit 1); exit 1; }; }
23250fi
23251if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23252  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23253Usually this means the macro was only invoked conditionally." >&5
23254$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23255Usually this means the macro was only invoked conditionally." >&2;}
23256   { (exit 1); exit 1; }; }
23257fi
23258if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23259  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23260Usually this means the macro was only invoked conditionally." >&5
23261$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23262Usually this means the macro was only invoked conditionally." >&2;}
23263   { (exit 1); exit 1; }; }
23264fi
23265if test -z "${PYTHONLIB_TRUE}" && test -z "${PYTHONLIB_FALSE}"; then
23266  { { $as_echo "$as_me:$LINENO: error: conditional \"PYTHONLIB\" was never defined.
23267Usually this means the macro was only invoked conditionally." >&5
23268$as_echo "$as_me: error: conditional \"PYTHONLIB\" was never defined.
23269Usually this means the macro was only invoked conditionally." >&2;}
23270   { (exit 1); exit 1; }; }
23271fi
23272if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23273  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23274Usually this means the macro was only invoked conditionally." >&5
23275$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23276Usually this means the macro was only invoked conditionally." >&2;}
23277   { (exit 1); exit 1; }; }
23278fi
23279if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23280  { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23281Usually this means the macro was only invoked conditionally." >&5
23282$as_echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23283Usually this means the macro was only invoked conditionally." >&2;}
23284   { (exit 1); exit 1; }; }
23285fi
23286
23287: ${CONFIG_STATUS=./config.status}
23288ac_write_fail=0
23289ac_clean_files_save=$ac_clean_files
23290ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23291{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23292$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23293cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23294#! $SHELL
23295# Generated by $as_me.
23296# Run this file to recreate the current configuration.
23297# Compiler output produced by configure, useful for debugging
23298# configure, is in config.log if it exists.
23299
23300debug=false
23301ac_cs_recheck=false
23302ac_cs_silent=false
23303SHELL=\${CONFIG_SHELL-$SHELL}
23304_ACEOF
23305
23306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23307## --------------------- ##
23308## M4sh Initialization.  ##
23309## --------------------- ##
23310
23311# Be more Bourne compatible
23312DUALCASE=1; export DUALCASE # for MKS sh
23313if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23314  emulate sh
23315  NULLCMD=:
23316  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23317  # is contrary to our usage.  Disable this feature.
23318  alias -g '${1+"$@"}'='"$@"'
23319  setopt NO_GLOB_SUBST
23320else
23321  case `(set -o) 2>/dev/null` in
23322  *posix*) set -o posix ;;
23323esac
23324
23325fi
23326
23327
23328
23329
23330# PATH needs CR
23331# Avoid depending upon Character Ranges.
23332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23335as_cr_digits='0123456789'
23336as_cr_alnum=$as_cr_Letters$as_cr_digits
23337
23338as_nl='
23339'
23340export as_nl
23341# Printing a long string crashes Solaris 7 /usr/bin/printf.
23342as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23345if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23346  as_echo='printf %s\n'
23347  as_echo_n='printf %s'
23348else
23349  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23350    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23351    as_echo_n='/usr/ucb/echo -n'
23352  else
23353    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23354    as_echo_n_body='eval
23355      arg=$1;
23356      case $arg in
23357      *"$as_nl"*)
23358	expr "X$arg" : "X\\(.*\\)$as_nl";
23359	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23360      esac;
23361      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23362    '
23363    export as_echo_n_body
23364    as_echo_n='sh -c $as_echo_n_body as_echo'
23365  fi
23366  export as_echo_body
23367  as_echo='sh -c $as_echo_body as_echo'
23368fi
23369
23370# The user is always right.
23371if test "${PATH_SEPARATOR+set}" != set; then
23372  PATH_SEPARATOR=:
23373  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23374    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23375      PATH_SEPARATOR=';'
23376  }
23377fi
23378
23379# Support unset when possible.
23380if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23381  as_unset=unset
23382else
23383  as_unset=false
23384fi
23385
23386
23387# IFS
23388# We need space, tab and new line, in precisely that order.  Quoting is
23389# there to prevent editors from complaining about space-tab.
23390# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23391# splitting by setting IFS to empty value.)
23392IFS=" ""	$as_nl"
23393
23394# Find who we are.  Look in the path if we contain no directory separator.
23395case $0 in
23396  *[\\/]* ) as_myself=$0 ;;
23397  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398for as_dir in $PATH
23399do
23400  IFS=$as_save_IFS
23401  test -z "$as_dir" && as_dir=.
23402  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23403done
23404IFS=$as_save_IFS
23405
23406     ;;
23407esac
23408# We did not find ourselves, most probably we were run as `sh COMMAND'
23409# in which case we are not to be found in the path.
23410if test "x$as_myself" = x; then
23411  as_myself=$0
23412fi
23413if test ! -f "$as_myself"; then
23414  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23415  { (exit 1); exit 1; }
23416fi
23417
23418# Work around bugs in pre-3.0 UWIN ksh.
23419for as_var in ENV MAIL MAILPATH
23420do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23421done
23422PS1='$ '
23423PS2='> '
23424PS4='+ '
23425
23426# NLS nuisances.
23427LC_ALL=C
23428export LC_ALL
23429LANGUAGE=C
23430export LANGUAGE
23431
23432# Required to use basename.
23433if expr a : '\(a\)' >/dev/null 2>&1 &&
23434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23435  as_expr=expr
23436else
23437  as_expr=false
23438fi
23439
23440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23441  as_basename=basename
23442else
23443  as_basename=false
23444fi
23445
23446
23447# Name of the executable.
23448as_me=`$as_basename -- "$0" ||
23449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23450	 X"$0" : 'X\(//\)$' \| \
23451	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23452$as_echo X/"$0" |
23453    sed '/^.*\/\([^/][^/]*\)\/*$/{
23454	    s//\1/
23455	    q
23456	  }
23457	  /^X\/\(\/\/\)$/{
23458	    s//\1/
23459	    q
23460	  }
23461	  /^X\/\(\/\).*/{
23462	    s//\1/
23463	    q
23464	  }
23465	  s/.*/./; q'`
23466
23467# CDPATH.
23468$as_unset CDPATH
23469
23470
23471
23472  as_lineno_1=$LINENO
23473  as_lineno_2=$LINENO
23474  test "x$as_lineno_1" != "x$as_lineno_2" &&
23475  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23476
23477  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23478  # uniformly replaced by the line number.  The first 'sed' inserts a
23479  # line-number line after each line using $LINENO; the second 'sed'
23480  # does the real work.  The second script uses 'N' to pair each
23481  # line-number line with the line containing $LINENO, and appends
23482  # trailing '-' during substitution so that $LINENO is not a special
23483  # case at line end.
23484  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23485  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23486  # E. McMahon (1931-1989) for sed's syntax.  :-)
23487  sed -n '
23488    p
23489    /[$]LINENO/=
23490  ' <$as_myself |
23491    sed '
23492      s/[$]LINENO.*/&-/
23493      t lineno
23494      b
23495      :lineno
23496      N
23497      :loop
23498      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23499      t loop
23500      s/-\n.*//
23501    ' >$as_me.lineno &&
23502  chmod +x "$as_me.lineno" ||
23503    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23504   { (exit 1); exit 1; }; }
23505
23506  # Don't try to exec as it changes $[0], causing all sort of problems
23507  # (the dirname of $[0] is not the place where we might find the
23508  # original and so on.  Autoconf is especially sensitive to this).
23509  . "./$as_me.lineno"
23510  # Exit status is that of the last command.
23511  exit
23512}
23513
23514
23515if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23516  as_dirname=dirname
23517else
23518  as_dirname=false
23519fi
23520
23521ECHO_C= ECHO_N= ECHO_T=
23522case `echo -n x` in
23523-n*)
23524  case `echo 'x\c'` in
23525  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23526  *)   ECHO_C='\c';;
23527  esac;;
23528*)
23529  ECHO_N='-n';;
23530esac
23531if expr a : '\(a\)' >/dev/null 2>&1 &&
23532   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23533  as_expr=expr
23534else
23535  as_expr=false
23536fi
23537
23538rm -f conf$$ conf$$.exe conf$$.file
23539if test -d conf$$.dir; then
23540  rm -f conf$$.dir/conf$$.file
23541else
23542  rm -f conf$$.dir
23543  mkdir conf$$.dir 2>/dev/null
23544fi
23545if (echo >conf$$.file) 2>/dev/null; then
23546  if ln -s conf$$.file conf$$ 2>/dev/null; then
23547    as_ln_s='ln -s'
23548    # ... but there are two gotchas:
23549    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23550    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23551    # In both cases, we have to default to `cp -p'.
23552    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23553      as_ln_s='cp -p'
23554  elif ln conf$$.file conf$$ 2>/dev/null; then
23555    as_ln_s=ln
23556  else
23557    as_ln_s='cp -p'
23558  fi
23559else
23560  as_ln_s='cp -p'
23561fi
23562rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23563rmdir conf$$.dir 2>/dev/null
23564
23565if mkdir -p . 2>/dev/null; then
23566  as_mkdir_p=:
23567else
23568  test -d ./-p && rmdir ./-p
23569  as_mkdir_p=false
23570fi
23571
23572if test -x / >/dev/null 2>&1; then
23573  as_test_x='test -x'
23574else
23575  if ls -dL / >/dev/null 2>&1; then
23576    as_ls_L_option=L
23577  else
23578    as_ls_L_option=
23579  fi
23580  as_test_x='
23581    eval sh -c '\''
23582      if test -d "$1"; then
23583	test -d "$1/.";
23584      else
23585	case $1 in
23586	-*)set "./$1";;
23587	esac;
23588	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23589	???[sx]*):;;*)false;;esac;fi
23590    '\'' sh
23591  '
23592fi
23593as_executable_p=$as_test_x
23594
23595# Sed expression to map a string onto a valid CPP name.
23596as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23597
23598# Sed expression to map a string onto a valid variable name.
23599as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23600
23601
23602exec 6>&1
23603
23604# Save the log message, to keep $[0] and so on meaningful, and to
23605# report actual input values of CONFIG_FILES etc. instead of their
23606# values after options handling.
23607ac_log="
23608This file was extended by $as_me, which was
23609generated by GNU Autoconf 2.63.  Invocation command line was
23610
23611  CONFIG_FILES    = $CONFIG_FILES
23612  CONFIG_HEADERS  = $CONFIG_HEADERS
23613  CONFIG_LINKS    = $CONFIG_LINKS
23614  CONFIG_COMMANDS = $CONFIG_COMMANDS
23615  $ $0 $@
23616
23617on `(hostname || uname -n) 2>/dev/null | sed 1q`
23618"
23619
23620_ACEOF
23621
23622case $ac_config_files in *"
23623"*) set x $ac_config_files; shift; ac_config_files=$*;;
23624esac
23625
23626case $ac_config_headers in *"
23627"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23628esac
23629
23630
23631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23632# Files that config.status was made for.
23633config_files="$ac_config_files"
23634config_headers="$ac_config_headers"
23635config_commands="$ac_config_commands"
23636
23637_ACEOF
23638
23639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23640ac_cs_usage="\
23641\`$as_me' instantiates files from templates according to the
23642current configuration.
23643
23644Usage: $0 [OPTION]... [FILE]...
23645
23646  -h, --help       print this help, then exit
23647  -V, --version    print version number and configuration settings, then exit
23648  -q, --quiet, --silent
23649                   do not print progress messages
23650  -d, --debug      don't remove temporary files
23651      --recheck    update $as_me by reconfiguring in the same conditions
23652      --file=FILE[:TEMPLATE]
23653                   instantiate the configuration file FILE
23654      --header=FILE[:TEMPLATE]
23655                   instantiate the configuration header FILE
23656
23657Configuration files:
23658$config_files
23659
23660Configuration headers:
23661$config_headers
23662
23663Configuration commands:
23664$config_commands
23665
23666Report bugs to <bug-autoconf@gnu.org>."
23667
23668_ACEOF
23669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23670ac_cs_version="\\
23671config.status
23672configured by $0, generated by GNU Autoconf 2.63,
23673  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23674
23675Copyright (C) 2008 Free Software Foundation, Inc.
23676This config.status script is free software; the Free Software Foundation
23677gives unlimited permission to copy, distribute and modify it."
23678
23679ac_pwd='$ac_pwd'
23680srcdir='$srcdir'
23681INSTALL='$INSTALL'
23682MKDIR_P='$MKDIR_P'
23683AWK='$AWK'
23684test -n "\$AWK" || AWK=awk
23685_ACEOF
23686
23687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23688# The default lists apply if the user does not specify any file.
23689ac_need_defaults=:
23690while test $# != 0
23691do
23692  case $1 in
23693  --*=*)
23694    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23695    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23696    ac_shift=:
23697    ;;
23698  *)
23699    ac_option=$1
23700    ac_optarg=$2
23701    ac_shift=shift
23702    ;;
23703  esac
23704
23705  case $ac_option in
23706  # Handling of the options.
23707  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23708    ac_cs_recheck=: ;;
23709  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23710    $as_echo "$ac_cs_version"; exit ;;
23711  --debug | --debu | --deb | --de | --d | -d )
23712    debug=: ;;
23713  --file | --fil | --fi | --f )
23714    $ac_shift
23715    case $ac_optarg in
23716    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23717    esac
23718    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23719    ac_need_defaults=false;;
23720  --header | --heade | --head | --hea )
23721    $ac_shift
23722    case $ac_optarg in
23723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23724    esac
23725    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23726    ac_need_defaults=false;;
23727  --he | --h)
23728    # Conflict between --help and --header
23729    { $as_echo "$as_me: error: ambiguous option: $1
23730Try \`$0 --help' for more information." >&2
23731   { (exit 1); exit 1; }; };;
23732  --help | --hel | -h )
23733    $as_echo "$ac_cs_usage"; exit ;;
23734  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23735  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23736    ac_cs_silent=: ;;
23737
23738  # This is an error.
23739  -*) { $as_echo "$as_me: error: unrecognized option: $1
23740Try \`$0 --help' for more information." >&2
23741   { (exit 1); exit 1; }; } ;;
23742
23743  *) ac_config_targets="$ac_config_targets $1"
23744     ac_need_defaults=false ;;
23745
23746  esac
23747  shift
23748done
23749
23750ac_configure_extra_args=
23751
23752if $ac_cs_silent; then
23753  exec 6>/dev/null
23754  ac_configure_extra_args="$ac_configure_extra_args --silent"
23755fi
23756
23757_ACEOF
23758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23759if \$ac_cs_recheck; then
23760  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23761  shift
23762  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23763  CONFIG_SHELL='$SHELL'
23764  export CONFIG_SHELL
23765  exec "\$@"
23766fi
23767
23768_ACEOF
23769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23770exec 5>>config.log
23771{
23772  echo
23773  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23774## Running $as_me. ##
23775_ASBOX
23776  $as_echo "$ac_log"
23777} >&5
23778
23779_ACEOF
23780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23781#
23782# INIT-COMMANDS
23783#
23784AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23785# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23786    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23787    # from automake.
23788    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23789    # Capture the value of LINGUAS because we need it to compute CATALOGS.
23790    LINGUAS="${LINGUAS-%UNSET%}"
23791
23792
23793_ACEOF
23794
23795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23796
23797# Handling of arguments.
23798for ac_config_target in $ac_config_targets
23799do
23800  case $ac_config_target in
23801    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23802    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23803    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23804    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23805    "libiptcdata.spec") CONFIG_FILES="$CONFIG_FILES libiptcdata.spec" ;;
23806    "libiptcdata/Makefile") CONFIG_FILES="$CONFIG_FILES libiptcdata/Makefile" ;;
23807    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23808    "libiptcdata/libiptcdata.pc") CONFIG_FILES="$CONFIG_FILES libiptcdata/libiptcdata.pc" ;;
23809    "iptc/Makefile") CONFIG_FILES="$CONFIG_FILES iptc/Makefile" ;;
23810    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23811    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
23812    "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
23813    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23814    "iptc/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES iptc/po/Makefile.in" ;;
23815    "win/Makefile") CONFIG_FILES="$CONFIG_FILES win/Makefile" ;;
23816    "win/iptctool/Makefile") CONFIG_FILES="$CONFIG_FILES win/iptctool/Makefile" ;;
23817    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23818
23819  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23820$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23821   { (exit 1); exit 1; }; };;
23822  esac
23823done
23824
23825
23826# If the user did not use the arguments to specify the items to instantiate,
23827# then the envvar interface is used.  Set only those that are not.
23828# We use the long form for the default assignment because of an extremely
23829# bizarre bug on SunOS 4.1.3.
23830if $ac_need_defaults; then
23831  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23832  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23833  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23834fi
23835
23836# Have a temporary directory for convenience.  Make it in the build tree
23837# simply because there is no reason against having it here, and in addition,
23838# creating and moving files from /tmp can sometimes cause problems.
23839# Hook for its removal unless debugging.
23840# Note that there is a small window in which the directory will not be cleaned:
23841# after its creation but before its name has been assigned to `$tmp'.
23842$debug ||
23843{
23844  tmp=
23845  trap 'exit_status=$?
23846  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23847' 0
23848  trap '{ (exit 1); exit 1; }' 1 2 13 15
23849}
23850# Create a (secure) tmp directory for tmp files.
23851
23852{
23853  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23854  test -n "$tmp" && test -d "$tmp"
23855}  ||
23856{
23857  tmp=./conf$$-$RANDOM
23858  (umask 077 && mkdir "$tmp")
23859} ||
23860{
23861   $as_echo "$as_me: cannot create a temporary directory in ." >&2
23862   { (exit 1); exit 1; }
23863}
23864
23865# Set up the scripts for CONFIG_FILES section.
23866# No need to generate them if there are no CONFIG_FILES.
23867# This happens for instance with `./config.status config.h'.
23868if test -n "$CONFIG_FILES"; then
23869
23870
23871ac_cr='
23872'
23873ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23874if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23875  ac_cs_awk_cr='\\r'
23876else
23877  ac_cs_awk_cr=$ac_cr
23878fi
23879
23880echo 'BEGIN {' >"$tmp/subs1.awk" &&
23881_ACEOF
23882
23883
23884{
23885  echo "cat >conf$$subs.awk <<_ACEOF" &&
23886  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23887  echo "_ACEOF"
23888} >conf$$subs.sh ||
23889  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23890$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23891   { (exit 1); exit 1; }; }
23892ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23893ac_delim='%!_!# '
23894for ac_last_try in false false false false false :; do
23895  . ./conf$$subs.sh ||
23896    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23897$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23898   { (exit 1); exit 1; }; }
23899
23900  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23901  if test $ac_delim_n = $ac_delim_num; then
23902    break
23903  elif $ac_last_try; then
23904    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23905$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23906   { (exit 1); exit 1; }; }
23907  else
23908    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23909  fi
23910done
23911rm -f conf$$subs.sh
23912
23913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23914cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23915_ACEOF
23916sed -n '
23917h
23918s/^/S["/; s/!.*/"]=/
23919p
23920g
23921s/^[^!]*!//
23922:repl
23923t repl
23924s/'"$ac_delim"'$//
23925t delim
23926:nl
23927h
23928s/\(.\{148\}\).*/\1/
23929t more1
23930s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23931p
23932n
23933b repl
23934:more1
23935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23936p
23937g
23938s/.\{148\}//
23939t nl
23940:delim
23941h
23942s/\(.\{148\}\).*/\1/
23943t more2
23944s/["\\]/\\&/g; s/^/"/; s/$/"/
23945p
23946b
23947:more2
23948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23949p
23950g
23951s/.\{148\}//
23952t delim
23953' <conf$$subs.awk | sed '
23954/^[^""]/{
23955  N
23956  s/\n//
23957}
23958' >>$CONFIG_STATUS || ac_write_fail=1
23959rm -f conf$$subs.awk
23960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23961_ACAWK
23962cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23963  for (key in S) S_is_set[key] = 1
23964  FS = ""
23965
23966}
23967{
23968  line = $ 0
23969  nfields = split(line, field, "@")
23970  substed = 0
23971  len = length(field[1])
23972  for (i = 2; i < nfields; i++) {
23973    key = field[i]
23974    keylen = length(key)
23975    if (S_is_set[key]) {
23976      value = S[key]
23977      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23978      len += length(value) + length(field[++i])
23979      substed = 1
23980    } else
23981      len += 1 + keylen
23982  }
23983
23984  print line
23985}
23986
23987_ACAWK
23988_ACEOF
23989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23990if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23991  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23992else
23993  cat
23994fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23995  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23996$as_echo "$as_me: error: could not setup config files machinery" >&2;}
23997   { (exit 1); exit 1; }; }
23998_ACEOF
23999
24000# VPATH may cause trouble with some makes, so we remove $(srcdir),
24001# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24002# trailing colons and then remove the whole line if VPATH becomes empty
24003# (actually we leave an empty line to preserve line numbers).
24004if test "x$srcdir" = x.; then
24005  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24006s/:*\$(srcdir):*/:/
24007s/:*\${srcdir}:*/:/
24008s/:*@srcdir@:*/:/
24009s/^\([^=]*=[	 ]*\):*/\1/
24010s/:*$//
24011s/^[^=]*=[	 ]*$//
24012}'
24013fi
24014
24015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24016fi # test -n "$CONFIG_FILES"
24017
24018# Set up the scripts for CONFIG_HEADERS section.
24019# No need to generate them if there are no CONFIG_HEADERS.
24020# This happens for instance with `./config.status Makefile'.
24021if test -n "$CONFIG_HEADERS"; then
24022cat >"$tmp/defines.awk" <<\_ACAWK ||
24023BEGIN {
24024_ACEOF
24025
24026# Transform confdefs.h into an awk script `defines.awk', embedded as
24027# here-document in config.status, that substitutes the proper values into
24028# config.h.in to produce config.h.
24029
24030# Create a delimiter string that does not exist in confdefs.h, to ease
24031# handling of long lines.
24032ac_delim='%!_!# '
24033for ac_last_try in false false :; do
24034  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24035  if test -z "$ac_t"; then
24036    break
24037  elif $ac_last_try; then
24038    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24039$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24040   { (exit 1); exit 1; }; }
24041  else
24042    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24043  fi
24044done
24045
24046# For the awk script, D is an array of macro values keyed by name,
24047# likewise P contains macro parameters if any.  Preserve backslash
24048# newline sequences.
24049
24050ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24051sed -n '
24052s/.\{148\}/&'"$ac_delim"'/g
24053t rset
24054:rset
24055s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24056t def
24057d
24058:def
24059s/\\$//
24060t bsnl
24061s/["\\]/\\&/g
24062s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24063D["\1"]=" \3"/p
24064s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24065d
24066:bsnl
24067s/["\\]/\\&/g
24068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24069D["\1"]=" \3\\\\\\n"\\/p
24070t cont
24071s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24072t cont
24073d
24074:cont
24075n
24076s/.\{148\}/&'"$ac_delim"'/g
24077t clear
24078:clear
24079s/\\$//
24080t bsnlc
24081s/["\\]/\\&/g; s/^/"/; s/$/"/p
24082d
24083:bsnlc
24084s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24085b cont
24086' <confdefs.h | sed '
24087s/'"$ac_delim"'/"\\\
24088"/g' >>$CONFIG_STATUS || ac_write_fail=1
24089
24090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24091  for (key in D) D_is_set[key] = 1
24092  FS = ""
24093}
24094/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24095  line = \$ 0
24096  split(line, arg, " ")
24097  if (arg[1] == "#") {
24098    defundef = arg[2]
24099    mac1 = arg[3]
24100  } else {
24101    defundef = substr(arg[1], 2)
24102    mac1 = arg[2]
24103  }
24104  split(mac1, mac2, "(") #)
24105  macro = mac2[1]
24106  prefix = substr(line, 1, index(line, defundef) - 1)
24107  if (D_is_set[macro]) {
24108    # Preserve the white space surrounding the "#".
24109    print prefix "define", macro P[macro] D[macro]
24110    next
24111  } else {
24112    # Replace #undef with comments.  This is necessary, for example,
24113    # in the case of _POSIX_SOURCE, which is predefined and required
24114    # on some systems where configure will not decide to define it.
24115    if (defundef == "undef") {
24116      print "/*", prefix defundef, macro, "*/"
24117      next
24118    }
24119  }
24120}
24121{ print }
24122_ACAWK
24123_ACEOF
24124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24125  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24126$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24127   { (exit 1); exit 1; }; }
24128fi # test -n "$CONFIG_HEADERS"
24129
24130
24131eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24132shift
24133for ac_tag
24134do
24135  case $ac_tag in
24136  :[FHLC]) ac_mode=$ac_tag; continue;;
24137  esac
24138  case $ac_mode$ac_tag in
24139  :[FHL]*:*);;
24140  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24141$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24142   { (exit 1); exit 1; }; };;
24143  :[FH]-) ac_tag=-:-;;
24144  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24145  esac
24146  ac_save_IFS=$IFS
24147  IFS=:
24148  set x $ac_tag
24149  IFS=$ac_save_IFS
24150  shift
24151  ac_file=$1
24152  shift
24153
24154  case $ac_mode in
24155  :L) ac_source=$1;;
24156  :[FH])
24157    ac_file_inputs=
24158    for ac_f
24159    do
24160      case $ac_f in
24161      -) ac_f="$tmp/stdin";;
24162      *) # Look for the file first in the build tree, then in the source tree
24163	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24164	 # because $ac_f cannot contain `:'.
24165	 test -f "$ac_f" ||
24166	   case $ac_f in
24167	   [\\/$]*) false;;
24168	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24169	   esac ||
24170	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24171$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24172   { (exit 1); exit 1; }; };;
24173      esac
24174      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24175      ac_file_inputs="$ac_file_inputs '$ac_f'"
24176    done
24177
24178    # Let's still pretend it is `configure' which instantiates (i.e., don't
24179    # use $as_me), people would be surprised to read:
24180    #    /* config.h.  Generated by config.status.  */
24181    configure_input='Generated from '`
24182	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24183	`' by configure.'
24184    if test x"$ac_file" != x-; then
24185      configure_input="$ac_file.  $configure_input"
24186      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24187$as_echo "$as_me: creating $ac_file" >&6;}
24188    fi
24189    # Neutralize special characters interpreted by sed in replacement strings.
24190    case $configure_input in #(
24191    *\&* | *\|* | *\\* )
24192       ac_sed_conf_input=`$as_echo "$configure_input" |
24193       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24194    *) ac_sed_conf_input=$configure_input;;
24195    esac
24196
24197    case $ac_tag in
24198    *:-:* | *:-) cat >"$tmp/stdin" \
24199      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24200$as_echo "$as_me: error: could not create $ac_file" >&2;}
24201   { (exit 1); exit 1; }; } ;;
24202    esac
24203    ;;
24204  esac
24205
24206  ac_dir=`$as_dirname -- "$ac_file" ||
24207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24208	 X"$ac_file" : 'X\(//\)[^/]' \| \
24209	 X"$ac_file" : 'X\(//\)$' \| \
24210	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24211$as_echo X"$ac_file" |
24212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24213	    s//\1/
24214	    q
24215	  }
24216	  /^X\(\/\/\)[^/].*/{
24217	    s//\1/
24218	    q
24219	  }
24220	  /^X\(\/\/\)$/{
24221	    s//\1/
24222	    q
24223	  }
24224	  /^X\(\/\).*/{
24225	    s//\1/
24226	    q
24227	  }
24228	  s/.*/./; q'`
24229  { as_dir="$ac_dir"
24230  case $as_dir in #(
24231  -*) as_dir=./$as_dir;;
24232  esac
24233  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24234    as_dirs=
24235    while :; do
24236      case $as_dir in #(
24237      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24238      *) as_qdir=$as_dir;;
24239      esac
24240      as_dirs="'$as_qdir' $as_dirs"
24241      as_dir=`$as_dirname -- "$as_dir" ||
24242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24243	 X"$as_dir" : 'X\(//\)[^/]' \| \
24244	 X"$as_dir" : 'X\(//\)$' \| \
24245	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24246$as_echo X"$as_dir" |
24247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24248	    s//\1/
24249	    q
24250	  }
24251	  /^X\(\/\/\)[^/].*/{
24252	    s//\1/
24253	    q
24254	  }
24255	  /^X\(\/\/\)$/{
24256	    s//\1/
24257	    q
24258	  }
24259	  /^X\(\/\).*/{
24260	    s//\1/
24261	    q
24262	  }
24263	  s/.*/./; q'`
24264      test -d "$as_dir" && break
24265    done
24266    test -z "$as_dirs" || eval "mkdir $as_dirs"
24267  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24268$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24269   { (exit 1); exit 1; }; }; }
24270  ac_builddir=.
24271
24272case "$ac_dir" in
24273.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24274*)
24275  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24276  # A ".." for each directory in $ac_dir_suffix.
24277  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24278  case $ac_top_builddir_sub in
24279  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24280  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24281  esac ;;
24282esac
24283ac_abs_top_builddir=$ac_pwd
24284ac_abs_builddir=$ac_pwd$ac_dir_suffix
24285# for backward compatibility:
24286ac_top_builddir=$ac_top_build_prefix
24287
24288case $srcdir in
24289  .)  # We are building in place.
24290    ac_srcdir=.
24291    ac_top_srcdir=$ac_top_builddir_sub
24292    ac_abs_top_srcdir=$ac_pwd ;;
24293  [\\/]* | ?:[\\/]* )  # Absolute name.
24294    ac_srcdir=$srcdir$ac_dir_suffix;
24295    ac_top_srcdir=$srcdir
24296    ac_abs_top_srcdir=$srcdir ;;
24297  *) # Relative name.
24298    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24299    ac_top_srcdir=$ac_top_build_prefix$srcdir
24300    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24301esac
24302ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24303
24304
24305  case $ac_mode in
24306  :F)
24307  #
24308  # CONFIG_FILE
24309  #
24310
24311  case $INSTALL in
24312  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24313  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24314  esac
24315  ac_MKDIR_P=$MKDIR_P
24316  case $MKDIR_P in
24317  [\\/$]* | ?:[\\/]* ) ;;
24318  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24319  esac
24320_ACEOF
24321
24322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24323# If the template does not know about datarootdir, expand it.
24324# FIXME: This hack should be removed a few years after 2.60.
24325ac_datarootdir_hack=; ac_datarootdir_seen=
24326
24327ac_sed_dataroot='
24328/datarootdir/ {
24329  p
24330  q
24331}
24332/@datadir@/p
24333/@docdir@/p
24334/@infodir@/p
24335/@localedir@/p
24336/@mandir@/p
24337'
24338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24339*datarootdir*) ac_datarootdir_seen=yes;;
24340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24341  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24343_ACEOF
24344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24345  ac_datarootdir_hack='
24346  s&@datadir@&$datadir&g
24347  s&@docdir@&$docdir&g
24348  s&@infodir@&$infodir&g
24349  s&@localedir@&$localedir&g
24350  s&@mandir@&$mandir&g
24351    s&\\\${datarootdir}&$datarootdir&g' ;;
24352esac
24353_ACEOF
24354
24355# Neutralize VPATH when `$srcdir' = `.'.
24356# Shell code in configure.ac might set extrasub.
24357# FIXME: do we really want to maintain this feature?
24358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24359ac_sed_extra="$ac_vpsub
24360$extrasub
24361_ACEOF
24362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24363:t
24364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24365s|@configure_input@|$ac_sed_conf_input|;t t
24366s&@top_builddir@&$ac_top_builddir_sub&;t t
24367s&@top_build_prefix@&$ac_top_build_prefix&;t t
24368s&@srcdir@&$ac_srcdir&;t t
24369s&@abs_srcdir@&$ac_abs_srcdir&;t t
24370s&@top_srcdir@&$ac_top_srcdir&;t t
24371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24372s&@builddir@&$ac_builddir&;t t
24373s&@abs_builddir@&$ac_abs_builddir&;t t
24374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24375s&@INSTALL@&$ac_INSTALL&;t t
24376s&@MKDIR_P@&$ac_MKDIR_P&;t t
24377$ac_datarootdir_hack
24378"
24379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24380  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24381$as_echo "$as_me: error: could not create $ac_file" >&2;}
24382   { (exit 1); exit 1; }; }
24383
24384test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24385  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24386  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24387  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24388which seems to be undefined.  Please make sure it is defined." >&5
24389$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24390which seems to be undefined.  Please make sure it is defined." >&2;}
24391
24392  rm -f "$tmp/stdin"
24393  case $ac_file in
24394  -) cat "$tmp/out" && rm -f "$tmp/out";;
24395  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24396  esac \
24397  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24398$as_echo "$as_me: error: could not create $ac_file" >&2;}
24399   { (exit 1); exit 1; }; }
24400 ;;
24401  :H)
24402  #
24403  # CONFIG_HEADER
24404  #
24405  if test x"$ac_file" != x-; then
24406    {
24407      $as_echo "/* $configure_input  */" \
24408      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24409    } >"$tmp/config.h" \
24410      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24411$as_echo "$as_me: error: could not create $ac_file" >&2;}
24412   { (exit 1); exit 1; }; }
24413    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24414      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24415$as_echo "$as_me: $ac_file is unchanged" >&6;}
24416    else
24417      rm -f "$ac_file"
24418      mv "$tmp/config.h" "$ac_file" \
24419	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24420$as_echo "$as_me: error: could not create $ac_file" >&2;}
24421   { (exit 1); exit 1; }; }
24422    fi
24423  else
24424    $as_echo "/* $configure_input  */" \
24425      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24426      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24427$as_echo "$as_me: error: could not create -" >&2;}
24428   { (exit 1); exit 1; }; }
24429  fi
24430# Compute "$ac_file"'s index in $config_headers.
24431_am_arg="$ac_file"
24432_am_stamp_count=1
24433for _am_header in $config_headers :; do
24434  case $_am_header in
24435    $_am_arg | $_am_arg:* )
24436      break ;;
24437    * )
24438      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24439  esac
24440done
24441echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24442$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24443	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24444	 X"$_am_arg" : 'X\(//\)$' \| \
24445	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24446$as_echo X"$_am_arg" |
24447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24448	    s//\1/
24449	    q
24450	  }
24451	  /^X\(\/\/\)[^/].*/{
24452	    s//\1/
24453	    q
24454	  }
24455	  /^X\(\/\/\)$/{
24456	    s//\1/
24457	    q
24458	  }
24459	  /^X\(\/\).*/{
24460	    s//\1/
24461	    q
24462	  }
24463	  s/.*/./; q'`/stamp-h$_am_stamp_count
24464 ;;
24465
24466  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24467$as_echo "$as_me: executing $ac_file commands" >&6;}
24468 ;;
24469  esac
24470
24471
24472  case $ac_file$ac_mode in
24473    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24474  # Autoconf 2.62 quotes --file arguments for eval, but not when files
24475  # are listed without --file.  Let's play safe and only enable the eval
24476  # if we detect the quoting.
24477  case $CONFIG_FILES in
24478  *\'*) eval set x "$CONFIG_FILES" ;;
24479  *)   set x $CONFIG_FILES ;;
24480  esac
24481  shift
24482  for mf
24483  do
24484    # Strip MF so we end up with the name of the file.
24485    mf=`echo "$mf" | sed -e 's/:.*$//'`
24486    # Check whether this is an Automake generated Makefile or not.
24487    # We used to match only the files named `Makefile.in', but
24488    # some people rename them; so instead we look at the file content.
24489    # Grep'ing the first line is not enough: some people post-process
24490    # each Makefile.in and add a new line on top of each file to say so.
24491    # Grep'ing the whole file is not good either: AIX grep has a line
24492    # limit of 2048, but all sed's we know have understand at least 4000.
24493    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24494      dirpart=`$as_dirname -- "$mf" ||
24495$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24496	 X"$mf" : 'X\(//\)[^/]' \| \
24497	 X"$mf" : 'X\(//\)$' \| \
24498	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24499$as_echo X"$mf" |
24500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24501	    s//\1/
24502	    q
24503	  }
24504	  /^X\(\/\/\)[^/].*/{
24505	    s//\1/
24506	    q
24507	  }
24508	  /^X\(\/\/\)$/{
24509	    s//\1/
24510	    q
24511	  }
24512	  /^X\(\/\).*/{
24513	    s//\1/
24514	    q
24515	  }
24516	  s/.*/./; q'`
24517    else
24518      continue
24519    fi
24520    # Extract the definition of DEPDIR, am__include, and am__quote
24521    # from the Makefile without running `make'.
24522    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24523    test -z "$DEPDIR" && continue
24524    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24525    test -z "am__include" && continue
24526    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24527    # When using ansi2knr, U may be empty or an underscore; expand it
24528    U=`sed -n 's/^U = //p' < "$mf"`
24529    # Find all dependency output files, they are included files with
24530    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24531    # simplest approach to changing $(DEPDIR) to its actual value in the
24532    # expansion.
24533    for file in `sed -n "
24534      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24535	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24536      # Make sure the directory exists.
24537      test -f "$dirpart/$file" && continue
24538      fdir=`$as_dirname -- "$file" ||
24539$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24540	 X"$file" : 'X\(//\)[^/]' \| \
24541	 X"$file" : 'X\(//\)$' \| \
24542	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24543$as_echo X"$file" |
24544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24545	    s//\1/
24546	    q
24547	  }
24548	  /^X\(\/\/\)[^/].*/{
24549	    s//\1/
24550	    q
24551	  }
24552	  /^X\(\/\/\)$/{
24553	    s//\1/
24554	    q
24555	  }
24556	  /^X\(\/\).*/{
24557	    s//\1/
24558	    q
24559	  }
24560	  s/.*/./; q'`
24561      { as_dir=$dirpart/$fdir
24562  case $as_dir in #(
24563  -*) as_dir=./$as_dir;;
24564  esac
24565  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24566    as_dirs=
24567    while :; do
24568      case $as_dir in #(
24569      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24570      *) as_qdir=$as_dir;;
24571      esac
24572      as_dirs="'$as_qdir' $as_dirs"
24573      as_dir=`$as_dirname -- "$as_dir" ||
24574$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24575	 X"$as_dir" : 'X\(//\)[^/]' \| \
24576	 X"$as_dir" : 'X\(//\)$' \| \
24577	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24578$as_echo X"$as_dir" |
24579    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24580	    s//\1/
24581	    q
24582	  }
24583	  /^X\(\/\/\)[^/].*/{
24584	    s//\1/
24585	    q
24586	  }
24587	  /^X\(\/\/\)$/{
24588	    s//\1/
24589	    q
24590	  }
24591	  /^X\(\/\).*/{
24592	    s//\1/
24593	    q
24594	  }
24595	  s/.*/./; q'`
24596      test -d "$as_dir" && break
24597    done
24598    test -z "$as_dirs" || eval "mkdir $as_dirs"
24599  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24600$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24601   { (exit 1); exit 1; }; }; }
24602      # echo "creating $dirpart/$file"
24603      echo '# dummy' > "$dirpart/$file"
24604    done
24605  done
24606}
24607 ;;
24608    "default-1":C)
24609    for ac_file in $CONFIG_FILES; do
24610      # Support "outfile[:infile[:infile...]]"
24611      case "$ac_file" in
24612        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24613      esac
24614      # PO directories have a Makefile.in generated from Makefile.in.in.
24615      case "$ac_file" in */Makefile.in)
24616        # Adjust a relative srcdir.
24617        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24618        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24619        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24620        # In autoconf-2.13 it is called $ac_given_srcdir.
24621        # In autoconf-2.50 it is called $srcdir.
24622        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24623        case "$ac_given_srcdir" in
24624          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24625          /*) top_srcdir="$ac_given_srcdir" ;;
24626          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24627        esac
24628        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24629          rm -f "$ac_dir/POTFILES"
24630          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24631          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24632          POMAKEFILEDEPS="POTFILES.in"
24633          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24634          # on $ac_dir but don't depend on user-specified configuration
24635          # parameters.
24636          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24637            # The LINGUAS file contains the set of available languages.
24638            if test -n "$OBSOLETE_ALL_LINGUAS"; then
24639              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24640            fi
24641            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24642            # Hide the ALL_LINGUAS assigment from automake.
24643            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24644            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24645          else
24646            # The set of available languages was given in configure.in.
24647            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24648          fi
24649          # Compute POFILES
24650          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24651          # Compute UPDATEPOFILES
24652          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24653          # Compute DUMMYPOFILES
24654          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24655          # Compute GMOFILES
24656          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24657          case "$ac_given_srcdir" in
24658            .) srcdirpre= ;;
24659            *) srcdirpre='$(srcdir)/' ;;
24660          esac
24661          POFILES=
24662          UPDATEPOFILES=
24663          DUMMYPOFILES=
24664          GMOFILES=
24665          for lang in $ALL_LINGUAS; do
24666            POFILES="$POFILES $srcdirpre$lang.po"
24667            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24668            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24669            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24670          done
24671          # CATALOGS depends on both $ac_dir and the user's LINGUAS
24672          # environment variable.
24673          INST_LINGUAS=
24674          if test -n "$ALL_LINGUAS"; then
24675            for presentlang in $ALL_LINGUAS; do
24676              useit=no
24677              if test "%UNSET%" != "$LINGUAS"; then
24678                desiredlanguages="$LINGUAS"
24679              else
24680                desiredlanguages="$ALL_LINGUAS"
24681              fi
24682              for desiredlang in $desiredlanguages; do
24683                # Use the presentlang catalog if desiredlang is
24684                #   a. equal to presentlang, or
24685                #   b. a variant of presentlang (because in this case,
24686                #      presentlang can be used as a fallback for messages
24687                #      which are not translated in the desiredlang catalog).
24688                case "$desiredlang" in
24689                  "$presentlang"*) useit=yes;;
24690                esac
24691              done
24692              if test $useit = yes; then
24693                INST_LINGUAS="$INST_LINGUAS $presentlang"
24694              fi
24695            done
24696          fi
24697          CATALOGS=
24698          if test -n "$INST_LINGUAS"; then
24699            for lang in $INST_LINGUAS; do
24700              CATALOGS="$CATALOGS $lang.gmo"
24701            done
24702          fi
24703          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24704          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24705          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24706            if test -f "$f"; then
24707              case "$f" in
24708                *.orig | *.bak | *~) ;;
24709                *) cat "$f" >> "$ac_dir/Makefile" ;;
24710              esac
24711            fi
24712          done
24713        fi
24714        ;;
24715      esac
24716    done ;;
24717
24718  esac
24719done # for ac_tag
24720
24721
24722{ (exit 0); exit 0; }
24723_ACEOF
24724chmod +x $CONFIG_STATUS
24725ac_clean_files=$ac_clean_files_save
24726
24727test $ac_write_fail = 0 ||
24728  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24729$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24730   { (exit 1); exit 1; }; }
24731
24732
24733# configure is writing to config.log, and then calls config.status.
24734# config.status does its own redirection, appending to config.log.
24735# Unfortunately, on DOS this fails, as config.log is still kept open
24736# by configure, so config.status won't be able to write to it; its
24737# output is simply discarded.  So we exec the FD to /dev/null,
24738# effectively closing config.log, so it can be properly (re)opened and
24739# appended to by config.status.  When coming back to configure, we
24740# need to make the FD available again.
24741if test "$no_create" != yes; then
24742  ac_cs_success=:
24743  ac_config_status_args=
24744  test "$silent" = yes &&
24745    ac_config_status_args="$ac_config_status_args --quiet"
24746  exec 5>/dev/null
24747  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24748  exec 5>>config.log
24749  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24750  # would make configure fail if this is the last instruction.
24751  $ac_cs_success || { (exit 1); exit 1; }
24752fi
24753if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24754  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24755$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24756fi
24757
24758
24759echo "
24760
24761Configuration (libiptcdata):
24762
24763	Source code location:  ${srcdir}
24764	Compiler:              ${CC}
24765	Python Library:        ${pythonlib}
24766"
24767