1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for XZ Utils 4.999.9beta.
4#
5# Report bugs to <lasse.collin@tukaani.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='XZ Utils'
747PACKAGE_TARNAME='xz'
748PACKAGE_VERSION='4.999.9beta'
749PACKAGE_STRING='XZ Utils 4.999.9beta'
750PACKAGE_BUGREPORT='lasse.collin@tukaani.org'
751
752ac_unique_file="src/liblzma/common/common.h"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
756#ifdef HAVE_SYS_TYPES_H
757# include <sys/types.h>
758#endif
759#ifdef HAVE_SYS_STAT_H
760# include <sys/stat.h>
761#endif
762#ifdef STDC_HEADERS
763# include <stdlib.h>
764# include <stddef.h>
765#else
766# ifdef HAVE_STDLIB_H
767#  include <stdlib.h>
768# endif
769#endif
770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772#  include <memory.h>
773# endif
774# include <string.h>
775#endif
776#ifdef HAVE_STRINGS_H
777# include <strings.h>
778#endif
779#ifdef HAVE_INTTYPES_H
780# include <inttypes.h>
781#endif
782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
786# include <unistd.h>
787#endif"
788
789gt_needs=
790ac_subst_vars='am__EXEEXT_FALSE
791am__EXEEXT_TRUE
792LTLIBOBJS
793xz
794DYNAMIC_LDFLAGS
795DYNAMIC_CPPFLAGS
796STATIC_LDFLAGS
797STATIC_CPPFLAGS
798AM_CFLAGS
799COND_GNULIB_FALSE
800COND_GNULIB_TRUE
801HAVE_VISIBILITY
802CFLAG_VISIBILITY
803GETOPT_H
804LIBOBJS
805POSUB
806LTLIBINTL
807LIBINTL
808INTLLIBS
809LTLIBICONV
810LIBICONV
811INTL_MACOSX_LIBS
812MSGMERGE
813XGETTEXT_015
814XGETTEXT
815GMSGFMT_015
816MSGFMT_015
817GMSGFMT
818MSGFMT
819USE_NLS
820COND_SHARED_FALSE
821COND_SHARED_TRUE
822RC
823OTOOL64
824OTOOL
825LIPO
826NMEDIT
827DSYMUTIL
828lt_ECHO
829RANLIB
830AR
831NM
832ac_ct_DUMPBIN
833DUMPBIN
834LD
835FGREP
836SED
837LIBTOOL
838OBJDUMP
839DLLTOOL
840AS
841PTHREAD_CFLAGS
842PTHREAD_LIBS
843PTHREAD_CC
844acx_pthread_config
845EGREP
846GREP
847CPP
848am__fastdepCCAS_FALSE
849am__fastdepCCAS_TRUE
850CCASDEPMODE
851CCASFLAGS
852CCAS
853am__fastdepCC_FALSE
854am__fastdepCC_TRUE
855CCDEPMODE
856AMDEPBACKSLASH
857AMDEP_FALSE
858AMDEP_TRUE
859am__quote
860am__include
861DEPDIR
862OBJEXT
863EXEEXT
864ac_ct_CC
865CPPFLAGS
866LDFLAGS
867CFLAGS
868CC
869LN_S
870am__untar
871am__tar
872AMTAR
873am__leading_dot
874SET_MAKE
875AWK
876mkdir_p
877MKDIR_P
878INSTALL_STRIP_PROGRAM
879STRIP
880install_sh
881MAKEINFO
882AUTOHEADER
883AUTOMAKE
884AUTOCONF
885ACLOCAL
886VERSION
887PACKAGE
888CYGPATH_W
889am__isrc
890INSTALL_DATA
891INSTALL_SCRIPT
892INSTALL_PROGRAM
893PREFERABLY_POSIX_SHELL
894POSIX_SHELL
895COND_SMALL_FALSE
896COND_SMALL_TRUE
897COND_ASM_X86_64_FALSE
898COND_ASM_X86_64_TRUE
899COND_ASM_X86_FALSE
900COND_ASM_X86_TRUE
901COND_CHECK_SHA256_FALSE
902COND_CHECK_SHA256_TRUE
903COND_CHECK_CRC64_FALSE
904COND_CHECK_CRC64_TRUE
905COND_CHECK_CRC32_FALSE
906COND_CHECK_CRC32_TRUE
907COND_DECODER_LZ_FALSE
908COND_DECODER_LZ_TRUE
909COND_ENCODER_LZ_FALSE
910COND_ENCODER_LZ_TRUE
911COND_FILTER_LZ_FALSE
912COND_FILTER_LZ_TRUE
913COND_DECODER_SIMPLE_FALSE
914COND_DECODER_SIMPLE_TRUE
915COND_ENCODER_SIMPLE_FALSE
916COND_ENCODER_SIMPLE_TRUE
917COND_FILTER_SIMPLE_FALSE
918COND_FILTER_SIMPLE_TRUE
919COND_DECODER_SPARC_FALSE
920COND_DECODER_SPARC_TRUE
921COND_ENCODER_SPARC_FALSE
922COND_ENCODER_SPARC_TRUE
923COND_FILTER_SPARC_FALSE
924COND_FILTER_SPARC_TRUE
925COND_DECODER_ARMTHUMB_FALSE
926COND_DECODER_ARMTHUMB_TRUE
927COND_ENCODER_ARMTHUMB_FALSE
928COND_ENCODER_ARMTHUMB_TRUE
929COND_FILTER_ARMTHUMB_FALSE
930COND_FILTER_ARMTHUMB_TRUE
931COND_DECODER_ARM_FALSE
932COND_DECODER_ARM_TRUE
933COND_ENCODER_ARM_FALSE
934COND_ENCODER_ARM_TRUE
935COND_FILTER_ARM_FALSE
936COND_FILTER_ARM_TRUE
937COND_DECODER_IA64_FALSE
938COND_DECODER_IA64_TRUE
939COND_ENCODER_IA64_FALSE
940COND_ENCODER_IA64_TRUE
941COND_FILTER_IA64_FALSE
942COND_FILTER_IA64_TRUE
943COND_DECODER_POWERPC_FALSE
944COND_DECODER_POWERPC_TRUE
945COND_ENCODER_POWERPC_FALSE
946COND_ENCODER_POWERPC_TRUE
947COND_FILTER_POWERPC_FALSE
948COND_FILTER_POWERPC_TRUE
949COND_DECODER_X86_FALSE
950COND_DECODER_X86_TRUE
951COND_ENCODER_X86_FALSE
952COND_ENCODER_X86_TRUE
953COND_FILTER_X86_FALSE
954COND_FILTER_X86_TRUE
955COND_DECODER_DELTA_FALSE
956COND_DECODER_DELTA_TRUE
957COND_ENCODER_DELTA_FALSE
958COND_ENCODER_DELTA_TRUE
959COND_FILTER_DELTA_FALSE
960COND_FILTER_DELTA_TRUE
961COND_DECODER_SUBBLOCK_FALSE
962COND_DECODER_SUBBLOCK_TRUE
963COND_ENCODER_SUBBLOCK_FALSE
964COND_ENCODER_SUBBLOCK_TRUE
965COND_FILTER_SUBBLOCK_FALSE
966COND_FILTER_SUBBLOCK_TRUE
967COND_DECODER_LZMA2_FALSE
968COND_DECODER_LZMA2_TRUE
969COND_ENCODER_LZMA2_FALSE
970COND_ENCODER_LZMA2_TRUE
971COND_FILTER_LZMA2_FALSE
972COND_FILTER_LZMA2_TRUE
973COND_DECODER_LZMA1_FALSE
974COND_DECODER_LZMA1_TRUE
975COND_ENCODER_LZMA1_FALSE
976COND_ENCODER_LZMA1_TRUE
977COND_FILTER_LZMA1_FALSE
978COND_FILTER_LZMA1_TRUE
979COND_MAIN_DECODER_FALSE
980COND_MAIN_DECODER_TRUE
981COND_MAIN_ENCODER_FALSE
982COND_MAIN_ENCODER_TRUE
983COND_W32_FALSE
984COND_W32_TRUE
985host_os
986host_vendor
987host_cpu
988host
989build_os
990build_vendor
991build_cpu
992build
993PACKAGE_HOMEPAGE
994target_alias
995host_alias
996build_alias
997LIBS
998ECHO_T
999ECHO_N
1000ECHO_C
1001DEFS
1002mandir
1003localedir
1004libdir
1005psdir
1006pdfdir
1007dvidir
1008htmldir
1009infodir
1010docdir
1011oldincludedir
1012includedir
1013localstatedir
1014sharedstatedir
1015sysconfdir
1016datadir
1017datarootdir
1018libexecdir
1019sbindir
1020bindir
1021program_transform_name
1022prefix
1023exec_prefix
1024PACKAGE_BUGREPORT
1025PACKAGE_STRING
1026PACKAGE_VERSION
1027PACKAGE_TARNAME
1028PACKAGE_NAME
1029PATH_SEPARATOR
1030SHELL'
1031ac_subst_files=''
1032ac_user_opts='
1033enable_option_checking
1034enable_debug
1035enable_encoders
1036enable_decoders
1037enable_match_finders
1038enable_checks
1039enable_assembler
1040enable_unaligned_access
1041enable_small
1042enable_threads
1043enable_dynamic
1044enable_dependency_tracking
1045enable_shared
1046enable_static
1047with_pic
1048enable_fast_install
1049with_gnu_ld
1050enable_libtool_lock
1051enable_nls
1052enable_rpath
1053with_libiconv_prefix
1054with_libintl_prefix
1055enable_largefile
1056enable_werror
1057'
1058      ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CCAS
1067CCASFLAGS
1068CPP'
1069
1070
1071# Initialize some variables set by options.
1072ac_init_help=
1073ac_init_version=false
1074ac_unrecognized_opts=
1075ac_unrecognized_sep=
1076# The variables have the same names as the options, with
1077# dashes changed to underlines.
1078cache_file=/dev/null
1079exec_prefix=NONE
1080no_create=
1081no_recursion=
1082prefix=NONE
1083program_prefix=NONE
1084program_suffix=NONE
1085program_transform_name=s,x,x,
1086silent=
1087site=
1088srcdir=
1089verbose=
1090x_includes=NONE
1091x_libraries=NONE
1092
1093# Installation directory options.
1094# These are left unexpanded so users can "make install exec_prefix=/foo"
1095# and all the variables that are supposed to be based on exec_prefix
1096# by default will actually change.
1097# Use braces instead of parens because sh, perl, etc. also accept them.
1098# (The list follows the same order as the GNU Coding Standards.)
1099bindir='${exec_prefix}/bin'
1100sbindir='${exec_prefix}/sbin'
1101libexecdir='${exec_prefix}/libexec'
1102datarootdir='${prefix}/share'
1103datadir='${datarootdir}'
1104sysconfdir='${prefix}/etc'
1105sharedstatedir='${prefix}/com'
1106localstatedir='${prefix}/var'
1107includedir='${prefix}/include'
1108oldincludedir='/usr/include'
1109docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110infodir='${datarootdir}/info'
1111htmldir='${docdir}'
1112dvidir='${docdir}'
1113pdfdir='${docdir}'
1114psdir='${docdir}'
1115libdir='${exec_prefix}/lib'
1116localedir='${datarootdir}/locale'
1117mandir='${datarootdir}/man'
1118
1119ac_prev=
1120ac_dashdash=
1121for ac_option
1122do
1123  # If the previous option needs an argument, assign it.
1124  if test -n "$ac_prev"; then
1125    eval $ac_prev=\$ac_option
1126    ac_prev=
1127    continue
1128  fi
1129
1130  case $ac_option in
1131  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132  *)	ac_optarg=yes ;;
1133  esac
1134
1135  # Accept the important Cygnus configure options, so we can diagnose typos.
1136
1137  case $ac_dashdash$ac_option in
1138  --)
1139    ac_dashdash=yes ;;
1140
1141  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1142    ac_prev=bindir ;;
1143  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1144    bindir=$ac_optarg ;;
1145
1146  -build | --build | --buil | --bui | --bu)
1147    ac_prev=build_alias ;;
1148  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1149    build_alias=$ac_optarg ;;
1150
1151  -cache-file | --cache-file | --cache-fil | --cache-fi \
1152  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1153    ac_prev=cache_file ;;
1154  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1155  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1156    cache_file=$ac_optarg ;;
1157
1158  --config-cache | -C)
1159    cache_file=config.cache ;;
1160
1161  -datadir | --datadir | --datadi | --datad)
1162    ac_prev=datadir ;;
1163  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1164    datadir=$ac_optarg ;;
1165
1166  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1167  | --dataroo | --dataro | --datar)
1168    ac_prev=datarootdir ;;
1169  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1170  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1171    datarootdir=$ac_optarg ;;
1172
1173  -disable-* | --disable-*)
1174    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175    # Reject names that are not valid shell variable names.
1176    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1178   { (exit 1); exit 1; }; }
1179    ac_useropt_orig=$ac_useropt
1180    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181    case $ac_user_opts in
1182      *"
1183"enable_$ac_useropt"
1184"*) ;;
1185      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186	 ac_unrecognized_sep=', ';;
1187    esac
1188    eval enable_$ac_useropt=no ;;
1189
1190  -docdir | --docdir | --docdi | --doc | --do)
1191    ac_prev=docdir ;;
1192  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193    docdir=$ac_optarg ;;
1194
1195  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196    ac_prev=dvidir ;;
1197  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198    dvidir=$ac_optarg ;;
1199
1200  -enable-* | --enable-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1205   { (exit 1); exit 1; }; }
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"enable_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval enable_$ac_useropt=\$ac_optarg ;;
1216
1217  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1218  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1219  | --exec | --exe | --ex)
1220    ac_prev=exec_prefix ;;
1221  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1222  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1223  | --exec=* | --exe=* | --ex=*)
1224    exec_prefix=$ac_optarg ;;
1225
1226  -gas | --gas | --ga | --g)
1227    # Obsolete; use --with-gas.
1228    with_gas=yes ;;
1229
1230  -help | --help | --hel | --he | -h)
1231    ac_init_help=long ;;
1232  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1233    ac_init_help=recursive ;;
1234  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1235    ac_init_help=short ;;
1236
1237  -host | --host | --hos | --ho)
1238    ac_prev=host_alias ;;
1239  -host=* | --host=* | --hos=* | --ho=*)
1240    host_alias=$ac_optarg ;;
1241
1242  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1243    ac_prev=htmldir ;;
1244  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1245  | --ht=*)
1246    htmldir=$ac_optarg ;;
1247
1248  -includedir | --includedir | --includedi | --included | --include \
1249  | --includ | --inclu | --incl | --inc)
1250    ac_prev=includedir ;;
1251  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1252  | --includ=* | --inclu=* | --incl=* | --inc=*)
1253    includedir=$ac_optarg ;;
1254
1255  -infodir | --infodir | --infodi | --infod | --info | --inf)
1256    ac_prev=infodir ;;
1257  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1258    infodir=$ac_optarg ;;
1259
1260  -libdir | --libdir | --libdi | --libd)
1261    ac_prev=libdir ;;
1262  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1263    libdir=$ac_optarg ;;
1264
1265  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1266  | --libexe | --libex | --libe)
1267    ac_prev=libexecdir ;;
1268  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1269  | --libexe=* | --libex=* | --libe=*)
1270    libexecdir=$ac_optarg ;;
1271
1272  -localedir | --localedir | --localedi | --localed | --locale)
1273    ac_prev=localedir ;;
1274  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1275    localedir=$ac_optarg ;;
1276
1277  -localstatedir | --localstatedir | --localstatedi | --localstated \
1278  | --localstate | --localstat | --localsta | --localst | --locals)
1279    ac_prev=localstatedir ;;
1280  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1281  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1282    localstatedir=$ac_optarg ;;
1283
1284  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1285    ac_prev=mandir ;;
1286  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1287    mandir=$ac_optarg ;;
1288
1289  -nfp | --nfp | --nf)
1290    # Obsolete; use --without-fp.
1291    with_fp=no ;;
1292
1293  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1294  | --no-cr | --no-c | -n)
1295    no_create=yes ;;
1296
1297  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1298  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1299    no_recursion=yes ;;
1300
1301  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1302  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1303  | --oldin | --oldi | --old | --ol | --o)
1304    ac_prev=oldincludedir ;;
1305  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1306  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1307  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1308    oldincludedir=$ac_optarg ;;
1309
1310  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1311    ac_prev=prefix ;;
1312  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1313    prefix=$ac_optarg ;;
1314
1315  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1316  | --program-pre | --program-pr | --program-p)
1317    ac_prev=program_prefix ;;
1318  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1319  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1320    program_prefix=$ac_optarg ;;
1321
1322  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1323  | --program-suf | --program-su | --program-s)
1324    ac_prev=program_suffix ;;
1325  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1326  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1327    program_suffix=$ac_optarg ;;
1328
1329  -program-transform-name | --program-transform-name \
1330  | --program-transform-nam | --program-transform-na \
1331  | --program-transform-n | --program-transform- \
1332  | --program-transform | --program-transfor \
1333  | --program-transfo | --program-transf \
1334  | --program-trans | --program-tran \
1335  | --progr-tra | --program-tr | --program-t)
1336    ac_prev=program_transform_name ;;
1337  -program-transform-name=* | --program-transform-name=* \
1338  | --program-transform-nam=* | --program-transform-na=* \
1339  | --program-transform-n=* | --program-transform-=* \
1340  | --program-transform=* | --program-transfor=* \
1341  | --program-transfo=* | --program-transf=* \
1342  | --program-trans=* | --program-tran=* \
1343  | --progr-tra=* | --program-tr=* | --program-t=*)
1344    program_transform_name=$ac_optarg ;;
1345
1346  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1347    ac_prev=pdfdir ;;
1348  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1349    pdfdir=$ac_optarg ;;
1350
1351  -psdir | --psdir | --psdi | --psd | --ps)
1352    ac_prev=psdir ;;
1353  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1354    psdir=$ac_optarg ;;
1355
1356  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1357  | -silent | --silent | --silen | --sile | --sil)
1358    silent=yes ;;
1359
1360  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1361    ac_prev=sbindir ;;
1362  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1363  | --sbi=* | --sb=*)
1364    sbindir=$ac_optarg ;;
1365
1366  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1367  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1368  | --sharedst | --shareds | --shared | --share | --shar \
1369  | --sha | --sh)
1370    ac_prev=sharedstatedir ;;
1371  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1372  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1373  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1374  | --sha=* | --sh=*)
1375    sharedstatedir=$ac_optarg ;;
1376
1377  -site | --site | --sit)
1378    ac_prev=site ;;
1379  -site=* | --site=* | --sit=*)
1380    site=$ac_optarg ;;
1381
1382  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1383    ac_prev=srcdir ;;
1384  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1385    srcdir=$ac_optarg ;;
1386
1387  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1388  | --syscon | --sysco | --sysc | --sys | --sy)
1389    ac_prev=sysconfdir ;;
1390  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1391  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1392    sysconfdir=$ac_optarg ;;
1393
1394  -target | --target | --targe | --targ | --tar | --ta | --t)
1395    ac_prev=target_alias ;;
1396  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1397    target_alias=$ac_optarg ;;
1398
1399  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1400    verbose=yes ;;
1401
1402  -version | --version | --versio | --versi | --vers | -V)
1403    ac_init_version=: ;;
1404
1405  -with-* | --with-*)
1406    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1407    # Reject names that are not valid shell variable names.
1408    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1409      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1410   { (exit 1); exit 1; }; }
1411    ac_useropt_orig=$ac_useropt
1412    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413    case $ac_user_opts in
1414      *"
1415"with_$ac_useropt"
1416"*) ;;
1417      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418	 ac_unrecognized_sep=', ';;
1419    esac
1420    eval with_$ac_useropt=\$ac_optarg ;;
1421
1422  -without-* | --without-*)
1423    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424    # Reject names that are not valid shell variable names.
1425    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1427   { (exit 1); exit 1; }; }
1428    ac_useropt_orig=$ac_useropt
1429    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430    case $ac_user_opts in
1431      *"
1432"with_$ac_useropt"
1433"*) ;;
1434      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435	 ac_unrecognized_sep=', ';;
1436    esac
1437    eval with_$ac_useropt=no ;;
1438
1439  --x)
1440    # Obsolete; use --with-x.
1441    with_x=yes ;;
1442
1443  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1444  | --x-incl | --x-inc | --x-in | --x-i)
1445    ac_prev=x_includes ;;
1446  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1447  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1448    x_includes=$ac_optarg ;;
1449
1450  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1451  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1452    ac_prev=x_libraries ;;
1453  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1454  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1455    x_libraries=$ac_optarg ;;
1456
1457  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1458Try \`$0 --help' for more information." >&2
1459   { (exit 1); exit 1; }; }
1460    ;;
1461
1462  *=*)
1463    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464    # Reject names that are not valid shell variable names.
1465    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1466      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1467   { (exit 1); exit 1; }; }
1468    eval $ac_envvar=\$ac_optarg
1469    export $ac_envvar ;;
1470
1471  *)
1472    # FIXME: should be removed in autoconf 3.0.
1473    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1475      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1476    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1477    ;;
1478
1479  esac
1480done
1481
1482if test -n "$ac_prev"; then
1483  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1484  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1485   { (exit 1); exit 1; }; }
1486fi
1487
1488if test -n "$ac_unrecognized_opts"; then
1489  case $enable_option_checking in
1490    no) ;;
1491    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1492   { (exit 1); exit 1; }; } ;;
1493    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494  esac
1495fi
1496
1497# Check all directory arguments for consistency.
1498for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499		datadir sysconfdir sharedstatedir localstatedir includedir \
1500		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1501		libdir localedir mandir
1502do
1503  eval ac_val=\$$ac_var
1504  # Remove trailing slashes.
1505  case $ac_val in
1506    */ )
1507      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1508      eval $ac_var=\$ac_val;;
1509  esac
1510  # Be sure to have absolute directory names.
1511  case $ac_val in
1512    [\\/$]* | ?:[\\/]* )  continue;;
1513    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1514  esac
1515  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1516   { (exit 1); exit 1; }; }
1517done
1518
1519# There might be people who depend on the old broken behavior: `$host'
1520# used to hold the argument of --host etc.
1521# FIXME: To remove some day.
1522build=$build_alias
1523host=$host_alias
1524target=$target_alias
1525
1526# FIXME: To remove some day.
1527if test "x$host_alias" != x; then
1528  if test "x$build_alias" = x; then
1529    cross_compiling=maybe
1530    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1531    If a cross compiler is detected then cross compile mode will be used." >&2
1532  elif test "x$build_alias" != "x$host_alias"; then
1533    cross_compiling=yes
1534  fi
1535fi
1536
1537ac_tool_prefix=
1538test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539
1540test "$silent" = yes && exec 6>/dev/null
1541
1542
1543ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544ac_ls_di=`ls -di .` &&
1545ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1546  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1547   { (exit 1); exit 1; }; }
1548test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1549  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1550   { (exit 1); exit 1; }; }
1551
1552
1553# Find the source files, if location was not specified.
1554if test -z "$srcdir"; then
1555  ac_srcdir_defaulted=yes
1556  # Try the directory containing this script, then the parent directory.
1557  ac_confdir=`$as_dirname -- "$as_myself" ||
1558$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559	 X"$as_myself" : 'X\(//\)[^/]' \| \
1560	 X"$as_myself" : 'X\(//\)$' \| \
1561	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562$as_echo X"$as_myself" |
1563    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1564	    s//\1/
1565	    q
1566	  }
1567	  /^X\(\/\/\)[^/].*/{
1568	    s//\1/
1569	    q
1570	  }
1571	  /^X\(\/\/\)$/{
1572	    s//\1/
1573	    q
1574	  }
1575	  /^X\(\/\).*/{
1576	    s//\1/
1577	    q
1578	  }
1579	  s/.*/./; q'`
1580  srcdir=$ac_confdir
1581  if test ! -r "$srcdir/$ac_unique_file"; then
1582    srcdir=..
1583  fi
1584else
1585  ac_srcdir_defaulted=no
1586fi
1587if test ! -r "$srcdir/$ac_unique_file"; then
1588  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1589  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1590   { (exit 1); exit 1; }; }
1591fi
1592ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593ac_abs_confdir=`(
1594	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1595   { (exit 1); exit 1; }; }
1596	pwd)`
1597# When building in place, set srcdir=.
1598if test "$ac_abs_confdir" = "$ac_pwd"; then
1599  srcdir=.
1600fi
1601# Remove unnecessary trailing slashes from srcdir.
1602# Double slashes in file names in object file debugging info
1603# mess up M-x gdb in Emacs.
1604case $srcdir in
1605*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606esac
1607for ac_var in $ac_precious_vars; do
1608  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609  eval ac_env_${ac_var}_value=\$${ac_var}
1610  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612done
1613
1614#
1615# Report the --help message.
1616#
1617if test "$ac_init_help" = "long"; then
1618  # Omit some internal or obsolete options to make the list less imposing.
1619  # This message is too long to be a string in the A/UX 3.1 sh.
1620  cat <<_ACEOF
1621\`configure' configures XZ Utils 4.999.9beta to adapt to many kinds of systems.
1622
1623Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626VAR=VALUE.  See below for descriptions of some of the useful variables.
1627
1628Defaults for the options are specified in brackets.
1629
1630Configuration:
1631  -h, --help              display this help and exit
1632      --help=short        display options specific to this package
1633      --help=recursive    display the short help of all the included packages
1634  -V, --version           display version information and exit
1635  -q, --quiet, --silent   do not print \`checking...' messages
1636      --cache-file=FILE   cache test results in FILE [disabled]
1637  -C, --config-cache      alias for \`--cache-file=config.cache'
1638  -n, --no-create         do not create output files
1639      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1640
1641Installation directories:
1642  --prefix=PREFIX         install architecture-independent files in PREFIX
1643                          [$ac_default_prefix]
1644  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1645                          [PREFIX]
1646
1647By default, \`make install' will install all the files in
1648\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1649an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650for instance \`--prefix=\$HOME'.
1651
1652For better control, use the options below.
1653
1654Fine tuning of the installation directories:
1655  --bindir=DIR            user executables [EPREFIX/bin]
1656  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1657  --libexecdir=DIR        program executables [EPREFIX/libexec]
1658  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1659  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1660  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1661  --libdir=DIR            object code libraries [EPREFIX/lib]
1662  --includedir=DIR        C header files [PREFIX/include]
1663  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1664  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1665  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1666  --infodir=DIR           info documentation [DATAROOTDIR/info]
1667  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1668  --mandir=DIR            man documentation [DATAROOTDIR/man]
1669  --docdir=DIR            documentation root [DATAROOTDIR/doc/xz]
1670  --htmldir=DIR           html documentation [DOCDIR]
1671  --dvidir=DIR            dvi documentation [DOCDIR]
1672  --pdfdir=DIR            pdf documentation [DOCDIR]
1673  --psdir=DIR             ps documentation [DOCDIR]
1674_ACEOF
1675
1676  cat <<\_ACEOF
1677
1678Program names:
1679  --program-prefix=PREFIX            prepend PREFIX to installed program names
1680  --program-suffix=SUFFIX            append SUFFIX to installed program names
1681  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1682
1683System types:
1684  --build=BUILD     configure for building on BUILD [guessed]
1685  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1686_ACEOF
1687fi
1688
1689if test -n "$ac_init_help"; then
1690  case $ac_init_help in
1691     short | recursive ) echo "Configuration of XZ Utils 4.999.9beta:";;
1692   esac
1693  cat <<\_ACEOF
1694
1695Optional Features:
1696  --disable-option-checking  ignore unrecognized --enable/--with options
1697  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1698  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1699  --enable-debug          Enable debugging code.
1700  --enable-encoders=LIST  Comma-separated list of encoders to build.
1701                          Default=all. Available encoders: lzma1 lzma2
1702                          subblock delta x86 powerpc ia64 arm armthumb sparc
1703  --enable-decoders=LIST  Comma-separated list of decoders to build.
1704                          Default=all. Available decoders are the same as
1705                          available encoders.
1706  --enable-match-finders=LIST
1707                          Comma-separated list of match finders to build.
1708                          Default=all. At least one match finder is required
1709                          for encoding with the LZMA1 and LZMA2 filters.
1710                          Available match finders: hc3 hc4 bt2 bt3 bt4
1711  --enable-checks=LIST    Comma-separated list of integrity checks to build.
1712                          Default=all. Available integrity checks: crc32 crc64
1713                          sha256
1714  --disable-assembler     Do not use assembler optimizations even if such
1715                          exist for the architecture.
1716  --enable-unaligned-access
1717                          Enable if the system supports *fast* unaligned
1718                          memory access with 16-bit and 32-bit integers. By
1719                          default, this is enabled only on x86, x86_64, and
1720                          big endian PowerPC.
1721  --enable-small          Make liblzma smaller and a little slower. This is
1722                          disabled by default to optimize for speed.
1723  --disable-threads       Disable threading support. This makes some things
1724                          thread-unsafe.
1725  --enable-dynamic=TYPE   Set how command line tools are linked against
1726                          liblzma. TYPE can be mixed, yes, or no. The default
1727                          is mixed.
1728  --disable-dependency-tracking  speeds up one-time build
1729  --enable-dependency-tracking   do not reject slow dependency extractors
1730  --enable-shared[=PKGS]  build shared libraries [default=yes]
1731  --enable-static[=PKGS]  build static libraries [default=yes]
1732  --enable-fast-install[=PKGS]
1733                          optimize for fast installation [default=yes]
1734  --disable-libtool-lock  avoid locking (might break parallel builds)
1735  --disable-nls           do not use Native Language Support
1736  --disable-rpath         do not hardcode runtime library paths
1737  --disable-largefile     omit support for large files
1738  --enable-werror         Enable -Werror to abort compilation on all compiler
1739                          warnings.
1740
1741Optional Packages:
1742  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1743  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1744  --with-pic              try to use only PIC/non-PIC objects [default=use
1745                          both]
1746  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1747  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1748  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1749  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1750  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1751  --without-libintl-prefix     don't search for libintl in includedir and libdir
1752
1753Some influential environment variables:
1754  CC          C compiler command
1755  CFLAGS      C compiler flags
1756  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757              nonstandard directory <lib dir>
1758  LIBS        libraries to pass to the linker, e.g. -l<library>
1759  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760              you have headers in a nonstandard directory <include dir>
1761  CCAS        assembler compiler command (defaults to CC)
1762  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1763  CPP         C preprocessor
1764
1765Use these variables to override the choices made by `configure' or to help
1766it to find libraries and programs with nonstandard names/locations.
1767
1768Report bugs to <lasse.collin@tukaani.org>.
1769_ACEOF
1770ac_status=$?
1771fi
1772
1773if test "$ac_init_help" = "recursive"; then
1774  # If there are subdirs, report their specific --help.
1775  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776    test -d "$ac_dir" ||
1777      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778      continue
1779    ac_builddir=.
1780
1781case "$ac_dir" in
1782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783*)
1784  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785  # A ".." for each directory in $ac_dir_suffix.
1786  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787  case $ac_top_builddir_sub in
1788  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790  esac ;;
1791esac
1792ac_abs_top_builddir=$ac_pwd
1793ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794# for backward compatibility:
1795ac_top_builddir=$ac_top_build_prefix
1796
1797case $srcdir in
1798  .)  # We are building in place.
1799    ac_srcdir=.
1800    ac_top_srcdir=$ac_top_builddir_sub
1801    ac_abs_top_srcdir=$ac_pwd ;;
1802  [\\/]* | ?:[\\/]* )  # Absolute name.
1803    ac_srcdir=$srcdir$ac_dir_suffix;
1804    ac_top_srcdir=$srcdir
1805    ac_abs_top_srcdir=$srcdir ;;
1806  *) # Relative name.
1807    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808    ac_top_srcdir=$ac_top_build_prefix$srcdir
1809    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810esac
1811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813    cd "$ac_dir" || { ac_status=$?; continue; }
1814    # Check for guested configure.
1815    if test -f "$ac_srcdir/configure.gnu"; then
1816      echo &&
1817      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818    elif test -f "$ac_srcdir/configure"; then
1819      echo &&
1820      $SHELL "$ac_srcdir/configure" --help=recursive
1821    else
1822      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823    fi || ac_status=$?
1824    cd "$ac_pwd" || { ac_status=$?; break; }
1825  done
1826fi
1827
1828test -n "$ac_init_help" && exit $ac_status
1829if $ac_init_version; then
1830  cat <<\_ACEOF
1831XZ Utils configure 4.999.9beta
1832generated by GNU Autoconf 2.63
1833
1834Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18352002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1836This configure script is free software; the Free Software Foundation
1837gives unlimited permission to copy, distribute and modify it.
1838_ACEOF
1839  exit
1840fi
1841cat >config.log <<_ACEOF
1842This file contains any messages produced by compilers while
1843running configure, to aid debugging if configure makes a mistake.
1844
1845It was created by XZ Utils $as_me 4.999.9beta, which was
1846generated by GNU Autoconf 2.63.  Invocation command line was
1847
1848  $ $0 $@
1849
1850_ACEOF
1851exec 5>>config.log
1852{
1853cat <<_ASUNAME
1854## --------- ##
1855## Platform. ##
1856## --------- ##
1857
1858hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1859uname -m = `(uname -m) 2>/dev/null || echo unknown`
1860uname -r = `(uname -r) 2>/dev/null || echo unknown`
1861uname -s = `(uname -s) 2>/dev/null || echo unknown`
1862uname -v = `(uname -v) 2>/dev/null || echo unknown`
1863
1864/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1865/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1866
1867/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1868/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1869/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1870/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1871/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1872/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1873/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1874
1875_ASUNAME
1876
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882  $as_echo "PATH: $as_dir"
1883done
1884IFS=$as_save_IFS
1885
1886} >&5
1887
1888cat >&5 <<_ACEOF
1889
1890
1891## ----------- ##
1892## Core tests. ##
1893## ----------- ##
1894
1895_ACEOF
1896
1897
1898# Keep a trace of the command line.
1899# Strip out --no-create and --no-recursion so they do not pile up.
1900# Strip out --silent because we don't want to record it for future runs.
1901# Also quote any args containing shell meta-characters.
1902# Make two passes to allow for proper duplicate-argument suppression.
1903ac_configure_args=
1904ac_configure_args0=
1905ac_configure_args1=
1906ac_must_keep_next=false
1907for ac_pass in 1 2
1908do
1909  for ac_arg
1910  do
1911    case $ac_arg in
1912    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1913    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1914    | -silent | --silent | --silen | --sile | --sil)
1915      continue ;;
1916    *\'*)
1917      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918    esac
1919    case $ac_pass in
1920    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1921    2)
1922      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1923      if test $ac_must_keep_next = true; then
1924	ac_must_keep_next=false # Got value, back to normal.
1925      else
1926	case $ac_arg in
1927	  *=* | --config-cache | -C | -disable-* | --disable-* \
1928	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1929	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1930	  | -with-* | --with-* | -without-* | --without-* | --x)
1931	    case "$ac_configure_args0 " in
1932	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933	    esac
1934	    ;;
1935	  -* ) ac_must_keep_next=true ;;
1936	esac
1937      fi
1938      ac_configure_args="$ac_configure_args '$ac_arg'"
1939      ;;
1940    esac
1941  done
1942done
1943$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1944$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1945
1946# When interrupted or exit'd, cleanup temporary files, and complete
1947# config.log.  We remove comments because anyway the quotes in there
1948# would cause problems or look ugly.
1949# WARNING: Use '\'' to represent an apostrophe within the trap.
1950# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1951trap 'exit_status=$?
1952  # Save into config.log some information that might help in debugging.
1953  {
1954    echo
1955
1956    cat <<\_ASBOX
1957## ---------------- ##
1958## Cache variables. ##
1959## ---------------- ##
1960_ASBOX
1961    echo
1962    # The following way of writing the cache mishandles newlines in values,
1963(
1964  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1965    eval ac_val=\$$ac_var
1966    case $ac_val in #(
1967    *${as_nl}*)
1968      case $ac_var in #(
1969      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1970$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971      esac
1972      case $ac_var in #(
1973      _ | IFS | as_nl) ;; #(
1974      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1975      *) $as_unset $ac_var ;;
1976      esac ;;
1977    esac
1978  done
1979  (set) 2>&1 |
1980    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981    *${as_nl}ac_space=\ *)
1982      sed -n \
1983	"s/'\''/'\''\\\\'\'''\''/g;
1984	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985      ;; #(
1986    *)
1987      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988      ;;
1989    esac |
1990    sort
1991)
1992    echo
1993
1994    cat <<\_ASBOX
1995## ----------------- ##
1996## Output variables. ##
1997## ----------------- ##
1998_ASBOX
1999    echo
2000    for ac_var in $ac_subst_vars
2001    do
2002      eval ac_val=\$$ac_var
2003      case $ac_val in
2004      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005      esac
2006      $as_echo "$ac_var='\''$ac_val'\''"
2007    done | sort
2008    echo
2009
2010    if test -n "$ac_subst_files"; then
2011      cat <<\_ASBOX
2012## ------------------- ##
2013## File substitutions. ##
2014## ------------------- ##
2015_ASBOX
2016      echo
2017      for ac_var in $ac_subst_files
2018      do
2019	eval ac_val=\$$ac_var
2020	case $ac_val in
2021	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022	esac
2023	$as_echo "$ac_var='\''$ac_val'\''"
2024      done | sort
2025      echo
2026    fi
2027
2028    if test -s confdefs.h; then
2029      cat <<\_ASBOX
2030## ----------- ##
2031## confdefs.h. ##
2032## ----------- ##
2033_ASBOX
2034      echo
2035      cat confdefs.h
2036      echo
2037    fi
2038    test "$ac_signal" != 0 &&
2039      $as_echo "$as_me: caught signal $ac_signal"
2040    $as_echo "$as_me: exit $exit_status"
2041  } >&5
2042  rm -f core *.core core.conftest.* &&
2043    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044    exit $exit_status
2045' 0
2046for ac_signal in 1 2 13 15; do
2047  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2048done
2049ac_signal=0
2050
2051# confdefs.h avoids OS command line length limits that DEFS can exceed.
2052rm -f -r conftest* confdefs.h
2053
2054# Predefined preprocessor variables.
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_NAME "$PACKAGE_NAME"
2058_ACEOF
2059
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063_ACEOF
2064
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_VERSION "$PACKAGE_VERSION"
2068_ACEOF
2069
2070
2071cat >>confdefs.h <<_ACEOF
2072#define PACKAGE_STRING "$PACKAGE_STRING"
2073_ACEOF
2074
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078_ACEOF
2079
2080
2081# Let the site file select an alternate cache file if it wants to.
2082# Prefer an explicitly selected file to automatically selected ones.
2083ac_site_file1=NONE
2084ac_site_file2=NONE
2085if test -n "$CONFIG_SITE"; then
2086  ac_site_file1=$CONFIG_SITE
2087elif test "x$prefix" != xNONE; then
2088  ac_site_file1=$prefix/share/config.site
2089  ac_site_file2=$prefix/etc/config.site
2090else
2091  ac_site_file1=$ac_default_prefix/share/config.site
2092  ac_site_file2=$ac_default_prefix/etc/config.site
2093fi
2094for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2095do
2096  test "x$ac_site_file" = xNONE && continue
2097  if test -r "$ac_site_file"; then
2098    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2099$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100    sed 's/^/| /' "$ac_site_file" >&5
2101    . "$ac_site_file"
2102  fi
2103done
2104
2105if test -r "$cache_file"; then
2106  # Some versions of bash will fail to source /dev/null (special
2107  # files actually), so we avoid doing that.
2108  if test -f "$cache_file"; then
2109    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2110$as_echo "$as_me: loading cache $cache_file" >&6;}
2111    case $cache_file in
2112      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113      *)                      . "./$cache_file";;
2114    esac
2115  fi
2116else
2117  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2118$as_echo "$as_me: creating cache $cache_file" >&6;}
2119  >$cache_file
2120fi
2121
2122gt_needs="$gt_needs "
2123# Check that the precious variables saved in the cache have kept the same
2124# value.
2125ac_cache_corrupted=false
2126for ac_var in $ac_precious_vars; do
2127  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128  eval ac_new_set=\$ac_env_${ac_var}_set
2129  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130  eval ac_new_val=\$ac_env_${ac_var}_value
2131  case $ac_old_set,$ac_new_set in
2132    set,)
2133      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135      ac_cache_corrupted=: ;;
2136    ,set)
2137      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139      ac_cache_corrupted=: ;;
2140    ,);;
2141    *)
2142      if test "x$ac_old_val" != "x$ac_new_val"; then
2143	# differences in whitespace do not lead to failure.
2144	ac_old_val_w=`echo x $ac_old_val`
2145	ac_new_val_w=`echo x $ac_new_val`
2146	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2147	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2148$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149	  ac_cache_corrupted=:
2150	else
2151	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2152$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2153	  eval $ac_var=\$ac_old_val
2154	fi
2155	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2156$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2157	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2158$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2159      fi;;
2160  esac
2161  # Pass precious variables to config.status.
2162  if test "$ac_new_set" = set; then
2163    case $ac_new_val in
2164    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2165    *) ac_arg=$ac_var=$ac_new_val ;;
2166    esac
2167    case " $ac_configure_args " in
2168      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2169      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2170    esac
2171  fi
2172done
2173if $ac_cache_corrupted; then
2174  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2177$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2178  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2179$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2180   { (exit 1); exit 1; }; }
2181fi
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207ac_ext=c
2208ac_cpp='$CPP $CPPFLAGS'
2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212
2213
2214
2215ac_aux_dir=
2216for ac_dir in build-aux "$srcdir"/build-aux; do
2217  if test -f "$ac_dir/install-sh"; then
2218    ac_aux_dir=$ac_dir
2219    ac_install_sh="$ac_aux_dir/install-sh -c"
2220    break
2221  elif test -f "$ac_dir/install.sh"; then
2222    ac_aux_dir=$ac_dir
2223    ac_install_sh="$ac_aux_dir/install.sh -c"
2224    break
2225  elif test -f "$ac_dir/shtool"; then
2226    ac_aux_dir=$ac_dir
2227    ac_install_sh="$ac_aux_dir/shtool install -c"
2228    break
2229  fi
2230done
2231if test -z "$ac_aux_dir"; then
2232  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2233$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2234   { (exit 1); exit 1; }; }
2235fi
2236
2237# These three variables are undocumented and unsupported,
2238# and are intended to be withdrawn in a future Autoconf release.
2239# They can cause serious problems if a builder's source tree is in a directory
2240# whose full name contains unusual characters.
2241ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2242ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2243ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2244
2245
2246
2247ac_config_headers="$ac_config_headers config.h"
2248
2249
2250PACKAGE_HOMEPAGE=http://tukaani.org/xz/
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_HOMEPAGE "$PACKAGE_HOMEPAGE"
2254_ACEOF
2255
2256
2257
2258echo
2259echo "$PACKAGE_STRING"
2260
2261echo
2262echo "System type:"
2263# This is needed to know if assembler optimizations can be used.
2264# Make sure we can run config.sub.
2265$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2266  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2267$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2268   { (exit 1); exit 1; }; }
2269
2270{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2271$as_echo_n "checking build system type... " >&6; }
2272if test "${ac_cv_build+set}" = set; then
2273  $as_echo_n "(cached) " >&6
2274else
2275  ac_build_alias=$build_alias
2276test "x$ac_build_alias" = x &&
2277  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278test "x$ac_build_alias" = x &&
2279  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2280$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2281   { (exit 1); exit 1; }; }
2282ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2283  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2284$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2285   { (exit 1); exit 1; }; }
2286
2287fi
2288{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2289$as_echo "$ac_cv_build" >&6; }
2290case $ac_cv_build in
2291*-*-*) ;;
2292*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2293$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2294   { (exit 1); exit 1; }; };;
2295esac
2296build=$ac_cv_build
2297ac_save_IFS=$IFS; IFS='-'
2298set x $ac_cv_build
2299shift
2300build_cpu=$1
2301build_vendor=$2
2302shift; shift
2303# Remember, the first character of IFS is used to create $*,
2304# except with old shells:
2305build_os=$*
2306IFS=$ac_save_IFS
2307case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2308
2309
2310{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2311$as_echo_n "checking host system type... " >&6; }
2312if test "${ac_cv_host+set}" = set; then
2313  $as_echo_n "(cached) " >&6
2314else
2315  if test "x$host_alias" = x; then
2316  ac_cv_host=$ac_cv_build
2317else
2318  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2319    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2320$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2321   { (exit 1); exit 1; }; }
2322fi
2323
2324fi
2325{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2326$as_echo "$ac_cv_host" >&6; }
2327case $ac_cv_host in
2328*-*-*) ;;
2329*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2330$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2331   { (exit 1); exit 1; }; };;
2332esac
2333host=$ac_cv_host
2334ac_save_IFS=$IFS; IFS='-'
2335set x $ac_cv_host
2336shift
2337host_cpu=$1
2338host_vendor=$2
2339shift; shift
2340# Remember, the first character of IFS is used to create $*,
2341# except with old shells:
2342host_os=$*
2343IFS=$ac_save_IFS
2344case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2345
2346
2347
2348# We do some special things on Windows (32-bit or 64-bit) builds.
2349case $host_os in
2350	mingw* | cygwin*) is_w32=yes ;;
2351	*)                is_w32=no ;;
2352esac
2353 if test "$is_w32" = yes; then
2354  COND_W32_TRUE=
2355  COND_W32_FALSE='#'
2356else
2357  COND_W32_TRUE='#'
2358  COND_W32_FALSE=
2359fi
2360
2361
2362
2363echo
2364echo "Configure options:"
2365AM_CFLAGS=
2366
2367
2368#############
2369# Debugging #
2370#############
2371
2372{ $as_echo "$as_me:$LINENO: checking if debugging code should be compiled" >&5
2373$as_echo_n "checking if debugging code should be compiled... " >&6; }
2374# Check whether --enable-debug was given.
2375if test "${enable_debug+set}" = set; then
2376  enableval=$enable_debug;
2377else
2378  enable_debug=no
2379fi
2380
2381if test "x$enable_debug" = xyes; then
2382	{ $as_echo "$as_me:$LINENO: result: yes" >&5
2383$as_echo "yes" >&6; }
2384else
2385
2386cat >>confdefs.h <<\_ACEOF
2387#define NDEBUG 1
2388_ACEOF
2389
2390	{ $as_echo "$as_me:$LINENO: result: no" >&5
2391$as_echo "no" >&6; }
2392fi
2393
2394
2395###########
2396# Filters #
2397###########
2398
2399
2400
2401
2402enable_filter_lzma1=no
2403enable_encoder_lzma1=no
2404enable_decoder_lzma1=no
2405enable_filter_lzma2=no
2406enable_encoder_lzma2=no
2407enable_decoder_lzma2=no
2408enable_filter_subblock=no
2409enable_encoder_subblock=no
2410enable_decoder_subblock=no
2411enable_filter_delta=no
2412enable_encoder_delta=no
2413enable_decoder_delta=no
2414enable_filter_x86=no
2415enable_encoder_x86=no
2416enable_decoder_x86=no
2417enable_filter_powerpc=no
2418enable_encoder_powerpc=no
2419enable_decoder_powerpc=no
2420enable_filter_ia64=no
2421enable_encoder_ia64=no
2422enable_decoder_ia64=no
2423enable_filter_arm=no
2424enable_encoder_arm=no
2425enable_decoder_arm=no
2426enable_filter_armthumb=no
2427enable_encoder_armthumb=no
2428enable_decoder_armthumb=no
2429enable_filter_sparc=no
2430enable_encoder_sparc=no
2431enable_decoder_sparc=no
2432
2433{ $as_echo "$as_me:$LINENO: checking which encoders to build" >&5
2434$as_echo_n "checking which encoders to build... " >&6; }
2435# Check whether --enable-encoders was given.
2436if test "${enable_encoders+set}" = set; then
2437  enableval=$enable_encoders;
2438else
2439  enable_encoders=lzma1,lzma2,subblock,delta,x86,powerpc,ia64,arm,armthumb,sparc
2440fi
2441
2442enable_encoders=`echo "$enable_encoders" | sed 's/,subblock//; s/,/ /g'`
2443if test "x$enable_encoders" = xno || test "x$enable_encoders" = x; then
2444	{ $as_echo "$as_me:$LINENO: result: (none)" >&5
2445$as_echo "(none)" >&6; }
2446else
2447
2448cat >>confdefs.h <<\_ACEOF
2449#define HAVE_ENCODER 1
2450_ACEOF
2451
2452	for arg in $enable_encoders
2453	do
2454		case $arg in
2455			lzma1)
2456				enable_filter_lzma1=yes
2457				enable_encoder_lzma1=yes
2458
2459cat >>confdefs.h <<\_ACEOF
2460#define HAVE_ENCODER_LZMA1 1
2461_ACEOF
2462
2463				;;
2464			lzma2)
2465				enable_filter_lzma2=yes
2466				enable_encoder_lzma2=yes
2467
2468cat >>confdefs.h <<\_ACEOF
2469#define HAVE_ENCODER_LZMA2 1
2470_ACEOF
2471
2472				;;
2473			subblock)
2474				enable_filter_subblock=yes
2475				enable_encoder_subblock=yes
2476
2477cat >>confdefs.h <<\_ACEOF
2478#define HAVE_ENCODER_SUBBLOCK 1
2479_ACEOF
2480
2481				;;
2482			delta)
2483				enable_filter_delta=yes
2484				enable_encoder_delta=yes
2485
2486cat >>confdefs.h <<\_ACEOF
2487#define HAVE_ENCODER_DELTA 1
2488_ACEOF
2489
2490				;;
2491			x86)
2492				enable_filter_x86=yes
2493				enable_encoder_x86=yes
2494
2495cat >>confdefs.h <<\_ACEOF
2496#define HAVE_ENCODER_X86 1
2497_ACEOF
2498
2499				;;
2500			powerpc)
2501				enable_filter_powerpc=yes
2502				enable_encoder_powerpc=yes
2503
2504cat >>confdefs.h <<\_ACEOF
2505#define HAVE_ENCODER_POWERPC 1
2506_ACEOF
2507
2508				;;
2509			ia64)
2510				enable_filter_ia64=yes
2511				enable_encoder_ia64=yes
2512
2513cat >>confdefs.h <<\_ACEOF
2514#define HAVE_ENCODER_IA64 1
2515_ACEOF
2516
2517				;;
2518			arm)
2519				enable_filter_arm=yes
2520				enable_encoder_arm=yes
2521
2522cat >>confdefs.h <<\_ACEOF
2523#define HAVE_ENCODER_ARM 1
2524_ACEOF
2525
2526				;;
2527			armthumb)
2528				enable_filter_armthumb=yes
2529				enable_encoder_armthumb=yes
2530
2531cat >>confdefs.h <<\_ACEOF
2532#define HAVE_ENCODER_ARMTHUMB 1
2533_ACEOF
2534
2535				;;
2536			sparc)
2537				enable_filter_sparc=yes
2538				enable_encoder_sparc=yes
2539
2540cat >>confdefs.h <<\_ACEOF
2541#define HAVE_ENCODER_SPARC 1
2542_ACEOF
2543
2544				;;
2545			*)
2546				{ $as_echo "$as_me:$LINENO: result: " >&5
2547$as_echo "" >&6; }
2548				{ { $as_echo "$as_me:$LINENO: error: unknown filter: $arg" >&5
2549$as_echo "$as_me: error: unknown filter: $arg" >&2;}
2550   { (exit 1); exit 1; }; }
2551				;;
2552		esac
2553	done
2554	{ $as_echo "$as_me:$LINENO: result: $enable_encoders" >&5
2555$as_echo "$enable_encoders" >&6; }
2556fi
2557
2558{ $as_echo "$as_me:$LINENO: checking which decoders to build" >&5
2559$as_echo_n "checking which decoders to build... " >&6; }
2560# Check whether --enable-decoders was given.
2561if test "${enable_decoders+set}" = set; then
2562  enableval=$enable_decoders;
2563else
2564  enable_decoders=lzma1,lzma2,subblock,delta,x86,powerpc,ia64,arm,armthumb,sparc
2565fi
2566
2567enable_decoders=`echo "$enable_decoders" | sed 's/,subblock//; s/,/ /g'`
2568if test "x$enable_decoders" = xno || test "x$enable_decoders" = x; then
2569	{ $as_echo "$as_me:$LINENO: result: (none)" >&5
2570$as_echo "(none)" >&6; }
2571else
2572
2573cat >>confdefs.h <<\_ACEOF
2574#define HAVE_DECODER 1
2575_ACEOF
2576
2577	for arg in $enable_decoders
2578	do
2579		case $arg in
2580			lzma1)
2581				enable_filter_lzma1=yes
2582				enable_decoder_lzma1=yes
2583
2584cat >>confdefs.h <<\_ACEOF
2585#define HAVE_DECODER_LZMA1 1
2586_ACEOF
2587
2588				;;
2589			lzma2)
2590				enable_filter_lzma2=yes
2591				enable_decoder_lzma2=yes
2592
2593cat >>confdefs.h <<\_ACEOF
2594#define HAVE_DECODER_LZMA2 1
2595_ACEOF
2596
2597				;;
2598			subblock)
2599				enable_filter_subblock=yes
2600				enable_decoder_subblock=yes
2601
2602cat >>confdefs.h <<\_ACEOF
2603#define HAVE_DECODER_SUBBLOCK 1
2604_ACEOF
2605
2606				;;
2607			delta)
2608				enable_filter_delta=yes
2609				enable_decoder_delta=yes
2610
2611cat >>confdefs.h <<\_ACEOF
2612#define HAVE_DECODER_DELTA 1
2613_ACEOF
2614
2615				;;
2616			x86)
2617				enable_filter_x86=yes
2618				enable_decoder_x86=yes
2619
2620cat >>confdefs.h <<\_ACEOF
2621#define HAVE_DECODER_X86 1
2622_ACEOF
2623
2624				;;
2625			powerpc)
2626				enable_filter_powerpc=yes
2627				enable_decoder_powerpc=yes
2628
2629cat >>confdefs.h <<\_ACEOF
2630#define HAVE_DECODER_POWERPC 1
2631_ACEOF
2632
2633				;;
2634			ia64)
2635				enable_filter_ia64=yes
2636				enable_decoder_ia64=yes
2637
2638cat >>confdefs.h <<\_ACEOF
2639#define HAVE_DECODER_IA64 1
2640_ACEOF
2641
2642				;;
2643			arm)
2644				enable_filter_arm=yes
2645				enable_decoder_arm=yes
2646
2647cat >>confdefs.h <<\_ACEOF
2648#define HAVE_DECODER_ARM 1
2649_ACEOF
2650
2651				;;
2652			armthumb)
2653				enable_filter_armthumb=yes
2654				enable_decoder_armthumb=yes
2655
2656cat >>confdefs.h <<\_ACEOF
2657#define HAVE_DECODER_ARMTHUMB 1
2658_ACEOF
2659
2660				;;
2661			sparc)
2662				enable_filter_sparc=yes
2663				enable_decoder_sparc=yes
2664
2665cat >>confdefs.h <<\_ACEOF
2666#define HAVE_DECODER_SPARC 1
2667_ACEOF
2668
2669				;;
2670			*)
2671				{ $as_echo "$as_me:$LINENO: result: " >&5
2672$as_echo "" >&6; }
2673				{ { $as_echo "$as_me:$LINENO: error: unknown filter: $arg" >&5
2674$as_echo "$as_me: error: unknown filter: $arg" >&2;}
2675   { (exit 1); exit 1; }; }
2676				;;
2677		esac
2678	done
2679
2680	# LZMA2 requires that LZMA1 is enabled.
2681	test "x$enable_encoder_lzma2" = xyes && enable_encoder_lzma1=yes
2682	test "x$enable_decoder_lzma2" = xyes && enable_decoder_lzma1=yes
2683
2684	{ $as_echo "$as_me:$LINENO: result: $enable_decoders" >&5
2685$as_echo "$enable_decoders" >&6; }
2686fi
2687
2688if test "x$enable_encoder_lzma2$enable_encoder_lzma1" = xyesno \
2689		|| test "x$enable_decoder_lzma2$enable_decoder_lzma1" = xyesno; then
2690	{ { $as_echo "$as_me:$LINENO: error: LZMA2 requires that LZMA1 is also enabled." >&5
2691$as_echo "$as_me: error: LZMA2 requires that LZMA1 is also enabled." >&2;}
2692   { (exit 1); exit 1; }; }
2693fi
2694
2695 if test "x$enable_encoders" != xno && test "x$enable_encoders" != x; then
2696  COND_MAIN_ENCODER_TRUE=
2697  COND_MAIN_ENCODER_FALSE='#'
2698else
2699  COND_MAIN_ENCODER_TRUE='#'
2700  COND_MAIN_ENCODER_FALSE=
2701fi
2702
2703 if test "x$enable_decoders" != xno && test "x$enable_decoders" != x; then
2704  COND_MAIN_DECODER_TRUE=
2705  COND_MAIN_DECODER_FALSE='#'
2706else
2707  COND_MAIN_DECODER_TRUE='#'
2708  COND_MAIN_DECODER_FALSE=
2709fi
2710
2711
2712 if test "x$enable_filter_lzma1" = xyes; then
2713  COND_FILTER_LZMA1_TRUE=
2714  COND_FILTER_LZMA1_FALSE='#'
2715else
2716  COND_FILTER_LZMA1_TRUE='#'
2717  COND_FILTER_LZMA1_FALSE=
2718fi
2719
2720 if test "x$enable_encoder_lzma1" = xyes; then
2721  COND_ENCODER_LZMA1_TRUE=
2722  COND_ENCODER_LZMA1_FALSE='#'
2723else
2724  COND_ENCODER_LZMA1_TRUE='#'
2725  COND_ENCODER_LZMA1_FALSE=
2726fi
2727
2728 if test "x$enable_decoder_lzma1" = xyes; then
2729  COND_DECODER_LZMA1_TRUE=
2730  COND_DECODER_LZMA1_FALSE='#'
2731else
2732  COND_DECODER_LZMA1_TRUE='#'
2733  COND_DECODER_LZMA1_FALSE=
2734fi
2735
2736 if test "x$enable_filter_lzma2" = xyes; then
2737  COND_FILTER_LZMA2_TRUE=
2738  COND_FILTER_LZMA2_FALSE='#'
2739else
2740  COND_FILTER_LZMA2_TRUE='#'
2741  COND_FILTER_LZMA2_FALSE=
2742fi
2743
2744 if test "x$enable_encoder_lzma2" = xyes; then
2745  COND_ENCODER_LZMA2_TRUE=
2746  COND_ENCODER_LZMA2_FALSE='#'
2747else
2748  COND_ENCODER_LZMA2_TRUE='#'
2749  COND_ENCODER_LZMA2_FALSE=
2750fi
2751
2752 if test "x$enable_decoder_lzma2" = xyes; then
2753  COND_DECODER_LZMA2_TRUE=
2754  COND_DECODER_LZMA2_FALSE='#'
2755else
2756  COND_DECODER_LZMA2_TRUE='#'
2757  COND_DECODER_LZMA2_FALSE=
2758fi
2759
2760 if test "x$enable_filter_subblock" = xyes; then
2761  COND_FILTER_SUBBLOCK_TRUE=
2762  COND_FILTER_SUBBLOCK_FALSE='#'
2763else
2764  COND_FILTER_SUBBLOCK_TRUE='#'
2765  COND_FILTER_SUBBLOCK_FALSE=
2766fi
2767
2768 if test "x$enable_encoder_subblock" = xyes; then
2769  COND_ENCODER_SUBBLOCK_TRUE=
2770  COND_ENCODER_SUBBLOCK_FALSE='#'
2771else
2772  COND_ENCODER_SUBBLOCK_TRUE='#'
2773  COND_ENCODER_SUBBLOCK_FALSE=
2774fi
2775
2776 if test "x$enable_decoder_subblock" = xyes; then
2777  COND_DECODER_SUBBLOCK_TRUE=
2778  COND_DECODER_SUBBLOCK_FALSE='#'
2779else
2780  COND_DECODER_SUBBLOCK_TRUE='#'
2781  COND_DECODER_SUBBLOCK_FALSE=
2782fi
2783
2784 if test "x$enable_filter_delta" = xyes; then
2785  COND_FILTER_DELTA_TRUE=
2786  COND_FILTER_DELTA_FALSE='#'
2787else
2788  COND_FILTER_DELTA_TRUE='#'
2789  COND_FILTER_DELTA_FALSE=
2790fi
2791
2792 if test "x$enable_encoder_delta" = xyes; then
2793  COND_ENCODER_DELTA_TRUE=
2794  COND_ENCODER_DELTA_FALSE='#'
2795else
2796  COND_ENCODER_DELTA_TRUE='#'
2797  COND_ENCODER_DELTA_FALSE=
2798fi
2799
2800 if test "x$enable_decoder_delta" = xyes; then
2801  COND_DECODER_DELTA_TRUE=
2802  COND_DECODER_DELTA_FALSE='#'
2803else
2804  COND_DECODER_DELTA_TRUE='#'
2805  COND_DECODER_DELTA_FALSE=
2806fi
2807
2808 if test "x$enable_filter_x86" = xyes; then
2809  COND_FILTER_X86_TRUE=
2810  COND_FILTER_X86_FALSE='#'
2811else
2812  COND_FILTER_X86_TRUE='#'
2813  COND_FILTER_X86_FALSE=
2814fi
2815
2816 if test "x$enable_encoder_x86" = xyes; then
2817  COND_ENCODER_X86_TRUE=
2818  COND_ENCODER_X86_FALSE='#'
2819else
2820  COND_ENCODER_X86_TRUE='#'
2821  COND_ENCODER_X86_FALSE=
2822fi
2823
2824 if test "x$enable_decoder_x86" = xyes; then
2825  COND_DECODER_X86_TRUE=
2826  COND_DECODER_X86_FALSE='#'
2827else
2828  COND_DECODER_X86_TRUE='#'
2829  COND_DECODER_X86_FALSE=
2830fi
2831
2832 if test "x$enable_filter_powerpc" = xyes; then
2833  COND_FILTER_POWERPC_TRUE=
2834  COND_FILTER_POWERPC_FALSE='#'
2835else
2836  COND_FILTER_POWERPC_TRUE='#'
2837  COND_FILTER_POWERPC_FALSE=
2838fi
2839
2840 if test "x$enable_encoder_powerpc" = xyes; then
2841  COND_ENCODER_POWERPC_TRUE=
2842  COND_ENCODER_POWERPC_FALSE='#'
2843else
2844  COND_ENCODER_POWERPC_TRUE='#'
2845  COND_ENCODER_POWERPC_FALSE=
2846fi
2847
2848 if test "x$enable_decoder_powerpc" = xyes; then
2849  COND_DECODER_POWERPC_TRUE=
2850  COND_DECODER_POWERPC_FALSE='#'
2851else
2852  COND_DECODER_POWERPC_TRUE='#'
2853  COND_DECODER_POWERPC_FALSE=
2854fi
2855
2856 if test "x$enable_filter_ia64" = xyes; then
2857  COND_FILTER_IA64_TRUE=
2858  COND_FILTER_IA64_FALSE='#'
2859else
2860  COND_FILTER_IA64_TRUE='#'
2861  COND_FILTER_IA64_FALSE=
2862fi
2863
2864 if test "x$enable_encoder_ia64" = xyes; then
2865  COND_ENCODER_IA64_TRUE=
2866  COND_ENCODER_IA64_FALSE='#'
2867else
2868  COND_ENCODER_IA64_TRUE='#'
2869  COND_ENCODER_IA64_FALSE=
2870fi
2871
2872 if test "x$enable_decoder_ia64" = xyes; then
2873  COND_DECODER_IA64_TRUE=
2874  COND_DECODER_IA64_FALSE='#'
2875else
2876  COND_DECODER_IA64_TRUE='#'
2877  COND_DECODER_IA64_FALSE=
2878fi
2879
2880 if test "x$enable_filter_arm" = xyes; then
2881  COND_FILTER_ARM_TRUE=
2882  COND_FILTER_ARM_FALSE='#'
2883else
2884  COND_FILTER_ARM_TRUE='#'
2885  COND_FILTER_ARM_FALSE=
2886fi
2887
2888 if test "x$enable_encoder_arm" = xyes; then
2889  COND_ENCODER_ARM_TRUE=
2890  COND_ENCODER_ARM_FALSE='#'
2891else
2892  COND_ENCODER_ARM_TRUE='#'
2893  COND_ENCODER_ARM_FALSE=
2894fi
2895
2896 if test "x$enable_decoder_arm" = xyes; then
2897  COND_DECODER_ARM_TRUE=
2898  COND_DECODER_ARM_FALSE='#'
2899else
2900  COND_DECODER_ARM_TRUE='#'
2901  COND_DECODER_ARM_FALSE=
2902fi
2903
2904 if test "x$enable_filter_armthumb" = xyes; then
2905  COND_FILTER_ARMTHUMB_TRUE=
2906  COND_FILTER_ARMTHUMB_FALSE='#'
2907else
2908  COND_FILTER_ARMTHUMB_TRUE='#'
2909  COND_FILTER_ARMTHUMB_FALSE=
2910fi
2911
2912 if test "x$enable_encoder_armthumb" = xyes; then
2913  COND_ENCODER_ARMTHUMB_TRUE=
2914  COND_ENCODER_ARMTHUMB_FALSE='#'
2915else
2916  COND_ENCODER_ARMTHUMB_TRUE='#'
2917  COND_ENCODER_ARMTHUMB_FALSE=
2918fi
2919
2920 if test "x$enable_decoder_armthumb" = xyes; then
2921  COND_DECODER_ARMTHUMB_TRUE=
2922  COND_DECODER_ARMTHUMB_FALSE='#'
2923else
2924  COND_DECODER_ARMTHUMB_TRUE='#'
2925  COND_DECODER_ARMTHUMB_FALSE=
2926fi
2927
2928 if test "x$enable_filter_sparc" = xyes; then
2929  COND_FILTER_SPARC_TRUE=
2930  COND_FILTER_SPARC_FALSE='#'
2931else
2932  COND_FILTER_SPARC_TRUE='#'
2933  COND_FILTER_SPARC_FALSE=
2934fi
2935
2936 if test "x$enable_encoder_sparc" = xyes; then
2937  COND_ENCODER_SPARC_TRUE=
2938  COND_ENCODER_SPARC_FALSE='#'
2939else
2940  COND_ENCODER_SPARC_TRUE='#'
2941  COND_ENCODER_SPARC_FALSE=
2942fi
2943
2944 if test "x$enable_decoder_sparc" = xyes; then
2945  COND_DECODER_SPARC_TRUE=
2946  COND_DECODER_SPARC_FALSE='#'
2947else
2948  COND_DECODER_SPARC_TRUE='#'
2949  COND_DECODER_SPARC_FALSE=
2950fi
2951
2952
2953# The so called "simple filters" share common code.
2954enable_filter_simple=no
2955enable_encoder_simple=no
2956enable_decoder_simple=no
2957test "x$enable_filter_x86" = xyes && enable_filter_simple=yes
2958test "x$enable_encoder_x86" = xyes && enable_encoder_simple=yes
2959test "x$enable_decoder_x86" = xyes && enable_decoder_simple=yes
2960test "x$enable_filter_powerpc" = xyes && enable_filter_simple=yes
2961test "x$enable_encoder_powerpc" = xyes && enable_encoder_simple=yes
2962test "x$enable_decoder_powerpc" = xyes && enable_decoder_simple=yes
2963test "x$enable_filter_ia64" = xyes && enable_filter_simple=yes
2964test "x$enable_encoder_ia64" = xyes && enable_encoder_simple=yes
2965test "x$enable_decoder_ia64" = xyes && enable_decoder_simple=yes
2966test "x$enable_filter_arm" = xyes && enable_filter_simple=yes
2967test "x$enable_encoder_arm" = xyes && enable_encoder_simple=yes
2968test "x$enable_decoder_arm" = xyes && enable_decoder_simple=yes
2969test "x$enable_filter_armthumb" = xyes && enable_filter_simple=yes
2970test "x$enable_encoder_armthumb" = xyes && enable_encoder_simple=yes
2971test "x$enable_decoder_armthumb" = xyes && enable_decoder_simple=yes
2972test "x$enable_filter_sparc" = xyes && enable_filter_simple=yes
2973test "x$enable_encoder_sparc" = xyes && enable_encoder_simple=yes
2974test "x$enable_decoder_sparc" = xyes && enable_decoder_simple=yes
2975 if test "x$enable_filter_simple" = xyes; then
2976  COND_FILTER_SIMPLE_TRUE=
2977  COND_FILTER_SIMPLE_FALSE='#'
2978else
2979  COND_FILTER_SIMPLE_TRUE='#'
2980  COND_FILTER_SIMPLE_FALSE=
2981fi
2982
2983 if test "x$enable_encoder_simple" = xyes; then
2984  COND_ENCODER_SIMPLE_TRUE=
2985  COND_ENCODER_SIMPLE_FALSE='#'
2986else
2987  COND_ENCODER_SIMPLE_TRUE='#'
2988  COND_ENCODER_SIMPLE_FALSE=
2989fi
2990
2991 if test "x$enable_decoder_simple" = xyes; then
2992  COND_DECODER_SIMPLE_TRUE=
2993  COND_DECODER_SIMPLE_FALSE='#'
2994else
2995  COND_DECODER_SIMPLE_TRUE='#'
2996  COND_DECODER_SIMPLE_FALSE=
2997fi
2998
2999
3000# LZ-based filters share common code.
3001enable_filter_lz=no
3002enable_encoder_lz=no
3003enable_decoder_lz=no
3004test "x$enable_filter_lzma1" = xyes && enable_filter_lz=yes
3005test "x$enable_encoder_lzma1" = xyes && enable_encoder_lz=yes
3006test "x$enable_decoder_lzma1" = xyes && enable_decoder_lz=yes
3007test "x$enable_filter_lzma2" = xyes && enable_filter_lz=yes
3008test "x$enable_encoder_lzma2" = xyes && enable_encoder_lz=yes
3009test "x$enable_decoder_lzma2" = xyes && enable_decoder_lz=yes
3010 if test "x$enable_filter_lz" = xyes; then
3011  COND_FILTER_LZ_TRUE=
3012  COND_FILTER_LZ_FALSE='#'
3013else
3014  COND_FILTER_LZ_TRUE='#'
3015  COND_FILTER_LZ_FALSE=
3016fi
3017
3018 if test "x$enable_encoder_lz" = xyes; then
3019  COND_ENCODER_LZ_TRUE=
3020  COND_ENCODER_LZ_FALSE='#'
3021else
3022  COND_ENCODER_LZ_TRUE='#'
3023  COND_ENCODER_LZ_FALSE=
3024fi
3025
3026 if test "x$enable_decoder_lz" = xyes; then
3027  COND_DECODER_LZ_TRUE=
3028  COND_DECODER_LZ_FALSE='#'
3029else
3030  COND_DECODER_LZ_TRUE='#'
3031  COND_DECODER_LZ_FALSE=
3032fi
3033
3034
3035
3036#################
3037# Match finders #
3038#################
3039
3040
3041
3042enable_match_finder_hc3=no
3043enable_match_finder_hc4=no
3044enable_match_finder_bt2=no
3045enable_match_finder_bt3=no
3046enable_match_finder_bt4=no
3047
3048
3049{ $as_echo "$as_me:$LINENO: checking which match finders to build" >&5
3050$as_echo_n "checking which match finders to build... " >&6; }
3051# Check whether --enable-match-finders was given.
3052if test "${enable_match_finders+set}" = set; then
3053  enableval=$enable_match_finders;
3054else
3055  enable_match_finders=hc3,hc4,bt2,bt3,bt4
3056fi
3057
3058enable_match_finders=`echo "$enable_match_finders" | sed 's/,/ /g'`
3059if test "x$enable_encoder_lz" = xyes ; then
3060	for arg in $enable_match_finders
3061		do
3062		case $arg in
3063			hc3)
3064				enable_match_finder_hc3=yes
3065
3066cat >>confdefs.h <<\_ACEOF
3067#define HAVE_MF_HC3 1
3068_ACEOF
3069
3070				;;
3071			hc4)
3072				enable_match_finder_hc4=yes
3073
3074cat >>confdefs.h <<\_ACEOF
3075#define HAVE_MF_HC4 1
3076_ACEOF
3077
3078				;;
3079			bt2)
3080				enable_match_finder_bt2=yes
3081
3082cat >>confdefs.h <<\_ACEOF
3083#define HAVE_MF_BT2 1
3084_ACEOF
3085
3086				;;
3087			bt3)
3088				enable_match_finder_bt3=yes
3089
3090cat >>confdefs.h <<\_ACEOF
3091#define HAVE_MF_BT3 1
3092_ACEOF
3093
3094				;;
3095			bt4)
3096				enable_match_finder_bt4=yes
3097
3098cat >>confdefs.h <<\_ACEOF
3099#define HAVE_MF_BT4 1
3100_ACEOF
3101
3102				;;
3103			*)
3104				{ $as_echo "$as_me:$LINENO: result: " >&5
3105$as_echo "" >&6; }
3106				{ { $as_echo "$as_me:$LINENO: error: unknown match finder: $arg" >&5
3107$as_echo "$as_me: error: unknown match finder: $arg" >&2;}
3108   { (exit 1); exit 1; }; }
3109				;;
3110		esac
3111	done
3112	{ $as_echo "$as_me:$LINENO: result: $enable_match_finders" >&5
3113$as_echo "$enable_match_finders" >&6; }
3114else
3115	{ $as_echo "$as_me:$LINENO: result: (none because not building any LZ-based encoder)" >&5
3116$as_echo "(none because not building any LZ-based encoder)" >&6; }
3117fi
3118
3119
3120####################
3121# Integrity checks #
3122####################
3123
3124
3125
3126enable_check_lzma1=no
3127enable_check_lzma2=no
3128enable_check_subblock=no
3129enable_check_delta=no
3130enable_check_x86=no
3131enable_check_powerpc=no
3132enable_check_ia64=no
3133enable_check_arm=no
3134enable_check_armthumb=no
3135enable_check_sparc=no
3136
3137{ $as_echo "$as_me:$LINENO: checking which integrity checks to build" >&5
3138$as_echo_n "checking which integrity checks to build... " >&6; }
3139# Check whether --enable-checks was given.
3140if test "${enable_checks+set}" = set; then
3141  enableval=$enable_checks;
3142else
3143  enable_checks=crc32,crc64,sha256
3144fi
3145
3146enable_checks=`echo "$enable_checks" | sed 's/,/ /g'`
3147if test "x$enable_checks" = xno || test "x$enable_checks" = x; then
3148	{ $as_echo "$as_me:$LINENO: result: (none)" >&5
3149$as_echo "(none)" >&6; }
3150else
3151	for arg in $enable_checks
3152	do
3153		case $arg in
3154			crc32)
3155				enable_check_crc32=yes
3156
3157cat >>confdefs.h <<\_ACEOF
3158#define HAVE_CHECK_CRC32 1
3159_ACEOF
3160
3161				;;
3162			crc64)
3163				enable_check_crc64=yes
3164
3165cat >>confdefs.h <<\_ACEOF
3166#define HAVE_CHECK_CRC64 1
3167_ACEOF
3168
3169				;;
3170			sha256)
3171				enable_check_sha256=yes
3172
3173cat >>confdefs.h <<\_ACEOF
3174#define HAVE_CHECK_SHA256 1
3175_ACEOF
3176
3177				;;
3178			*)
3179				{ $as_echo "$as_me:$LINENO: result: " >&5
3180$as_echo "" >&6; }
3181				{ { $as_echo "$as_me:$LINENO: error: unknown integrity check: $arg" >&5
3182$as_echo "$as_me: error: unknown integrity check: $arg" >&2;}
3183   { (exit 1); exit 1; }; }
3184				;;
3185		esac
3186	done
3187	{ $as_echo "$as_me:$LINENO: result: $enable_checks" >&5
3188$as_echo "$enable_checks" >&6; }
3189fi
3190if test "x$enable_checks_crc32" = xno ; then
3191	{ { $as_echo "$as_me:$LINENO: error: For now, the CRC32 check must always be enabled." >&5
3192$as_echo "$as_me: error: For now, the CRC32 check must always be enabled." >&2;}
3193   { (exit 1); exit 1; }; }
3194fi
3195
3196 if test "x$enable_check_crc32" = xyes; then
3197  COND_CHECK_CRC32_TRUE=
3198  COND_CHECK_CRC32_FALSE='#'
3199else
3200  COND_CHECK_CRC32_TRUE='#'
3201  COND_CHECK_CRC32_FALSE=
3202fi
3203
3204 if test "x$enable_check_crc64" = xyes; then
3205  COND_CHECK_CRC64_TRUE=
3206  COND_CHECK_CRC64_FALSE='#'
3207else
3208  COND_CHECK_CRC64_TRUE='#'
3209  COND_CHECK_CRC64_FALSE=
3210fi
3211
3212 if test "x$enable_check_sha256" = xyes; then
3213  COND_CHECK_SHA256_TRUE=
3214  COND_CHECK_SHA256_FALSE='#'
3215else
3216  COND_CHECK_SHA256_TRUE='#'
3217  COND_CHECK_SHA256_FALSE=
3218fi
3219
3220
3221
3222###########################
3223# Assembler optimizations #
3224###########################
3225
3226{ $as_echo "$as_me:$LINENO: checking if assembler optimizations should be used" >&5
3227$as_echo_n "checking if assembler optimizations should be used... " >&6; }
3228# Check whether --enable-assembler was given.
3229if test "${enable_assembler+set}" = set; then
3230  enableval=$enable_assembler;
3231else
3232  enable_assembler=yes
3233fi
3234
3235if test "x$enable_assembler" = xyes; then
3236	case $host_cpu in
3237		i?86)   enable_assembler=x86 ;;
3238		x86_64) enable_assembler=x86_64 ;;
3239		*)      enable_assembler=no ;;
3240	esac
3241fi
3242case $enable_assembler in
3243	x86)
3244
3245cat >>confdefs.h <<\_ACEOF
3246#define HAVE_ASM_X86 1
3247_ACEOF
3248
3249		;;
3250	x86_64)
3251
3252cat >>confdefs.h <<\_ACEOF
3253#define HAVE_ASM_X86_64 1
3254_ACEOF
3255
3256		;;
3257	no)
3258		;;
3259	*)
3260		{ $as_echo "$as_me:$LINENO: result: " >&5
3261$as_echo "" >&6; }
3262		{ { $as_echo "$as_me:$LINENO: error: --enable-assembler accepts only \`yes', \`no', \`x86', or \`x86_64'." >&5
3263$as_echo "$as_me: error: --enable-assembler accepts only \`yes', \`no', \`x86', or \`x86_64'." >&2;}
3264   { (exit 1); exit 1; }; }
3265		;;
3266esac
3267{ $as_echo "$as_me:$LINENO: result: $enable_assembler" >&5
3268$as_echo "$enable_assembler" >&6; }
3269 if test "x$enable_assembler" = xx86; then
3270  COND_ASM_X86_TRUE=
3271  COND_ASM_X86_FALSE='#'
3272else
3273  COND_ASM_X86_TRUE='#'
3274  COND_ASM_X86_FALSE=
3275fi
3276
3277 if test "x$enable_assembler" = xx86_64; then
3278  COND_ASM_X86_64_TRUE=
3279  COND_ASM_X86_64_FALSE='#'
3280else
3281  COND_ASM_X86_64_TRUE='#'
3282  COND_ASM_X86_64_FALSE=
3283fi
3284
3285
3286
3287################################
3288# Fast unaligned memory access #
3289################################
3290
3291{ $as_echo "$as_me:$LINENO: checking if unaligned memory access should be used" >&5
3292$as_echo_n "checking if unaligned memory access should be used... " >&6; }
3293# Check whether --enable-unaligned-access was given.
3294if test "${enable_unaligned_access+set}" = set; then
3295  enableval=$enable_unaligned_access;
3296else
3297  enable_unaligned_access=auto
3298fi
3299
3300if test "x$enable_unaligned_access" = xauto ; then
3301	case $host_cpu in
3302		i?86|x86_64|powerpc|powerpc64)
3303			enable_unaligned_access=yes
3304			;;
3305		*)
3306			enable_unaligned_access=no
3307			;;
3308	esac
3309fi
3310if test "x$enable_unaligned_access" = xyes ; then
3311
3312cat >>confdefs.h <<\_ACEOF
3313#define HAVE_FAST_UNALIGNED_ACCESS 1
3314_ACEOF
3315
3316	{ $as_echo "$as_me:$LINENO: result: yes" >&5
3317$as_echo "yes" >&6; }
3318else
3319	{ $as_echo "$as_me:$LINENO: result: no" >&5
3320$as_echo "no" >&6; }
3321fi
3322
3323
3324#####################
3325# Size optimization #
3326#####################
3327
3328{ $as_echo "$as_me:$LINENO: checking if small size is preferred over speed" >&5
3329$as_echo_n "checking if small size is preferred over speed... " >&6; }
3330# Check whether --enable-small was given.
3331if test "${enable_small+set}" = set; then
3332  enableval=$enable_small;
3333else
3334  enable_small=no
3335fi
3336
3337if test "x$enable_small" = xyes; then
3338
3339cat >>confdefs.h <<\_ACEOF
3340#define HAVE_SMALL 1
3341_ACEOF
3342
3343elif test "x$enable_small" != xno; then
3344	{ $as_echo "$as_me:$LINENO: result: " >&5
3345$as_echo "" >&6; }
3346	{ { $as_echo "$as_me:$LINENO: error: --enable-small accepts only \`yes' or \`no'" >&5
3347$as_echo "$as_me: error: --enable-small accepts only \`yes' or \`no'" >&2;}
3348   { (exit 1); exit 1; }; }
3349fi
3350{ $as_echo "$as_me:$LINENO: result: $enable_small" >&5
3351$as_echo "$enable_small" >&6; }
3352 if test "x$enable_small" = xyes; then
3353  COND_SMALL_TRUE=
3354  COND_SMALL_FALSE='#'
3355else
3356  COND_SMALL_TRUE='#'
3357  COND_SMALL_FALSE=
3358fi
3359
3360
3361
3362#############
3363# Threading #
3364#############
3365
3366{ $as_echo "$as_me:$LINENO: checking if threading support is wanted" >&5
3367$as_echo_n "checking if threading support is wanted... " >&6; }
3368# Check whether --enable-threads was given.
3369if test "${enable_threads+set}" = set; then
3370  enableval=$enable_threads;
3371else
3372  enable_threads=yes
3373fi
3374
3375if test "x$enable_threads" != xyes && test "x$enable_threads" != xno; then
3376	{ $as_echo "$as_me:$LINENO: result: " >&5
3377$as_echo "" >&6; }
3378	{ { $as_echo "$as_me:$LINENO: error: --enable-threads accepts only \`yes' or \`no'" >&5
3379$as_echo "$as_me: error: --enable-threads accepts only \`yes' or \`no'" >&2;}
3380   { (exit 1); exit 1; }; }
3381fi
3382{ $as_echo "$as_me:$LINENO: result: $enable_threads" >&5
3383$as_echo "$enable_threads" >&6; }
3384# We use the actual result a little later.
3385
3386
3387############################################
3388# xz/xzdec/lzmadec linkage against liblzma #
3389############################################
3390
3391# Link the xz, xzdec, and lzmadec command line tools against static liblzma
3392# unless using --enable-dynamic. Using static liblzma gives a little bit
3393# faster executable on x86, because no register is wasted for PIC. We also
3394# have one dependency less, which allows users to more freely copy the xz
3395# binary to other boxes. However, I wouldn't be surprised if distro
3396# maintainers still prefer dynamic linking, so let's make it easy for them.
3397
3398{ $as_echo "$as_me:$LINENO: checking how programs should be linked against liblzma" >&5
3399$as_echo_n "checking how programs should be linked against liblzma... " >&6; }
3400# Check whether --enable-dynamic was given.
3401if test "${enable_dynamic+set}" = set; then
3402  enableval=$enable_dynamic;
3403else
3404  enable_dynamic=mixed
3405fi
3406
3407case $enable_dynamic in
3408	mixed)
3409		{ $as_echo "$as_me:$LINENO: result: mixed (some dynamically, some statically)" >&5
3410$as_echo "mixed (some dynamically, some statically)" >&6; }
3411		;;
3412	yes)
3413		{ $as_echo "$as_me:$LINENO: result: dynamically" >&5
3414$as_echo "dynamically" >&6; }
3415		;;
3416	no)
3417		{ $as_echo "$as_me:$LINENO: result: statically" >&5
3418$as_echo "statically" >&6; }
3419		;;
3420	*)
3421		{ $as_echo "$as_me:$LINENO: result: " >&5
3422$as_echo "" >&6; }
3423		{ { $as_echo "$as_me:$LINENO: error: --enable-dynamic accepts only \`mixed', \`yes', or \`no'" >&5
3424$as_echo "$as_me: error: --enable-dynamic accepts only \`mixed', \`yes', or \`no'" >&2;}
3425   { (exit 1); exit 1; }; }
3426		;;
3427esac
3428# We use the actual results later, because we don't know yet
3429# if --disable-shared or --disable-static was used.
3430
3431
3432###############################################################################
3433# Checks for programs.
3434###############################################################################
3435
3436echo
3437
3438  { $as_echo "$as_me:$LINENO: checking for a shell that conforms to POSIX" >&5
3439$as_echo_n "checking for a shell that conforms to POSIX... " >&6; }
3440if test "${gl_cv_posix_shell+set}" = set; then
3441  $as_echo_n "(cached) " >&6
3442else
3443  gl_test_posix_shell_script='
3444       func_return () {
3445	 (exit $1)
3446       }
3447       func_success () {
3448	 func_return 0
3449       }
3450       func_failure () {
3451	 func_return 1
3452       }
3453       func_ret_success () {
3454	 return 0
3455       }
3456       func_ret_failure () {
3457	 return 1
3458       }
3459       subshell_umask_sanity () {
3460	 (umask 22; (umask 0); test $(umask) -eq 22)
3461       }
3462       test "$(echo foo)" = foo &&
3463       func_success &&
3464       ! func_failure &&
3465       func_ret_success &&
3466       ! func_ret_failure &&
3467       (set x && func_ret_success y && test x = "$1") &&
3468       subshell_umask_sanity
3469     '
3470     for gl_cv_posix_shell in \
3471	 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
3472       case $gl_cv_posix_shell in
3473         /*)
3474	   "$gl_cv_posix_shell" -c "$gl_test_posix_shell_script" 2>/dev/null \
3475	     && break;;
3476       esac
3477     done
3478fi
3479{ $as_echo "$as_me:$LINENO: result: $gl_cv_posix_shell" >&5
3480$as_echo "$gl_cv_posix_shell" >&6; }
3481
3482  if test "$gl_cv_posix_shell" != no; then
3483    POSIX_SHELL=$gl_cv_posix_shell
3484    PREFERABLY_POSIX_SHELL=$POSIX_SHELL
3485  else
3486    POSIX_SHELL=
3487    PREFERABLY_POSIX_SHELL=/bin/sh
3488  fi
3489
3490
3491
3492if test -z "$POSIX_SHELL" ; then
3493	{ { $as_echo "$as_me:$LINENO: error: No POSIX conforming shell (sh) was found." >&5
3494$as_echo "$as_me: error: No POSIX conforming shell (sh) was found." >&2;}
3495   { (exit 1); exit 1; }; }
3496fi
3497
3498echo
3499echo "Initializing Automake:"
3500
3501am__api_version='1.11'
3502
3503# Find a good install program.  We prefer a C program (faster),
3504# so one script is as good as another.  But avoid the broken or
3505# incompatible versions:
3506# SysV /etc/install, /usr/sbin/install
3507# SunOS /usr/etc/install
3508# IRIX /sbin/install
3509# AIX /bin/install
3510# AmigaOS /C/install, which installs bootblocks on floppy discs
3511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3514# OS/2's system install, which has a completely different semantic
3515# ./install, which can be erroneously created by make from ./install.sh.
3516# Reject install programs that cannot install multiple files.
3517{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3518$as_echo_n "checking for a BSD-compatible install... " >&6; }
3519if test -z "$INSTALL"; then
3520if test "${ac_cv_path_install+set}" = set; then
3521  $as_echo_n "(cached) " >&6
3522else
3523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526  IFS=$as_save_IFS
3527  test -z "$as_dir" && as_dir=.
3528  # Account for people who put trailing slashes in PATH elements.
3529case $as_dir/ in
3530  ./ | .// | /cC/* | \
3531  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3533  /usr/ucb/* ) ;;
3534  *)
3535    # OSF1 and SCO ODT 3.0 have their own names for install.
3536    # Don't use installbsd from OSF since it installs stuff as root
3537    # by default.
3538    for ac_prog in ginstall scoinst install; do
3539      for ac_exec_ext in '' $ac_executable_extensions; do
3540	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3541	  if test $ac_prog = install &&
3542	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543	    # AIX install.  It has an incompatible calling convention.
3544	    :
3545	  elif test $ac_prog = install &&
3546	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547	    # program-specific install script used by HP pwplus--don't use.
3548	    :
3549	  else
3550	    rm -rf conftest.one conftest.two conftest.dir
3551	    echo one > conftest.one
3552	    echo two > conftest.two
3553	    mkdir conftest.dir
3554	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3555	      test -s conftest.one && test -s conftest.two &&
3556	      test -s conftest.dir/conftest.one &&
3557	      test -s conftest.dir/conftest.two
3558	    then
3559	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3560	      break 3
3561	    fi
3562	  fi
3563	fi
3564      done
3565    done
3566    ;;
3567esac
3568
3569done
3570IFS=$as_save_IFS
3571
3572rm -rf conftest.one conftest.two conftest.dir
3573
3574fi
3575  if test "${ac_cv_path_install+set}" = set; then
3576    INSTALL=$ac_cv_path_install
3577  else
3578    # As a last resort, use the slow shell script.  Don't cache a
3579    # value for INSTALL within a source directory, because that will
3580    # break other packages using the cache if that directory is
3581    # removed, or if the value is a relative name.
3582    INSTALL=$ac_install_sh
3583  fi
3584fi
3585{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3586$as_echo "$INSTALL" >&6; }
3587
3588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589# It thinks the first close brace ends the variable substitution.
3590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
3592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3593
3594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
3596{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3597$as_echo_n "checking whether build environment is sane... " >&6; }
3598# Just in case
3599sleep 1
3600echo timestamp > conftest.file
3601# Reject unsafe characters in $srcdir or the absolute working directory
3602# name.  Accept space and tab only in the latter.
3603am_lf='
3604'
3605case `pwd` in
3606  *[\\\"\#\$\&\'\`$am_lf]*)
3607    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3608$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3609   { (exit 1); exit 1; }; };;
3610esac
3611case $srcdir in
3612  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3613    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3614$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3615   { (exit 1); exit 1; }; };;
3616esac
3617
3618# Do `set' in a subshell so we don't clobber the current shell's
3619# arguments.  Must try -L first in case configure is actually a
3620# symlink; some systems play weird games with the mod time of symlinks
3621# (eg FreeBSD returns the mod time of the symlink's containing
3622# directory).
3623if (
3624   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3625   if test "$*" = "X"; then
3626      # -L didn't work.
3627      set X `ls -t "$srcdir/configure" conftest.file`
3628   fi
3629   rm -f conftest.file
3630   if test "$*" != "X $srcdir/configure conftest.file" \
3631      && test "$*" != "X conftest.file $srcdir/configure"; then
3632
3633      # If neither matched, then we have a broken ls.  This can happen
3634      # if, for instance, CONFIG_SHELL is bash and it inherits a
3635      # broken ls alias from the environment.  This has actually
3636      # happened.  Such a system could not be considered "sane".
3637      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3638alias in your environment" >&5
3639$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3640alias in your environment" >&2;}
3641   { (exit 1); exit 1; }; }
3642   fi
3643
3644   test "$2" = conftest.file
3645   )
3646then
3647   # Ok.
3648   :
3649else
3650   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3651Check your system clock" >&5
3652$as_echo "$as_me: error: newly created file is older than distributed files!
3653Check your system clock" >&2;}
3654   { (exit 1); exit 1; }; }
3655fi
3656{ $as_echo "$as_me:$LINENO: result: yes" >&5
3657$as_echo "yes" >&6; }
3658test "$program_prefix" != NONE &&
3659  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3660# Use a double $ so make ignores it.
3661test "$program_suffix" != NONE &&
3662  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3663# Double any \ or $.
3664# By default was `s,x,x', remove it if useless.
3665ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3666program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3667
3668# expand $ac_aux_dir to an absolute path
3669am_aux_dir=`cd $ac_aux_dir && pwd`
3670
3671if test x"${MISSING+set}" != xset; then
3672  case $am_aux_dir in
3673  *\ * | *\	*)
3674    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3675  *)
3676    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3677  esac
3678fi
3679# Use eval to expand $SHELL
3680if eval "$MISSING --run true"; then
3681  am_missing_run="$MISSING --run "
3682else
3683  am_missing_run=
3684  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3685$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3686fi
3687
3688if test x"${install_sh}" != xset; then
3689  case $am_aux_dir in
3690  *\ * | *\	*)
3691    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3692  *)
3693    install_sh="\${SHELL} $am_aux_dir/install-sh"
3694  esac
3695fi
3696
3697# Installed binaries are usually stripped using `strip' when the user
3698# run `make install-strip'.  However `strip' might not be the right
3699# tool to use in cross-compilation environments, therefore Automake
3700# will honor the `STRIP' environment variable to overrule this program.
3701if test "$cross_compiling" != no; then
3702  if test -n "$ac_tool_prefix"; then
3703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3704set dummy ${ac_tool_prefix}strip; ac_word=$2
3705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3706$as_echo_n "checking for $ac_word... " >&6; }
3707if test "${ac_cv_prog_STRIP+set}" = set; then
3708  $as_echo_n "(cached) " >&6
3709else
3710  if test -n "$STRIP"; then
3711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718  for ac_exec_ext in '' $ac_executable_extensions; do
3719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3721    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730STRIP=$ac_cv_prog_STRIP
3731if test -n "$STRIP"; then
3732  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3733$as_echo "$STRIP" >&6; }
3734else
3735  { $as_echo "$as_me:$LINENO: result: no" >&5
3736$as_echo "no" >&6; }
3737fi
3738
3739
3740fi
3741if test -z "$ac_cv_prog_STRIP"; then
3742  ac_ct_STRIP=$STRIP
3743  # Extract the first word of "strip", so it can be a program name with args.
3744set dummy strip; ac_word=$2
3745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
3747if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3748  $as_echo_n "(cached) " >&6
3749else
3750  if test -n "$ac_ct_STRIP"; then
3751  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756  IFS=$as_save_IFS
3757  test -z "$as_dir" && as_dir=.
3758  for ac_exec_ext in '' $ac_executable_extensions; do
3759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760    ac_cv_prog_ac_ct_STRIP="strip"
3761    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762    break 2
3763  fi
3764done
3765done
3766IFS=$as_save_IFS
3767
3768fi
3769fi
3770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3771if test -n "$ac_ct_STRIP"; then
3772  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3773$as_echo "$ac_ct_STRIP" >&6; }
3774else
3775  { $as_echo "$as_me:$LINENO: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779  if test "x$ac_ct_STRIP" = x; then
3780    STRIP=":"
3781  else
3782    case $cross_compiling:$ac_tool_warned in
3783yes:)
3784{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786ac_tool_warned=yes ;;
3787esac
3788    STRIP=$ac_ct_STRIP
3789  fi
3790else
3791  STRIP="$ac_cv_prog_STRIP"
3792fi
3793
3794fi
3795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3796
3797{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3798$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3799if test -z "$MKDIR_P"; then
3800  if test "${ac_cv_path_mkdir+set}" = set; then
3801  $as_echo_n "(cached) " >&6
3802else
3803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3805do
3806  IFS=$as_save_IFS
3807  test -z "$as_dir" && as_dir=.
3808  for ac_prog in mkdir gmkdir; do
3809	 for ac_exec_ext in '' $ac_executable_extensions; do
3810	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3811	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3812	     'mkdir (GNU coreutils) '* | \
3813	     'mkdir (coreutils) '* | \
3814	     'mkdir (fileutils) '4.1*)
3815	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3816	       break 3;;
3817	   esac
3818	 done
3819       done
3820done
3821IFS=$as_save_IFS
3822
3823fi
3824
3825  if test "${ac_cv_path_mkdir+set}" = set; then
3826    MKDIR_P="$ac_cv_path_mkdir -p"
3827  else
3828    # As a last resort, use the slow shell script.  Don't cache a
3829    # value for MKDIR_P within a source directory, because that will
3830    # break other packages using the cache if that directory is
3831    # removed, or if the value is a relative name.
3832    test -d ./--version && rmdir ./--version
3833    MKDIR_P="$ac_install_sh -d"
3834  fi
3835fi
3836{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3837$as_echo "$MKDIR_P" >&6; }
3838
3839mkdir_p="$MKDIR_P"
3840case $mkdir_p in
3841  [\\/$]* | ?:[\\/]*) ;;
3842  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3843esac
3844
3845for ac_prog in gawk mawk nawk awk
3846do
3847  # Extract the first word of "$ac_prog", so it can be a program name with args.
3848set dummy $ac_prog; ac_word=$2
3849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3850$as_echo_n "checking for $ac_word... " >&6; }
3851if test "${ac_cv_prog_AWK+set}" = set; then
3852  $as_echo_n "(cached) " >&6
3853else
3854  if test -n "$AWK"; then
3855  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3856else
3857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH
3859do
3860  IFS=$as_save_IFS
3861  test -z "$as_dir" && as_dir=.
3862  for ac_exec_ext in '' $ac_executable_extensions; do
3863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864    ac_cv_prog_AWK="$ac_prog"
3865    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866    break 2
3867  fi
3868done
3869done
3870IFS=$as_save_IFS
3871
3872fi
3873fi
3874AWK=$ac_cv_prog_AWK
3875if test -n "$AWK"; then
3876  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3877$as_echo "$AWK" >&6; }
3878else
3879  { $as_echo "$as_me:$LINENO: result: no" >&5
3880$as_echo "no" >&6; }
3881fi
3882
3883
3884  test -n "$AWK" && break
3885done
3886
3887{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3889set x ${MAKE-make}
3890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3891if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3892  $as_echo_n "(cached) " >&6
3893else
3894  cat >conftest.make <<\_ACEOF
3895SHELL = /bin/sh
3896all:
3897	@echo '@@@%%%=$(MAKE)=@@@%%%'
3898_ACEOF
3899# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3900case `${MAKE-make} -f conftest.make 2>/dev/null` in
3901  *@@@%%%=?*=@@@%%%*)
3902    eval ac_cv_prog_make_${ac_make}_set=yes;;
3903  *)
3904    eval ac_cv_prog_make_${ac_make}_set=no;;
3905esac
3906rm -f conftest.make
3907fi
3908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3909  { $as_echo "$as_me:$LINENO: result: yes" >&5
3910$as_echo "yes" >&6; }
3911  SET_MAKE=
3912else
3913  { $as_echo "$as_me:$LINENO: result: no" >&5
3914$as_echo "no" >&6; }
3915  SET_MAKE="MAKE=${MAKE-make}"
3916fi
3917
3918rm -rf .tst 2>/dev/null
3919mkdir .tst 2>/dev/null
3920if test -d .tst; then
3921  am__leading_dot=.
3922else
3923  am__leading_dot=_
3924fi
3925rmdir .tst 2>/dev/null
3926
3927if test "`cd $srcdir && pwd`" != "`pwd`"; then
3928  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3929  # is not polluted with repeated "-I."
3930  am__isrc=' -I$(srcdir)'
3931  # test to see if srcdir already configured
3932  if test -f $srcdir/config.status; then
3933    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3934$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3935   { (exit 1); exit 1; }; }
3936  fi
3937fi
3938
3939# test whether we have cygpath
3940if test -z "$CYGPATH_W"; then
3941  if (cygpath --version) >/dev/null 2>/dev/null; then
3942    CYGPATH_W='cygpath -w'
3943  else
3944    CYGPATH_W=echo
3945  fi
3946fi
3947
3948
3949# Define the identity of the package.
3950 PACKAGE='xz'
3951 VERSION='4.999.9beta'
3952
3953
3954cat >>confdefs.h <<_ACEOF
3955#define PACKAGE "$PACKAGE"
3956_ACEOF
3957
3958
3959cat >>confdefs.h <<_ACEOF
3960#define VERSION "$VERSION"
3961_ACEOF
3962
3963# Some tools Automake needs.
3964
3965ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3966
3967
3968AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3969
3970
3971AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3972
3973
3974AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3975
3976
3977MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3978
3979# We need awk for the "check" target.  The system "awk" is bad on
3980# some platforms.
3981# Always define AMTAR for backward compatibility.
3982
3983AMTAR=${AMTAR-"${am_missing_run}tar"}
3984
3985am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3986
3987
3988
3989
3990
3991{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3992$as_echo_n "checking whether ln -s works... " >&6; }
3993LN_S=$as_ln_s
3994if test "$LN_S" = "ln -s"; then
3995  { $as_echo "$as_me:$LINENO: result: yes" >&5
3996$as_echo "yes" >&6; }
3997else
3998  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3999$as_echo "no, using $LN_S" >&6; }
4000fi
4001
4002
4003DEPDIR="${am__leading_dot}deps"
4004
4005ac_config_commands="$ac_config_commands depfiles"
4006
4007
4008am_make=${MAKE-make}
4009cat > confinc << 'END'
4010am__doit:
4011	@echo this is the am__doit target
4012.PHONY: am__doit
4013END
4014# If we don't find an include directive, just comment out the code.
4015{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4016$as_echo_n "checking for style of include used by $am_make... " >&6; }
4017am__include="#"
4018am__quote=
4019_am_result=none
4020# First try GNU make style include.
4021echo "include confinc" > confmf
4022# Ignore all kinds of additional output from `make'.
4023case `$am_make -s -f confmf 2> /dev/null` in #(
4024*the\ am__doit\ target*)
4025  am__include=include
4026  am__quote=
4027  _am_result=GNU
4028  ;;
4029esac
4030# Now try BSD make style include.
4031if test "$am__include" = "#"; then
4032   echo '.include "confinc"' > confmf
4033   case `$am_make -s -f confmf 2> /dev/null` in #(
4034   *the\ am__doit\ target*)
4035     am__include=.include
4036     am__quote="\""
4037     _am_result=BSD
4038     ;;
4039   esac
4040fi
4041
4042
4043{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4044$as_echo "$_am_result" >&6; }
4045rm -f confinc confmf
4046
4047# Check whether --enable-dependency-tracking was given.
4048if test "${enable_dependency_tracking+set}" = set; then
4049  enableval=$enable_dependency_tracking;
4050fi
4051
4052if test "x$enable_dependency_tracking" != xno; then
4053  am_depcomp="$ac_aux_dir/depcomp"
4054  AMDEPBACKSLASH='\'
4055fi
4056 if test "x$enable_dependency_tracking" != xno; then
4057  AMDEP_TRUE=
4058  AMDEP_FALSE='#'
4059else
4060  AMDEP_TRUE='#'
4061  AMDEP_FALSE=
4062fi
4063
4064
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4074$as_echo_n "checking for $ac_word... " >&6; }
4075if test "${ac_cv_prog_CC+set}" = set; then
4076  $as_echo_n "(cached) " >&6
4077else
4078  if test -n "$CC"; then
4079  ac_cv_prog_CC="$CC" # Let the user override the test.
4080else
4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH
4083do
4084  IFS=$as_save_IFS
4085  test -z "$as_dir" && as_dir=.
4086  for ac_exec_ext in '' $ac_executable_extensions; do
4087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090    break 2
4091  fi
4092done
4093done
4094IFS=$as_save_IFS
4095
4096fi
4097fi
4098CC=$ac_cv_prog_CC
4099if test -n "$CC"; then
4100  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4101$as_echo "$CC" >&6; }
4102else
4103  { $as_echo "$as_me:$LINENO: result: no" >&5
4104$as_echo "no" >&6; }
4105fi
4106
4107
4108fi
4109if test -z "$ac_cv_prog_CC"; then
4110  ac_ct_CC=$CC
4111  # Extract the first word of "gcc", so it can be a program name with args.
4112set dummy gcc; ac_word=$2
4113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4116  $as_echo_n "(cached) " >&6
4117else
4118  if test -n "$ac_ct_CC"; then
4119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124  IFS=$as_save_IFS
4125  test -z "$as_dir" && as_dir=.
4126  for ac_exec_ext in '' $ac_executable_extensions; do
4127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128    ac_cv_prog_ac_ct_CC="gcc"
4129    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130    break 2
4131  fi
4132done
4133done
4134IFS=$as_save_IFS
4135
4136fi
4137fi
4138ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139if test -n "$ac_ct_CC"; then
4140  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4141$as_echo "$ac_ct_CC" >&6; }
4142else
4143  { $as_echo "$as_me:$LINENO: result: no" >&5
4144$as_echo "no" >&6; }
4145fi
4146
4147  if test "x$ac_ct_CC" = x; then
4148    CC=""
4149  else
4150    case $cross_compiling:$ac_tool_warned in
4151yes:)
4152{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154ac_tool_warned=yes ;;
4155esac
4156    CC=$ac_ct_CC
4157  fi
4158else
4159  CC="$ac_cv_prog_CC"
4160fi
4161
4162if test -z "$CC"; then
4163          if test -n "$ac_tool_prefix"; then
4164    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}cc; ac_word=$2
4166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -n "$CC"; then
4172  ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177  IFS=$as_save_IFS
4178  test -z "$as_dir" && as_dir=.
4179  for ac_exec_ext in '' $ac_executable_extensions; do
4180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181    ac_cv_prog_CC="${ac_tool_prefix}cc"
4182    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183    break 2
4184  fi
4185done
4186done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
4193  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4194$as_echo "$CC" >&6; }
4195else
4196  { $as_echo "$as_me:$LINENO: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201  fi
4202fi
4203if test -z "$CC"; then
4204  # Extract the first word of "cc", so it can be a program name with args.
4205set dummy cc; ac_word=$2
4206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_CC+set}" = set; then
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -n "$CC"; then
4212  ac_cv_prog_CC="$CC" # Let the user override the test.
4213else
4214  ac_prog_rejected=no
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220  for ac_exec_ext in '' $ac_executable_extensions; do
4221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223       ac_prog_rejected=yes
4224       continue
4225     fi
4226    ac_cv_prog_CC="cc"
4227    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231done
4232IFS=$as_save_IFS
4233
4234if test $ac_prog_rejected = yes; then
4235  # We found a bogon in the path, so make sure we never use it.
4236  set dummy $ac_cv_prog_CC
4237  shift
4238  if test $# != 0; then
4239    # We chose a different compiler from the bogus one.
4240    # However, it has the same basename, so the bogon will be chosen
4241    # first if we set CC to just the basename; use the full file name.
4242    shift
4243    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244  fi
4245fi
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
4250  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4251$as_echo "$CC" >&6; }
4252else
4253  { $as_echo "$as_me:$LINENO: result: no" >&5
4254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$CC"; then
4260  if test -n "$ac_tool_prefix"; then
4261  for ac_prog in cl.exe
4262  do
4263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
4267if test "${ac_cv_prog_CC+set}" = set; then
4268  $as_echo_n "(cached) " >&6
4269else
4270  if test -n "$CC"; then
4271  ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  for ac_exec_ext in '' $ac_executable_extensions; do
4279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4281    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285done
4286IFS=$as_save_IFS
4287
4288fi
4289fi
4290CC=$ac_cv_prog_CC
4291if test -n "$CC"; then
4292  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4293$as_echo "$CC" >&6; }
4294else
4295  { $as_echo "$as_me:$LINENO: result: no" >&5
4296$as_echo "no" >&6; }
4297fi
4298
4299
4300    test -n "$CC" && break
4301  done
4302fi
4303if test -z "$CC"; then
4304  ac_ct_CC=$CC
4305  for ac_prog in cl.exe
4306do
4307  # Extract the first word of "$ac_prog", so it can be a program name with args.
4308set dummy $ac_prog; ac_word=$2
4309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4310$as_echo_n "checking for $ac_word... " >&6; }
4311if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4312  $as_echo_n "(cached) " >&6
4313else
4314  if test -n "$ac_ct_CC"; then
4315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316else
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320  IFS=$as_save_IFS
4321  test -z "$as_dir" && as_dir=.
4322  for ac_exec_ext in '' $ac_executable_extensions; do
4323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324    ac_cv_prog_ac_ct_CC="$ac_prog"
4325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326    break 2
4327  fi
4328done
4329done
4330IFS=$as_save_IFS
4331
4332fi
4333fi
4334ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335if test -n "$ac_ct_CC"; then
4336  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4337$as_echo "$ac_ct_CC" >&6; }
4338else
4339  { $as_echo "$as_me:$LINENO: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
4342
4343
4344  test -n "$ac_ct_CC" && break
4345done
4346
4347  if test "x$ac_ct_CC" = x; then
4348    CC=""
4349  else
4350    case $cross_compiling:$ac_tool_warned in
4351yes:)
4352{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356    CC=$ac_ct_CC
4357  fi
4358fi
4359
4360fi
4361
4362
4363test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4366See \`config.log' for more details." >&5
4367$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4368See \`config.log' for more details." >&2;}
4369   { (exit 1); exit 1; }; }; }
4370
4371# Provide some information about the compiler.
4372$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4373set X $ac_compile
4374ac_compiler=$2
4375{ (ac_try="$ac_compiler --version >&5"
4376case "(($ac_try" in
4377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378  *) ac_try_echo=$ac_try;;
4379esac
4380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381$as_echo "$ac_try_echo") >&5
4382  (eval "$ac_compiler --version >&5") 2>&5
4383  ac_status=$?
4384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }
4386{ (ac_try="$ac_compiler -v >&5"
4387case "(($ac_try" in
4388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389  *) ac_try_echo=$ac_try;;
4390esac
4391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392$as_echo "$ac_try_echo") >&5
4393  (eval "$ac_compiler -v >&5") 2>&5
4394  ac_status=$?
4395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); }
4397{ (ac_try="$ac_compiler -V >&5"
4398case "(($ac_try" in
4399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400  *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403$as_echo "$ac_try_echo") >&5
4404  (eval "$ac_compiler -V >&5") 2>&5
4405  ac_status=$?
4406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }
4408
4409cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h.  */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h.  */
4415
4416int
4417main ()
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424ac_clean_files_save=$ac_clean_files
4425ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4426# Try to create an executable without -o first, disregard a.out.
4427# It will help us diagnose broken compilers, and finding out an intuition
4428# of exeext.
4429{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4430$as_echo_n "checking for C compiler default output file name... " >&6; }
4431ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4432
4433# The possible output files:
4434ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4435
4436ac_rmfiles=
4437for ac_file in $ac_files
4438do
4439  case $ac_file in
4440    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4441    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4442  esac
4443done
4444rm -f $ac_rmfiles
4445
4446if { (ac_try="$ac_link_default"
4447case "(($ac_try" in
4448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449  *) ac_try_echo=$ac_try;;
4450esac
4451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452$as_echo "$ac_try_echo") >&5
4453  (eval "$ac_link_default") 2>&5
4454  ac_status=$?
4455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; then
4457  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4458# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4459# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4460# so that the user can short-circuit this test for compilers unknown to
4461# Autoconf.
4462for ac_file in $ac_files ''
4463do
4464  test -f "$ac_file" || continue
4465  case $ac_file in
4466    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4467	;;
4468    [ab].out )
4469	# We found the default executable, but exeext='' is most
4470	# certainly right.
4471	break;;
4472    *.* )
4473        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4474	then :; else
4475	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476	fi
4477	# We set ac_cv_exeext here because the later test for it is not
4478	# safe: cross compilers may not add the suffix if given an `-o'
4479	# argument, so we may need to know it at that point already.
4480	# Even if this section looks crufty: it has the advantage of
4481	# actually working.
4482	break;;
4483    * )
4484	break;;
4485  esac
4486done
4487test "$ac_cv_exeext" = no && ac_cv_exeext=
4488
4489else
4490  ac_file=''
4491fi
4492
4493{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4494$as_echo "$ac_file" >&6; }
4495if test -z "$ac_file"; then
4496  $as_echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4502See \`config.log' for more details." >&5
4503$as_echo "$as_me: error: C compiler cannot create executables
4504See \`config.log' for more details." >&2;}
4505   { (exit 77); exit 77; }; }; }
4506fi
4507
4508ac_exeext=$ac_cv_exeext
4509
4510# Check that the compiler produces executables we can run.  If not, either
4511# the compiler is broken, or we cross compile.
4512{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4513$as_echo_n "checking whether the C compiler works... " >&6; }
4514# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4515# If not cross compiling, check that we can run a simple program.
4516if test "$cross_compiling" != yes; then
4517  if { ac_try='./$ac_file'
4518  { (case "(($ac_try" in
4519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520  *) ac_try_echo=$ac_try;;
4521esac
4522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4523$as_echo "$ac_try_echo") >&5
4524  (eval "$ac_try") 2>&5
4525  ac_status=$?
4526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); }; }; then
4528    cross_compiling=no
4529  else
4530    if test "$cross_compiling" = maybe; then
4531	cross_compiling=yes
4532    else
4533	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4535{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4536If you meant to cross compile, use \`--host'.
4537See \`config.log' for more details." >&5
4538$as_echo "$as_me: error: cannot run C compiled programs.
4539If you meant to cross compile, use \`--host'.
4540See \`config.log' for more details." >&2;}
4541   { (exit 1); exit 1; }; }; }
4542    fi
4543  fi
4544fi
4545{ $as_echo "$as_me:$LINENO: result: yes" >&5
4546$as_echo "yes" >&6; }
4547
4548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4549ac_clean_files=$ac_clean_files_save
4550# Check that the compiler produces executables we can run.  If not, either
4551# the compiler is broken, or we cross compile.
4552{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4553$as_echo_n "checking whether we are cross compiling... " >&6; }
4554{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4555$as_echo "$cross_compiling" >&6; }
4556
4557{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4558$as_echo_n "checking for suffix of executables... " >&6; }
4559if { (ac_try="$ac_link"
4560case "(($ac_try" in
4561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562  *) ac_try_echo=$ac_try;;
4563esac
4564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4565$as_echo "$ac_try_echo") >&5
4566  (eval "$ac_link") 2>&5
4567  ac_status=$?
4568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); }; then
4570  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4571# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4572# work properly (i.e., refer to `conftest.exe'), while it won't with
4573# `rm'.
4574for ac_file in conftest.exe conftest conftest.*; do
4575  test -f "$ac_file" || continue
4576  case $ac_file in
4577    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4579	  break;;
4580    * ) break;;
4581  esac
4582done
4583else
4584  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4587See \`config.log' for more details." >&5
4588$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4589See \`config.log' for more details." >&2;}
4590   { (exit 1); exit 1; }; }; }
4591fi
4592
4593rm -f conftest$ac_cv_exeext
4594{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4595$as_echo "$ac_cv_exeext" >&6; }
4596
4597rm -f conftest.$ac_ext
4598EXEEXT=$ac_cv_exeext
4599ac_exeext=$EXEEXT
4600{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4601$as_echo_n "checking for suffix of object files... " >&6; }
4602if test "${ac_cv_objext+set}" = set; then
4603  $as_echo_n "(cached) " >&6
4604else
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611
4612int
4613main ()
4614{
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620rm -f conftest.o conftest.obj
4621if { (ac_try="$ac_compile"
4622case "(($ac_try" in
4623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624  *) ac_try_echo=$ac_try;;
4625esac
4626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627$as_echo "$ac_try_echo") >&5
4628  (eval "$ac_compile") 2>&5
4629  ac_status=$?
4630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }; then
4632  for ac_file in conftest.o conftest.obj conftest.*; do
4633  test -f "$ac_file" || continue;
4634  case $ac_file in
4635    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4636    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4637       break;;
4638  esac
4639done
4640else
4641  $as_echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4647See \`config.log' for more details." >&5
4648$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4649See \`config.log' for more details." >&2;}
4650   { (exit 1); exit 1; }; }; }
4651fi
4652
4653rm -f conftest.$ac_cv_objext conftest.$ac_ext
4654fi
4655{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4656$as_echo "$ac_cv_objext" >&6; }
4657OBJEXT=$ac_cv_objext
4658ac_objext=$OBJEXT
4659{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4660$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4661if test "${ac_cv_c_compiler_gnu+set}" = set; then
4662  $as_echo_n "(cached) " >&6
4663else
4664  cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h.  */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h.  */
4670
4671int
4672main ()
4673{
4674#ifndef __GNUC__
4675       choke me
4676#endif
4677
4678  ;
4679  return 0;
4680}
4681_ACEOF
4682rm -f conftest.$ac_objext
4683if { (ac_try="$ac_compile"
4684case "(($ac_try" in
4685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686  *) ac_try_echo=$ac_try;;
4687esac
4688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4689$as_echo "$ac_try_echo") >&5
4690  (eval "$ac_compile") 2>conftest.er1
4691  ac_status=$?
4692  grep -v '^ *+' conftest.er1 >conftest.err
4693  rm -f conftest.er1
4694  cat conftest.err >&5
4695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); } && {
4697	 test -z "$ac_c_werror_flag" ||
4698	 test ! -s conftest.err
4699       } && test -s conftest.$ac_objext; then
4700  ac_compiler_gnu=yes
4701else
4702  $as_echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705	ac_compiler_gnu=no
4706fi
4707
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709ac_cv_c_compiler_gnu=$ac_compiler_gnu
4710
4711fi
4712{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4713$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4714if test $ac_compiler_gnu = yes; then
4715  GCC=yes
4716else
4717  GCC=
4718fi
4719ac_test_CFLAGS=${CFLAGS+set}
4720ac_save_CFLAGS=$CFLAGS
4721{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4722$as_echo_n "checking whether $CC accepts -g... " >&6; }
4723if test "${ac_cv_prog_cc_g+set}" = set; then
4724  $as_echo_n "(cached) " >&6
4725else
4726  ac_save_c_werror_flag=$ac_c_werror_flag
4727   ac_c_werror_flag=yes
4728   ac_cv_prog_cc_g=no
4729   CFLAGS="-g"
4730   cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736
4737int
4738main ()
4739{
4740
4741  ;
4742  return 0;
4743}
4744_ACEOF
4745rm -f conftest.$ac_objext
4746if { (ac_try="$ac_compile"
4747case "(($ac_try" in
4748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749  *) ac_try_echo=$ac_try;;
4750esac
4751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752$as_echo "$ac_try_echo") >&5
4753  (eval "$ac_compile") 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } && {
4760	 test -z "$ac_c_werror_flag" ||
4761	 test ! -s conftest.err
4762       } && test -s conftest.$ac_objext; then
4763  ac_cv_prog_cc_g=yes
4764else
4765  $as_echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768	CFLAGS=""
4769      cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h.  */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h.  */
4775
4776int
4777main ()
4778{
4779
4780  ;
4781  return 0;
4782}
4783_ACEOF
4784rm -f conftest.$ac_objext
4785if { (ac_try="$ac_compile"
4786case "(($ac_try" in
4787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788  *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791$as_echo "$ac_try_echo") >&5
4792  (eval "$ac_compile") 2>conftest.er1
4793  ac_status=$?
4794  grep -v '^ *+' conftest.er1 >conftest.err
4795  rm -f conftest.er1
4796  cat conftest.err >&5
4797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } && {
4799	 test -z "$ac_c_werror_flag" ||
4800	 test ! -s conftest.err
4801       } && test -s conftest.$ac_objext; then
4802  :
4803else
4804  $as_echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807	ac_c_werror_flag=$ac_save_c_werror_flag
4808	 CFLAGS="-g"
4809	 cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815
4816int
4817main ()
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext
4825if { (ac_try="$ac_compile"
4826case "(($ac_try" in
4827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828  *) ac_try_echo=$ac_try;;
4829esac
4830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4831$as_echo "$ac_try_echo") >&5
4832  (eval "$ac_compile") 2>conftest.er1
4833  ac_status=$?
4834  grep -v '^ *+' conftest.er1 >conftest.err
4835  rm -f conftest.er1
4836  cat conftest.err >&5
4837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838  (exit $ac_status); } && {
4839	 test -z "$ac_c_werror_flag" ||
4840	 test ! -s conftest.err
4841       } && test -s conftest.$ac_objext; then
4842  ac_cv_prog_cc_g=yes
4843else
4844  $as_echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847
4848fi
4849
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851fi
4852
4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854fi
4855
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857   ac_c_werror_flag=$ac_save_c_werror_flag
4858fi
4859{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4860$as_echo "$ac_cv_prog_cc_g" >&6; }
4861if test "$ac_test_CFLAGS" = set; then
4862  CFLAGS=$ac_save_CFLAGS
4863elif test $ac_cv_prog_cc_g = yes; then
4864  if test "$GCC" = yes; then
4865    CFLAGS="-g -O2"
4866  else
4867    CFLAGS="-g"
4868  fi
4869else
4870  if test "$GCC" = yes; then
4871    CFLAGS="-O2"
4872  else
4873    CFLAGS=
4874  fi
4875fi
4876{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4877$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4878if test "${ac_cv_prog_cc_c89+set}" = set; then
4879  $as_echo_n "(cached) " >&6
4880else
4881  ac_cv_prog_cc_c89=no
4882ac_save_CC=$CC
4883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h.  */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h.  */
4889#include <stdarg.h>
4890#include <stdio.h>
4891#include <sys/types.h>
4892#include <sys/stat.h>
4893/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4894struct buf { int x; };
4895FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896static char *e (p, i)
4897     char **p;
4898     int i;
4899{
4900  return p[i];
4901}
4902static char *f (char * (*g) (char **, int), char **p, ...)
4903{
4904  char *s;
4905  va_list v;
4906  va_start (v,p);
4907  s = g (p, va_arg (v,int));
4908  va_end (v);
4909  return s;
4910}
4911
4912/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4913   function prototypes and stuff, but not '\xHH' hex character constants.
4914   These don't provoke an error unfortunately, instead are silently treated
4915   as 'x'.  The following induces an error, until -std is added to get
4916   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4917   array size at least.  It's necessary to write '\x00'==0 to get something
4918   that's true only with -std.  */
4919int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4920
4921/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4922   inside strings and character constants.  */
4923#define FOO(x) 'x'
4924int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4925
4926int test (int i, double x);
4927struct s1 {int (*f) (int a);};
4928struct s2 {int (*f) (double a);};
4929int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4930int argc;
4931char **argv;
4932int
4933main ()
4934{
4935return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4941	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4942do
4943  CC="$ac_save_CC $ac_arg"
4944  rm -f conftest.$ac_objext
4945if { (ac_try="$ac_compile"
4946case "(($ac_try" in
4947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948  *) ac_try_echo=$ac_try;;
4949esac
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
4952  (eval "$ac_compile") 2>conftest.er1
4953  ac_status=$?
4954  grep -v '^ *+' conftest.er1 >conftest.err
4955  rm -f conftest.er1
4956  cat conftest.err >&5
4957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958  (exit $ac_status); } && {
4959	 test -z "$ac_c_werror_flag" ||
4960	 test ! -s conftest.err
4961       } && test -s conftest.$ac_objext; then
4962  ac_cv_prog_cc_c89=$ac_arg
4963else
4964  $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967
4968fi
4969
4970rm -f core conftest.err conftest.$ac_objext
4971  test "x$ac_cv_prog_cc_c89" != "xno" && break
4972done
4973rm -f conftest.$ac_ext
4974CC=$ac_save_CC
4975
4976fi
4977# AC_CACHE_VAL
4978case "x$ac_cv_prog_cc_c89" in
4979  x)
4980    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4981$as_echo "none needed" >&6; } ;;
4982  xno)
4983    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4984$as_echo "unsupported" >&6; } ;;
4985  *)
4986    CC="$CC $ac_cv_prog_cc_c89"
4987    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4988$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4989esac
4990
4991
4992ac_ext=c
4993ac_cpp='$CPP $CPPFLAGS'
4994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997
4998depcc="$CC"   am_compiler_list=
4999
5000{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5001$as_echo_n "checking dependency style of $depcc... " >&6; }
5002if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5003  $as_echo_n "(cached) " >&6
5004else
5005  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5006  # We make a subdir and do the tests there.  Otherwise we can end up
5007  # making bogus files that we don't know about and never remove.  For
5008  # instance it was reported that on HP-UX the gcc test will end up
5009  # making a dummy file named `D' -- because `-MD' means `put the output
5010  # in D'.
5011  mkdir conftest.dir
5012  # Copy depcomp to subdir because otherwise we won't find it if we're
5013  # using a relative directory.
5014  cp "$am_depcomp" conftest.dir
5015  cd conftest.dir
5016  # We will build objects and dependencies in a subdirectory because
5017  # it helps to detect inapplicable dependency modes.  For instance
5018  # both Tru64's cc and ICC support -MD to output dependencies as a
5019  # side effect of compilation, but ICC will put the dependencies in
5020  # the current directory while Tru64 will put them in the object
5021  # directory.
5022  mkdir sub
5023
5024  am_cv_CC_dependencies_compiler_type=none
5025  if test "$am_compiler_list" = ""; then
5026     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5027  fi
5028  am__universal=false
5029  case " $depcc " in #(
5030     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5031     esac
5032
5033  for depmode in $am_compiler_list; do
5034    # Setup a source with many dependencies, because some compilers
5035    # like to wrap large dependency lists on column 80 (with \), and
5036    # we should not choose a depcomp mode which is confused by this.
5037    #
5038    # We need to recreate these files for each test, as the compiler may
5039    # overwrite some of them when testing with obscure command lines.
5040    # This happens at least with the AIX C compiler.
5041    : > sub/conftest.c
5042    for i in 1 2 3 4 5 6; do
5043      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5044      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5045      # Solaris 8's {/usr,}/bin/sh.
5046      touch sub/conftst$i.h
5047    done
5048    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5049
5050    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5051    # mode.  It turns out that the SunPro C++ compiler does not properly
5052    # handle `-M -o', and we need to detect this.  Also, some Intel
5053    # versions had trouble with output in subdirs
5054    am__obj=sub/conftest.${OBJEXT-o}
5055    am__minus_obj="-o $am__obj"
5056    case $depmode in
5057    gcc)
5058      # This depmode causes a compiler race in universal mode.
5059      test "$am__universal" = false || continue
5060      ;;
5061    nosideeffect)
5062      # after this tag, mechanisms are not by side-effect, so they'll
5063      # only be used when explicitly requested
5064      if test "x$enable_dependency_tracking" = xyes; then
5065	continue
5066      else
5067	break
5068      fi
5069      ;;
5070    msvisualcpp | msvcmsys)
5071      # This compiler won't grok `-c -o', but also, the minuso test has
5072      # not run yet.  These depmodes are late enough in the game, and
5073      # so weak that their functioning should not be impacted.
5074      am__obj=conftest.${OBJEXT-o}
5075      am__minus_obj=
5076      ;;
5077    none) break ;;
5078    esac
5079    if depmode=$depmode \
5080       source=sub/conftest.c object=$am__obj \
5081       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5082       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5083         >/dev/null 2>conftest.err &&
5084       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5085       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5086       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5087       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5088      # icc doesn't choke on unknown options, it will just issue warnings
5089      # or remarks (even with -Werror).  So we grep stderr for any message
5090      # that says an option was ignored or not supported.
5091      # When given -MP, icc 7.0 and 7.1 complain thusly:
5092      #   icc: Command line warning: ignoring option '-M'; no argument required
5093      # The diagnosis changed in icc 8.0:
5094      #   icc: Command line remark: option '-MP' not supported
5095      if (grep 'ignoring option' conftest.err ||
5096          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5097        am_cv_CC_dependencies_compiler_type=$depmode
5098        break
5099      fi
5100    fi
5101  done
5102
5103  cd ..
5104  rm -rf conftest.dir
5105else
5106  am_cv_CC_dependencies_compiler_type=none
5107fi
5108
5109fi
5110{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5111$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5112CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5113
5114 if
5115  test "x$enable_dependency_tracking" != xno \
5116  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5117  am__fastdepCC_TRUE=
5118  am__fastdepCC_FALSE='#'
5119else
5120  am__fastdepCC_TRUE='#'
5121  am__fastdepCC_FALSE=
5122fi
5123
5124
5125   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5126$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5127if test "${ac_cv_prog_cc_c99+set}" = set; then
5128  $as_echo_n "(cached) " >&6
5129else
5130  ac_cv_prog_cc_c99=no
5131ac_save_CC=$CC
5132cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138#include <stdarg.h>
5139#include <stdbool.h>
5140#include <stdlib.h>
5141#include <wchar.h>
5142#include <stdio.h>
5143
5144// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5145#define debug(...) fprintf (stderr, __VA_ARGS__)
5146#define showlist(...) puts (#__VA_ARGS__)
5147#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5148static void
5149test_varargs_macros (void)
5150{
5151  int x = 1234;
5152  int y = 5678;
5153  debug ("Flag");
5154  debug ("X = %d\n", x);
5155  showlist (The first, second, and third items.);
5156  report (x>y, "x is %d but y is %d", x, y);
5157}
5158
5159// Check long long types.
5160#define BIG64 18446744073709551615ull
5161#define BIG32 4294967295ul
5162#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5163#if !BIG_OK
5164  your preprocessor is broken;
5165#endif
5166#if BIG_OK
5167#else
5168  your preprocessor is broken;
5169#endif
5170static long long int bignum = -9223372036854775807LL;
5171static unsigned long long int ubignum = BIG64;
5172
5173struct incomplete_array
5174{
5175  int datasize;
5176  double data[];
5177};
5178
5179struct named_init {
5180  int number;
5181  const wchar_t *name;
5182  double average;
5183};
5184
5185typedef const char *ccp;
5186
5187static inline int
5188test_restrict (ccp restrict text)
5189{
5190  // See if C++-style comments work.
5191  // Iterate through items via the restricted pointer.
5192  // Also check for declarations in for loops.
5193  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5194    continue;
5195  return 0;
5196}
5197
5198// Check varargs and va_copy.
5199static void
5200test_varargs (const char *format, ...)
5201{
5202  va_list args;
5203  va_start (args, format);
5204  va_list args_copy;
5205  va_copy (args_copy, args);
5206
5207  const char *str;
5208  int number;
5209  float fnumber;
5210
5211  while (*format)
5212    {
5213      switch (*format++)
5214	{
5215	case 's': // string
5216	  str = va_arg (args_copy, const char *);
5217	  break;
5218	case 'd': // int
5219	  number = va_arg (args_copy, int);
5220	  break;
5221	case 'f': // float
5222	  fnumber = va_arg (args_copy, double);
5223	  break;
5224	default:
5225	  break;
5226	}
5227    }
5228  va_end (args_copy);
5229  va_end (args);
5230}
5231
5232int
5233main ()
5234{
5235
5236  // Check bool.
5237  _Bool success = false;
5238
5239  // Check restrict.
5240  if (test_restrict ("String literal") == 0)
5241    success = true;
5242  char *restrict newvar = "Another string";
5243
5244  // Check varargs.
5245  test_varargs ("s, d' f .", "string", 65, 34.234);
5246  test_varargs_macros ();
5247
5248  // Check flexible array members.
5249  struct incomplete_array *ia =
5250    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5251  ia->datasize = 10;
5252  for (int i = 0; i < ia->datasize; ++i)
5253    ia->data[i] = i * 1.234;
5254
5255  // Check named initializers.
5256  struct named_init ni = {
5257    .number = 34,
5258    .name = L"Test wide string",
5259    .average = 543.34343,
5260  };
5261
5262  ni.number = 58;
5263
5264  int dynamic_array[ni.number];
5265  dynamic_array[ni.number - 1] = 543;
5266
5267  // work around unused variable warnings
5268  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5269	  || dynamic_array[ni.number - 1] != 543);
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5276do
5277  CC="$ac_save_CC $ac_arg"
5278  rm -f conftest.$ac_objext
5279if { (ac_try="$ac_compile"
5280case "(($ac_try" in
5281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282  *) ac_try_echo=$ac_try;;
5283esac
5284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5285$as_echo "$ac_try_echo") >&5
5286  (eval "$ac_compile") 2>conftest.er1
5287  ac_status=$?
5288  grep -v '^ *+' conftest.er1 >conftest.err
5289  rm -f conftest.er1
5290  cat conftest.err >&5
5291  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); } && {
5293	 test -z "$ac_c_werror_flag" ||
5294	 test ! -s conftest.err
5295       } && test -s conftest.$ac_objext; then
5296  ac_cv_prog_cc_c99=$ac_arg
5297else
5298  $as_echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302fi
5303
5304rm -f core conftest.err conftest.$ac_objext
5305  test "x$ac_cv_prog_cc_c99" != "xno" && break
5306done
5307rm -f conftest.$ac_ext
5308CC=$ac_save_CC
5309
5310fi
5311# AC_CACHE_VAL
5312case "x$ac_cv_prog_cc_c99" in
5313  x)
5314    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5315$as_echo "none needed" >&6; } ;;
5316  xno)
5317    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5318$as_echo "unsupported" >&6; } ;;
5319  *)
5320    CC="$CC $ac_cv_prog_cc_c99"
5321    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5322$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5323esac
5324
5325
5326
5327if test x$ac_cv_prog_cc_c99 = xno ; then
5328	{ { $as_echo "$as_me:$LINENO: error: No C99 compiler was found." >&5
5329$as_echo "$as_me: error: No C99 compiler was found." >&2;}
5330   { (exit 1); exit 1; }; }
5331fi
5332
5333if test "x$CC" != xcc; then
5334  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5335$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5336else
5337  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5338$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5339fi
5340set dummy $CC; ac_cc=`$as_echo "$2" |
5341		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5342if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5343  $as_echo_n "(cached) " >&6
5344else
5345  cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h.  */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h.  */
5351
5352int
5353main ()
5354{
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360# Make sure it works both with $CC and with simple cc.
5361# We do the test twice because some compilers refuse to overwrite an
5362# existing .o file with -o, though they will create one.
5363ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5364rm -f conftest2.*
5365if { (case "(($ac_try" in
5366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367  *) ac_try_echo=$ac_try;;
5368esac
5369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5370$as_echo "$ac_try_echo") >&5
5371  (eval "$ac_try") 2>&5
5372  ac_status=$?
5373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); } &&
5375   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380$as_echo "$ac_try_echo") >&5
5381  (eval "$ac_try") 2>&5
5382  ac_status=$?
5383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); };
5385then
5386  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5387  if test "x$CC" != xcc; then
5388    # Test first that cc exists at all.
5389    if { ac_try='cc -c conftest.$ac_ext >&5'
5390  { (case "(($ac_try" in
5391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392  *) ac_try_echo=$ac_try;;
5393esac
5394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395$as_echo "$ac_try_echo") >&5
5396  (eval "$ac_try") 2>&5
5397  ac_status=$?
5398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); }; }; then
5400      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5401      rm -f conftest2.*
5402      if { (case "(($ac_try" in
5403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404  *) ac_try_echo=$ac_try;;
5405esac
5406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5407$as_echo "$ac_try_echo") >&5
5408  (eval "$ac_try") 2>&5
5409  ac_status=$?
5410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); } &&
5412	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414  *) ac_try_echo=$ac_try;;
5415esac
5416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5417$as_echo "$ac_try_echo") >&5
5418  (eval "$ac_try") 2>&5
5419  ac_status=$?
5420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); };
5422      then
5423	# cc works too.
5424	:
5425      else
5426	# cc exists but doesn't like -o.
5427	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5428      fi
5429    fi
5430  fi
5431else
5432  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5433fi
5434rm -f core conftest*
5435
5436fi
5437if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5438  { $as_echo "$as_me:$LINENO: result: yes" >&5
5439$as_echo "yes" >&6; }
5440else
5441  { $as_echo "$as_me:$LINENO: result: no" >&5
5442$as_echo "no" >&6; }
5443
5444cat >>confdefs.h <<\_ACEOF
5445#define NO_MINUS_C_MINUS_O 1
5446_ACEOF
5447
5448fi
5449
5450# FIXME: we rely on the cache variable name because
5451# there is no other way.
5452set dummy $CC
5453am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5454eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5455if test "$am_t" != yes; then
5456   # Losing compiler, so override with the script.
5457   # FIXME: It is wrong to rewrite CC.
5458   # But if we don't then we get into trouble of one sort or another.
5459   # A longer-term fix would be to have automake use am__CC in this case,
5460   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5461   CC="$am_aux_dir/compile $CC"
5462fi
5463
5464
5465# By default we simply use the C compiler to build assembly code.
5466
5467test "${CCAS+set}" = set || CCAS=$CC
5468test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5469
5470
5471
5472depcc="$CCAS"   am_compiler_list=
5473
5474{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5475$as_echo_n "checking dependency style of $depcc... " >&6; }
5476if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
5477  $as_echo_n "(cached) " >&6
5478else
5479  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5480  # We make a subdir and do the tests there.  Otherwise we can end up
5481  # making bogus files that we don't know about and never remove.  For
5482  # instance it was reported that on HP-UX the gcc test will end up
5483  # making a dummy file named `D' -- because `-MD' means `put the output
5484  # in D'.
5485  mkdir conftest.dir
5486  # Copy depcomp to subdir because otherwise we won't find it if we're
5487  # using a relative directory.
5488  cp "$am_depcomp" conftest.dir
5489  cd conftest.dir
5490  # We will build objects and dependencies in a subdirectory because
5491  # it helps to detect inapplicable dependency modes.  For instance
5492  # both Tru64's cc and ICC support -MD to output dependencies as a
5493  # side effect of compilation, but ICC will put the dependencies in
5494  # the current directory while Tru64 will put them in the object
5495  # directory.
5496  mkdir sub
5497
5498  am_cv_CCAS_dependencies_compiler_type=none
5499  if test "$am_compiler_list" = ""; then
5500     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5501  fi
5502  am__universal=false
5503
5504
5505  for depmode in $am_compiler_list; do
5506    # Setup a source with many dependencies, because some compilers
5507    # like to wrap large dependency lists on column 80 (with \), and
5508    # we should not choose a depcomp mode which is confused by this.
5509    #
5510    # We need to recreate these files for each test, as the compiler may
5511    # overwrite some of them when testing with obscure command lines.
5512    # This happens at least with the AIX C compiler.
5513    : > sub/conftest.c
5514    for i in 1 2 3 4 5 6; do
5515      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5516      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5517      # Solaris 8's {/usr,}/bin/sh.
5518      touch sub/conftst$i.h
5519    done
5520    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5521
5522    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5523    # mode.  It turns out that the SunPro C++ compiler does not properly
5524    # handle `-M -o', and we need to detect this.  Also, some Intel
5525    # versions had trouble with output in subdirs
5526    am__obj=sub/conftest.${OBJEXT-o}
5527    am__minus_obj="-o $am__obj"
5528    case $depmode in
5529    gcc)
5530      # This depmode causes a compiler race in universal mode.
5531      test "$am__universal" = false || continue
5532      ;;
5533    nosideeffect)
5534      # after this tag, mechanisms are not by side-effect, so they'll
5535      # only be used when explicitly requested
5536      if test "x$enable_dependency_tracking" = xyes; then
5537	continue
5538      else
5539	break
5540      fi
5541      ;;
5542    msvisualcpp | msvcmsys)
5543      # This compiler won't grok `-c -o', but also, the minuso test has
5544      # not run yet.  These depmodes are late enough in the game, and
5545      # so weak that their functioning should not be impacted.
5546      am__obj=conftest.${OBJEXT-o}
5547      am__minus_obj=
5548      ;;
5549    none) break ;;
5550    esac
5551    if depmode=$depmode \
5552       source=sub/conftest.c object=$am__obj \
5553       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5554       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5555         >/dev/null 2>conftest.err &&
5556       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5557       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5558       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5559       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5560      # icc doesn't choke on unknown options, it will just issue warnings
5561      # or remarks (even with -Werror).  So we grep stderr for any message
5562      # that says an option was ignored or not supported.
5563      # When given -MP, icc 7.0 and 7.1 complain thusly:
5564      #   icc: Command line warning: ignoring option '-M'; no argument required
5565      # The diagnosis changed in icc 8.0:
5566      #   icc: Command line remark: option '-MP' not supported
5567      if (grep 'ignoring option' conftest.err ||
5568          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5569        am_cv_CCAS_dependencies_compiler_type=$depmode
5570        break
5571      fi
5572    fi
5573  done
5574
5575  cd ..
5576  rm -rf conftest.dir
5577else
5578  am_cv_CCAS_dependencies_compiler_type=none
5579fi
5580
5581fi
5582{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5583$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5584CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5585
5586 if
5587  test "x$enable_dependency_tracking" != xno \
5588  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5589  am__fastdepCCAS_TRUE=
5590  am__fastdepCCAS_FALSE='#'
5591else
5592  am__fastdepCCAS_TRUE='#'
5593  am__fastdepCCAS_FALSE=
5594fi
5595
5596
5597
5598ac_ext=c
5599ac_cpp='$CPP $CPPFLAGS'
5600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5604$as_echo_n "checking how to run the C preprocessor... " >&6; }
5605# On Suns, sometimes $CPP names a directory.
5606if test -n "$CPP" && test -d "$CPP"; then
5607  CPP=
5608fi
5609if test -z "$CPP"; then
5610  if test "${ac_cv_prog_CPP+set}" = set; then
5611  $as_echo_n "(cached) " >&6
5612else
5613      # Double quotes because CPP needs to be expanded
5614    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5615    do
5616      ac_preproc_ok=false
5617for ac_c_preproc_warn_flag in '' yes
5618do
5619  # Use a header file that comes with gcc, so configuring glibc
5620  # with a fresh cross-compiler works.
5621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622  # <limits.h> exists even on freestanding compilers.
5623  # On the NeXT, cc -E runs the code through the compiler's parser,
5624  # not just through cpp. "Syntax error" is here to catch this case.
5625  cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h.  */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h.  */
5631#ifdef __STDC__
5632# include <limits.h>
5633#else
5634# include <assert.h>
5635#endif
5636		     Syntax error
5637_ACEOF
5638if { (ac_try="$ac_cpp conftest.$ac_ext"
5639case "(($ac_try" in
5640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641  *) ac_try_echo=$ac_try;;
5642esac
5643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5644$as_echo "$ac_try_echo") >&5
5645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646  ac_status=$?
5647  grep -v '^ *+' conftest.er1 >conftest.err
5648  rm -f conftest.er1
5649  cat conftest.err >&5
5650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } >/dev/null && {
5652	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5653	 test ! -s conftest.err
5654       }; then
5655  :
5656else
5657  $as_echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660  # Broken: fails on valid input.
5661continue
5662fi
5663
5664rm -f conftest.err conftest.$ac_ext
5665
5666  # OK, works on sane cases.  Now check whether nonexistent headers
5667  # can be detected and how.
5668  cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h.  */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h.  */
5674#include <ac_nonexistent.h>
5675_ACEOF
5676if { (ac_try="$ac_cpp conftest.$ac_ext"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5682$as_echo "$ac_try_echo") >&5
5683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684  ac_status=$?
5685  grep -v '^ *+' conftest.er1 >conftest.err
5686  rm -f conftest.er1
5687  cat conftest.err >&5
5688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); } >/dev/null && {
5690	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5691	 test ! -s conftest.err
5692       }; then
5693  # Broken: success on invalid input.
5694continue
5695else
5696  $as_echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699  # Passes both tests.
5700ac_preproc_ok=:
5701break
5702fi
5703
5704rm -f conftest.err conftest.$ac_ext
5705
5706done
5707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708rm -f conftest.err conftest.$ac_ext
5709if $ac_preproc_ok; then
5710  break
5711fi
5712
5713    done
5714    ac_cv_prog_CPP=$CPP
5715
5716fi
5717  CPP=$ac_cv_prog_CPP
5718else
5719  ac_cv_prog_CPP=$CPP
5720fi
5721{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5722$as_echo "$CPP" >&6; }
5723ac_preproc_ok=false
5724for ac_c_preproc_warn_flag in '' yes
5725do
5726  # Use a header file that comes with gcc, so configuring glibc
5727  # with a fresh cross-compiler works.
5728  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729  # <limits.h> exists even on freestanding compilers.
5730  # On the NeXT, cc -E runs the code through the compiler's parser,
5731  # not just through cpp. "Syntax error" is here to catch this case.
5732  cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738#ifdef __STDC__
5739# include <limits.h>
5740#else
5741# include <assert.h>
5742#endif
5743		     Syntax error
5744_ACEOF
5745if { (ac_try="$ac_cpp conftest.$ac_ext"
5746case "(($ac_try" in
5747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748  *) ac_try_echo=$ac_try;;
5749esac
5750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751$as_echo "$ac_try_echo") >&5
5752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5753  ac_status=$?
5754  grep -v '^ *+' conftest.er1 >conftest.err
5755  rm -f conftest.er1
5756  cat conftest.err >&5
5757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); } >/dev/null && {
5759	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5760	 test ! -s conftest.err
5761       }; then
5762  :
5763else
5764  $as_echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767  # Broken: fails on valid input.
5768continue
5769fi
5770
5771rm -f conftest.err conftest.$ac_ext
5772
5773  # OK, works on sane cases.  Now check whether nonexistent headers
5774  # can be detected and how.
5775  cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781#include <ac_nonexistent.h>
5782_ACEOF
5783if { (ac_try="$ac_cpp conftest.$ac_ext"
5784case "(($ac_try" in
5785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786  *) ac_try_echo=$ac_try;;
5787esac
5788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789$as_echo "$ac_try_echo") >&5
5790  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791  ac_status=$?
5792  grep -v '^ *+' conftest.er1 >conftest.err
5793  rm -f conftest.er1
5794  cat conftest.err >&5
5795  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); } >/dev/null && {
5797	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5798	 test ! -s conftest.err
5799       }; then
5800  # Broken: success on invalid input.
5801continue
5802else
5803  $as_echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806  # Passes both tests.
5807ac_preproc_ok=:
5808break
5809fi
5810
5811rm -f conftest.err conftest.$ac_ext
5812
5813done
5814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815rm -f conftest.err conftest.$ac_ext
5816if $ac_preproc_ok; then
5817  :
5818else
5819  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5821{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5822See \`config.log' for more details." >&5
5823$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5824See \`config.log' for more details." >&2;}
5825   { (exit 1); exit 1; }; }; }
5826fi
5827
5828ac_ext=c
5829ac_cpp='$CPP $CPPFLAGS'
5830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833
5834
5835{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5836$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5837if test "${ac_cv_path_GREP+set}" = set; then
5838  $as_echo_n "(cached) " >&6
5839else
5840  if test -z "$GREP"; then
5841  ac_path_GREP_found=false
5842  # Loop through the user's path and test for each of PROGNAME-LIST
5843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848  for ac_prog in grep ggrep; do
5849    for ac_exec_ext in '' $ac_executable_extensions; do
5850      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5851      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5852# Check for GNU ac_path_GREP and select it if it is found.
5853  # Check for GNU $ac_path_GREP
5854case `"$ac_path_GREP" --version 2>&1` in
5855*GNU*)
5856  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5857*)
5858  ac_count=0
5859  $as_echo_n 0123456789 >"conftest.in"
5860  while :
5861  do
5862    cat "conftest.in" "conftest.in" >"conftest.tmp"
5863    mv "conftest.tmp" "conftest.in"
5864    cp "conftest.in" "conftest.nl"
5865    $as_echo 'GREP' >> "conftest.nl"
5866    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868    ac_count=`expr $ac_count + 1`
5869    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5870      # Best one so far, save it but keep looking for a better one
5871      ac_cv_path_GREP="$ac_path_GREP"
5872      ac_path_GREP_max=$ac_count
5873    fi
5874    # 10*(2^10) chars as input seems more than enough
5875    test $ac_count -gt 10 && break
5876  done
5877  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878esac
5879
5880      $ac_path_GREP_found && break 3
5881    done
5882  done
5883done
5884IFS=$as_save_IFS
5885  if test -z "$ac_cv_path_GREP"; then
5886    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5887$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5888   { (exit 1); exit 1; }; }
5889  fi
5890else
5891  ac_cv_path_GREP=$GREP
5892fi
5893
5894fi
5895{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5896$as_echo "$ac_cv_path_GREP" >&6; }
5897 GREP="$ac_cv_path_GREP"
5898
5899
5900{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5901$as_echo_n "checking for egrep... " >&6; }
5902if test "${ac_cv_path_EGREP+set}" = set; then
5903  $as_echo_n "(cached) " >&6
5904else
5905  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5906   then ac_cv_path_EGREP="$GREP -E"
5907   else
5908     if test -z "$EGREP"; then
5909  ac_path_EGREP_found=false
5910  # Loop through the user's path and test for each of PROGNAME-LIST
5911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_prog in egrep; do
5917    for ac_exec_ext in '' $ac_executable_extensions; do
5918      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5919      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5920# Check for GNU ac_path_EGREP and select it if it is found.
5921  # Check for GNU $ac_path_EGREP
5922case `"$ac_path_EGREP" --version 2>&1` in
5923*GNU*)
5924  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5925*)
5926  ac_count=0
5927  $as_echo_n 0123456789 >"conftest.in"
5928  while :
5929  do
5930    cat "conftest.in" "conftest.in" >"conftest.tmp"
5931    mv "conftest.tmp" "conftest.in"
5932    cp "conftest.in" "conftest.nl"
5933    $as_echo 'EGREP' >> "conftest.nl"
5934    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5935    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5936    ac_count=`expr $ac_count + 1`
5937    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5938      # Best one so far, save it but keep looking for a better one
5939      ac_cv_path_EGREP="$ac_path_EGREP"
5940      ac_path_EGREP_max=$ac_count
5941    fi
5942    # 10*(2^10) chars as input seems more than enough
5943    test $ac_count -gt 10 && break
5944  done
5945  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946esac
5947
5948      $ac_path_EGREP_found && break 3
5949    done
5950  done
5951done
5952IFS=$as_save_IFS
5953  if test -z "$ac_cv_path_EGREP"; then
5954    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5955$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5956   { (exit 1); exit 1; }; }
5957  fi
5958else
5959  ac_cv_path_EGREP=$EGREP
5960fi
5961
5962   fi
5963fi
5964{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5965$as_echo "$ac_cv_path_EGREP" >&6; }
5966 EGREP="$ac_cv_path_EGREP"
5967
5968
5969{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5970$as_echo_n "checking for ANSI C header files... " >&6; }
5971if test "${ac_cv_header_stdc+set}" = set; then
5972  $as_echo_n "(cached) " >&6
5973else
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980#include <stdlib.h>
5981#include <stdarg.h>
5982#include <string.h>
5983#include <float.h>
5984
5985int
5986main ()
5987{
5988
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000$as_echo "$ac_try_echo") >&5
6001  (eval "$ac_compile") 2>conftest.er1
6002  ac_status=$?
6003  grep -v '^ *+' conftest.er1 >conftest.err
6004  rm -f conftest.er1
6005  cat conftest.err >&5
6006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007  (exit $ac_status); } && {
6008	 test -z "$ac_c_werror_flag" ||
6009	 test ! -s conftest.err
6010       } && test -s conftest.$ac_objext; then
6011  ac_cv_header_stdc=yes
6012else
6013  $as_echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016	ac_cv_header_stdc=no
6017fi
6018
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020
6021if test $ac_cv_header_stdc = yes; then
6022  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6023  cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h.  */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h.  */
6029#include <string.h>
6030
6031_ACEOF
6032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6033  $EGREP "memchr" >/dev/null 2>&1; then
6034  :
6035else
6036  ac_cv_header_stdc=no
6037fi
6038rm -f conftest*
6039
6040fi
6041
6042if test $ac_cv_header_stdc = yes; then
6043  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6044  cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h.  */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h.  */
6050#include <stdlib.h>
6051
6052_ACEOF
6053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054  $EGREP "free" >/dev/null 2>&1; then
6055  :
6056else
6057  ac_cv_header_stdc=no
6058fi
6059rm -f conftest*
6060
6061fi
6062
6063if test $ac_cv_header_stdc = yes; then
6064  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065  if test "$cross_compiling" = yes; then
6066  :
6067else
6068  cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074#include <ctype.h>
6075#include <stdlib.h>
6076#if ((' ' & 0x0FF) == 0x020)
6077# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079#else
6080# define ISLOWER(c) \
6081		   (('a' <= (c) && (c) <= 'i') \
6082		     || ('j' <= (c) && (c) <= 'r') \
6083		     || ('s' <= (c) && (c) <= 'z'))
6084# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085#endif
6086
6087#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6088int
6089main ()
6090{
6091  int i;
6092  for (i = 0; i < 256; i++)
6093    if (XOR (islower (i), ISLOWER (i))
6094	|| toupper (i) != TOUPPER (i))
6095      return 2;
6096  return 0;
6097}
6098_ACEOF
6099rm -f conftest$ac_exeext
6100if { (ac_try="$ac_link"
6101case "(($ac_try" in
6102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103  *) ac_try_echo=$ac_try;;
6104esac
6105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6106$as_echo "$ac_try_echo") >&5
6107  (eval "$ac_link") 2>&5
6108  ac_status=$?
6109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6111  { (case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116$as_echo "$ac_try_echo") >&5
6117  (eval "$ac_try") 2>&5
6118  ac_status=$?
6119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  :
6122else
6123  $as_echo "$as_me: program exited with status $ac_status" >&5
6124$as_echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127( exit $ac_status )
6128ac_cv_header_stdc=no
6129fi
6130rm -rf conftest.dSYM
6131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6132fi
6133
6134
6135fi
6136fi
6137{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6138$as_echo "$ac_cv_header_stdc" >&6; }
6139if test $ac_cv_header_stdc = yes; then
6140
6141cat >>confdefs.h <<\_ACEOF
6142#define STDC_HEADERS 1
6143_ACEOF
6144
6145fi
6146
6147# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6158		  inttypes.h stdint.h unistd.h
6159do
6160as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6161{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6162$as_echo_n "checking for $ac_header... " >&6; }
6163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172$ac_includes_default
6173
6174#include <$ac_header>
6175_ACEOF
6176rm -f conftest.$ac_objext
6177if { (ac_try="$ac_compile"
6178case "(($ac_try" in
6179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180  *) ac_try_echo=$ac_try;;
6181esac
6182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6183$as_echo "$ac_try_echo") >&5
6184  (eval "$ac_compile") 2>conftest.er1
6185  ac_status=$?
6186  grep -v '^ *+' conftest.er1 >conftest.err
6187  rm -f conftest.er1
6188  cat conftest.err >&5
6189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190  (exit $ac_status); } && {
6191	 test -z "$ac_c_werror_flag" ||
6192	 test ! -s conftest.err
6193       } && test -s conftest.$ac_objext; then
6194  eval "$as_ac_Header=yes"
6195else
6196  $as_echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199	eval "$as_ac_Header=no"
6200fi
6201
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204ac_res=`eval 'as_val=${'$as_ac_Header'}
6205		 $as_echo "$as_val"'`
6206	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6207$as_echo "$ac_res" >&6; }
6208as_val=`eval 'as_val=${'$as_ac_Header'}
6209		 $as_echo "$as_val"'`
6210   if test "x$as_val" = x""yes; then
6211  cat >>confdefs.h <<_ACEOF
6212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213_ACEOF
6214
6215fi
6216
6217done
6218
6219
6220
6221  if test "${ac_cv_header_minix_config_h+set}" = set; then
6222  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6223$as_echo_n "checking for minix/config.h... " >&6; }
6224if test "${ac_cv_header_minix_config_h+set}" = set; then
6225  $as_echo_n "(cached) " >&6
6226fi
6227{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6228$as_echo "$ac_cv_header_minix_config_h" >&6; }
6229else
6230  # Is the header compilable?
6231{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6232$as_echo_n "checking minix/config.h usability... " >&6; }
6233cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h.  */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h.  */
6239$ac_includes_default
6240#include <minix/config.h>
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249$as_echo "$ac_try_echo") >&5
6250  (eval "$ac_compile") 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } && {
6257	 test -z "$ac_c_werror_flag" ||
6258	 test ! -s conftest.err
6259       } && test -s conftest.$ac_objext; then
6260  ac_header_compiler=yes
6261else
6262  $as_echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
6264
6265	ac_header_compiler=no
6266fi
6267
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270$as_echo "$ac_header_compiler" >&6; }
6271
6272# Is the header present?
6273{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6274$as_echo_n "checking minix/config.h presence... " >&6; }
6275cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h.  */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h.  */
6281#include <minix/config.h>
6282_ACEOF
6283if { (ac_try="$ac_cpp conftest.$ac_ext"
6284case "(($ac_try" in
6285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286  *) ac_try_echo=$ac_try;;
6287esac
6288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6289$as_echo "$ac_try_echo") >&5
6290  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } >/dev/null && {
6297	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6298	 test ! -s conftest.err
6299       }; then
6300  ac_header_preproc=yes
6301else
6302  $as_echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305  ac_header_preproc=no
6306fi
6307
6308rm -f conftest.err conftest.$ac_ext
6309{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6310$as_echo "$ac_header_preproc" >&6; }
6311
6312# So?  What about this header?
6313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6314  yes:no: )
6315    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6316$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6317    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6318$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6319    ac_header_preproc=yes
6320    ;;
6321  no:yes:* )
6322    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6323$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6324    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6325$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6326    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6327$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6328    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6329$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6330    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6331$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6332    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6333$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6334    ( cat <<\_ASBOX
6335## --------------------------------------- ##
6336## Report this to lasse.collin@tukaani.org ##
6337## --------------------------------------- ##
6338_ASBOX
6339     ) | sed "s/^/$as_me: WARNING:     /" >&2
6340    ;;
6341esac
6342{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6343$as_echo_n "checking for minix/config.h... " >&6; }
6344if test "${ac_cv_header_minix_config_h+set}" = set; then
6345  $as_echo_n "(cached) " >&6
6346else
6347  ac_cv_header_minix_config_h=$ac_header_preproc
6348fi
6349{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6350$as_echo "$ac_cv_header_minix_config_h" >&6; }
6351
6352fi
6353if test "x$ac_cv_header_minix_config_h" = x""yes; then
6354  MINIX=yes
6355else
6356  MINIX=
6357fi
6358
6359
6360  if test "$MINIX" = yes; then
6361
6362cat >>confdefs.h <<\_ACEOF
6363#define _POSIX_SOURCE 1
6364_ACEOF
6365
6366
6367cat >>confdefs.h <<\_ACEOF
6368#define _POSIX_1_SOURCE 2
6369_ACEOF
6370
6371
6372cat >>confdefs.h <<\_ACEOF
6373#define _MINIX 1
6374_ACEOF
6375
6376  fi
6377
6378
6379
6380  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6381$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6382if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6383  $as_echo_n "(cached) " >&6
6384else
6385  cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h.  */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h.  */
6391
6392#	  define __EXTENSIONS__ 1
6393	  $ac_includes_default
6394int
6395main ()
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402rm -f conftest.$ac_objext
6403if { (ac_try="$ac_compile"
6404case "(($ac_try" in
6405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406  *) ac_try_echo=$ac_try;;
6407esac
6408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409$as_echo "$ac_try_echo") >&5
6410  (eval "$ac_compile") 2>conftest.er1
6411  ac_status=$?
6412  grep -v '^ *+' conftest.er1 >conftest.err
6413  rm -f conftest.er1
6414  cat conftest.err >&5
6415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); } && {
6417	 test -z "$ac_c_werror_flag" ||
6418	 test ! -s conftest.err
6419       } && test -s conftest.$ac_objext; then
6420  ac_cv_safe_to_define___extensions__=yes
6421else
6422  $as_echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425	ac_cv_safe_to_define___extensions__=no
6426fi
6427
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6431$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6432  test $ac_cv_safe_to_define___extensions__ = yes &&
6433    cat >>confdefs.h <<\_ACEOF
6434#define __EXTENSIONS__ 1
6435_ACEOF
6436
6437  cat >>confdefs.h <<\_ACEOF
6438#define _ALL_SOURCE 1
6439_ACEOF
6440
6441  cat >>confdefs.h <<\_ACEOF
6442#define _GNU_SOURCE 1
6443_ACEOF
6444
6445  cat >>confdefs.h <<\_ACEOF
6446#define _POSIX_PTHREAD_SEMANTICS 1
6447_ACEOF
6448
6449  cat >>confdefs.h <<\_ACEOF
6450#define _TANDEM_SOURCE 1
6451_ACEOF
6452
6453
6454
6455if test "x$enable_threads" = xyes; then
6456	echo
6457	echo "Threading support:"
6458
6459
6460
6461ac_ext=c
6462ac_cpp='$CPP $CPPFLAGS'
6463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
6467acx_pthread_ok=no
6468
6469# We used to check for pthread.h first, but this fails if pthread.h
6470# requires special compiler flags (e.g. on True64 or Sequent).
6471# It gets checked for in the link test anyway.
6472
6473# First of all, check if the user has set any of the PTHREAD_LIBS,
6474# etcetera environment variables, and if threads linking works using
6475# them:
6476if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6477        save_CFLAGS="$CFLAGS"
6478        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6479        save_LIBS="$LIBS"
6480        LIBS="$PTHREAD_LIBS $LIBS"
6481        { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
6482$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
6483        cat >conftest.$ac_ext <<_ACEOF
6484/* confdefs.h.  */
6485_ACEOF
6486cat confdefs.h >>conftest.$ac_ext
6487cat >>conftest.$ac_ext <<_ACEOF
6488/* end confdefs.h.  */
6489
6490/* Override any GCC internal prototype to avoid an error.
6491   Use char because int might match the return type of a GCC
6492   builtin and then its argument prototype would still apply.  */
6493#ifdef __cplusplus
6494extern "C"
6495#endif
6496char pthread_join ();
6497int
6498main ()
6499{
6500return pthread_join ();
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext conftest$ac_exeext
6506if { (ac_try="$ac_link"
6507case "(($ac_try" in
6508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509  *) ac_try_echo=$ac_try;;
6510esac
6511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512$as_echo "$ac_try_echo") >&5
6513  (eval "$ac_link") 2>conftest.er1
6514  ac_status=$?
6515  grep -v '^ *+' conftest.er1 >conftest.err
6516  rm -f conftest.er1
6517  cat conftest.err >&5
6518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } && {
6520	 test -z "$ac_c_werror_flag" ||
6521	 test ! -s conftest.err
6522       } && test -s conftest$ac_exeext && {
6523	 test "$cross_compiling" = yes ||
6524	 $as_test_x conftest$ac_exeext
6525       }; then
6526  acx_pthread_ok=yes
6527else
6528  $as_echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531
6532fi
6533
6534rm -rf conftest.dSYM
6535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536      conftest$ac_exeext conftest.$ac_ext
6537        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
6538$as_echo "$acx_pthread_ok" >&6; }
6539        if test x"$acx_pthread_ok" = xno; then
6540                PTHREAD_LIBS=""
6541                PTHREAD_CFLAGS=""
6542        fi
6543        LIBS="$save_LIBS"
6544        CFLAGS="$save_CFLAGS"
6545fi
6546
6547# We must check for the threads library under a number of different
6548# names; the ordering is very important because some systems
6549# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6550# libraries is broken (non-POSIX).
6551
6552# Create a list of thread flags to try.  Items starting with a "-" are
6553# C compiler flags, and other items are library names, except for "none"
6554# which indicates that we try without any flags at all, and "pthread-config"
6555# which is a program returning the flags for the Pth emulation library.
6556
6557acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6558
6559# The ordering *is* (sometimes) important.  Some notes on the
6560# individual items follow:
6561
6562# pthreads: AIX (must check this before -lpthread)
6563# none: in case threads are in libc; should be tried before -Kthread and
6564#       other compiler flags to prevent continual compiler warnings
6565# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6566# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6567# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6568# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
6569# -pthreads: Solaris/gcc
6570# -mthreads: Mingw32/gcc, Lynx/gcc
6571# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6572#      doesn't hurt to check since this sometimes defines pthreads too;
6573#      also defines -D_REENTRANT)
6574#      ... -mt is also the pthreads flag for HP/aCC
6575# pthread: Linux, etcetera
6576# --thread-safe: KAI C++
6577# pthread-config: use pthread-config program (for GNU Pth library)
6578
6579case "${host_cpu}-${host_os}" in
6580        *solaris*)
6581
6582        # On Solaris (at least, for some versions), libc contains stubbed
6583        # (non-functional) versions of the pthreads routines, so link-based
6584        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
6585        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
6586        # a function called by this macro, so we could check for that, but
6587        # who knows whether they'll stub that too in a future libc.)  So,
6588        # we'll just look for -pthreads and -lpthread first:
6589
6590        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
6591        ;;
6592esac
6593
6594if test x"$acx_pthread_ok" = xno; then
6595for flag in $acx_pthread_flags; do
6596
6597        case $flag in
6598                none)
6599                { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
6600$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6601                ;;
6602
6603                -*)
6604                { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
6605$as_echo_n "checking whether pthreads work with $flag... " >&6; }
6606                PTHREAD_CFLAGS="$flag"
6607                ;;
6608
6609		pthread-config)
6610		# Extract the first word of "pthread-config", so it can be a program name with args.
6611set dummy pthread-config; ac_word=$2
6612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6613$as_echo_n "checking for $ac_word... " >&6; }
6614if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
6615  $as_echo_n "(cached) " >&6
6616else
6617  if test -n "$acx_pthread_config"; then
6618  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
6619else
6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623  IFS=$as_save_IFS
6624  test -z "$as_dir" && as_dir=.
6625  for ac_exec_ext in '' $ac_executable_extensions; do
6626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627    ac_cv_prog_acx_pthread_config="yes"
6628    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632done
6633IFS=$as_save_IFS
6634
6635  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
6636fi
6637fi
6638acx_pthread_config=$ac_cv_prog_acx_pthread_config
6639if test -n "$acx_pthread_config"; then
6640  { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
6641$as_echo "$acx_pthread_config" >&6; }
6642else
6643  { $as_echo "$as_me:$LINENO: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647
6648		if test x"$acx_pthread_config" = xno; then continue; fi
6649		PTHREAD_CFLAGS="`pthread-config --cflags`"
6650		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6651		;;
6652
6653                *)
6654                { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
6655$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
6656                PTHREAD_LIBS="-l$flag"
6657                ;;
6658        esac
6659
6660        save_LIBS="$LIBS"
6661        save_CFLAGS="$CFLAGS"
6662        LIBS="$PTHREAD_LIBS $LIBS"
6663        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6664
6665        # Check for various functions.  We must include pthread.h,
6666        # since some functions may be macros.  (On the Sequent, we
6667        # need a special flag -Kthread to make this header compile.)
6668        # We check for pthread_join because it is in -lpthread on IRIX
6669        # while pthread_create is in libc.  We check for pthread_attr_init
6670        # due to DEC craziness with -lpthreads.  We check for
6671        # pthread_cleanup_push because it is one of the few pthread
6672        # functions on Solaris that doesn't have a non-functional libc stub.
6673        # We try pthread_create on general principles.
6674        cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h.  */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h.  */
6680#include <pthread.h>
6681int
6682main ()
6683{
6684pthread_t th; pthread_join(th, 0);
6685                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
6686                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
6687  ;
6688  return 0;
6689}
6690_ACEOF
6691rm -f conftest.$ac_objext conftest$ac_exeext
6692if { (ac_try="$ac_link"
6693case "(($ac_try" in
6694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695  *) ac_try_echo=$ac_try;;
6696esac
6697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6698$as_echo "$ac_try_echo") >&5
6699  (eval "$ac_link") 2>conftest.er1
6700  ac_status=$?
6701  grep -v '^ *+' conftest.er1 >conftest.err
6702  rm -f conftest.er1
6703  cat conftest.err >&5
6704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); } && {
6706	 test -z "$ac_c_werror_flag" ||
6707	 test ! -s conftest.err
6708       } && test -s conftest$ac_exeext && {
6709	 test "$cross_compiling" = yes ||
6710	 $as_test_x conftest$ac_exeext
6711       }; then
6712  acx_pthread_ok=yes
6713else
6714  $as_echo "$as_me: failed program was:" >&5
6715sed 's/^/| /' conftest.$ac_ext >&5
6716
6717
6718fi
6719
6720rm -rf conftest.dSYM
6721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6722      conftest$ac_exeext conftest.$ac_ext
6723
6724        LIBS="$save_LIBS"
6725        CFLAGS="$save_CFLAGS"
6726
6727        { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
6728$as_echo "$acx_pthread_ok" >&6; }
6729        if test "x$acx_pthread_ok" = xyes; then
6730                break;
6731        fi
6732
6733        PTHREAD_LIBS=""
6734        PTHREAD_CFLAGS=""
6735done
6736fi
6737
6738# Various other checks:
6739if test "x$acx_pthread_ok" = xyes; then
6740        save_LIBS="$LIBS"
6741        LIBS="$PTHREAD_LIBS $LIBS"
6742        save_CFLAGS="$CFLAGS"
6743        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6744
6745        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6746	{ $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
6747$as_echo_n "checking for joinable pthread attribute... " >&6; }
6748	attr_name=unknown
6749	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6750	    cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756#include <pthread.h>
6757int
6758main ()
6759{
6760int attr=$attr; return attr;
6761  ;
6762  return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext conftest$ac_exeext
6766if { (ac_try="$ac_link"
6767case "(($ac_try" in
6768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769  *) ac_try_echo=$ac_try;;
6770esac
6771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772$as_echo "$ac_try_echo") >&5
6773  (eval "$ac_link") 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } && {
6780	 test -z "$ac_c_werror_flag" ||
6781	 test ! -s conftest.err
6782       } && test -s conftest$ac_exeext && {
6783	 test "$cross_compiling" = yes ||
6784	 $as_test_x conftest$ac_exeext
6785       }; then
6786  attr_name=$attr; break
6787else
6788  $as_echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791
6792fi
6793
6794rm -rf conftest.dSYM
6795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6796      conftest$ac_exeext conftest.$ac_ext
6797	done
6798        { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
6799$as_echo "$attr_name" >&6; }
6800        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6801
6802cat >>confdefs.h <<_ACEOF
6803#define PTHREAD_CREATE_JOINABLE $attr_name
6804_ACEOF
6805
6806        fi
6807
6808        { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
6809$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6810        flag=no
6811        case "${host_cpu}-${host_os}" in
6812            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
6813            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
6814        esac
6815        { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
6816$as_echo "${flag}" >&6; }
6817        if test "x$flag" != xno; then
6818            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6819        fi
6820
6821        LIBS="$save_LIBS"
6822        CFLAGS="$save_CFLAGS"
6823
6824        # More AIX lossage: must compile with xlc_r or cc_r
6825	if test x"$GCC" != xyes; then
6826          for ac_prog in xlc_r cc_r
6827do
6828  # Extract the first word of "$ac_prog", so it can be a program name with args.
6829set dummy $ac_prog; ac_word=$2
6830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$PTHREAD_CC"; then
6836  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843  for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_PTHREAD_CC="$ac_prog"
6846    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6856if test -n "$PTHREAD_CC"; then
6857  { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
6858$as_echo "$PTHREAD_CC" >&6; }
6859else
6860  { $as_echo "$as_me:$LINENO: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864
6865  test -n "$PTHREAD_CC" && break
6866done
6867test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
6868
6869        else
6870          PTHREAD_CC=$CC
6871	fi
6872else
6873        PTHREAD_CC="$CC"
6874fi
6875
6876
6877
6878
6879
6880# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6881if test x"$acx_pthread_ok" = xyes; then
6882
6883cat >>confdefs.h <<\_ACEOF
6884#define HAVE_PTHREAD 1
6885_ACEOF
6886
6887        :
6888else
6889        acx_pthread_ok=no
6890
6891fi
6892ac_ext=c
6893ac_cpp='$CPP $CPPFLAGS'
6894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6896ac_compiler_gnu=$ac_cv_c_compiler_gnu
6897
6898
6899	LIBS="$LIBS $PTHREAD_LIBS"
6900	AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
6901	CC="$PTHREAD_CC"
6902fi
6903
6904echo
6905echo "Initializing Libtool:"
6906
6907case `pwd` in
6908  *\ * | *\	*)
6909    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6910$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6911esac
6912
6913
6914
6915macro_version='2.2.6'
6916macro_revision='1.3012'
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930ltmain="$ac_aux_dir/ltmain.sh"
6931
6932{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6933$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6934if test "${ac_cv_path_SED+set}" = set; then
6935  $as_echo_n "(cached) " >&6
6936else
6937            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6938     for ac_i in 1 2 3 4 5 6 7; do
6939       ac_script="$ac_script$as_nl$ac_script"
6940     done
6941     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6942     $as_unset ac_script || ac_script=
6943     if test -z "$SED"; then
6944  ac_path_SED_found=false
6945  # Loop through the user's path and test for each of PROGNAME-LIST
6946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951  for ac_prog in sed gsed; do
6952    for ac_exec_ext in '' $ac_executable_extensions; do
6953      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6954      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6955# Check for GNU ac_path_SED and select it if it is found.
6956  # Check for GNU $ac_path_SED
6957case `"$ac_path_SED" --version 2>&1` in
6958*GNU*)
6959  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6960*)
6961  ac_count=0
6962  $as_echo_n 0123456789 >"conftest.in"
6963  while :
6964  do
6965    cat "conftest.in" "conftest.in" >"conftest.tmp"
6966    mv "conftest.tmp" "conftest.in"
6967    cp "conftest.in" "conftest.nl"
6968    $as_echo '' >> "conftest.nl"
6969    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6971    ac_count=`expr $ac_count + 1`
6972    if test $ac_count -gt ${ac_path_SED_max-0}; then
6973      # Best one so far, save it but keep looking for a better one
6974      ac_cv_path_SED="$ac_path_SED"
6975      ac_path_SED_max=$ac_count
6976    fi
6977    # 10*(2^10) chars as input seems more than enough
6978    test $ac_count -gt 10 && break
6979  done
6980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6981esac
6982
6983      $ac_path_SED_found && break 3
6984    done
6985  done
6986done
6987IFS=$as_save_IFS
6988  if test -z "$ac_cv_path_SED"; then
6989    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6990$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6991   { (exit 1); exit 1; }; }
6992  fi
6993else
6994  ac_cv_path_SED=$SED
6995fi
6996
6997fi
6998{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6999$as_echo "$ac_cv_path_SED" >&6; }
7000 SED="$ac_cv_path_SED"
7001  rm -f conftest.sed
7002
7003test -z "$SED" && SED=sed
7004Xsed="$SED -e 1s/^X//"
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7017$as_echo_n "checking for fgrep... " >&6; }
7018if test "${ac_cv_path_FGREP+set}" = set; then
7019  $as_echo_n "(cached) " >&6
7020else
7021  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7022   then ac_cv_path_FGREP="$GREP -F"
7023   else
7024     if test -z "$FGREP"; then
7025  ac_path_FGREP_found=false
7026  # Loop through the user's path and test for each of PROGNAME-LIST
7027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032  for ac_prog in fgrep; do
7033    for ac_exec_ext in '' $ac_executable_extensions; do
7034      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7035      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7036# Check for GNU ac_path_FGREP and select it if it is found.
7037  # Check for GNU $ac_path_FGREP
7038case `"$ac_path_FGREP" --version 2>&1` in
7039*GNU*)
7040  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7041*)
7042  ac_count=0
7043  $as_echo_n 0123456789 >"conftest.in"
7044  while :
7045  do
7046    cat "conftest.in" "conftest.in" >"conftest.tmp"
7047    mv "conftest.tmp" "conftest.in"
7048    cp "conftest.in" "conftest.nl"
7049    $as_echo 'FGREP' >> "conftest.nl"
7050    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7051    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7052    ac_count=`expr $ac_count + 1`
7053    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7054      # Best one so far, save it but keep looking for a better one
7055      ac_cv_path_FGREP="$ac_path_FGREP"
7056      ac_path_FGREP_max=$ac_count
7057    fi
7058    # 10*(2^10) chars as input seems more than enough
7059    test $ac_count -gt 10 && break
7060  done
7061  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7062esac
7063
7064      $ac_path_FGREP_found && break 3
7065    done
7066  done
7067done
7068IFS=$as_save_IFS
7069  if test -z "$ac_cv_path_FGREP"; then
7070    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7071$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7072   { (exit 1); exit 1; }; }
7073  fi
7074else
7075  ac_cv_path_FGREP=$FGREP
7076fi
7077
7078   fi
7079fi
7080{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7081$as_echo "$ac_cv_path_FGREP" >&6; }
7082 FGREP="$ac_cv_path_FGREP"
7083
7084
7085test -z "$GREP" && GREP=grep
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105# Check whether --with-gnu-ld was given.
7106if test "${with_gnu_ld+set}" = set; then
7107  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7108else
7109  with_gnu_ld=no
7110fi
7111
7112ac_prog=ld
7113if test "$GCC" = yes; then
7114  # Check if gcc -print-prog-name=ld gives a path.
7115  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7116$as_echo_n "checking for ld used by $CC... " >&6; }
7117  case $host in
7118  *-*-mingw*)
7119    # gcc leaves a trailing carriage return which upsets mingw
7120    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7121  *)
7122    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7123  esac
7124  case $ac_prog in
7125    # Accept absolute paths.
7126    [\\/]* | ?:[\\/]*)
7127      re_direlt='/[^/][^/]*/\.\./'
7128      # Canonicalize the pathname of ld
7129      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7130      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7131	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7132      done
7133      test -z "$LD" && LD="$ac_prog"
7134      ;;
7135  "")
7136    # If it fails, then pretend we aren't using GCC.
7137    ac_prog=ld
7138    ;;
7139  *)
7140    # If it is relative, then search for the first ld in PATH.
7141    with_gnu_ld=unknown
7142    ;;
7143  esac
7144elif test "$with_gnu_ld" = yes; then
7145  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7146$as_echo_n "checking for GNU ld... " >&6; }
7147else
7148  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7149$as_echo_n "checking for non-GNU ld... " >&6; }
7150fi
7151if test "${lt_cv_path_LD+set}" = set; then
7152  $as_echo_n "(cached) " >&6
7153else
7154  if test -z "$LD"; then
7155  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7156  for ac_dir in $PATH; do
7157    IFS="$lt_save_ifs"
7158    test -z "$ac_dir" && ac_dir=.
7159    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7160      lt_cv_path_LD="$ac_dir/$ac_prog"
7161      # Check to see if the program is GNU ld.  I'd rather use --version,
7162      # but apparently some variants of GNU ld only accept -v.
7163      # Break only if it was the GNU/non-GNU ld that we prefer.
7164      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7165      *GNU* | *'with BFD'*)
7166	test "$with_gnu_ld" != no && break
7167	;;
7168      *)
7169	test "$with_gnu_ld" != yes && break
7170	;;
7171      esac
7172    fi
7173  done
7174  IFS="$lt_save_ifs"
7175else
7176  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7177fi
7178fi
7179
7180LD="$lt_cv_path_LD"
7181if test -n "$LD"; then
7182  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7183$as_echo "$LD" >&6; }
7184else
7185  { $as_echo "$as_me:$LINENO: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7189$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7190   { (exit 1); exit 1; }; }
7191{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7192$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7193if test "${lt_cv_prog_gnu_ld+set}" = set; then
7194  $as_echo_n "(cached) " >&6
7195else
7196  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7197case `$LD -v 2>&1 </dev/null` in
7198*GNU* | *'with BFD'*)
7199  lt_cv_prog_gnu_ld=yes
7200  ;;
7201*)
7202  lt_cv_prog_gnu_ld=no
7203  ;;
7204esac
7205fi
7206{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7207$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7208with_gnu_ld=$lt_cv_prog_gnu_ld
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7219$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7220if test "${lt_cv_path_NM+set}" = set; then
7221  $as_echo_n "(cached) " >&6
7222else
7223  if test -n "$NM"; then
7224  # Let the user override the test.
7225  lt_cv_path_NM="$NM"
7226else
7227  lt_nm_to_check="${ac_tool_prefix}nm"
7228  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7229    lt_nm_to_check="$lt_nm_to_check nm"
7230  fi
7231  for lt_tmp_nm in $lt_nm_to_check; do
7232    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7234      IFS="$lt_save_ifs"
7235      test -z "$ac_dir" && ac_dir=.
7236      tmp_nm="$ac_dir/$lt_tmp_nm"
7237      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7238	# Check to see if the nm accepts a BSD-compat flag.
7239	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7240	#   nm: unknown option "B" ignored
7241	# Tru64's nm complains that /dev/null is an invalid object file
7242	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7243	*/dev/null* | *'Invalid file or object type'*)
7244	  lt_cv_path_NM="$tmp_nm -B"
7245	  break
7246	  ;;
7247	*)
7248	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7249	  */dev/null*)
7250	    lt_cv_path_NM="$tmp_nm -p"
7251	    break
7252	    ;;
7253	  *)
7254	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7255	    continue # so that we can try to find one that supports BSD flags
7256	    ;;
7257	  esac
7258	  ;;
7259	esac
7260      fi
7261    done
7262    IFS="$lt_save_ifs"
7263  done
7264  : ${lt_cv_path_NM=no}
7265fi
7266fi
7267{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7268$as_echo "$lt_cv_path_NM" >&6; }
7269if test "$lt_cv_path_NM" != "no"; then
7270  NM="$lt_cv_path_NM"
7271else
7272  # Didn't find any BSD compatible name lister, look for dumpbin.
7273  if test -n "$ac_tool_prefix"; then
7274  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7275  do
7276    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7277set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$DUMPBIN"; then
7284  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291  for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7294    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303DUMPBIN=$ac_cv_prog_DUMPBIN
7304if test -n "$DUMPBIN"; then
7305  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7306$as_echo "$DUMPBIN" >&6; }
7307else
7308  { $as_echo "$as_me:$LINENO: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313    test -n "$DUMPBIN" && break
7314  done
7315fi
7316if test -z "$DUMPBIN"; then
7317  ac_ct_DUMPBIN=$DUMPBIN
7318  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7319do
7320  # Extract the first word of "$ac_prog", so it can be a program name with args.
7321set dummy $ac_prog; ac_word=$2
7322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7323$as_echo_n "checking for $ac_word... " >&6; }
7324if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7325  $as_echo_n "(cached) " >&6
7326else
7327  if test -n "$ac_ct_DUMPBIN"; then
7328  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333  IFS=$as_save_IFS
7334  test -z "$as_dir" && as_dir=.
7335  for ac_exec_ext in '' $ac_executable_extensions; do
7336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7338    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339    break 2
7340  fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345fi
7346fi
7347ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7348if test -n "$ac_ct_DUMPBIN"; then
7349  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7350$as_echo "$ac_ct_DUMPBIN" >&6; }
7351else
7352  { $as_echo "$as_me:$LINENO: result: no" >&5
7353$as_echo "no" >&6; }
7354fi
7355
7356
7357  test -n "$ac_ct_DUMPBIN" && break
7358done
7359
7360  if test "x$ac_ct_DUMPBIN" = x; then
7361    DUMPBIN=":"
7362  else
7363    case $cross_compiling:$ac_tool_warned in
7364yes:)
7365{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367ac_tool_warned=yes ;;
7368esac
7369    DUMPBIN=$ac_ct_DUMPBIN
7370  fi
7371fi
7372
7373
7374  if test "$DUMPBIN" != ":"; then
7375    NM="$DUMPBIN"
7376  fi
7377fi
7378test -z "$NM" && NM=nm
7379
7380
7381
7382
7383
7384
7385{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7386$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7387if test "${lt_cv_nm_interface+set}" = set; then
7388  $as_echo_n "(cached) " >&6
7389else
7390  lt_cv_nm_interface="BSD nm"
7391  echo "int some_variable = 0;" > conftest.$ac_ext
7392  (eval echo "\"\$as_me:7392: $ac_compile\"" >&5)
7393  (eval "$ac_compile" 2>conftest.err)
7394  cat conftest.err >&5
7395  (eval echo "\"\$as_me:7395: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7396  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7397  cat conftest.err >&5
7398  (eval echo "\"\$as_me:7398: output\"" >&5)
7399  cat conftest.out >&5
7400  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7401    lt_cv_nm_interface="MS dumpbin"
7402  fi
7403  rm -f conftest*
7404fi
7405{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7406$as_echo "$lt_cv_nm_interface" >&6; }
7407
7408# find the maximum length of command line arguments
7409{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7410$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7411if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7412  $as_echo_n "(cached) " >&6
7413else
7414    i=0
7415  teststring="ABCD"
7416
7417  case $build_os in
7418  msdosdjgpp*)
7419    # On DJGPP, this test can blow up pretty badly due to problems in libc
7420    # (any single argument exceeding 2000 bytes causes a buffer overrun
7421    # during glob expansion).  Even if it were fixed, the result of this
7422    # check would be larger than it should be.
7423    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7424    ;;
7425
7426  gnu*)
7427    # Under GNU Hurd, this test is not required because there is
7428    # no limit to the length of command line arguments.
7429    # Libtool will interpret -1 as no limit whatsoever
7430    lt_cv_sys_max_cmd_len=-1;
7431    ;;
7432
7433  cygwin* | mingw* | cegcc*)
7434    # On Win9x/ME, this test blows up -- it succeeds, but takes
7435    # about 5 minutes as the teststring grows exponentially.
7436    # Worse, since 9x/ME are not pre-emptively multitasking,
7437    # you end up with a "frozen" computer, even though with patience
7438    # the test eventually succeeds (with a max line length of 256k).
7439    # Instead, let's just punt: use the minimum linelength reported by
7440    # all of the supported platforms: 8192 (on NT/2K/XP).
7441    lt_cv_sys_max_cmd_len=8192;
7442    ;;
7443
7444  amigaos*)
7445    # On AmigaOS with pdksh, this test takes hours, literally.
7446    # So we just punt and use a minimum line length of 8192.
7447    lt_cv_sys_max_cmd_len=8192;
7448    ;;
7449
7450  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7451    # This has been around since 386BSD, at least.  Likely further.
7452    if test -x /sbin/sysctl; then
7453      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7454    elif test -x /usr/sbin/sysctl; then
7455      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7456    else
7457      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7458    fi
7459    # And add a safety zone
7460    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7461    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7462    ;;
7463
7464  interix*)
7465    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7466    lt_cv_sys_max_cmd_len=196608
7467    ;;
7468
7469  osf*)
7470    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7471    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7472    # nice to cause kernel panics so lets avoid the loop below.
7473    # First set a reasonable default.
7474    lt_cv_sys_max_cmd_len=16384
7475    #
7476    if test -x /sbin/sysconfig; then
7477      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7478        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7479      esac
7480    fi
7481    ;;
7482  sco3.2v5*)
7483    lt_cv_sys_max_cmd_len=102400
7484    ;;
7485  sysv5* | sco5v6* | sysv4.2uw2*)
7486    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7487    if test -n "$kargmax"; then
7488      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7489    else
7490      lt_cv_sys_max_cmd_len=32768
7491    fi
7492    ;;
7493  *)
7494    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7495    if test -n "$lt_cv_sys_max_cmd_len"; then
7496      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7497      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7498    else
7499      # Make teststring a little bigger before we do anything with it.
7500      # a 1K string should be a reasonable start.
7501      for i in 1 2 3 4 5 6 7 8 ; do
7502        teststring=$teststring$teststring
7503      done
7504      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7505      # If test is not a shell built-in, we'll probably end up computing a
7506      # maximum length that is only half of the actual maximum length, but
7507      # we can't tell.
7508      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7509	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7510	      test $i != 17 # 1/2 MB should be enough
7511      do
7512        i=`expr $i + 1`
7513        teststring=$teststring$teststring
7514      done
7515      # Only check the string length outside the loop.
7516      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7517      teststring=
7518      # Add a significant safety factor because C++ compilers can tack on
7519      # massive amounts of additional arguments before passing them to the
7520      # linker.  It appears as though 1/2 is a usable value.
7521      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7522    fi
7523    ;;
7524  esac
7525
7526fi
7527
7528if test -n $lt_cv_sys_max_cmd_len ; then
7529  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7530$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7531else
7532  { $as_echo "$as_me:$LINENO: result: none" >&5
7533$as_echo "none" >&6; }
7534fi
7535max_cmd_len=$lt_cv_sys_max_cmd_len
7536
7537
7538
7539
7540
7541
7542: ${CP="cp -f"}
7543: ${MV="mv -f"}
7544: ${RM="rm -f"}
7545
7546{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7547$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7548# Try some XSI features
7549xsi_shell=no
7550( _lt_dummy="a/b/c"
7551  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7552      = c,a/b,, \
7553    && eval 'test $(( 1 + 1 )) -eq 2 \
7554    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7555  && xsi_shell=yes
7556{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7557$as_echo "$xsi_shell" >&6; }
7558
7559
7560{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7561$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7562lt_shell_append=no
7563( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7564    >/dev/null 2>&1 \
7565  && lt_shell_append=yes
7566{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7567$as_echo "$lt_shell_append" >&6; }
7568
7569
7570if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7571  lt_unset=unset
7572else
7573  lt_unset=false
7574fi
7575
7576
7577
7578
7579
7580# test EBCDIC or ASCII
7581case `echo X|tr X '\101'` in
7582 A) # ASCII based system
7583    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7584  lt_SP2NL='tr \040 \012'
7585  lt_NL2SP='tr \015\012 \040\040'
7586  ;;
7587 *) # EBCDIC based system
7588  lt_SP2NL='tr \100 \n'
7589  lt_NL2SP='tr \r\n \100\100'
7590  ;;
7591esac
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7602$as_echo_n "checking for $LD option to reload object files... " >&6; }
7603if test "${lt_cv_ld_reload_flag+set}" = set; then
7604  $as_echo_n "(cached) " >&6
7605else
7606  lt_cv_ld_reload_flag='-r'
7607fi
7608{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7609$as_echo "$lt_cv_ld_reload_flag" >&6; }
7610reload_flag=$lt_cv_ld_reload_flag
7611case $reload_flag in
7612"" | " "*) ;;
7613*) reload_flag=" $reload_flag" ;;
7614esac
7615reload_cmds='$LD$reload_flag -o $output$reload_objs'
7616case $host_os in
7617  darwin*)
7618    if test "$GCC" = yes; then
7619      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7620    else
7621      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7622    fi
7623    ;;
7624esac
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634if test -n "$ac_tool_prefix"; then
7635  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7636set dummy ${ac_tool_prefix}objdump; ac_word=$2
7637{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7640  $as_echo_n "(cached) " >&6
7641else
7642  if test -n "$OBJDUMP"; then
7643  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648  IFS=$as_save_IFS
7649  test -z "$as_dir" && as_dir=.
7650  for ac_exec_ext in '' $ac_executable_extensions; do
7651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7653    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654    break 2
7655  fi
7656done
7657done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662OBJDUMP=$ac_cv_prog_OBJDUMP
7663if test -n "$OBJDUMP"; then
7664  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7665$as_echo "$OBJDUMP" >&6; }
7666else
7667  { $as_echo "$as_me:$LINENO: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671
7672fi
7673if test -z "$ac_cv_prog_OBJDUMP"; then
7674  ac_ct_OBJDUMP=$OBJDUMP
7675  # Extract the first word of "objdump", so it can be a program name with args.
7676set dummy objdump; ac_word=$2
7677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7680  $as_echo_n "(cached) " >&6
7681else
7682  if test -n "$ac_ct_OBJDUMP"; then
7683  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7684else
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688  IFS=$as_save_IFS
7689  test -z "$as_dir" && as_dir=.
7690  for ac_exec_ext in '' $ac_executable_extensions; do
7691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7693    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694    break 2
7695  fi
7696done
7697done
7698IFS=$as_save_IFS
7699
7700fi
7701fi
7702ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7703if test -n "$ac_ct_OBJDUMP"; then
7704  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7705$as_echo "$ac_ct_OBJDUMP" >&6; }
7706else
7707  { $as_echo "$as_me:$LINENO: result: no" >&5
7708$as_echo "no" >&6; }
7709fi
7710
7711  if test "x$ac_ct_OBJDUMP" = x; then
7712    OBJDUMP="false"
7713  else
7714    case $cross_compiling:$ac_tool_warned in
7715yes:)
7716{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718ac_tool_warned=yes ;;
7719esac
7720    OBJDUMP=$ac_ct_OBJDUMP
7721  fi
7722else
7723  OBJDUMP="$ac_cv_prog_OBJDUMP"
7724fi
7725
7726test -z "$OBJDUMP" && OBJDUMP=objdump
7727
7728
7729
7730
7731
7732
7733{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7734$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7735if test "${lt_cv_deplibs_check_method+set}" = set; then
7736  $as_echo_n "(cached) " >&6
7737else
7738  lt_cv_file_magic_cmd='$MAGIC_CMD'
7739lt_cv_file_magic_test_file=
7740lt_cv_deplibs_check_method='unknown'
7741# Need to set the preceding variable on all platforms that support
7742# interlibrary dependencies.
7743# 'none' -- dependencies not supported.
7744# `unknown' -- same as none, but documents that we really don't know.
7745# 'pass_all' -- all dependencies passed with no checks.
7746# 'test_compile' -- check by making test program.
7747# 'file_magic [[regex]]' -- check by looking for files in library path
7748# which responds to the $file_magic_cmd with a given extended regex.
7749# If you have `file' or equivalent on your system and you're not sure
7750# whether `pass_all' will *always* work, you probably want this one.
7751
7752case $host_os in
7753aix[4-9]*)
7754  lt_cv_deplibs_check_method=pass_all
7755  ;;
7756
7757beos*)
7758  lt_cv_deplibs_check_method=pass_all
7759  ;;
7760
7761bsdi[45]*)
7762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7763  lt_cv_file_magic_cmd='/usr/bin/file -L'
7764  lt_cv_file_magic_test_file=/shlib/libc.so
7765  ;;
7766
7767cygwin*)
7768  # func_win32_libid is a shell function defined in ltmain.sh
7769  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7770  lt_cv_file_magic_cmd='func_win32_libid'
7771  ;;
7772
7773mingw* | pw32*)
7774  # Base MSYS/MinGW do not provide the 'file' command needed by
7775  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7776  # unless we find 'file', for example because we are cross-compiling.
7777  if ( file / ) >/dev/null 2>&1; then
7778    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7779    lt_cv_file_magic_cmd='func_win32_libid'
7780  else
7781    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7782    lt_cv_file_magic_cmd='$OBJDUMP -f'
7783  fi
7784  ;;
7785
7786cegcc)
7787  # use the weaker test based on 'objdump'. See mingw*.
7788  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7789  lt_cv_file_magic_cmd='$OBJDUMP -f'
7790  ;;
7791
7792darwin* | rhapsody*)
7793  lt_cv_deplibs_check_method=pass_all
7794  ;;
7795
7796freebsd* | dragonfly*)
7797  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7798    case $host_cpu in
7799    i*86 )
7800      # Not sure whether the presence of OpenBSD here was a mistake.
7801      # Let's accept both of them until this is cleared up.
7802      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7803      lt_cv_file_magic_cmd=/usr/bin/file
7804      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7805      ;;
7806    esac
7807  else
7808    lt_cv_deplibs_check_method=pass_all
7809  fi
7810  ;;
7811
7812gnu*)
7813  lt_cv_deplibs_check_method=pass_all
7814  ;;
7815
7816hpux10.20* | hpux11*)
7817  lt_cv_file_magic_cmd=/usr/bin/file
7818  case $host_cpu in
7819  ia64*)
7820    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7821    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7822    ;;
7823  hppa*64*)
7824    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]'
7825    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7826    ;;
7827  *)
7828    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7829    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7830    ;;
7831  esac
7832  ;;
7833
7834interix[3-9]*)
7835  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7836  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7837  ;;
7838
7839irix5* | irix6* | nonstopux*)
7840  case $LD in
7841  *-32|*"-32 ") libmagic=32-bit;;
7842  *-n32|*"-n32 ") libmagic=N32;;
7843  *-64|*"-64 ") libmagic=64-bit;;
7844  *) libmagic=never-match;;
7845  esac
7846  lt_cv_deplibs_check_method=pass_all
7847  ;;
7848
7849# This must be Linux ELF.
7850linux* | k*bsd*-gnu)
7851  lt_cv_deplibs_check_method=pass_all
7852  ;;
7853
7854netbsd*)
7855  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7856    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7857  else
7858    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7859  fi
7860  ;;
7861
7862newos6*)
7863  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7864  lt_cv_file_magic_cmd=/usr/bin/file
7865  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7866  ;;
7867
7868*nto* | *qnx*)
7869  lt_cv_deplibs_check_method=pass_all
7870  ;;
7871
7872openbsd*)
7873  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7875  else
7876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7877  fi
7878  ;;
7879
7880osf3* | osf4* | osf5*)
7881  lt_cv_deplibs_check_method=pass_all
7882  ;;
7883
7884rdos*)
7885  lt_cv_deplibs_check_method=pass_all
7886  ;;
7887
7888solaris*)
7889  lt_cv_deplibs_check_method=pass_all
7890  ;;
7891
7892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7893  lt_cv_deplibs_check_method=pass_all
7894  ;;
7895
7896sysv4 | sysv4.3*)
7897  case $host_vendor in
7898  motorola)
7899    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]'
7900    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7901    ;;
7902  ncr)
7903    lt_cv_deplibs_check_method=pass_all
7904    ;;
7905  sequent)
7906    lt_cv_file_magic_cmd='/bin/file'
7907    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7908    ;;
7909  sni)
7910    lt_cv_file_magic_cmd='/bin/file'
7911    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7912    lt_cv_file_magic_test_file=/lib/libc.so
7913    ;;
7914  siemens)
7915    lt_cv_deplibs_check_method=pass_all
7916    ;;
7917  pc)
7918    lt_cv_deplibs_check_method=pass_all
7919    ;;
7920  esac
7921  ;;
7922
7923tpf*)
7924  lt_cv_deplibs_check_method=pass_all
7925  ;;
7926esac
7927
7928fi
7929{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7930$as_echo "$lt_cv_deplibs_check_method" >&6; }
7931file_magic_cmd=$lt_cv_file_magic_cmd
7932deplibs_check_method=$lt_cv_deplibs_check_method
7933test -z "$deplibs_check_method" && deplibs_check_method=unknown
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946if test -n "$ac_tool_prefix"; then
7947  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7948set dummy ${ac_tool_prefix}ar; ac_word=$2
7949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if test "${ac_cv_prog_AR+set}" = set; then
7952  $as_echo_n "(cached) " >&6
7953else
7954  if test -n "$AR"; then
7955  ac_cv_prog_AR="$AR" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960  IFS=$as_save_IFS
7961  test -z "$as_dir" && as_dir=.
7962  for ac_exec_ext in '' $ac_executable_extensions; do
7963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964    ac_cv_prog_AR="${ac_tool_prefix}ar"
7965    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966    break 2
7967  fi
7968done
7969done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974AR=$ac_cv_prog_AR
7975if test -n "$AR"; then
7976  { $as_echo "$as_me:$LINENO: result: $AR" >&5
7977$as_echo "$AR" >&6; }
7978else
7979  { $as_echo "$as_me:$LINENO: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983
7984fi
7985if test -z "$ac_cv_prog_AR"; then
7986  ac_ct_AR=$AR
7987  # Extract the first word of "ar", so it can be a program name with args.
7988set dummy ar; ac_word=$2
7989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
7991if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7992  $as_echo_n "(cached) " >&6
7993else
7994  if test -n "$ac_ct_AR"; then
7995  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000  IFS=$as_save_IFS
8001  test -z "$as_dir" && as_dir=.
8002  for ac_exec_ext in '' $ac_executable_extensions; do
8003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004    ac_cv_prog_ac_ct_AR="ar"
8005    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006    break 2
8007  fi
8008done
8009done
8010IFS=$as_save_IFS
8011
8012fi
8013fi
8014ac_ct_AR=$ac_cv_prog_ac_ct_AR
8015if test -n "$ac_ct_AR"; then
8016  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8017$as_echo "$ac_ct_AR" >&6; }
8018else
8019  { $as_echo "$as_me:$LINENO: result: no" >&5
8020$as_echo "no" >&6; }
8021fi
8022
8023  if test "x$ac_ct_AR" = x; then
8024    AR="false"
8025  else
8026    case $cross_compiling:$ac_tool_warned in
8027yes:)
8028{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030ac_tool_warned=yes ;;
8031esac
8032    AR=$ac_ct_AR
8033  fi
8034else
8035  AR="$ac_cv_prog_AR"
8036fi
8037
8038test -z "$AR" && AR=ar
8039test -z "$AR_FLAGS" && AR_FLAGS=cru
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051if test -n "$ac_tool_prefix"; then
8052  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8053set dummy ${ac_tool_prefix}strip; ac_word=$2
8054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
8056if test "${ac_cv_prog_STRIP+set}" = set; then
8057  $as_echo_n "(cached) " >&6
8058else
8059  if test -n "$STRIP"; then
8060  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065  IFS=$as_save_IFS
8066  test -z "$as_dir" && as_dir=.
8067  for ac_exec_ext in '' $ac_executable_extensions; do
8068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8070    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071    break 2
8072  fi
8073done
8074done
8075IFS=$as_save_IFS
8076
8077fi
8078fi
8079STRIP=$ac_cv_prog_STRIP
8080if test -n "$STRIP"; then
8081  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8082$as_echo "$STRIP" >&6; }
8083else
8084  { $as_echo "$as_me:$LINENO: result: no" >&5
8085$as_echo "no" >&6; }
8086fi
8087
8088
8089fi
8090if test -z "$ac_cv_prog_STRIP"; then
8091  ac_ct_STRIP=$STRIP
8092  # Extract the first word of "strip", so it can be a program name with args.
8093set dummy strip; ac_word=$2
8094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8095$as_echo_n "checking for $ac_word... " >&6; }
8096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8097  $as_echo_n "(cached) " >&6
8098else
8099  if test -n "$ac_ct_STRIP"; then
8100  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105  IFS=$as_save_IFS
8106  test -z "$as_dir" && as_dir=.
8107  for ac_exec_ext in '' $ac_executable_extensions; do
8108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8109    ac_cv_prog_ac_ct_STRIP="strip"
8110    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111    break 2
8112  fi
8113done
8114done
8115IFS=$as_save_IFS
8116
8117fi
8118fi
8119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8120if test -n "$ac_ct_STRIP"; then
8121  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8122$as_echo "$ac_ct_STRIP" >&6; }
8123else
8124  { $as_echo "$as_me:$LINENO: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127
8128  if test "x$ac_ct_STRIP" = x; then
8129    STRIP=":"
8130  else
8131    case $cross_compiling:$ac_tool_warned in
8132yes:)
8133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135ac_tool_warned=yes ;;
8136esac
8137    STRIP=$ac_ct_STRIP
8138  fi
8139else
8140  STRIP="$ac_cv_prog_STRIP"
8141fi
8142
8143test -z "$STRIP" && STRIP=:
8144
8145
8146
8147
8148
8149
8150if test -n "$ac_tool_prefix"; then
8151  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8152set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8154$as_echo_n "checking for $ac_word... " >&6; }
8155if test "${ac_cv_prog_RANLIB+set}" = set; then
8156  $as_echo_n "(cached) " >&6
8157else
8158  if test -n "$RANLIB"; then
8159  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166  for ac_exec_ext in '' $ac_executable_extensions; do
8167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8169    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173done
8174IFS=$as_save_IFS
8175
8176fi
8177fi
8178RANLIB=$ac_cv_prog_RANLIB
8179if test -n "$RANLIB"; then
8180  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8181$as_echo "$RANLIB" >&6; }
8182else
8183  { $as_echo "$as_me:$LINENO: result: no" >&5
8184$as_echo "no" >&6; }
8185fi
8186
8187
8188fi
8189if test -z "$ac_cv_prog_RANLIB"; then
8190  ac_ct_RANLIB=$RANLIB
8191  # Extract the first word of "ranlib", so it can be a program name with args.
8192set dummy ranlib; ac_word=$2
8193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8194$as_echo_n "checking for $ac_word... " >&6; }
8195if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8196  $as_echo_n "(cached) " >&6
8197else
8198  if test -n "$ac_ct_RANLIB"; then
8199  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204  IFS=$as_save_IFS
8205  test -z "$as_dir" && as_dir=.
8206  for ac_exec_ext in '' $ac_executable_extensions; do
8207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208    ac_cv_prog_ac_ct_RANLIB="ranlib"
8209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210    break 2
8211  fi
8212done
8213done
8214IFS=$as_save_IFS
8215
8216fi
8217fi
8218ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8219if test -n "$ac_ct_RANLIB"; then
8220  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8221$as_echo "$ac_ct_RANLIB" >&6; }
8222else
8223  { $as_echo "$as_me:$LINENO: result: no" >&5
8224$as_echo "no" >&6; }
8225fi
8226
8227  if test "x$ac_ct_RANLIB" = x; then
8228    RANLIB=":"
8229  else
8230    case $cross_compiling:$ac_tool_warned in
8231yes:)
8232{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234ac_tool_warned=yes ;;
8235esac
8236    RANLIB=$ac_ct_RANLIB
8237  fi
8238else
8239  RANLIB="$ac_cv_prog_RANLIB"
8240fi
8241
8242test -z "$RANLIB" && RANLIB=:
8243
8244
8245
8246
8247
8248
8249# Determine commands to create old-style static archives.
8250old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8251old_postinstall_cmds='chmod 644 $oldlib'
8252old_postuninstall_cmds=
8253
8254if test -n "$RANLIB"; then
8255  case $host_os in
8256  openbsd*)
8257    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8258    ;;
8259  *)
8260    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8261    ;;
8262  esac
8263  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8264fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299# If no C compiler was specified, use CC.
8300LTCC=${LTCC-"$CC"}
8301
8302# If no C compiler flags were specified, use CFLAGS.
8303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8304
8305# Allow CC to be a program name with arguments.
8306compiler=$CC
8307
8308
8309# Check for command to grab the raw symbol name followed by C symbol from nm.
8310{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8311$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8312if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8313  $as_echo_n "(cached) " >&6
8314else
8315
8316# These are sane defaults that work on at least a few old systems.
8317# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8318
8319# Character class describing NM global symbol codes.
8320symcode='[BCDEGRST]'
8321
8322# Regexp to match symbols that can be accessed directly from C.
8323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8324
8325# Define system-specific variables.
8326case $host_os in
8327aix*)
8328  symcode='[BCDT]'
8329  ;;
8330cygwin* | mingw* | pw32* | cegcc*)
8331  symcode='[ABCDGISTW]'
8332  ;;
8333hpux*)
8334  if test "$host_cpu" = ia64; then
8335    symcode='[ABCDEGRST]'
8336  fi
8337  ;;
8338irix* | nonstopux*)
8339  symcode='[BCDEGRST]'
8340  ;;
8341osf*)
8342  symcode='[BCDEGQRST]'
8343  ;;
8344solaris*)
8345  symcode='[BDRT]'
8346  ;;
8347sco3.2v5*)
8348  symcode='[DT]'
8349  ;;
8350sysv4.2uw2*)
8351  symcode='[DT]'
8352  ;;
8353sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354  symcode='[ABDT]'
8355  ;;
8356sysv4)
8357  symcode='[DFNSTU]'
8358  ;;
8359esac
8360
8361# If we're using GNU nm, then use its standard symbol codes.
8362case `$NM -V 2>&1` in
8363*GNU* | *'with BFD'*)
8364  symcode='[ABCDGIRSTW]' ;;
8365esac
8366
8367# Transform an extracted symbol line into a proper C declaration.
8368# Some systems (esp. on ia64) link data and code symbols differently,
8369# so use this general approach.
8370lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8371
8372# Transform an extracted symbol line into symbol name and symbol address
8373lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8374lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8375
8376# Handle CRLF in mingw tool chain
8377opt_cr=
8378case $build_os in
8379mingw*)
8380  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8381  ;;
8382esac
8383
8384# Try without a prefix underscore, then with it.
8385for ac_symprfx in "" "_"; do
8386
8387  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8388  symxfrm="\\1 $ac_symprfx\\2 \\2"
8389
8390  # Write the raw and C identifiers.
8391  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8392    # Fake it for dumpbin and say T for any non-static function
8393    # and D for any global variable.
8394    # Also find C++ and __fastcall symbols from MSVC++,
8395    # which start with @ or ?.
8396    lt_cv_sys_global_symbol_pipe="$AWK '"\
8397"     {last_section=section; section=\$ 3};"\
8398"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8399"     \$ 0!~/External *\|/{next};"\
8400"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8401"     {if(hide[section]) next};"\
8402"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8403"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8404"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8405"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8406"     ' prfx=^$ac_symprfx"
8407  else
8408    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8409  fi
8410
8411  # Check to see that the pipe works correctly.
8412  pipe_works=no
8413
8414  rm -f conftest*
8415  cat > conftest.$ac_ext <<_LT_EOF
8416#ifdef __cplusplus
8417extern "C" {
8418#endif
8419char nm_test_var;
8420void nm_test_func(void);
8421void nm_test_func(void){}
8422#ifdef __cplusplus
8423}
8424#endif
8425int main(){nm_test_var='a';nm_test_func();return(0);}
8426_LT_EOF
8427
8428  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429  (eval $ac_compile) 2>&5
8430  ac_status=$?
8431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); }; then
8433    # Now try to grab the symbols.
8434    nlist=conftest.nm
8435    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8436  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8437  ac_status=$?
8438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439  (exit $ac_status); } && test -s "$nlist"; then
8440      # Try sorting and uniquifying the output.
8441      if sort "$nlist" | uniq > "$nlist"T; then
8442	mv -f "$nlist"T "$nlist"
8443      else
8444	rm -f "$nlist"T
8445      fi
8446
8447      # Make sure that we snagged all the symbols we need.
8448      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8449	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8450	  cat <<_LT_EOF > conftest.$ac_ext
8451#ifdef __cplusplus
8452extern "C" {
8453#endif
8454
8455_LT_EOF
8456	  # Now generate the symbol file.
8457	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8458
8459	  cat <<_LT_EOF >> conftest.$ac_ext
8460
8461/* The mapping between symbol names and symbols.  */
8462const struct {
8463  const char *name;
8464  void       *address;
8465}
8466lt__PROGRAM__LTX_preloaded_symbols[] =
8467{
8468  { "@PROGRAM@", (void *) 0 },
8469_LT_EOF
8470	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8471	  cat <<\_LT_EOF >> conftest.$ac_ext
8472  {0, (void *) 0}
8473};
8474
8475/* This works around a problem in FreeBSD linker */
8476#ifdef FREEBSD_WORKAROUND
8477static const void *lt_preloaded_setup() {
8478  return lt__PROGRAM__LTX_preloaded_symbols;
8479}
8480#endif
8481
8482#ifdef __cplusplus
8483}
8484#endif
8485_LT_EOF
8486	  # Now try linking the two files.
8487	  mv conftest.$ac_objext conftstm.$ac_objext
8488	  lt_save_LIBS="$LIBS"
8489	  lt_save_CFLAGS="$CFLAGS"
8490	  LIBS="conftstm.$ac_objext"
8491	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8492	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493  (eval $ac_link) 2>&5
8494  ac_status=$?
8495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8497	    pipe_works=yes
8498	  fi
8499	  LIBS="$lt_save_LIBS"
8500	  CFLAGS="$lt_save_CFLAGS"
8501	else
8502	  echo "cannot find nm_test_func in $nlist" >&5
8503	fi
8504      else
8505	echo "cannot find nm_test_var in $nlist" >&5
8506      fi
8507    else
8508      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8509    fi
8510  else
8511    echo "$progname: failed program was:" >&5
8512    cat conftest.$ac_ext >&5
8513  fi
8514  rm -rf conftest* conftst*
8515
8516  # Do not use the global_symbol_pipe unless it works.
8517  if test "$pipe_works" = yes; then
8518    break
8519  else
8520    lt_cv_sys_global_symbol_pipe=
8521  fi
8522done
8523
8524fi
8525
8526if test -z "$lt_cv_sys_global_symbol_pipe"; then
8527  lt_cv_sys_global_symbol_to_cdecl=
8528fi
8529if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8530  { $as_echo "$as_me:$LINENO: result: failed" >&5
8531$as_echo "failed" >&6; }
8532else
8533  { $as_echo "$as_me:$LINENO: result: ok" >&5
8534$as_echo "ok" >&6; }
8535fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558# Check whether --enable-libtool-lock was given.
8559if test "${enable_libtool_lock+set}" = set; then
8560  enableval=$enable_libtool_lock;
8561fi
8562
8563test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8564
8565# Some flags need to be propagated to the compiler or linker for good
8566# libtool support.
8567case $host in
8568ia64-*-hpux*)
8569  # Find out which ABI we are using.
8570  echo 'int i;' > conftest.$ac_ext
8571  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572  (eval $ac_compile) 2>&5
8573  ac_status=$?
8574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; then
8576    case `/usr/bin/file conftest.$ac_objext` in
8577      *ELF-32*)
8578	HPUX_IA64_MODE="32"
8579	;;
8580      *ELF-64*)
8581	HPUX_IA64_MODE="64"
8582	;;
8583    esac
8584  fi
8585  rm -rf conftest*
8586  ;;
8587*-*-irix6*)
8588  # Find out which ABI we are using.
8589  echo '#line 8589 "configure"' > conftest.$ac_ext
8590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591  (eval $ac_compile) 2>&5
8592  ac_status=$?
8593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594  (exit $ac_status); }; then
8595    if test "$lt_cv_prog_gnu_ld" = yes; then
8596      case `/usr/bin/file conftest.$ac_objext` in
8597	*32-bit*)
8598	  LD="${LD-ld} -melf32bsmip"
8599	  ;;
8600	*N32*)
8601	  LD="${LD-ld} -melf32bmipn32"
8602	  ;;
8603	*64-bit*)
8604	  LD="${LD-ld} -melf64bmip"
8605	;;
8606      esac
8607    else
8608      case `/usr/bin/file conftest.$ac_objext` in
8609	*32-bit*)
8610	  LD="${LD-ld} -32"
8611	  ;;
8612	*N32*)
8613	  LD="${LD-ld} -n32"
8614	  ;;
8615	*64-bit*)
8616	  LD="${LD-ld} -64"
8617	  ;;
8618      esac
8619    fi
8620  fi
8621  rm -rf conftest*
8622  ;;
8623
8624x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8625s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8626  # Find out which ABI we are using.
8627  echo 'int i;' > conftest.$ac_ext
8628  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629  (eval $ac_compile) 2>&5
8630  ac_status=$?
8631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); }; then
8633    case `/usr/bin/file conftest.o` in
8634      *32-bit*)
8635	case $host in
8636	  x86_64-*kfreebsd*-gnu)
8637	    LD="${LD-ld} -m elf_i386_fbsd"
8638	    ;;
8639	  x86_64-*linux*)
8640	    LD="${LD-ld} -m elf_i386"
8641	    ;;
8642	  ppc64-*linux*|powerpc64-*linux*)
8643	    LD="${LD-ld} -m elf32ppclinux"
8644	    ;;
8645	  s390x-*linux*)
8646	    LD="${LD-ld} -m elf_s390"
8647	    ;;
8648	  sparc64-*linux*)
8649	    LD="${LD-ld} -m elf32_sparc"
8650	    ;;
8651	esac
8652	;;
8653      *64-bit*)
8654	case $host in
8655	  x86_64-*kfreebsd*-gnu)
8656	    LD="${LD-ld} -m elf_x86_64_fbsd"
8657	    ;;
8658	  x86_64-*linux*)
8659	    LD="${LD-ld} -m elf_x86_64"
8660	    ;;
8661	  ppc*-*linux*|powerpc*-*linux*)
8662	    LD="${LD-ld} -m elf64ppc"
8663	    ;;
8664	  s390*-*linux*|s390*-*tpf*)
8665	    LD="${LD-ld} -m elf64_s390"
8666	    ;;
8667	  sparc*-*linux*)
8668	    LD="${LD-ld} -m elf64_sparc"
8669	    ;;
8670	esac
8671	;;
8672    esac
8673  fi
8674  rm -rf conftest*
8675  ;;
8676
8677*-*-sco3.2v5*)
8678  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8679  SAVE_CFLAGS="$CFLAGS"
8680  CFLAGS="$CFLAGS -belf"
8681  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8682$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8683if test "${lt_cv_cc_needs_belf+set}" = set; then
8684  $as_echo_n "(cached) " >&6
8685else
8686  ac_ext=c
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692     cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h.  */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h.  */
8698
8699int
8700main ()
8701{
8702
8703  ;
8704  return 0;
8705}
8706_ACEOF
8707rm -f conftest.$ac_objext conftest$ac_exeext
8708if { (ac_try="$ac_link"
8709case "(($ac_try" in
8710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711  *) ac_try_echo=$ac_try;;
8712esac
8713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714$as_echo "$ac_try_echo") >&5
8715  (eval "$ac_link") 2>conftest.er1
8716  ac_status=$?
8717  grep -v '^ *+' conftest.er1 >conftest.err
8718  rm -f conftest.er1
8719  cat conftest.err >&5
8720  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721  (exit $ac_status); } && {
8722	 test -z "$ac_c_werror_flag" ||
8723	 test ! -s conftest.err
8724       } && test -s conftest$ac_exeext && {
8725	 test "$cross_compiling" = yes ||
8726	 $as_test_x conftest$ac_exeext
8727       }; then
8728  lt_cv_cc_needs_belf=yes
8729else
8730  $as_echo "$as_me: failed program was:" >&5
8731sed 's/^/| /' conftest.$ac_ext >&5
8732
8733	lt_cv_cc_needs_belf=no
8734fi
8735
8736rm -rf conftest.dSYM
8737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8738      conftest$ac_exeext conftest.$ac_ext
8739     ac_ext=c
8740ac_cpp='$CPP $CPPFLAGS'
8741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743ac_compiler_gnu=$ac_cv_c_compiler_gnu
8744
8745fi
8746{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8747$as_echo "$lt_cv_cc_needs_belf" >&6; }
8748  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8749    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8750    CFLAGS="$SAVE_CFLAGS"
8751  fi
8752  ;;
8753sparc*-*solaris*)
8754  # Find out which ABI we are using.
8755  echo 'int i;' > conftest.$ac_ext
8756  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757  (eval $ac_compile) 2>&5
8758  ac_status=$?
8759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); }; then
8761    case `/usr/bin/file conftest.o` in
8762    *64-bit*)
8763      case $lt_cv_prog_gnu_ld in
8764      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8765      *)
8766	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8767	  LD="${LD-ld} -64"
8768	fi
8769	;;
8770      esac
8771      ;;
8772    esac
8773  fi
8774  rm -rf conftest*
8775  ;;
8776esac
8777
8778need_locks="$enable_libtool_lock"
8779
8780
8781  case $host_os in
8782    rhapsody* | darwin*)
8783    if test -n "$ac_tool_prefix"; then
8784  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8785set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
8788if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8789  $as_echo_n "(cached) " >&6
8790else
8791  if test -n "$DSYMUTIL"; then
8792  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8793else
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797  IFS=$as_save_IFS
8798  test -z "$as_dir" && as_dir=.
8799  for ac_exec_ext in '' $ac_executable_extensions; do
8800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8801    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8802    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8803    break 2
8804  fi
8805done
8806done
8807IFS=$as_save_IFS
8808
8809fi
8810fi
8811DSYMUTIL=$ac_cv_prog_DSYMUTIL
8812if test -n "$DSYMUTIL"; then
8813  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8814$as_echo "$DSYMUTIL" >&6; }
8815else
8816  { $as_echo "$as_me:$LINENO: result: no" >&5
8817$as_echo "no" >&6; }
8818fi
8819
8820
8821fi
8822if test -z "$ac_cv_prog_DSYMUTIL"; then
8823  ac_ct_DSYMUTIL=$DSYMUTIL
8824  # Extract the first word of "dsymutil", so it can be a program name with args.
8825set dummy dsymutil; ac_word=$2
8826{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8829  $as_echo_n "(cached) " >&6
8830else
8831  if test -n "$ac_ct_DSYMUTIL"; then
8832  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837  IFS=$as_save_IFS
8838  test -z "$as_dir" && as_dir=.
8839  for ac_exec_ext in '' $ac_executable_extensions; do
8840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8842    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843    break 2
8844  fi
8845done
8846done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8852if test -n "$ac_ct_DSYMUTIL"; then
8853  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8854$as_echo "$ac_ct_DSYMUTIL" >&6; }
8855else
8856  { $as_echo "$as_me:$LINENO: result: no" >&5
8857$as_echo "no" >&6; }
8858fi
8859
8860  if test "x$ac_ct_DSYMUTIL" = x; then
8861    DSYMUTIL=":"
8862  else
8863    case $cross_compiling:$ac_tool_warned in
8864yes:)
8865{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8867ac_tool_warned=yes ;;
8868esac
8869    DSYMUTIL=$ac_ct_DSYMUTIL
8870  fi
8871else
8872  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8873fi
8874
8875    if test -n "$ac_tool_prefix"; then
8876  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8877set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8879$as_echo_n "checking for $ac_word... " >&6; }
8880if test "${ac_cv_prog_NMEDIT+set}" = set; then
8881  $as_echo_n "(cached) " >&6
8882else
8883  if test -n "$NMEDIT"; then
8884  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8885else
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889  IFS=$as_save_IFS
8890  test -z "$as_dir" && as_dir=.
8891  for ac_exec_ext in '' $ac_executable_extensions; do
8892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8894    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8895    break 2
8896  fi
8897done
8898done
8899IFS=$as_save_IFS
8900
8901fi
8902fi
8903NMEDIT=$ac_cv_prog_NMEDIT
8904if test -n "$NMEDIT"; then
8905  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8906$as_echo "$NMEDIT" >&6; }
8907else
8908  { $as_echo "$as_me:$LINENO: result: no" >&5
8909$as_echo "no" >&6; }
8910fi
8911
8912
8913fi
8914if test -z "$ac_cv_prog_NMEDIT"; then
8915  ac_ct_NMEDIT=$NMEDIT
8916  # Extract the first word of "nmedit", so it can be a program name with args.
8917set dummy nmedit; ac_word=$2
8918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8921  $as_echo_n "(cached) " >&6
8922else
8923  if test -n "$ac_ct_NMEDIT"; then
8924  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929  IFS=$as_save_IFS
8930  test -z "$as_dir" && as_dir=.
8931  for ac_exec_ext in '' $ac_executable_extensions; do
8932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8934    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935    break 2
8936  fi
8937done
8938done
8939IFS=$as_save_IFS
8940
8941fi
8942fi
8943ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8944if test -n "$ac_ct_NMEDIT"; then
8945  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8946$as_echo "$ac_ct_NMEDIT" >&6; }
8947else
8948  { $as_echo "$as_me:$LINENO: result: no" >&5
8949$as_echo "no" >&6; }
8950fi
8951
8952  if test "x$ac_ct_NMEDIT" = x; then
8953    NMEDIT=":"
8954  else
8955    case $cross_compiling:$ac_tool_warned in
8956yes:)
8957{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959ac_tool_warned=yes ;;
8960esac
8961    NMEDIT=$ac_ct_NMEDIT
8962  fi
8963else
8964  NMEDIT="$ac_cv_prog_NMEDIT"
8965fi
8966
8967    if test -n "$ac_tool_prefix"; then
8968  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8969set dummy ${ac_tool_prefix}lipo; ac_word=$2
8970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8971$as_echo_n "checking for $ac_word... " >&6; }
8972if test "${ac_cv_prog_LIPO+set}" = set; then
8973  $as_echo_n "(cached) " >&6
8974else
8975  if test -n "$LIPO"; then
8976  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8977else
8978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979for as_dir in $PATH
8980do
8981  IFS=$as_save_IFS
8982  test -z "$as_dir" && as_dir=.
8983  for ac_exec_ext in '' $ac_executable_extensions; do
8984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8986    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8987    break 2
8988  fi
8989done
8990done
8991IFS=$as_save_IFS
8992
8993fi
8994fi
8995LIPO=$ac_cv_prog_LIPO
8996if test -n "$LIPO"; then
8997  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8998$as_echo "$LIPO" >&6; }
8999else
9000  { $as_echo "$as_me:$LINENO: result: no" >&5
9001$as_echo "no" >&6; }
9002fi
9003
9004
9005fi
9006if test -z "$ac_cv_prog_LIPO"; then
9007  ac_ct_LIPO=$LIPO
9008  # Extract the first word of "lipo", so it can be a program name with args.
9009set dummy lipo; ac_word=$2
9010{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9011$as_echo_n "checking for $ac_word... " >&6; }
9012if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9013  $as_echo_n "(cached) " >&6
9014else
9015  if test -n "$ac_ct_LIPO"; then
9016  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9017else
9018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019for as_dir in $PATH
9020do
9021  IFS=$as_save_IFS
9022  test -z "$as_dir" && as_dir=.
9023  for ac_exec_ext in '' $ac_executable_extensions; do
9024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025    ac_cv_prog_ac_ct_LIPO="lipo"
9026    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9027    break 2
9028  fi
9029done
9030done
9031IFS=$as_save_IFS
9032
9033fi
9034fi
9035ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9036if test -n "$ac_ct_LIPO"; then
9037  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9038$as_echo "$ac_ct_LIPO" >&6; }
9039else
9040  { $as_echo "$as_me:$LINENO: result: no" >&5
9041$as_echo "no" >&6; }
9042fi
9043
9044  if test "x$ac_ct_LIPO" = x; then
9045    LIPO=":"
9046  else
9047    case $cross_compiling:$ac_tool_warned in
9048yes:)
9049{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9051ac_tool_warned=yes ;;
9052esac
9053    LIPO=$ac_ct_LIPO
9054  fi
9055else
9056  LIPO="$ac_cv_prog_LIPO"
9057fi
9058
9059    if test -n "$ac_tool_prefix"; then
9060  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9061set dummy ${ac_tool_prefix}otool; ac_word=$2
9062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9063$as_echo_n "checking for $ac_word... " >&6; }
9064if test "${ac_cv_prog_OTOOL+set}" = set; then
9065  $as_echo_n "(cached) " >&6
9066else
9067  if test -n "$OTOOL"; then
9068  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9069else
9070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071for as_dir in $PATH
9072do
9073  IFS=$as_save_IFS
9074  test -z "$as_dir" && as_dir=.
9075  for ac_exec_ext in '' $ac_executable_extensions; do
9076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9078    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9079    break 2
9080  fi
9081done
9082done
9083IFS=$as_save_IFS
9084
9085fi
9086fi
9087OTOOL=$ac_cv_prog_OTOOL
9088if test -n "$OTOOL"; then
9089  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9090$as_echo "$OTOOL" >&6; }
9091else
9092  { $as_echo "$as_me:$LINENO: result: no" >&5
9093$as_echo "no" >&6; }
9094fi
9095
9096
9097fi
9098if test -z "$ac_cv_prog_OTOOL"; then
9099  ac_ct_OTOOL=$OTOOL
9100  # Extract the first word of "otool", so it can be a program name with args.
9101set dummy otool; ac_word=$2
9102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9105  $as_echo_n "(cached) " >&6
9106else
9107  if test -n "$ac_ct_OTOOL"; then
9108  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9109else
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113  IFS=$as_save_IFS
9114  test -z "$as_dir" && as_dir=.
9115  for ac_exec_ext in '' $ac_executable_extensions; do
9116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9117    ac_cv_prog_ac_ct_OTOOL="otool"
9118    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119    break 2
9120  fi
9121done
9122done
9123IFS=$as_save_IFS
9124
9125fi
9126fi
9127ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9128if test -n "$ac_ct_OTOOL"; then
9129  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9130$as_echo "$ac_ct_OTOOL" >&6; }
9131else
9132  { $as_echo "$as_me:$LINENO: result: no" >&5
9133$as_echo "no" >&6; }
9134fi
9135
9136  if test "x$ac_ct_OTOOL" = x; then
9137    OTOOL=":"
9138  else
9139    case $cross_compiling:$ac_tool_warned in
9140yes:)
9141{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9143ac_tool_warned=yes ;;
9144esac
9145    OTOOL=$ac_ct_OTOOL
9146  fi
9147else
9148  OTOOL="$ac_cv_prog_OTOOL"
9149fi
9150
9151    if test -n "$ac_tool_prefix"; then
9152  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9153set dummy ${ac_tool_prefix}otool64; ac_word=$2
9154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9155$as_echo_n "checking for $ac_word... " >&6; }
9156if test "${ac_cv_prog_OTOOL64+set}" = set; then
9157  $as_echo_n "(cached) " >&6
9158else
9159  if test -n "$OTOOL64"; then
9160  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9161else
9162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163for as_dir in $PATH
9164do
9165  IFS=$as_save_IFS
9166  test -z "$as_dir" && as_dir=.
9167  for ac_exec_ext in '' $ac_executable_extensions; do
9168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9170    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9171    break 2
9172  fi
9173done
9174done
9175IFS=$as_save_IFS
9176
9177fi
9178fi
9179OTOOL64=$ac_cv_prog_OTOOL64
9180if test -n "$OTOOL64"; then
9181  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9182$as_echo "$OTOOL64" >&6; }
9183else
9184  { $as_echo "$as_me:$LINENO: result: no" >&5
9185$as_echo "no" >&6; }
9186fi
9187
9188
9189fi
9190if test -z "$ac_cv_prog_OTOOL64"; then
9191  ac_ct_OTOOL64=$OTOOL64
9192  # Extract the first word of "otool64", so it can be a program name with args.
9193set dummy otool64; ac_word=$2
9194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9197  $as_echo_n "(cached) " >&6
9198else
9199  if test -n "$ac_ct_OTOOL64"; then
9200  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9201else
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205  IFS=$as_save_IFS
9206  test -z "$as_dir" && as_dir=.
9207  for ac_exec_ext in '' $ac_executable_extensions; do
9208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209    ac_cv_prog_ac_ct_OTOOL64="otool64"
9210    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9211    break 2
9212  fi
9213done
9214done
9215IFS=$as_save_IFS
9216
9217fi
9218fi
9219ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9220if test -n "$ac_ct_OTOOL64"; then
9221  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9222$as_echo "$ac_ct_OTOOL64" >&6; }
9223else
9224  { $as_echo "$as_me:$LINENO: result: no" >&5
9225$as_echo "no" >&6; }
9226fi
9227
9228  if test "x$ac_ct_OTOOL64" = x; then
9229    OTOOL64=":"
9230  else
9231    case $cross_compiling:$ac_tool_warned in
9232yes:)
9233{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9235ac_tool_warned=yes ;;
9236esac
9237    OTOOL64=$ac_ct_OTOOL64
9238  fi
9239else
9240  OTOOL64="$ac_cv_prog_OTOOL64"
9241fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9270$as_echo_n "checking for -single_module linker flag... " >&6; }
9271if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9272  $as_echo_n "(cached) " >&6
9273else
9274  lt_cv_apple_cc_single_mod=no
9275      if test -z "${LT_MULTI_MODULE}"; then
9276	# By default we will add the -single_module flag. You can override
9277	# by either setting the environment variable LT_MULTI_MODULE
9278	# non-empty at configure time, or by adding -multi_module to the
9279	# link flags.
9280	rm -rf libconftest.dylib*
9281	echo "int foo(void){return 1;}" > conftest.c
9282	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9283-dynamiclib -Wl,-single_module conftest.c" >&5
9284	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9285	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9286        _lt_result=$?
9287	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9288	  lt_cv_apple_cc_single_mod=yes
9289	else
9290	  cat conftest.err >&5
9291	fi
9292	rm -rf libconftest.dylib*
9293	rm -f conftest.*
9294      fi
9295fi
9296{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9297$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9298    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9299$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9300if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9301  $as_echo_n "(cached) " >&6
9302else
9303  lt_cv_ld_exported_symbols_list=no
9304      save_LDFLAGS=$LDFLAGS
9305      echo "_main" > conftest.sym
9306      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9307      cat >conftest.$ac_ext <<_ACEOF
9308/* confdefs.h.  */
9309_ACEOF
9310cat confdefs.h >>conftest.$ac_ext
9311cat >>conftest.$ac_ext <<_ACEOF
9312/* end confdefs.h.  */
9313
9314int
9315main ()
9316{
9317
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (ac_try="$ac_link"
9324case "(($ac_try" in
9325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326  *) ac_try_echo=$ac_try;;
9327esac
9328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9329$as_echo "$ac_try_echo") >&5
9330  (eval "$ac_link") 2>conftest.er1
9331  ac_status=$?
9332  grep -v '^ *+' conftest.er1 >conftest.err
9333  rm -f conftest.er1
9334  cat conftest.err >&5
9335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); } && {
9337	 test -z "$ac_c_werror_flag" ||
9338	 test ! -s conftest.err
9339       } && test -s conftest$ac_exeext && {
9340	 test "$cross_compiling" = yes ||
9341	 $as_test_x conftest$ac_exeext
9342       }; then
9343  lt_cv_ld_exported_symbols_list=yes
9344else
9345  $as_echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
9348	lt_cv_ld_exported_symbols_list=no
9349fi
9350
9351rm -rf conftest.dSYM
9352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353      conftest$ac_exeext conftest.$ac_ext
9354	LDFLAGS="$save_LDFLAGS"
9355
9356fi
9357{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9358$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9359    case $host_os in
9360    rhapsody* | darwin1.[012])
9361      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9362    darwin1.*)
9363      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9364    darwin*) # darwin 5.x on
9365      # if running on 10.5 or later, the deployment target defaults
9366      # to the OS version, if on x86, and 10.4, the deployment
9367      # target defaults to 10.4. Don't you love it?
9368      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9369	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9370	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9371	10.[012]*)
9372	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9373	10.*)
9374	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9375      esac
9376    ;;
9377  esac
9378    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9379      _lt_dar_single_mod='$single_module'
9380    fi
9381    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9382      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9383    else
9384      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9385    fi
9386    if test "$DSYMUTIL" != ":"; then
9387      _lt_dsymutil='~$DSYMUTIL $lib || :'
9388    else
9389      _lt_dsymutil=
9390    fi
9391    ;;
9392  esac
9393
9394
9395for ac_header in dlfcn.h
9396do
9397as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9398{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9399$as_echo_n "checking for $ac_header... " >&6; }
9400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h.  */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h.  */
9409$ac_includes_default
9410
9411#include <$ac_header>
9412_ACEOF
9413rm -f conftest.$ac_objext
9414if { (ac_try="$ac_compile"
9415case "(($ac_try" in
9416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417  *) ac_try_echo=$ac_try;;
9418esac
9419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9420$as_echo "$ac_try_echo") >&5
9421  (eval "$ac_compile") 2>conftest.er1
9422  ac_status=$?
9423  grep -v '^ *+' conftest.er1 >conftest.err
9424  rm -f conftest.er1
9425  cat conftest.err >&5
9426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427  (exit $ac_status); } && {
9428	 test -z "$ac_c_werror_flag" ||
9429	 test ! -s conftest.err
9430       } && test -s conftest.$ac_objext; then
9431  eval "$as_ac_Header=yes"
9432else
9433  $as_echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
9435
9436	eval "$as_ac_Header=no"
9437fi
9438
9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440fi
9441ac_res=`eval 'as_val=${'$as_ac_Header'}
9442		 $as_echo "$as_val"'`
9443	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9444$as_echo "$ac_res" >&6; }
9445as_val=`eval 'as_val=${'$as_ac_Header'}
9446		 $as_echo "$as_val"'`
9447   if test "x$as_val" = x""yes; then
9448  cat >>confdefs.h <<_ACEOF
9449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450_ACEOF
9451
9452fi
9453
9454done
9455
9456
9457
9458# Set options
9459enable_win32_dll=yes
9460
9461case $host in
9462*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9463  if test -n "$ac_tool_prefix"; then
9464  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9465set dummy ${ac_tool_prefix}as; ac_word=$2
9466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9467$as_echo_n "checking for $ac_word... " >&6; }
9468if test "${ac_cv_prog_AS+set}" = set; then
9469  $as_echo_n "(cached) " >&6
9470else
9471  if test -n "$AS"; then
9472  ac_cv_prog_AS="$AS" # Let the user override the test.
9473else
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477  IFS=$as_save_IFS
9478  test -z "$as_dir" && as_dir=.
9479  for ac_exec_ext in '' $ac_executable_extensions; do
9480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481    ac_cv_prog_AS="${ac_tool_prefix}as"
9482    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483    break 2
9484  fi
9485done
9486done
9487IFS=$as_save_IFS
9488
9489fi
9490fi
9491AS=$ac_cv_prog_AS
9492if test -n "$AS"; then
9493  { $as_echo "$as_me:$LINENO: result: $AS" >&5
9494$as_echo "$AS" >&6; }
9495else
9496  { $as_echo "$as_me:$LINENO: result: no" >&5
9497$as_echo "no" >&6; }
9498fi
9499
9500
9501fi
9502if test -z "$ac_cv_prog_AS"; then
9503  ac_ct_AS=$AS
9504  # Extract the first word of "as", so it can be a program name with args.
9505set dummy as; ac_word=$2
9506{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
9508if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9509  $as_echo_n "(cached) " >&6
9510else
9511  if test -n "$ac_ct_AS"; then
9512  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517  IFS=$as_save_IFS
9518  test -z "$as_dir" && as_dir=.
9519  for ac_exec_ext in '' $ac_executable_extensions; do
9520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521    ac_cv_prog_ac_ct_AS="as"
9522    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523    break 2
9524  fi
9525done
9526done
9527IFS=$as_save_IFS
9528
9529fi
9530fi
9531ac_ct_AS=$ac_cv_prog_ac_ct_AS
9532if test -n "$ac_ct_AS"; then
9533  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9534$as_echo "$ac_ct_AS" >&6; }
9535else
9536  { $as_echo "$as_me:$LINENO: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540  if test "x$ac_ct_AS" = x; then
9541    AS="false"
9542  else
9543    case $cross_compiling:$ac_tool_warned in
9544yes:)
9545{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9547ac_tool_warned=yes ;;
9548esac
9549    AS=$ac_ct_AS
9550  fi
9551else
9552  AS="$ac_cv_prog_AS"
9553fi
9554
9555  if test -n "$ac_tool_prefix"; then
9556  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9557set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9559$as_echo_n "checking for $ac_word... " >&6; }
9560if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9561  $as_echo_n "(cached) " >&6
9562else
9563  if test -n "$DLLTOOL"; then
9564  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9565else
9566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567for as_dir in $PATH
9568do
9569  IFS=$as_save_IFS
9570  test -z "$as_dir" && as_dir=.
9571  for ac_exec_ext in '' $ac_executable_extensions; do
9572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9574    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9575    break 2
9576  fi
9577done
9578done
9579IFS=$as_save_IFS
9580
9581fi
9582fi
9583DLLTOOL=$ac_cv_prog_DLLTOOL
9584if test -n "$DLLTOOL"; then
9585  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9586$as_echo "$DLLTOOL" >&6; }
9587else
9588  { $as_echo "$as_me:$LINENO: result: no" >&5
9589$as_echo "no" >&6; }
9590fi
9591
9592
9593fi
9594if test -z "$ac_cv_prog_DLLTOOL"; then
9595  ac_ct_DLLTOOL=$DLLTOOL
9596  # Extract the first word of "dlltool", so it can be a program name with args.
9597set dummy dlltool; ac_word=$2
9598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9599$as_echo_n "checking for $ac_word... " >&6; }
9600if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9601  $as_echo_n "(cached) " >&6
9602else
9603  if test -n "$ac_ct_DLLTOOL"; then
9604  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9605else
9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609  IFS=$as_save_IFS
9610  test -z "$as_dir" && as_dir=.
9611  for ac_exec_ext in '' $ac_executable_extensions; do
9612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9614    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9615    break 2
9616  fi
9617done
9618done
9619IFS=$as_save_IFS
9620
9621fi
9622fi
9623ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9624if test -n "$ac_ct_DLLTOOL"; then
9625  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9626$as_echo "$ac_ct_DLLTOOL" >&6; }
9627else
9628  { $as_echo "$as_me:$LINENO: result: no" >&5
9629$as_echo "no" >&6; }
9630fi
9631
9632  if test "x$ac_ct_DLLTOOL" = x; then
9633    DLLTOOL="false"
9634  else
9635    case $cross_compiling:$ac_tool_warned in
9636yes:)
9637{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9639ac_tool_warned=yes ;;
9640esac
9641    DLLTOOL=$ac_ct_DLLTOOL
9642  fi
9643else
9644  DLLTOOL="$ac_cv_prog_DLLTOOL"
9645fi
9646
9647  if test -n "$ac_tool_prefix"; then
9648  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9649set dummy ${ac_tool_prefix}objdump; ac_word=$2
9650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9651$as_echo_n "checking for $ac_word... " >&6; }
9652if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9653  $as_echo_n "(cached) " >&6
9654else
9655  if test -n "$OBJDUMP"; then
9656  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9657else
9658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659for as_dir in $PATH
9660do
9661  IFS=$as_save_IFS
9662  test -z "$as_dir" && as_dir=.
9663  for ac_exec_ext in '' $ac_executable_extensions; do
9664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9665    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9666    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9667    break 2
9668  fi
9669done
9670done
9671IFS=$as_save_IFS
9672
9673fi
9674fi
9675OBJDUMP=$ac_cv_prog_OBJDUMP
9676if test -n "$OBJDUMP"; then
9677  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9678$as_echo "$OBJDUMP" >&6; }
9679else
9680  { $as_echo "$as_me:$LINENO: result: no" >&5
9681$as_echo "no" >&6; }
9682fi
9683
9684
9685fi
9686if test -z "$ac_cv_prog_OBJDUMP"; then
9687  ac_ct_OBJDUMP=$OBJDUMP
9688  # Extract the first word of "objdump", so it can be a program name with args.
9689set dummy objdump; ac_word=$2
9690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9693  $as_echo_n "(cached) " >&6
9694else
9695  if test -n "$ac_ct_OBJDUMP"; then
9696  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9697else
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701  IFS=$as_save_IFS
9702  test -z "$as_dir" && as_dir=.
9703  for ac_exec_ext in '' $ac_executable_extensions; do
9704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9706    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707    break 2
9708  fi
9709done
9710done
9711IFS=$as_save_IFS
9712
9713fi
9714fi
9715ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9716if test -n "$ac_ct_OBJDUMP"; then
9717  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9718$as_echo "$ac_ct_OBJDUMP" >&6; }
9719else
9720  { $as_echo "$as_me:$LINENO: result: no" >&5
9721$as_echo "no" >&6; }
9722fi
9723
9724  if test "x$ac_ct_OBJDUMP" = x; then
9725    OBJDUMP="false"
9726  else
9727    case $cross_compiling:$ac_tool_warned in
9728yes:)
9729{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9731ac_tool_warned=yes ;;
9732esac
9733    OBJDUMP=$ac_ct_OBJDUMP
9734  fi
9735else
9736  OBJDUMP="$ac_cv_prog_OBJDUMP"
9737fi
9738
9739  ;;
9740esac
9741
9742test -z "$AS" && AS=as
9743
9744
9745
9746
9747
9748test -z "$DLLTOOL" && DLLTOOL=dlltool
9749
9750
9751
9752
9753
9754test -z "$OBJDUMP" && OBJDUMP=objdump
9755
9756
9757
9758
9759
9760
9761
9762        enable_dlopen=no
9763
9764
9765
9766            # Check whether --enable-shared was given.
9767if test "${enable_shared+set}" = set; then
9768  enableval=$enable_shared; p=${PACKAGE-default}
9769    case $enableval in
9770    yes) enable_shared=yes ;;
9771    no) enable_shared=no ;;
9772    *)
9773      enable_shared=no
9774      # Look at the argument we got.  We use all the common list separators.
9775      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9776      for pkg in $enableval; do
9777	IFS="$lt_save_ifs"
9778	if test "X$pkg" = "X$p"; then
9779	  enable_shared=yes
9780	fi
9781      done
9782      IFS="$lt_save_ifs"
9783      ;;
9784    esac
9785else
9786  enable_shared=yes
9787fi
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797  # Check whether --enable-static was given.
9798if test "${enable_static+set}" = set; then
9799  enableval=$enable_static; p=${PACKAGE-default}
9800    case $enableval in
9801    yes) enable_static=yes ;;
9802    no) enable_static=no ;;
9803    *)
9804     enable_static=no
9805      # Look at the argument we got.  We use all the common list separators.
9806      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9807      for pkg in $enableval; do
9808	IFS="$lt_save_ifs"
9809	if test "X$pkg" = "X$p"; then
9810	  enable_static=yes
9811	fi
9812      done
9813      IFS="$lt_save_ifs"
9814      ;;
9815    esac
9816else
9817  enable_static=yes
9818fi
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829# Check whether --with-pic was given.
9830if test "${with_pic+set}" = set; then
9831  withval=$with_pic; pic_mode="$withval"
9832else
9833  pic_mode=default
9834fi
9835
9836
9837test -z "$pic_mode" && pic_mode=default
9838
9839
9840
9841
9842
9843
9844
9845  # Check whether --enable-fast-install was given.
9846if test "${enable_fast_install+set}" = set; then
9847  enableval=$enable_fast_install; p=${PACKAGE-default}
9848    case $enableval in
9849    yes) enable_fast_install=yes ;;
9850    no) enable_fast_install=no ;;
9851    *)
9852      enable_fast_install=no
9853      # Look at the argument we got.  We use all the common list separators.
9854      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9855      for pkg in $enableval; do
9856	IFS="$lt_save_ifs"
9857	if test "X$pkg" = "X$p"; then
9858	  enable_fast_install=yes
9859	fi
9860      done
9861      IFS="$lt_save_ifs"
9862      ;;
9863    esac
9864else
9865  enable_fast_install=yes
9866fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878# This can be used to rebuild libtool when needed
9879LIBTOOL_DEPS="$ltmain"
9880
9881# Always use our own libtool.
9882LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908test -z "$LN_S" && LN_S="ln -s"
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923if test -n "${ZSH_VERSION+set}" ; then
9924   setopt NO_GLOB_SUBST
9925fi
9926
9927{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9928$as_echo_n "checking for objdir... " >&6; }
9929if test "${lt_cv_objdir+set}" = set; then
9930  $as_echo_n "(cached) " >&6
9931else
9932  rm -f .libs 2>/dev/null
9933mkdir .libs 2>/dev/null
9934if test -d .libs; then
9935  lt_cv_objdir=.libs
9936else
9937  # MS-DOS does not allow filenames that begin with a dot.
9938  lt_cv_objdir=_libs
9939fi
9940rmdir .libs 2>/dev/null
9941fi
9942{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9943$as_echo "$lt_cv_objdir" >&6; }
9944objdir=$lt_cv_objdir
9945
9946
9947
9948
9949
9950cat >>confdefs.h <<_ACEOF
9951#define LT_OBJDIR "$lt_cv_objdir/"
9952_ACEOF
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970case $host_os in
9971aix3*)
9972  # AIX sometimes has problems with the GCC collect2 program.  For some
9973  # reason, if we set the COLLECT_NAMES environment variable, the problems
9974  # vanish in a puff of smoke.
9975  if test "X${COLLECT_NAMES+set}" != Xset; then
9976    COLLECT_NAMES=
9977    export COLLECT_NAMES
9978  fi
9979  ;;
9980esac
9981
9982# Sed substitution that helps us do robust quoting.  It backslashifies
9983# metacharacters that are still active within double-quoted strings.
9984sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9985
9986# Same as above, but do not quote variable references.
9987double_quote_subst='s/\(["`\\]\)/\\\1/g'
9988
9989# Sed substitution to delay expansion of an escaped shell variable in a
9990# double_quote_subst'ed string.
9991delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9992
9993# Sed substitution to delay expansion of an escaped single quote.
9994delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9995
9996# Sed substitution to avoid accidental globbing in evaled expressions
9997no_glob_subst='s/\*/\\\*/g'
9998
9999# Global variables:
10000ofile=libtool
10001can_build_shared=yes
10002
10003# All known linkers require a `.a' archive for static linking (except MSVC,
10004# which needs '.lib').
10005libext=a
10006
10007with_gnu_ld="$lt_cv_prog_gnu_ld"
10008
10009old_CC="$CC"
10010old_CFLAGS="$CFLAGS"
10011
10012# Set sane defaults for various variables
10013test -z "$CC" && CC=cc
10014test -z "$LTCC" && LTCC=$CC
10015test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10016test -z "$LD" && LD=ld
10017test -z "$ac_objext" && ac_objext=o
10018
10019for cc_temp in $compiler""; do
10020  case $cc_temp in
10021    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10022    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10023    \-*) ;;
10024    *) break;;
10025  esac
10026done
10027cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10028
10029
10030# Only perform the check for file, if the check method requires it
10031test -z "$MAGIC_CMD" && MAGIC_CMD=file
10032case $deplibs_check_method in
10033file_magic*)
10034  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10035    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10036$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10038  $as_echo_n "(cached) " >&6
10039else
10040  case $MAGIC_CMD in
10041[\\/*] |  ?:[\\/]*)
10042  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10043  ;;
10044*)
10045  lt_save_MAGIC_CMD="$MAGIC_CMD"
10046  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10047  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10048  for ac_dir in $ac_dummy; do
10049    IFS="$lt_save_ifs"
10050    test -z "$ac_dir" && ac_dir=.
10051    if test -f $ac_dir/${ac_tool_prefix}file; then
10052      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10053      if test -n "$file_magic_test_file"; then
10054	case $deplibs_check_method in
10055	"file_magic "*)
10056	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10057	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10058	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10059	    $EGREP "$file_magic_regex" > /dev/null; then
10060	    :
10061	  else
10062	    cat <<_LT_EOF 1>&2
10063
10064*** Warning: the command libtool uses to detect shared libraries,
10065*** $file_magic_cmd, produces output that libtool cannot recognize.
10066*** The result is that libtool may fail to recognize shared libraries
10067*** as such.  This will affect the creation of libtool libraries that
10068*** depend on shared libraries, but programs linked with such libtool
10069*** libraries will work regardless of this problem.  Nevertheless, you
10070*** may want to report the problem to your system manager and/or to
10071*** bug-libtool@gnu.org
10072
10073_LT_EOF
10074	  fi ;;
10075	esac
10076      fi
10077      break
10078    fi
10079  done
10080  IFS="$lt_save_ifs"
10081  MAGIC_CMD="$lt_save_MAGIC_CMD"
10082  ;;
10083esac
10084fi
10085
10086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10087if test -n "$MAGIC_CMD"; then
10088  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10089$as_echo "$MAGIC_CMD" >&6; }
10090else
10091  { $as_echo "$as_me:$LINENO: result: no" >&5
10092$as_echo "no" >&6; }
10093fi
10094
10095
10096
10097
10098
10099if test -z "$lt_cv_path_MAGIC_CMD"; then
10100  if test -n "$ac_tool_prefix"; then
10101    { $as_echo "$as_me:$LINENO: checking for file" >&5
10102$as_echo_n "checking for file... " >&6; }
10103if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10104  $as_echo_n "(cached) " >&6
10105else
10106  case $MAGIC_CMD in
10107[\\/*] |  ?:[\\/]*)
10108  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10109  ;;
10110*)
10111  lt_save_MAGIC_CMD="$MAGIC_CMD"
10112  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10113  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10114  for ac_dir in $ac_dummy; do
10115    IFS="$lt_save_ifs"
10116    test -z "$ac_dir" && ac_dir=.
10117    if test -f $ac_dir/file; then
10118      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10119      if test -n "$file_magic_test_file"; then
10120	case $deplibs_check_method in
10121	"file_magic "*)
10122	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10123	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10124	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10125	    $EGREP "$file_magic_regex" > /dev/null; then
10126	    :
10127	  else
10128	    cat <<_LT_EOF 1>&2
10129
10130*** Warning: the command libtool uses to detect shared libraries,
10131*** $file_magic_cmd, produces output that libtool cannot recognize.
10132*** The result is that libtool may fail to recognize shared libraries
10133*** as such.  This will affect the creation of libtool libraries that
10134*** depend on shared libraries, but programs linked with such libtool
10135*** libraries will work regardless of this problem.  Nevertheless, you
10136*** may want to report the problem to your system manager and/or to
10137*** bug-libtool@gnu.org
10138
10139_LT_EOF
10140	  fi ;;
10141	esac
10142      fi
10143      break
10144    fi
10145  done
10146  IFS="$lt_save_ifs"
10147  MAGIC_CMD="$lt_save_MAGIC_CMD"
10148  ;;
10149esac
10150fi
10151
10152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10153if test -n "$MAGIC_CMD"; then
10154  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10155$as_echo "$MAGIC_CMD" >&6; }
10156else
10157  { $as_echo "$as_me:$LINENO: result: no" >&5
10158$as_echo "no" >&6; }
10159fi
10160
10161
10162  else
10163    MAGIC_CMD=:
10164  fi
10165fi
10166
10167  fi
10168  ;;
10169esac
10170
10171# Use C for the default configuration in the libtool script
10172
10173lt_save_CC="$CC"
10174ac_ext=c
10175ac_cpp='$CPP $CPPFLAGS'
10176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178ac_compiler_gnu=$ac_cv_c_compiler_gnu
10179
10180
10181# Source file extension for C test sources.
10182ac_ext=c
10183
10184# Object file extension for compiled C test sources.
10185objext=o
10186objext=$objext
10187
10188# Code to be used in simple compile tests
10189lt_simple_compile_test_code="int some_variable = 0;"
10190
10191# Code to be used in simple link tests
10192lt_simple_link_test_code='int main(){return(0);}'
10193
10194
10195
10196
10197
10198
10199
10200# If no C compiler was specified, use CC.
10201LTCC=${LTCC-"$CC"}
10202
10203# If no C compiler flags were specified, use CFLAGS.
10204LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10205
10206# Allow CC to be a program name with arguments.
10207compiler=$CC
10208
10209# Save the default compiler, since it gets overwritten when the other
10210# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10211compiler_DEFAULT=$CC
10212
10213# save warnings/boilerplate of simple test code
10214ac_outfile=conftest.$ac_objext
10215echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10216eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10217_lt_compiler_boilerplate=`cat conftest.err`
10218$RM conftest*
10219
10220ac_outfile=conftest.$ac_objext
10221echo "$lt_simple_link_test_code" >conftest.$ac_ext
10222eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10223_lt_linker_boilerplate=`cat conftest.err`
10224$RM -r conftest*
10225
10226
10227## CAVEAT EMPTOR:
10228## There is no encapsulation within the following macros, do not change
10229## the running order or otherwise move them around unless you know exactly
10230## what you are doing...
10231if test -n "$compiler"; then
10232
10233lt_prog_compiler_no_builtin_flag=
10234
10235if test "$GCC" = yes; then
10236  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10237
10238  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10239$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10240if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10241  $as_echo_n "(cached) " >&6
10242else
10243  lt_cv_prog_compiler_rtti_exceptions=no
10244   ac_outfile=conftest.$ac_objext
10245   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10246   lt_compiler_flag="-fno-rtti -fno-exceptions"
10247   # Insert the option either (1) after the last *FLAGS variable, or
10248   # (2) before a word containing "conftest.", or (3) at the end.
10249   # Note that $ac_compile itself does not contain backslashes and begins
10250   # with a dollar sign (not a hyphen), so the echo should work correctly.
10251   # The option is referenced via a variable to avoid confusing sed.
10252   lt_compile=`echo "$ac_compile" | $SED \
10253   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10254   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10255   -e 's:$: $lt_compiler_flag:'`
10256   (eval echo "\"\$as_me:10256: $lt_compile\"" >&5)
10257   (eval "$lt_compile" 2>conftest.err)
10258   ac_status=$?
10259   cat conftest.err >&5
10260   echo "$as_me:10260: \$? = $ac_status" >&5
10261   if (exit $ac_status) && test -s "$ac_outfile"; then
10262     # The compiler can only warn and ignore the option if not recognized
10263     # So say no if there are warnings other than the usual output.
10264     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10265     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10266     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10267       lt_cv_prog_compiler_rtti_exceptions=yes
10268     fi
10269   fi
10270   $RM conftest*
10271
10272fi
10273{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10274$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10275
10276if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10277    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10278else
10279    :
10280fi
10281
10282fi
10283
10284
10285
10286
10287
10288
10289  lt_prog_compiler_wl=
10290lt_prog_compiler_pic=
10291lt_prog_compiler_static=
10292
10293{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10294$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10295
10296  if test "$GCC" = yes; then
10297    lt_prog_compiler_wl='-Wl,'
10298    lt_prog_compiler_static='-static'
10299
10300    case $host_os in
10301      aix*)
10302      # All AIX code is PIC.
10303      if test "$host_cpu" = ia64; then
10304	# AIX 5 now supports IA64 processor
10305	lt_prog_compiler_static='-Bstatic'
10306      fi
10307      ;;
10308
10309    amigaos*)
10310      case $host_cpu in
10311      powerpc)
10312            # see comment about AmigaOS4 .so support
10313            lt_prog_compiler_pic='-fPIC'
10314        ;;
10315      m68k)
10316            # FIXME: we need at least 68020 code to build shared libraries, but
10317            # adding the `-m68020' flag to GCC prevents building anything better,
10318            # like `-m68040'.
10319            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10320        ;;
10321      esac
10322      ;;
10323
10324    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10325      # PIC is the default for these OSes.
10326      ;;
10327
10328    mingw* | cygwin* | pw32* | os2* | cegcc*)
10329      # This hack is so that the source file can tell whether it is being
10330      # built for inclusion in a dll (and should export symbols for example).
10331      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10332      # (--disable-auto-import) libraries
10333      lt_prog_compiler_pic='-DDLL_EXPORT'
10334      ;;
10335
10336    darwin* | rhapsody*)
10337      # PIC is the default on this platform
10338      # Common symbols not allowed in MH_DYLIB files
10339      lt_prog_compiler_pic='-fno-common'
10340      ;;
10341
10342    hpux*)
10343      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10344      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10345      # sets the default TLS model and affects inlining.
10346      case $host_cpu in
10347      hppa*64*)
10348	# +Z the default
10349	;;
10350      *)
10351	lt_prog_compiler_pic='-fPIC'
10352	;;
10353      esac
10354      ;;
10355
10356    interix[3-9]*)
10357      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10358      # Instead, we relocate shared libraries at runtime.
10359      ;;
10360
10361    msdosdjgpp*)
10362      # Just because we use GCC doesn't mean we suddenly get shared libraries
10363      # on systems that don't support them.
10364      lt_prog_compiler_can_build_shared=no
10365      enable_shared=no
10366      ;;
10367
10368    *nto* | *qnx*)
10369      # QNX uses GNU C++, but need to define -shared option too, otherwise
10370      # it will coredump.
10371      lt_prog_compiler_pic='-fPIC -shared'
10372      ;;
10373
10374    sysv4*MP*)
10375      if test -d /usr/nec; then
10376	lt_prog_compiler_pic=-Kconform_pic
10377      fi
10378      ;;
10379
10380    *)
10381      lt_prog_compiler_pic='-fPIC'
10382      ;;
10383    esac
10384  else
10385    # PORTME Check for flag to pass linker flags through the system compiler.
10386    case $host_os in
10387    aix*)
10388      lt_prog_compiler_wl='-Wl,'
10389      if test "$host_cpu" = ia64; then
10390	# AIX 5 now supports IA64 processor
10391	lt_prog_compiler_static='-Bstatic'
10392      else
10393	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10394      fi
10395      ;;
10396
10397    mingw* | cygwin* | pw32* | os2* | cegcc*)
10398      # This hack is so that the source file can tell whether it is being
10399      # built for inclusion in a dll (and should export symbols for example).
10400      lt_prog_compiler_pic='-DDLL_EXPORT'
10401      ;;
10402
10403    hpux9* | hpux10* | hpux11*)
10404      lt_prog_compiler_wl='-Wl,'
10405      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10406      # not for PA HP-UX.
10407      case $host_cpu in
10408      hppa*64*|ia64*)
10409	# +Z the default
10410	;;
10411      *)
10412	lt_prog_compiler_pic='+Z'
10413	;;
10414      esac
10415      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10416      lt_prog_compiler_static='${wl}-a ${wl}archive'
10417      ;;
10418
10419    irix5* | irix6* | nonstopux*)
10420      lt_prog_compiler_wl='-Wl,'
10421      # PIC (with -KPIC) is the default.
10422      lt_prog_compiler_static='-non_shared'
10423      ;;
10424
10425    linux* | k*bsd*-gnu)
10426      case $cc_basename in
10427      # old Intel for x86_64 which still supported -KPIC.
10428      ecc*)
10429	lt_prog_compiler_wl='-Wl,'
10430	lt_prog_compiler_pic='-KPIC'
10431	lt_prog_compiler_static='-static'
10432        ;;
10433      # icc used to be incompatible with GCC.
10434      # ICC 10 doesn't accept -KPIC any more.
10435      icc* | ifort*)
10436	lt_prog_compiler_wl='-Wl,'
10437	lt_prog_compiler_pic='-fPIC'
10438	lt_prog_compiler_static='-static'
10439        ;;
10440      # Lahey Fortran 8.1.
10441      lf95*)
10442	lt_prog_compiler_wl='-Wl,'
10443	lt_prog_compiler_pic='--shared'
10444	lt_prog_compiler_static='--static'
10445	;;
10446      pgcc* | pgf77* | pgf90* | pgf95*)
10447        # Portland Group compilers (*not* the Pentium gcc compiler,
10448	# which looks to be a dead project)
10449	lt_prog_compiler_wl='-Wl,'
10450	lt_prog_compiler_pic='-fpic'
10451	lt_prog_compiler_static='-Bstatic'
10452        ;;
10453      ccc*)
10454        lt_prog_compiler_wl='-Wl,'
10455        # All Alpha code is PIC.
10456        lt_prog_compiler_static='-non_shared'
10457        ;;
10458      xl*)
10459	# IBM XL C 8.0/Fortran 10.1 on PPC
10460	lt_prog_compiler_wl='-Wl,'
10461	lt_prog_compiler_pic='-qpic'
10462	lt_prog_compiler_static='-qstaticlink'
10463	;;
10464      *)
10465	case `$CC -V 2>&1 | sed 5q` in
10466	*Sun\ C*)
10467	  # Sun C 5.9
10468	  lt_prog_compiler_pic='-KPIC'
10469	  lt_prog_compiler_static='-Bstatic'
10470	  lt_prog_compiler_wl='-Wl,'
10471	  ;;
10472	*Sun\ F*)
10473	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10474	  lt_prog_compiler_pic='-KPIC'
10475	  lt_prog_compiler_static='-Bstatic'
10476	  lt_prog_compiler_wl=''
10477	  ;;
10478	esac
10479	;;
10480      esac
10481      ;;
10482
10483    newsos6)
10484      lt_prog_compiler_pic='-KPIC'
10485      lt_prog_compiler_static='-Bstatic'
10486      ;;
10487
10488    *nto* | *qnx*)
10489      # QNX uses GNU C++, but need to define -shared option too, otherwise
10490      # it will coredump.
10491      lt_prog_compiler_pic='-fPIC -shared'
10492      ;;
10493
10494    osf3* | osf4* | osf5*)
10495      lt_prog_compiler_wl='-Wl,'
10496      # All OSF/1 code is PIC.
10497      lt_prog_compiler_static='-non_shared'
10498      ;;
10499
10500    rdos*)
10501      lt_prog_compiler_static='-non_shared'
10502      ;;
10503
10504    solaris*)
10505      lt_prog_compiler_pic='-KPIC'
10506      lt_prog_compiler_static='-Bstatic'
10507      case $cc_basename in
10508      f77* | f90* | f95*)
10509	lt_prog_compiler_wl='-Qoption ld ';;
10510      *)
10511	lt_prog_compiler_wl='-Wl,';;
10512      esac
10513      ;;
10514
10515    sunos4*)
10516      lt_prog_compiler_wl='-Qoption ld '
10517      lt_prog_compiler_pic='-PIC'
10518      lt_prog_compiler_static='-Bstatic'
10519      ;;
10520
10521    sysv4 | sysv4.2uw2* | sysv4.3*)
10522      lt_prog_compiler_wl='-Wl,'
10523      lt_prog_compiler_pic='-KPIC'
10524      lt_prog_compiler_static='-Bstatic'
10525      ;;
10526
10527    sysv4*MP*)
10528      if test -d /usr/nec ;then
10529	lt_prog_compiler_pic='-Kconform_pic'
10530	lt_prog_compiler_static='-Bstatic'
10531      fi
10532      ;;
10533
10534    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10535      lt_prog_compiler_wl='-Wl,'
10536      lt_prog_compiler_pic='-KPIC'
10537      lt_prog_compiler_static='-Bstatic'
10538      ;;
10539
10540    unicos*)
10541      lt_prog_compiler_wl='-Wl,'
10542      lt_prog_compiler_can_build_shared=no
10543      ;;
10544
10545    uts4*)
10546      lt_prog_compiler_pic='-pic'
10547      lt_prog_compiler_static='-Bstatic'
10548      ;;
10549
10550    *)
10551      lt_prog_compiler_can_build_shared=no
10552      ;;
10553    esac
10554  fi
10555
10556case $host_os in
10557  # For platforms which do not support PIC, -DPIC is meaningless:
10558  *djgpp*)
10559    lt_prog_compiler_pic=
10560    ;;
10561  *)
10562    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10563    ;;
10564esac
10565{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10566$as_echo "$lt_prog_compiler_pic" >&6; }
10567
10568
10569
10570
10571
10572
10573#
10574# Check to make sure the PIC flag actually works.
10575#
10576if test -n "$lt_prog_compiler_pic"; then
10577  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10578$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10579if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10580  $as_echo_n "(cached) " >&6
10581else
10582  lt_cv_prog_compiler_pic_works=no
10583   ac_outfile=conftest.$ac_objext
10584   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10585   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10586   # Insert the option either (1) after the last *FLAGS variable, or
10587   # (2) before a word containing "conftest.", or (3) at the end.
10588   # Note that $ac_compile itself does not contain backslashes and begins
10589   # with a dollar sign (not a hyphen), so the echo should work correctly.
10590   # The option is referenced via a variable to avoid confusing sed.
10591   lt_compile=`echo "$ac_compile" | $SED \
10592   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10593   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10594   -e 's:$: $lt_compiler_flag:'`
10595   (eval echo "\"\$as_me:10595: $lt_compile\"" >&5)
10596   (eval "$lt_compile" 2>conftest.err)
10597   ac_status=$?
10598   cat conftest.err >&5
10599   echo "$as_me:10599: \$? = $ac_status" >&5
10600   if (exit $ac_status) && test -s "$ac_outfile"; then
10601     # The compiler can only warn and ignore the option if not recognized
10602     # So say no if there are warnings other than the usual output.
10603     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10604     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10605     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10606       lt_cv_prog_compiler_pic_works=yes
10607     fi
10608   fi
10609   $RM conftest*
10610
10611fi
10612{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10613$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10614
10615if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10616    case $lt_prog_compiler_pic in
10617     "" | " "*) ;;
10618     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10619     esac
10620else
10621    lt_prog_compiler_pic=
10622     lt_prog_compiler_can_build_shared=no
10623fi
10624
10625fi
10626
10627
10628
10629
10630
10631
10632#
10633# Check to make sure the static flag actually works.
10634#
10635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10636{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10637$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10638if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10639  $as_echo_n "(cached) " >&6
10640else
10641  lt_cv_prog_compiler_static_works=no
10642   save_LDFLAGS="$LDFLAGS"
10643   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10644   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10645   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10646     # The linker can only warn and ignore the option if not recognized
10647     # So say no if there are warnings
10648     if test -s conftest.err; then
10649       # Append any errors to the config.log.
10650       cat conftest.err 1>&5
10651       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10652       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10653       if diff conftest.exp conftest.er2 >/dev/null; then
10654         lt_cv_prog_compiler_static_works=yes
10655       fi
10656     else
10657       lt_cv_prog_compiler_static_works=yes
10658     fi
10659   fi
10660   $RM -r conftest*
10661   LDFLAGS="$save_LDFLAGS"
10662
10663fi
10664{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10665$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10666
10667if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10668    :
10669else
10670    lt_prog_compiler_static=
10671fi
10672
10673
10674
10675
10676
10677
10678
10679  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10681if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10682  $as_echo_n "(cached) " >&6
10683else
10684  lt_cv_prog_compiler_c_o=no
10685   $RM -r conftest 2>/dev/null
10686   mkdir conftest
10687   cd conftest
10688   mkdir out
10689   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10690
10691   lt_compiler_flag="-o out/conftest2.$ac_objext"
10692   # Insert the option either (1) after the last *FLAGS variable, or
10693   # (2) before a word containing "conftest.", or (3) at the end.
10694   # Note that $ac_compile itself does not contain backslashes and begins
10695   # with a dollar sign (not a hyphen), so the echo should work correctly.
10696   lt_compile=`echo "$ac_compile" | $SED \
10697   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10698   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10699   -e 's:$: $lt_compiler_flag:'`
10700   (eval echo "\"\$as_me:10700: $lt_compile\"" >&5)
10701   (eval "$lt_compile" 2>out/conftest.err)
10702   ac_status=$?
10703   cat out/conftest.err >&5
10704   echo "$as_me:10704: \$? = $ac_status" >&5
10705   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10706   then
10707     # The compiler can only warn and ignore the option if not recognized
10708     # So say no if there are warnings
10709     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10710     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10711     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10712       lt_cv_prog_compiler_c_o=yes
10713     fi
10714   fi
10715   chmod u+w . 2>&5
10716   $RM conftest*
10717   # SGI C++ compiler will create directory out/ii_files/ for
10718   # template instantiation
10719   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10720   $RM out/* && rmdir out
10721   cd ..
10722   $RM -r conftest
10723   $RM conftest*
10724
10725fi
10726{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10727$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10728
10729
10730
10731
10732
10733
10734  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10736if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10737  $as_echo_n "(cached) " >&6
10738else
10739  lt_cv_prog_compiler_c_o=no
10740   $RM -r conftest 2>/dev/null
10741   mkdir conftest
10742   cd conftest
10743   mkdir out
10744   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10745
10746   lt_compiler_flag="-o out/conftest2.$ac_objext"
10747   # Insert the option either (1) after the last *FLAGS variable, or
10748   # (2) before a word containing "conftest.", or (3) at the end.
10749   # Note that $ac_compile itself does not contain backslashes and begins
10750   # with a dollar sign (not a hyphen), so the echo should work correctly.
10751   lt_compile=`echo "$ac_compile" | $SED \
10752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10754   -e 's:$: $lt_compiler_flag:'`
10755   (eval echo "\"\$as_me:10755: $lt_compile\"" >&5)
10756   (eval "$lt_compile" 2>out/conftest.err)
10757   ac_status=$?
10758   cat out/conftest.err >&5
10759   echo "$as_me:10759: \$? = $ac_status" >&5
10760   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10761   then
10762     # The compiler can only warn and ignore the option if not recognized
10763     # So say no if there are warnings
10764     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10765     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10766     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10767       lt_cv_prog_compiler_c_o=yes
10768     fi
10769   fi
10770   chmod u+w . 2>&5
10771   $RM conftest*
10772   # SGI C++ compiler will create directory out/ii_files/ for
10773   # template instantiation
10774   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10775   $RM out/* && rmdir out
10776   cd ..
10777   $RM -r conftest
10778   $RM conftest*
10779
10780fi
10781{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10782$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10783
10784
10785
10786
10787hard_links="nottested"
10788if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10789  # do not overwrite the value of need_locks provided by the user
10790  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10791$as_echo_n "checking if we can lock with hard links... " >&6; }
10792  hard_links=yes
10793  $RM conftest*
10794  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10795  touch conftest.a
10796  ln conftest.a conftest.b 2>&5 || hard_links=no
10797  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10798  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10799$as_echo "$hard_links" >&6; }
10800  if test "$hard_links" = no; then
10801    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10802$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10803    need_locks=warn
10804  fi
10805else
10806  need_locks=no
10807fi
10808
10809
10810
10811
10812
10813
10814  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10815$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10816
10817  runpath_var=
10818  allow_undefined_flag=
10819  always_export_symbols=no
10820  archive_cmds=
10821  archive_expsym_cmds=
10822  compiler_needs_object=no
10823  enable_shared_with_static_runtimes=no
10824  export_dynamic_flag_spec=
10825  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10826  hardcode_automatic=no
10827  hardcode_direct=no
10828  hardcode_direct_absolute=no
10829  hardcode_libdir_flag_spec=
10830  hardcode_libdir_flag_spec_ld=
10831  hardcode_libdir_separator=
10832  hardcode_minus_L=no
10833  hardcode_shlibpath_var=unsupported
10834  inherit_rpath=no
10835  link_all_deplibs=unknown
10836  module_cmds=
10837  module_expsym_cmds=
10838  old_archive_from_new_cmds=
10839  old_archive_from_expsyms_cmds=
10840  thread_safe_flag_spec=
10841  whole_archive_flag_spec=
10842  # include_expsyms should be a list of space-separated symbols to be *always*
10843  # included in the symbol list
10844  include_expsyms=
10845  # exclude_expsyms can be an extended regexp of symbols to exclude
10846  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10847  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10848  # as well as any symbol that contains `d'.
10849  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10850  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10851  # platforms (ab)use it in PIC code, but their linkers get confused if
10852  # the symbol is explicitly referenced.  Since portable code cannot
10853  # rely on this symbol name, it's probably fine to never include it in
10854  # preloaded symbol tables.
10855  # Exclude shared library initialization/finalization symbols.
10856  extract_expsyms_cmds=
10857
10858  case $host_os in
10859  cygwin* | mingw* | pw32* | cegcc*)
10860    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10861    # When not using gcc, we currently assume that we are using
10862    # Microsoft Visual C++.
10863    if test "$GCC" != yes; then
10864      with_gnu_ld=no
10865    fi
10866    ;;
10867  interix*)
10868    # we just hope/assume this is gcc and not c89 (= MSVC++)
10869    with_gnu_ld=yes
10870    ;;
10871  openbsd*)
10872    with_gnu_ld=no
10873    ;;
10874  esac
10875
10876  ld_shlibs=yes
10877  if test "$with_gnu_ld" = yes; then
10878    # If archive_cmds runs LD, not CC, wlarc should be empty
10879    wlarc='${wl}'
10880
10881    # Set some defaults for GNU ld with shared library support. These
10882    # are reset later if shared libraries are not supported. Putting them
10883    # here allows them to be overridden if necessary.
10884    runpath_var=LD_RUN_PATH
10885    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10886    export_dynamic_flag_spec='${wl}--export-dynamic'
10887    # ancient GNU ld didn't support --whole-archive et. al.
10888    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10889      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10890    else
10891      whole_archive_flag_spec=
10892    fi
10893    supports_anon_versioning=no
10894    case `$LD -v 2>&1` in
10895      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10896      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10897      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10898      *\ 2.11.*) ;; # other 2.11 versions
10899      *) supports_anon_versioning=yes ;;
10900    esac
10901
10902    # See if GNU ld supports shared libraries.
10903    case $host_os in
10904    aix[3-9]*)
10905      # On AIX/PPC, the GNU linker is very broken
10906      if test "$host_cpu" != ia64; then
10907	ld_shlibs=no
10908	cat <<_LT_EOF 1>&2
10909
10910*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10911*** to be unable to reliably create shared libraries on AIX.
10912*** Therefore, libtool is disabling shared libraries support.  If you
10913*** really care for shared libraries, you may want to modify your PATH
10914*** so that a non-GNU linker is found, and then restart.
10915
10916_LT_EOF
10917      fi
10918      ;;
10919
10920    amigaos*)
10921      case $host_cpu in
10922      powerpc)
10923            # see comment about AmigaOS4 .so support
10924            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10925            archive_expsym_cmds=''
10926        ;;
10927      m68k)
10928            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)'
10929            hardcode_libdir_flag_spec='-L$libdir'
10930            hardcode_minus_L=yes
10931        ;;
10932      esac
10933      ;;
10934
10935    beos*)
10936      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10937	allow_undefined_flag=unsupported
10938	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10939	# support --undefined.  This deserves some investigation.  FIXME
10940	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10941      else
10942	ld_shlibs=no
10943      fi
10944      ;;
10945
10946    cygwin* | mingw* | pw32* | cegcc*)
10947      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10948      # as there is no search path for DLLs.
10949      hardcode_libdir_flag_spec='-L$libdir'
10950      allow_undefined_flag=unsupported
10951      always_export_symbols=no
10952      enable_shared_with_static_runtimes=yes
10953      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10954
10955      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10956        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10957	# If the export-symbols file already is a .def file (1st line
10958	# is EXPORTS), use it as is; otherwise, prepend...
10959	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10960	  cp $export_symbols $output_objdir/$soname.def;
10961	else
10962	  echo EXPORTS > $output_objdir/$soname.def;
10963	  cat $export_symbols >> $output_objdir/$soname.def;
10964	fi~
10965	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10966      else
10967	ld_shlibs=no
10968      fi
10969      ;;
10970
10971    interix[3-9]*)
10972      hardcode_direct=no
10973      hardcode_shlibpath_var=no
10974      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10975      export_dynamic_flag_spec='${wl}-E'
10976      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10977      # Instead, shared libraries are loaded at an image base (0x10000000 by
10978      # default) and relocated if they conflict, which is a slow very memory
10979      # consuming and fragmenting process.  To avoid this, we pick a random,
10980      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10981      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10982      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10983      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'
10984      ;;
10985
10986    gnu* | linux* | tpf* | k*bsd*-gnu)
10987      tmp_diet=no
10988      if test "$host_os" = linux-dietlibc; then
10989	case $cc_basename in
10990	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10991	esac
10992      fi
10993      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10994	 && test "$tmp_diet" = no
10995      then
10996	tmp_addflag=
10997	tmp_sharedflag='-shared'
10998	case $cc_basename,$host_cpu in
10999        pgcc*)				# Portland Group C compiler
11000	  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'
11001	  tmp_addflag=' $pic_flag'
11002	  ;;
11003	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11004	  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'
11005	  tmp_addflag=' $pic_flag -Mnomain' ;;
11006	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11007	  tmp_addflag=' -i_dynamic' ;;
11008	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11009	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11010	ifc* | ifort*)			# Intel Fortran compiler
11011	  tmp_addflag=' -nofor_main' ;;
11012	lf95*)				# Lahey Fortran 8.1
11013	  whole_archive_flag_spec=
11014	  tmp_sharedflag='--shared' ;;
11015	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11016	  tmp_sharedflag='-qmkshrobj'
11017	  tmp_addflag= ;;
11018	esac
11019	case `$CC -V 2>&1 | sed 5q` in
11020	*Sun\ C*)			# Sun C 5.9
11021	  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'
11022	  compiler_needs_object=yes
11023	  tmp_sharedflag='-G' ;;
11024	*Sun\ F*)			# Sun Fortran 8.3
11025	  tmp_sharedflag='-G' ;;
11026	esac
11027	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028
11029        if test "x$supports_anon_versioning" = xyes; then
11030          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11031	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11032	    echo "local: *; };" >> $output_objdir/$libname.ver~
11033	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11034        fi
11035
11036	case $cc_basename in
11037	xlf*)
11038	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11039	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11040	  hardcode_libdir_flag_spec=
11041	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11042	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11043	  if test "x$supports_anon_versioning" = xyes; then
11044	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11045	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11046	      echo "local: *; };" >> $output_objdir/$libname.ver~
11047	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11048	  fi
11049	  ;;
11050	esac
11051      else
11052        ld_shlibs=no
11053      fi
11054      ;;
11055
11056    netbsd*)
11057      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11058	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11059	wlarc=
11060      else
11061	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11063      fi
11064      ;;
11065
11066    solaris*)
11067      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11068	ld_shlibs=no
11069	cat <<_LT_EOF 1>&2
11070
11071*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11072*** create shared libraries on Solaris systems.  Therefore, libtool
11073*** is disabling shared libraries support.  We urge you to upgrade GNU
11074*** binutils to release 2.9.1 or newer.  Another option is to modify
11075*** your PATH or compiler configuration so that the native linker is
11076*** used, and then restart.
11077
11078_LT_EOF
11079      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11080	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11081	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11082      else
11083	ld_shlibs=no
11084      fi
11085      ;;
11086
11087    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11088      case `$LD -v 2>&1` in
11089        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11090	ld_shlibs=no
11091	cat <<_LT_EOF 1>&2
11092
11093*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11094*** reliably create shared libraries on SCO systems.  Therefore, libtool
11095*** is disabling shared libraries support.  We urge you to upgrade GNU
11096*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11097*** your PATH or compiler configuration so that the native linker is
11098*** used, and then restart.
11099
11100_LT_EOF
11101	;;
11102	*)
11103	  # For security reasons, it is highly recommended that you always
11104	  # use absolute paths for naming shared libraries, and exclude the
11105	  # DT_RUNPATH tag from executables and libraries.  But doing so
11106	  # requires that you compile everything twice, which is a pain.
11107	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11108	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11109	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11110	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11111	  else
11112	    ld_shlibs=no
11113	  fi
11114	;;
11115      esac
11116      ;;
11117
11118    sunos4*)
11119      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11120      wlarc=
11121      hardcode_direct=yes
11122      hardcode_shlibpath_var=no
11123      ;;
11124
11125    *)
11126      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11127	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11128	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11129      else
11130	ld_shlibs=no
11131      fi
11132      ;;
11133    esac
11134
11135    if test "$ld_shlibs" = no; then
11136      runpath_var=
11137      hardcode_libdir_flag_spec=
11138      export_dynamic_flag_spec=
11139      whole_archive_flag_spec=
11140    fi
11141  else
11142    # PORTME fill in a description of your system's linker (not GNU ld)
11143    case $host_os in
11144    aix3*)
11145      allow_undefined_flag=unsupported
11146      always_export_symbols=yes
11147      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'
11148      # Note: this linker hardcodes the directories in LIBPATH if there
11149      # are no directories specified by -L.
11150      hardcode_minus_L=yes
11151      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11152	# Neither direct hardcoding nor static linking is supported with a
11153	# broken collect2.
11154	hardcode_direct=unsupported
11155      fi
11156      ;;
11157
11158    aix[4-9]*)
11159      if test "$host_cpu" = ia64; then
11160	# On IA64, the linker does run time linking by default, so we don't
11161	# have to do anything special.
11162	aix_use_runtimelinking=no
11163	exp_sym_flag='-Bexport'
11164	no_entry_flag=""
11165      else
11166	# If we're using GNU nm, then we don't want the "-C" option.
11167	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11168	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11169	  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'
11170	else
11171	  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'
11172	fi
11173	aix_use_runtimelinking=no
11174
11175	# Test if we are trying to use run time linking or normal
11176	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11177	# need to do runtime linking.
11178	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11179	  for ld_flag in $LDFLAGS; do
11180	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11181	    aix_use_runtimelinking=yes
11182	    break
11183	  fi
11184	  done
11185	  ;;
11186	esac
11187
11188	exp_sym_flag='-bexport'
11189	no_entry_flag='-bnoentry'
11190      fi
11191
11192      # When large executables or shared objects are built, AIX ld can
11193      # have problems creating the table of contents.  If linking a library
11194      # or program results in "error TOC overflow" add -mminimal-toc to
11195      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11196      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11197
11198      archive_cmds=''
11199      hardcode_direct=yes
11200      hardcode_direct_absolute=yes
11201      hardcode_libdir_separator=':'
11202      link_all_deplibs=yes
11203      file_list_spec='${wl}-f,'
11204
11205      if test "$GCC" = yes; then
11206	case $host_os in aix4.[012]|aix4.[012].*)
11207	# We only want to do this on AIX 4.2 and lower, the check
11208	# below for broken collect2 doesn't work under 4.3+
11209	  collect2name=`${CC} -print-prog-name=collect2`
11210	  if test -f "$collect2name" &&
11211	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11212	  then
11213	  # We have reworked collect2
11214	  :
11215	  else
11216	  # We have old collect2
11217	  hardcode_direct=unsupported
11218	  # It fails to find uninstalled libraries when the uninstalled
11219	  # path is not listed in the libpath.  Setting hardcode_minus_L
11220	  # to unsupported forces relinking
11221	  hardcode_minus_L=yes
11222	  hardcode_libdir_flag_spec='-L$libdir'
11223	  hardcode_libdir_separator=
11224	  fi
11225	  ;;
11226	esac
11227	shared_flag='-shared'
11228	if test "$aix_use_runtimelinking" = yes; then
11229	  shared_flag="$shared_flag "'${wl}-G'
11230	fi
11231      else
11232	# not using gcc
11233	if test "$host_cpu" = ia64; then
11234	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11235	# chokes on -Wl,-G. The following line is correct:
11236	  shared_flag='-G'
11237	else
11238	  if test "$aix_use_runtimelinking" = yes; then
11239	    shared_flag='${wl}-G'
11240	  else
11241	    shared_flag='${wl}-bM:SRE'
11242	  fi
11243	fi
11244      fi
11245
11246      export_dynamic_flag_spec='${wl}-bexpall'
11247      # It seems that -bexpall does not export symbols beginning with
11248      # underscore (_), so it is better to generate a list of symbols to export.
11249      always_export_symbols=yes
11250      if test "$aix_use_runtimelinking" = yes; then
11251	# Warning - without using the other runtime loading flags (-brtl),
11252	# -berok will link without error, but may produce a broken library.
11253	allow_undefined_flag='-berok'
11254        # Determine the default libpath from the value encoded in an
11255        # empty executable.
11256        cat >conftest.$ac_ext <<_ACEOF
11257/* confdefs.h.  */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h.  */
11262
11263int
11264main ()
11265{
11266
11267  ;
11268  return 0;
11269}
11270_ACEOF
11271rm -f conftest.$ac_objext conftest$ac_exeext
11272if { (ac_try="$ac_link"
11273case "(($ac_try" in
11274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275  *) ac_try_echo=$ac_try;;
11276esac
11277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278$as_echo "$ac_try_echo") >&5
11279  (eval "$ac_link") 2>conftest.er1
11280  ac_status=$?
11281  grep -v '^ *+' conftest.er1 >conftest.err
11282  rm -f conftest.er1
11283  cat conftest.err >&5
11284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285  (exit $ac_status); } && {
11286	 test -z "$ac_c_werror_flag" ||
11287	 test ! -s conftest.err
11288       } && test -s conftest$ac_exeext && {
11289	 test "$cross_compiling" = yes ||
11290	 $as_test_x conftest$ac_exeext
11291       }; then
11292
11293lt_aix_libpath_sed='
11294    /Import File Strings/,/^$/ {
11295	/^0/ {
11296	    s/^0  *\(.*\)$/\1/
11297	    p
11298	}
11299    }'
11300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11301# Check for a 64-bit object if we didn't find anything.
11302if test -z "$aix_libpath"; then
11303  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11304fi
11305else
11306  $as_echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309
11310fi
11311
11312rm -rf conftest.dSYM
11313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11314      conftest$ac_exeext conftest.$ac_ext
11315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11316
11317        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11318        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11319      else
11320	if test "$host_cpu" = ia64; then
11321	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11322	  allow_undefined_flag="-z nodefs"
11323	  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"
11324	else
11325	 # Determine the default libpath from the value encoded in an
11326	 # empty executable.
11327	 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h.  */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h.  */
11333
11334int
11335main ()
11336{
11337
11338  ;
11339  return 0;
11340}
11341_ACEOF
11342rm -f conftest.$ac_objext conftest$ac_exeext
11343if { (ac_try="$ac_link"
11344case "(($ac_try" in
11345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346  *) ac_try_echo=$ac_try;;
11347esac
11348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11349$as_echo "$ac_try_echo") >&5
11350  (eval "$ac_link") 2>conftest.er1
11351  ac_status=$?
11352  grep -v '^ *+' conftest.er1 >conftest.err
11353  rm -f conftest.er1
11354  cat conftest.err >&5
11355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356  (exit $ac_status); } && {
11357	 test -z "$ac_c_werror_flag" ||
11358	 test ! -s conftest.err
11359       } && test -s conftest$ac_exeext && {
11360	 test "$cross_compiling" = yes ||
11361	 $as_test_x conftest$ac_exeext
11362       }; then
11363
11364lt_aix_libpath_sed='
11365    /Import File Strings/,/^$/ {
11366	/^0/ {
11367	    s/^0  *\(.*\)$/\1/
11368	    p
11369	}
11370    }'
11371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372# Check for a 64-bit object if we didn't find anything.
11373if test -z "$aix_libpath"; then
11374  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375fi
11376else
11377  $as_echo "$as_me: failed program was:" >&5
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
11380
11381fi
11382
11383rm -rf conftest.dSYM
11384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11385      conftest$ac_exeext conftest.$ac_ext
11386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11387
11388	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11389	  # Warning - without using the other run time loading flags,
11390	  # -berok will link without error, but may produce a broken library.
11391	  no_undefined_flag=' ${wl}-bernotok'
11392	  allow_undefined_flag=' ${wl}-berok'
11393	  # Exported symbols can be pulled into shared objects from archives
11394	  whole_archive_flag_spec='$convenience'
11395	  archive_cmds_need_lc=yes
11396	  # This is similar to how AIX traditionally builds its shared libraries.
11397	  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'
11398	fi
11399      fi
11400      ;;
11401
11402    amigaos*)
11403      case $host_cpu in
11404      powerpc)
11405            # see comment about AmigaOS4 .so support
11406            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11407            archive_expsym_cmds=''
11408        ;;
11409      m68k)
11410            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)'
11411            hardcode_libdir_flag_spec='-L$libdir'
11412            hardcode_minus_L=yes
11413        ;;
11414      esac
11415      ;;
11416
11417    bsdi[45]*)
11418      export_dynamic_flag_spec=-rdynamic
11419      ;;
11420
11421    cygwin* | mingw* | pw32* | cegcc*)
11422      # When not using gcc, we currently assume that we are using
11423      # Microsoft Visual C++.
11424      # hardcode_libdir_flag_spec is actually meaningless, as there is
11425      # no search path for DLLs.
11426      hardcode_libdir_flag_spec=' '
11427      allow_undefined_flag=unsupported
11428      # Tell ltmain to make .lib files, not .a files.
11429      libext=lib
11430      # Tell ltmain to make .dll files, not .so files.
11431      shrext_cmds=".dll"
11432      # FIXME: Setting linknames here is a bad hack.
11433      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11434      # The linker will automatically build a .lib file if we build a DLL.
11435      old_archive_from_new_cmds='true'
11436      # FIXME: Should let the user specify the lib program.
11437      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11438      fix_srcfile_path='`cygpath -w "$srcfile"`'
11439      enable_shared_with_static_runtimes=yes
11440      ;;
11441
11442    darwin* | rhapsody*)
11443
11444
11445  archive_cmds_need_lc=no
11446  hardcode_direct=no
11447  hardcode_automatic=yes
11448  hardcode_shlibpath_var=unsupported
11449  whole_archive_flag_spec=''
11450  link_all_deplibs=yes
11451  allow_undefined_flag="$_lt_dar_allow_undefined"
11452  case $cc_basename in
11453     ifort*) _lt_dar_can_shared=yes ;;
11454     *) _lt_dar_can_shared=$GCC ;;
11455  esac
11456  if test "$_lt_dar_can_shared" = "yes"; then
11457    output_verbose_link_cmd=echo
11458    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11459    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11460    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}"
11461    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}"
11462
11463  else
11464  ld_shlibs=no
11465  fi
11466
11467      ;;
11468
11469    dgux*)
11470      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471      hardcode_libdir_flag_spec='-L$libdir'
11472      hardcode_shlibpath_var=no
11473      ;;
11474
11475    freebsd1*)
11476      ld_shlibs=no
11477      ;;
11478
11479    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11480    # support.  Future versions do this automatically, but an explicit c++rt0.o
11481    # does not break anything, and helps significantly (at the cost of a little
11482    # extra space).
11483    freebsd2.2*)
11484      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11485      hardcode_libdir_flag_spec='-R$libdir'
11486      hardcode_direct=yes
11487      hardcode_shlibpath_var=no
11488      ;;
11489
11490    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11491    freebsd2*)
11492      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11493      hardcode_direct=yes
11494      hardcode_minus_L=yes
11495      hardcode_shlibpath_var=no
11496      ;;
11497
11498    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11499    freebsd* | dragonfly*)
11500      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11501      hardcode_libdir_flag_spec='-R$libdir'
11502      hardcode_direct=yes
11503      hardcode_shlibpath_var=no
11504      ;;
11505
11506    hpux9*)
11507      if test "$GCC" = yes; then
11508	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'
11509      else
11510	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'
11511      fi
11512      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11513      hardcode_libdir_separator=:
11514      hardcode_direct=yes
11515
11516      # hardcode_minus_L: Not really in the search PATH,
11517      # but as the default location of the library.
11518      hardcode_minus_L=yes
11519      export_dynamic_flag_spec='${wl}-E'
11520      ;;
11521
11522    hpux10*)
11523      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11524	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11525      else
11526	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11527      fi
11528      if test "$with_gnu_ld" = no; then
11529	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530	hardcode_libdir_flag_spec_ld='+b $libdir'
11531	hardcode_libdir_separator=:
11532	hardcode_direct=yes
11533	hardcode_direct_absolute=yes
11534	export_dynamic_flag_spec='${wl}-E'
11535	# hardcode_minus_L: Not really in the search PATH,
11536	# but as the default location of the library.
11537	hardcode_minus_L=yes
11538      fi
11539      ;;
11540
11541    hpux11*)
11542      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11543	case $host_cpu in
11544	hppa*64*)
11545	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11546	  ;;
11547	ia64*)
11548	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11549	  ;;
11550	*)
11551	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11552	  ;;
11553	esac
11554      else
11555	case $host_cpu in
11556	hppa*64*)
11557	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11558	  ;;
11559	ia64*)
11560	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11561	  ;;
11562	*)
11563	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11564	  ;;
11565	esac
11566      fi
11567      if test "$with_gnu_ld" = no; then
11568	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11569	hardcode_libdir_separator=:
11570
11571	case $host_cpu in
11572	hppa*64*|ia64*)
11573	  hardcode_direct=no
11574	  hardcode_shlibpath_var=no
11575	  ;;
11576	*)
11577	  hardcode_direct=yes
11578	  hardcode_direct_absolute=yes
11579	  export_dynamic_flag_spec='${wl}-E'
11580
11581	  # hardcode_minus_L: Not really in the search PATH,
11582	  # but as the default location of the library.
11583	  hardcode_minus_L=yes
11584	  ;;
11585	esac
11586      fi
11587      ;;
11588
11589    irix5* | irix6* | nonstopux*)
11590      if test "$GCC" = yes; then
11591	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11592	# Try to use the -exported_symbol ld option, if it does not
11593	# work, assume that -exports_file does not work either and
11594	# implicitly export all symbols.
11595        save_LDFLAGS="$LDFLAGS"
11596        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11597        cat >conftest.$ac_ext <<_ACEOF
11598int foo(void) {}
11599_ACEOF
11600rm -f conftest.$ac_objext conftest$ac_exeext
11601if { (ac_try="$ac_link"
11602case "(($ac_try" in
11603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604  *) ac_try_echo=$ac_try;;
11605esac
11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11607$as_echo "$ac_try_echo") >&5
11608  (eval "$ac_link") 2>conftest.er1
11609  ac_status=$?
11610  grep -v '^ *+' conftest.er1 >conftest.err
11611  rm -f conftest.er1
11612  cat conftest.err >&5
11613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614  (exit $ac_status); } && {
11615	 test -z "$ac_c_werror_flag" ||
11616	 test ! -s conftest.err
11617       } && test -s conftest$ac_exeext && {
11618	 test "$cross_compiling" = yes ||
11619	 $as_test_x conftest$ac_exeext
11620       }; then
11621  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11622
11623else
11624  $as_echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627
11628fi
11629
11630rm -rf conftest.dSYM
11631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11632      conftest$ac_exeext conftest.$ac_ext
11633        LDFLAGS="$save_LDFLAGS"
11634      else
11635	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11636	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11637      fi
11638      archive_cmds_need_lc='no'
11639      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11640      hardcode_libdir_separator=:
11641      inherit_rpath=yes
11642      link_all_deplibs=yes
11643      ;;
11644
11645    netbsd*)
11646      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11647	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11648      else
11649	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11650      fi
11651      hardcode_libdir_flag_spec='-R$libdir'
11652      hardcode_direct=yes
11653      hardcode_shlibpath_var=no
11654      ;;
11655
11656    newsos6)
11657      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11658      hardcode_direct=yes
11659      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11660      hardcode_libdir_separator=:
11661      hardcode_shlibpath_var=no
11662      ;;
11663
11664    *nto* | *qnx*)
11665      ;;
11666
11667    openbsd*)
11668      if test -f /usr/libexec/ld.so; then
11669	hardcode_direct=yes
11670	hardcode_shlibpath_var=no
11671	hardcode_direct_absolute=yes
11672	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11673	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11674	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11675	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11676	  export_dynamic_flag_spec='${wl}-E'
11677	else
11678	  case $host_os in
11679	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11680	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11681	     hardcode_libdir_flag_spec='-R$libdir'
11682	     ;;
11683	   *)
11684	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11685	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11686	     ;;
11687	  esac
11688	fi
11689      else
11690	ld_shlibs=no
11691      fi
11692      ;;
11693
11694    os2*)
11695      hardcode_libdir_flag_spec='-L$libdir'
11696      hardcode_minus_L=yes
11697      allow_undefined_flag=unsupported
11698      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'
11699      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11700      ;;
11701
11702    osf3*)
11703      if test "$GCC" = yes; then
11704	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11705	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11706      else
11707	allow_undefined_flag=' -expect_unresolved \*'
11708	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11709      fi
11710      archive_cmds_need_lc='no'
11711      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11712      hardcode_libdir_separator=:
11713      ;;
11714
11715    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11716      if test "$GCC" = yes; then
11717	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11718	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11719	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11720      else
11721	allow_undefined_flag=' -expect_unresolved \*'
11722	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11723	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11724	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11725
11726	# Both c and cxx compiler support -rpath directly
11727	hardcode_libdir_flag_spec='-rpath $libdir'
11728      fi
11729      archive_cmds_need_lc='no'
11730      hardcode_libdir_separator=:
11731      ;;
11732
11733    solaris*)
11734      no_undefined_flag=' -z defs'
11735      if test "$GCC" = yes; then
11736	wlarc='${wl}'
11737	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11738	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11739	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11740      else
11741	case `$CC -V 2>&1` in
11742	*"Compilers 5.0"*)
11743	  wlarc=''
11744	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11745	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11746	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11747	  ;;
11748	*)
11749	  wlarc='${wl}'
11750	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11751	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11752	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11753	  ;;
11754	esac
11755      fi
11756      hardcode_libdir_flag_spec='-R$libdir'
11757      hardcode_shlibpath_var=no
11758      case $host_os in
11759      solaris2.[0-5] | solaris2.[0-5].*) ;;
11760      *)
11761	# The compiler driver will combine and reorder linker options,
11762	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11763	# but is careful enough not to reorder.
11764	# Supported since Solaris 2.6 (maybe 2.5.1?)
11765	if test "$GCC" = yes; then
11766	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11767	else
11768	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11769	fi
11770	;;
11771      esac
11772      link_all_deplibs=yes
11773      ;;
11774
11775    sunos4*)
11776      if test "x$host_vendor" = xsequent; then
11777	# Use $CC to link under sequent, because it throws in some extra .o
11778	# files that make .init and .fini sections work.
11779	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11780      else
11781	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11782      fi
11783      hardcode_libdir_flag_spec='-L$libdir'
11784      hardcode_direct=yes
11785      hardcode_minus_L=yes
11786      hardcode_shlibpath_var=no
11787      ;;
11788
11789    sysv4)
11790      case $host_vendor in
11791	sni)
11792	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11793	  hardcode_direct=yes # is this really true???
11794	;;
11795	siemens)
11796	  ## LD is ld it makes a PLAMLIB
11797	  ## CC just makes a GrossModule.
11798	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11799	  reload_cmds='$CC -r -o $output$reload_objs'
11800	  hardcode_direct=no
11801        ;;
11802	motorola)
11803	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11804	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11805	;;
11806      esac
11807      runpath_var='LD_RUN_PATH'
11808      hardcode_shlibpath_var=no
11809      ;;
11810
11811    sysv4.3*)
11812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11813      hardcode_shlibpath_var=no
11814      export_dynamic_flag_spec='-Bexport'
11815      ;;
11816
11817    sysv4*MP*)
11818      if test -d /usr/nec; then
11819	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11820	hardcode_shlibpath_var=no
11821	runpath_var=LD_RUN_PATH
11822	hardcode_runpath_var=yes
11823	ld_shlibs=yes
11824      fi
11825      ;;
11826
11827    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11828      no_undefined_flag='${wl}-z,text'
11829      archive_cmds_need_lc=no
11830      hardcode_shlibpath_var=no
11831      runpath_var='LD_RUN_PATH'
11832
11833      if test "$GCC" = yes; then
11834	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836      else
11837	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839      fi
11840      ;;
11841
11842    sysv5* | sco3.2v5* | sco5v6*)
11843      # Note: We can NOT use -z defs as we might desire, because we do not
11844      # link with -lc, and that would cause any symbols used from libc to
11845      # always be unresolved, which means just about no library would
11846      # ever link correctly.  If we're not using GNU ld we use -z text
11847      # though, which does catch some bad symbols but isn't as heavy-handed
11848      # as -z defs.
11849      no_undefined_flag='${wl}-z,text'
11850      allow_undefined_flag='${wl}-z,nodefs'
11851      archive_cmds_need_lc=no
11852      hardcode_shlibpath_var=no
11853      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11854      hardcode_libdir_separator=':'
11855      link_all_deplibs=yes
11856      export_dynamic_flag_spec='${wl}-Bexport'
11857      runpath_var='LD_RUN_PATH'
11858
11859      if test "$GCC" = yes; then
11860	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862      else
11863	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11864	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865      fi
11866      ;;
11867
11868    uts4*)
11869      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870      hardcode_libdir_flag_spec='-L$libdir'
11871      hardcode_shlibpath_var=no
11872      ;;
11873
11874    *)
11875      ld_shlibs=no
11876      ;;
11877    esac
11878
11879    if test x$host_vendor = xsni; then
11880      case $host in
11881      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11882	export_dynamic_flag_spec='${wl}-Blargedynsym'
11883	;;
11884      esac
11885    fi
11886  fi
11887
11888{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11889$as_echo "$ld_shlibs" >&6; }
11890test "$ld_shlibs" = no && can_build_shared=no
11891
11892with_gnu_ld=$with_gnu_ld
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908#
11909# Do we need to explicitly link libc?
11910#
11911case "x$archive_cmds_need_lc" in
11912x|xyes)
11913  # Assume -lc should be added
11914  archive_cmds_need_lc=yes
11915
11916  if test "$enable_shared" = yes && test "$GCC" = yes; then
11917    case $archive_cmds in
11918    *'~'*)
11919      # FIXME: we may have to deal with multi-command sequences.
11920      ;;
11921    '$CC '*)
11922      # Test whether the compiler implicitly links with -lc since on some
11923      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11924      # to ld, don't add -lc before -lgcc.
11925      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11926$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11927      $RM conftest*
11928      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11929
11930      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931  (eval $ac_compile) 2>&5
11932  ac_status=$?
11933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); } 2>conftest.err; then
11935        soname=conftest
11936        lib=conftest
11937        libobjs=conftest.$ac_objext
11938        deplibs=
11939        wl=$lt_prog_compiler_wl
11940	pic_flag=$lt_prog_compiler_pic
11941        compiler_flags=-v
11942        linker_flags=-v
11943        verstring=
11944        output_objdir=.
11945        libname=conftest
11946        lt_save_allow_undefined_flag=$allow_undefined_flag
11947        allow_undefined_flag=
11948        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11949  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11950  ac_status=$?
11951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952  (exit $ac_status); }
11953        then
11954	  archive_cmds_need_lc=no
11955        else
11956	  archive_cmds_need_lc=yes
11957        fi
11958        allow_undefined_flag=$lt_save_allow_undefined_flag
11959      else
11960        cat conftest.err 1>&5
11961      fi
11962      $RM conftest*
11963      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11964$as_echo "$archive_cmds_need_lc" >&6; }
11965      ;;
11966    esac
11967  fi
11968  ;;
11969esac
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12128$as_echo_n "checking dynamic linker characteristics... " >&6; }
12129
12130if test "$GCC" = yes; then
12131  case $host_os in
12132    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12133    *) lt_awk_arg="/^libraries:/" ;;
12134  esac
12135  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12136  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12137    # if the path contains ";" then we assume it to be the separator
12138    # otherwise default to the standard path separator (i.e. ":") - it is
12139    # assumed that no part of a normal pathname contains ";" but that should
12140    # okay in the real world where ";" in dirpaths is itself problematic.
12141    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12142  else
12143    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12144  fi
12145  # Ok, now we have the path, separated by spaces, we can step through it
12146  # and add multilib dir if necessary.
12147  lt_tmp_lt_search_path_spec=
12148  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12149  for lt_sys_path in $lt_search_path_spec; do
12150    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12151      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12152    else
12153      test -d "$lt_sys_path" && \
12154	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12155    fi
12156  done
12157  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12158BEGIN {RS=" "; FS="/|\n";} {
12159  lt_foo="";
12160  lt_count=0;
12161  for (lt_i = NF; lt_i > 0; lt_i--) {
12162    if ($lt_i != "" && $lt_i != ".") {
12163      if ($lt_i == "..") {
12164        lt_count++;
12165      } else {
12166        if (lt_count == 0) {
12167          lt_foo="/" $lt_i lt_foo;
12168        } else {
12169          lt_count--;
12170        }
12171      }
12172    }
12173  }
12174  if (lt_foo != "") { lt_freq[lt_foo]++; }
12175  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12176}'`
12177  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12178else
12179  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12180fi
12181library_names_spec=
12182libname_spec='lib$name'
12183soname_spec=
12184shrext_cmds=".so"
12185postinstall_cmds=
12186postuninstall_cmds=
12187finish_cmds=
12188finish_eval=
12189shlibpath_var=
12190shlibpath_overrides_runpath=unknown
12191version_type=none
12192dynamic_linker="$host_os ld.so"
12193sys_lib_dlsearch_path_spec="/lib /usr/lib"
12194need_lib_prefix=unknown
12195hardcode_into_libs=no
12196
12197# when you set need_version to no, make sure it does not cause -set_version
12198# flags to be left without arguments
12199need_version=unknown
12200
12201case $host_os in
12202aix3*)
12203  version_type=linux
12204  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12205  shlibpath_var=LIBPATH
12206
12207  # AIX 3 has no versioning support, so we append a major version to the name.
12208  soname_spec='${libname}${release}${shared_ext}$major'
12209  ;;
12210
12211aix[4-9]*)
12212  version_type=linux
12213  need_lib_prefix=no
12214  need_version=no
12215  hardcode_into_libs=yes
12216  if test "$host_cpu" = ia64; then
12217    # AIX 5 supports IA64
12218    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12219    shlibpath_var=LD_LIBRARY_PATH
12220  else
12221    # With GCC up to 2.95.x, collect2 would create an import file
12222    # for dependence libraries.  The import file would start with
12223    # the line `#! .'.  This would cause the generated library to
12224    # depend on `.', always an invalid library.  This was fixed in
12225    # development snapshots of GCC prior to 3.0.
12226    case $host_os in
12227      aix4 | aix4.[01] | aix4.[01].*)
12228      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12229	   echo ' yes '
12230	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12231	:
12232      else
12233	can_build_shared=no
12234      fi
12235      ;;
12236    esac
12237    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12238    # soname into executable. Probably we can add versioning support to
12239    # collect2, so additional links can be useful in future.
12240    if test "$aix_use_runtimelinking" = yes; then
12241      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12242      # instead of lib<name>.a to let people know that these are not
12243      # typical AIX shared libraries.
12244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245    else
12246      # We preserve .a as extension for shared libraries through AIX4.2
12247      # and later when we are not doing run time linking.
12248      library_names_spec='${libname}${release}.a $libname.a'
12249      soname_spec='${libname}${release}${shared_ext}$major'
12250    fi
12251    shlibpath_var=LIBPATH
12252  fi
12253  ;;
12254
12255amigaos*)
12256  case $host_cpu in
12257  powerpc)
12258    # Since July 2007 AmigaOS4 officially supports .so libraries.
12259    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261    ;;
12262  m68k)
12263    library_names_spec='$libname.ixlibrary $libname.a'
12264    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12265    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'
12266    ;;
12267  esac
12268  ;;
12269
12270beos*)
12271  library_names_spec='${libname}${shared_ext}'
12272  dynamic_linker="$host_os ld.so"
12273  shlibpath_var=LIBRARY_PATH
12274  ;;
12275
12276bsdi[45]*)
12277  version_type=linux
12278  need_version=no
12279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280  soname_spec='${libname}${release}${shared_ext}$major'
12281  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12282  shlibpath_var=LD_LIBRARY_PATH
12283  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12284  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12285  # the default ld.so.conf also contains /usr/contrib/lib and
12286  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12287  # libtool to hard-code these into programs
12288  ;;
12289
12290cygwin* | mingw* | pw32* | cegcc*)
12291  version_type=windows
12292  shrext_cmds=".dll"
12293  need_version=no
12294  need_lib_prefix=no
12295
12296  case $GCC,$host_os in
12297  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12298    library_names_spec='$libname.dll.a'
12299    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12300    postinstall_cmds='base_file=`basename \${file}`~
12301      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12302      dldir=$destdir/`dirname \$dlpath`~
12303      test -d \$dldir || mkdir -p \$dldir~
12304      $install_prog $dir/$dlname \$dldir/$dlname~
12305      chmod a+x \$dldir/$dlname~
12306      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12307        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12308      fi'
12309    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12310      dlpath=$dir/\$dldll~
12311       $RM \$dlpath'
12312    shlibpath_overrides_runpath=yes
12313
12314    case $host_os in
12315    cygwin*)
12316      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12317      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12318      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12319      ;;
12320    mingw* | cegcc*)
12321      # MinGW DLLs use traditional 'lib' prefix
12322      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12323      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12324      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12325        # It is most probably a Windows format PATH printed by
12326        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12327        # path with ; separators, and with drive letters. We can handle the
12328        # drive letters (cygwin fileutils understands them), so leave them,
12329        # especially as we might pass files found there to a mingw objdump,
12330        # which wouldn't understand a cygwinified path. Ahh.
12331        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12332      else
12333        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12334      fi
12335      ;;
12336    pw32*)
12337      # pw32 DLLs use 'pw' prefix rather than 'lib'
12338      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12339      ;;
12340    esac
12341    ;;
12342
12343  *)
12344    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12345    ;;
12346  esac
12347  dynamic_linker='Win32 ld.exe'
12348  # FIXME: first we should search . and the directory the executable is in
12349  shlibpath_var=PATH
12350  ;;
12351
12352darwin* | rhapsody*)
12353  dynamic_linker="$host_os dyld"
12354  version_type=darwin
12355  need_lib_prefix=no
12356  need_version=no
12357  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12358  soname_spec='${libname}${release}${major}$shared_ext'
12359  shlibpath_overrides_runpath=yes
12360  shlibpath_var=DYLD_LIBRARY_PATH
12361  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12362
12363  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12364  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12365  ;;
12366
12367dgux*)
12368  version_type=linux
12369  need_lib_prefix=no
12370  need_version=no
12371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12372  soname_spec='${libname}${release}${shared_ext}$major'
12373  shlibpath_var=LD_LIBRARY_PATH
12374  ;;
12375
12376freebsd1*)
12377  dynamic_linker=no
12378  ;;
12379
12380freebsd* | dragonfly*)
12381  # DragonFly does not have aout.  When/if they implement a new
12382  # versioning mechanism, adjust this.
12383  if test -x /usr/bin/objformat; then
12384    objformat=`/usr/bin/objformat`
12385  else
12386    case $host_os in
12387    freebsd[123]*) objformat=aout ;;
12388    *) objformat=elf ;;
12389    esac
12390  fi
12391  version_type=freebsd-$objformat
12392  case $version_type in
12393    freebsd-elf*)
12394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12395      need_version=no
12396      need_lib_prefix=no
12397      ;;
12398    freebsd-*)
12399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12400      need_version=yes
12401      ;;
12402  esac
12403  shlibpath_var=LD_LIBRARY_PATH
12404  case $host_os in
12405  freebsd2*)
12406    shlibpath_overrides_runpath=yes
12407    ;;
12408  freebsd3.[01]* | freebsdelf3.[01]*)
12409    shlibpath_overrides_runpath=yes
12410    hardcode_into_libs=yes
12411    ;;
12412  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12413  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12414    shlibpath_overrides_runpath=no
12415    hardcode_into_libs=yes
12416    ;;
12417  *) # from 4.6 on, and DragonFly
12418    shlibpath_overrides_runpath=yes
12419    hardcode_into_libs=yes
12420    ;;
12421  esac
12422  ;;
12423
12424gnu*)
12425  version_type=linux
12426  need_lib_prefix=no
12427  need_version=no
12428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12429  soname_spec='${libname}${release}${shared_ext}$major'
12430  shlibpath_var=LD_LIBRARY_PATH
12431  hardcode_into_libs=yes
12432  ;;
12433
12434hpux9* | hpux10* | hpux11*)
12435  # Give a soname corresponding to the major version so that dld.sl refuses to
12436  # link against other versions.
12437  version_type=sunos
12438  need_lib_prefix=no
12439  need_version=no
12440  case $host_cpu in
12441  ia64*)
12442    shrext_cmds='.so'
12443    hardcode_into_libs=yes
12444    dynamic_linker="$host_os dld.so"
12445    shlibpath_var=LD_LIBRARY_PATH
12446    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12447    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12448    soname_spec='${libname}${release}${shared_ext}$major'
12449    if test "X$HPUX_IA64_MODE" = X32; then
12450      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12451    else
12452      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12453    fi
12454    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12455    ;;
12456  hppa*64*)
12457    shrext_cmds='.sl'
12458    hardcode_into_libs=yes
12459    dynamic_linker="$host_os dld.sl"
12460    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12461    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463    soname_spec='${libname}${release}${shared_ext}$major'
12464    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12465    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12466    ;;
12467  *)
12468    shrext_cmds='.sl'
12469    dynamic_linker="$host_os dld.sl"
12470    shlibpath_var=SHLIB_PATH
12471    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12472    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473    soname_spec='${libname}${release}${shared_ext}$major'
12474    ;;
12475  esac
12476  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12477  postinstall_cmds='chmod 555 $lib'
12478  ;;
12479
12480interix[3-9]*)
12481  version_type=linux
12482  need_lib_prefix=no
12483  need_version=no
12484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12485  soname_spec='${libname}${release}${shared_ext}$major'
12486  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12487  shlibpath_var=LD_LIBRARY_PATH
12488  shlibpath_overrides_runpath=no
12489  hardcode_into_libs=yes
12490  ;;
12491
12492irix5* | irix6* | nonstopux*)
12493  case $host_os in
12494    nonstopux*) version_type=nonstopux ;;
12495    *)
12496	if test "$lt_cv_prog_gnu_ld" = yes; then
12497		version_type=linux
12498	else
12499		version_type=irix
12500	fi ;;
12501  esac
12502  need_lib_prefix=no
12503  need_version=no
12504  soname_spec='${libname}${release}${shared_ext}$major'
12505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12506  case $host_os in
12507  irix5* | nonstopux*)
12508    libsuff= shlibsuff=
12509    ;;
12510  *)
12511    case $LD in # libtool.m4 will add one of these switches to LD
12512    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12513      libsuff= shlibsuff= libmagic=32-bit;;
12514    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12515      libsuff=32 shlibsuff=N32 libmagic=N32;;
12516    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12517      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12518    *) libsuff= shlibsuff= libmagic=never-match;;
12519    esac
12520    ;;
12521  esac
12522  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12523  shlibpath_overrides_runpath=no
12524  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12525  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12526  hardcode_into_libs=yes
12527  ;;
12528
12529# No shared lib support for Linux oldld, aout, or coff.
12530linux*oldld* | linux*aout* | linux*coff*)
12531  dynamic_linker=no
12532  ;;
12533
12534# This must be Linux ELF.
12535linux* | k*bsd*-gnu)
12536  version_type=linux
12537  need_lib_prefix=no
12538  need_version=no
12539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540  soname_spec='${libname}${release}${shared_ext}$major'
12541  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12542  shlibpath_var=LD_LIBRARY_PATH
12543  shlibpath_overrides_runpath=no
12544  # Some binutils ld are patched to set DT_RUNPATH
12545  save_LDFLAGS=$LDFLAGS
12546  save_libdir=$libdir
12547  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12548       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12549  cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h.  */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h.  */
12555
12556int
12557main ()
12558{
12559
12560  ;
12561  return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext conftest$ac_exeext
12565if { (ac_try="$ac_link"
12566case "(($ac_try" in
12567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568  *) ac_try_echo=$ac_try;;
12569esac
12570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12571$as_echo "$ac_try_echo") >&5
12572  (eval "$ac_link") 2>conftest.er1
12573  ac_status=$?
12574  grep -v '^ *+' conftest.er1 >conftest.err
12575  rm -f conftest.er1
12576  cat conftest.err >&5
12577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578  (exit $ac_status); } && {
12579	 test -z "$ac_c_werror_flag" ||
12580	 test ! -s conftest.err
12581       } && test -s conftest$ac_exeext && {
12582	 test "$cross_compiling" = yes ||
12583	 $as_test_x conftest$ac_exeext
12584       }; then
12585  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12586  shlibpath_overrides_runpath=yes
12587fi
12588
12589else
12590  $as_echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593
12594fi
12595
12596rm -rf conftest.dSYM
12597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598      conftest$ac_exeext conftest.$ac_ext
12599  LDFLAGS=$save_LDFLAGS
12600  libdir=$save_libdir
12601
12602  # This implies no fast_install, which is unacceptable.
12603  # Some rework will be needed to allow for fast_install
12604  # before this can be enabled.
12605  hardcode_into_libs=yes
12606
12607  # Append ld.so.conf contents to the search path
12608  if test -f /etc/ld.so.conf; then
12609    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' ' '`
12610    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12611  fi
12612
12613  # We used to test for /lib/ld.so.1 and disable shared libraries on
12614  # powerpc, because MkLinux only supported shared libraries with the
12615  # GNU dynamic linker.  Since this was broken with cross compilers,
12616  # most powerpc-linux boxes support dynamic linking these days and
12617  # people can always --disable-shared, the test was removed, and we
12618  # assume the GNU/Linux dynamic linker is in use.
12619  dynamic_linker='GNU/Linux ld.so'
12620  ;;
12621
12622netbsd*)
12623  version_type=sunos
12624  need_lib_prefix=no
12625  need_version=no
12626  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12628    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12629    dynamic_linker='NetBSD (a.out) ld.so'
12630  else
12631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12632    soname_spec='${libname}${release}${shared_ext}$major'
12633    dynamic_linker='NetBSD ld.elf_so'
12634  fi
12635  shlibpath_var=LD_LIBRARY_PATH
12636  shlibpath_overrides_runpath=yes
12637  hardcode_into_libs=yes
12638  ;;
12639
12640newsos6)
12641  version_type=linux
12642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643  shlibpath_var=LD_LIBRARY_PATH
12644  shlibpath_overrides_runpath=yes
12645  ;;
12646
12647*nto* | *qnx*)
12648  version_type=qnx
12649  need_lib_prefix=no
12650  need_version=no
12651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652  soname_spec='${libname}${release}${shared_ext}$major'
12653  shlibpath_var=LD_LIBRARY_PATH
12654  shlibpath_overrides_runpath=no
12655  hardcode_into_libs=yes
12656  dynamic_linker='ldqnx.so'
12657  ;;
12658
12659openbsd*)
12660  version_type=sunos
12661  sys_lib_dlsearch_path_spec="/usr/lib"
12662  need_lib_prefix=no
12663  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12664  case $host_os in
12665    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12666    *)				need_version=no  ;;
12667  esac
12668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12669  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12670  shlibpath_var=LD_LIBRARY_PATH
12671  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12672    case $host_os in
12673      openbsd2.[89] | openbsd2.[89].*)
12674	shlibpath_overrides_runpath=no
12675	;;
12676      *)
12677	shlibpath_overrides_runpath=yes
12678	;;
12679      esac
12680  else
12681    shlibpath_overrides_runpath=yes
12682  fi
12683  ;;
12684
12685os2*)
12686  libname_spec='$name'
12687  shrext_cmds=".dll"
12688  need_lib_prefix=no
12689  library_names_spec='$libname${shared_ext} $libname.a'
12690  dynamic_linker='OS/2 ld.exe'
12691  shlibpath_var=LIBPATH
12692  ;;
12693
12694osf3* | osf4* | osf5*)
12695  version_type=osf
12696  need_lib_prefix=no
12697  need_version=no
12698  soname_spec='${libname}${release}${shared_ext}$major'
12699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700  shlibpath_var=LD_LIBRARY_PATH
12701  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12702  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12703  ;;
12704
12705rdos*)
12706  dynamic_linker=no
12707  ;;
12708
12709solaris*)
12710  version_type=linux
12711  need_lib_prefix=no
12712  need_version=no
12713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714  soname_spec='${libname}${release}${shared_ext}$major'
12715  shlibpath_var=LD_LIBRARY_PATH
12716  shlibpath_overrides_runpath=yes
12717  hardcode_into_libs=yes
12718  # ldd complains unless libraries are executable
12719  postinstall_cmds='chmod +x $lib'
12720  ;;
12721
12722sunos4*)
12723  version_type=sunos
12724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12725  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12726  shlibpath_var=LD_LIBRARY_PATH
12727  shlibpath_overrides_runpath=yes
12728  if test "$with_gnu_ld" = yes; then
12729    need_lib_prefix=no
12730  fi
12731  need_version=yes
12732  ;;
12733
12734sysv4 | sysv4.3*)
12735  version_type=linux
12736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737  soname_spec='${libname}${release}${shared_ext}$major'
12738  shlibpath_var=LD_LIBRARY_PATH
12739  case $host_vendor in
12740    sni)
12741      shlibpath_overrides_runpath=no
12742      need_lib_prefix=no
12743      runpath_var=LD_RUN_PATH
12744      ;;
12745    siemens)
12746      need_lib_prefix=no
12747      ;;
12748    motorola)
12749      need_lib_prefix=no
12750      need_version=no
12751      shlibpath_overrides_runpath=no
12752      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12753      ;;
12754  esac
12755  ;;
12756
12757sysv4*MP*)
12758  if test -d /usr/nec ;then
12759    version_type=linux
12760    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12761    soname_spec='$libname${shared_ext}.$major'
12762    shlibpath_var=LD_LIBRARY_PATH
12763  fi
12764  ;;
12765
12766sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12767  version_type=freebsd-elf
12768  need_lib_prefix=no
12769  need_version=no
12770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12771  soname_spec='${libname}${release}${shared_ext}$major'
12772  shlibpath_var=LD_LIBRARY_PATH
12773  shlibpath_overrides_runpath=yes
12774  hardcode_into_libs=yes
12775  if test "$with_gnu_ld" = yes; then
12776    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12777  else
12778    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12779    case $host_os in
12780      sco3.2v5*)
12781        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12782	;;
12783    esac
12784  fi
12785  sys_lib_dlsearch_path_spec='/usr/lib'
12786  ;;
12787
12788tpf*)
12789  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12790  version_type=linux
12791  need_lib_prefix=no
12792  need_version=no
12793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794  shlibpath_var=LD_LIBRARY_PATH
12795  shlibpath_overrides_runpath=no
12796  hardcode_into_libs=yes
12797  ;;
12798
12799uts4*)
12800  version_type=linux
12801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802  soname_spec='${libname}${release}${shared_ext}$major'
12803  shlibpath_var=LD_LIBRARY_PATH
12804  ;;
12805
12806*)
12807  dynamic_linker=no
12808  ;;
12809esac
12810{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12811$as_echo "$dynamic_linker" >&6; }
12812test "$dynamic_linker" = no && can_build_shared=no
12813
12814variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12815if test "$GCC" = yes; then
12816  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12817fi
12818
12819if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12820  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12821fi
12822if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12823  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12824fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12913$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12914hardcode_action=
12915if test -n "$hardcode_libdir_flag_spec" ||
12916   test -n "$runpath_var" ||
12917   test "X$hardcode_automatic" = "Xyes" ; then
12918
12919  # We can hardcode non-existent directories.
12920  if test "$hardcode_direct" != no &&
12921     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12922     # have to relink, otherwise we might link with an installed library
12923     # when we should be linking with a yet-to-be-installed one
12924     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12925     test "$hardcode_minus_L" != no; then
12926    # Linking always hardcodes the temporary library directory.
12927    hardcode_action=relink
12928  else
12929    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12930    hardcode_action=immediate
12931  fi
12932else
12933  # We cannot hardcode anything, or else we can only hardcode existing
12934  # directories.
12935  hardcode_action=unsupported
12936fi
12937{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12938$as_echo "$hardcode_action" >&6; }
12939
12940if test "$hardcode_action" = relink ||
12941   test "$inherit_rpath" = yes; then
12942  # Fast installation is not supported
12943  enable_fast_install=no
12944elif test "$shlibpath_overrides_runpath" = yes ||
12945     test "$enable_shared" = no; then
12946  # Fast installation is not necessary
12947  enable_fast_install=needless
12948fi
12949
12950
12951
12952
12953
12954
12955  if test "x$enable_dlopen" != xyes; then
12956  enable_dlopen=unknown
12957  enable_dlopen_self=unknown
12958  enable_dlopen_self_static=unknown
12959else
12960  lt_cv_dlopen=no
12961  lt_cv_dlopen_libs=
12962
12963  case $host_os in
12964  beos*)
12965    lt_cv_dlopen="load_add_on"
12966    lt_cv_dlopen_libs=
12967    lt_cv_dlopen_self=yes
12968    ;;
12969
12970  mingw* | pw32* | cegcc*)
12971    lt_cv_dlopen="LoadLibrary"
12972    lt_cv_dlopen_libs=
12973    ;;
12974
12975  cygwin*)
12976    lt_cv_dlopen="dlopen"
12977    lt_cv_dlopen_libs=
12978    ;;
12979
12980  darwin*)
12981  # if libdl is installed we need to link against it
12982    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12983$as_echo_n "checking for dlopen in -ldl... " >&6; }
12984if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12985  $as_echo_n "(cached) " >&6
12986else
12987  ac_check_lib_save_LIBS=$LIBS
12988LIBS="-ldl  $LIBS"
12989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h.  */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h.  */
12995
12996/* Override any GCC internal prototype to avoid an error.
12997   Use char because int might match the return type of a GCC
12998   builtin and then its argument prototype would still apply.  */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002char dlopen ();
13003int
13004main ()
13005{
13006return dlopen ();
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011rm -f conftest.$ac_objext conftest$ac_exeext
13012if { (ac_try="$ac_link"
13013case "(($ac_try" in
13014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015  *) ac_try_echo=$ac_try;;
13016esac
13017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018$as_echo "$ac_try_echo") >&5
13019  (eval "$ac_link") 2>conftest.er1
13020  ac_status=$?
13021  grep -v '^ *+' conftest.er1 >conftest.err
13022  rm -f conftest.er1
13023  cat conftest.err >&5
13024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025  (exit $ac_status); } && {
13026	 test -z "$ac_c_werror_flag" ||
13027	 test ! -s conftest.err
13028       } && test -s conftest$ac_exeext && {
13029	 test "$cross_compiling" = yes ||
13030	 $as_test_x conftest$ac_exeext
13031       }; then
13032  ac_cv_lib_dl_dlopen=yes
13033else
13034  $as_echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
13037	ac_cv_lib_dl_dlopen=no
13038fi
13039
13040rm -rf conftest.dSYM
13041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13042      conftest$ac_exeext conftest.$ac_ext
13043LIBS=$ac_check_lib_save_LIBS
13044fi
13045{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13046$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13047if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13048  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13049else
13050
13051    lt_cv_dlopen="dyld"
13052    lt_cv_dlopen_libs=
13053    lt_cv_dlopen_self=yes
13054
13055fi
13056
13057    ;;
13058
13059  *)
13060    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13061$as_echo_n "checking for shl_load... " >&6; }
13062if test "${ac_cv_func_shl_load+set}" = set; then
13063  $as_echo_n "(cached) " >&6
13064else
13065  cat >conftest.$ac_ext <<_ACEOF
13066/* confdefs.h.  */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h.  */
13071/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13072   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13073#define shl_load innocuous_shl_load
13074
13075/* System header to define __stub macros and hopefully few prototypes,
13076    which can conflict with char shl_load (); below.
13077    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13078    <limits.h> exists even on freestanding compilers.  */
13079
13080#ifdef __STDC__
13081# include <limits.h>
13082#else
13083# include <assert.h>
13084#endif
13085
13086#undef shl_load
13087
13088/* Override any GCC internal prototype to avoid an error.
13089   Use char because int might match the return type of a GCC
13090   builtin and then its argument prototype would still apply.  */
13091#ifdef __cplusplus
13092extern "C"
13093#endif
13094char shl_load ();
13095/* The GNU C library defines this for functions which it implements
13096    to always fail with ENOSYS.  Some functions are actually named
13097    something starting with __ and the normal name is an alias.  */
13098#if defined __stub_shl_load || defined __stub___shl_load
13099choke me
13100#endif
13101
13102int
13103main ()
13104{
13105return shl_load ();
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110rm -f conftest.$ac_objext conftest$ac_exeext
13111if { (ac_try="$ac_link"
13112case "(($ac_try" in
13113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114  *) ac_try_echo=$ac_try;;
13115esac
13116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117$as_echo "$ac_try_echo") >&5
13118  (eval "$ac_link") 2>conftest.er1
13119  ac_status=$?
13120  grep -v '^ *+' conftest.er1 >conftest.err
13121  rm -f conftest.er1
13122  cat conftest.err >&5
13123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124  (exit $ac_status); } && {
13125	 test -z "$ac_c_werror_flag" ||
13126	 test ! -s conftest.err
13127       } && test -s conftest$ac_exeext && {
13128	 test "$cross_compiling" = yes ||
13129	 $as_test_x conftest$ac_exeext
13130       }; then
13131  ac_cv_func_shl_load=yes
13132else
13133  $as_echo "$as_me: failed program was:" >&5
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
13136	ac_cv_func_shl_load=no
13137fi
13138
13139rm -rf conftest.dSYM
13140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13141      conftest$ac_exeext conftest.$ac_ext
13142fi
13143{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13144$as_echo "$ac_cv_func_shl_load" >&6; }
13145if test "x$ac_cv_func_shl_load" = x""yes; then
13146  lt_cv_dlopen="shl_load"
13147else
13148  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13149$as_echo_n "checking for shl_load in -ldld... " >&6; }
13150if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13151  $as_echo_n "(cached) " >&6
13152else
13153  ac_check_lib_save_LIBS=$LIBS
13154LIBS="-ldld  $LIBS"
13155cat >conftest.$ac_ext <<_ACEOF
13156/* confdefs.h.  */
13157_ACEOF
13158cat confdefs.h >>conftest.$ac_ext
13159cat >>conftest.$ac_ext <<_ACEOF
13160/* end confdefs.h.  */
13161
13162/* Override any GCC internal prototype to avoid an error.
13163   Use char because int might match the return type of a GCC
13164   builtin and then its argument prototype would still apply.  */
13165#ifdef __cplusplus
13166extern "C"
13167#endif
13168char shl_load ();
13169int
13170main ()
13171{
13172return shl_load ();
13173  ;
13174  return 0;
13175}
13176_ACEOF
13177rm -f conftest.$ac_objext conftest$ac_exeext
13178if { (ac_try="$ac_link"
13179case "(($ac_try" in
13180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181  *) ac_try_echo=$ac_try;;
13182esac
13183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184$as_echo "$ac_try_echo") >&5
13185  (eval "$ac_link") 2>conftest.er1
13186  ac_status=$?
13187  grep -v '^ *+' conftest.er1 >conftest.err
13188  rm -f conftest.er1
13189  cat conftest.err >&5
13190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191  (exit $ac_status); } && {
13192	 test -z "$ac_c_werror_flag" ||
13193	 test ! -s conftest.err
13194       } && test -s conftest$ac_exeext && {
13195	 test "$cross_compiling" = yes ||
13196	 $as_test_x conftest$ac_exeext
13197       }; then
13198  ac_cv_lib_dld_shl_load=yes
13199else
13200  $as_echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
13203	ac_cv_lib_dld_shl_load=no
13204fi
13205
13206rm -rf conftest.dSYM
13207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13208      conftest$ac_exeext conftest.$ac_ext
13209LIBS=$ac_check_lib_save_LIBS
13210fi
13211{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13212$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13213if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13214  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13215else
13216  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13217$as_echo_n "checking for dlopen... " >&6; }
13218if test "${ac_cv_func_dlopen+set}" = set; then
13219  $as_echo_n "(cached) " >&6
13220else
13221  cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h.  */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h.  */
13227/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13229#define dlopen innocuous_dlopen
13230
13231/* System header to define __stub macros and hopefully few prototypes,
13232    which can conflict with char dlopen (); below.
13233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234    <limits.h> exists even on freestanding compilers.  */
13235
13236#ifdef __STDC__
13237# include <limits.h>
13238#else
13239# include <assert.h>
13240#endif
13241
13242#undef dlopen
13243
13244/* Override any GCC internal prototype to avoid an error.
13245   Use char because int might match the return type of a GCC
13246   builtin and then its argument prototype would still apply.  */
13247#ifdef __cplusplus
13248extern "C"
13249#endif
13250char dlopen ();
13251/* The GNU C library defines this for functions which it implements
13252    to always fail with ENOSYS.  Some functions are actually named
13253    something starting with __ and the normal name is an alias.  */
13254#if defined __stub_dlopen || defined __stub___dlopen
13255choke me
13256#endif
13257
13258int
13259main ()
13260{
13261return dlopen ();
13262  ;
13263  return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext conftest$ac_exeext
13267if { (ac_try="$ac_link"
13268case "(($ac_try" in
13269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270  *) ac_try_echo=$ac_try;;
13271esac
13272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273$as_echo "$ac_try_echo") >&5
13274  (eval "$ac_link") 2>conftest.er1
13275  ac_status=$?
13276  grep -v '^ *+' conftest.er1 >conftest.err
13277  rm -f conftest.er1
13278  cat conftest.err >&5
13279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); } && {
13281	 test -z "$ac_c_werror_flag" ||
13282	 test ! -s conftest.err
13283       } && test -s conftest$ac_exeext && {
13284	 test "$cross_compiling" = yes ||
13285	 $as_test_x conftest$ac_exeext
13286       }; then
13287  ac_cv_func_dlopen=yes
13288else
13289  $as_echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292	ac_cv_func_dlopen=no
13293fi
13294
13295rm -rf conftest.dSYM
13296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13297      conftest$ac_exeext conftest.$ac_ext
13298fi
13299{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13300$as_echo "$ac_cv_func_dlopen" >&6; }
13301if test "x$ac_cv_func_dlopen" = x""yes; then
13302  lt_cv_dlopen="dlopen"
13303else
13304  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13305$as_echo_n "checking for dlopen in -ldl... " >&6; }
13306if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13307  $as_echo_n "(cached) " >&6
13308else
13309  ac_check_lib_save_LIBS=$LIBS
13310LIBS="-ldl  $LIBS"
13311cat >conftest.$ac_ext <<_ACEOF
13312/* confdefs.h.  */
13313_ACEOF
13314cat confdefs.h >>conftest.$ac_ext
13315cat >>conftest.$ac_ext <<_ACEOF
13316/* end confdefs.h.  */
13317
13318/* Override any GCC internal prototype to avoid an error.
13319   Use char because int might match the return type of a GCC
13320   builtin and then its argument prototype would still apply.  */
13321#ifdef __cplusplus
13322extern "C"
13323#endif
13324char dlopen ();
13325int
13326main ()
13327{
13328return dlopen ();
13329  ;
13330  return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext conftest$ac_exeext
13334if { (ac_try="$ac_link"
13335case "(($ac_try" in
13336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337  *) ac_try_echo=$ac_try;;
13338esac
13339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340$as_echo "$ac_try_echo") >&5
13341  (eval "$ac_link") 2>conftest.er1
13342  ac_status=$?
13343  grep -v '^ *+' conftest.er1 >conftest.err
13344  rm -f conftest.er1
13345  cat conftest.err >&5
13346  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347  (exit $ac_status); } && {
13348	 test -z "$ac_c_werror_flag" ||
13349	 test ! -s conftest.err
13350       } && test -s conftest$ac_exeext && {
13351	 test "$cross_compiling" = yes ||
13352	 $as_test_x conftest$ac_exeext
13353       }; then
13354  ac_cv_lib_dl_dlopen=yes
13355else
13356  $as_echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
13359	ac_cv_lib_dl_dlopen=no
13360fi
13361
13362rm -rf conftest.dSYM
13363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13364      conftest$ac_exeext conftest.$ac_ext
13365LIBS=$ac_check_lib_save_LIBS
13366fi
13367{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13368$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13369if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13370  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13371else
13372  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13373$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13374if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13375  $as_echo_n "(cached) " >&6
13376else
13377  ac_check_lib_save_LIBS=$LIBS
13378LIBS="-lsvld  $LIBS"
13379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h.  */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
13384/* end confdefs.h.  */
13385
13386/* Override any GCC internal prototype to avoid an error.
13387   Use char because int might match the return type of a GCC
13388   builtin and then its argument prototype would still apply.  */
13389#ifdef __cplusplus
13390extern "C"
13391#endif
13392char dlopen ();
13393int
13394main ()
13395{
13396return dlopen ();
13397  ;
13398  return 0;
13399}
13400_ACEOF
13401rm -f conftest.$ac_objext conftest$ac_exeext
13402if { (ac_try="$ac_link"
13403case "(($ac_try" in
13404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405  *) ac_try_echo=$ac_try;;
13406esac
13407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408$as_echo "$ac_try_echo") >&5
13409  (eval "$ac_link") 2>conftest.er1
13410  ac_status=$?
13411  grep -v '^ *+' conftest.er1 >conftest.err
13412  rm -f conftest.er1
13413  cat conftest.err >&5
13414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); } && {
13416	 test -z "$ac_c_werror_flag" ||
13417	 test ! -s conftest.err
13418       } && test -s conftest$ac_exeext && {
13419	 test "$cross_compiling" = yes ||
13420	 $as_test_x conftest$ac_exeext
13421       }; then
13422  ac_cv_lib_svld_dlopen=yes
13423else
13424  $as_echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
13426
13427	ac_cv_lib_svld_dlopen=no
13428fi
13429
13430rm -rf conftest.dSYM
13431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13432      conftest$ac_exeext conftest.$ac_ext
13433LIBS=$ac_check_lib_save_LIBS
13434fi
13435{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13436$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13437if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13438  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13439else
13440  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13441$as_echo_n "checking for dld_link in -ldld... " >&6; }
13442if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13443  $as_echo_n "(cached) " >&6
13444else
13445  ac_check_lib_save_LIBS=$LIBS
13446LIBS="-ldld  $LIBS"
13447cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h.  */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h.  */
13453
13454/* Override any GCC internal prototype to avoid an error.
13455   Use char because int might match the return type of a GCC
13456   builtin and then its argument prototype would still apply.  */
13457#ifdef __cplusplus
13458extern "C"
13459#endif
13460char dld_link ();
13461int
13462main ()
13463{
13464return dld_link ();
13465  ;
13466  return 0;
13467}
13468_ACEOF
13469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (ac_try="$ac_link"
13471case "(($ac_try" in
13472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473  *) ac_try_echo=$ac_try;;
13474esac
13475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13476$as_echo "$ac_try_echo") >&5
13477  (eval "$ac_link") 2>conftest.er1
13478  ac_status=$?
13479  grep -v '^ *+' conftest.er1 >conftest.err
13480  rm -f conftest.er1
13481  cat conftest.err >&5
13482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483  (exit $ac_status); } && {
13484	 test -z "$ac_c_werror_flag" ||
13485	 test ! -s conftest.err
13486       } && test -s conftest$ac_exeext && {
13487	 test "$cross_compiling" = yes ||
13488	 $as_test_x conftest$ac_exeext
13489       }; then
13490  ac_cv_lib_dld_dld_link=yes
13491else
13492  $as_echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495	ac_cv_lib_dld_dld_link=no
13496fi
13497
13498rm -rf conftest.dSYM
13499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500      conftest$ac_exeext conftest.$ac_ext
13501LIBS=$ac_check_lib_save_LIBS
13502fi
13503{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13504$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13505if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13506  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13507fi
13508
13509
13510fi
13511
13512
13513fi
13514
13515
13516fi
13517
13518
13519fi
13520
13521
13522fi
13523
13524    ;;
13525  esac
13526
13527  if test "x$lt_cv_dlopen" != xno; then
13528    enable_dlopen=yes
13529  else
13530    enable_dlopen=no
13531  fi
13532
13533  case $lt_cv_dlopen in
13534  dlopen)
13535    save_CPPFLAGS="$CPPFLAGS"
13536    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13537
13538    save_LDFLAGS="$LDFLAGS"
13539    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13540
13541    save_LIBS="$LIBS"
13542    LIBS="$lt_cv_dlopen_libs $LIBS"
13543
13544    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13545$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13546if test "${lt_cv_dlopen_self+set}" = set; then
13547  $as_echo_n "(cached) " >&6
13548else
13549  	  if test "$cross_compiling" = yes; then :
13550  lt_cv_dlopen_self=cross
13551else
13552  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13553  lt_status=$lt_dlunknown
13554  cat > conftest.$ac_ext <<_LT_EOF
13555#line 13555 "configure"
13556#include "confdefs.h"
13557
13558#if HAVE_DLFCN_H
13559#include <dlfcn.h>
13560#endif
13561
13562#include <stdio.h>
13563
13564#ifdef RTLD_GLOBAL
13565#  define LT_DLGLOBAL		RTLD_GLOBAL
13566#else
13567#  ifdef DL_GLOBAL
13568#    define LT_DLGLOBAL		DL_GLOBAL
13569#  else
13570#    define LT_DLGLOBAL		0
13571#  endif
13572#endif
13573
13574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13575   find out it does not work in some platform. */
13576#ifndef LT_DLLAZY_OR_NOW
13577#  ifdef RTLD_LAZY
13578#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13579#  else
13580#    ifdef DL_LAZY
13581#      define LT_DLLAZY_OR_NOW		DL_LAZY
13582#    else
13583#      ifdef RTLD_NOW
13584#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13585#      else
13586#        ifdef DL_NOW
13587#          define LT_DLLAZY_OR_NOW	DL_NOW
13588#        else
13589#          define LT_DLLAZY_OR_NOW	0
13590#        endif
13591#      endif
13592#    endif
13593#  endif
13594#endif
13595
13596void fnord() { int i=42;}
13597int main ()
13598{
13599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13600  int status = $lt_dlunknown;
13601
13602  if (self)
13603    {
13604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13606      /* dlclose (self); */
13607    }
13608  else
13609    puts (dlerror ());
13610
13611  return status;
13612}
13613_LT_EOF
13614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615  (eval $ac_link) 2>&5
13616  ac_status=$?
13617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13619    (./conftest; exit; ) >&5 2>/dev/null
13620    lt_status=$?
13621    case x$lt_status in
13622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13624      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13625    esac
13626  else :
13627    # compilation failed
13628    lt_cv_dlopen_self=no
13629  fi
13630fi
13631rm -fr conftest*
13632
13633
13634fi
13635{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13636$as_echo "$lt_cv_dlopen_self" >&6; }
13637
13638    if test "x$lt_cv_dlopen_self" = xyes; then
13639      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13640      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13641$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13642if test "${lt_cv_dlopen_self_static+set}" = set; then
13643  $as_echo_n "(cached) " >&6
13644else
13645  	  if test "$cross_compiling" = yes; then :
13646  lt_cv_dlopen_self_static=cross
13647else
13648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13649  lt_status=$lt_dlunknown
13650  cat > conftest.$ac_ext <<_LT_EOF
13651#line 13651 "configure"
13652#include "confdefs.h"
13653
13654#if HAVE_DLFCN_H
13655#include <dlfcn.h>
13656#endif
13657
13658#include <stdio.h>
13659
13660#ifdef RTLD_GLOBAL
13661#  define LT_DLGLOBAL		RTLD_GLOBAL
13662#else
13663#  ifdef DL_GLOBAL
13664#    define LT_DLGLOBAL		DL_GLOBAL
13665#  else
13666#    define LT_DLGLOBAL		0
13667#  endif
13668#endif
13669
13670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13671   find out it does not work in some platform. */
13672#ifndef LT_DLLAZY_OR_NOW
13673#  ifdef RTLD_LAZY
13674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13675#  else
13676#    ifdef DL_LAZY
13677#      define LT_DLLAZY_OR_NOW		DL_LAZY
13678#    else
13679#      ifdef RTLD_NOW
13680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13681#      else
13682#        ifdef DL_NOW
13683#          define LT_DLLAZY_OR_NOW	DL_NOW
13684#        else
13685#          define LT_DLLAZY_OR_NOW	0
13686#        endif
13687#      endif
13688#    endif
13689#  endif
13690#endif
13691
13692void fnord() { int i=42;}
13693int main ()
13694{
13695  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13696  int status = $lt_dlunknown;
13697
13698  if (self)
13699    {
13700      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13701      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13702      /* dlclose (self); */
13703    }
13704  else
13705    puts (dlerror ());
13706
13707  return status;
13708}
13709_LT_EOF
13710  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711  (eval $ac_link) 2>&5
13712  ac_status=$?
13713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13715    (./conftest; exit; ) >&5 2>/dev/null
13716    lt_status=$?
13717    case x$lt_status in
13718      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13719      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13720      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13721    esac
13722  else :
13723    # compilation failed
13724    lt_cv_dlopen_self_static=no
13725  fi
13726fi
13727rm -fr conftest*
13728
13729
13730fi
13731{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13732$as_echo "$lt_cv_dlopen_self_static" >&6; }
13733    fi
13734
13735    CPPFLAGS="$save_CPPFLAGS"
13736    LDFLAGS="$save_LDFLAGS"
13737    LIBS="$save_LIBS"
13738    ;;
13739  esac
13740
13741  case $lt_cv_dlopen_self in
13742  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13743  *) enable_dlopen_self=unknown ;;
13744  esac
13745
13746  case $lt_cv_dlopen_self_static in
13747  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13748  *) enable_dlopen_self_static=unknown ;;
13749  esac
13750fi
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768striplib=
13769old_striplib=
13770{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13771$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13772if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13773  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13774  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13775  { $as_echo "$as_me:$LINENO: result: yes" >&5
13776$as_echo "yes" >&6; }
13777else
13778# FIXME - insert some real tests, host_os isn't really good enough
13779  case $host_os in
13780  darwin*)
13781    if test -n "$STRIP" ; then
13782      striplib="$STRIP -x"
13783      old_striplib="$STRIP -S"
13784      { $as_echo "$as_me:$LINENO: result: yes" >&5
13785$as_echo "yes" >&6; }
13786    else
13787      { $as_echo "$as_me:$LINENO: result: no" >&5
13788$as_echo "no" >&6; }
13789    fi
13790    ;;
13791  *)
13792    { $as_echo "$as_me:$LINENO: result: no" >&5
13793$as_echo "no" >&6; }
13794    ;;
13795  esac
13796fi
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809  # Report which library types will actually be built
13810  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13811$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13812  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13813$as_echo "$can_build_shared" >&6; }
13814
13815  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13816$as_echo_n "checking whether to build shared libraries... " >&6; }
13817  test "$can_build_shared" = "no" && enable_shared=no
13818
13819  # On AIX, shared libraries and static libraries use the same namespace, and
13820  # are all built from PIC.
13821  case $host_os in
13822  aix3*)
13823    test "$enable_shared" = yes && enable_static=no
13824    if test -n "$RANLIB"; then
13825      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13826      postinstall_cmds='$RANLIB $lib'
13827    fi
13828    ;;
13829
13830  aix[4-9]*)
13831    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13832      test "$enable_shared" = yes && enable_static=no
13833    fi
13834    ;;
13835  esac
13836  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13837$as_echo "$enable_shared" >&6; }
13838
13839  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13840$as_echo_n "checking whether to build static libraries... " >&6; }
13841  # Make sure either enable_shared or enable_static is yes.
13842  test "$enable_shared" = yes || enable_static=yes
13843  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13844$as_echo "$enable_static" >&6; }
13845
13846
13847
13848
13849fi
13850ac_ext=c
13851ac_cpp='$CPP $CPPFLAGS'
13852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_c_compiler_gnu
13855
13856CC="$lt_save_CC"
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870        ac_config_commands="$ac_config_commands libtool"
13871
13872
13873
13874
13875# Only expand once:
13876
13877
13878if test -n "$ac_tool_prefix"; then
13879  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13880set dummy ${ac_tool_prefix}windres; ac_word=$2
13881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if test "${ac_cv_prog_RC+set}" = set; then
13884  $as_echo_n "(cached) " >&6
13885else
13886  if test -n "$RC"; then
13887  ac_cv_prog_RC="$RC" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892  IFS=$as_save_IFS
13893  test -z "$as_dir" && as_dir=.
13894  for ac_exec_ext in '' $ac_executable_extensions; do
13895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13896    ac_cv_prog_RC="${ac_tool_prefix}windres"
13897    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13898    break 2
13899  fi
13900done
13901done
13902IFS=$as_save_IFS
13903
13904fi
13905fi
13906RC=$ac_cv_prog_RC
13907if test -n "$RC"; then
13908  { $as_echo "$as_me:$LINENO: result: $RC" >&5
13909$as_echo "$RC" >&6; }
13910else
13911  { $as_echo "$as_me:$LINENO: result: no" >&5
13912$as_echo "no" >&6; }
13913fi
13914
13915
13916fi
13917if test -z "$ac_cv_prog_RC"; then
13918  ac_ct_RC=$RC
13919  # Extract the first word of "windres", so it can be a program name with args.
13920set dummy windres; ac_word=$2
13921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13922$as_echo_n "checking for $ac_word... " >&6; }
13923if test "${ac_cv_prog_ac_ct_RC+set}" = set; then
13924  $as_echo_n "(cached) " >&6
13925else
13926  if test -n "$ac_ct_RC"; then
13927  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
13928else
13929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930for as_dir in $PATH
13931do
13932  IFS=$as_save_IFS
13933  test -z "$as_dir" && as_dir=.
13934  for ac_exec_ext in '' $ac_executable_extensions; do
13935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13936    ac_cv_prog_ac_ct_RC="windres"
13937    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938    break 2
13939  fi
13940done
13941done
13942IFS=$as_save_IFS
13943
13944fi
13945fi
13946ac_ct_RC=$ac_cv_prog_ac_ct_RC
13947if test -n "$ac_ct_RC"; then
13948  { $as_echo "$as_me:$LINENO: result: $ac_ct_RC" >&5
13949$as_echo "$ac_ct_RC" >&6; }
13950else
13951  { $as_echo "$as_me:$LINENO: result: no" >&5
13952$as_echo "no" >&6; }
13953fi
13954
13955  if test "x$ac_ct_RC" = x; then
13956    RC=""
13957  else
13958    case $cross_compiling:$ac_tool_warned in
13959yes:)
13960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13962ac_tool_warned=yes ;;
13963esac
13964    RC=$ac_ct_RC
13965  fi
13966else
13967  RC="$ac_cv_prog_RC"
13968fi
13969
13970
13971
13972
13973# Source file extension for RC test sources.
13974ac_ext=rc
13975
13976# Object file extension for compiled RC test sources.
13977objext=o
13978objext_RC=$objext
13979
13980# Code to be used in simple compile tests
13981lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13982
13983# Code to be used in simple link tests
13984lt_simple_link_test_code="$lt_simple_compile_test_code"
13985
13986# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13987
13988
13989
13990
13991
13992
13993# If no C compiler was specified, use CC.
13994LTCC=${LTCC-"$CC"}
13995
13996# If no C compiler flags were specified, use CFLAGS.
13997LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13998
13999# Allow CC to be a program name with arguments.
14000compiler=$CC
14001
14002
14003# save warnings/boilerplate of simple test code
14004ac_outfile=conftest.$ac_objext
14005echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14007_lt_compiler_boilerplate=`cat conftest.err`
14008$RM conftest*
14009
14010ac_outfile=conftest.$ac_objext
14011echo "$lt_simple_link_test_code" >conftest.$ac_ext
14012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14013_lt_linker_boilerplate=`cat conftest.err`
14014$RM -r conftest*
14015
14016
14017# Allow CC to be a program name with arguments.
14018lt_save_CC="$CC"
14019lt_save_GCC=$GCC
14020GCC=
14021CC=${RC-"windres"}
14022compiler=$CC
14023compiler_RC=$CC
14024for cc_temp in $compiler""; do
14025  case $cc_temp in
14026    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14027    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14028    \-*) ;;
14029    *) break;;
14030  esac
14031done
14032cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14033
14034lt_cv_prog_compiler_c_o_RC=yes
14035
14036if test -n "$compiler"; then
14037  :
14038
14039
14040
14041fi
14042
14043GCC=$lt_save_GCC
14044ac_ext=c
14045ac_cpp='$CPP $CPPFLAGS'
14046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14048ac_compiler_gnu=$ac_cv_c_compiler_gnu
14049
14050CC="$lt_save_CC"
14051
14052
14053# This is a bit wrong since it is possible to request that only some libs
14054# are built as shared. Using that feature isn't so common though, and this
14055# breaks only on Windows (at least for now) if the user enables only some
14056# libs as shared.
14057 if test "x$enable_shared" != xno; then
14058  COND_SHARED_TRUE=
14059  COND_SHARED_FALSE='#'
14060else
14061  COND_SHARED_TRUE='#'
14062  COND_SHARED_FALSE=
14063fi
14064
14065
14066
14067###############################################################################
14068# Checks for libraries.
14069###############################################################################
14070
14071echo
14072echo "Initializing gettext:"
14073
14074
14075  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14076$as_echo_n "checking whether NLS is requested... " >&6; }
14077    # Check whether --enable-nls was given.
14078if test "${enable_nls+set}" = set; then
14079  enableval=$enable_nls; USE_NLS=$enableval
14080else
14081  USE_NLS=yes
14082fi
14083
14084  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
14085$as_echo "$USE_NLS" >&6; }
14086
14087
14088
14089
14090
14091
14092# Prepare PATH_SEPARATOR.
14093# The user is always right.
14094if test "${PATH_SEPARATOR+set}" != set; then
14095  echo "#! /bin/sh" >conf$$.sh
14096  echo  "exit 0"   >>conf$$.sh
14097  chmod +x conf$$.sh
14098  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14099    PATH_SEPARATOR=';'
14100  else
14101    PATH_SEPARATOR=:
14102  fi
14103  rm -f conf$$.sh
14104fi
14105
14106# Find out how to test for executable files. Don't use a zero-byte file,
14107# as systems may use methods other than mode bits to determine executability.
14108cat >conf$$.file <<_ASEOF
14109#! /bin/sh
14110exit 0
14111_ASEOF
14112chmod +x conf$$.file
14113if test -x conf$$.file >/dev/null 2>&1; then
14114  ac_executable_p="test -x"
14115else
14116  ac_executable_p="test -f"
14117fi
14118rm -f conf$$.file
14119
14120# Extract the first word of "msgfmt", so it can be a program name with args.
14121set dummy msgfmt; ac_word=$2
14122{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14123$as_echo_n "checking for $ac_word... " >&6; }
14124if test "${ac_cv_path_MSGFMT+set}" = set; then
14125  $as_echo_n "(cached) " >&6
14126else
14127  case "$MSGFMT" in
14128  [\\/]* | ?:[\\/]*)
14129    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14130    ;;
14131  *)
14132    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14133    for ac_dir in $PATH; do
14134      IFS="$ac_save_IFS"
14135      test -z "$ac_dir" && ac_dir=.
14136      for ac_exec_ext in '' $ac_executable_extensions; do
14137        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14138          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14139          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14140     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14141            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14142            break 2
14143          fi
14144        fi
14145      done
14146    done
14147    IFS="$ac_save_IFS"
14148  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14149    ;;
14150esac
14151fi
14152MSGFMT="$ac_cv_path_MSGFMT"
14153if test "$MSGFMT" != ":"; then
14154  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
14155$as_echo "$MSGFMT" >&6; }
14156else
14157  { $as_echo "$as_me:$LINENO: result: no" >&5
14158$as_echo "no" >&6; }
14159fi
14160
14161  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14162set dummy gmsgfmt; ac_word=$2
14163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14164$as_echo_n "checking for $ac_word... " >&6; }
14165if test "${ac_cv_path_GMSGFMT+set}" = set; then
14166  $as_echo_n "(cached) " >&6
14167else
14168  case $GMSGFMT in
14169  [\\/]* | ?:[\\/]*)
14170  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14171  ;;
14172  *)
14173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14174for as_dir in $PATH
14175do
14176  IFS=$as_save_IFS
14177  test -z "$as_dir" && as_dir=.
14178  for ac_exec_ext in '' $ac_executable_extensions; do
14179  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14180    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14181    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14182    break 2
14183  fi
14184done
14185done
14186IFS=$as_save_IFS
14187
14188  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14189  ;;
14190esac
14191fi
14192GMSGFMT=$ac_cv_path_GMSGFMT
14193if test -n "$GMSGFMT"; then
14194  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14195$as_echo "$GMSGFMT" >&6; }
14196else
14197  { $as_echo "$as_me:$LINENO: result: no" >&5
14198$as_echo "no" >&6; }
14199fi
14200
14201
14202
14203    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14204    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14205    *) MSGFMT_015=$MSGFMT ;;
14206  esac
14207
14208  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14209    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14210    *) GMSGFMT_015=$GMSGFMT ;;
14211  esac
14212
14213
14214
14215# Prepare PATH_SEPARATOR.
14216# The user is always right.
14217if test "${PATH_SEPARATOR+set}" != set; then
14218  echo "#! /bin/sh" >conf$$.sh
14219  echo  "exit 0"   >>conf$$.sh
14220  chmod +x conf$$.sh
14221  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14222    PATH_SEPARATOR=';'
14223  else
14224    PATH_SEPARATOR=:
14225  fi
14226  rm -f conf$$.sh
14227fi
14228
14229# Find out how to test for executable files. Don't use a zero-byte file,
14230# as systems may use methods other than mode bits to determine executability.
14231cat >conf$$.file <<_ASEOF
14232#! /bin/sh
14233exit 0
14234_ASEOF
14235chmod +x conf$$.file
14236if test -x conf$$.file >/dev/null 2>&1; then
14237  ac_executable_p="test -x"
14238else
14239  ac_executable_p="test -f"
14240fi
14241rm -f conf$$.file
14242
14243# Extract the first word of "xgettext", so it can be a program name with args.
14244set dummy xgettext; ac_word=$2
14245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14246$as_echo_n "checking for $ac_word... " >&6; }
14247if test "${ac_cv_path_XGETTEXT+set}" = set; then
14248  $as_echo_n "(cached) " >&6
14249else
14250  case "$XGETTEXT" in
14251  [\\/]* | ?:[\\/]*)
14252    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14253    ;;
14254  *)
14255    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14256    for ac_dir in $PATH; do
14257      IFS="$ac_save_IFS"
14258      test -z "$ac_dir" && ac_dir=.
14259      for ac_exec_ext in '' $ac_executable_extensions; do
14260        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14261          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14262          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14263     (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
14264            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14265            break 2
14266          fi
14267        fi
14268      done
14269    done
14270    IFS="$ac_save_IFS"
14271  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14272    ;;
14273esac
14274fi
14275XGETTEXT="$ac_cv_path_XGETTEXT"
14276if test "$XGETTEXT" != ":"; then
14277  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14278$as_echo "$XGETTEXT" >&6; }
14279else
14280  { $as_echo "$as_me:$LINENO: result: no" >&5
14281$as_echo "no" >&6; }
14282fi
14283
14284    rm -f messages.po
14285
14286    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14287    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14288    *) XGETTEXT_015=$XGETTEXT ;;
14289  esac
14290
14291
14292
14293# Prepare PATH_SEPARATOR.
14294# The user is always right.
14295if test "${PATH_SEPARATOR+set}" != set; then
14296  echo "#! /bin/sh" >conf$$.sh
14297  echo  "exit 0"   >>conf$$.sh
14298  chmod +x conf$$.sh
14299  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14300    PATH_SEPARATOR=';'
14301  else
14302    PATH_SEPARATOR=:
14303  fi
14304  rm -f conf$$.sh
14305fi
14306
14307# Find out how to test for executable files. Don't use a zero-byte file,
14308# as systems may use methods other than mode bits to determine executability.
14309cat >conf$$.file <<_ASEOF
14310#! /bin/sh
14311exit 0
14312_ASEOF
14313chmod +x conf$$.file
14314if test -x conf$$.file >/dev/null 2>&1; then
14315  ac_executable_p="test -x"
14316else
14317  ac_executable_p="test -f"
14318fi
14319rm -f conf$$.file
14320
14321# Extract the first word of "msgmerge", so it can be a program name with args.
14322set dummy msgmerge; ac_word=$2
14323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14324$as_echo_n "checking for $ac_word... " >&6; }
14325if test "${ac_cv_path_MSGMERGE+set}" = set; then
14326  $as_echo_n "(cached) " >&6
14327else
14328  case "$MSGMERGE" in
14329  [\\/]* | ?:[\\/]*)
14330    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14331    ;;
14332  *)
14333    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14334    for ac_dir in $PATH; do
14335      IFS="$ac_save_IFS"
14336      test -z "$ac_dir" && ac_dir=.
14337      for ac_exec_ext in '' $ac_executable_extensions; do
14338        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14339          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14340          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14341            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14342            break 2
14343          fi
14344        fi
14345      done
14346    done
14347    IFS="$ac_save_IFS"
14348  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14349    ;;
14350esac
14351fi
14352MSGMERGE="$ac_cv_path_MSGMERGE"
14353if test "$MSGMERGE" != ":"; then
14354  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
14355$as_echo "$MSGMERGE" >&6; }
14356else
14357  { $as_echo "$as_me:$LINENO: result: no" >&5
14358$as_echo "no" >&6; }
14359fi
14360
14361
14362        test -n "$localedir" || localedir='${datadir}/locale'
14363
14364
14365  ac_config_commands="$ac_config_commands po-directories"
14366
14367
14368
14369      if test "X$prefix" = "XNONE"; then
14370    acl_final_prefix="$ac_default_prefix"
14371  else
14372    acl_final_prefix="$prefix"
14373  fi
14374  if test "X$exec_prefix" = "XNONE"; then
14375    acl_final_exec_prefix='${prefix}'
14376  else
14377    acl_final_exec_prefix="$exec_prefix"
14378  fi
14379  acl_save_prefix="$prefix"
14380  prefix="$acl_final_prefix"
14381  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14382  prefix="$acl_save_prefix"
14383
14384
14385# Check whether --with-gnu-ld was given.
14386if test "${with_gnu_ld+set}" = set; then
14387  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14388else
14389  with_gnu_ld=no
14390fi
14391
14392# Prepare PATH_SEPARATOR.
14393# The user is always right.
14394if test "${PATH_SEPARATOR+set}" != set; then
14395  echo "#! /bin/sh" >conf$$.sh
14396  echo  "exit 0"   >>conf$$.sh
14397  chmod +x conf$$.sh
14398  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14399    PATH_SEPARATOR=';'
14400  else
14401    PATH_SEPARATOR=:
14402  fi
14403  rm -f conf$$.sh
14404fi
14405ac_prog=ld
14406if test "$GCC" = yes; then
14407  # Check if gcc -print-prog-name=ld gives a path.
14408  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14409$as_echo_n "checking for ld used by GCC... " >&6; }
14410  case $host in
14411  *-*-mingw*)
14412    # gcc leaves a trailing carriage return which upsets mingw
14413    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14414  *)
14415    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14416  esac
14417  case $ac_prog in
14418    # Accept absolute paths.
14419    [\\/]* | [A-Za-z]:[\\/]*)
14420      re_direlt='/[^/][^/]*/\.\./'
14421      # Canonicalize the path of ld
14422      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14423      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14424	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14425      done
14426      test -z "$LD" && LD="$ac_prog"
14427      ;;
14428  "")
14429    # If it fails, then pretend we aren't using GCC.
14430    ac_prog=ld
14431    ;;
14432  *)
14433    # If it is relative, then search for the first ld in PATH.
14434    with_gnu_ld=unknown
14435    ;;
14436  esac
14437elif test "$with_gnu_ld" = yes; then
14438  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14439$as_echo_n "checking for GNU ld... " >&6; }
14440else
14441  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14442$as_echo_n "checking for non-GNU ld... " >&6; }
14443fi
14444if test "${acl_cv_path_LD+set}" = set; then
14445  $as_echo_n "(cached) " >&6
14446else
14447  if test -z "$LD"; then
14448  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14449  for ac_dir in $PATH; do
14450    test -z "$ac_dir" && ac_dir=.
14451    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14452      acl_cv_path_LD="$ac_dir/$ac_prog"
14453      # Check to see if the program is GNU ld.  I'd rather use --version,
14454      # but apparently some GNU ld's only accept -v.
14455      # Break only if it was the GNU/non-GNU ld that we prefer.
14456      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14457      *GNU* | *'with BFD'*)
14458	test "$with_gnu_ld" != no && break ;;
14459      *)
14460	test "$with_gnu_ld" != yes && break ;;
14461      esac
14462    fi
14463  done
14464  IFS="$ac_save_ifs"
14465else
14466  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14467fi
14468fi
14469
14470LD="$acl_cv_path_LD"
14471if test -n "$LD"; then
14472  { $as_echo "$as_me:$LINENO: result: $LD" >&5
14473$as_echo "$LD" >&6; }
14474else
14475  { $as_echo "$as_me:$LINENO: result: no" >&5
14476$as_echo "no" >&6; }
14477fi
14478test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14479$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14480   { (exit 1); exit 1; }; }
14481{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14482$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14483if test "${acl_cv_prog_gnu_ld+set}" = set; then
14484  $as_echo_n "(cached) " >&6
14485else
14486  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14487case `$LD -v 2>&1 </dev/null` in
14488*GNU* | *'with BFD'*)
14489  acl_cv_prog_gnu_ld=yes ;;
14490*)
14491  acl_cv_prog_gnu_ld=no ;;
14492esac
14493fi
14494{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14495$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14496with_gnu_ld=$acl_cv_prog_gnu_ld
14497
14498
14499
14500
14501                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14502$as_echo_n "checking for shared library run path origin... " >&6; }
14503if test "${acl_cv_rpath+set}" = set; then
14504  $as_echo_n "(cached) " >&6
14505else
14506
14507    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14508    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14509    . ./conftest.sh
14510    rm -f ./conftest.sh
14511    acl_cv_rpath=done
14512
14513fi
14514{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14515$as_echo "$acl_cv_rpath" >&6; }
14516  wl="$acl_cv_wl"
14517  libext="$acl_cv_libext"
14518  shlibext="$acl_cv_shlibext"
14519  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14520  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14521  hardcode_direct="$acl_cv_hardcode_direct"
14522  hardcode_minus_L="$acl_cv_hardcode_minus_L"
14523    # Check whether --enable-rpath was given.
14524if test "${enable_rpath+set}" = set; then
14525  enableval=$enable_rpath; :
14526else
14527  enable_rpath=yes
14528fi
14529
14530
14531
14532                  acl_libdirstem=lib
14533  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14534  if test -n "$searchpath"; then
14535    acl_save_IFS="${IFS= 	}"; IFS=":"
14536    for searchdir in $searchpath; do
14537      if test -d "$searchdir"; then
14538        case "$searchdir" in
14539          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14540          *) searchdir=`cd "$searchdir" && pwd`
14541             case "$searchdir" in
14542               */lib64 ) acl_libdirstem=lib64 ;;
14543             esac ;;
14544        esac
14545      fi
14546    done
14547    IFS="$acl_save_IFS"
14548  fi
14549
14550
14551
14552
14553
14554
14555
14556
14557    use_additional=yes
14558
14559  acl_save_prefix="$prefix"
14560  prefix="$acl_final_prefix"
14561  acl_save_exec_prefix="$exec_prefix"
14562  exec_prefix="$acl_final_exec_prefix"
14563
14564    eval additional_includedir=\"$includedir\"
14565    eval additional_libdir=\"$libdir\"
14566
14567  exec_prefix="$acl_save_exec_prefix"
14568  prefix="$acl_save_prefix"
14569
14570
14571# Check whether --with-libiconv-prefix was given.
14572if test "${with_libiconv_prefix+set}" = set; then
14573  withval=$with_libiconv_prefix;
14574    if test "X$withval" = "Xno"; then
14575      use_additional=no
14576    else
14577      if test "X$withval" = "X"; then
14578
14579  acl_save_prefix="$prefix"
14580  prefix="$acl_final_prefix"
14581  acl_save_exec_prefix="$exec_prefix"
14582  exec_prefix="$acl_final_exec_prefix"
14583
14584          eval additional_includedir=\"$includedir\"
14585          eval additional_libdir=\"$libdir\"
14586
14587  exec_prefix="$acl_save_exec_prefix"
14588  prefix="$acl_save_prefix"
14589
14590      else
14591        additional_includedir="$withval/include"
14592        additional_libdir="$withval/$acl_libdirstem"
14593      fi
14594    fi
14595
14596fi
14597
14598      LIBICONV=
14599  LTLIBICONV=
14600  INCICONV=
14601  rpathdirs=
14602  ltrpathdirs=
14603  names_already_handled=
14604  names_next_round='iconv '
14605  while test -n "$names_next_round"; do
14606    names_this_round="$names_next_round"
14607    names_next_round=
14608    for name in $names_this_round; do
14609      already_handled=
14610      for n in $names_already_handled; do
14611        if test "$n" = "$name"; then
14612          already_handled=yes
14613          break
14614        fi
14615      done
14616      if test -z "$already_handled"; then
14617        names_already_handled="$names_already_handled $name"
14618                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14619        eval value=\"\$HAVE_LIB$uppername\"
14620        if test -n "$value"; then
14621          if test "$value" = yes; then
14622            eval value=\"\$LIB$uppername\"
14623            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14624            eval value=\"\$LTLIB$uppername\"
14625            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14626          else
14627                                    :
14628          fi
14629        else
14630                              found_dir=
14631          found_la=
14632          found_so=
14633          found_a=
14634          if test $use_additional = yes; then
14635            if test -n "$shlibext" \
14636               && { test -f "$additional_libdir/lib$name.$shlibext" \
14637                    || { test "$shlibext" = dll \
14638                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14639              found_dir="$additional_libdir"
14640              if test -f "$additional_libdir/lib$name.$shlibext"; then
14641                found_so="$additional_libdir/lib$name.$shlibext"
14642              else
14643                found_so="$additional_libdir/lib$name.dll.a"
14644              fi
14645              if test -f "$additional_libdir/lib$name.la"; then
14646                found_la="$additional_libdir/lib$name.la"
14647              fi
14648            else
14649              if test -f "$additional_libdir/lib$name.$libext"; then
14650                found_dir="$additional_libdir"
14651                found_a="$additional_libdir/lib$name.$libext"
14652                if test -f "$additional_libdir/lib$name.la"; then
14653                  found_la="$additional_libdir/lib$name.la"
14654                fi
14655              fi
14656            fi
14657          fi
14658          if test "X$found_dir" = "X"; then
14659            for x in $LDFLAGS $LTLIBICONV; do
14660
14661  acl_save_prefix="$prefix"
14662  prefix="$acl_final_prefix"
14663  acl_save_exec_prefix="$exec_prefix"
14664  exec_prefix="$acl_final_exec_prefix"
14665  eval x=\"$x\"
14666  exec_prefix="$acl_save_exec_prefix"
14667  prefix="$acl_save_prefix"
14668
14669              case "$x" in
14670                -L*)
14671                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14672                  if test -n "$shlibext" \
14673                     && { test -f "$dir/lib$name.$shlibext" \
14674                          || { test "$shlibext" = dll \
14675                               && test -f "$dir/lib$name.dll.a"; }; }; then
14676                    found_dir="$dir"
14677                    if test -f "$dir/lib$name.$shlibext"; then
14678                      found_so="$dir/lib$name.$shlibext"
14679                    else
14680                      found_so="$dir/lib$name.dll.a"
14681                    fi
14682                    if test -f "$dir/lib$name.la"; then
14683                      found_la="$dir/lib$name.la"
14684                    fi
14685                  else
14686                    if test -f "$dir/lib$name.$libext"; then
14687                      found_dir="$dir"
14688                      found_a="$dir/lib$name.$libext"
14689                      if test -f "$dir/lib$name.la"; then
14690                        found_la="$dir/lib$name.la"
14691                      fi
14692                    fi
14693                  fi
14694                  ;;
14695              esac
14696              if test "X$found_dir" != "X"; then
14697                break
14698              fi
14699            done
14700          fi
14701          if test "X$found_dir" != "X"; then
14702                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14703            if test "X$found_so" != "X"; then
14704                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14705                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14706              else
14707                                                                                haveit=
14708                for x in $ltrpathdirs; do
14709                  if test "X$x" = "X$found_dir"; then
14710                    haveit=yes
14711                    break
14712                  fi
14713                done
14714                if test -z "$haveit"; then
14715                  ltrpathdirs="$ltrpathdirs $found_dir"
14716                fi
14717                                if test "$hardcode_direct" = yes; then
14718                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14719                else
14720                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14721                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14722                                                            haveit=
14723                    for x in $rpathdirs; do
14724                      if test "X$x" = "X$found_dir"; then
14725                        haveit=yes
14726                        break
14727                      fi
14728                    done
14729                    if test -z "$haveit"; then
14730                      rpathdirs="$rpathdirs $found_dir"
14731                    fi
14732                  else
14733                                                                                haveit=
14734                    for x in $LDFLAGS $LIBICONV; do
14735
14736  acl_save_prefix="$prefix"
14737  prefix="$acl_final_prefix"
14738  acl_save_exec_prefix="$exec_prefix"
14739  exec_prefix="$acl_final_exec_prefix"
14740  eval x=\"$x\"
14741  exec_prefix="$acl_save_exec_prefix"
14742  prefix="$acl_save_prefix"
14743
14744                      if test "X$x" = "X-L$found_dir"; then
14745                        haveit=yes
14746                        break
14747                      fi
14748                    done
14749                    if test -z "$haveit"; then
14750                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14751                    fi
14752                    if test "$hardcode_minus_L" != no; then
14753                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14754                    else
14755                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14756                    fi
14757                  fi
14758                fi
14759              fi
14760            else
14761              if test "X$found_a" != "X"; then
14762                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14763              else
14764                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14765              fi
14766            fi
14767                        additional_includedir=
14768            case "$found_dir" in
14769              */$acl_libdirstem | */$acl_libdirstem/)
14770                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14771                additional_includedir="$basedir/include"
14772                ;;
14773            esac
14774            if test "X$additional_includedir" != "X"; then
14775                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14776                haveit=
14777                if test "X$additional_includedir" = "X/usr/local/include"; then
14778                  if test -n "$GCC"; then
14779                    case $host_os in
14780                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14781                    esac
14782                  fi
14783                fi
14784                if test -z "$haveit"; then
14785                  for x in $CPPFLAGS $INCICONV; do
14786
14787  acl_save_prefix="$prefix"
14788  prefix="$acl_final_prefix"
14789  acl_save_exec_prefix="$exec_prefix"
14790  exec_prefix="$acl_final_exec_prefix"
14791  eval x=\"$x\"
14792  exec_prefix="$acl_save_exec_prefix"
14793  prefix="$acl_save_prefix"
14794
14795                    if test "X$x" = "X-I$additional_includedir"; then
14796                      haveit=yes
14797                      break
14798                    fi
14799                  done
14800                  if test -z "$haveit"; then
14801                    if test -d "$additional_includedir"; then
14802                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14803                    fi
14804                  fi
14805                fi
14806              fi
14807            fi
14808                        if test -n "$found_la"; then
14809                                                        save_libdir="$libdir"
14810              case "$found_la" in
14811                */* | *\\*) . "$found_la" ;;
14812                *) . "./$found_la" ;;
14813              esac
14814              libdir="$save_libdir"
14815                            for dep in $dependency_libs; do
14816                case "$dep" in
14817                  -L*)
14818                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14819                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14820                      haveit=
14821                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14822                        if test -n "$GCC"; then
14823                          case $host_os in
14824                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14825                          esac
14826                        fi
14827                      fi
14828                      if test -z "$haveit"; then
14829                        haveit=
14830                        for x in $LDFLAGS $LIBICONV; do
14831
14832  acl_save_prefix="$prefix"
14833  prefix="$acl_final_prefix"
14834  acl_save_exec_prefix="$exec_prefix"
14835  exec_prefix="$acl_final_exec_prefix"
14836  eval x=\"$x\"
14837  exec_prefix="$acl_save_exec_prefix"
14838  prefix="$acl_save_prefix"
14839
14840                          if test "X$x" = "X-L$additional_libdir"; then
14841                            haveit=yes
14842                            break
14843                          fi
14844                        done
14845                        if test -z "$haveit"; then
14846                          if test -d "$additional_libdir"; then
14847                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14848                          fi
14849                        fi
14850                        haveit=
14851                        for x in $LDFLAGS $LTLIBICONV; do
14852
14853  acl_save_prefix="$prefix"
14854  prefix="$acl_final_prefix"
14855  acl_save_exec_prefix="$exec_prefix"
14856  exec_prefix="$acl_final_exec_prefix"
14857  eval x=\"$x\"
14858  exec_prefix="$acl_save_exec_prefix"
14859  prefix="$acl_save_prefix"
14860
14861                          if test "X$x" = "X-L$additional_libdir"; then
14862                            haveit=yes
14863                            break
14864                          fi
14865                        done
14866                        if test -z "$haveit"; then
14867                          if test -d "$additional_libdir"; then
14868                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14869                          fi
14870                        fi
14871                      fi
14872                    fi
14873                    ;;
14874                  -R*)
14875                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14876                    if test "$enable_rpath" != no; then
14877                                                                  haveit=
14878                      for x in $rpathdirs; do
14879                        if test "X$x" = "X$dir"; then
14880                          haveit=yes
14881                          break
14882                        fi
14883                      done
14884                      if test -z "$haveit"; then
14885                        rpathdirs="$rpathdirs $dir"
14886                      fi
14887                                                                  haveit=
14888                      for x in $ltrpathdirs; do
14889                        if test "X$x" = "X$dir"; then
14890                          haveit=yes
14891                          break
14892                        fi
14893                      done
14894                      if test -z "$haveit"; then
14895                        ltrpathdirs="$ltrpathdirs $dir"
14896                      fi
14897                    fi
14898                    ;;
14899                  -l*)
14900                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14901                    ;;
14902                  *.la)
14903                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14904                    ;;
14905                  *)
14906                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14907                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14908                    ;;
14909                esac
14910              done
14911            fi
14912          else
14913                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14914            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14915          fi
14916        fi
14917      fi
14918    done
14919  done
14920  if test "X$rpathdirs" != "X"; then
14921    if test -n "$hardcode_libdir_separator"; then
14922                        alldirs=
14923      for found_dir in $rpathdirs; do
14924        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14925      done
14926            acl_save_libdir="$libdir"
14927      libdir="$alldirs"
14928      eval flag=\"$hardcode_libdir_flag_spec\"
14929      libdir="$acl_save_libdir"
14930      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14931    else
14932            for found_dir in $rpathdirs; do
14933        acl_save_libdir="$libdir"
14934        libdir="$found_dir"
14935        eval flag=\"$hardcode_libdir_flag_spec\"
14936        libdir="$acl_save_libdir"
14937        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14938      done
14939    fi
14940  fi
14941  if test "X$ltrpathdirs" != "X"; then
14942            for found_dir in $ltrpathdirs; do
14943      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14944    done
14945  fi
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
14972$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14973if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
14974  $as_echo_n "(cached) " >&6
14975else
14976  gt_save_LIBS="$LIBS"
14977     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14978     cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h.  */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h.  */
14984#include <CoreFoundation/CFPreferences.h>
14985int
14986main ()
14987{
14988CFPreferencesCopyAppValue(NULL, NULL)
14989  ;
14990  return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext conftest$ac_exeext
14994if { (ac_try="$ac_link"
14995case "(($ac_try" in
14996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997  *) ac_try_echo=$ac_try;;
14998esac
14999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000$as_echo "$ac_try_echo") >&5
15001  (eval "$ac_link") 2>conftest.er1
15002  ac_status=$?
15003  grep -v '^ *+' conftest.er1 >conftest.err
15004  rm -f conftest.er1
15005  cat conftest.err >&5
15006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007  (exit $ac_status); } && {
15008	 test -z "$ac_c_werror_flag" ||
15009	 test ! -s conftest.err
15010       } && test -s conftest$ac_exeext && {
15011	 test "$cross_compiling" = yes ||
15012	 $as_test_x conftest$ac_exeext
15013       }; then
15014  gt_cv_func_CFPreferencesCopyAppValue=yes
15015else
15016  $as_echo "$as_me: failed program was:" >&5
15017sed 's/^/| /' conftest.$ac_ext >&5
15018
15019	gt_cv_func_CFPreferencesCopyAppValue=no
15020fi
15021
15022rm -rf conftest.dSYM
15023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024      conftest$ac_exeext conftest.$ac_ext
15025     LIBS="$gt_save_LIBS"
15026fi
15027{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15028$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15029  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15030
15031cat >>confdefs.h <<\_ACEOF
15032#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
15033_ACEOF
15034
15035  fi
15036    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
15037$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15038if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
15039  $as_echo_n "(cached) " >&6
15040else
15041  gt_save_LIBS="$LIBS"
15042     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15043     cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h.  */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h.  */
15049#include <CoreFoundation/CFLocale.h>
15050int
15051main ()
15052{
15053CFLocaleCopyCurrent();
15054  ;
15055  return 0;
15056}
15057_ACEOF
15058rm -f conftest.$ac_objext conftest$ac_exeext
15059if { (ac_try="$ac_link"
15060case "(($ac_try" in
15061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062  *) ac_try_echo=$ac_try;;
15063esac
15064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15065$as_echo "$ac_try_echo") >&5
15066  (eval "$ac_link") 2>conftest.er1
15067  ac_status=$?
15068  grep -v '^ *+' conftest.er1 >conftest.err
15069  rm -f conftest.er1
15070  cat conftest.err >&5
15071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072  (exit $ac_status); } && {
15073	 test -z "$ac_c_werror_flag" ||
15074	 test ! -s conftest.err
15075       } && test -s conftest$ac_exeext && {
15076	 test "$cross_compiling" = yes ||
15077	 $as_test_x conftest$ac_exeext
15078       }; then
15079  gt_cv_func_CFLocaleCopyCurrent=yes
15080else
15081  $as_echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084	gt_cv_func_CFLocaleCopyCurrent=no
15085fi
15086
15087rm -rf conftest.dSYM
15088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15089      conftest$ac_exeext conftest.$ac_ext
15090     LIBS="$gt_save_LIBS"
15091fi
15092{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15093$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15094  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15095
15096cat >>confdefs.h <<\_ACEOF
15097#define HAVE_CFLOCALECOPYCURRENT 1
15098_ACEOF
15099
15100  fi
15101  INTL_MACOSX_LIBS=
15102  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15103    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15104  fi
15105
15106
15107
15108
15109
15110
15111  LIBINTL=
15112  LTLIBINTL=
15113  POSUB=
15114
15115    case " $gt_needs " in
15116    *" need-formatstring-macros "*) gt_api_version=3 ;;
15117    *" need-ngettext "*) gt_api_version=2 ;;
15118    *) gt_api_version=1 ;;
15119  esac
15120  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15121  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15122
15123    if test "$USE_NLS" = "yes"; then
15124    gt_use_preinstalled_gnugettext=no
15125
15126
15127        if test $gt_api_version -ge 3; then
15128          gt_revision_test_code='
15129#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15130#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15131#endif
15132typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15133'
15134        else
15135          gt_revision_test_code=
15136        fi
15137        if test $gt_api_version -ge 2; then
15138          gt_expression_test_code=' + * ngettext ("", "", 0)'
15139        else
15140          gt_expression_test_code=
15141        fi
15142
15143        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
15144$as_echo_n "checking for GNU gettext in libc... " >&6; }
15145if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
15146  $as_echo_n "(cached) " >&6
15147else
15148  cat >conftest.$ac_ext <<_ACEOF
15149/* confdefs.h.  */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h.  */
15154#include <libintl.h>
15155$gt_revision_test_code
15156extern int _nl_msg_cat_cntr;
15157extern int *_nl_domain_bindings;
15158int
15159main ()
15160{
15161bindtextdomain ("", "");
15162return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15163  ;
15164  return 0;
15165}
15166_ACEOF
15167rm -f conftest.$ac_objext conftest$ac_exeext
15168if { (ac_try="$ac_link"
15169case "(($ac_try" in
15170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171  *) ac_try_echo=$ac_try;;
15172esac
15173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15174$as_echo "$ac_try_echo") >&5
15175  (eval "$ac_link") 2>conftest.er1
15176  ac_status=$?
15177  grep -v '^ *+' conftest.er1 >conftest.err
15178  rm -f conftest.er1
15179  cat conftest.err >&5
15180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); } && {
15182	 test -z "$ac_c_werror_flag" ||
15183	 test ! -s conftest.err
15184       } && test -s conftest$ac_exeext && {
15185	 test "$cross_compiling" = yes ||
15186	 $as_test_x conftest$ac_exeext
15187       }; then
15188  eval "$gt_func_gnugettext_libc=yes"
15189else
15190  $as_echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193	eval "$gt_func_gnugettext_libc=no"
15194fi
15195
15196rm -rf conftest.dSYM
15197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15198      conftest$ac_exeext conftest.$ac_ext
15199fi
15200ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
15201		 $as_echo "$as_val"'`
15202	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15203$as_echo "$ac_res" >&6; }
15204
15205        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15206
15207
15208
15209
15210
15211          am_save_CPPFLAGS="$CPPFLAGS"
15212
15213  for element in $INCICONV; do
15214    haveit=
15215    for x in $CPPFLAGS; do
15216
15217  acl_save_prefix="$prefix"
15218  prefix="$acl_final_prefix"
15219  acl_save_exec_prefix="$exec_prefix"
15220  exec_prefix="$acl_final_exec_prefix"
15221  eval x=\"$x\"
15222  exec_prefix="$acl_save_exec_prefix"
15223  prefix="$acl_save_prefix"
15224
15225      if test "X$x" = "X$element"; then
15226        haveit=yes
15227        break
15228      fi
15229    done
15230    if test -z "$haveit"; then
15231      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15232    fi
15233  done
15234
15235
15236  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
15237$as_echo_n "checking for iconv... " >&6; }
15238if test "${am_cv_func_iconv+set}" = set; then
15239  $as_echo_n "(cached) " >&6
15240else
15241
15242    am_cv_func_iconv="no, consider installing GNU libiconv"
15243    am_cv_lib_iconv=no
15244    cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h.  */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h.  */
15250#include <stdlib.h>
15251#include <iconv.h>
15252int
15253main ()
15254{
15255iconv_t cd = iconv_open("","");
15256       iconv(cd,NULL,NULL,NULL,NULL);
15257       iconv_close(cd);
15258  ;
15259  return 0;
15260}
15261_ACEOF
15262rm -f conftest.$ac_objext conftest$ac_exeext
15263if { (ac_try="$ac_link"
15264case "(($ac_try" in
15265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266  *) ac_try_echo=$ac_try;;
15267esac
15268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15269$as_echo "$ac_try_echo") >&5
15270  (eval "$ac_link") 2>conftest.er1
15271  ac_status=$?
15272  grep -v '^ *+' conftest.er1 >conftest.err
15273  rm -f conftest.er1
15274  cat conftest.err >&5
15275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276  (exit $ac_status); } && {
15277	 test -z "$ac_c_werror_flag" ||
15278	 test ! -s conftest.err
15279       } && test -s conftest$ac_exeext && {
15280	 test "$cross_compiling" = yes ||
15281	 $as_test_x conftest$ac_exeext
15282       }; then
15283  am_cv_func_iconv=yes
15284else
15285  $as_echo "$as_me: failed program was:" >&5
15286sed 's/^/| /' conftest.$ac_ext >&5
15287
15288
15289fi
15290
15291rm -rf conftest.dSYM
15292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293      conftest$ac_exeext conftest.$ac_ext
15294    if test "$am_cv_func_iconv" != yes; then
15295      am_save_LIBS="$LIBS"
15296      LIBS="$LIBS $LIBICONV"
15297      cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h.  */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h.  */
15303#include <stdlib.h>
15304#include <iconv.h>
15305int
15306main ()
15307{
15308iconv_t cd = iconv_open("","");
15309         iconv(cd,NULL,NULL,NULL,NULL);
15310         iconv_close(cd);
15311  ;
15312  return 0;
15313}
15314_ACEOF
15315rm -f conftest.$ac_objext conftest$ac_exeext
15316if { (ac_try="$ac_link"
15317case "(($ac_try" in
15318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319  *) ac_try_echo=$ac_try;;
15320esac
15321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322$as_echo "$ac_try_echo") >&5
15323  (eval "$ac_link") 2>conftest.er1
15324  ac_status=$?
15325  grep -v '^ *+' conftest.er1 >conftest.err
15326  rm -f conftest.er1
15327  cat conftest.err >&5
15328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329  (exit $ac_status); } && {
15330	 test -z "$ac_c_werror_flag" ||
15331	 test ! -s conftest.err
15332       } && test -s conftest$ac_exeext && {
15333	 test "$cross_compiling" = yes ||
15334	 $as_test_x conftest$ac_exeext
15335       }; then
15336  am_cv_lib_iconv=yes
15337        am_cv_func_iconv=yes
15338else
15339  $as_echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342
15343fi
15344
15345rm -rf conftest.dSYM
15346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15347      conftest$ac_exeext conftest.$ac_ext
15348      LIBS="$am_save_LIBS"
15349    fi
15350
15351fi
15352{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15353$as_echo "$am_cv_func_iconv" >&6; }
15354  if test "$am_cv_func_iconv" = yes; then
15355
15356cat >>confdefs.h <<\_ACEOF
15357#define HAVE_ICONV 1
15358_ACEOF
15359
15360  fi
15361  if test "$am_cv_lib_iconv" = yes; then
15362    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15363$as_echo_n "checking how to link with libiconv... " >&6; }
15364    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15365$as_echo "$LIBICONV" >&6; }
15366  else
15367            CPPFLAGS="$am_save_CPPFLAGS"
15368    LIBICONV=
15369    LTLIBICONV=
15370  fi
15371
15372
15373
15374
15375
15376
15377
15378    use_additional=yes
15379
15380  acl_save_prefix="$prefix"
15381  prefix="$acl_final_prefix"
15382  acl_save_exec_prefix="$exec_prefix"
15383  exec_prefix="$acl_final_exec_prefix"
15384
15385    eval additional_includedir=\"$includedir\"
15386    eval additional_libdir=\"$libdir\"
15387
15388  exec_prefix="$acl_save_exec_prefix"
15389  prefix="$acl_save_prefix"
15390
15391
15392# Check whether --with-libintl-prefix was given.
15393if test "${with_libintl_prefix+set}" = set; then
15394  withval=$with_libintl_prefix;
15395    if test "X$withval" = "Xno"; then
15396      use_additional=no
15397    else
15398      if test "X$withval" = "X"; then
15399
15400  acl_save_prefix="$prefix"
15401  prefix="$acl_final_prefix"
15402  acl_save_exec_prefix="$exec_prefix"
15403  exec_prefix="$acl_final_exec_prefix"
15404
15405          eval additional_includedir=\"$includedir\"
15406          eval additional_libdir=\"$libdir\"
15407
15408  exec_prefix="$acl_save_exec_prefix"
15409  prefix="$acl_save_prefix"
15410
15411      else
15412        additional_includedir="$withval/include"
15413        additional_libdir="$withval/$acl_libdirstem"
15414      fi
15415    fi
15416
15417fi
15418
15419      LIBINTL=
15420  LTLIBINTL=
15421  INCINTL=
15422  rpathdirs=
15423  ltrpathdirs=
15424  names_already_handled=
15425  names_next_round='intl '
15426  while test -n "$names_next_round"; do
15427    names_this_round="$names_next_round"
15428    names_next_round=
15429    for name in $names_this_round; do
15430      already_handled=
15431      for n in $names_already_handled; do
15432        if test "$n" = "$name"; then
15433          already_handled=yes
15434          break
15435        fi
15436      done
15437      if test -z "$already_handled"; then
15438        names_already_handled="$names_already_handled $name"
15439                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15440        eval value=\"\$HAVE_LIB$uppername\"
15441        if test -n "$value"; then
15442          if test "$value" = yes; then
15443            eval value=\"\$LIB$uppername\"
15444            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15445            eval value=\"\$LTLIB$uppername\"
15446            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15447          else
15448                                    :
15449          fi
15450        else
15451                              found_dir=
15452          found_la=
15453          found_so=
15454          found_a=
15455          if test $use_additional = yes; then
15456            if test -n "$shlibext" \
15457               && { test -f "$additional_libdir/lib$name.$shlibext" \
15458                    || { test "$shlibext" = dll \
15459                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15460              found_dir="$additional_libdir"
15461              if test -f "$additional_libdir/lib$name.$shlibext"; then
15462                found_so="$additional_libdir/lib$name.$shlibext"
15463              else
15464                found_so="$additional_libdir/lib$name.dll.a"
15465              fi
15466              if test -f "$additional_libdir/lib$name.la"; then
15467                found_la="$additional_libdir/lib$name.la"
15468              fi
15469            else
15470              if test -f "$additional_libdir/lib$name.$libext"; then
15471                found_dir="$additional_libdir"
15472                found_a="$additional_libdir/lib$name.$libext"
15473                if test -f "$additional_libdir/lib$name.la"; then
15474                  found_la="$additional_libdir/lib$name.la"
15475                fi
15476              fi
15477            fi
15478          fi
15479          if test "X$found_dir" = "X"; then
15480            for x in $LDFLAGS $LTLIBINTL; do
15481
15482  acl_save_prefix="$prefix"
15483  prefix="$acl_final_prefix"
15484  acl_save_exec_prefix="$exec_prefix"
15485  exec_prefix="$acl_final_exec_prefix"
15486  eval x=\"$x\"
15487  exec_prefix="$acl_save_exec_prefix"
15488  prefix="$acl_save_prefix"
15489
15490              case "$x" in
15491                -L*)
15492                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15493                  if test -n "$shlibext" \
15494                     && { test -f "$dir/lib$name.$shlibext" \
15495                          || { test "$shlibext" = dll \
15496                               && test -f "$dir/lib$name.dll.a"; }; }; then
15497                    found_dir="$dir"
15498                    if test -f "$dir/lib$name.$shlibext"; then
15499                      found_so="$dir/lib$name.$shlibext"
15500                    else
15501                      found_so="$dir/lib$name.dll.a"
15502                    fi
15503                    if test -f "$dir/lib$name.la"; then
15504                      found_la="$dir/lib$name.la"
15505                    fi
15506                  else
15507                    if test -f "$dir/lib$name.$libext"; then
15508                      found_dir="$dir"
15509                      found_a="$dir/lib$name.$libext"
15510                      if test -f "$dir/lib$name.la"; then
15511                        found_la="$dir/lib$name.la"
15512                      fi
15513                    fi
15514                  fi
15515                  ;;
15516              esac
15517              if test "X$found_dir" != "X"; then
15518                break
15519              fi
15520            done
15521          fi
15522          if test "X$found_dir" != "X"; then
15523                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15524            if test "X$found_so" != "X"; then
15525                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15526                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15527              else
15528                                                                                haveit=
15529                for x in $ltrpathdirs; do
15530                  if test "X$x" = "X$found_dir"; then
15531                    haveit=yes
15532                    break
15533                  fi
15534                done
15535                if test -z "$haveit"; then
15536                  ltrpathdirs="$ltrpathdirs $found_dir"
15537                fi
15538                                if test "$hardcode_direct" = yes; then
15539                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15540                else
15541                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15542                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15543                                                            haveit=
15544                    for x in $rpathdirs; do
15545                      if test "X$x" = "X$found_dir"; then
15546                        haveit=yes
15547                        break
15548                      fi
15549                    done
15550                    if test -z "$haveit"; then
15551                      rpathdirs="$rpathdirs $found_dir"
15552                    fi
15553                  else
15554                                                                                haveit=
15555                    for x in $LDFLAGS $LIBINTL; do
15556
15557  acl_save_prefix="$prefix"
15558  prefix="$acl_final_prefix"
15559  acl_save_exec_prefix="$exec_prefix"
15560  exec_prefix="$acl_final_exec_prefix"
15561  eval x=\"$x\"
15562  exec_prefix="$acl_save_exec_prefix"
15563  prefix="$acl_save_prefix"
15564
15565                      if test "X$x" = "X-L$found_dir"; then
15566                        haveit=yes
15567                        break
15568                      fi
15569                    done
15570                    if test -z "$haveit"; then
15571                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15572                    fi
15573                    if test "$hardcode_minus_L" != no; then
15574                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15575                    else
15576                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15577                    fi
15578                  fi
15579                fi
15580              fi
15581            else
15582              if test "X$found_a" != "X"; then
15583                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15584              else
15585                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15586              fi
15587            fi
15588                        additional_includedir=
15589            case "$found_dir" in
15590              */$acl_libdirstem | */$acl_libdirstem/)
15591                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15592                additional_includedir="$basedir/include"
15593                ;;
15594            esac
15595            if test "X$additional_includedir" != "X"; then
15596                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15597                haveit=
15598                if test "X$additional_includedir" = "X/usr/local/include"; then
15599                  if test -n "$GCC"; then
15600                    case $host_os in
15601                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15602                    esac
15603                  fi
15604                fi
15605                if test -z "$haveit"; then
15606                  for x in $CPPFLAGS $INCINTL; do
15607
15608  acl_save_prefix="$prefix"
15609  prefix="$acl_final_prefix"
15610  acl_save_exec_prefix="$exec_prefix"
15611  exec_prefix="$acl_final_exec_prefix"
15612  eval x=\"$x\"
15613  exec_prefix="$acl_save_exec_prefix"
15614  prefix="$acl_save_prefix"
15615
15616                    if test "X$x" = "X-I$additional_includedir"; then
15617                      haveit=yes
15618                      break
15619                    fi
15620                  done
15621                  if test -z "$haveit"; then
15622                    if test -d "$additional_includedir"; then
15623                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15624                    fi
15625                  fi
15626                fi
15627              fi
15628            fi
15629                        if test -n "$found_la"; then
15630                                                        save_libdir="$libdir"
15631              case "$found_la" in
15632                */* | *\\*) . "$found_la" ;;
15633                *) . "./$found_la" ;;
15634              esac
15635              libdir="$save_libdir"
15636                            for dep in $dependency_libs; do
15637                case "$dep" in
15638                  -L*)
15639                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15640                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15641                      haveit=
15642                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15643                        if test -n "$GCC"; then
15644                          case $host_os in
15645                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15646                          esac
15647                        fi
15648                      fi
15649                      if test -z "$haveit"; then
15650                        haveit=
15651                        for x in $LDFLAGS $LIBINTL; do
15652
15653  acl_save_prefix="$prefix"
15654  prefix="$acl_final_prefix"
15655  acl_save_exec_prefix="$exec_prefix"
15656  exec_prefix="$acl_final_exec_prefix"
15657  eval x=\"$x\"
15658  exec_prefix="$acl_save_exec_prefix"
15659  prefix="$acl_save_prefix"
15660
15661                          if test "X$x" = "X-L$additional_libdir"; then
15662                            haveit=yes
15663                            break
15664                          fi
15665                        done
15666                        if test -z "$haveit"; then
15667                          if test -d "$additional_libdir"; then
15668                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15669                          fi
15670                        fi
15671                        haveit=
15672                        for x in $LDFLAGS $LTLIBINTL; do
15673
15674  acl_save_prefix="$prefix"
15675  prefix="$acl_final_prefix"
15676  acl_save_exec_prefix="$exec_prefix"
15677  exec_prefix="$acl_final_exec_prefix"
15678  eval x=\"$x\"
15679  exec_prefix="$acl_save_exec_prefix"
15680  prefix="$acl_save_prefix"
15681
15682                          if test "X$x" = "X-L$additional_libdir"; then
15683                            haveit=yes
15684                            break
15685                          fi
15686                        done
15687                        if test -z "$haveit"; then
15688                          if test -d "$additional_libdir"; then
15689                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15690                          fi
15691                        fi
15692                      fi
15693                    fi
15694                    ;;
15695                  -R*)
15696                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15697                    if test "$enable_rpath" != no; then
15698                                                                  haveit=
15699                      for x in $rpathdirs; do
15700                        if test "X$x" = "X$dir"; then
15701                          haveit=yes
15702                          break
15703                        fi
15704                      done
15705                      if test -z "$haveit"; then
15706                        rpathdirs="$rpathdirs $dir"
15707                      fi
15708                                                                  haveit=
15709                      for x in $ltrpathdirs; do
15710                        if test "X$x" = "X$dir"; then
15711                          haveit=yes
15712                          break
15713                        fi
15714                      done
15715                      if test -z "$haveit"; then
15716                        ltrpathdirs="$ltrpathdirs $dir"
15717                      fi
15718                    fi
15719                    ;;
15720                  -l*)
15721                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15722                    ;;
15723                  *.la)
15724                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15725                    ;;
15726                  *)
15727                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15728                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15729                    ;;
15730                esac
15731              done
15732            fi
15733          else
15734                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15735            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15736          fi
15737        fi
15738      fi
15739    done
15740  done
15741  if test "X$rpathdirs" != "X"; then
15742    if test -n "$hardcode_libdir_separator"; then
15743                        alldirs=
15744      for found_dir in $rpathdirs; do
15745        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15746      done
15747            acl_save_libdir="$libdir"
15748      libdir="$alldirs"
15749      eval flag=\"$hardcode_libdir_flag_spec\"
15750      libdir="$acl_save_libdir"
15751      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15752    else
15753            for found_dir in $rpathdirs; do
15754        acl_save_libdir="$libdir"
15755        libdir="$found_dir"
15756        eval flag=\"$hardcode_libdir_flag_spec\"
15757        libdir="$acl_save_libdir"
15758        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15759      done
15760    fi
15761  fi
15762  if test "X$ltrpathdirs" != "X"; then
15763            for found_dir in $ltrpathdirs; do
15764      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15765    done
15766  fi
15767
15768          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15769$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15770if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
15771  $as_echo_n "(cached) " >&6
15772else
15773  gt_save_CPPFLAGS="$CPPFLAGS"
15774            CPPFLAGS="$CPPFLAGS $INCINTL"
15775            gt_save_LIBS="$LIBS"
15776            LIBS="$LIBS $LIBINTL"
15777                        cat >conftest.$ac_ext <<_ACEOF
15778/* confdefs.h.  */
15779_ACEOF
15780cat confdefs.h >>conftest.$ac_ext
15781cat >>conftest.$ac_ext <<_ACEOF
15782/* end confdefs.h.  */
15783#include <libintl.h>
15784$gt_revision_test_code
15785extern int _nl_msg_cat_cntr;
15786extern
15787#ifdef __cplusplus
15788"C"
15789#endif
15790const char *_nl_expand_alias (const char *);
15791int
15792main ()
15793{
15794bindtextdomain ("", "");
15795return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15796  ;
15797  return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext conftest$ac_exeext
15801if { (ac_try="$ac_link"
15802case "(($ac_try" in
15803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804  *) ac_try_echo=$ac_try;;
15805esac
15806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15807$as_echo "$ac_try_echo") >&5
15808  (eval "$ac_link") 2>conftest.er1
15809  ac_status=$?
15810  grep -v '^ *+' conftest.er1 >conftest.err
15811  rm -f conftest.er1
15812  cat conftest.err >&5
15813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814  (exit $ac_status); } && {
15815	 test -z "$ac_c_werror_flag" ||
15816	 test ! -s conftest.err
15817       } && test -s conftest$ac_exeext && {
15818	 test "$cross_compiling" = yes ||
15819	 $as_test_x conftest$ac_exeext
15820       }; then
15821  eval "$gt_func_gnugettext_libintl=yes"
15822else
15823  $as_echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
15826	eval "$gt_func_gnugettext_libintl=no"
15827fi
15828
15829rm -rf conftest.dSYM
15830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15831      conftest$ac_exeext conftest.$ac_ext
15832                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15833              LIBS="$LIBS $LIBICONV"
15834              cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h.  */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h.  */
15840#include <libintl.h>
15841$gt_revision_test_code
15842extern int _nl_msg_cat_cntr;
15843extern
15844#ifdef __cplusplus
15845"C"
15846#endif
15847const char *_nl_expand_alias (const char *);
15848int
15849main ()
15850{
15851bindtextdomain ("", "");
15852return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15853  ;
15854  return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext conftest$ac_exeext
15858if { (ac_try="$ac_link"
15859case "(($ac_try" in
15860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861  *) ac_try_echo=$ac_try;;
15862esac
15863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15864$as_echo "$ac_try_echo") >&5
15865  (eval "$ac_link") 2>conftest.er1
15866  ac_status=$?
15867  grep -v '^ *+' conftest.er1 >conftest.err
15868  rm -f conftest.er1
15869  cat conftest.err >&5
15870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871  (exit $ac_status); } && {
15872	 test -z "$ac_c_werror_flag" ||
15873	 test ! -s conftest.err
15874       } && test -s conftest$ac_exeext && {
15875	 test "$cross_compiling" = yes ||
15876	 $as_test_x conftest$ac_exeext
15877       }; then
15878  LIBINTL="$LIBINTL $LIBICONV"
15879                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15880                eval "$gt_func_gnugettext_libintl=yes"
15881
15882else
15883  $as_echo "$as_me: failed program was:" >&5
15884sed 's/^/| /' conftest.$ac_ext >&5
15885
15886
15887fi
15888
15889rm -rf conftest.dSYM
15890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15891      conftest$ac_exeext conftest.$ac_ext
15892            fi
15893            CPPFLAGS="$gt_save_CPPFLAGS"
15894            LIBS="$gt_save_LIBS"
15895fi
15896ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
15897		 $as_echo "$as_val"'`
15898	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15899$as_echo "$ac_res" >&6; }
15900        fi
15901
15902                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15903           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15904                && test "$PACKAGE" != gettext-runtime \
15905                && test "$PACKAGE" != gettext-tools; }; then
15906          gt_use_preinstalled_gnugettext=yes
15907        else
15908                    LIBINTL=
15909          LTLIBINTL=
15910          INCINTL=
15911        fi
15912
15913
15914
15915    if test -n "$INTL_MACOSX_LIBS"; then
15916      if test "$gt_use_preinstalled_gnugettext" = "yes" \
15917         || test "$nls_cv_use_gnu_gettext" = "yes"; then
15918                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15919        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15920      fi
15921    fi
15922
15923    if test "$gt_use_preinstalled_gnugettext" = "yes" \
15924       || test "$nls_cv_use_gnu_gettext" = "yes"; then
15925
15926cat >>confdefs.h <<\_ACEOF
15927#define ENABLE_NLS 1
15928_ACEOF
15929
15930    else
15931      USE_NLS=no
15932    fi
15933  fi
15934
15935  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
15936$as_echo_n "checking whether to use NLS... " >&6; }
15937  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15938$as_echo "$USE_NLS" >&6; }
15939  if test "$USE_NLS" = "yes"; then
15940    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
15941$as_echo_n "checking where the gettext function comes from... " >&6; }
15942    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15943      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15944        gt_source="external libintl"
15945      else
15946        gt_source="libc"
15947      fi
15948    else
15949      gt_source="included intl directory"
15950    fi
15951    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
15952$as_echo "$gt_source" >&6; }
15953  fi
15954
15955  if test "$USE_NLS" = "yes"; then
15956
15957    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15958      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15959        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
15960$as_echo_n "checking how to link with libintl... " >&6; }
15961        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
15962$as_echo "$LIBINTL" >&6; }
15963
15964  for element in $INCINTL; do
15965    haveit=
15966    for x in $CPPFLAGS; do
15967
15968  acl_save_prefix="$prefix"
15969  prefix="$acl_final_prefix"
15970  acl_save_exec_prefix="$exec_prefix"
15971  exec_prefix="$acl_final_exec_prefix"
15972  eval x=\"$x\"
15973  exec_prefix="$acl_save_exec_prefix"
15974  prefix="$acl_save_prefix"
15975
15976      if test "X$x" = "X$element"; then
15977        haveit=yes
15978        break
15979      fi
15980    done
15981    if test -z "$haveit"; then
15982      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15983    fi
15984  done
15985
15986      fi
15987
15988
15989cat >>confdefs.h <<\_ACEOF
15990#define HAVE_GETTEXT 1
15991_ACEOF
15992
15993
15994cat >>confdefs.h <<\_ACEOF
15995#define HAVE_DCGETTEXT 1
15996_ACEOF
15997
15998    fi
15999
16000        POSUB=po
16001  fi
16002
16003
16004
16005    INTLLIBS="$LIBINTL"
16006
16007
16008
16009
16010
16011
16012
16013###############################################################################
16014# Checks for header files.
16015###############################################################################
16016
16017echo
16018echo "System headers and functions:"
16019
16020# There is currently no workarounds in this package if some of
16021# these headers are missing.
16022
16023
16024
16025for ac_header in fcntl.h limits.h sys/time.h
16026do
16027as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16030$as_echo_n "checking for $ac_header... " >&6; }
16031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032  $as_echo_n "(cached) " >&6
16033fi
16034ac_res=`eval 'as_val=${'$as_ac_Header'}
16035		 $as_echo "$as_val"'`
16036	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16037$as_echo "$ac_res" >&6; }
16038else
16039  # Is the header compilable?
16040{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16041$as_echo_n "checking $ac_header usability... " >&6; }
16042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h.  */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h.  */
16048$ac_includes_default
16049#include <$ac_header>
16050_ACEOF
16051rm -f conftest.$ac_objext
16052if { (ac_try="$ac_compile"
16053case "(($ac_try" in
16054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055  *) ac_try_echo=$ac_try;;
16056esac
16057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058$as_echo "$ac_try_echo") >&5
16059  (eval "$ac_compile") 2>conftest.er1
16060  ac_status=$?
16061  grep -v '^ *+' conftest.er1 >conftest.err
16062  rm -f conftest.er1
16063  cat conftest.err >&5
16064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065  (exit $ac_status); } && {
16066	 test -z "$ac_c_werror_flag" ||
16067	 test ! -s conftest.err
16068       } && test -s conftest.$ac_objext; then
16069  ac_header_compiler=yes
16070else
16071  $as_echo "$as_me: failed program was:" >&5
16072sed 's/^/| /' conftest.$ac_ext >&5
16073
16074	ac_header_compiler=no
16075fi
16076
16077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16079$as_echo "$ac_header_compiler" >&6; }
16080
16081# Is the header present?
16082{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16083$as_echo_n "checking $ac_header presence... " >&6; }
16084cat >conftest.$ac_ext <<_ACEOF
16085/* confdefs.h.  */
16086_ACEOF
16087cat confdefs.h >>conftest.$ac_ext
16088cat >>conftest.$ac_ext <<_ACEOF
16089/* end confdefs.h.  */
16090#include <$ac_header>
16091_ACEOF
16092if { (ac_try="$ac_cpp conftest.$ac_ext"
16093case "(($ac_try" in
16094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095  *) ac_try_echo=$ac_try;;
16096esac
16097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16098$as_echo "$ac_try_echo") >&5
16099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16100  ac_status=$?
16101  grep -v '^ *+' conftest.er1 >conftest.err
16102  rm -f conftest.er1
16103  cat conftest.err >&5
16104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105  (exit $ac_status); } >/dev/null && {
16106	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16107	 test ! -s conftest.err
16108       }; then
16109  ac_header_preproc=yes
16110else
16111  $as_echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114  ac_header_preproc=no
16115fi
16116
16117rm -f conftest.err conftest.$ac_ext
16118{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16119$as_echo "$ac_header_preproc" >&6; }
16120
16121# So?  What about this header?
16122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16123  yes:no: )
16124    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16125$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16126    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16127$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16128    ac_header_preproc=yes
16129    ;;
16130  no:yes:* )
16131    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16132$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16134$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16136$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16138$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16139    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16140$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16141    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16142$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16143    ( cat <<\_ASBOX
16144## --------------------------------------- ##
16145## Report this to lasse.collin@tukaani.org ##
16146## --------------------------------------- ##
16147_ASBOX
16148     ) | sed "s/^/$as_me: WARNING:     /" >&2
16149    ;;
16150esac
16151{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16152$as_echo_n "checking for $ac_header... " >&6; }
16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154  $as_echo_n "(cached) " >&6
16155else
16156  eval "$as_ac_Header=\$ac_header_preproc"
16157fi
16158ac_res=`eval 'as_val=${'$as_ac_Header'}
16159		 $as_echo "$as_val"'`
16160	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16161$as_echo "$ac_res" >&6; }
16162
16163fi
16164as_val=`eval 'as_val=${'$as_ac_Header'}
16165		 $as_echo "$as_val"'`
16166   if test "x$as_val" = x""yes; then
16167  cat >>confdefs.h <<_ACEOF
16168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16169_ACEOF
16170
16171else
16172  { { $as_echo "$as_me:$LINENO: error: Required header file(s) are missing." >&5
16173$as_echo "$as_me: error: Required header file(s) are missing." >&2;}
16174   { (exit 1); exit 1; }; }
16175fi
16176
16177done
16178
16179
16180# If any of these headers are missing, things should still work correctly:
16181
16182
16183
16184for ac_header in sys/param.h sys/sysctl.h byteswap.h
16185do
16186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16187{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16188$as_echo_n "checking for $ac_header... " >&6; }
16189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190  $as_echo_n "(cached) " >&6
16191else
16192  cat >conftest.$ac_ext <<_ACEOF
16193/* confdefs.h.  */
16194_ACEOF
16195cat confdefs.h >>conftest.$ac_ext
16196cat >>conftest.$ac_ext <<_ACEOF
16197/* end confdefs.h.  */
16198
16199#ifdef HAVE_SYS_PARAM_H
16200#	include <sys/param.h>
16201#endif
16202
16203
16204#include <$ac_header>
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (ac_try="$ac_compile"
16208case "(($ac_try" in
16209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210  *) ac_try_echo=$ac_try;;
16211esac
16212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16213$as_echo "$ac_try_echo") >&5
16214  (eval "$ac_compile") 2>conftest.er1
16215  ac_status=$?
16216  grep -v '^ *+' conftest.er1 >conftest.err
16217  rm -f conftest.er1
16218  cat conftest.err >&5
16219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220  (exit $ac_status); } && {
16221	 test -z "$ac_c_werror_flag" ||
16222	 test ! -s conftest.err
16223       } && test -s conftest.$ac_objext; then
16224  eval "$as_ac_Header=yes"
16225else
16226  $as_echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229	eval "$as_ac_Header=no"
16230fi
16231
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233fi
16234ac_res=`eval 'as_val=${'$as_ac_Header'}
16235		 $as_echo "$as_val"'`
16236	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16237$as_echo "$ac_res" >&6; }
16238as_val=`eval 'as_val=${'$as_ac_Header'}
16239		 $as_echo "$as_val"'`
16240   if test "x$as_val" = x""yes; then
16241  cat >>confdefs.h <<_ACEOF
16242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16243_ACEOF
16244
16245fi
16246
16247done
16248
16249
16250# Even if we have byteswap.h, we may lack the specific macros/functions.
16251if test x$ac_cv_header_byteswap_h = xyes ; then
16252
16253		{ $as_echo "$as_me:$LINENO: checking if bswap_16 is available" >&5
16254$as_echo_n "checking if bswap_16 is available... " >&6; }
16255		cat >conftest.$ac_ext <<_ACEOF
16256/* confdefs.h.  */
16257_ACEOF
16258cat confdefs.h >>conftest.$ac_ext
16259cat >>conftest.$ac_ext <<_ACEOF
16260/* end confdefs.h.  */
16261
16262#include <byteswap.h>
16263int
16264main(void)
16265{
16266	bswap_16(42);
16267	return 0;
16268}
16269
16270_ACEOF
16271rm -f conftest.$ac_objext conftest$ac_exeext
16272if { (ac_try="$ac_link"
16273case "(($ac_try" in
16274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275  *) ac_try_echo=$ac_try;;
16276esac
16277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16278$as_echo "$ac_try_echo") >&5
16279  (eval "$ac_link") 2>conftest.er1
16280  ac_status=$?
16281  grep -v '^ *+' conftest.er1 >conftest.err
16282  rm -f conftest.er1
16283  cat conftest.err >&5
16284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285  (exit $ac_status); } && {
16286	 test -z "$ac_c_werror_flag" ||
16287	 test ! -s conftest.err
16288       } && test -s conftest$ac_exeext && {
16289	 test "$cross_compiling" = yes ||
16290	 $as_test_x conftest$ac_exeext
16291       }; then
16292
16293
16294cat >>confdefs.h <<\_ACEOF
16295#define HAVE_BSWAP_16 1
16296_ACEOF
16297
16298			{ $as_echo "$as_me:$LINENO: result: yes" >&5
16299$as_echo "yes" >&6; }
16300
16301else
16302  $as_echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305	{ $as_echo "$as_me:$LINENO: result: no" >&5
16306$as_echo "no" >&6; }
16307fi
16308
16309rm -rf conftest.dSYM
16310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16311      conftest$ac_exeext conftest.$ac_ext
16312
16313
16314		{ $as_echo "$as_me:$LINENO: checking if bswap_32 is available" >&5
16315$as_echo_n "checking if bswap_32 is available... " >&6; }
16316		cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h.  */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h.  */
16322
16323#include <byteswap.h>
16324int
16325main(void)
16326{
16327	bswap_32(42);
16328	return 0;
16329}
16330
16331_ACEOF
16332rm -f conftest.$ac_objext conftest$ac_exeext
16333if { (ac_try="$ac_link"
16334case "(($ac_try" in
16335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336  *) ac_try_echo=$ac_try;;
16337esac
16338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339$as_echo "$ac_try_echo") >&5
16340  (eval "$ac_link") 2>conftest.er1
16341  ac_status=$?
16342  grep -v '^ *+' conftest.er1 >conftest.err
16343  rm -f conftest.er1
16344  cat conftest.err >&5
16345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346  (exit $ac_status); } && {
16347	 test -z "$ac_c_werror_flag" ||
16348	 test ! -s conftest.err
16349       } && test -s conftest$ac_exeext && {
16350	 test "$cross_compiling" = yes ||
16351	 $as_test_x conftest$ac_exeext
16352       }; then
16353
16354
16355cat >>confdefs.h <<\_ACEOF
16356#define HAVE_BSWAP_32 1
16357_ACEOF
16358
16359			{ $as_echo "$as_me:$LINENO: result: yes" >&5
16360$as_echo "yes" >&6; }
16361
16362else
16363  $as_echo "$as_me: failed program was:" >&5
16364sed 's/^/| /' conftest.$ac_ext >&5
16365
16366	{ $as_echo "$as_me:$LINENO: result: no" >&5
16367$as_echo "no" >&6; }
16368fi
16369
16370rm -rf conftest.dSYM
16371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16372      conftest$ac_exeext conftest.$ac_ext
16373
16374
16375		{ $as_echo "$as_me:$LINENO: checking if bswap_64 is available" >&5
16376$as_echo_n "checking if bswap_64 is available... " >&6; }
16377		cat >conftest.$ac_ext <<_ACEOF
16378/* confdefs.h.  */
16379_ACEOF
16380cat confdefs.h >>conftest.$ac_ext
16381cat >>conftest.$ac_ext <<_ACEOF
16382/* end confdefs.h.  */
16383
16384#include <byteswap.h>
16385int
16386main(void)
16387{
16388	bswap_64(42);
16389	return 0;
16390}
16391
16392_ACEOF
16393rm -f conftest.$ac_objext conftest$ac_exeext
16394if { (ac_try="$ac_link"
16395case "(($ac_try" in
16396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397  *) ac_try_echo=$ac_try;;
16398esac
16399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16400$as_echo "$ac_try_echo") >&5
16401  (eval "$ac_link") 2>conftest.er1
16402  ac_status=$?
16403  grep -v '^ *+' conftest.er1 >conftest.err
16404  rm -f conftest.er1
16405  cat conftest.err >&5
16406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407  (exit $ac_status); } && {
16408	 test -z "$ac_c_werror_flag" ||
16409	 test ! -s conftest.err
16410       } && test -s conftest$ac_exeext && {
16411	 test "$cross_compiling" = yes ||
16412	 $as_test_x conftest$ac_exeext
16413       }; then
16414
16415
16416cat >>confdefs.h <<\_ACEOF
16417#define HAVE_BSWAP_64 1
16418_ACEOF
16419
16420			{ $as_echo "$as_me:$LINENO: result: yes" >&5
16421$as_echo "yes" >&6; }
16422
16423else
16424  $as_echo "$as_me: failed program was:" >&5
16425sed 's/^/| /' conftest.$ac_ext >&5
16426
16427	{ $as_echo "$as_me:$LINENO: result: no" >&5
16428$as_echo "no" >&6; }
16429fi
16430
16431rm -rf conftest.dSYM
16432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433      conftest$ac_exeext conftest.$ac_ext
16434
16435	fi
16436
16437
16438###############################################################################
16439# Checks for typedefs, structures, and compiler characteristics.
16440###############################################################################
16441
16442
16443{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16444$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16445if test "${ac_cv_header_stdbool_h+set}" = set; then
16446  $as_echo_n "(cached) " >&6
16447else
16448  cat >conftest.$ac_ext <<_ACEOF
16449/* confdefs.h.  */
16450_ACEOF
16451cat confdefs.h >>conftest.$ac_ext
16452cat >>conftest.$ac_ext <<_ACEOF
16453/* end confdefs.h.  */
16454
16455#include <stdbool.h>
16456#ifndef bool
16457 "error: bool is not defined"
16458#endif
16459#ifndef false
16460 "error: false is not defined"
16461#endif
16462#if false
16463 "error: false is not 0"
16464#endif
16465#ifndef true
16466 "error: true is not defined"
16467#endif
16468#if true != 1
16469 "error: true is not 1"
16470#endif
16471#ifndef __bool_true_false_are_defined
16472 "error: __bool_true_false_are_defined is not defined"
16473#endif
16474
16475	struct s { _Bool s: 1; _Bool t; } s;
16476
16477	char a[true == 1 ? 1 : -1];
16478	char b[false == 0 ? 1 : -1];
16479	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16480	char d[(bool) 0.5 == true ? 1 : -1];
16481	bool e = &s;
16482	char f[(_Bool) 0.0 == false ? 1 : -1];
16483	char g[true];
16484	char h[sizeof (_Bool)];
16485	char i[sizeof s.t];
16486	enum { j = false, k = true, l = false * true, m = true * 256 };
16487	/* The following fails for
16488	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16489	_Bool n[m];
16490	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16491	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16492#	if defined __xlc__ || defined __GNUC__
16493	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16494	    reported by James Lemley on 2005-10-05; see
16495	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16496	    This test is not quite right, since xlc is allowed to
16497	    reject this program, as the initializer for xlcbug is
16498	    not one of the forms that C requires support for.
16499	    However, doing the test right would require a runtime
16500	    test, and that would make cross-compilation harder.
16501	    Let us hope that IBM fixes the xlc bug, and also adds
16502	    support for this kind of constant expression.  In the
16503	    meantime, this test will reject xlc, which is OK, since
16504	    our stdbool.h substitute should suffice.  We also test
16505	    this with GCC, where it should work, to detect more
16506	    quickly whether someone messes up the test in the
16507	    future.  */
16508	 char digs[] = "0123456789";
16509	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16510#	endif
16511	/* Catch a bug in an HP-UX C compiler.  See
16512	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16513	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16514	 */
16515	_Bool q = true;
16516	_Bool *pq = &q;
16517
16518int
16519main ()
16520{
16521
16522	*pq |= q;
16523	*pq |= ! q;
16524	/* Refer to every declared value, to avoid compiler optimizations.  */
16525	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16526		+ !m + !n + !o + !p + !q + !pq);
16527
16528  ;
16529  return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext
16533if { (ac_try="$ac_compile"
16534case "(($ac_try" in
16535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536  *) ac_try_echo=$ac_try;;
16537esac
16538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16539$as_echo "$ac_try_echo") >&5
16540  (eval "$ac_compile") 2>conftest.er1
16541  ac_status=$?
16542  grep -v '^ *+' conftest.er1 >conftest.err
16543  rm -f conftest.er1
16544  cat conftest.err >&5
16545  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546  (exit $ac_status); } && {
16547	 test -z "$ac_c_werror_flag" ||
16548	 test ! -s conftest.err
16549       } && test -s conftest.$ac_objext; then
16550  ac_cv_header_stdbool_h=yes
16551else
16552  $as_echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555	ac_cv_header_stdbool_h=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559fi
16560{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16561$as_echo "$ac_cv_header_stdbool_h" >&6; }
16562{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16563$as_echo_n "checking for _Bool... " >&6; }
16564if test "${ac_cv_type__Bool+set}" = set; then
16565  $as_echo_n "(cached) " >&6
16566else
16567  ac_cv_type__Bool=no
16568cat >conftest.$ac_ext <<_ACEOF
16569/* confdefs.h.  */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h.  */
16574$ac_includes_default
16575int
16576main ()
16577{
16578if (sizeof (_Bool))
16579       return 0;
16580  ;
16581  return 0;
16582}
16583_ACEOF
16584rm -f conftest.$ac_objext
16585if { (ac_try="$ac_compile"
16586case "(($ac_try" in
16587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588  *) ac_try_echo=$ac_try;;
16589esac
16590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16591$as_echo "$ac_try_echo") >&5
16592  (eval "$ac_compile") 2>conftest.er1
16593  ac_status=$?
16594  grep -v '^ *+' conftest.er1 >conftest.err
16595  rm -f conftest.er1
16596  cat conftest.err >&5
16597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598  (exit $ac_status); } && {
16599	 test -z "$ac_c_werror_flag" ||
16600	 test ! -s conftest.err
16601       } && test -s conftest.$ac_objext; then
16602  cat >conftest.$ac_ext <<_ACEOF
16603/* confdefs.h.  */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h.  */
16608$ac_includes_default
16609int
16610main ()
16611{
16612if (sizeof ((_Bool)))
16613	  return 0;
16614  ;
16615  return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (ac_try="$ac_compile"
16620case "(($ac_try" in
16621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622  *) ac_try_echo=$ac_try;;
16623esac
16624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16625$as_echo "$ac_try_echo") >&5
16626  (eval "$ac_compile") 2>conftest.er1
16627  ac_status=$?
16628  grep -v '^ *+' conftest.er1 >conftest.err
16629  rm -f conftest.er1
16630  cat conftest.err >&5
16631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632  (exit $ac_status); } && {
16633	 test -z "$ac_c_werror_flag" ||
16634	 test ! -s conftest.err
16635       } && test -s conftest.$ac_objext; then
16636  :
16637else
16638  $as_echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641	ac_cv_type__Bool=yes
16642fi
16643
16644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645else
16646  $as_echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649
16650fi
16651
16652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653fi
16654{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16655$as_echo "$ac_cv_type__Bool" >&6; }
16656if test "x$ac_cv_type__Bool" = x""yes; then
16657
16658cat >>confdefs.h <<_ACEOF
16659#define HAVE__BOOL 1
16660_ACEOF
16661
16662
16663fi
16664
16665if test $ac_cv_header_stdbool_h = yes; then
16666
16667cat >>confdefs.h <<\_ACEOF
16668#define HAVE_STDBOOL_H 1
16669_ACEOF
16670
16671fi
16672
16673
16674
16675  { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
16676$as_echo_n "checking for uint8_t... " >&6; }
16677if test "${ac_cv_c_uint8_t+set}" = set; then
16678  $as_echo_n "(cached) " >&6
16679else
16680  ac_cv_c_uint8_t=no
16681     for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
16682	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
16683       cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h.  */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h.  */
16689$ac_includes_default
16690int
16691main ()
16692{
16693static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
16694test_array [0] = 0
16695
16696  ;
16697  return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (ac_try="$ac_compile"
16702case "(($ac_try" in
16703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704  *) ac_try_echo=$ac_try;;
16705esac
16706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16707$as_echo "$ac_try_echo") >&5
16708  (eval "$ac_compile") 2>conftest.er1
16709  ac_status=$?
16710  grep -v '^ *+' conftest.er1 >conftest.err
16711  rm -f conftest.er1
16712  cat conftest.err >&5
16713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714  (exit $ac_status); } && {
16715	 test -z "$ac_c_werror_flag" ||
16716	 test ! -s conftest.err
16717       } && test -s conftest.$ac_objext; then
16718  case $ac_type in
16719  uint8_t) ac_cv_c_uint8_t=yes ;;
16720  *) ac_cv_c_uint8_t=$ac_type ;;
16721esac
16722
16723else
16724  $as_echo "$as_me: failed program was:" >&5
16725sed 's/^/| /' conftest.$ac_ext >&5
16726
16727
16728fi
16729
16730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16731       test "$ac_cv_c_uint8_t" != no && break
16732     done
16733fi
16734{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
16735$as_echo "$ac_cv_c_uint8_t" >&6; }
16736  case $ac_cv_c_uint8_t in #(
16737  no|yes) ;; #(
16738  *)
16739
16740cat >>confdefs.h <<\_ACEOF
16741#define _UINT8_T 1
16742_ACEOF
16743
16744
16745cat >>confdefs.h <<_ACEOF
16746#define uint8_t $ac_cv_c_uint8_t
16747_ACEOF
16748;;
16749  esac
16750
16751
16752  { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
16753$as_echo_n "checking for uint16_t... " >&6; }
16754if test "${ac_cv_c_uint16_t+set}" = set; then
16755  $as_echo_n "(cached) " >&6
16756else
16757  ac_cv_c_uint16_t=no
16758     for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
16759	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
16760       cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h.  */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h.  */
16766$ac_includes_default
16767int
16768main ()
16769{
16770static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
16771test_array [0] = 0
16772
16773  ;
16774  return 0;
16775}
16776_ACEOF
16777rm -f conftest.$ac_objext
16778if { (ac_try="$ac_compile"
16779case "(($ac_try" in
16780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781  *) ac_try_echo=$ac_try;;
16782esac
16783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16784$as_echo "$ac_try_echo") >&5
16785  (eval "$ac_compile") 2>conftest.er1
16786  ac_status=$?
16787  grep -v '^ *+' conftest.er1 >conftest.err
16788  rm -f conftest.er1
16789  cat conftest.err >&5
16790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791  (exit $ac_status); } && {
16792	 test -z "$ac_c_werror_flag" ||
16793	 test ! -s conftest.err
16794       } && test -s conftest.$ac_objext; then
16795  case $ac_type in
16796  uint16_t) ac_cv_c_uint16_t=yes ;;
16797  *) ac_cv_c_uint16_t=$ac_type ;;
16798esac
16799
16800else
16801  $as_echo "$as_me: failed program was:" >&5
16802sed 's/^/| /' conftest.$ac_ext >&5
16803
16804
16805fi
16806
16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808       test "$ac_cv_c_uint16_t" != no && break
16809     done
16810fi
16811{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
16812$as_echo "$ac_cv_c_uint16_t" >&6; }
16813  case $ac_cv_c_uint16_t in #(
16814  no|yes) ;; #(
16815  *)
16816
16817
16818cat >>confdefs.h <<_ACEOF
16819#define uint16_t $ac_cv_c_uint16_t
16820_ACEOF
16821;;
16822  esac
16823
16824
16825  { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
16826$as_echo_n "checking for int32_t... " >&6; }
16827if test "${ac_cv_c_int32_t+set}" = set; then
16828  $as_echo_n "(cached) " >&6
16829else
16830  ac_cv_c_int32_t=no
16831     for ac_type in 'int32_t' 'int' 'long int' \
16832	 'long long int' 'short int' 'signed char'; do
16833       cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h.  */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h.  */
16839$ac_includes_default
16840int
16841main ()
16842{
16843static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
16844test_array [0] = 0
16845
16846  ;
16847  return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext
16851if { (ac_try="$ac_compile"
16852case "(($ac_try" in
16853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854  *) ac_try_echo=$ac_try;;
16855esac
16856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16857$as_echo "$ac_try_echo") >&5
16858  (eval "$ac_compile") 2>conftest.er1
16859  ac_status=$?
16860  grep -v '^ *+' conftest.er1 >conftest.err
16861  rm -f conftest.er1
16862  cat conftest.err >&5
16863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864  (exit $ac_status); } && {
16865	 test -z "$ac_c_werror_flag" ||
16866	 test ! -s conftest.err
16867       } && test -s conftest.$ac_objext; then
16868  cat >conftest.$ac_ext <<_ACEOF
16869/* confdefs.h.  */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h.  */
16874$ac_includes_default
16875int
16876main ()
16877{
16878static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
16879		 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
16880test_array [0] = 0
16881
16882  ;
16883  return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext
16887if { (ac_try="$ac_compile"
16888case "(($ac_try" in
16889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890  *) ac_try_echo=$ac_try;;
16891esac
16892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16893$as_echo "$ac_try_echo") >&5
16894  (eval "$ac_compile") 2>conftest.er1
16895  ac_status=$?
16896  grep -v '^ *+' conftest.er1 >conftest.err
16897  rm -f conftest.er1
16898  cat conftest.err >&5
16899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900  (exit $ac_status); } && {
16901	 test -z "$ac_c_werror_flag" ||
16902	 test ! -s conftest.err
16903       } && test -s conftest.$ac_objext; then
16904  :
16905else
16906  $as_echo "$as_me: failed program was:" >&5
16907sed 's/^/| /' conftest.$ac_ext >&5
16908
16909	case $ac_type in
16910  int32_t) ac_cv_c_int32_t=yes ;;
16911  *) ac_cv_c_int32_t=$ac_type ;;
16912esac
16913
16914fi
16915
16916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917else
16918  $as_echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921
16922fi
16923
16924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925       test "$ac_cv_c_int32_t" != no && break
16926     done
16927fi
16928{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
16929$as_echo "$ac_cv_c_int32_t" >&6; }
16930  case $ac_cv_c_int32_t in #(
16931  no|yes) ;; #(
16932  *)
16933
16934cat >>confdefs.h <<_ACEOF
16935#define int32_t $ac_cv_c_int32_t
16936_ACEOF
16937;;
16938  esac
16939
16940
16941  { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
16942$as_echo_n "checking for uint32_t... " >&6; }
16943if test "${ac_cv_c_uint32_t+set}" = set; then
16944  $as_echo_n "(cached) " >&6
16945else
16946  ac_cv_c_uint32_t=no
16947     for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
16948	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
16949       cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h.  */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h.  */
16955$ac_includes_default
16956int
16957main ()
16958{
16959static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
16960test_array [0] = 0
16961
16962  ;
16963  return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext
16967if { (ac_try="$ac_compile"
16968case "(($ac_try" in
16969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970  *) ac_try_echo=$ac_try;;
16971esac
16972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973$as_echo "$ac_try_echo") >&5
16974  (eval "$ac_compile") 2>conftest.er1
16975  ac_status=$?
16976  grep -v '^ *+' conftest.er1 >conftest.err
16977  rm -f conftest.er1
16978  cat conftest.err >&5
16979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980  (exit $ac_status); } && {
16981	 test -z "$ac_c_werror_flag" ||
16982	 test ! -s conftest.err
16983       } && test -s conftest.$ac_objext; then
16984  case $ac_type in
16985  uint32_t) ac_cv_c_uint32_t=yes ;;
16986  *) ac_cv_c_uint32_t=$ac_type ;;
16987esac
16988
16989else
16990  $as_echo "$as_me: failed program was:" >&5
16991sed 's/^/| /' conftest.$ac_ext >&5
16992
16993
16994fi
16995
16996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16997       test "$ac_cv_c_uint32_t" != no && break
16998     done
16999fi
17000{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
17001$as_echo "$ac_cv_c_uint32_t" >&6; }
17002  case $ac_cv_c_uint32_t in #(
17003  no|yes) ;; #(
17004  *)
17005
17006cat >>confdefs.h <<\_ACEOF
17007#define _UINT32_T 1
17008_ACEOF
17009
17010
17011cat >>confdefs.h <<_ACEOF
17012#define uint32_t $ac_cv_c_uint32_t
17013_ACEOF
17014;;
17015  esac
17016
17017
17018  { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
17019$as_echo_n "checking for int64_t... " >&6; }
17020if test "${ac_cv_c_int64_t+set}" = set; then
17021  $as_echo_n "(cached) " >&6
17022else
17023  ac_cv_c_int64_t=no
17024     for ac_type in 'int64_t' 'int' 'long int' \
17025	 'long long int' 'short int' 'signed char'; do
17026       cat >conftest.$ac_ext <<_ACEOF
17027/* confdefs.h.  */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h.  */
17032$ac_includes_default
17033int
17034main ()
17035{
17036static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
17037test_array [0] = 0
17038
17039  ;
17040  return 0;
17041}
17042_ACEOF
17043rm -f conftest.$ac_objext
17044if { (ac_try="$ac_compile"
17045case "(($ac_try" in
17046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047  *) ac_try_echo=$ac_try;;
17048esac
17049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050$as_echo "$ac_try_echo") >&5
17051  (eval "$ac_compile") 2>conftest.er1
17052  ac_status=$?
17053  grep -v '^ *+' conftest.er1 >conftest.err
17054  rm -f conftest.er1
17055  cat conftest.err >&5
17056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057  (exit $ac_status); } && {
17058	 test -z "$ac_c_werror_flag" ||
17059	 test ! -s conftest.err
17060       } && test -s conftest.$ac_objext; then
17061  cat >conftest.$ac_ext <<_ACEOF
17062/* confdefs.h.  */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h.  */
17067$ac_includes_default
17068int
17069main ()
17070{
17071static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
17072		 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
17073test_array [0] = 0
17074
17075  ;
17076  return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext
17080if { (ac_try="$ac_compile"
17081case "(($ac_try" in
17082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083  *) ac_try_echo=$ac_try;;
17084esac
17085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17086$as_echo "$ac_try_echo") >&5
17087  (eval "$ac_compile") 2>conftest.er1
17088  ac_status=$?
17089  grep -v '^ *+' conftest.er1 >conftest.err
17090  rm -f conftest.er1
17091  cat conftest.err >&5
17092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093  (exit $ac_status); } && {
17094	 test -z "$ac_c_werror_flag" ||
17095	 test ! -s conftest.err
17096       } && test -s conftest.$ac_objext; then
17097  :
17098else
17099  $as_echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102	case $ac_type in
17103  int64_t) ac_cv_c_int64_t=yes ;;
17104  *) ac_cv_c_int64_t=$ac_type ;;
17105esac
17106
17107fi
17108
17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110else
17111  $as_echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114
17115fi
17116
17117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118       test "$ac_cv_c_int64_t" != no && break
17119     done
17120fi
17121{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
17122$as_echo "$ac_cv_c_int64_t" >&6; }
17123  case $ac_cv_c_int64_t in #(
17124  no|yes) ;; #(
17125  *)
17126
17127cat >>confdefs.h <<_ACEOF
17128#define int64_t $ac_cv_c_int64_t
17129_ACEOF
17130;;
17131  esac
17132
17133
17134  { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
17135$as_echo_n "checking for uint64_t... " >&6; }
17136if test "${ac_cv_c_uint64_t+set}" = set; then
17137  $as_echo_n "(cached) " >&6
17138else
17139  ac_cv_c_uint64_t=no
17140     for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
17141	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
17142       cat >conftest.$ac_ext <<_ACEOF
17143/* confdefs.h.  */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h.  */
17148$ac_includes_default
17149int
17150main ()
17151{
17152static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
17153test_array [0] = 0
17154
17155  ;
17156  return 0;
17157}
17158_ACEOF
17159rm -f conftest.$ac_objext
17160if { (ac_try="$ac_compile"
17161case "(($ac_try" in
17162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163  *) ac_try_echo=$ac_try;;
17164esac
17165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166$as_echo "$ac_try_echo") >&5
17167  (eval "$ac_compile") 2>conftest.er1
17168  ac_status=$?
17169  grep -v '^ *+' conftest.er1 >conftest.err
17170  rm -f conftest.er1
17171  cat conftest.err >&5
17172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173  (exit $ac_status); } && {
17174	 test -z "$ac_c_werror_flag" ||
17175	 test ! -s conftest.err
17176       } && test -s conftest.$ac_objext; then
17177  case $ac_type in
17178  uint64_t) ac_cv_c_uint64_t=yes ;;
17179  *) ac_cv_c_uint64_t=$ac_type ;;
17180esac
17181
17182else
17183  $as_echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186
17187fi
17188
17189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190       test "$ac_cv_c_uint64_t" != no && break
17191     done
17192fi
17193{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
17194$as_echo "$ac_cv_c_uint64_t" >&6; }
17195  case $ac_cv_c_uint64_t in #(
17196  no|yes) ;; #(
17197  *)
17198
17199cat >>confdefs.h <<\_ACEOF
17200#define _UINT64_T 1
17201_ACEOF
17202
17203
17204cat >>confdefs.h <<_ACEOF
17205#define uint64_t $ac_cv_c_uint64_t
17206_ACEOF
17207;;
17208  esac
17209
17210
17211  { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17212$as_echo_n "checking for uintptr_t... " >&6; }
17213if test "${ac_cv_type_uintptr_t+set}" = set; then
17214  $as_echo_n "(cached) " >&6
17215else
17216  ac_cv_type_uintptr_t=no
17217cat >conftest.$ac_ext <<_ACEOF
17218/* confdefs.h.  */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h.  */
17223$ac_includes_default
17224int
17225main ()
17226{
17227if (sizeof (uintptr_t))
17228       return 0;
17229  ;
17230  return 0;
17231}
17232_ACEOF
17233rm -f conftest.$ac_objext
17234if { (ac_try="$ac_compile"
17235case "(($ac_try" in
17236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237  *) ac_try_echo=$ac_try;;
17238esac
17239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240$as_echo "$ac_try_echo") >&5
17241  (eval "$ac_compile") 2>conftest.er1
17242  ac_status=$?
17243  grep -v '^ *+' conftest.er1 >conftest.err
17244  rm -f conftest.er1
17245  cat conftest.err >&5
17246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247  (exit $ac_status); } && {
17248	 test -z "$ac_c_werror_flag" ||
17249	 test ! -s conftest.err
17250       } && test -s conftest.$ac_objext; then
17251  cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h.  */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h.  */
17257$ac_includes_default
17258int
17259main ()
17260{
17261if (sizeof ((uintptr_t)))
17262	  return 0;
17263  ;
17264  return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext
17268if { (ac_try="$ac_compile"
17269case "(($ac_try" in
17270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271  *) ac_try_echo=$ac_try;;
17272esac
17273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17274$as_echo "$ac_try_echo") >&5
17275  (eval "$ac_compile") 2>conftest.er1
17276  ac_status=$?
17277  grep -v '^ *+' conftest.er1 >conftest.err
17278  rm -f conftest.er1
17279  cat conftest.err >&5
17280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281  (exit $ac_status); } && {
17282	 test -z "$ac_c_werror_flag" ||
17283	 test ! -s conftest.err
17284       } && test -s conftest.$ac_objext; then
17285  :
17286else
17287  $as_echo "$as_me: failed program was:" >&5
17288sed 's/^/| /' conftest.$ac_ext >&5
17289
17290	ac_cv_type_uintptr_t=yes
17291fi
17292
17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294else
17295  $as_echo "$as_me: failed program was:" >&5
17296sed 's/^/| /' conftest.$ac_ext >&5
17297
17298
17299fi
17300
17301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302fi
17303{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17304$as_echo "$ac_cv_type_uintptr_t" >&6; }
17305if test "x$ac_cv_type_uintptr_t" = x""yes; then
17306
17307cat >>confdefs.h <<\_ACEOF
17308#define HAVE_UINTPTR_T 1
17309_ACEOF
17310
17311else
17312  for ac_type in 'unsigned int' 'unsigned long int' \
17313	'unsigned long long int'; do
17314       cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h.  */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h.  */
17320$ac_includes_default
17321int
17322main ()
17323{
17324static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17325test_array [0] = 0
17326
17327  ;
17328  return 0;
17329}
17330_ACEOF
17331rm -f conftest.$ac_objext
17332if { (ac_try="$ac_compile"
17333case "(($ac_try" in
17334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335  *) ac_try_echo=$ac_try;;
17336esac
17337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338$as_echo "$ac_try_echo") >&5
17339  (eval "$ac_compile") 2>conftest.er1
17340  ac_status=$?
17341  grep -v '^ *+' conftest.er1 >conftest.err
17342  rm -f conftest.er1
17343  cat conftest.err >&5
17344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345  (exit $ac_status); } && {
17346	 test -z "$ac_c_werror_flag" ||
17347	 test ! -s conftest.err
17348       } && test -s conftest.$ac_objext; then
17349
17350cat >>confdefs.h <<_ACEOF
17351#define uintptr_t $ac_type
17352_ACEOF
17353
17354	  ac_type=
17355else
17356  $as_echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359
17360fi
17361
17362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363       test -z "$ac_type" && break
17364     done
17365fi
17366
17367
17368
17369# The cast to long int works around a bug in the HP C Compiler
17370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17372# This bug is HP SR number 8606223364.
17373{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
17374$as_echo_n "checking size of size_t... " >&6; }
17375if test "${ac_cv_sizeof_size_t+set}" = set; then
17376  $as_echo_n "(cached) " >&6
17377else
17378  if test "$cross_compiling" = yes; then
17379  # Depending upon the size, compute the lo and hi bounds.
17380cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h.  */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h.  */
17386$ac_includes_default
17387int
17388main ()
17389{
17390static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
17391test_array [0] = 0
17392
17393  ;
17394  return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext
17398if { (ac_try="$ac_compile"
17399case "(($ac_try" in
17400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401  *) ac_try_echo=$ac_try;;
17402esac
17403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17404$as_echo "$ac_try_echo") >&5
17405  (eval "$ac_compile") 2>conftest.er1
17406  ac_status=$?
17407  grep -v '^ *+' conftest.er1 >conftest.err
17408  rm -f conftest.er1
17409  cat conftest.err >&5
17410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411  (exit $ac_status); } && {
17412	 test -z "$ac_c_werror_flag" ||
17413	 test ! -s conftest.err
17414       } && test -s conftest.$ac_objext; then
17415  ac_lo=0 ac_mid=0
17416  while :; do
17417    cat >conftest.$ac_ext <<_ACEOF
17418/* confdefs.h.  */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h.  */
17423$ac_includes_default
17424int
17425main ()
17426{
17427static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
17428test_array [0] = 0
17429
17430  ;
17431  return 0;
17432}
17433_ACEOF
17434rm -f conftest.$ac_objext
17435if { (ac_try="$ac_compile"
17436case "(($ac_try" in
17437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438  *) ac_try_echo=$ac_try;;
17439esac
17440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441$as_echo "$ac_try_echo") >&5
17442  (eval "$ac_compile") 2>conftest.er1
17443  ac_status=$?
17444  grep -v '^ *+' conftest.er1 >conftest.err
17445  rm -f conftest.er1
17446  cat conftest.err >&5
17447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448  (exit $ac_status); } && {
17449	 test -z "$ac_c_werror_flag" ||
17450	 test ! -s conftest.err
17451       } && test -s conftest.$ac_objext; then
17452  ac_hi=$ac_mid; break
17453else
17454  $as_echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457	ac_lo=`expr $ac_mid + 1`
17458			if test $ac_lo -le $ac_mid; then
17459			  ac_lo= ac_hi=
17460			  break
17461			fi
17462			ac_mid=`expr 2 '*' $ac_mid + 1`
17463fi
17464
17465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466  done
17467else
17468  $as_echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471	cat >conftest.$ac_ext <<_ACEOF
17472/* confdefs.h.  */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h.  */
17477$ac_includes_default
17478int
17479main ()
17480{
17481static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
17482test_array [0] = 0
17483
17484  ;
17485  return 0;
17486}
17487_ACEOF
17488rm -f conftest.$ac_objext
17489if { (ac_try="$ac_compile"
17490case "(($ac_try" in
17491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492  *) ac_try_echo=$ac_try;;
17493esac
17494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17495$as_echo "$ac_try_echo") >&5
17496  (eval "$ac_compile") 2>conftest.er1
17497  ac_status=$?
17498  grep -v '^ *+' conftest.er1 >conftest.err
17499  rm -f conftest.er1
17500  cat conftest.err >&5
17501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502  (exit $ac_status); } && {
17503	 test -z "$ac_c_werror_flag" ||
17504	 test ! -s conftest.err
17505       } && test -s conftest.$ac_objext; then
17506  ac_hi=-1 ac_mid=-1
17507  while :; do
17508    cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h.  */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h.  */
17514$ac_includes_default
17515int
17516main ()
17517{
17518static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
17519test_array [0] = 0
17520
17521  ;
17522  return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (ac_try="$ac_compile"
17527case "(($ac_try" in
17528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529  *) ac_try_echo=$ac_try;;
17530esac
17531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532$as_echo "$ac_try_echo") >&5
17533  (eval "$ac_compile") 2>conftest.er1
17534  ac_status=$?
17535  grep -v '^ *+' conftest.er1 >conftest.err
17536  rm -f conftest.er1
17537  cat conftest.err >&5
17538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539  (exit $ac_status); } && {
17540	 test -z "$ac_c_werror_flag" ||
17541	 test ! -s conftest.err
17542       } && test -s conftest.$ac_objext; then
17543  ac_lo=$ac_mid; break
17544else
17545  $as_echo "$as_me: failed program was:" >&5
17546sed 's/^/| /' conftest.$ac_ext >&5
17547
17548	ac_hi=`expr '(' $ac_mid ')' - 1`
17549			if test $ac_mid -le $ac_hi; then
17550			  ac_lo= ac_hi=
17551			  break
17552			fi
17553			ac_mid=`expr 2 '*' $ac_mid`
17554fi
17555
17556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557  done
17558else
17559  $as_echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562	ac_lo= ac_hi=
17563fi
17564
17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566fi
17567
17568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569# Binary search between lo and hi bounds.
17570while test "x$ac_lo" != "x$ac_hi"; do
17571  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17572  cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h.  */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h.  */
17578$ac_includes_default
17579int
17580main ()
17581{
17582static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
17583test_array [0] = 0
17584
17585  ;
17586  return 0;
17587}
17588_ACEOF
17589rm -f conftest.$ac_objext
17590if { (ac_try="$ac_compile"
17591case "(($ac_try" in
17592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593  *) ac_try_echo=$ac_try;;
17594esac
17595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17596$as_echo "$ac_try_echo") >&5
17597  (eval "$ac_compile") 2>conftest.er1
17598  ac_status=$?
17599  grep -v '^ *+' conftest.er1 >conftest.err
17600  rm -f conftest.er1
17601  cat conftest.err >&5
17602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603  (exit $ac_status); } && {
17604	 test -z "$ac_c_werror_flag" ||
17605	 test ! -s conftest.err
17606       } && test -s conftest.$ac_objext; then
17607  ac_hi=$ac_mid
17608else
17609  $as_echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
17612	ac_lo=`expr '(' $ac_mid ')' + 1`
17613fi
17614
17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616done
17617case $ac_lo in
17618?*) ac_cv_sizeof_size_t=$ac_lo;;
17619'') if test "$ac_cv_type_size_t" = yes; then
17620     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17622{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
17623See \`config.log' for more details." >&5
17624$as_echo "$as_me: error: cannot compute sizeof (size_t)
17625See \`config.log' for more details." >&2;}
17626   { (exit 77); exit 77; }; }; }
17627   else
17628     ac_cv_sizeof_size_t=0
17629   fi ;;
17630esac
17631else
17632  cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h.  */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h.  */
17638$ac_includes_default
17639static long int longval () { return (long int) (sizeof (size_t)); }
17640static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
17641#include <stdio.h>
17642#include <stdlib.h>
17643int
17644main ()
17645{
17646
17647  FILE *f = fopen ("conftest.val", "w");
17648  if (! f)
17649    return 1;
17650  if (((long int) (sizeof (size_t))) < 0)
17651    {
17652      long int i = longval ();
17653      if (i != ((long int) (sizeof (size_t))))
17654	return 1;
17655      fprintf (f, "%ld", i);
17656    }
17657  else
17658    {
17659      unsigned long int i = ulongval ();
17660      if (i != ((long int) (sizeof (size_t))))
17661	return 1;
17662      fprintf (f, "%lu", i);
17663    }
17664  /* Do not output a trailing newline, as this causes \r\n confusion
17665     on some platforms.  */
17666  return ferror (f) || fclose (f) != 0;
17667
17668  ;
17669  return 0;
17670}
17671_ACEOF
17672rm -f conftest$ac_exeext
17673if { (ac_try="$ac_link"
17674case "(($ac_try" in
17675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676  *) ac_try_echo=$ac_try;;
17677esac
17678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17679$as_echo "$ac_try_echo") >&5
17680  (eval "$ac_link") 2>&5
17681  ac_status=$?
17682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17684  { (case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689$as_echo "$ac_try_echo") >&5
17690  (eval "$ac_try") 2>&5
17691  ac_status=$?
17692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693  (exit $ac_status); }; }; then
17694  ac_cv_sizeof_size_t=`cat conftest.val`
17695else
17696  $as_echo "$as_me: program exited with status $ac_status" >&5
17697$as_echo "$as_me: failed program was:" >&5
17698sed 's/^/| /' conftest.$ac_ext >&5
17699
17700( exit $ac_status )
17701if test "$ac_cv_type_size_t" = yes; then
17702     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17704{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
17705See \`config.log' for more details." >&5
17706$as_echo "$as_me: error: cannot compute sizeof (size_t)
17707See \`config.log' for more details." >&2;}
17708   { (exit 77); exit 77; }; }; }
17709   else
17710     ac_cv_sizeof_size_t=0
17711   fi
17712fi
17713rm -rf conftest.dSYM
17714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17715fi
17716rm -f conftest.val
17717fi
17718{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17719$as_echo "$ac_cv_sizeof_size_t" >&6; }
17720
17721
17722
17723cat >>confdefs.h <<_ACEOF
17724#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17725_ACEOF
17726
17727
17728
17729# The command line tool can copy high resolution timestamps if such
17730# information is availabe in struct stat. Otherwise one second accuracy
17731# is used.
17732{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
17733$as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
17734if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
17735  $as_echo_n "(cached) " >&6
17736else
17737  cat >conftest.$ac_ext <<_ACEOF
17738/* confdefs.h.  */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h.  */
17743$ac_includes_default
17744int
17745main ()
17746{
17747static struct stat ac_aggr;
17748if (ac_aggr.st_atim.tv_nsec)
17749return 0;
17750  ;
17751  return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (ac_try="$ac_compile"
17756case "(($ac_try" in
17757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758  *) ac_try_echo=$ac_try;;
17759esac
17760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17761$as_echo "$ac_try_echo") >&5
17762  (eval "$ac_compile") 2>conftest.er1
17763  ac_status=$?
17764  grep -v '^ *+' conftest.er1 >conftest.err
17765  rm -f conftest.er1
17766  cat conftest.err >&5
17767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768  (exit $ac_status); } && {
17769	 test -z "$ac_c_werror_flag" ||
17770	 test ! -s conftest.err
17771       } && test -s conftest.$ac_objext; then
17772  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
17773else
17774  $as_echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777	cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h.  */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h.  */
17783$ac_includes_default
17784int
17785main ()
17786{
17787static struct stat ac_aggr;
17788if (sizeof ac_aggr.st_atim.tv_nsec)
17789return 0;
17790  ;
17791  return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (ac_try="$ac_compile"
17796case "(($ac_try" in
17797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798  *) ac_try_echo=$ac_try;;
17799esac
17800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17801$as_echo "$ac_try_echo") >&5
17802  (eval "$ac_compile") 2>conftest.er1
17803  ac_status=$?
17804  grep -v '^ *+' conftest.er1 >conftest.err
17805  rm -f conftest.er1
17806  cat conftest.err >&5
17807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808  (exit $ac_status); } && {
17809	 test -z "$ac_c_werror_flag" ||
17810	 test ! -s conftest.err
17811       } && test -s conftest.$ac_objext; then
17812  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
17813else
17814  $as_echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817	ac_cv_member_struct_stat_st_atim_tv_nsec=no
17818fi
17819
17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821fi
17822
17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824fi
17825{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
17826$as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
17827if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
17828
17829cat >>confdefs.h <<_ACEOF
17830#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
17831_ACEOF
17832
17833
17834fi
17835{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
17836$as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
17837if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
17838  $as_echo_n "(cached) " >&6
17839else
17840  cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h.  */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h.  */
17846$ac_includes_default
17847int
17848main ()
17849{
17850static struct stat ac_aggr;
17851if (ac_aggr.st_atimespec.tv_nsec)
17852return 0;
17853  ;
17854  return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext
17858if { (ac_try="$ac_compile"
17859case "(($ac_try" in
17860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861  *) ac_try_echo=$ac_try;;
17862esac
17863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17864$as_echo "$ac_try_echo") >&5
17865  (eval "$ac_compile") 2>conftest.er1
17866  ac_status=$?
17867  grep -v '^ *+' conftest.er1 >conftest.err
17868  rm -f conftest.er1
17869  cat conftest.err >&5
17870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871  (exit $ac_status); } && {
17872	 test -z "$ac_c_werror_flag" ||
17873	 test ! -s conftest.err
17874       } && test -s conftest.$ac_objext; then
17875  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
17876else
17877  $as_echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880	cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h.  */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h.  */
17886$ac_includes_default
17887int
17888main ()
17889{
17890static struct stat ac_aggr;
17891if (sizeof ac_aggr.st_atimespec.tv_nsec)
17892return 0;
17893  ;
17894  return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext
17898if { (ac_try="$ac_compile"
17899case "(($ac_try" in
17900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901  *) ac_try_echo=$ac_try;;
17902esac
17903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904$as_echo "$ac_try_echo") >&5
17905  (eval "$ac_compile") 2>conftest.er1
17906  ac_status=$?
17907  grep -v '^ *+' conftest.er1 >conftest.err
17908  rm -f conftest.er1
17909  cat conftest.err >&5
17910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911  (exit $ac_status); } && {
17912	 test -z "$ac_c_werror_flag" ||
17913	 test ! -s conftest.err
17914       } && test -s conftest.$ac_objext; then
17915  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
17916else
17917  $as_echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920	ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
17921fi
17922
17923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924fi
17925
17926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927fi
17928{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
17929$as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
17930if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
17931
17932cat >>confdefs.h <<_ACEOF
17933#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
17934_ACEOF
17935
17936
17937fi
17938{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
17939$as_echo_n "checking for struct stat.st_atimensec... " >&6; }
17940if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
17941  $as_echo_n "(cached) " >&6
17942else
17943  cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h.  */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h.  */
17949$ac_includes_default
17950int
17951main ()
17952{
17953static struct stat ac_aggr;
17954if (ac_aggr.st_atimensec)
17955return 0;
17956  ;
17957  return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (ac_try="$ac_compile"
17962case "(($ac_try" in
17963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964  *) ac_try_echo=$ac_try;;
17965esac
17966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17967$as_echo "$ac_try_echo") >&5
17968  (eval "$ac_compile") 2>conftest.er1
17969  ac_status=$?
17970  grep -v '^ *+' conftest.er1 >conftest.err
17971  rm -f conftest.er1
17972  cat conftest.err >&5
17973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974  (exit $ac_status); } && {
17975	 test -z "$ac_c_werror_flag" ||
17976	 test ! -s conftest.err
17977       } && test -s conftest.$ac_objext; then
17978  ac_cv_member_struct_stat_st_atimensec=yes
17979else
17980  $as_echo "$as_me: failed program was:" >&5
17981sed 's/^/| /' conftest.$ac_ext >&5
17982
17983	cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h.  */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h.  */
17989$ac_includes_default
17990int
17991main ()
17992{
17993static struct stat ac_aggr;
17994if (sizeof ac_aggr.st_atimensec)
17995return 0;
17996  ;
17997  return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (ac_try="$ac_compile"
18002case "(($ac_try" in
18003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004  *) ac_try_echo=$ac_try;;
18005esac
18006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18007$as_echo "$ac_try_echo") >&5
18008  (eval "$ac_compile") 2>conftest.er1
18009  ac_status=$?
18010  grep -v '^ *+' conftest.er1 >conftest.err
18011  rm -f conftest.er1
18012  cat conftest.err >&5
18013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014  (exit $ac_status); } && {
18015	 test -z "$ac_c_werror_flag" ||
18016	 test ! -s conftest.err
18017       } && test -s conftest.$ac_objext; then
18018  ac_cv_member_struct_stat_st_atimensec=yes
18019else
18020  $as_echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023	ac_cv_member_struct_stat_st_atimensec=no
18024fi
18025
18026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027fi
18028
18029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030fi
18031{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
18032$as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
18033if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
18034
18035cat >>confdefs.h <<_ACEOF
18036#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
18037_ACEOF
18038
18039
18040fi
18041{ $as_echo "$as_me:$LINENO: checking for struct stat.st_uatime" >&5
18042$as_echo_n "checking for struct stat.st_uatime... " >&6; }
18043if test "${ac_cv_member_struct_stat_st_uatime+set}" = set; then
18044  $as_echo_n "(cached) " >&6
18045else
18046  cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h.  */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h.  */
18052$ac_includes_default
18053int
18054main ()
18055{
18056static struct stat ac_aggr;
18057if (ac_aggr.st_uatime)
18058return 0;
18059  ;
18060  return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext
18064if { (ac_try="$ac_compile"
18065case "(($ac_try" in
18066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067  *) ac_try_echo=$ac_try;;
18068esac
18069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18070$as_echo "$ac_try_echo") >&5
18071  (eval "$ac_compile") 2>conftest.er1
18072  ac_status=$?
18073  grep -v '^ *+' conftest.er1 >conftest.err
18074  rm -f conftest.er1
18075  cat conftest.err >&5
18076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077  (exit $ac_status); } && {
18078	 test -z "$ac_c_werror_flag" ||
18079	 test ! -s conftest.err
18080       } && test -s conftest.$ac_objext; then
18081  ac_cv_member_struct_stat_st_uatime=yes
18082else
18083  $as_echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086	cat >conftest.$ac_ext <<_ACEOF
18087/* confdefs.h.  */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h.  */
18092$ac_includes_default
18093int
18094main ()
18095{
18096static struct stat ac_aggr;
18097if (sizeof ac_aggr.st_uatime)
18098return 0;
18099  ;
18100  return 0;
18101}
18102_ACEOF
18103rm -f conftest.$ac_objext
18104if { (ac_try="$ac_compile"
18105case "(($ac_try" in
18106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107  *) ac_try_echo=$ac_try;;
18108esac
18109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110$as_echo "$ac_try_echo") >&5
18111  (eval "$ac_compile") 2>conftest.er1
18112  ac_status=$?
18113  grep -v '^ *+' conftest.er1 >conftest.err
18114  rm -f conftest.er1
18115  cat conftest.err >&5
18116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); } && {
18118	 test -z "$ac_c_werror_flag" ||
18119	 test ! -s conftest.err
18120       } && test -s conftest.$ac_objext; then
18121  ac_cv_member_struct_stat_st_uatime=yes
18122else
18123  $as_echo "$as_me: failed program was:" >&5
18124sed 's/^/| /' conftest.$ac_ext >&5
18125
18126	ac_cv_member_struct_stat_st_uatime=no
18127fi
18128
18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130fi
18131
18132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133fi
18134{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_uatime" >&5
18135$as_echo "$ac_cv_member_struct_stat_st_uatime" >&6; }
18136if test "x$ac_cv_member_struct_stat_st_uatime" = x""yes; then
18137
18138cat >>confdefs.h <<_ACEOF
18139#define HAVE_STRUCT_STAT_ST_UATIME 1
18140_ACEOF
18141
18142
18143fi
18144{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
18145$as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
18146if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
18147  $as_echo_n "(cached) " >&6
18148else
18149  cat >conftest.$ac_ext <<_ACEOF
18150/* confdefs.h.  */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h.  */
18155$ac_includes_default
18156int
18157main ()
18158{
18159static struct stat ac_aggr;
18160if (ac_aggr.st_atim.st__tim.tv_nsec)
18161return 0;
18162  ;
18163  return 0;
18164}
18165_ACEOF
18166rm -f conftest.$ac_objext
18167if { (ac_try="$ac_compile"
18168case "(($ac_try" in
18169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170  *) ac_try_echo=$ac_try;;
18171esac
18172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18173$as_echo "$ac_try_echo") >&5
18174  (eval "$ac_compile") 2>conftest.er1
18175  ac_status=$?
18176  grep -v '^ *+' conftest.er1 >conftest.err
18177  rm -f conftest.er1
18178  cat conftest.err >&5
18179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180  (exit $ac_status); } && {
18181	 test -z "$ac_c_werror_flag" ||
18182	 test ! -s conftest.err
18183       } && test -s conftest.$ac_objext; then
18184  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
18185else
18186  $as_echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189	cat >conftest.$ac_ext <<_ACEOF
18190/* confdefs.h.  */
18191_ACEOF
18192cat confdefs.h >>conftest.$ac_ext
18193cat >>conftest.$ac_ext <<_ACEOF
18194/* end confdefs.h.  */
18195$ac_includes_default
18196int
18197main ()
18198{
18199static struct stat ac_aggr;
18200if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
18201return 0;
18202  ;
18203  return 0;
18204}
18205_ACEOF
18206rm -f conftest.$ac_objext
18207if { (ac_try="$ac_compile"
18208case "(($ac_try" in
18209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210  *) ac_try_echo=$ac_try;;
18211esac
18212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18213$as_echo "$ac_try_echo") >&5
18214  (eval "$ac_compile") 2>conftest.er1
18215  ac_status=$?
18216  grep -v '^ *+' conftest.er1 >conftest.err
18217  rm -f conftest.er1
18218  cat conftest.err >&5
18219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220  (exit $ac_status); } && {
18221	 test -z "$ac_c_werror_flag" ||
18222	 test ! -s conftest.err
18223       } && test -s conftest.$ac_objext; then
18224  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
18225else
18226  $as_echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229	ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
18230fi
18231
18232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233fi
18234
18235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236fi
18237{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
18238$as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
18239if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
18240
18241cat >>confdefs.h <<_ACEOF
18242#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
18243_ACEOF
18244
18245
18246fi
18247
18248
18249# Check whether --enable-largefile was given.
18250if test "${enable_largefile+set}" = set; then
18251  enableval=$enable_largefile;
18252fi
18253
18254if test "$enable_largefile" != no; then
18255
18256  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18257$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18258if test "${ac_cv_sys_largefile_CC+set}" = set; then
18259  $as_echo_n "(cached) " >&6
18260else
18261  ac_cv_sys_largefile_CC=no
18262     if test "$GCC" != yes; then
18263       ac_save_CC=$CC
18264       while :; do
18265	 # IRIX 6.2 and later do not support large files by default,
18266	 # so use the C compiler's -n32 option if that helps.
18267	 cat >conftest.$ac_ext <<_ACEOF
18268/* confdefs.h.  */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h.  */
18273#include <sys/types.h>
18274 /* Check that off_t can represent 2**63 - 1 correctly.
18275    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18276    since some C++ compilers masquerading as C compilers
18277    incorrectly reject 9223372036854775807.  */
18278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18279  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18280		       && LARGE_OFF_T % 2147483647 == 1)
18281		      ? 1 : -1];
18282int
18283main ()
18284{
18285
18286  ;
18287  return 0;
18288}
18289_ACEOF
18290	 rm -f conftest.$ac_objext
18291if { (ac_try="$ac_compile"
18292case "(($ac_try" in
18293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294  *) ac_try_echo=$ac_try;;
18295esac
18296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297$as_echo "$ac_try_echo") >&5
18298  (eval "$ac_compile") 2>conftest.er1
18299  ac_status=$?
18300  grep -v '^ *+' conftest.er1 >conftest.err
18301  rm -f conftest.er1
18302  cat conftest.err >&5
18303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304  (exit $ac_status); } && {
18305	 test -z "$ac_c_werror_flag" ||
18306	 test ! -s conftest.err
18307       } && test -s conftest.$ac_objext; then
18308  break
18309else
18310  $as_echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313
18314fi
18315
18316rm -f core conftest.err conftest.$ac_objext
18317	 CC="$CC -n32"
18318	 rm -f conftest.$ac_objext
18319if { (ac_try="$ac_compile"
18320case "(($ac_try" in
18321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322  *) ac_try_echo=$ac_try;;
18323esac
18324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325$as_echo "$ac_try_echo") >&5
18326  (eval "$ac_compile") 2>conftest.er1
18327  ac_status=$?
18328  grep -v '^ *+' conftest.er1 >conftest.err
18329  rm -f conftest.er1
18330  cat conftest.err >&5
18331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332  (exit $ac_status); } && {
18333	 test -z "$ac_c_werror_flag" ||
18334	 test ! -s conftest.err
18335       } && test -s conftest.$ac_objext; then
18336  ac_cv_sys_largefile_CC=' -n32'; break
18337else
18338  $as_echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341
18342fi
18343
18344rm -f core conftest.err conftest.$ac_objext
18345	 break
18346       done
18347       CC=$ac_save_CC
18348       rm -f conftest.$ac_ext
18349    fi
18350fi
18351{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18352$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18353  if test "$ac_cv_sys_largefile_CC" != no; then
18354    CC=$CC$ac_cv_sys_largefile_CC
18355  fi
18356
18357  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18358$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18359if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18360  $as_echo_n "(cached) " >&6
18361else
18362  while :; do
18363  cat >conftest.$ac_ext <<_ACEOF
18364/* confdefs.h.  */
18365_ACEOF
18366cat confdefs.h >>conftest.$ac_ext
18367cat >>conftest.$ac_ext <<_ACEOF
18368/* end confdefs.h.  */
18369#include <sys/types.h>
18370 /* Check that off_t can represent 2**63 - 1 correctly.
18371    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18372    since some C++ compilers masquerading as C compilers
18373    incorrectly reject 9223372036854775807.  */
18374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18375  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18376		       && LARGE_OFF_T % 2147483647 == 1)
18377		      ? 1 : -1];
18378int
18379main ()
18380{
18381
18382  ;
18383  return 0;
18384}
18385_ACEOF
18386rm -f conftest.$ac_objext
18387if { (ac_try="$ac_compile"
18388case "(($ac_try" in
18389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390  *) ac_try_echo=$ac_try;;
18391esac
18392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393$as_echo "$ac_try_echo") >&5
18394  (eval "$ac_compile") 2>conftest.er1
18395  ac_status=$?
18396  grep -v '^ *+' conftest.er1 >conftest.err
18397  rm -f conftest.er1
18398  cat conftest.err >&5
18399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400  (exit $ac_status); } && {
18401	 test -z "$ac_c_werror_flag" ||
18402	 test ! -s conftest.err
18403       } && test -s conftest.$ac_objext; then
18404  ac_cv_sys_file_offset_bits=no; break
18405else
18406  $as_echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409
18410fi
18411
18412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413  cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h.  */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h.  */
18419#define _FILE_OFFSET_BITS 64
18420#include <sys/types.h>
18421 /* Check that off_t can represent 2**63 - 1 correctly.
18422    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18423    since some C++ compilers masquerading as C compilers
18424    incorrectly reject 9223372036854775807.  */
18425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18426  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18427		       && LARGE_OFF_T % 2147483647 == 1)
18428		      ? 1 : -1];
18429int
18430main ()
18431{
18432
18433  ;
18434  return 0;
18435}
18436_ACEOF
18437rm -f conftest.$ac_objext
18438if { (ac_try="$ac_compile"
18439case "(($ac_try" in
18440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441  *) ac_try_echo=$ac_try;;
18442esac
18443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18444$as_echo "$ac_try_echo") >&5
18445  (eval "$ac_compile") 2>conftest.er1
18446  ac_status=$?
18447  grep -v '^ *+' conftest.er1 >conftest.err
18448  rm -f conftest.er1
18449  cat conftest.err >&5
18450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451  (exit $ac_status); } && {
18452	 test -z "$ac_c_werror_flag" ||
18453	 test ! -s conftest.err
18454       } && test -s conftest.$ac_objext; then
18455  ac_cv_sys_file_offset_bits=64; break
18456else
18457  $as_echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460
18461fi
18462
18463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464  ac_cv_sys_file_offset_bits=unknown
18465  break
18466done
18467fi
18468{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18469$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18470case $ac_cv_sys_file_offset_bits in #(
18471  no | unknown) ;;
18472  *)
18473cat >>confdefs.h <<_ACEOF
18474#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18475_ACEOF
18476;;
18477esac
18478rm -rf conftest*
18479  if test $ac_cv_sys_file_offset_bits = unknown; then
18480    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18481$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18482if test "${ac_cv_sys_large_files+set}" = set; then
18483  $as_echo_n "(cached) " >&6
18484else
18485  while :; do
18486  cat >conftest.$ac_ext <<_ACEOF
18487/* confdefs.h.  */
18488_ACEOF
18489cat confdefs.h >>conftest.$ac_ext
18490cat >>conftest.$ac_ext <<_ACEOF
18491/* end confdefs.h.  */
18492#include <sys/types.h>
18493 /* Check that off_t can represent 2**63 - 1 correctly.
18494    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18495    since some C++ compilers masquerading as C compilers
18496    incorrectly reject 9223372036854775807.  */
18497#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18498  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18499		       && LARGE_OFF_T % 2147483647 == 1)
18500		      ? 1 : -1];
18501int
18502main ()
18503{
18504
18505  ;
18506  return 0;
18507}
18508_ACEOF
18509rm -f conftest.$ac_objext
18510if { (ac_try="$ac_compile"
18511case "(($ac_try" in
18512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513  *) ac_try_echo=$ac_try;;
18514esac
18515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18516$as_echo "$ac_try_echo") >&5
18517  (eval "$ac_compile") 2>conftest.er1
18518  ac_status=$?
18519  grep -v '^ *+' conftest.er1 >conftest.err
18520  rm -f conftest.er1
18521  cat conftest.err >&5
18522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523  (exit $ac_status); } && {
18524	 test -z "$ac_c_werror_flag" ||
18525	 test ! -s conftest.err
18526       } && test -s conftest.$ac_objext; then
18527  ac_cv_sys_large_files=no; break
18528else
18529  $as_echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532
18533fi
18534
18535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536  cat >conftest.$ac_ext <<_ACEOF
18537/* confdefs.h.  */
18538_ACEOF
18539cat confdefs.h >>conftest.$ac_ext
18540cat >>conftest.$ac_ext <<_ACEOF
18541/* end confdefs.h.  */
18542#define _LARGE_FILES 1
18543#include <sys/types.h>
18544 /* Check that off_t can represent 2**63 - 1 correctly.
18545    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18546    since some C++ compilers masquerading as C compilers
18547    incorrectly reject 9223372036854775807.  */
18548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18549  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18550		       && LARGE_OFF_T % 2147483647 == 1)
18551		      ? 1 : -1];
18552int
18553main ()
18554{
18555
18556  ;
18557  return 0;
18558}
18559_ACEOF
18560rm -f conftest.$ac_objext
18561if { (ac_try="$ac_compile"
18562case "(($ac_try" in
18563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564  *) ac_try_echo=$ac_try;;
18565esac
18566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18567$as_echo "$ac_try_echo") >&5
18568  (eval "$ac_compile") 2>conftest.er1
18569  ac_status=$?
18570  grep -v '^ *+' conftest.er1 >conftest.err
18571  rm -f conftest.er1
18572  cat conftest.err >&5
18573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574  (exit $ac_status); } && {
18575	 test -z "$ac_c_werror_flag" ||
18576	 test ! -s conftest.err
18577       } && test -s conftest.$ac_objext; then
18578  ac_cv_sys_large_files=1; break
18579else
18580  $as_echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583
18584fi
18585
18586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587  ac_cv_sys_large_files=unknown
18588  break
18589done
18590fi
18591{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18592$as_echo "$ac_cv_sys_large_files" >&6; }
18593case $ac_cv_sys_large_files in #(
18594  no | unknown) ;;
18595  *)
18596cat >>confdefs.h <<_ACEOF
18597#define _LARGE_FILES $ac_cv_sys_large_files
18598_ACEOF
18599;;
18600esac
18601rm -rf conftest*
18602  fi
18603fi
18604
18605
18606 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18607$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18608if test "${ac_cv_c_bigendian+set}" = set; then
18609  $as_echo_n "(cached) " >&6
18610else
18611  ac_cv_c_bigendian=unknown
18612    # See if we're dealing with a universal compiler.
18613    cat >conftest.$ac_ext <<_ACEOF
18614/* confdefs.h.  */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h.  */
18619#ifndef __APPLE_CC__
18620	       not a universal capable compiler
18621	     #endif
18622	     typedef int dummy;
18623
18624_ACEOF
18625rm -f conftest.$ac_objext
18626if { (ac_try="$ac_compile"
18627case "(($ac_try" in
18628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629  *) ac_try_echo=$ac_try;;
18630esac
18631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18632$as_echo "$ac_try_echo") >&5
18633  (eval "$ac_compile") 2>conftest.er1
18634  ac_status=$?
18635  grep -v '^ *+' conftest.er1 >conftest.err
18636  rm -f conftest.er1
18637  cat conftest.err >&5
18638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639  (exit $ac_status); } && {
18640	 test -z "$ac_c_werror_flag" ||
18641	 test ! -s conftest.err
18642       } && test -s conftest.$ac_objext; then
18643
18644	# Check for potential -arch flags.  It is not universal unless
18645	# there are some -arch flags.  Note that *ppc* also matches
18646	# ppc64.  This check is also rather less than ideal.
18647	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
18648	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
18649	esac
18650else
18651  $as_echo "$as_me: failed program was:" >&5
18652sed 's/^/| /' conftest.$ac_ext >&5
18653
18654
18655fi
18656
18657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658    if test $ac_cv_c_bigendian = unknown; then
18659      # See if sys/param.h defines the BYTE_ORDER macro.
18660      cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h.  */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h.  */
18666#include <sys/types.h>
18667	     #include <sys/param.h>
18668
18669int
18670main ()
18671{
18672#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18673		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18674		     && LITTLE_ENDIAN)
18675	      bogus endian macros
18676	     #endif
18677
18678  ;
18679  return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext
18683if { (ac_try="$ac_compile"
18684case "(($ac_try" in
18685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686  *) ac_try_echo=$ac_try;;
18687esac
18688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18689$as_echo "$ac_try_echo") >&5
18690  (eval "$ac_compile") 2>conftest.er1
18691  ac_status=$?
18692  grep -v '^ *+' conftest.er1 >conftest.err
18693  rm -f conftest.er1
18694  cat conftest.err >&5
18695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696  (exit $ac_status); } && {
18697	 test -z "$ac_c_werror_flag" ||
18698	 test ! -s conftest.err
18699       } && test -s conftest.$ac_objext; then
18700  # It does; now see whether it defined to BIG_ENDIAN or not.
18701	 cat >conftest.$ac_ext <<_ACEOF
18702/* confdefs.h.  */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h.  */
18707#include <sys/types.h>
18708		#include <sys/param.h>
18709
18710int
18711main ()
18712{
18713#if BYTE_ORDER != BIG_ENDIAN
18714		 not big endian
18715		#endif
18716
18717  ;
18718  return 0;
18719}
18720_ACEOF
18721rm -f conftest.$ac_objext
18722if { (ac_try="$ac_compile"
18723case "(($ac_try" in
18724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725  *) ac_try_echo=$ac_try;;
18726esac
18727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18728$as_echo "$ac_try_echo") >&5
18729  (eval "$ac_compile") 2>conftest.er1
18730  ac_status=$?
18731  grep -v '^ *+' conftest.er1 >conftest.err
18732  rm -f conftest.er1
18733  cat conftest.err >&5
18734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735  (exit $ac_status); } && {
18736	 test -z "$ac_c_werror_flag" ||
18737	 test ! -s conftest.err
18738       } && test -s conftest.$ac_objext; then
18739  ac_cv_c_bigendian=yes
18740else
18741  $as_echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744	ac_cv_c_bigendian=no
18745fi
18746
18747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748else
18749  $as_echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756    fi
18757    if test $ac_cv_c_bigendian = unknown; then
18758      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18759      cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h.  */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h.  */
18765#include <limits.h>
18766
18767int
18768main ()
18769{
18770#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18771	      bogus endian macros
18772	     #endif
18773
18774  ;
18775  return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext
18779if { (ac_try="$ac_compile"
18780case "(($ac_try" in
18781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782  *) ac_try_echo=$ac_try;;
18783esac
18784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18785$as_echo "$ac_try_echo") >&5
18786  (eval "$ac_compile") 2>conftest.er1
18787  ac_status=$?
18788  grep -v '^ *+' conftest.er1 >conftest.err
18789  rm -f conftest.er1
18790  cat conftest.err >&5
18791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792  (exit $ac_status); } && {
18793	 test -z "$ac_c_werror_flag" ||
18794	 test ! -s conftest.err
18795       } && test -s conftest.$ac_objext; then
18796  # It does; now see whether it defined to _BIG_ENDIAN or not.
18797	 cat >conftest.$ac_ext <<_ACEOF
18798/* confdefs.h.  */
18799_ACEOF
18800cat confdefs.h >>conftest.$ac_ext
18801cat >>conftest.$ac_ext <<_ACEOF
18802/* end confdefs.h.  */
18803#include <limits.h>
18804
18805int
18806main ()
18807{
18808#ifndef _BIG_ENDIAN
18809		 not big endian
18810		#endif
18811
18812  ;
18813  return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext
18817if { (ac_try="$ac_compile"
18818case "(($ac_try" in
18819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820  *) ac_try_echo=$ac_try;;
18821esac
18822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18823$as_echo "$ac_try_echo") >&5
18824  (eval "$ac_compile") 2>conftest.er1
18825  ac_status=$?
18826  grep -v '^ *+' conftest.er1 >conftest.err
18827  rm -f conftest.er1
18828  cat conftest.err >&5
18829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830  (exit $ac_status); } && {
18831	 test -z "$ac_c_werror_flag" ||
18832	 test ! -s conftest.err
18833       } && test -s conftest.$ac_objext; then
18834  ac_cv_c_bigendian=yes
18835else
18836  $as_echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
18839	ac_cv_c_bigendian=no
18840fi
18841
18842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18843else
18844  $as_echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847
18848fi
18849
18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851    fi
18852    if test $ac_cv_c_bigendian = unknown; then
18853      # Compile a test program.
18854      if test "$cross_compiling" = yes; then
18855  # Try to guess by grepping values from an object file.
18856	 cat >conftest.$ac_ext <<_ACEOF
18857/* confdefs.h.  */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h.  */
18862short int ascii_mm[] =
18863		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18864		short int ascii_ii[] =
18865		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18866		int use_ascii (int i) {
18867		  return ascii_mm[i] + ascii_ii[i];
18868		}
18869		short int ebcdic_ii[] =
18870		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18871		short int ebcdic_mm[] =
18872		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18873		int use_ebcdic (int i) {
18874		  return ebcdic_mm[i] + ebcdic_ii[i];
18875		}
18876		extern int foo;
18877
18878int
18879main ()
18880{
18881return use_ascii (foo) == use_ebcdic (foo);
18882  ;
18883  return 0;
18884}
18885_ACEOF
18886rm -f conftest.$ac_objext
18887if { (ac_try="$ac_compile"
18888case "(($ac_try" in
18889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890  *) ac_try_echo=$ac_try;;
18891esac
18892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18893$as_echo "$ac_try_echo") >&5
18894  (eval "$ac_compile") 2>conftest.er1
18895  ac_status=$?
18896  grep -v '^ *+' conftest.er1 >conftest.err
18897  rm -f conftest.er1
18898  cat conftest.err >&5
18899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900  (exit $ac_status); } && {
18901	 test -z "$ac_c_werror_flag" ||
18902	 test ! -s conftest.err
18903       } && test -s conftest.$ac_objext; then
18904  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18905	      ac_cv_c_bigendian=yes
18906	    fi
18907	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18908	      if test "$ac_cv_c_bigendian" = unknown; then
18909		ac_cv_c_bigendian=no
18910	      else
18911		# finding both strings is unlikely to happen, but who knows?
18912		ac_cv_c_bigendian=unknown
18913	      fi
18914	    fi
18915else
18916  $as_echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919
18920fi
18921
18922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923else
18924  cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h.  */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h.  */
18930$ac_includes_default
18931int
18932main ()
18933{
18934
18935	     /* Are we little or big endian?  From Harbison&Steele.  */
18936	     union
18937	     {
18938	       long int l;
18939	       char c[sizeof (long int)];
18940	     } u;
18941	     u.l = 1;
18942	     return u.c[sizeof (long int) - 1] == 1;
18943
18944  ;
18945  return 0;
18946}
18947_ACEOF
18948rm -f conftest$ac_exeext
18949if { (ac_try="$ac_link"
18950case "(($ac_try" in
18951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952  *) ac_try_echo=$ac_try;;
18953esac
18954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18955$as_echo "$ac_try_echo") >&5
18956  (eval "$ac_link") 2>&5
18957  ac_status=$?
18958  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18960  { (case "(($ac_try" in
18961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962  *) ac_try_echo=$ac_try;;
18963esac
18964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18965$as_echo "$ac_try_echo") >&5
18966  (eval "$ac_try") 2>&5
18967  ac_status=$?
18968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969  (exit $ac_status); }; }; then
18970  ac_cv_c_bigendian=no
18971else
18972  $as_echo "$as_me: program exited with status $ac_status" >&5
18973$as_echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976( exit $ac_status )
18977ac_cv_c_bigendian=yes
18978fi
18979rm -rf conftest.dSYM
18980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18981fi
18982
18983
18984    fi
18985fi
18986{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18987$as_echo "$ac_cv_c_bigendian" >&6; }
18988 case $ac_cv_c_bigendian in #(
18989   yes)
18990     cat >>confdefs.h <<\_ACEOF
18991#define WORDS_BIGENDIAN 1
18992_ACEOF
18993;; #(
18994   no)
18995      ;; #(
18996   universal)
18997
18998cat >>confdefs.h <<\_ACEOF
18999#define AC_APPLE_UNIVERSAL_BUILD 1
19000_ACEOF
19001
19002     ;; #(
19003   *)
19004     { { $as_echo "$as_me:$LINENO: error: unknown endianness
19005 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19006$as_echo "$as_me: error: unknown endianness
19007 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19008   { (exit 1); exit 1; }; } ;;
19009 esac
19010
19011
19012
19013###############################################################################
19014# Checks for library functions.
19015###############################################################################
19016
19017# Gnulib replacements as needed
19018
19019  if test -z "$GETOPT_H"; then
19020
19021for ac_header in getopt.h
19022do
19023as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19025  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19026$as_echo_n "checking for $ac_header... " >&6; }
19027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028  $as_echo_n "(cached) " >&6
19029fi
19030ac_res=`eval 'as_val=${'$as_ac_Header'}
19031		 $as_echo "$as_val"'`
19032	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19033$as_echo "$ac_res" >&6; }
19034else
19035  # Is the header compilable?
19036{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037$as_echo_n "checking $ac_header usability... " >&6; }
19038cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h.  */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h.  */
19044$ac_includes_default
19045#include <$ac_header>
19046_ACEOF
19047rm -f conftest.$ac_objext
19048if { (ac_try="$ac_compile"
19049case "(($ac_try" in
19050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051  *) ac_try_echo=$ac_try;;
19052esac
19053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054$as_echo "$ac_try_echo") >&5
19055  (eval "$ac_compile") 2>conftest.er1
19056  ac_status=$?
19057  grep -v '^ *+' conftest.er1 >conftest.err
19058  rm -f conftest.er1
19059  cat conftest.err >&5
19060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061  (exit $ac_status); } && {
19062	 test -z "$ac_c_werror_flag" ||
19063	 test ! -s conftest.err
19064       } && test -s conftest.$ac_objext; then
19065  ac_header_compiler=yes
19066else
19067  $as_echo "$as_me: failed program was:" >&5
19068sed 's/^/| /' conftest.$ac_ext >&5
19069
19070	ac_header_compiler=no
19071fi
19072
19073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19075$as_echo "$ac_header_compiler" >&6; }
19076
19077# Is the header present?
19078{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19079$as_echo_n "checking $ac_header presence... " >&6; }
19080cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h.  */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h.  */
19086#include <$ac_header>
19087_ACEOF
19088if { (ac_try="$ac_cpp conftest.$ac_ext"
19089case "(($ac_try" in
19090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091  *) ac_try_echo=$ac_try;;
19092esac
19093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19094$as_echo "$ac_try_echo") >&5
19095  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19096  ac_status=$?
19097  grep -v '^ *+' conftest.er1 >conftest.err
19098  rm -f conftest.er1
19099  cat conftest.err >&5
19100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101  (exit $ac_status); } >/dev/null && {
19102	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103	 test ! -s conftest.err
19104       }; then
19105  ac_header_preproc=yes
19106else
19107  $as_echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110  ac_header_preproc=no
19111fi
19112
19113rm -f conftest.err conftest.$ac_ext
19114{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115$as_echo "$ac_header_preproc" >&6; }
19116
19117# So?  What about this header?
19118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19119  yes:no: )
19120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124    ac_header_preproc=yes
19125    ;;
19126  no:yes:* )
19127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19130$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19131    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19134$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19139    ( cat <<\_ASBOX
19140## --------------------------------------- ##
19141## Report this to lasse.collin@tukaani.org ##
19142## --------------------------------------- ##
19143_ASBOX
19144     ) | sed "s/^/$as_me: WARNING:     /" >&2
19145    ;;
19146esac
19147{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19148$as_echo_n "checking for $ac_header... " >&6; }
19149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150  $as_echo_n "(cached) " >&6
19151else
19152  eval "$as_ac_Header=\$ac_header_preproc"
19153fi
19154ac_res=`eval 'as_val=${'$as_ac_Header'}
19155		 $as_echo "$as_val"'`
19156	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19157$as_echo "$ac_res" >&6; }
19158
19159fi
19160as_val=`eval 'as_val=${'$as_ac_Header'}
19161		 $as_echo "$as_val"'`
19162   if test "x$as_val" = x""yes; then
19163  cat >>confdefs.h <<_ACEOF
19164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19165_ACEOF
19166
19167else
19168  GETOPT_H=getopt.h
19169fi
19170
19171done
19172
19173  fi
19174
19175  if test -z "$GETOPT_H"; then
19176
19177for ac_func in getopt_long
19178do
19179as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19180{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19181$as_echo_n "checking for $ac_func... " >&6; }
19182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19183  $as_echo_n "(cached) " >&6
19184else
19185  cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h.  */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h.  */
19191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19192   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19193#define $ac_func innocuous_$ac_func
19194
19195/* System header to define __stub macros and hopefully few prototypes,
19196    which can conflict with char $ac_func (); below.
19197    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19198    <limits.h> exists even on freestanding compilers.  */
19199
19200#ifdef __STDC__
19201# include <limits.h>
19202#else
19203# include <assert.h>
19204#endif
19205
19206#undef $ac_func
19207
19208/* Override any GCC internal prototype to avoid an error.
19209   Use char because int might match the return type of a GCC
19210   builtin and then its argument prototype would still apply.  */
19211#ifdef __cplusplus
19212extern "C"
19213#endif
19214char $ac_func ();
19215/* The GNU C library defines this for functions which it implements
19216    to always fail with ENOSYS.  Some functions are actually named
19217    something starting with __ and the normal name is an alias.  */
19218#if defined __stub_$ac_func || defined __stub___$ac_func
19219choke me
19220#endif
19221
19222int
19223main ()
19224{
19225return $ac_func ();
19226  ;
19227  return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext conftest$ac_exeext
19231if { (ac_try="$ac_link"
19232case "(($ac_try" in
19233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234  *) ac_try_echo=$ac_try;;
19235esac
19236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19237$as_echo "$ac_try_echo") >&5
19238  (eval "$ac_link") 2>conftest.er1
19239  ac_status=$?
19240  grep -v '^ *+' conftest.er1 >conftest.err
19241  rm -f conftest.er1
19242  cat conftest.err >&5
19243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244  (exit $ac_status); } && {
19245	 test -z "$ac_c_werror_flag" ||
19246	 test ! -s conftest.err
19247       } && test -s conftest$ac_exeext && {
19248	 test "$cross_compiling" = yes ||
19249	 $as_test_x conftest$ac_exeext
19250       }; then
19251  eval "$as_ac_var=yes"
19252else
19253  $as_echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256	eval "$as_ac_var=no"
19257fi
19258
19259rm -rf conftest.dSYM
19260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19261      conftest$ac_exeext conftest.$ac_ext
19262fi
19263ac_res=`eval 'as_val=${'$as_ac_var'}
19264		 $as_echo "$as_val"'`
19265	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19266$as_echo "$ac_res" >&6; }
19267as_val=`eval 'as_val=${'$as_ac_var'}
19268		 $as_echo "$as_val"'`
19269   if test "x$as_val" = x""yes; then
19270  cat >>confdefs.h <<_ACEOF
19271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19272_ACEOF
19273
19274else
19275  GETOPT_H=getopt.h
19276fi
19277done
19278
19279  fi
19280
19281                                  if test -z "$GETOPT_H"; then
19282    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19283$as_echo_n "checking whether optreset is declared... " >&6; }
19284if test "${ac_cv_have_decl_optreset+set}" = set; then
19285  $as_echo_n "(cached) " >&6
19286else
19287  cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h.  */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h.  */
19293#include <getopt.h>
19294
19295int
19296main ()
19297{
19298#ifndef optreset
19299  (void) optreset;
19300#endif
19301
19302  ;
19303  return 0;
19304}
19305_ACEOF
19306rm -f conftest.$ac_objext
19307if { (ac_try="$ac_compile"
19308case "(($ac_try" in
19309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310  *) ac_try_echo=$ac_try;;
19311esac
19312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19313$as_echo "$ac_try_echo") >&5
19314  (eval "$ac_compile") 2>conftest.er1
19315  ac_status=$?
19316  grep -v '^ *+' conftest.er1 >conftest.err
19317  rm -f conftest.er1
19318  cat conftest.err >&5
19319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); } && {
19321	 test -z "$ac_c_werror_flag" ||
19322	 test ! -s conftest.err
19323       } && test -s conftest.$ac_objext; then
19324  ac_cv_have_decl_optreset=yes
19325else
19326  $as_echo "$as_me: failed program was:" >&5
19327sed 's/^/| /' conftest.$ac_ext >&5
19328
19329	ac_cv_have_decl_optreset=no
19330fi
19331
19332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19333fi
19334{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19335$as_echo "$ac_cv_have_decl_optreset" >&6; }
19336if test "x$ac_cv_have_decl_optreset" = x""yes; then
19337
19338cat >>confdefs.h <<\_ACEOF
19339#define HAVE_OPTRESET 1
19340_ACEOF
19341
19342fi
19343
19344  fi
19345
19346
19347
19348
19349  if test -n "$GETOPT_H"; then
19350
19351  case " $LIBOBJS " in
19352  *" getopt.$ac_objext "* ) ;;
19353  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19354 ;;
19355esac
19356
19357  case " $LIBOBJS " in
19358  *" getopt1.$ac_objext "* ) ;;
19359  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
19360 ;;
19361esac
19362
19363
19364  GETOPT_H=getopt.h
19365
19366cat >>confdefs.h <<\_ACEOF
19367#define __GETOPT_PREFIX rpl_
19368_ACEOF
19369
19370
19371
19372
19373fi
19374
19375
19376
19377# Find the best function to set timestamps.
19378
19379
19380
19381
19382
19383for ac_func in futimens futimes futimesat utimes utime
19384do
19385as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19386{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19387$as_echo_n "checking for $ac_func... " >&6; }
19388if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19389  $as_echo_n "(cached) " >&6
19390else
19391  cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h.  */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h.  */
19397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19398   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19399#define $ac_func innocuous_$ac_func
19400
19401/* System header to define __stub macros and hopefully few prototypes,
19402    which can conflict with char $ac_func (); below.
19403    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404    <limits.h> exists even on freestanding compilers.  */
19405
19406#ifdef __STDC__
19407# include <limits.h>
19408#else
19409# include <assert.h>
19410#endif
19411
19412#undef $ac_func
19413
19414/* Override any GCC internal prototype to avoid an error.
19415   Use char because int might match the return type of a GCC
19416   builtin and then its argument prototype would still apply.  */
19417#ifdef __cplusplus
19418extern "C"
19419#endif
19420char $ac_func ();
19421/* The GNU C library defines this for functions which it implements
19422    to always fail with ENOSYS.  Some functions are actually named
19423    something starting with __ and the normal name is an alias.  */
19424#if defined __stub_$ac_func || defined __stub___$ac_func
19425choke me
19426#endif
19427
19428int
19429main ()
19430{
19431return $ac_func ();
19432  ;
19433  return 0;
19434}
19435_ACEOF
19436rm -f conftest.$ac_objext conftest$ac_exeext
19437if { (ac_try="$ac_link"
19438case "(($ac_try" in
19439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440  *) ac_try_echo=$ac_try;;
19441esac
19442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19443$as_echo "$ac_try_echo") >&5
19444  (eval "$ac_link") 2>conftest.er1
19445  ac_status=$?
19446  grep -v '^ *+' conftest.er1 >conftest.err
19447  rm -f conftest.er1
19448  cat conftest.err >&5
19449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450  (exit $ac_status); } && {
19451	 test -z "$ac_c_werror_flag" ||
19452	 test ! -s conftest.err
19453       } && test -s conftest$ac_exeext && {
19454	 test "$cross_compiling" = yes ||
19455	 $as_test_x conftest$ac_exeext
19456       }; then
19457  eval "$as_ac_var=yes"
19458else
19459  $as_echo "$as_me: failed program was:" >&5
19460sed 's/^/| /' conftest.$ac_ext >&5
19461
19462	eval "$as_ac_var=no"
19463fi
19464
19465rm -rf conftest.dSYM
19466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467      conftest$ac_exeext conftest.$ac_ext
19468fi
19469ac_res=`eval 'as_val=${'$as_ac_var'}
19470		 $as_echo "$as_val"'`
19471	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19472$as_echo "$ac_res" >&6; }
19473as_val=`eval 'as_val=${'$as_ac_var'}
19474		 $as_echo "$as_val"'`
19475   if test "x$as_val" = x""yes; then
19476  cat >>confdefs.h <<_ACEOF
19477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19478_ACEOF
19479 break
19480fi
19481done
19482
19483
19484
19485{ $as_echo "$as_me:$LINENO: checking how to detect the amount of physical memory" >&5
19486$as_echo_n "checking how to detect the amount of physical memory... " >&6; }
19487cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h.  */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h.  */
19493
19494#include <unistd.h>
19495int
19496main(void)
19497{
19498	long i;
19499	i = sysconf(_SC_PAGESIZE);
19500	i = sysconf(_SC_PHYS_PAGES);
19501	return 0;
19502}
19503
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (ac_try="$ac_compile"
19507case "(($ac_try" in
19508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509  *) ac_try_echo=$ac_try;;
19510esac
19511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19512$as_echo "$ac_try_echo") >&5
19513  (eval "$ac_compile") 2>conftest.er1
19514  ac_status=$?
19515  grep -v '^ *+' conftest.er1 >conftest.err
19516  rm -f conftest.er1
19517  cat conftest.err >&5
19518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519  (exit $ac_status); } && {
19520	 test -z "$ac_c_werror_flag" ||
19521	 test ! -s conftest.err
19522       } && test -s conftest.$ac_objext; then
19523
19524
19525cat >>confdefs.h <<\_ACEOF
19526#define HAVE_PHYSMEM_SYSCONF 1
19527_ACEOF
19528
19529	{ $as_echo "$as_me:$LINENO: result: sysconf" >&5
19530$as_echo "sysconf" >&6; }
19531
19532else
19533  $as_echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536
19537cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h.  */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h.  */
19543
19544#include <sys/types.h>
19545#ifdef HAVE_SYS_PARAM_H
19546#	include <sys/param.h>
19547#endif
19548#include <sys/sysctl.h>
19549int
19550main(void)
19551{
19552	int name[2] = { CTL_HW, HW_PHYSMEM };
19553	unsigned long mem;
19554	size_t mem_ptr_size = sizeof(mem);
19555	sysctl(name, 2, &mem, &mem_ptr_size, NULL, NULL);
19556	return 0;
19557}
19558
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (ac_try="$ac_compile"
19562case "(($ac_try" in
19563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564  *) ac_try_echo=$ac_try;;
19565esac
19566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19567$as_echo "$ac_try_echo") >&5
19568  (eval "$ac_compile") 2>conftest.er1
19569  ac_status=$?
19570  grep -v '^ *+' conftest.er1 >conftest.err
19571  rm -f conftest.er1
19572  cat conftest.err >&5
19573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574  (exit $ac_status); } && {
19575	 test -z "$ac_c_werror_flag" ||
19576	 test ! -s conftest.err
19577       } && test -s conftest.$ac_objext; then
19578
19579
19580cat >>confdefs.h <<\_ACEOF
19581#define HAVE_PHYSMEM_SYSCTL 1
19582_ACEOF
19583
19584	{ $as_echo "$as_me:$LINENO: result: sysctl" >&5
19585$as_echo "sysctl" >&6; }
19586
19587else
19588  $as_echo "$as_me: failed program was:" >&5
19589sed 's/^/| /' conftest.$ac_ext >&5
19590
19591
19592case $host_os in
19593	linux*)
19594		cat >conftest.$ac_ext <<_ACEOF
19595/* confdefs.h.  */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h.  */
19600
19601#include <sys/sysinfo.h>
19602int
19603main(void)
19604{
19605	struct sysinfo si;
19606	sysinfo(&si);
19607	return 0;
19608}
19609
19610_ACEOF
19611rm -f conftest.$ac_objext
19612if { (ac_try="$ac_compile"
19613case "(($ac_try" in
19614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615  *) ac_try_echo=$ac_try;;
19616esac
19617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19618$as_echo "$ac_try_echo") >&5
19619  (eval "$ac_compile") 2>conftest.er1
19620  ac_status=$?
19621  grep -v '^ *+' conftest.er1 >conftest.err
19622  rm -f conftest.er1
19623  cat conftest.err >&5
19624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625  (exit $ac_status); } && {
19626	 test -z "$ac_c_werror_flag" ||
19627	 test ! -s conftest.err
19628       } && test -s conftest.$ac_objext; then
19629
19630
19631cat >>confdefs.h <<\_ACEOF
19632#define HAVE_PHYSMEM_SYSINFO 1
19633_ACEOF
19634
19635			{ $as_echo "$as_me:$LINENO: result: sysinfo" >&5
19636$as_echo "sysinfo" >&6; }
19637
19638else
19639  $as_echo "$as_me: failed program was:" >&5
19640sed 's/^/| /' conftest.$ac_ext >&5
19641
19642
19643			{ $as_echo "$as_me:$LINENO: result: unknown" >&5
19644$as_echo "unknown" >&6; }
19645
19646fi
19647
19648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649		;;
19650	*)
19651		{ $as_echo "$as_me:$LINENO: result: unknown" >&5
19652$as_echo "unknown" >&6; }
19653		;;
19654esac
19655
19656fi
19657
19658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659fi
19660
19661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662
19663
19664{ $as_echo "$as_me:$LINENO: checking how to detect the number of available CPU cores" >&5
19665$as_echo_n "checking how to detect the number of available CPU cores... " >&6; }
19666cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h.  */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h.  */
19672
19673#include <unistd.h>
19674int
19675main(void)
19676{
19677	long i;
19678	i = sysconf(_SC_NPROCESSORS_ONLN);
19679	return 0;
19680}
19681
19682_ACEOF
19683rm -f conftest.$ac_objext
19684if { (ac_try="$ac_compile"
19685case "(($ac_try" in
19686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687  *) ac_try_echo=$ac_try;;
19688esac
19689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19690$as_echo "$ac_try_echo") >&5
19691  (eval "$ac_compile") 2>conftest.er1
19692  ac_status=$?
19693  grep -v '^ *+' conftest.er1 >conftest.err
19694  rm -f conftest.er1
19695  cat conftest.err >&5
19696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697  (exit $ac_status); } && {
19698	 test -z "$ac_c_werror_flag" ||
19699	 test ! -s conftest.err
19700       } && test -s conftest.$ac_objext; then
19701
19702
19703cat >>confdefs.h <<\_ACEOF
19704#define HAVE_CPUCORES_SYSCONF 1
19705_ACEOF
19706
19707	{ $as_echo "$as_me:$LINENO: result: sysconf" >&5
19708$as_echo "sysconf" >&6; }
19709
19710else
19711  $as_echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714
19715cat >conftest.$ac_ext <<_ACEOF
19716/* confdefs.h.  */
19717_ACEOF
19718cat confdefs.h >>conftest.$ac_ext
19719cat >>conftest.$ac_ext <<_ACEOF
19720/* end confdefs.h.  */
19721
19722#include <sys/types.h>
19723#ifdef HAVE_SYS_PARAM_H
19724#	include <sys/param.h>
19725#endif
19726#include <sys/sysctl.h>
19727int
19728main(void)
19729{
19730	int name[2] = { CTL_HW, HW_NCPU };
19731	int cpus;
19732	size_t cpus_size = sizeof(cpus);
19733	sysctl(name, 2, &cpus, &cpus_size, NULL, NULL);
19734	return 0;
19735}
19736
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (ac_try="$ac_compile"
19740case "(($ac_try" in
19741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742  *) ac_try_echo=$ac_try;;
19743esac
19744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19745$as_echo "$ac_try_echo") >&5
19746  (eval "$ac_compile") 2>conftest.er1
19747  ac_status=$?
19748  grep -v '^ *+' conftest.er1 >conftest.err
19749  rm -f conftest.er1
19750  cat conftest.err >&5
19751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752  (exit $ac_status); } && {
19753	 test -z "$ac_c_werror_flag" ||
19754	 test ! -s conftest.err
19755       } && test -s conftest.$ac_objext; then
19756
19757
19758cat >>confdefs.h <<\_ACEOF
19759#define HAVE_CPUCORES_SYSCTL 1
19760_ACEOF
19761
19762	{ $as_echo "$as_me:$LINENO: result: sysctl" >&5
19763$as_echo "sysctl" >&6; }
19764
19765else
19766  $as_echo "$as_me: failed program was:" >&5
19767sed 's/^/| /' conftest.$ac_ext >&5
19768
19769
19770	{ $as_echo "$as_me:$LINENO: result: unknown" >&5
19771$as_echo "unknown" >&6; }
19772
19773fi
19774
19775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776fi
19777
19778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19779
19780
19781
19782###############################################################################
19783# If using GCC, set some additional AM_CFLAGS:
19784###############################################################################
19785
19786if test "$GCC" = yes ; then
19787	echo
19788	echo "GCC extensions:"
19789fi
19790
19791# Always do the visibility check but don't set AM_CFLAGS on Windows.
19792# This way things get set properly even on Windows.
19793
19794
19795  CFLAG_VISIBILITY=
19796  HAVE_VISIBILITY=0
19797  if test -n "$GCC"; then
19798    { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
19799$as_echo_n "checking for simple visibility declarations... " >&6; }
19800    if test "${gl_cv_cc_visibility+set}" = set; then
19801  $as_echo_n "(cached) " >&6
19802else
19803
19804      gl_save_CFLAGS="$CFLAGS"
19805      CFLAGS="$CFLAGS -fvisibility=hidden"
19806      cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h.  */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h.  */
19812extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19813         extern __attribute__((__visibility__("default"))) int exportedvar;
19814         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19815         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19816int
19817main ()
19818{
19819
19820  ;
19821  return 0;
19822}
19823_ACEOF
19824rm -f conftest.$ac_objext
19825if { (ac_try="$ac_compile"
19826case "(($ac_try" in
19827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828  *) ac_try_echo=$ac_try;;
19829esac
19830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19831$as_echo "$ac_try_echo") >&5
19832  (eval "$ac_compile") 2>conftest.er1
19833  ac_status=$?
19834  grep -v '^ *+' conftest.er1 >conftest.err
19835  rm -f conftest.er1
19836  cat conftest.err >&5
19837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838  (exit $ac_status); } && {
19839	 test -z "$ac_c_werror_flag" ||
19840	 test ! -s conftest.err
19841       } && test -s conftest.$ac_objext; then
19842  gl_cv_cc_visibility=yes
19843else
19844  $as_echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847	gl_cv_cc_visibility=no
19848fi
19849
19850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851      CFLAGS="$gl_save_CFLAGS"
19852fi
19853
19854    { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
19855$as_echo "$gl_cv_cc_visibility" >&6; }
19856    if test $gl_cv_cc_visibility = yes; then
19857      CFLAG_VISIBILITY="-fvisibility=hidden"
19858      HAVE_VISIBILITY=1
19859    fi
19860  fi
19861
19862
19863
19864cat >>confdefs.h <<_ACEOF
19865#define HAVE_VISIBILITY $HAVE_VISIBILITY
19866_ACEOF
19867
19868
19869if test -n "$CFLAG_VISIBILITY" && test "$is_w32" = no; then
19870	AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY"
19871fi
19872
19873###############################################################################
19874# Create the makefiles and config.h
19875###############################################################################
19876
19877echo
19878
19879# Don't build the lib directory at all if we don't need any replacement
19880# functions.
19881 if test -n "$LIBOBJS"; then
19882  COND_GNULIB_TRUE=
19883  COND_GNULIB_FALSE='#'
19884else
19885  COND_GNULIB_TRUE='#'
19886  COND_GNULIB_FALSE=
19887fi
19888
19889
19890# Add default AM_CFLAGS.
19891
19892
19893# Set additional flags for static/dynamic linking. The idea is that every
19894# program (not library) being built will use either STATIC_{CPPFLAGS,LDFLAGS}
19895# or DYNAMIC_{CPPFLAGS,LDFLAGS} depending on which type of linkage is
19896# preferred. These preferences get overridden by use of --disable-static,
19897# --disable-shared, or --enable-dynamic.
19898#
19899# This is quite messy, because we want to use LZMA_API_STATIC when linking
19900# against static liblzma. It's needed on Windows.
19901if test "x$enable_static" = xno; then
19902	enable_dynamic=yes
19903fi
19904if test "x$enable_shared" = xno; then
19905	enable_dynamic=no
19906fi
19907case $enable_dynamic in
19908	yes)
19909		STATIC_CPPFLAGS=
19910		STATIC_LDFLAGS=
19911		DYNAMIC_CPPFLAGS=
19912		DYNAMIC_LDFLAGS=
19913		;;
19914	mixed)
19915		STATIC_CPPFLAGS="-DLZMA_API_STATIC"
19916		STATIC_LDFLAGS="-static"
19917		DYNAMIC_CPPFLAGS=
19918		DYNAMIC_LDFLAGS=
19919		;;
19920	no)
19921		STATIC_CPPFLAGS="-DLZMA_API_STATIC"
19922		STATIC_LDFLAGS="-static"
19923		DYNAMIC_CPPFLAGS="-DLZMA_API_STATIC"
19924		DYNAMIC_LDFLAGS="-static"
19925		;;
19926esac
19927
19928
19929
19930
19931
19932# This is needed for src/scripts.
19933xz=`echo xz | sed "$program_transform_name"`
19934
19935
19936ac_config_files="$ac_config_files Doxyfile Makefile po/Makefile.in lib/Makefile src/Makefile src/liblzma/liblzma.pc src/liblzma/Makefile src/liblzma/api/Makefile src/xz/Makefile src/xzdec/Makefile src/lzmainfo/Makefile src/scripts/Makefile src/scripts/xzdiff src/scripts/xzgrep src/scripts/xzmore src/scripts/xzless tests/Makefile debug/Makefile"
19937
19938
19939cat >confcache <<\_ACEOF
19940# This file is a shell script that caches the results of configure
19941# tests run on this system so they can be shared between configure
19942# scripts and configure runs, see configure's option --config-cache.
19943# It is not useful on other systems.  If it contains results you don't
19944# want to keep, you may remove or edit it.
19945#
19946# config.status only pays attention to the cache file if you give it
19947# the --recheck option to rerun configure.
19948#
19949# `ac_cv_env_foo' variables (set or unset) will be overridden when
19950# loading this file, other *unset* `ac_cv_foo' will be assigned the
19951# following values.
19952
19953_ACEOF
19954
19955# The following way of writing the cache mishandles newlines in values,
19956# but we know of no workaround that is simple, portable, and efficient.
19957# So, we kill variables containing newlines.
19958# Ultrix sh set writes to stderr and can't be redirected directly,
19959# and sets the high bit in the cache file unless we assign to the vars.
19960(
19961  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19962    eval ac_val=\$$ac_var
19963    case $ac_val in #(
19964    *${as_nl}*)
19965      case $ac_var in #(
19966      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19967$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19968      esac
19969      case $ac_var in #(
19970      _ | IFS | as_nl) ;; #(
19971      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19972      *) $as_unset $ac_var ;;
19973      esac ;;
19974    esac
19975  done
19976
19977  (set) 2>&1 |
19978    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19979    *${as_nl}ac_space=\ *)
19980      # `set' does not quote correctly, so add quotes (double-quote
19981      # substitution turns \\\\ into \\, and sed turns \\ into \).
19982      sed -n \
19983	"s/'/'\\\\''/g;
19984	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19985      ;; #(
19986    *)
19987      # `set' quotes correctly as required by POSIX, so do not add quotes.
19988      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19989      ;;
19990    esac |
19991    sort
19992) |
19993  sed '
19994     /^ac_cv_env_/b end
19995     t clear
19996     :clear
19997     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19998     t end
19999     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20000     :end' >>confcache
20001if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20002  if test -w "$cache_file"; then
20003    test "x$cache_file" != "x/dev/null" &&
20004      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20005$as_echo "$as_me: updating cache $cache_file" >&6;}
20006    cat confcache >$cache_file
20007  else
20008    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20009$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20010  fi
20011fi
20012rm -f confcache
20013
20014test "x$prefix" = xNONE && prefix=$ac_default_prefix
20015# Let make expand exec_prefix.
20016test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20017
20018DEFS=-DHAVE_CONFIG_H
20019
20020ac_libobjs=
20021ac_ltlibobjs=
20022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20023  # 1. Remove the extension, and $U if already installed.
20024  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20025  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20026  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20027  #    will be set to the directory where LIBOBJS objects are built.
20028  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20029  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20030done
20031LIBOBJS=$ac_libobjs
20032
20033LTLIBOBJS=$ac_ltlibobjs
20034
20035
20036if test -z "${COND_W32_TRUE}" && test -z "${COND_W32_FALSE}"; then
20037  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_W32\" was never defined.
20038Usually this means the macro was only invoked conditionally." >&5
20039$as_echo "$as_me: error: conditional \"COND_W32\" was never defined.
20040Usually this means the macro was only invoked conditionally." >&2;}
20041   { (exit 1); exit 1; }; }
20042fi
20043if test -z "${COND_MAIN_ENCODER_TRUE}" && test -z "${COND_MAIN_ENCODER_FALSE}"; then
20044  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_MAIN_ENCODER\" was never defined.
20045Usually this means the macro was only invoked conditionally." >&5
20046$as_echo "$as_me: error: conditional \"COND_MAIN_ENCODER\" was never defined.
20047Usually this means the macro was only invoked conditionally." >&2;}
20048   { (exit 1); exit 1; }; }
20049fi
20050if test -z "${COND_MAIN_DECODER_TRUE}" && test -z "${COND_MAIN_DECODER_FALSE}"; then
20051  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_MAIN_DECODER\" was never defined.
20052Usually this means the macro was only invoked conditionally." >&5
20053$as_echo "$as_me: error: conditional \"COND_MAIN_DECODER\" was never defined.
20054Usually this means the macro was only invoked conditionally." >&2;}
20055   { (exit 1); exit 1; }; }
20056fi
20057if test -z "${COND_FILTER_LZMA1_TRUE}" && test -z "${COND_FILTER_LZMA1_FALSE}"; then
20058  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_LZMA1\" was never defined.
20059Usually this means the macro was only invoked conditionally." >&5
20060$as_echo "$as_me: error: conditional \"COND_FILTER_LZMA1\" was never defined.
20061Usually this means the macro was only invoked conditionally." >&2;}
20062   { (exit 1); exit 1; }; }
20063fi
20064if test -z "${COND_ENCODER_LZMA1_TRUE}" && test -z "${COND_ENCODER_LZMA1_FALSE}"; then
20065  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_LZMA1\" was never defined.
20066Usually this means the macro was only invoked conditionally." >&5
20067$as_echo "$as_me: error: conditional \"COND_ENCODER_LZMA1\" was never defined.
20068Usually this means the macro was only invoked conditionally." >&2;}
20069   { (exit 1); exit 1; }; }
20070fi
20071if test -z "${COND_DECODER_LZMA1_TRUE}" && test -z "${COND_DECODER_LZMA1_FALSE}"; then
20072  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_LZMA1\" was never defined.
20073Usually this means the macro was only invoked conditionally." >&5
20074$as_echo "$as_me: error: conditional \"COND_DECODER_LZMA1\" was never defined.
20075Usually this means the macro was only invoked conditionally." >&2;}
20076   { (exit 1); exit 1; }; }
20077fi
20078if test -z "${COND_FILTER_LZMA2_TRUE}" && test -z "${COND_FILTER_LZMA2_FALSE}"; then
20079  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_LZMA2\" was never defined.
20080Usually this means the macro was only invoked conditionally." >&5
20081$as_echo "$as_me: error: conditional \"COND_FILTER_LZMA2\" was never defined.
20082Usually this means the macro was only invoked conditionally." >&2;}
20083   { (exit 1); exit 1; }; }
20084fi
20085if test -z "${COND_ENCODER_LZMA2_TRUE}" && test -z "${COND_ENCODER_LZMA2_FALSE}"; then
20086  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_LZMA2\" was never defined.
20087Usually this means the macro was only invoked conditionally." >&5
20088$as_echo "$as_me: error: conditional \"COND_ENCODER_LZMA2\" was never defined.
20089Usually this means the macro was only invoked conditionally." >&2;}
20090   { (exit 1); exit 1; }; }
20091fi
20092if test -z "${COND_DECODER_LZMA2_TRUE}" && test -z "${COND_DECODER_LZMA2_FALSE}"; then
20093  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_LZMA2\" was never defined.
20094Usually this means the macro was only invoked conditionally." >&5
20095$as_echo "$as_me: error: conditional \"COND_DECODER_LZMA2\" was never defined.
20096Usually this means the macro was only invoked conditionally." >&2;}
20097   { (exit 1); exit 1; }; }
20098fi
20099if test -z "${COND_FILTER_SUBBLOCK_TRUE}" && test -z "${COND_FILTER_SUBBLOCK_FALSE}"; then
20100  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_SUBBLOCK\" was never defined.
20101Usually this means the macro was only invoked conditionally." >&5
20102$as_echo "$as_me: error: conditional \"COND_FILTER_SUBBLOCK\" was never defined.
20103Usually this means the macro was only invoked conditionally." >&2;}
20104   { (exit 1); exit 1; }; }
20105fi
20106if test -z "${COND_ENCODER_SUBBLOCK_TRUE}" && test -z "${COND_ENCODER_SUBBLOCK_FALSE}"; then
20107  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_SUBBLOCK\" was never defined.
20108Usually this means the macro was only invoked conditionally." >&5
20109$as_echo "$as_me: error: conditional \"COND_ENCODER_SUBBLOCK\" was never defined.
20110Usually this means the macro was only invoked conditionally." >&2;}
20111   { (exit 1); exit 1; }; }
20112fi
20113if test -z "${COND_DECODER_SUBBLOCK_TRUE}" && test -z "${COND_DECODER_SUBBLOCK_FALSE}"; then
20114  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_SUBBLOCK\" was never defined.
20115Usually this means the macro was only invoked conditionally." >&5
20116$as_echo "$as_me: error: conditional \"COND_DECODER_SUBBLOCK\" was never defined.
20117Usually this means the macro was only invoked conditionally." >&2;}
20118   { (exit 1); exit 1; }; }
20119fi
20120if test -z "${COND_FILTER_DELTA_TRUE}" && test -z "${COND_FILTER_DELTA_FALSE}"; then
20121  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_DELTA\" was never defined.
20122Usually this means the macro was only invoked conditionally." >&5
20123$as_echo "$as_me: error: conditional \"COND_FILTER_DELTA\" was never defined.
20124Usually this means the macro was only invoked conditionally." >&2;}
20125   { (exit 1); exit 1; }; }
20126fi
20127if test -z "${COND_ENCODER_DELTA_TRUE}" && test -z "${COND_ENCODER_DELTA_FALSE}"; then
20128  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_DELTA\" was never defined.
20129Usually this means the macro was only invoked conditionally." >&5
20130$as_echo "$as_me: error: conditional \"COND_ENCODER_DELTA\" was never defined.
20131Usually this means the macro was only invoked conditionally." >&2;}
20132   { (exit 1); exit 1; }; }
20133fi
20134if test -z "${COND_DECODER_DELTA_TRUE}" && test -z "${COND_DECODER_DELTA_FALSE}"; then
20135  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_DELTA\" was never defined.
20136Usually this means the macro was only invoked conditionally." >&5
20137$as_echo "$as_me: error: conditional \"COND_DECODER_DELTA\" was never defined.
20138Usually this means the macro was only invoked conditionally." >&2;}
20139   { (exit 1); exit 1; }; }
20140fi
20141if test -z "${COND_FILTER_X86_TRUE}" && test -z "${COND_FILTER_X86_FALSE}"; then
20142  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_X86\" was never defined.
20143Usually this means the macro was only invoked conditionally." >&5
20144$as_echo "$as_me: error: conditional \"COND_FILTER_X86\" was never defined.
20145Usually this means the macro was only invoked conditionally." >&2;}
20146   { (exit 1); exit 1; }; }
20147fi
20148if test -z "${COND_ENCODER_X86_TRUE}" && test -z "${COND_ENCODER_X86_FALSE}"; then
20149  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_X86\" was never defined.
20150Usually this means the macro was only invoked conditionally." >&5
20151$as_echo "$as_me: error: conditional \"COND_ENCODER_X86\" was never defined.
20152Usually this means the macro was only invoked conditionally." >&2;}
20153   { (exit 1); exit 1; }; }
20154fi
20155if test -z "${COND_DECODER_X86_TRUE}" && test -z "${COND_DECODER_X86_FALSE}"; then
20156  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_X86\" was never defined.
20157Usually this means the macro was only invoked conditionally." >&5
20158$as_echo "$as_me: error: conditional \"COND_DECODER_X86\" was never defined.
20159Usually this means the macro was only invoked conditionally." >&2;}
20160   { (exit 1); exit 1; }; }
20161fi
20162if test -z "${COND_FILTER_POWERPC_TRUE}" && test -z "${COND_FILTER_POWERPC_FALSE}"; then
20163  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_POWERPC\" was never defined.
20164Usually this means the macro was only invoked conditionally." >&5
20165$as_echo "$as_me: error: conditional \"COND_FILTER_POWERPC\" was never defined.
20166Usually this means the macro was only invoked conditionally." >&2;}
20167   { (exit 1); exit 1; }; }
20168fi
20169if test -z "${COND_ENCODER_POWERPC_TRUE}" && test -z "${COND_ENCODER_POWERPC_FALSE}"; then
20170  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_POWERPC\" was never defined.
20171Usually this means the macro was only invoked conditionally." >&5
20172$as_echo "$as_me: error: conditional \"COND_ENCODER_POWERPC\" was never defined.
20173Usually this means the macro was only invoked conditionally." >&2;}
20174   { (exit 1); exit 1; }; }
20175fi
20176if test -z "${COND_DECODER_POWERPC_TRUE}" && test -z "${COND_DECODER_POWERPC_FALSE}"; then
20177  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_POWERPC\" was never defined.
20178Usually this means the macro was only invoked conditionally." >&5
20179$as_echo "$as_me: error: conditional \"COND_DECODER_POWERPC\" was never defined.
20180Usually this means the macro was only invoked conditionally." >&2;}
20181   { (exit 1); exit 1; }; }
20182fi
20183if test -z "${COND_FILTER_IA64_TRUE}" && test -z "${COND_FILTER_IA64_FALSE}"; then
20184  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_IA64\" was never defined.
20185Usually this means the macro was only invoked conditionally." >&5
20186$as_echo "$as_me: error: conditional \"COND_FILTER_IA64\" was never defined.
20187Usually this means the macro was only invoked conditionally." >&2;}
20188   { (exit 1); exit 1; }; }
20189fi
20190if test -z "${COND_ENCODER_IA64_TRUE}" && test -z "${COND_ENCODER_IA64_FALSE}"; then
20191  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_IA64\" was never defined.
20192Usually this means the macro was only invoked conditionally." >&5
20193$as_echo "$as_me: error: conditional \"COND_ENCODER_IA64\" was never defined.
20194Usually this means the macro was only invoked conditionally." >&2;}
20195   { (exit 1); exit 1; }; }
20196fi
20197if test -z "${COND_DECODER_IA64_TRUE}" && test -z "${COND_DECODER_IA64_FALSE}"; then
20198  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_IA64\" was never defined.
20199Usually this means the macro was only invoked conditionally." >&5
20200$as_echo "$as_me: error: conditional \"COND_DECODER_IA64\" was never defined.
20201Usually this means the macro was only invoked conditionally." >&2;}
20202   { (exit 1); exit 1; }; }
20203fi
20204if test -z "${COND_FILTER_ARM_TRUE}" && test -z "${COND_FILTER_ARM_FALSE}"; then
20205  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_ARM\" was never defined.
20206Usually this means the macro was only invoked conditionally." >&5
20207$as_echo "$as_me: error: conditional \"COND_FILTER_ARM\" was never defined.
20208Usually this means the macro was only invoked conditionally." >&2;}
20209   { (exit 1); exit 1; }; }
20210fi
20211if test -z "${COND_ENCODER_ARM_TRUE}" && test -z "${COND_ENCODER_ARM_FALSE}"; then
20212  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_ARM\" was never defined.
20213Usually this means the macro was only invoked conditionally." >&5
20214$as_echo "$as_me: error: conditional \"COND_ENCODER_ARM\" was never defined.
20215Usually this means the macro was only invoked conditionally." >&2;}
20216   { (exit 1); exit 1; }; }
20217fi
20218if test -z "${COND_DECODER_ARM_TRUE}" && test -z "${COND_DECODER_ARM_FALSE}"; then
20219  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_ARM\" was never defined.
20220Usually this means the macro was only invoked conditionally." >&5
20221$as_echo "$as_me: error: conditional \"COND_DECODER_ARM\" was never defined.
20222Usually this means the macro was only invoked conditionally." >&2;}
20223   { (exit 1); exit 1; }; }
20224fi
20225if test -z "${COND_FILTER_ARMTHUMB_TRUE}" && test -z "${COND_FILTER_ARMTHUMB_FALSE}"; then
20226  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_ARMTHUMB\" was never defined.
20227Usually this means the macro was only invoked conditionally." >&5
20228$as_echo "$as_me: error: conditional \"COND_FILTER_ARMTHUMB\" was never defined.
20229Usually this means the macro was only invoked conditionally." >&2;}
20230   { (exit 1); exit 1; }; }
20231fi
20232if test -z "${COND_ENCODER_ARMTHUMB_TRUE}" && test -z "${COND_ENCODER_ARMTHUMB_FALSE}"; then
20233  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_ARMTHUMB\" was never defined.
20234Usually this means the macro was only invoked conditionally." >&5
20235$as_echo "$as_me: error: conditional \"COND_ENCODER_ARMTHUMB\" was never defined.
20236Usually this means the macro was only invoked conditionally." >&2;}
20237   { (exit 1); exit 1; }; }
20238fi
20239if test -z "${COND_DECODER_ARMTHUMB_TRUE}" && test -z "${COND_DECODER_ARMTHUMB_FALSE}"; then
20240  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_ARMTHUMB\" was never defined.
20241Usually this means the macro was only invoked conditionally." >&5
20242$as_echo "$as_me: error: conditional \"COND_DECODER_ARMTHUMB\" was never defined.
20243Usually this means the macro was only invoked conditionally." >&2;}
20244   { (exit 1); exit 1; }; }
20245fi
20246if test -z "${COND_FILTER_SPARC_TRUE}" && test -z "${COND_FILTER_SPARC_FALSE}"; then
20247  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_SPARC\" was never defined.
20248Usually this means the macro was only invoked conditionally." >&5
20249$as_echo "$as_me: error: conditional \"COND_FILTER_SPARC\" was never defined.
20250Usually this means the macro was only invoked conditionally." >&2;}
20251   { (exit 1); exit 1; }; }
20252fi
20253if test -z "${COND_ENCODER_SPARC_TRUE}" && test -z "${COND_ENCODER_SPARC_FALSE}"; then
20254  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_SPARC\" was never defined.
20255Usually this means the macro was only invoked conditionally." >&5
20256$as_echo "$as_me: error: conditional \"COND_ENCODER_SPARC\" was never defined.
20257Usually this means the macro was only invoked conditionally." >&2;}
20258   { (exit 1); exit 1; }; }
20259fi
20260if test -z "${COND_DECODER_SPARC_TRUE}" && test -z "${COND_DECODER_SPARC_FALSE}"; then
20261  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_SPARC\" was never defined.
20262Usually this means the macro was only invoked conditionally." >&5
20263$as_echo "$as_me: error: conditional \"COND_DECODER_SPARC\" was never defined.
20264Usually this means the macro was only invoked conditionally." >&2;}
20265   { (exit 1); exit 1; }; }
20266fi
20267if test -z "${COND_FILTER_SIMPLE_TRUE}" && test -z "${COND_FILTER_SIMPLE_FALSE}"; then
20268  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_SIMPLE\" was never defined.
20269Usually this means the macro was only invoked conditionally." >&5
20270$as_echo "$as_me: error: conditional \"COND_FILTER_SIMPLE\" was never defined.
20271Usually this means the macro was only invoked conditionally." >&2;}
20272   { (exit 1); exit 1; }; }
20273fi
20274if test -z "${COND_ENCODER_SIMPLE_TRUE}" && test -z "${COND_ENCODER_SIMPLE_FALSE}"; then
20275  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_SIMPLE\" was never defined.
20276Usually this means the macro was only invoked conditionally." >&5
20277$as_echo "$as_me: error: conditional \"COND_ENCODER_SIMPLE\" was never defined.
20278Usually this means the macro was only invoked conditionally." >&2;}
20279   { (exit 1); exit 1; }; }
20280fi
20281if test -z "${COND_DECODER_SIMPLE_TRUE}" && test -z "${COND_DECODER_SIMPLE_FALSE}"; then
20282  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_SIMPLE\" was never defined.
20283Usually this means the macro was only invoked conditionally." >&5
20284$as_echo "$as_me: error: conditional \"COND_DECODER_SIMPLE\" was never defined.
20285Usually this means the macro was only invoked conditionally." >&2;}
20286   { (exit 1); exit 1; }; }
20287fi
20288if test -z "${COND_FILTER_LZ_TRUE}" && test -z "${COND_FILTER_LZ_FALSE}"; then
20289  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_FILTER_LZ\" was never defined.
20290Usually this means the macro was only invoked conditionally." >&5
20291$as_echo "$as_me: error: conditional \"COND_FILTER_LZ\" was never defined.
20292Usually this means the macro was only invoked conditionally." >&2;}
20293   { (exit 1); exit 1; }; }
20294fi
20295if test -z "${COND_ENCODER_LZ_TRUE}" && test -z "${COND_ENCODER_LZ_FALSE}"; then
20296  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENCODER_LZ\" was never defined.
20297Usually this means the macro was only invoked conditionally." >&5
20298$as_echo "$as_me: error: conditional \"COND_ENCODER_LZ\" was never defined.
20299Usually this means the macro was only invoked conditionally." >&2;}
20300   { (exit 1); exit 1; }; }
20301fi
20302if test -z "${COND_DECODER_LZ_TRUE}" && test -z "${COND_DECODER_LZ_FALSE}"; then
20303  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_DECODER_LZ\" was never defined.
20304Usually this means the macro was only invoked conditionally." >&5
20305$as_echo "$as_me: error: conditional \"COND_DECODER_LZ\" was never defined.
20306Usually this means the macro was only invoked conditionally." >&2;}
20307   { (exit 1); exit 1; }; }
20308fi
20309if test -z "${COND_CHECK_CRC32_TRUE}" && test -z "${COND_CHECK_CRC32_FALSE}"; then
20310  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_CHECK_CRC32\" was never defined.
20311Usually this means the macro was only invoked conditionally." >&5
20312$as_echo "$as_me: error: conditional \"COND_CHECK_CRC32\" was never defined.
20313Usually this means the macro was only invoked conditionally." >&2;}
20314   { (exit 1); exit 1; }; }
20315fi
20316if test -z "${COND_CHECK_CRC64_TRUE}" && test -z "${COND_CHECK_CRC64_FALSE}"; then
20317  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_CHECK_CRC64\" was never defined.
20318Usually this means the macro was only invoked conditionally." >&5
20319$as_echo "$as_me: error: conditional \"COND_CHECK_CRC64\" was never defined.
20320Usually this means the macro was only invoked conditionally." >&2;}
20321   { (exit 1); exit 1; }; }
20322fi
20323if test -z "${COND_CHECK_SHA256_TRUE}" && test -z "${COND_CHECK_SHA256_FALSE}"; then
20324  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_CHECK_SHA256\" was never defined.
20325Usually this means the macro was only invoked conditionally." >&5
20326$as_echo "$as_me: error: conditional \"COND_CHECK_SHA256\" was never defined.
20327Usually this means the macro was only invoked conditionally." >&2;}
20328   { (exit 1); exit 1; }; }
20329fi
20330if test -z "${COND_ASM_X86_TRUE}" && test -z "${COND_ASM_X86_FALSE}"; then
20331  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ASM_X86\" was never defined.
20332Usually this means the macro was only invoked conditionally." >&5
20333$as_echo "$as_me: error: conditional \"COND_ASM_X86\" was never defined.
20334Usually this means the macro was only invoked conditionally." >&2;}
20335   { (exit 1); exit 1; }; }
20336fi
20337if test -z "${COND_ASM_X86_64_TRUE}" && test -z "${COND_ASM_X86_64_FALSE}"; then
20338  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ASM_X86_64\" was never defined.
20339Usually this means the macro was only invoked conditionally." >&5
20340$as_echo "$as_me: error: conditional \"COND_ASM_X86_64\" was never defined.
20341Usually this means the macro was only invoked conditionally." >&2;}
20342   { (exit 1); exit 1; }; }
20343fi
20344if test -z "${COND_SMALL_TRUE}" && test -z "${COND_SMALL_FALSE}"; then
20345  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_SMALL\" was never defined.
20346Usually this means the macro was only invoked conditionally." >&5
20347$as_echo "$as_me: error: conditional \"COND_SMALL\" was never defined.
20348Usually this means the macro was only invoked conditionally." >&2;}
20349   { (exit 1); exit 1; }; }
20350fi
20351 if test -n "$EXEEXT"; then
20352  am__EXEEXT_TRUE=
20353  am__EXEEXT_FALSE='#'
20354else
20355  am__EXEEXT_TRUE='#'
20356  am__EXEEXT_FALSE=
20357fi
20358
20359if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20360  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20361Usually this means the macro was only invoked conditionally." >&5
20362$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20363Usually this means the macro was only invoked conditionally." >&2;}
20364   { (exit 1); exit 1; }; }
20365fi
20366if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20367  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20368Usually this means the macro was only invoked conditionally." >&5
20369$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20370Usually this means the macro was only invoked conditionally." >&2;}
20371   { (exit 1); exit 1; }; }
20372fi
20373if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20374  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20375Usually this means the macro was only invoked conditionally." >&5
20376$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20377Usually this means the macro was only invoked conditionally." >&2;}
20378   { (exit 1); exit 1; }; }
20379fi
20380if test -z "${COND_SHARED_TRUE}" && test -z "${COND_SHARED_FALSE}"; then
20381  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_SHARED\" was never defined.
20382Usually this means the macro was only invoked conditionally." >&5
20383$as_echo "$as_me: error: conditional \"COND_SHARED\" was never defined.
20384Usually this means the macro was only invoked conditionally." >&2;}
20385   { (exit 1); exit 1; }; }
20386fi
20387
20388if test -z "${COND_GNULIB_TRUE}" && test -z "${COND_GNULIB_FALSE}"; then
20389  { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GNULIB\" was never defined.
20390Usually this means the macro was only invoked conditionally." >&5
20391$as_echo "$as_me: error: conditional \"COND_GNULIB\" was never defined.
20392Usually this means the macro was only invoked conditionally." >&2;}
20393   { (exit 1); exit 1; }; }
20394fi
20395
20396: ${CONFIG_STATUS=./config.status}
20397ac_write_fail=0
20398ac_clean_files_save=$ac_clean_files
20399ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20400{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20401$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20402cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20403#! $SHELL
20404# Generated by $as_me.
20405# Run this file to recreate the current configuration.
20406# Compiler output produced by configure, useful for debugging
20407# configure, is in config.log if it exists.
20408
20409debug=false
20410ac_cs_recheck=false
20411ac_cs_silent=false
20412SHELL=\${CONFIG_SHELL-$SHELL}
20413_ACEOF
20414
20415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20416## --------------------- ##
20417## M4sh Initialization.  ##
20418## --------------------- ##
20419
20420# Be more Bourne compatible
20421DUALCASE=1; export DUALCASE # for MKS sh
20422if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20423  emulate sh
20424  NULLCMD=:
20425  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20426  # is contrary to our usage.  Disable this feature.
20427  alias -g '${1+"$@"}'='"$@"'
20428  setopt NO_GLOB_SUBST
20429else
20430  case `(set -o) 2>/dev/null` in
20431  *posix*) set -o posix ;;
20432esac
20433
20434fi
20435
20436
20437
20438
20439# PATH needs CR
20440# Avoid depending upon Character Ranges.
20441as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20442as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20443as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20444as_cr_digits='0123456789'
20445as_cr_alnum=$as_cr_Letters$as_cr_digits
20446
20447as_nl='
20448'
20449export as_nl
20450# Printing a long string crashes Solaris 7 /usr/bin/printf.
20451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20454if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20455  as_echo='printf %s\n'
20456  as_echo_n='printf %s'
20457else
20458  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20459    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20460    as_echo_n='/usr/ucb/echo -n'
20461  else
20462    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20463    as_echo_n_body='eval
20464      arg=$1;
20465      case $arg in
20466      *"$as_nl"*)
20467	expr "X$arg" : "X\\(.*\\)$as_nl";
20468	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20469      esac;
20470      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20471    '
20472    export as_echo_n_body
20473    as_echo_n='sh -c $as_echo_n_body as_echo'
20474  fi
20475  export as_echo_body
20476  as_echo='sh -c $as_echo_body as_echo'
20477fi
20478
20479# The user is always right.
20480if test "${PATH_SEPARATOR+set}" != set; then
20481  PATH_SEPARATOR=:
20482  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20483    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20484      PATH_SEPARATOR=';'
20485  }
20486fi
20487
20488# Support unset when possible.
20489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20490  as_unset=unset
20491else
20492  as_unset=false
20493fi
20494
20495
20496# IFS
20497# We need space, tab and new line, in precisely that order.  Quoting is
20498# there to prevent editors from complaining about space-tab.
20499# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20500# splitting by setting IFS to empty value.)
20501IFS=" ""	$as_nl"
20502
20503# Find who we are.  Look in the path if we contain no directory separator.
20504case $0 in
20505  *[\\/]* ) as_myself=$0 ;;
20506  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20507for as_dir in $PATH
20508do
20509  IFS=$as_save_IFS
20510  test -z "$as_dir" && as_dir=.
20511  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20512done
20513IFS=$as_save_IFS
20514
20515     ;;
20516esac
20517# We did not find ourselves, most probably we were run as `sh COMMAND'
20518# in which case we are not to be found in the path.
20519if test "x$as_myself" = x; then
20520  as_myself=$0
20521fi
20522if test ! -f "$as_myself"; then
20523  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20524  { (exit 1); exit 1; }
20525fi
20526
20527# Work around bugs in pre-3.0 UWIN ksh.
20528for as_var in ENV MAIL MAILPATH
20529do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20530done
20531PS1='$ '
20532PS2='> '
20533PS4='+ '
20534
20535# NLS nuisances.
20536LC_ALL=C
20537export LC_ALL
20538LANGUAGE=C
20539export LANGUAGE
20540
20541# Required to use basename.
20542if expr a : '\(a\)' >/dev/null 2>&1 &&
20543   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20544  as_expr=expr
20545else
20546  as_expr=false
20547fi
20548
20549if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20550  as_basename=basename
20551else
20552  as_basename=false
20553fi
20554
20555
20556# Name of the executable.
20557as_me=`$as_basename -- "$0" ||
20558$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20559	 X"$0" : 'X\(//\)$' \| \
20560	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20561$as_echo X/"$0" |
20562    sed '/^.*\/\([^/][^/]*\)\/*$/{
20563	    s//\1/
20564	    q
20565	  }
20566	  /^X\/\(\/\/\)$/{
20567	    s//\1/
20568	    q
20569	  }
20570	  /^X\/\(\/\).*/{
20571	    s//\1/
20572	    q
20573	  }
20574	  s/.*/./; q'`
20575
20576# CDPATH.
20577$as_unset CDPATH
20578
20579
20580
20581  as_lineno_1=$LINENO
20582  as_lineno_2=$LINENO
20583  test "x$as_lineno_1" != "x$as_lineno_2" &&
20584  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20585
20586  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20587  # uniformly replaced by the line number.  The first 'sed' inserts a
20588  # line-number line after each line using $LINENO; the second 'sed'
20589  # does the real work.  The second script uses 'N' to pair each
20590  # line-number line with the line containing $LINENO, and appends
20591  # trailing '-' during substitution so that $LINENO is not a special
20592  # case at line end.
20593  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20594  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20595  # E. McMahon (1931-1989) for sed's syntax.  :-)
20596  sed -n '
20597    p
20598    /[$]LINENO/=
20599  ' <$as_myself |
20600    sed '
20601      s/[$]LINENO.*/&-/
20602      t lineno
20603      b
20604      :lineno
20605      N
20606      :loop
20607      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20608      t loop
20609      s/-\n.*//
20610    ' >$as_me.lineno &&
20611  chmod +x "$as_me.lineno" ||
20612    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20613   { (exit 1); exit 1; }; }
20614
20615  # Don't try to exec as it changes $[0], causing all sort of problems
20616  # (the dirname of $[0] is not the place where we might find the
20617  # original and so on.  Autoconf is especially sensitive to this).
20618  . "./$as_me.lineno"
20619  # Exit status is that of the last command.
20620  exit
20621}
20622
20623
20624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20625  as_dirname=dirname
20626else
20627  as_dirname=false
20628fi
20629
20630ECHO_C= ECHO_N= ECHO_T=
20631case `echo -n x` in
20632-n*)
20633  case `echo 'x\c'` in
20634  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20635  *)   ECHO_C='\c';;
20636  esac;;
20637*)
20638  ECHO_N='-n';;
20639esac
20640if expr a : '\(a\)' >/dev/null 2>&1 &&
20641   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20642  as_expr=expr
20643else
20644  as_expr=false
20645fi
20646
20647rm -f conf$$ conf$$.exe conf$$.file
20648if test -d conf$$.dir; then
20649  rm -f conf$$.dir/conf$$.file
20650else
20651  rm -f conf$$.dir
20652  mkdir conf$$.dir 2>/dev/null
20653fi
20654if (echo >conf$$.file) 2>/dev/null; then
20655  if ln -s conf$$.file conf$$ 2>/dev/null; then
20656    as_ln_s='ln -s'
20657    # ... but there are two gotchas:
20658    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20659    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20660    # In both cases, we have to default to `cp -p'.
20661    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20662      as_ln_s='cp -p'
20663  elif ln conf$$.file conf$$ 2>/dev/null; then
20664    as_ln_s=ln
20665  else
20666    as_ln_s='cp -p'
20667  fi
20668else
20669  as_ln_s='cp -p'
20670fi
20671rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20672rmdir conf$$.dir 2>/dev/null
20673
20674if mkdir -p . 2>/dev/null; then
20675  as_mkdir_p=:
20676else
20677  test -d ./-p && rmdir ./-p
20678  as_mkdir_p=false
20679fi
20680
20681if test -x / >/dev/null 2>&1; then
20682  as_test_x='test -x'
20683else
20684  if ls -dL / >/dev/null 2>&1; then
20685    as_ls_L_option=L
20686  else
20687    as_ls_L_option=
20688  fi
20689  as_test_x='
20690    eval sh -c '\''
20691      if test -d "$1"; then
20692	test -d "$1/.";
20693      else
20694	case $1 in
20695	-*)set "./$1";;
20696	esac;
20697	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20698	???[sx]*):;;*)false;;esac;fi
20699    '\'' sh
20700  '
20701fi
20702as_executable_p=$as_test_x
20703
20704# Sed expression to map a string onto a valid CPP name.
20705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20706
20707# Sed expression to map a string onto a valid variable name.
20708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20709
20710
20711exec 6>&1
20712
20713# Save the log message, to keep $[0] and so on meaningful, and to
20714# report actual input values of CONFIG_FILES etc. instead of their
20715# values after options handling.
20716ac_log="
20717This file was extended by XZ Utils $as_me 4.999.9beta, which was
20718generated by GNU Autoconf 2.63.  Invocation command line was
20719
20720  CONFIG_FILES    = $CONFIG_FILES
20721  CONFIG_HEADERS  = $CONFIG_HEADERS
20722  CONFIG_LINKS    = $CONFIG_LINKS
20723  CONFIG_COMMANDS = $CONFIG_COMMANDS
20724  $ $0 $@
20725
20726on `(hostname || uname -n) 2>/dev/null | sed 1q`
20727"
20728
20729_ACEOF
20730
20731case $ac_config_files in *"
20732"*) set x $ac_config_files; shift; ac_config_files=$*;;
20733esac
20734
20735case $ac_config_headers in *"
20736"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20737esac
20738
20739
20740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20741# Files that config.status was made for.
20742config_files="$ac_config_files"
20743config_headers="$ac_config_headers"
20744config_commands="$ac_config_commands"
20745
20746_ACEOF
20747
20748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20749ac_cs_usage="\
20750\`$as_me' instantiates files from templates according to the
20751current configuration.
20752
20753Usage: $0 [OPTION]... [FILE]...
20754
20755  -h, --help       print this help, then exit
20756  -V, --version    print version number and configuration settings, then exit
20757  -q, --quiet, --silent
20758                   do not print progress messages
20759  -d, --debug      don't remove temporary files
20760      --recheck    update $as_me by reconfiguring in the same conditions
20761      --file=FILE[:TEMPLATE]
20762                   instantiate the configuration file FILE
20763      --header=FILE[:TEMPLATE]
20764                   instantiate the configuration header FILE
20765
20766Configuration files:
20767$config_files
20768
20769Configuration headers:
20770$config_headers
20771
20772Configuration commands:
20773$config_commands
20774
20775Report bugs to <bug-autoconf@gnu.org>."
20776
20777_ACEOF
20778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20779ac_cs_version="\\
20780XZ Utils config.status 4.999.9beta
20781configured by $0, generated by GNU Autoconf 2.63,
20782  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20783
20784Copyright (C) 2008 Free Software Foundation, Inc.
20785This config.status script is free software; the Free Software Foundation
20786gives unlimited permission to copy, distribute and modify it."
20787
20788ac_pwd='$ac_pwd'
20789srcdir='$srcdir'
20790INSTALL='$INSTALL'
20791MKDIR_P='$MKDIR_P'
20792AWK='$AWK'
20793test -n "\$AWK" || AWK=awk
20794_ACEOF
20795
20796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797# The default lists apply if the user does not specify any file.
20798ac_need_defaults=:
20799while test $# != 0
20800do
20801  case $1 in
20802  --*=*)
20803    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20804    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20805    ac_shift=:
20806    ;;
20807  *)
20808    ac_option=$1
20809    ac_optarg=$2
20810    ac_shift=shift
20811    ;;
20812  esac
20813
20814  case $ac_option in
20815  # Handling of the options.
20816  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20817    ac_cs_recheck=: ;;
20818  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20819    $as_echo "$ac_cs_version"; exit ;;
20820  --debug | --debu | --deb | --de | --d | -d )
20821    debug=: ;;
20822  --file | --fil | --fi | --f )
20823    $ac_shift
20824    case $ac_optarg in
20825    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20826    esac
20827    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20828    ac_need_defaults=false;;
20829  --header | --heade | --head | --hea )
20830    $ac_shift
20831    case $ac_optarg in
20832    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20833    esac
20834    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20835    ac_need_defaults=false;;
20836  --he | --h)
20837    # Conflict between --help and --header
20838    { $as_echo "$as_me: error: ambiguous option: $1
20839Try \`$0 --help' for more information." >&2
20840   { (exit 1); exit 1; }; };;
20841  --help | --hel | -h )
20842    $as_echo "$ac_cs_usage"; exit ;;
20843  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20844  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20845    ac_cs_silent=: ;;
20846
20847  # This is an error.
20848  -*) { $as_echo "$as_me: error: unrecognized option: $1
20849Try \`$0 --help' for more information." >&2
20850   { (exit 1); exit 1; }; } ;;
20851
20852  *) ac_config_targets="$ac_config_targets $1"
20853     ac_need_defaults=false ;;
20854
20855  esac
20856  shift
20857done
20858
20859ac_configure_extra_args=
20860
20861if $ac_cs_silent; then
20862  exec 6>/dev/null
20863  ac_configure_extra_args="$ac_configure_extra_args --silent"
20864fi
20865
20866_ACEOF
20867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20868if \$ac_cs_recheck; then
20869  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20870  shift
20871  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20872  CONFIG_SHELL='$SHELL'
20873  export CONFIG_SHELL
20874  exec "\$@"
20875fi
20876
20877_ACEOF
20878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20879exec 5>>config.log
20880{
20881  echo
20882  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20883## Running $as_me. ##
20884_ASBOX
20885  $as_echo "$ac_log"
20886} >&5
20887
20888_ACEOF
20889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890#
20891# INIT-COMMANDS
20892#
20893AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20894
20895
20896# The HP-UX ksh and POSIX shell print the target directory to stdout
20897# if CDPATH is set.
20898(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20899
20900sed_quote_subst='$sed_quote_subst'
20901double_quote_subst='$double_quote_subst'
20902delay_variable_subst='$delay_variable_subst'
20903macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20904macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20905AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
20906DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20907OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20908enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20909enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20910pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20911enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20912host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20913host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20914host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20915build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20916build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20917build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20918SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20919Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20920GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20921EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20922FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20923LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20924NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20925LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20926max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20927ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20928exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20929lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20930lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20931lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20932reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20933reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20934deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20935file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20936AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20937AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20938STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20939RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20940old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20941old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20942old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20943CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20944CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20945compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20946GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20947lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20948lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20949lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20950lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20951objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20952SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20953ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20954MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20955lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20956lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20957lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20958lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20959lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20960need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20961DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20962NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20963LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20964OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20965OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20966libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20967shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20968extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20969archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20970enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20971export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20972whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20973compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20974old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20975old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20976archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20977archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20978module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20979module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20980with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20981allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20982no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20983hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20984hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20985hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20986hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20987hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20988hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20989hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20990hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20991inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20992link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20993fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20994always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20995export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20996exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20997include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20998prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20999file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21000variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21001need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21002need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21003version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21004runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21005shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21006shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21007libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21008library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21009soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21010postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21011postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21012finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21013finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21014hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21015sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21016sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21017hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21018enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21019enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21020enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21021old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21022striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21023LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
21024old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21025compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
21026GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
21027lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
21028lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
21029lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
21030lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
21031lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
21032archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
21033enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
21034export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
21035whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
21036compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
21037old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21038old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21039archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21040archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21041module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21042module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21043with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
21044allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
21045no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
21046hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
21047hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
21048hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
21049hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
21050hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
21051hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
21052hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
21053hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
21054inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
21055link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
21056fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
21057always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
21058export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21059exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
21060include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
21061prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
21062file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
21063hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
21064
21065LTCC='$LTCC'
21066LTCFLAGS='$LTCFLAGS'
21067compiler='$compiler_DEFAULT'
21068
21069# Quote evaled strings.
21070for var in SED \
21071GREP \
21072EGREP \
21073FGREP \
21074LD \
21075NM \
21076LN_S \
21077lt_SP2NL \
21078lt_NL2SP \
21079reload_flag \
21080deplibs_check_method \
21081file_magic_cmd \
21082AR \
21083AR_FLAGS \
21084STRIP \
21085RANLIB \
21086CC \
21087CFLAGS \
21088compiler \
21089lt_cv_sys_global_symbol_pipe \
21090lt_cv_sys_global_symbol_to_cdecl \
21091lt_cv_sys_global_symbol_to_c_name_address \
21092lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21093SHELL \
21094ECHO \
21095lt_prog_compiler_no_builtin_flag \
21096lt_prog_compiler_wl \
21097lt_prog_compiler_pic \
21098lt_prog_compiler_static \
21099lt_cv_prog_compiler_c_o \
21100need_locks \
21101DSYMUTIL \
21102NMEDIT \
21103LIPO \
21104OTOOL \
21105OTOOL64 \
21106shrext_cmds \
21107export_dynamic_flag_spec \
21108whole_archive_flag_spec \
21109compiler_needs_object \
21110with_gnu_ld \
21111allow_undefined_flag \
21112no_undefined_flag \
21113hardcode_libdir_flag_spec \
21114hardcode_libdir_flag_spec_ld \
21115hardcode_libdir_separator \
21116fix_srcfile_path \
21117exclude_expsyms \
21118include_expsyms \
21119file_list_spec \
21120variables_saved_for_relink \
21121libname_spec \
21122library_names_spec \
21123soname_spec \
21124finish_eval \
21125old_striplib \
21126striplib \
21127LD_RC \
21128compiler_RC \
21129lt_prog_compiler_no_builtin_flag_RC \
21130lt_prog_compiler_wl_RC \
21131lt_prog_compiler_pic_RC \
21132lt_prog_compiler_static_RC \
21133lt_cv_prog_compiler_c_o_RC \
21134export_dynamic_flag_spec_RC \
21135whole_archive_flag_spec_RC \
21136compiler_needs_object_RC \
21137with_gnu_ld_RC \
21138allow_undefined_flag_RC \
21139no_undefined_flag_RC \
21140hardcode_libdir_flag_spec_RC \
21141hardcode_libdir_flag_spec_ld_RC \
21142hardcode_libdir_separator_RC \
21143fix_srcfile_path_RC \
21144exclude_expsyms_RC \
21145include_expsyms_RC \
21146file_list_spec_RC; do
21147    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21148    *[\\\\\\\`\\"\\\$]*)
21149      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21150      ;;
21151    *)
21152      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21153      ;;
21154    esac
21155done
21156
21157# Double-quote double-evaled strings.
21158for var in reload_cmds \
21159old_postinstall_cmds \
21160old_postuninstall_cmds \
21161old_archive_cmds \
21162extract_expsyms_cmds \
21163old_archive_from_new_cmds \
21164old_archive_from_expsyms_cmds \
21165archive_cmds \
21166archive_expsym_cmds \
21167module_cmds \
21168module_expsym_cmds \
21169export_symbols_cmds \
21170prelink_cmds \
21171postinstall_cmds \
21172postuninstall_cmds \
21173finish_cmds \
21174sys_lib_search_path_spec \
21175sys_lib_dlsearch_path_spec \
21176old_archive_cmds_RC \
21177old_archive_from_new_cmds_RC \
21178old_archive_from_expsyms_cmds_RC \
21179archive_cmds_RC \
21180archive_expsym_cmds_RC \
21181module_cmds_RC \
21182module_expsym_cmds_RC \
21183export_symbols_cmds_RC \
21184prelink_cmds_RC; do
21185    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21186    *[\\\\\\\`\\"\\\$]*)
21187      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21188      ;;
21189    *)
21190      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21191      ;;
21192    esac
21193done
21194
21195# Fix-up fallback echo if it was mangled by the above quoting rules.
21196case \$lt_ECHO in
21197*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21198  ;;
21199esac
21200
21201ac_aux_dir='$ac_aux_dir'
21202xsi_shell='$xsi_shell'
21203lt_shell_append='$lt_shell_append'
21204
21205# See if we are running on zsh, and set the options which allow our
21206# commands through without removal of \ escapes INIT.
21207if test -n "\${ZSH_VERSION+set}" ; then
21208   setopt NO_GLOB_SUBST
21209fi
21210
21211
21212    PACKAGE='$PACKAGE'
21213    VERSION='$VERSION'
21214    TIMESTAMP='$TIMESTAMP'
21215    RM='$RM'
21216    ofile='$ofile'
21217
21218
21219
21220
21221
21222# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21223    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21224    # from automake < 1.5.
21225    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21226    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21227    LINGUAS="${LINGUAS-%UNSET%}"
21228
21229
21230_ACEOF
21231
21232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21233
21234# Handling of arguments.
21235for ac_config_target in $ac_config_targets
21236do
21237  case $ac_config_target in
21238    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21239    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21240    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21241    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21242    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
21243    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21244    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21245    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21246    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21247    "src/liblzma/liblzma.pc") CONFIG_FILES="$CONFIG_FILES src/liblzma/liblzma.pc" ;;
21248    "src/liblzma/Makefile") CONFIG_FILES="$CONFIG_FILES src/liblzma/Makefile" ;;
21249    "src/liblzma/api/Makefile") CONFIG_FILES="$CONFIG_FILES src/liblzma/api/Makefile" ;;
21250    "src/xz/Makefile") CONFIG_FILES="$CONFIG_FILES src/xz/Makefile" ;;
21251    "src/xzdec/Makefile") CONFIG_FILES="$CONFIG_FILES src/xzdec/Makefile" ;;
21252    "src/lzmainfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/lzmainfo/Makefile" ;;
21253    "src/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
21254    "src/scripts/xzdiff") CONFIG_FILES="$CONFIG_FILES src/scripts/xzdiff" ;;
21255    "src/scripts/xzgrep") CONFIG_FILES="$CONFIG_FILES src/scripts/xzgrep" ;;
21256    "src/scripts/xzmore") CONFIG_FILES="$CONFIG_FILES src/scripts/xzmore" ;;
21257    "src/scripts/xzless") CONFIG_FILES="$CONFIG_FILES src/scripts/xzless" ;;
21258    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21259    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
21260
21261  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21262$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21263   { (exit 1); exit 1; }; };;
21264  esac
21265done
21266
21267
21268# If the user did not use the arguments to specify the items to instantiate,
21269# then the envvar interface is used.  Set only those that are not.
21270# We use the long form for the default assignment because of an extremely
21271# bizarre bug on SunOS 4.1.3.
21272if $ac_need_defaults; then
21273  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21274  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21275  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21276fi
21277
21278# Have a temporary directory for convenience.  Make it in the build tree
21279# simply because there is no reason against having it here, and in addition,
21280# creating and moving files from /tmp can sometimes cause problems.
21281# Hook for its removal unless debugging.
21282# Note that there is a small window in which the directory will not be cleaned:
21283# after its creation but before its name has been assigned to `$tmp'.
21284$debug ||
21285{
21286  tmp=
21287  trap 'exit_status=$?
21288  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21289' 0
21290  trap '{ (exit 1); exit 1; }' 1 2 13 15
21291}
21292# Create a (secure) tmp directory for tmp files.
21293
21294{
21295  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21296  test -n "$tmp" && test -d "$tmp"
21297}  ||
21298{
21299  tmp=./conf$$-$RANDOM
21300  (umask 077 && mkdir "$tmp")
21301} ||
21302{
21303   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21304   { (exit 1); exit 1; }
21305}
21306
21307# Set up the scripts for CONFIG_FILES section.
21308# No need to generate them if there are no CONFIG_FILES.
21309# This happens for instance with `./config.status config.h'.
21310if test -n "$CONFIG_FILES"; then
21311
21312
21313ac_cr='
21314'
21315ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21316if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21317  ac_cs_awk_cr='\\r'
21318else
21319  ac_cs_awk_cr=$ac_cr
21320fi
21321
21322echo 'BEGIN {' >"$tmp/subs1.awk" &&
21323_ACEOF
21324
21325
21326{
21327  echo "cat >conf$$subs.awk <<_ACEOF" &&
21328  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21329  echo "_ACEOF"
21330} >conf$$subs.sh ||
21331  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21332$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21333   { (exit 1); exit 1; }; }
21334ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21335ac_delim='%!_!# '
21336for ac_last_try in false false false false false :; do
21337  . ./conf$$subs.sh ||
21338    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21339$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21340   { (exit 1); exit 1; }; }
21341
21342  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21343  if test $ac_delim_n = $ac_delim_num; then
21344    break
21345  elif $ac_last_try; then
21346    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21347$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21348   { (exit 1); exit 1; }; }
21349  else
21350    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21351  fi
21352done
21353rm -f conf$$subs.sh
21354
21355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21356cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21357_ACEOF
21358sed -n '
21359h
21360s/^/S["/; s/!.*/"]=/
21361p
21362g
21363s/^[^!]*!//
21364:repl
21365t repl
21366s/'"$ac_delim"'$//
21367t delim
21368:nl
21369h
21370s/\(.\{148\}\).*/\1/
21371t more1
21372s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21373p
21374n
21375b repl
21376:more1
21377s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21378p
21379g
21380s/.\{148\}//
21381t nl
21382:delim
21383h
21384s/\(.\{148\}\).*/\1/
21385t more2
21386s/["\\]/\\&/g; s/^/"/; s/$/"/
21387p
21388b
21389:more2
21390s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21391p
21392g
21393s/.\{148\}//
21394t delim
21395' <conf$$subs.awk | sed '
21396/^[^""]/{
21397  N
21398  s/\n//
21399}
21400' >>$CONFIG_STATUS || ac_write_fail=1
21401rm -f conf$$subs.awk
21402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21403_ACAWK
21404cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21405  for (key in S) S_is_set[key] = 1
21406  FS = ""
21407
21408}
21409{
21410  line = $ 0
21411  nfields = split(line, field, "@")
21412  substed = 0
21413  len = length(field[1])
21414  for (i = 2; i < nfields; i++) {
21415    key = field[i]
21416    keylen = length(key)
21417    if (S_is_set[key]) {
21418      value = S[key]
21419      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21420      len += length(value) + length(field[++i])
21421      substed = 1
21422    } else
21423      len += 1 + keylen
21424  }
21425
21426  print line
21427}
21428
21429_ACAWK
21430_ACEOF
21431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21432if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21433  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21434else
21435  cat
21436fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21437  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21438$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21439   { (exit 1); exit 1; }; }
21440_ACEOF
21441
21442# VPATH may cause trouble with some makes, so we remove $(srcdir),
21443# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21444# trailing colons and then remove the whole line if VPATH becomes empty
21445# (actually we leave an empty line to preserve line numbers).
21446if test "x$srcdir" = x.; then
21447  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21448s/:*\$(srcdir):*/:/
21449s/:*\${srcdir}:*/:/
21450s/:*@srcdir@:*/:/
21451s/^\([^=]*=[	 ]*\):*/\1/
21452s/:*$//
21453s/^[^=]*=[	 ]*$//
21454}'
21455fi
21456
21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458fi # test -n "$CONFIG_FILES"
21459
21460# Set up the scripts for CONFIG_HEADERS section.
21461# No need to generate them if there are no CONFIG_HEADERS.
21462# This happens for instance with `./config.status Makefile'.
21463if test -n "$CONFIG_HEADERS"; then
21464cat >"$tmp/defines.awk" <<\_ACAWK ||
21465BEGIN {
21466_ACEOF
21467
21468# Transform confdefs.h into an awk script `defines.awk', embedded as
21469# here-document in config.status, that substitutes the proper values into
21470# config.h.in to produce config.h.
21471
21472# Create a delimiter string that does not exist in confdefs.h, to ease
21473# handling of long lines.
21474ac_delim='%!_!# '
21475for ac_last_try in false false :; do
21476  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21477  if test -z "$ac_t"; then
21478    break
21479  elif $ac_last_try; then
21480    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21481$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21482   { (exit 1); exit 1; }; }
21483  else
21484    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485  fi
21486done
21487
21488# For the awk script, D is an array of macro values keyed by name,
21489# likewise P contains macro parameters if any.  Preserve backslash
21490# newline sequences.
21491
21492ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21493sed -n '
21494s/.\{148\}/&'"$ac_delim"'/g
21495t rset
21496:rset
21497s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21498t def
21499d
21500:def
21501s/\\$//
21502t bsnl
21503s/["\\]/\\&/g
21504s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21505D["\1"]=" \3"/p
21506s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21507d
21508:bsnl
21509s/["\\]/\\&/g
21510s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21511D["\1"]=" \3\\\\\\n"\\/p
21512t cont
21513s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21514t cont
21515d
21516:cont
21517n
21518s/.\{148\}/&'"$ac_delim"'/g
21519t clear
21520:clear
21521s/\\$//
21522t bsnlc
21523s/["\\]/\\&/g; s/^/"/; s/$/"/p
21524d
21525:bsnlc
21526s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21527b cont
21528' <confdefs.h | sed '
21529s/'"$ac_delim"'/"\\\
21530"/g' >>$CONFIG_STATUS || ac_write_fail=1
21531
21532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21533  for (key in D) D_is_set[key] = 1
21534  FS = ""
21535}
21536/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21537  line = \$ 0
21538  split(line, arg, " ")
21539  if (arg[1] == "#") {
21540    defundef = arg[2]
21541    mac1 = arg[3]
21542  } else {
21543    defundef = substr(arg[1], 2)
21544    mac1 = arg[2]
21545  }
21546  split(mac1, mac2, "(") #)
21547  macro = mac2[1]
21548  prefix = substr(line, 1, index(line, defundef) - 1)
21549  if (D_is_set[macro]) {
21550    # Preserve the white space surrounding the "#".
21551    print prefix "define", macro P[macro] D[macro]
21552    next
21553  } else {
21554    # Replace #undef with comments.  This is necessary, for example,
21555    # in the case of _POSIX_SOURCE, which is predefined and required
21556    # on some systems where configure will not decide to define it.
21557    if (defundef == "undef") {
21558      print "/*", prefix defundef, macro, "*/"
21559      next
21560    }
21561  }
21562}
21563{ print }
21564_ACAWK
21565_ACEOF
21566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21567  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21568$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21569   { (exit 1); exit 1; }; }
21570fi # test -n "$CONFIG_HEADERS"
21571
21572
21573eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21574shift
21575for ac_tag
21576do
21577  case $ac_tag in
21578  :[FHLC]) ac_mode=$ac_tag; continue;;
21579  esac
21580  case $ac_mode$ac_tag in
21581  :[FHL]*:*);;
21582  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21583$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21584   { (exit 1); exit 1; }; };;
21585  :[FH]-) ac_tag=-:-;;
21586  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21587  esac
21588  ac_save_IFS=$IFS
21589  IFS=:
21590  set x $ac_tag
21591  IFS=$ac_save_IFS
21592  shift
21593  ac_file=$1
21594  shift
21595
21596  case $ac_mode in
21597  :L) ac_source=$1;;
21598  :[FH])
21599    ac_file_inputs=
21600    for ac_f
21601    do
21602      case $ac_f in
21603      -) ac_f="$tmp/stdin";;
21604      *) # Look for the file first in the build tree, then in the source tree
21605	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21606	 # because $ac_f cannot contain `:'.
21607	 test -f "$ac_f" ||
21608	   case $ac_f in
21609	   [\\/$]*) false;;
21610	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21611	   esac ||
21612	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21613$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21614   { (exit 1); exit 1; }; };;
21615      esac
21616      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21617      ac_file_inputs="$ac_file_inputs '$ac_f'"
21618    done
21619
21620    # Let's still pretend it is `configure' which instantiates (i.e., don't
21621    # use $as_me), people would be surprised to read:
21622    #    /* config.h.  Generated by config.status.  */
21623    configure_input='Generated from '`
21624	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21625	`' by configure.'
21626    if test x"$ac_file" != x-; then
21627      configure_input="$ac_file.  $configure_input"
21628      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21629$as_echo "$as_me: creating $ac_file" >&6;}
21630    fi
21631    # Neutralize special characters interpreted by sed in replacement strings.
21632    case $configure_input in #(
21633    *\&* | *\|* | *\\* )
21634       ac_sed_conf_input=`$as_echo "$configure_input" |
21635       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21636    *) ac_sed_conf_input=$configure_input;;
21637    esac
21638
21639    case $ac_tag in
21640    *:-:* | *:-) cat >"$tmp/stdin" \
21641      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21642$as_echo "$as_me: error: could not create $ac_file" >&2;}
21643   { (exit 1); exit 1; }; } ;;
21644    esac
21645    ;;
21646  esac
21647
21648  ac_dir=`$as_dirname -- "$ac_file" ||
21649$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650	 X"$ac_file" : 'X\(//\)[^/]' \| \
21651	 X"$ac_file" : 'X\(//\)$' \| \
21652	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21653$as_echo X"$ac_file" |
21654    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655	    s//\1/
21656	    q
21657	  }
21658	  /^X\(\/\/\)[^/].*/{
21659	    s//\1/
21660	    q
21661	  }
21662	  /^X\(\/\/\)$/{
21663	    s//\1/
21664	    q
21665	  }
21666	  /^X\(\/\).*/{
21667	    s//\1/
21668	    q
21669	  }
21670	  s/.*/./; q'`
21671  { as_dir="$ac_dir"
21672  case $as_dir in #(
21673  -*) as_dir=./$as_dir;;
21674  esac
21675  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21676    as_dirs=
21677    while :; do
21678      case $as_dir in #(
21679      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21680      *) as_qdir=$as_dir;;
21681      esac
21682      as_dirs="'$as_qdir' $as_dirs"
21683      as_dir=`$as_dirname -- "$as_dir" ||
21684$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21685	 X"$as_dir" : 'X\(//\)[^/]' \| \
21686	 X"$as_dir" : 'X\(//\)$' \| \
21687	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21688$as_echo X"$as_dir" |
21689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21690	    s//\1/
21691	    q
21692	  }
21693	  /^X\(\/\/\)[^/].*/{
21694	    s//\1/
21695	    q
21696	  }
21697	  /^X\(\/\/\)$/{
21698	    s//\1/
21699	    q
21700	  }
21701	  /^X\(\/\).*/{
21702	    s//\1/
21703	    q
21704	  }
21705	  s/.*/./; q'`
21706      test -d "$as_dir" && break
21707    done
21708    test -z "$as_dirs" || eval "mkdir $as_dirs"
21709  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21710$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21711   { (exit 1); exit 1; }; }; }
21712  ac_builddir=.
21713
21714case "$ac_dir" in
21715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21716*)
21717  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21718  # A ".." for each directory in $ac_dir_suffix.
21719  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21720  case $ac_top_builddir_sub in
21721  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21722  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21723  esac ;;
21724esac
21725ac_abs_top_builddir=$ac_pwd
21726ac_abs_builddir=$ac_pwd$ac_dir_suffix
21727# for backward compatibility:
21728ac_top_builddir=$ac_top_build_prefix
21729
21730case $srcdir in
21731  .)  # We are building in place.
21732    ac_srcdir=.
21733    ac_top_srcdir=$ac_top_builddir_sub
21734    ac_abs_top_srcdir=$ac_pwd ;;
21735  [\\/]* | ?:[\\/]* )  # Absolute name.
21736    ac_srcdir=$srcdir$ac_dir_suffix;
21737    ac_top_srcdir=$srcdir
21738    ac_abs_top_srcdir=$srcdir ;;
21739  *) # Relative name.
21740    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21741    ac_top_srcdir=$ac_top_build_prefix$srcdir
21742    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21743esac
21744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21745
21746
21747  case $ac_mode in
21748  :F)
21749  #
21750  # CONFIG_FILE
21751  #
21752
21753  case $INSTALL in
21754  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21755  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21756  esac
21757  ac_MKDIR_P=$MKDIR_P
21758  case $MKDIR_P in
21759  [\\/$]* | ?:[\\/]* ) ;;
21760  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21761  esac
21762_ACEOF
21763
21764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21765# If the template does not know about datarootdir, expand it.
21766# FIXME: This hack should be removed a few years after 2.60.
21767ac_datarootdir_hack=; ac_datarootdir_seen=
21768
21769ac_sed_dataroot='
21770/datarootdir/ {
21771  p
21772  q
21773}
21774/@datadir@/p
21775/@docdir@/p
21776/@infodir@/p
21777/@localedir@/p
21778/@mandir@/p
21779'
21780case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21781*datarootdir*) ac_datarootdir_seen=yes;;
21782*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21783  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21784$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21785_ACEOF
21786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21787  ac_datarootdir_hack='
21788  s&@datadir@&$datadir&g
21789  s&@docdir@&$docdir&g
21790  s&@infodir@&$infodir&g
21791  s&@localedir@&$localedir&g
21792  s&@mandir@&$mandir&g
21793    s&\\\${datarootdir}&$datarootdir&g' ;;
21794esac
21795_ACEOF
21796
21797# Neutralize VPATH when `$srcdir' = `.'.
21798# Shell code in configure.ac might set extrasub.
21799# FIXME: do we really want to maintain this feature?
21800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21801ac_sed_extra="$ac_vpsub
21802$extrasub
21803_ACEOF
21804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21805:t
21806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21807s|@configure_input@|$ac_sed_conf_input|;t t
21808s&@top_builddir@&$ac_top_builddir_sub&;t t
21809s&@top_build_prefix@&$ac_top_build_prefix&;t t
21810s&@srcdir@&$ac_srcdir&;t t
21811s&@abs_srcdir@&$ac_abs_srcdir&;t t
21812s&@top_srcdir@&$ac_top_srcdir&;t t
21813s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21814s&@builddir@&$ac_builddir&;t t
21815s&@abs_builddir@&$ac_abs_builddir&;t t
21816s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21817s&@INSTALL@&$ac_INSTALL&;t t
21818s&@MKDIR_P@&$ac_MKDIR_P&;t t
21819$ac_datarootdir_hack
21820"
21821eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21822  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21823$as_echo "$as_me: error: could not create $ac_file" >&2;}
21824   { (exit 1); exit 1; }; }
21825
21826test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21827  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21828  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21829  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21830which seems to be undefined.  Please make sure it is defined." >&5
21831$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21832which seems to be undefined.  Please make sure it is defined." >&2;}
21833
21834  rm -f "$tmp/stdin"
21835  case $ac_file in
21836  -) cat "$tmp/out" && rm -f "$tmp/out";;
21837  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21838  esac \
21839  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21840$as_echo "$as_me: error: could not create $ac_file" >&2;}
21841   { (exit 1); exit 1; }; }
21842 ;;
21843  :H)
21844  #
21845  # CONFIG_HEADER
21846  #
21847  if test x"$ac_file" != x-; then
21848    {
21849      $as_echo "/* $configure_input  */" \
21850      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21851    } >"$tmp/config.h" \
21852      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21853$as_echo "$as_me: error: could not create $ac_file" >&2;}
21854   { (exit 1); exit 1; }; }
21855    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21856      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21857$as_echo "$as_me: $ac_file is unchanged" >&6;}
21858    else
21859      rm -f "$ac_file"
21860      mv "$tmp/config.h" "$ac_file" \
21861	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21862$as_echo "$as_me: error: could not create $ac_file" >&2;}
21863   { (exit 1); exit 1; }; }
21864    fi
21865  else
21866    $as_echo "/* $configure_input  */" \
21867      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21868      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21869$as_echo "$as_me: error: could not create -" >&2;}
21870   { (exit 1); exit 1; }; }
21871  fi
21872# Compute "$ac_file"'s index in $config_headers.
21873_am_arg="$ac_file"
21874_am_stamp_count=1
21875for _am_header in $config_headers :; do
21876  case $_am_header in
21877    $_am_arg | $_am_arg:* )
21878      break ;;
21879    * )
21880      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21881  esac
21882done
21883echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21884$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21886	 X"$_am_arg" : 'X\(//\)$' \| \
21887	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21888$as_echo X"$_am_arg" |
21889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890	    s//\1/
21891	    q
21892	  }
21893	  /^X\(\/\/\)[^/].*/{
21894	    s//\1/
21895	    q
21896	  }
21897	  /^X\(\/\/\)$/{
21898	    s//\1/
21899	    q
21900	  }
21901	  /^X\(\/\).*/{
21902	    s//\1/
21903	    q
21904	  }
21905	  s/.*/./; q'`/stamp-h$_am_stamp_count
21906 ;;
21907
21908  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21909$as_echo "$as_me: executing $ac_file commands" >&6;}
21910 ;;
21911  esac
21912
21913
21914  case $ac_file$ac_mode in
21915    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21916  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21917  # are listed without --file.  Let's play safe and only enable the eval
21918  # if we detect the quoting.
21919  case $CONFIG_FILES in
21920  *\'*) eval set x "$CONFIG_FILES" ;;
21921  *)   set x $CONFIG_FILES ;;
21922  esac
21923  shift
21924  for mf
21925  do
21926    # Strip MF so we end up with the name of the file.
21927    mf=`echo "$mf" | sed -e 's/:.*$//'`
21928    # Check whether this is an Automake generated Makefile or not.
21929    # We used to match only the files named `Makefile.in', but
21930    # some people rename them; so instead we look at the file content.
21931    # Grep'ing the first line is not enough: some people post-process
21932    # each Makefile.in and add a new line on top of each file to say so.
21933    # Grep'ing the whole file is not good either: AIX grep has a line
21934    # limit of 2048, but all sed's we know have understand at least 4000.
21935    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21936      dirpart=`$as_dirname -- "$mf" ||
21937$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21938	 X"$mf" : 'X\(//\)[^/]' \| \
21939	 X"$mf" : 'X\(//\)$' \| \
21940	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21941$as_echo X"$mf" |
21942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21943	    s//\1/
21944	    q
21945	  }
21946	  /^X\(\/\/\)[^/].*/{
21947	    s//\1/
21948	    q
21949	  }
21950	  /^X\(\/\/\)$/{
21951	    s//\1/
21952	    q
21953	  }
21954	  /^X\(\/\).*/{
21955	    s//\1/
21956	    q
21957	  }
21958	  s/.*/./; q'`
21959    else
21960      continue
21961    fi
21962    # Extract the definition of DEPDIR, am__include, and am__quote
21963    # from the Makefile without running `make'.
21964    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21965    test -z "$DEPDIR" && continue
21966    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21967    test -z "am__include" && continue
21968    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21969    # When using ansi2knr, U may be empty or an underscore; expand it
21970    U=`sed -n 's/^U = //p' < "$mf"`
21971    # Find all dependency output files, they are included files with
21972    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21973    # simplest approach to changing $(DEPDIR) to its actual value in the
21974    # expansion.
21975    for file in `sed -n "
21976      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21977	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21978      # Make sure the directory exists.
21979      test -f "$dirpart/$file" && continue
21980      fdir=`$as_dirname -- "$file" ||
21981$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21982	 X"$file" : 'X\(//\)[^/]' \| \
21983	 X"$file" : 'X\(//\)$' \| \
21984	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21985$as_echo X"$file" |
21986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21987	    s//\1/
21988	    q
21989	  }
21990	  /^X\(\/\/\)[^/].*/{
21991	    s//\1/
21992	    q
21993	  }
21994	  /^X\(\/\/\)$/{
21995	    s//\1/
21996	    q
21997	  }
21998	  /^X\(\/\).*/{
21999	    s//\1/
22000	    q
22001	  }
22002	  s/.*/./; q'`
22003      { as_dir=$dirpart/$fdir
22004  case $as_dir in #(
22005  -*) as_dir=./$as_dir;;
22006  esac
22007  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22008    as_dirs=
22009    while :; do
22010      case $as_dir in #(
22011      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22012      *) as_qdir=$as_dir;;
22013      esac
22014      as_dirs="'$as_qdir' $as_dirs"
22015      as_dir=`$as_dirname -- "$as_dir" ||
22016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22017	 X"$as_dir" : 'X\(//\)[^/]' \| \
22018	 X"$as_dir" : 'X\(//\)$' \| \
22019	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22020$as_echo X"$as_dir" |
22021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22022	    s//\1/
22023	    q
22024	  }
22025	  /^X\(\/\/\)[^/].*/{
22026	    s//\1/
22027	    q
22028	  }
22029	  /^X\(\/\/\)$/{
22030	    s//\1/
22031	    q
22032	  }
22033	  /^X\(\/\).*/{
22034	    s//\1/
22035	    q
22036	  }
22037	  s/.*/./; q'`
22038      test -d "$as_dir" && break
22039    done
22040    test -z "$as_dirs" || eval "mkdir $as_dirs"
22041  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22042$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22043   { (exit 1); exit 1; }; }; }
22044      # echo "creating $dirpart/$file"
22045      echo '# dummy' > "$dirpart/$file"
22046    done
22047  done
22048}
22049 ;;
22050    "libtool":C)
22051
22052    # See if we are running on zsh, and set the options which allow our
22053    # commands through without removal of \ escapes.
22054    if test -n "${ZSH_VERSION+set}" ; then
22055      setopt NO_GLOB_SUBST
22056    fi
22057
22058    cfgfile="${ofile}T"
22059    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22060    $RM "$cfgfile"
22061
22062    cat <<_LT_EOF >> "$cfgfile"
22063#! $SHELL
22064
22065# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22066# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22067# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22068# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22069#
22070#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22071#                 2006, 2007, 2008 Free Software Foundation, Inc.
22072#   Written by Gordon Matzigkeit, 1996
22073#
22074#   This file is part of GNU Libtool.
22075#
22076# GNU Libtool is free software; you can redistribute it and/or
22077# modify it under the terms of the GNU General Public License as
22078# published by the Free Software Foundation; either version 2 of
22079# the License, or (at your option) any later version.
22080#
22081# As a special exception to the GNU General Public License,
22082# if you distribute this file as part of a program or library that
22083# is built using GNU Libtool, you may include this file under the
22084# same distribution terms that you use for the rest of that program.
22085#
22086# GNU Libtool is distributed in the hope that it will be useful,
22087# but WITHOUT ANY WARRANTY; without even the implied warranty of
22088# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22089# GNU General Public License for more details.
22090#
22091# You should have received a copy of the GNU General Public License
22092# along with GNU Libtool; see the file COPYING.  If not, a copy
22093# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22094# obtained by writing to the Free Software Foundation, Inc.,
22095# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335  USA.
22096
22097
22098# The names of the tagged configurations supported by this script.
22099available_tags="RC "
22100
22101# ### BEGIN LIBTOOL CONFIG
22102
22103# Which release of libtool.m4 was used?
22104macro_version=$macro_version
22105macro_revision=$macro_revision
22106
22107# Assembler program.
22108AS=$AS
22109
22110# DLL creation program.
22111DLLTOOL=$DLLTOOL
22112
22113# Object dumper program.
22114OBJDUMP=$OBJDUMP
22115
22116# Whether or not to build shared libraries.
22117build_libtool_libs=$enable_shared
22118
22119# Whether or not to build static libraries.
22120build_old_libs=$enable_static
22121
22122# What type of objects to build.
22123pic_mode=$pic_mode
22124
22125# Whether or not to optimize for fast installation.
22126fast_install=$enable_fast_install
22127
22128# The host system.
22129host_alias=$host_alias
22130host=$host
22131host_os=$host_os
22132
22133# The build system.
22134build_alias=$build_alias
22135build=$build
22136build_os=$build_os
22137
22138# A sed program that does not truncate output.
22139SED=$lt_SED
22140
22141# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22142Xsed="\$SED -e 1s/^X//"
22143
22144# A grep program that handles long lines.
22145GREP=$lt_GREP
22146
22147# An ERE matcher.
22148EGREP=$lt_EGREP
22149
22150# A literal string matcher.
22151FGREP=$lt_FGREP
22152
22153# A BSD- or MS-compatible name lister.
22154NM=$lt_NM
22155
22156# Whether we need soft or hard links.
22157LN_S=$lt_LN_S
22158
22159# What is the maximum length of a command?
22160max_cmd_len=$max_cmd_len
22161
22162# Object file suffix (normally "o").
22163objext=$ac_objext
22164
22165# Executable file suffix (normally "").
22166exeext=$exeext
22167
22168# whether the shell understands "unset".
22169lt_unset=$lt_unset
22170
22171# turn spaces into newlines.
22172SP2NL=$lt_lt_SP2NL
22173
22174# turn newlines into spaces.
22175NL2SP=$lt_lt_NL2SP
22176
22177# How to create reloadable object files.
22178reload_flag=$lt_reload_flag
22179reload_cmds=$lt_reload_cmds
22180
22181# Method to check whether dependent libraries are shared objects.
22182deplibs_check_method=$lt_deplibs_check_method
22183
22184# Command to use when deplibs_check_method == "file_magic".
22185file_magic_cmd=$lt_file_magic_cmd
22186
22187# The archiver.
22188AR=$lt_AR
22189AR_FLAGS=$lt_AR_FLAGS
22190
22191# A symbol stripping program.
22192STRIP=$lt_STRIP
22193
22194# Commands used to install an old-style archive.
22195RANLIB=$lt_RANLIB
22196old_postinstall_cmds=$lt_old_postinstall_cmds
22197old_postuninstall_cmds=$lt_old_postuninstall_cmds
22198
22199# A C compiler.
22200LTCC=$lt_CC
22201
22202# LTCC compiler flags.
22203LTCFLAGS=$lt_CFLAGS
22204
22205# Take the output of nm and produce a listing of raw symbols and C names.
22206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22207
22208# Transform the output of nm in a proper C declaration.
22209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22210
22211# Transform the output of nm in a C name address pair.
22212global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22213
22214# Transform the output of nm in a C name address pair when lib prefix is needed.
22215global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22216
22217# The name of the directory that contains temporary libtool files.
22218objdir=$objdir
22219
22220# Shell to use when invoking shell scripts.
22221SHELL=$lt_SHELL
22222
22223# An echo program that does not interpret backslashes.
22224ECHO=$lt_ECHO
22225
22226# Used to examine libraries when file_magic_cmd begins with "file".
22227MAGIC_CMD=$MAGIC_CMD
22228
22229# Must we lock files when doing compilation?
22230need_locks=$lt_need_locks
22231
22232# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22233DSYMUTIL=$lt_DSYMUTIL
22234
22235# Tool to change global to local symbols on Mac OS X.
22236NMEDIT=$lt_NMEDIT
22237
22238# Tool to manipulate fat objects and archives on Mac OS X.
22239LIPO=$lt_LIPO
22240
22241# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22242OTOOL=$lt_OTOOL
22243
22244# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22245OTOOL64=$lt_OTOOL64
22246
22247# Old archive suffix (normally "a").
22248libext=$libext
22249
22250# Shared library suffix (normally ".so").
22251shrext_cmds=$lt_shrext_cmds
22252
22253# The commands to extract the exported symbol list from a shared archive.
22254extract_expsyms_cmds=$lt_extract_expsyms_cmds
22255
22256# Variables whose values should be saved in libtool wrapper scripts and
22257# restored at link time.
22258variables_saved_for_relink=$lt_variables_saved_for_relink
22259
22260# Do we need the "lib" prefix for modules?
22261need_lib_prefix=$need_lib_prefix
22262
22263# Do we need a version for libraries?
22264need_version=$need_version
22265
22266# Library versioning type.
22267version_type=$version_type
22268
22269# Shared library runtime path variable.
22270runpath_var=$runpath_var
22271
22272# Shared library path variable.
22273shlibpath_var=$shlibpath_var
22274
22275# Is shlibpath searched before the hard-coded library search path?
22276shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22277
22278# Format of library name prefix.
22279libname_spec=$lt_libname_spec
22280
22281# List of archive names.  First name is the real one, the rest are links.
22282# The last name is the one that the linker finds with -lNAME
22283library_names_spec=$lt_library_names_spec
22284
22285# The coded name of the library, if different from the real name.
22286soname_spec=$lt_soname_spec
22287
22288# Command to use after installation of a shared archive.
22289postinstall_cmds=$lt_postinstall_cmds
22290
22291# Command to use after uninstallation of a shared archive.
22292postuninstall_cmds=$lt_postuninstall_cmds
22293
22294# Commands used to finish a libtool library installation in a directory.
22295finish_cmds=$lt_finish_cmds
22296
22297# As "finish_cmds", except a single script fragment to be evaled but
22298# not shown.
22299finish_eval=$lt_finish_eval
22300
22301# Whether we should hardcode library paths into libraries.
22302hardcode_into_libs=$hardcode_into_libs
22303
22304# Compile-time system search path for libraries.
22305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22306
22307# Run-time system search path for libraries.
22308sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22309
22310# Whether dlopen is supported.
22311dlopen_support=$enable_dlopen
22312
22313# Whether dlopen of programs is supported.
22314dlopen_self=$enable_dlopen_self
22315
22316# Whether dlopen of statically linked programs is supported.
22317dlopen_self_static=$enable_dlopen_self_static
22318
22319# Commands to strip libraries.
22320old_striplib=$lt_old_striplib
22321striplib=$lt_striplib
22322
22323
22324# The linker used to build libraries.
22325LD=$lt_LD
22326
22327# Commands used to build an old-style archive.
22328old_archive_cmds=$lt_old_archive_cmds
22329
22330# A language specific compiler.
22331CC=$lt_compiler
22332
22333# Is the compiler the GNU compiler?
22334with_gcc=$GCC
22335
22336# Compiler flag to turn off builtin functions.
22337no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22338
22339# How to pass a linker flag through the compiler.
22340wl=$lt_lt_prog_compiler_wl
22341
22342# Additional compiler flags for building library objects.
22343pic_flag=$lt_lt_prog_compiler_pic
22344
22345# Compiler flag to prevent dynamic linking.
22346link_static_flag=$lt_lt_prog_compiler_static
22347
22348# Does compiler simultaneously support -c and -o options?
22349compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22350
22351# Whether or not to add -lc for building shared libraries.
22352build_libtool_need_lc=$archive_cmds_need_lc
22353
22354# Whether or not to disallow shared libs when runtime libs are static.
22355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22356
22357# Compiler flag to allow reflexive dlopens.
22358export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22359
22360# Compiler flag to generate shared objects directly from archives.
22361whole_archive_flag_spec=$lt_whole_archive_flag_spec
22362
22363# Whether the compiler copes with passing no objects directly.
22364compiler_needs_object=$lt_compiler_needs_object
22365
22366# Create an old-style archive from a shared archive.
22367old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22368
22369# Create a temporary old-style archive to link instead of a shared archive.
22370old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22371
22372# Commands used to build a shared archive.
22373archive_cmds=$lt_archive_cmds
22374archive_expsym_cmds=$lt_archive_expsym_cmds
22375
22376# Commands used to build a loadable module if different from building
22377# a shared archive.
22378module_cmds=$lt_module_cmds
22379module_expsym_cmds=$lt_module_expsym_cmds
22380
22381# Whether we are building with GNU ld or not.
22382with_gnu_ld=$lt_with_gnu_ld
22383
22384# Flag that allows shared libraries with undefined symbols to be built.
22385allow_undefined_flag=$lt_allow_undefined_flag
22386
22387# Flag that enforces no undefined symbols.
22388no_undefined_flag=$lt_no_undefined_flag
22389
22390# Flag to hardcode \$libdir into a binary during linking.
22391# This must work even if \$libdir does not exist
22392hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22393
22394# If ld is used when linking, flag to hardcode \$libdir into a binary
22395# during linking.  This must work even if \$libdir does not exist.
22396hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22397
22398# Whether we need a single "-rpath" flag with a separated argument.
22399hardcode_libdir_separator=$lt_hardcode_libdir_separator
22400
22401# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22402# DIR into the resulting binary.
22403hardcode_direct=$hardcode_direct
22404
22405# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22406# DIR into the resulting binary and the resulting library dependency is
22407# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22408# library is relocated.
22409hardcode_direct_absolute=$hardcode_direct_absolute
22410
22411# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22412# into the resulting binary.
22413hardcode_minus_L=$hardcode_minus_L
22414
22415# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22416# into the resulting binary.
22417hardcode_shlibpath_var=$hardcode_shlibpath_var
22418
22419# Set to "yes" if building a shared library automatically hardcodes DIR
22420# into the library and all subsequent libraries and executables linked
22421# against it.
22422hardcode_automatic=$hardcode_automatic
22423
22424# Set to yes if linker adds runtime paths of dependent libraries
22425# to runtime path list.
22426inherit_rpath=$inherit_rpath
22427
22428# Whether libtool must link a program against all its dependency libraries.
22429link_all_deplibs=$link_all_deplibs
22430
22431# Fix the shell variable \$srcfile for the compiler.
22432fix_srcfile_path=$lt_fix_srcfile_path
22433
22434# Set to "yes" if exported symbols are required.
22435always_export_symbols=$always_export_symbols
22436
22437# The commands to list exported symbols.
22438export_symbols_cmds=$lt_export_symbols_cmds
22439
22440# Symbols that should not be listed in the preloaded symbols.
22441exclude_expsyms=$lt_exclude_expsyms
22442
22443# Symbols that must always be exported.
22444include_expsyms=$lt_include_expsyms
22445
22446# Commands necessary for linking programs (against libraries) with templates.
22447prelink_cmds=$lt_prelink_cmds
22448
22449# Specify filename containing input files.
22450file_list_spec=$lt_file_list_spec
22451
22452# How to hardcode a shared library path into an executable.
22453hardcode_action=$hardcode_action
22454
22455# ### END LIBTOOL CONFIG
22456
22457_LT_EOF
22458
22459  case $host_os in
22460  aix3*)
22461    cat <<\_LT_EOF >> "$cfgfile"
22462# AIX sometimes has problems with the GCC collect2 program.  For some
22463# reason, if we set the COLLECT_NAMES environment variable, the problems
22464# vanish in a puff of smoke.
22465if test "X${COLLECT_NAMES+set}" != Xset; then
22466  COLLECT_NAMES=
22467  export COLLECT_NAMES
22468fi
22469_LT_EOF
22470    ;;
22471  esac
22472
22473
22474ltmain="$ac_aux_dir/ltmain.sh"
22475
22476
22477  # We use sed instead of cat because bash on DJGPP gets confused if
22478  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22479  # text mode, it properly converts lines to CR/LF.  This bash problem
22480  # is reportedly fixed, but why not run on old versions too?
22481  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22482    || (rm -f "$cfgfile"; exit 1)
22483
22484  case $xsi_shell in
22485  yes)
22486    cat << \_LT_EOF >> "$cfgfile"
22487
22488# func_dirname file append nondir_replacement
22489# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22490# otherwise set result to NONDIR_REPLACEMENT.
22491func_dirname ()
22492{
22493  case ${1} in
22494    */*) func_dirname_result="${1%/*}${2}" ;;
22495    *  ) func_dirname_result="${3}" ;;
22496  esac
22497}
22498
22499# func_basename file
22500func_basename ()
22501{
22502  func_basename_result="${1##*/}"
22503}
22504
22505# func_dirname_and_basename file append nondir_replacement
22506# perform func_basename and func_dirname in a single function
22507# call:
22508#   dirname:  Compute the dirname of FILE.  If nonempty,
22509#             add APPEND to the result, otherwise set result
22510#             to NONDIR_REPLACEMENT.
22511#             value returned in "$func_dirname_result"
22512#   basename: Compute filename of FILE.
22513#             value retuned in "$func_basename_result"
22514# Implementation must be kept synchronized with func_dirname
22515# and func_basename. For efficiency, we do not delegate to
22516# those functions but instead duplicate the functionality here.
22517func_dirname_and_basename ()
22518{
22519  case ${1} in
22520    */*) func_dirname_result="${1%/*}${2}" ;;
22521    *  ) func_dirname_result="${3}" ;;
22522  esac
22523  func_basename_result="${1##*/}"
22524}
22525
22526# func_stripname prefix suffix name
22527# strip PREFIX and SUFFIX off of NAME.
22528# PREFIX and SUFFIX must not contain globbing or regex special
22529# characters, hashes, percent signs, but SUFFIX may contain a leading
22530# dot (in which case that matches only a dot).
22531func_stripname ()
22532{
22533  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22534  # positional parameters, so assign one to ordinary parameter first.
22535  func_stripname_result=${3}
22536  func_stripname_result=${func_stripname_result#"${1}"}
22537  func_stripname_result=${func_stripname_result%"${2}"}
22538}
22539
22540# func_opt_split
22541func_opt_split ()
22542{
22543  func_opt_split_opt=${1%%=*}
22544  func_opt_split_arg=${1#*=}
22545}
22546
22547# func_lo2o object
22548func_lo2o ()
22549{
22550  case ${1} in
22551    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22552    *)    func_lo2o_result=${1} ;;
22553  esac
22554}
22555
22556# func_xform libobj-or-source
22557func_xform ()
22558{
22559  func_xform_result=${1%.*}.lo
22560}
22561
22562# func_arith arithmetic-term...
22563func_arith ()
22564{
22565  func_arith_result=$(( $* ))
22566}
22567
22568# func_len string
22569# STRING may not start with a hyphen.
22570func_len ()
22571{
22572  func_len_result=${#1}
22573}
22574
22575_LT_EOF
22576    ;;
22577  *) # Bourne compatible functions.
22578    cat << \_LT_EOF >> "$cfgfile"
22579
22580# func_dirname file append nondir_replacement
22581# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22582# otherwise set result to NONDIR_REPLACEMENT.
22583func_dirname ()
22584{
22585  # Extract subdirectory from the argument.
22586  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22587  if test "X$func_dirname_result" = "X${1}"; then
22588    func_dirname_result="${3}"
22589  else
22590    func_dirname_result="$func_dirname_result${2}"
22591  fi
22592}
22593
22594# func_basename file
22595func_basename ()
22596{
22597  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22598}
22599
22600
22601# func_stripname prefix suffix name
22602# strip PREFIX and SUFFIX off of NAME.
22603# PREFIX and SUFFIX must not contain globbing or regex special
22604# characters, hashes, percent signs, but SUFFIX may contain a leading
22605# dot (in which case that matches only a dot).
22606# func_strip_suffix prefix name
22607func_stripname ()
22608{
22609  case ${2} in
22610    .*) func_stripname_result=`$ECHO "X${3}" \
22611           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22612    *)  func_stripname_result=`$ECHO "X${3}" \
22613           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22614  esac
22615}
22616
22617# sed scripts:
22618my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22619my_sed_long_arg='1s/^-[^=]*=//'
22620
22621# func_opt_split
22622func_opt_split ()
22623{
22624  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22625  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22626}
22627
22628# func_lo2o object
22629func_lo2o ()
22630{
22631  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22632}
22633
22634# func_xform libobj-or-source
22635func_xform ()
22636{
22637  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22638}
22639
22640# func_arith arithmetic-term...
22641func_arith ()
22642{
22643  func_arith_result=`expr "$@"`
22644}
22645
22646# func_len string
22647# STRING may not start with a hyphen.
22648func_len ()
22649{
22650  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22651}
22652
22653_LT_EOF
22654esac
22655
22656case $lt_shell_append in
22657  yes)
22658    cat << \_LT_EOF >> "$cfgfile"
22659
22660# func_append var value
22661# Append VALUE to the end of shell variable VAR.
22662func_append ()
22663{
22664  eval "$1+=\$2"
22665}
22666_LT_EOF
22667    ;;
22668  *)
22669    cat << \_LT_EOF >> "$cfgfile"
22670
22671# func_append var value
22672# Append VALUE to the end of shell variable VAR.
22673func_append ()
22674{
22675  eval "$1=\$$1\$2"
22676}
22677
22678_LT_EOF
22679    ;;
22680  esac
22681
22682
22683  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22684    || (rm -f "$cfgfile"; exit 1)
22685
22686  mv -f "$cfgfile" "$ofile" ||
22687    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22688  chmod +x "$ofile"
22689
22690
22691    cat <<_LT_EOF >> "$ofile"
22692
22693# ### BEGIN LIBTOOL TAG CONFIG: RC
22694
22695# The linker used to build libraries.
22696LD=$lt_LD_RC
22697
22698# Commands used to build an old-style archive.
22699old_archive_cmds=$lt_old_archive_cmds_RC
22700
22701# A language specific compiler.
22702CC=$lt_compiler_RC
22703
22704# Is the compiler the GNU compiler?
22705with_gcc=$GCC_RC
22706
22707# Compiler flag to turn off builtin functions.
22708no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22709
22710# How to pass a linker flag through the compiler.
22711wl=$lt_lt_prog_compiler_wl_RC
22712
22713# Additional compiler flags for building library objects.
22714pic_flag=$lt_lt_prog_compiler_pic_RC
22715
22716# Compiler flag to prevent dynamic linking.
22717link_static_flag=$lt_lt_prog_compiler_static_RC
22718
22719# Does compiler simultaneously support -c and -o options?
22720compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22721
22722# Whether or not to add -lc for building shared libraries.
22723build_libtool_need_lc=$archive_cmds_need_lc_RC
22724
22725# Whether or not to disallow shared libs when runtime libs are static.
22726allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22727
22728# Compiler flag to allow reflexive dlopens.
22729export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22730
22731# Compiler flag to generate shared objects directly from archives.
22732whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22733
22734# Whether the compiler copes with passing no objects directly.
22735compiler_needs_object=$lt_compiler_needs_object_RC
22736
22737# Create an old-style archive from a shared archive.
22738old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22739
22740# Create a temporary old-style archive to link instead of a shared archive.
22741old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22742
22743# Commands used to build a shared archive.
22744archive_cmds=$lt_archive_cmds_RC
22745archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22746
22747# Commands used to build a loadable module if different from building
22748# a shared archive.
22749module_cmds=$lt_module_cmds_RC
22750module_expsym_cmds=$lt_module_expsym_cmds_RC
22751
22752# Whether we are building with GNU ld or not.
22753with_gnu_ld=$lt_with_gnu_ld_RC
22754
22755# Flag that allows shared libraries with undefined symbols to be built.
22756allow_undefined_flag=$lt_allow_undefined_flag_RC
22757
22758# Flag that enforces no undefined symbols.
22759no_undefined_flag=$lt_no_undefined_flag_RC
22760
22761# Flag to hardcode \$libdir into a binary during linking.
22762# This must work even if \$libdir does not exist
22763hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22764
22765# If ld is used when linking, flag to hardcode \$libdir into a binary
22766# during linking.  This must work even if \$libdir does not exist.
22767hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22768
22769# Whether we need a single "-rpath" flag with a separated argument.
22770hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22771
22772# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22773# DIR into the resulting binary.
22774hardcode_direct=$hardcode_direct_RC
22775
22776# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22777# DIR into the resulting binary and the resulting library dependency is
22778# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22779# library is relocated.
22780hardcode_direct_absolute=$hardcode_direct_absolute_RC
22781
22782# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22783# into the resulting binary.
22784hardcode_minus_L=$hardcode_minus_L_RC
22785
22786# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22787# into the resulting binary.
22788hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22789
22790# Set to "yes" if building a shared library automatically hardcodes DIR
22791# into the library and all subsequent libraries and executables linked
22792# against it.
22793hardcode_automatic=$hardcode_automatic_RC
22794
22795# Set to yes if linker adds runtime paths of dependent libraries
22796# to runtime path list.
22797inherit_rpath=$inherit_rpath_RC
22798
22799# Whether libtool must link a program against all its dependency libraries.
22800link_all_deplibs=$link_all_deplibs_RC
22801
22802# Fix the shell variable \$srcfile for the compiler.
22803fix_srcfile_path=$lt_fix_srcfile_path_RC
22804
22805# Set to "yes" if exported symbols are required.
22806always_export_symbols=$always_export_symbols_RC
22807
22808# The commands to list exported symbols.
22809export_symbols_cmds=$lt_export_symbols_cmds_RC
22810
22811# Symbols that should not be listed in the preloaded symbols.
22812exclude_expsyms=$lt_exclude_expsyms_RC
22813
22814# Symbols that must always be exported.
22815include_expsyms=$lt_include_expsyms_RC
22816
22817# Commands necessary for linking programs (against libraries) with templates.
22818prelink_cmds=$lt_prelink_cmds_RC
22819
22820# Specify filename containing input files.
22821file_list_spec=$lt_file_list_spec_RC
22822
22823# How to hardcode a shared library path into an executable.
22824hardcode_action=$hardcode_action_RC
22825
22826# ### END LIBTOOL TAG CONFIG: RC
22827_LT_EOF
22828
22829 ;;
22830    "po-directories":C)
22831    for ac_file in $CONFIG_FILES; do
22832      # Support "outfile[:infile[:infile...]]"
22833      case "$ac_file" in
22834        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22835      esac
22836      # PO directories have a Makefile.in generated from Makefile.in.in.
22837      case "$ac_file" in */Makefile.in)
22838        # Adjust a relative srcdir.
22839        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22840        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22841        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22842        # In autoconf-2.13 it is called $ac_given_srcdir.
22843        # In autoconf-2.50 it is called $srcdir.
22844        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22845        case "$ac_given_srcdir" in
22846          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22847          /*) top_srcdir="$ac_given_srcdir" ;;
22848          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22849        esac
22850        # Treat a directory as a PO directory if and only if it has a
22851        # POTFILES.in file. This allows packages to have multiple PO
22852        # directories under different names or in different locations.
22853        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22854          rm -f "$ac_dir/POTFILES"
22855          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22856          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22857          POMAKEFILEDEPS="POTFILES.in"
22858          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22859          # on $ac_dir but don't depend on user-specified configuration
22860          # parameters.
22861          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22862            # The LINGUAS file contains the set of available languages.
22863            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22864              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22865            fi
22866            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22867            # Hide the ALL_LINGUAS assigment from automake < 1.5.
22868            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22869            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22870          else
22871            # The set of available languages was given in configure.in.
22872            # Hide the ALL_LINGUAS assigment from automake < 1.5.
22873            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22874          fi
22875          # Compute POFILES
22876          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22877          # Compute UPDATEPOFILES
22878          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22879          # Compute DUMMYPOFILES
22880          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22881          # Compute GMOFILES
22882          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22883          case "$ac_given_srcdir" in
22884            .) srcdirpre= ;;
22885            *) srcdirpre='$(srcdir)/' ;;
22886          esac
22887          POFILES=
22888          UPDATEPOFILES=
22889          DUMMYPOFILES=
22890          GMOFILES=
22891          for lang in $ALL_LINGUAS; do
22892            POFILES="$POFILES $srcdirpre$lang.po"
22893            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22894            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22895            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22896          done
22897          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22898          # environment variable.
22899          INST_LINGUAS=
22900          if test -n "$ALL_LINGUAS"; then
22901            for presentlang in $ALL_LINGUAS; do
22902              useit=no
22903              if test "%UNSET%" != "$LINGUAS"; then
22904                desiredlanguages="$LINGUAS"
22905              else
22906                desiredlanguages="$ALL_LINGUAS"
22907              fi
22908              for desiredlang in $desiredlanguages; do
22909                # Use the presentlang catalog if desiredlang is
22910                #   a. equal to presentlang, or
22911                #   b. a variant of presentlang (because in this case,
22912                #      presentlang can be used as a fallback for messages
22913                #      which are not translated in the desiredlang catalog).
22914                case "$desiredlang" in
22915                  "$presentlang"*) useit=yes;;
22916                esac
22917              done
22918              if test $useit = yes; then
22919                INST_LINGUAS="$INST_LINGUAS $presentlang"
22920              fi
22921            done
22922          fi
22923          CATALOGS=
22924          if test -n "$INST_LINGUAS"; then
22925            for lang in $INST_LINGUAS; do
22926              CATALOGS="$CATALOGS $lang.gmo"
22927            done
22928          fi
22929          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22930          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"
22931          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22932            if test -f "$f"; then
22933              case "$f" in
22934                *.orig | *.bak | *~) ;;
22935                *) cat "$f" >> "$ac_dir/Makefile" ;;
22936              esac
22937            fi
22938          done
22939        fi
22940        ;;
22941      esac
22942    done ;;
22943
22944  esac
22945done # for ac_tag
22946
22947
22948{ (exit 0); exit 0; }
22949_ACEOF
22950chmod +x $CONFIG_STATUS
22951ac_clean_files=$ac_clean_files_save
22952
22953test $ac_write_fail = 0 ||
22954  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22955$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22956   { (exit 1); exit 1; }; }
22957
22958
22959# configure is writing to config.log, and then calls config.status.
22960# config.status does its own redirection, appending to config.log.
22961# Unfortunately, on DOS this fails, as config.log is still kept open
22962# by configure, so config.status won't be able to write to it; its
22963# output is simply discarded.  So we exec the FD to /dev/null,
22964# effectively closing config.log, so it can be properly (re)opened and
22965# appended to by config.status.  When coming back to configure, we
22966# need to make the FD available again.
22967if test "$no_create" != yes; then
22968  ac_cs_success=:
22969  ac_config_status_args=
22970  test "$silent" = yes &&
22971    ac_config_status_args="$ac_config_status_args --quiet"
22972  exec 5>/dev/null
22973  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22974  exec 5>>config.log
22975  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22976  # would make configure fail if this is the last instruction.
22977  $ac_cs_success || { (exit 1); exit 1; }
22978fi
22979if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22980  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22981$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22982fi
22983
22984