1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libgtop 2.40.0.
4#
5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (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
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libgtop'
593PACKAGE_TARNAME='libgtop'
594PACKAGE_VERSION='2.40.0'
595PACKAGE_STRING='libgtop 2.40.0'
596PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop'
597PACKAGE_URL=''
598
599ac_unique_file="copyright.txt"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_header_list=
637gt_needs=
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
641GTK_DOC_USE_REBASE_FALSE
642GTK_DOC_USE_REBASE_TRUE
643GTK_DOC_USE_LIBTOOL_FALSE
644GTK_DOC_USE_LIBTOOL_TRUE
645GTK_DOC_BUILD_PDF_FALSE
646GTK_DOC_BUILD_PDF_TRUE
647GTK_DOC_BUILD_HTML_FALSE
648GTK_DOC_BUILD_HTML_TRUE
649ENABLE_GTK_DOC_FALSE
650ENABLE_GTK_DOC_TRUE
651HAVE_GTK_DOC_FALSE
652HAVE_GTK_DOC_TRUE
653GTKDOC_DEPS_LIBS
654GTKDOC_DEPS_CFLAGS
655HTML_DIR
656GTKDOC_MKPDF
657GTKDOC_REBASE
658GTKDOC_CHECK_PATH
659GTKDOC_CHECK
660server_programs
661sysdeps_suid_lib
662LIBGTOP_SERVER
663LIBGTOP_BINDIR
664LIBGTOP_INCS
665LIBGTOP_LIBS
666LIBGTOP_EXTRA_LIBS
667AM_CPPFLAGS
668sysdeps_dir
669libs_xauth
670X_EXTRA_LIBS
671X_LIBS
672X_PRE_LIBS
673X_CFLAGS
674XMKMF
675GETTEXT_PACKAGE
676POSUB
677LTLIBINTL
678LIBINTL
679INTLLIBS
680LTLIBICONV
681LIBICONV
682INTL_MACOSX_LIBS
683XGETTEXT_EXTRA_OPTIONS
684MSGMERGE
685XGETTEXT_015
686XGETTEXT
687GMSGFMT_015
688MSGFMT_015
689GMSGFMT
690MSGFMT
691GETTEXT_MACRO_VERSION
692USE_NLS
693ALLOCA
694DL_LIB
695LIBOBJS
696GLIB_LIBS
697GLIB_CFLAGS
698LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_FALSE
699LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_TRUE
700LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_FALSE
701LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_TRUE
702LIBGTOP_NEED_SERVER_FALSE
703LIBGTOP_NEED_SERVER_TRUE
704KVM_LIBS
705libgtop_have_sysinfo
706libgtop_postinstall
707HACKER_MODE_FALSE
708HACKER_MODE_TRUE
709EXAMPLES_FALSE
710EXAMPLES_TRUE
711libgtop_need_server
712libgtop_sysdeps_dir
713CROSS_COMPILING_FALSE
714CROSS_COMPILING_TRUE
715LT_SYS_LIBRARY_PATH
716OTOOL64
717OTOOL
718LIPO
719NMEDIT
720DSYMUTIL
721MANIFEST_TOOL
722ac_ct_AR
723DLLTOOL
724OBJDUMP
725NM
726ac_ct_DUMPBIN
727DUMPBIN
728LD
729FGREP
730SED
731LIBTOOL
732LN_S
733AR
734AS
735RANLIB
736PERL
737libgtop_top_builddir
738EGREP
739GREP
740CPP
741am__fastdepCC_FALSE
742am__fastdepCC_TRUE
743CCDEPMODE
744am__nodep
745AMDEPBACKSLASH
746AMDEP_FALSE
747AMDEP_TRUE
748am__include
749DEPDIR
750OBJEXT
751EXEEXT
752ac_ct_CC
753CPPFLAGS
754LDFLAGS
755CFLAGS
756CC
757LT_VERSION_INFO
758LIBGTOP_VERSION_CODE
759LIBGTOP_VERSION
760LIBGTOP_SERVER_VERSION
761LIBGTOP_MICRO_VERSION
762LIBGTOP_MINOR_VERSION
763LIBGTOP_MAJOR_VERSION
764ACLOCAL_AMFLAGS
765HAVE_INTROSPECTION_FALSE
766HAVE_INTROSPECTION_TRUE
767INTROSPECTION_MAKEFILE
768INTROSPECTION_LIBS
769INTROSPECTION_CFLAGS
770INTROSPECTION_TYPELIBDIR
771INTROSPECTION_GIRDIR
772INTROSPECTION_GENERATE
773INTROSPECTION_COMPILER
774INTROSPECTION_SCANNER
775PKG_CONFIG_LIBDIR
776PKG_CONFIG_PATH
777PKG_CONFIG
778AM_BACKSLASH
779AM_DEFAULT_VERBOSITY
780AM_DEFAULT_V
781AM_V
782am__untar
783am__tar
784AMTAR
785am__leading_dot
786SET_MAKE
787AWK
788mkdir_p
789MKDIR_P
790INSTALL_STRIP_PROGRAM
791STRIP
792install_sh
793MAKEINFO
794AUTOHEADER
795AUTOMAKE
796AUTOCONF
797ACLOCAL
798VERSION
799PACKAGE
800CYGPATH_W
801am__isrc
802INSTALL_DATA
803INSTALL_SCRIPT
804INSTALL_PROGRAM
805host_os
806host_vendor
807host_cpu
808host
809build_os
810build_vendor
811build_cpu
812build
813target_alias
814host_alias
815build_alias
816LIBS
817ECHO_T
818ECHO_N
819ECHO_C
820DEFS
821mandir
822localedir
823libdir
824psdir
825pdfdir
826dvidir
827htmldir
828infodir
829docdir
830oldincludedir
831includedir
832localstatedir
833sharedstatedir
834sysconfdir
835datadir
836datarootdir
837libexecdir
838sbindir
839bindir
840program_transform_name
841prefix
842exec_prefix
843PACKAGE_URL
844PACKAGE_BUGREPORT
845PACKAGE_STRING
846PACKAGE_VERSION
847PACKAGE_TARNAME
848PACKAGE_NAME
849PATH_SEPARATOR
850SHELL
851am__quote'
852ac_subst_files=''
853ac_user_opts='
854enable_option_checking
855enable_silent_rules
856enable_introspection
857enable_dependency_tracking
858enable_shared
859enable_static
860with_pic
861enable_fast_install
862with_aix_soname
863with_gnu_ld
864with_sysroot
865enable_libtool_lock
866with_examples
867enable_hacker_mode
868enable_nls
869enable_rpath
870with_libiconv_prefix
871with_libintl_prefix
872with_x
873enable_debug
874enable_fatal_warnings
875with_html_dir
876enable_gtk_doc
877enable_gtk_doc_html
878enable_gtk_doc_pdf
879'
880      ac_precious_vars='build_alias
881host_alias
882target_alias
883PKG_CONFIG
884PKG_CONFIG_PATH
885PKG_CONFIG_LIBDIR
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891CPP
892LT_SYS_LIBRARY_PATH
893GLIB_CFLAGS
894GLIB_LIBS
895XMKMF
896GTKDOC_DEPS_CFLAGS
897GTKDOC_DEPS_LIBS'
898
899
900# Initialize some variables set by options.
901ac_init_help=
902ac_init_version=false
903ac_unrecognized_opts=
904ac_unrecognized_sep=
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952  # If the previous option needs an argument, assign it.
953  if test -n "$ac_prev"; then
954    eval $ac_prev=\$ac_option
955    ac_prev=
956    continue
957  fi
958
959  case $ac_option in
960  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961  *=)   ac_optarg= ;;
962  *)    ac_optarg=yes ;;
963  esac
964
965  # Accept the important Cygnus configure options, so we can diagnose typos.
966
967  case $ac_dashdash$ac_option in
968  --)
969    ac_dashdash=yes ;;
970
971  -bindir | --bindir | --bindi | --bind | --bin | --bi)
972    ac_prev=bindir ;;
973  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974    bindir=$ac_optarg ;;
975
976  -build | --build | --buil | --bui | --bu)
977    ac_prev=build_alias ;;
978  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979    build_alias=$ac_optarg ;;
980
981  -cache-file | --cache-file | --cache-fil | --cache-fi \
982  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983    ac_prev=cache_file ;;
984  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986    cache_file=$ac_optarg ;;
987
988  --config-cache | -C)
989    cache_file=config.cache ;;
990
991  -datadir | --datadir | --datadi | --datad)
992    ac_prev=datadir ;;
993  -datadir=* | --datadir=* | --datadi=* | --datad=*)
994    datadir=$ac_optarg ;;
995
996  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997  | --dataroo | --dataro | --datar)
998    ac_prev=datarootdir ;;
999  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001    datarootdir=$ac_optarg ;;
1002
1003  -disable-* | --disable-*)
1004    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005    # Reject names that are not valid shell variable names.
1006    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007      as_fn_error $? "invalid feature name: $ac_useropt"
1008    ac_useropt_orig=$ac_useropt
1009    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010    case $ac_user_opts in
1011      *"
1012"enable_$ac_useropt"
1013"*) ;;
1014      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015	 ac_unrecognized_sep=', ';;
1016    esac
1017    eval enable_$ac_useropt=no ;;
1018
1019  -docdir | --docdir | --docdi | --doc | --do)
1020    ac_prev=docdir ;;
1021  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022    docdir=$ac_optarg ;;
1023
1024  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025    ac_prev=dvidir ;;
1026  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027    dvidir=$ac_optarg ;;
1028
1029  -enable-* | --enable-*)
1030    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033      as_fn_error $? "invalid feature name: $ac_useropt"
1034    ac_useropt_orig=$ac_useropt
1035    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036    case $ac_user_opts in
1037      *"
1038"enable_$ac_useropt"
1039"*) ;;
1040      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041	 ac_unrecognized_sep=', ';;
1042    esac
1043    eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047  | --exec | --exe | --ex)
1048    ac_prev=exec_prefix ;;
1049  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051  | --exec=* | --exe=* | --ex=*)
1052    exec_prefix=$ac_optarg ;;
1053
1054  -gas | --gas | --ga | --g)
1055    # Obsolete; use --with-gas.
1056    with_gas=yes ;;
1057
1058  -help | --help | --hel | --he | -h)
1059    ac_init_help=long ;;
1060  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061    ac_init_help=recursive ;;
1062  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063    ac_init_help=short ;;
1064
1065  -host | --host | --hos | --ho)
1066    ac_prev=host_alias ;;
1067  -host=* | --host=* | --hos=* | --ho=*)
1068    host_alias=$ac_optarg ;;
1069
1070  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071    ac_prev=htmldir ;;
1072  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073  | --ht=*)
1074    htmldir=$ac_optarg ;;
1075
1076  -includedir | --includedir | --includedi | --included | --include \
1077  | --includ | --inclu | --incl | --inc)
1078    ac_prev=includedir ;;
1079  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080  | --includ=* | --inclu=* | --incl=* | --inc=*)
1081    includedir=$ac_optarg ;;
1082
1083  -infodir | --infodir | --infodi | --infod | --info | --inf)
1084    ac_prev=infodir ;;
1085  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086    infodir=$ac_optarg ;;
1087
1088  -libdir | --libdir | --libdi | --libd)
1089    ac_prev=libdir ;;
1090  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091    libdir=$ac_optarg ;;
1092
1093  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094  | --libexe | --libex | --libe)
1095    ac_prev=libexecdir ;;
1096  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097  | --libexe=* | --libex=* | --libe=*)
1098    libexecdir=$ac_optarg ;;
1099
1100  -localedir | --localedir | --localedi | --localed | --locale)
1101    ac_prev=localedir ;;
1102  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103    localedir=$ac_optarg ;;
1104
1105  -localstatedir | --localstatedir | --localstatedi | --localstated \
1106  | --localstate | --localstat | --localsta | --localst | --locals)
1107    ac_prev=localstatedir ;;
1108  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110    localstatedir=$ac_optarg ;;
1111
1112  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113    ac_prev=mandir ;;
1114  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115    mandir=$ac_optarg ;;
1116
1117  -nfp | --nfp | --nf)
1118    # Obsolete; use --without-fp.
1119    with_fp=no ;;
1120
1121  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122  | --no-cr | --no-c | -n)
1123    no_create=yes ;;
1124
1125  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127    no_recursion=yes ;;
1128
1129  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131  | --oldin | --oldi | --old | --ol | --o)
1132    ac_prev=oldincludedir ;;
1133  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136    oldincludedir=$ac_optarg ;;
1137
1138  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139    ac_prev=prefix ;;
1140  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141    prefix=$ac_optarg ;;
1142
1143  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144  | --program-pre | --program-pr | --program-p)
1145    ac_prev=program_prefix ;;
1146  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148    program_prefix=$ac_optarg ;;
1149
1150  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151  | --program-suf | --program-su | --program-s)
1152    ac_prev=program_suffix ;;
1153  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155    program_suffix=$ac_optarg ;;
1156
1157  -program-transform-name | --program-transform-name \
1158  | --program-transform-nam | --program-transform-na \
1159  | --program-transform-n | --program-transform- \
1160  | --program-transform | --program-transfor \
1161  | --program-transfo | --program-transf \
1162  | --program-trans | --program-tran \
1163  | --progr-tra | --program-tr | --program-t)
1164    ac_prev=program_transform_name ;;
1165  -program-transform-name=* | --program-transform-name=* \
1166  | --program-transform-nam=* | --program-transform-na=* \
1167  | --program-transform-n=* | --program-transform-=* \
1168  | --program-transform=* | --program-transfor=* \
1169  | --program-transfo=* | --program-transf=* \
1170  | --program-trans=* | --program-tran=* \
1171  | --progr-tra=* | --program-tr=* | --program-t=*)
1172    program_transform_name=$ac_optarg ;;
1173
1174  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175    ac_prev=pdfdir ;;
1176  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177    pdfdir=$ac_optarg ;;
1178
1179  -psdir | --psdir | --psdi | --psd | --ps)
1180    ac_prev=psdir ;;
1181  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182    psdir=$ac_optarg ;;
1183
1184  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185  | -silent | --silent | --silen | --sile | --sil)
1186    silent=yes ;;
1187
1188  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189    ac_prev=sbindir ;;
1190  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191  | --sbi=* | --sb=*)
1192    sbindir=$ac_optarg ;;
1193
1194  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196  | --sharedst | --shareds | --shared | --share | --shar \
1197  | --sha | --sh)
1198    ac_prev=sharedstatedir ;;
1199  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202  | --sha=* | --sh=*)
1203    sharedstatedir=$ac_optarg ;;
1204
1205  -site | --site | --sit)
1206    ac_prev=site ;;
1207  -site=* | --site=* | --sit=*)
1208    site=$ac_optarg ;;
1209
1210  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211    ac_prev=srcdir ;;
1212  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213    srcdir=$ac_optarg ;;
1214
1215  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216  | --syscon | --sysco | --sysc | --sys | --sy)
1217    ac_prev=sysconfdir ;;
1218  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220    sysconfdir=$ac_optarg ;;
1221
1222  -target | --target | --targe | --targ | --tar | --ta | --t)
1223    ac_prev=target_alias ;;
1224  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225    target_alias=$ac_optarg ;;
1226
1227  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228    verbose=yes ;;
1229
1230  -version | --version | --versio | --versi | --vers | -V)
1231    ac_init_version=: ;;
1232
1233  -with-* | --with-*)
1234    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237      as_fn_error $? "invalid package name: $ac_useropt"
1238    ac_useropt_orig=$ac_useropt
1239    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240    case $ac_user_opts in
1241      *"
1242"with_$ac_useropt"
1243"*) ;;
1244      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245	 ac_unrecognized_sep=', ';;
1246    esac
1247    eval with_$ac_useropt=\$ac_optarg ;;
1248
1249  -without-* | --without-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      as_fn_error $? "invalid package name: $ac_useropt"
1254    ac_useropt_orig=$ac_useropt
1255    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256    case $ac_user_opts in
1257      *"
1258"with_$ac_useropt"
1259"*) ;;
1260      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261	 ac_unrecognized_sep=', ';;
1262    esac
1263    eval with_$ac_useropt=no ;;
1264
1265  --x)
1266    # Obsolete; use --with-x.
1267    with_x=yes ;;
1268
1269  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270  | --x-incl | --x-inc | --x-in | --x-i)
1271    ac_prev=x_includes ;;
1272  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274    x_includes=$ac_optarg ;;
1275
1276  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278    ac_prev=x_libraries ;;
1279  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281    x_libraries=$ac_optarg ;;
1282
1283  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284Try \`$0 --help' for more information"
1285    ;;
1286
1287  *=*)
1288    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289    # Reject names that are not valid shell variable names.
1290    case $ac_envvar in #(
1291      '' | [0-9]* | *[!_$as_cr_alnum]* )
1292      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293    esac
1294    eval $ac_envvar=\$ac_optarg
1295    export $ac_envvar ;;
1296
1297  *)
1298    # FIXME: should be removed in autoconf 3.0.
1299    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303    ;;
1304
1305  esac
1306done
1307
1308if test -n "$ac_prev"; then
1309  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310  as_fn_error $? "missing argument to $ac_option"
1311fi
1312
1313if test -n "$ac_unrecognized_opts"; then
1314  case $enable_option_checking in
1315    no) ;;
1316    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318  esac
1319fi
1320
1321# Check all directory arguments for consistency.
1322for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323		datadir sysconfdir sharedstatedir localstatedir includedir \
1324		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325		libdir localedir mandir
1326do
1327  eval ac_val=\$$ac_var
1328  # Remove trailing slashes.
1329  case $ac_val in
1330    */ )
1331      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332      eval $ac_var=\$ac_val;;
1333  esac
1334  # Be sure to have absolute directory names.
1335  case $ac_val in
1336    [\\/$]* | ?:[\\/]* )  continue;;
1337    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338  esac
1339  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340done
1341
1342# There might be people who depend on the old broken behavior: `$host'
1343# used to hold the argument of --host etc.
1344# FIXME: To remove some day.
1345build=$build_alias
1346host=$host_alias
1347target=$target_alias
1348
1349# FIXME: To remove some day.
1350if test "x$host_alias" != x; then
1351  if test "x$build_alias" = x; then
1352    cross_compiling=maybe
1353  elif test "x$build_alias" != "x$host_alias"; then
1354    cross_compiling=yes
1355  fi
1356fi
1357
1358ac_tool_prefix=
1359test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361test "$silent" = yes && exec 6>/dev/null
1362
1363
1364ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365ac_ls_di=`ls -di .` &&
1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367  as_fn_error $? "working directory cannot be determined"
1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369  as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374  ac_srcdir_defaulted=yes
1375  # Try the directory containing this script, then the parent directory.
1376  ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378	 X"$as_myself" : 'X\(//\)[^/]' \| \
1379	 X"$as_myself" : 'X\(//\)$' \| \
1380	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381$as_echo X"$as_myself" |
1382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\/\)[^/].*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\/\)$/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\).*/{
1395	    s//\1/
1396	    q
1397	  }
1398	  s/.*/./; q'`
1399  srcdir=$ac_confdir
1400  if test ! -r "$srcdir/$ac_unique_file"; then
1401    srcdir=..
1402  fi
1403else
1404  ac_srcdir_defaulted=no
1405fi
1406if test ! -r "$srcdir/$ac_unique_file"; then
1407  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409fi
1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411ac_abs_confdir=`(
1412	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413	pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416  srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426  eval ac_env_${ac_var}_value=\$${ac_var}
1427  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
1430
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435  # Omit some internal or obsolete options to make the list less imposing.
1436  # This message is too long to be a string in the A/UX 3.1 sh.
1437  cat <<_ACEOF
1438\`configure' configures libgtop 2.40.0 to adapt to many kinds of systems.
1439
1440Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE.  See below for descriptions of some of the useful variables.
1444
1445Defaults for the options are specified in brackets.
1446
1447Configuration:
1448  -h, --help              display this help and exit
1449      --help=short        display options specific to this package
1450      --help=recursive    display the short help of all the included packages
1451  -V, --version           display version information and exit
1452  -q, --quiet, --silent   do not print \`checking ...' messages
1453      --cache-file=FILE   cache test results in FILE [disabled]
1454  -C, --config-cache      alias for \`--cache-file=config.cache'
1455  -n, --no-create         do not create output files
1456      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1457
1458Installation directories:
1459  --prefix=PREFIX         install architecture-independent files in PREFIX
1460                          [$ac_default_prefix]
1461  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1462                          [PREFIX]
1463
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
1468
1469For better control, use the options below.
1470
1471Fine tuning of the installation directories:
1472  --bindir=DIR            user executables [EPREFIX/bin]
1473  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1474  --libexecdir=DIR        program executables [EPREFIX/libexec]
1475  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1476  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1477  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1478  --libdir=DIR            object code libraries [EPREFIX/lib]
1479  --includedir=DIR        C header files [PREFIX/include]
1480  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1481  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1482  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1483  --infodir=DIR           info documentation [DATAROOTDIR/info]
1484  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1485  --mandir=DIR            man documentation [DATAROOTDIR/man]
1486  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgtop]
1487  --htmldir=DIR           html documentation [DOCDIR]
1488  --dvidir=DIR            dvi documentation [DOCDIR]
1489  --pdfdir=DIR            pdf documentation [DOCDIR]
1490  --psdir=DIR             ps documentation [DOCDIR]
1491_ACEOF
1492
1493  cat <<\_ACEOF
1494
1495Program names:
1496  --program-prefix=PREFIX            prepend PREFIX to installed program names
1497  --program-suffix=SUFFIX            append SUFFIX to installed program names
1498  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1499
1500X features:
1501  --x-includes=DIR    X include files are in DIR
1502  --x-libraries=DIR   X library files are in DIR
1503
1504System types:
1505  --build=BUILD     configure for building on BUILD [guessed]
1506  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511  case $ac_init_help in
1512     short | recursive ) echo "Configuration of libgtop 2.40.0:";;
1513   esac
1514  cat <<\_ACEOF
1515
1516Optional Features:
1517  --disable-option-checking  ignore unrecognized --enable/--with options
1518  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520  --enable-silent-rules   less verbose build output (undo: "make V=1")
1521  --disable-silent-rules  verbose build output (undo: "make V=0")
1522  --enable-introspection=[no/auto/yes]
1523                          Enable introspection for this build
1524  --enable-dependency-tracking
1525                          do not reject slow dependency extractors
1526  --disable-dependency-tracking
1527                          speeds up one-time build
1528  --enable-shared[=PKGS]  build shared libraries [default=yes]
1529  --enable-static[=PKGS]  build static libraries [default=yes]
1530  --enable-fast-install[=PKGS]
1531                          optimize for fast installation [default=yes]
1532  --disable-libtool-lock  avoid locking (might break parallel builds)
1533  --enable-hacker-mode    Enable building of unstable sysdeps
1534  --disable-nls           do not use Native Language Support
1535  --disable-rpath         do not hardcode runtime library paths
1536  --enable-debug          Turn on debugging [default=no]
1537  --enable-fatal-warnings Make all warnings fatal [debug=no]
1538  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1539  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1540  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1541
1542Optional Packages:
1543  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1544  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1545  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1546                          both]
1547  --with-aix-soname=aix|svr4|both
1548                          shared library versioning (aka "SONAME") variant to
1549                          provide on AIX, [default=aix].
1550  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1551  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1552                          compiler's sysroot if not specified).
1553  --with-examples         Build the libgtop examples [default=yes]
1554  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1556  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1557  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1558  --without-libintl-prefix     don't search for libintl in includedir and libdir
1559  --with-x                use the X Window System
1560  --with-html-dir=PATH    path to installed docs
1561
1562Some influential environment variables:
1563  PKG_CONFIG  path to pkg-config utility
1564  PKG_CONFIG_PATH
1565              directories to add to pkg-config's search path
1566  PKG_CONFIG_LIBDIR
1567              path overriding pkg-config's built-in search path
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  LT_SYS_LIBRARY_PATH
1577              User-defined run-time library search path.
1578  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1579  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1580  XMKMF       Path to xmkmf, Makefile generator for X Window System
1581  GTKDOC_DEPS_CFLAGS
1582              C compiler flags for GTKDOC_DEPS, overriding pkg-config
1583  GTKDOC_DEPS_LIBS
1584              linker flags for GTKDOC_DEPS, overriding pkg-config
1585
1586Use these variables to override the choices made by `configure' or to help
1587it to find libraries and programs with nonstandard names/locations.
1588
1589Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop>.
1590_ACEOF
1591ac_status=$?
1592fi
1593
1594if test "$ac_init_help" = "recursive"; then
1595  # If there are subdirs, report their specific --help.
1596  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1597    test -d "$ac_dir" ||
1598      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1599      continue
1600    ac_builddir=.
1601
1602case "$ac_dir" in
1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604*)
1605  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1606  # A ".." for each directory in $ac_dir_suffix.
1607  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1608  case $ac_top_builddir_sub in
1609  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611  esac ;;
1612esac
1613ac_abs_top_builddir=$ac_pwd
1614ac_abs_builddir=$ac_pwd$ac_dir_suffix
1615# for backward compatibility:
1616ac_top_builddir=$ac_top_build_prefix
1617
1618case $srcdir in
1619  .)  # We are building in place.
1620    ac_srcdir=.
1621    ac_top_srcdir=$ac_top_builddir_sub
1622    ac_abs_top_srcdir=$ac_pwd ;;
1623  [\\/]* | ?:[\\/]* )  # Absolute name.
1624    ac_srcdir=$srcdir$ac_dir_suffix;
1625    ac_top_srcdir=$srcdir
1626    ac_abs_top_srcdir=$srcdir ;;
1627  *) # Relative name.
1628    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1629    ac_top_srcdir=$ac_top_build_prefix$srcdir
1630    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1631esac
1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1633
1634    cd "$ac_dir" || { ac_status=$?; continue; }
1635    # Check for guested configure.
1636    if test -f "$ac_srcdir/configure.gnu"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1639    elif test -f "$ac_srcdir/configure"; then
1640      echo &&
1641      $SHELL "$ac_srcdir/configure" --help=recursive
1642    else
1643      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644    fi || ac_status=$?
1645    cd "$ac_pwd" || { ac_status=$?; break; }
1646  done
1647fi
1648
1649test -n "$ac_init_help" && exit $ac_status
1650if $ac_init_version; then
1651  cat <<\_ACEOF
1652libgtop configure 2.40.0
1653generated by GNU Autoconf 2.69
1654
1655Copyright (C) 2012 Free Software Foundation, Inc.
1656This configure script is free software; the Free Software Foundation
1657gives unlimited permission to copy, distribute and modify it.
1658_ACEOF
1659  exit
1660fi
1661
1662## ------------------------ ##
1663## Autoconf initialization. ##
1664## ------------------------ ##
1665
1666# ac_fn_c_try_compile LINENO
1667# --------------------------
1668# Try to compile conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_compile ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  rm -f conftest.$ac_objext
1673  if { { ac_try="$ac_compile"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_compile") 2>conftest.err
1681  ac_status=$?
1682  if test -s conftest.err; then
1683    grep -v '^ *+' conftest.err >conftest.er1
1684    cat conftest.er1 >&5
1685    mv -f conftest.er1 conftest.err
1686  fi
1687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688  test $ac_status = 0; } && {
1689	 test -z "$ac_c_werror_flag" ||
1690	 test ! -s conftest.err
1691       } && test -s conftest.$ac_objext; then :
1692  ac_retval=0
1693else
1694  $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697	ac_retval=1
1698fi
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700  as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_compile
1703
1704# ac_fn_c_try_link LINENO
1705# -----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_link ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  rm -f conftest.$ac_objext conftest$ac_exeext
1711  if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_link") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && {
1727	 test -z "$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       } && test -s conftest$ac_exeext && {
1730	 test "$cross_compiling" = yes ||
1731	 test -x conftest$ac_exeext
1732       }; then :
1733  ac_retval=0
1734else
1735  $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738	ac_retval=1
1739fi
1740  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742  # interfere with the next link command; also delete a directory that is
1743  # left behind by Apple's compiler.  We do this before executing the actions.
1744  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_link
1749
1750# ac_fn_c_try_cpp LINENO
1751# ----------------------
1752# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_cpp ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  if { { ac_try="$ac_cpp conftest.$ac_ext"
1757case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764  ac_status=$?
1765  if test -s conftest.err; then
1766    grep -v '^ *+' conftest.err >conftest.er1
1767    cat conftest.er1 >&5
1768    mv -f conftest.er1 conftest.err
1769  fi
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } > conftest.i && {
1772	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773	 test ! -s conftest.err
1774       }; then :
1775  ac_retval=0
1776else
1777  $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780    ac_retval=1
1781fi
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783  as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_cpp
1786
1787# ac_fn_c_try_run LINENO
1788# ----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790# that executables *can* be run.
1791ac_fn_c_try_run ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_link") 2>&5
1802  ac_status=$?
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805  { { case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_try") 2>&5
1812  ac_status=$?
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; }; }; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: program exited with status $ac_status" >&5
1818       $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821       ac_retval=$ac_status
1822fi
1823  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_run
1828
1829# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830# -------------------------------------------------------
1831# Tests whether HEADER exists and can be compiled using the include files in
1832# INCLUDES, setting the cache variable VAR accordingly.
1833ac_fn_c_check_header_compile ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843$4
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_compile "$LINENO"; then :
1847  eval "$3=yes"
1848else
1849  eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_header_compile
1859
1860# ac_fn_c_check_func LINENO FUNC VAR
1861# ----------------------------------
1862# Tests whether FUNC exists, setting the cache variable VAR accordingly
1863ac_fn_c_check_func ()
1864{
1865  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870else
1871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h.  */
1873/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1875#define $2 innocuous_$2
1876
1877/* System header to define __stub macros and hopefully few prototypes,
1878    which can conflict with char $2 (); below.
1879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880    <limits.h> exists even on freestanding compilers.  */
1881
1882#ifdef __STDC__
1883# include <limits.h>
1884#else
1885# include <assert.h>
1886#endif
1887
1888#undef $2
1889
1890/* Override any GCC internal prototype to avoid an error.
1891   Use char because int might match the return type of a GCC
1892   builtin and then its argument prototype would still apply.  */
1893#ifdef __cplusplus
1894extern "C"
1895#endif
1896char $2 ();
1897/* The GNU C library defines this for functions which it implements
1898    to always fail with ENOSYS.  Some functions are actually named
1899    something starting with __ and the normal name is an alias.  */
1900#if defined __stub_$2 || defined __stub___$2
1901choke me
1902#endif
1903
1904int
1905main ()
1906{
1907return $2 ();
1908  ;
1909  return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_link "$LINENO"; then :
1913  eval "$3=yes"
1914else
1915  eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext \
1918    conftest$ac_exeext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_c_check_func
1926
1927# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1928# -------------------------------------------------------
1929# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1930# the include files in INCLUDES and setting the cache variable VAR
1931# accordingly.
1932ac_fn_c_check_header_mongrel ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  if eval \${$3+:} false; then :
1936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939  $as_echo_n "(cached) " >&6
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944else
1945  # Is the header compilable?
1946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1947$as_echo_n "checking $2 usability... " >&6; }
1948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_c_try_compile "$LINENO"; then :
1954  ac_header_compiler=yes
1955else
1956  ac_header_compiler=no
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1960$as_echo "$ac_header_compiler" >&6; }
1961
1962# Is the header present?
1963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1964$as_echo_n "checking $2 presence... " >&6; }
1965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967#include <$2>
1968_ACEOF
1969if ac_fn_c_try_cpp "$LINENO"; then :
1970  ac_header_preproc=yes
1971else
1972  ac_header_preproc=no
1973fi
1974rm -f conftest.err conftest.i conftest.$ac_ext
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1976$as_echo "$ac_header_preproc" >&6; }
1977
1978# So?  What about this header?
1979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980  yes:no: )
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1982$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985    ;;
1986  no:yes:* )
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1988$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1990$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1991    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1992$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1994$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997( $as_echo "## ---------------------------------------------------------------------- ##
1998## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop ##
1999## ---------------------------------------------------------------------- ##"
2000     ) | sed "s/^/$as_me: WARNING:     /" >&2
2001    ;;
2002esac
2003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004$as_echo_n "checking for $2... " >&6; }
2005if eval \${$3+:} false; then :
2006  $as_echo_n "(cached) " >&6
2007else
2008  eval "$3=\$ac_header_compiler"
2009fi
2010eval ac_res=\$$3
2011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013fi
2014  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_header_mongrel
2017
2018# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019# -------------------------------------------
2020# Tests whether TYPE exists after having included INCLUDES, setting cache
2021# variable VAR accordingly.
2022ac_fn_c_check_type ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if eval \${$3+:} false; then :
2028  $as_echo_n "(cached) " >&6
2029else
2030  eval "$3=no"
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$4
2034int
2035main ()
2036{
2037if (sizeof ($2))
2038	 return 0;
2039  ;
2040  return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046$4
2047int
2048main ()
2049{
2050if (sizeof (($2)))
2051	    return 0;
2052  ;
2053  return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057
2058else
2059  eval "$3=yes"
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070} # ac_fn_c_check_type
2071
2072# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2073# ----------------------------------------------------
2074# Tries to find if the field MEMBER exists in type AGGR, after including
2075# INCLUDES, setting cache variable VAR accordingly.
2076ac_fn_c_check_member ()
2077{
2078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2080$as_echo_n "checking for $2.$3... " >&6; }
2081if eval \${$4+:} false; then :
2082  $as_echo_n "(cached) " >&6
2083else
2084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h.  */
2086$5
2087int
2088main ()
2089{
2090static $2 ac_aggr;
2091if (ac_aggr.$3)
2092return 0;
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098  eval "$4=yes"
2099else
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$5
2103int
2104main ()
2105{
2106static $2 ac_aggr;
2107if (sizeof ac_aggr.$3)
2108return 0;
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114  eval "$4=yes"
2115else
2116  eval "$4=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122eval ac_res=\$$4
2123	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124$as_echo "$ac_res" >&6; }
2125  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127} # ac_fn_c_check_member
2128cat >config.log <<_ACEOF
2129This file contains any messages produced by compilers while
2130running configure, to aid debugging if configure makes a mistake.
2131
2132It was created by libgtop $as_me 2.40.0, which was
2133generated by GNU Autoconf 2.69.  Invocation command line was
2134
2135  $ $0 $@
2136
2137_ACEOF
2138exec 5>>config.log
2139{
2140cat <<_ASUNAME
2141## --------- ##
2142## Platform. ##
2143## --------- ##
2144
2145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150
2151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2153
2154/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2155/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2158/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2159/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2160/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2161
2162_ASUNAME
2163
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169    $as_echo "PATH: $as_dir"
2170  done
2171IFS=$as_save_IFS
2172
2173} >&5
2174
2175cat >&5 <<_ACEOF
2176
2177
2178## ----------- ##
2179## Core tests. ##
2180## ----------- ##
2181
2182_ACEOF
2183
2184
2185# Keep a trace of the command line.
2186# Strip out --no-create and --no-recursion so they do not pile up.
2187# Strip out --silent because we don't want to record it for future runs.
2188# Also quote any args containing shell meta-characters.
2189# Make two passes to allow for proper duplicate-argument suppression.
2190ac_configure_args=
2191ac_configure_args0=
2192ac_configure_args1=
2193ac_must_keep_next=false
2194for ac_pass in 1 2
2195do
2196  for ac_arg
2197  do
2198    case $ac_arg in
2199    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2200    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2201    | -silent | --silent | --silen | --sile | --sil)
2202      continue ;;
2203    *\'*)
2204      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2205    esac
2206    case $ac_pass in
2207    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2208    2)
2209      as_fn_append ac_configure_args1 " '$ac_arg'"
2210      if test $ac_must_keep_next = true; then
2211	ac_must_keep_next=false # Got value, back to normal.
2212      else
2213	case $ac_arg in
2214	  *=* | --config-cache | -C | -disable-* | --disable-* \
2215	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2216	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2217	  | -with-* | --with-* | -without-* | --without-* | --x)
2218	    case "$ac_configure_args0 " in
2219	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2220	    esac
2221	    ;;
2222	  -* ) ac_must_keep_next=true ;;
2223	esac
2224      fi
2225      as_fn_append ac_configure_args " '$ac_arg'"
2226      ;;
2227    esac
2228  done
2229done
2230{ ac_configure_args0=; unset ac_configure_args0;}
2231{ ac_configure_args1=; unset ac_configure_args1;}
2232
2233# When interrupted or exit'd, cleanup temporary files, and complete
2234# config.log.  We remove comments because anyway the quotes in there
2235# would cause problems or look ugly.
2236# WARNING: Use '\'' to represent an apostrophe within the trap.
2237# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238trap 'exit_status=$?
2239  # Save into config.log some information that might help in debugging.
2240  {
2241    echo
2242
2243    $as_echo "## ---------------- ##
2244## Cache variables. ##
2245## ---------------- ##"
2246    echo
2247    # The following way of writing the cache mishandles newlines in values,
2248(
2249  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250    eval ac_val=\$$ac_var
2251    case $ac_val in #(
2252    *${as_nl}*)
2253      case $ac_var in #(
2254      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256      esac
2257      case $ac_var in #(
2258      _ | IFS | as_nl) ;; #(
2259      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260      *) { eval $ac_var=; unset $ac_var;} ;;
2261      esac ;;
2262    esac
2263  done
2264  (set) 2>&1 |
2265    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266    *${as_nl}ac_space=\ *)
2267      sed -n \
2268	"s/'\''/'\''\\\\'\'''\''/g;
2269	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270      ;; #(
2271    *)
2272      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273      ;;
2274    esac |
2275    sort
2276)
2277    echo
2278
2279    $as_echo "## ----------------- ##
2280## Output variables. ##
2281## ----------------- ##"
2282    echo
2283    for ac_var in $ac_subst_vars
2284    do
2285      eval ac_val=\$$ac_var
2286      case $ac_val in
2287      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288      esac
2289      $as_echo "$ac_var='\''$ac_val'\''"
2290    done | sort
2291    echo
2292
2293    if test -n "$ac_subst_files"; then
2294      $as_echo "## ------------------- ##
2295## File substitutions. ##
2296## ------------------- ##"
2297      echo
2298      for ac_var in $ac_subst_files
2299      do
2300	eval ac_val=\$$ac_var
2301	case $ac_val in
2302	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303	esac
2304	$as_echo "$ac_var='\''$ac_val'\''"
2305      done | sort
2306      echo
2307    fi
2308
2309    if test -s confdefs.h; then
2310      $as_echo "## ----------- ##
2311## confdefs.h. ##
2312## ----------- ##"
2313      echo
2314      cat confdefs.h
2315      echo
2316    fi
2317    test "$ac_signal" != 0 &&
2318      $as_echo "$as_me: caught signal $ac_signal"
2319    $as_echo "$as_me: exit $exit_status"
2320  } >&5
2321  rm -f core *.core core.conftest.* &&
2322    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2323    exit $exit_status
2324' 0
2325for ac_signal in 1 2 13 15; do
2326  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2327done
2328ac_signal=0
2329
2330# confdefs.h avoids OS command line length limits that DEFS can exceed.
2331rm -f -r conftest* confdefs.h
2332
2333$as_echo "/* confdefs.h */" > confdefs.h
2334
2335# Predefined preprocessor variables.
2336
2337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_NAME "$PACKAGE_NAME"
2339_ACEOF
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_VERSION "$PACKAGE_VERSION"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_STRING "$PACKAGE_STRING"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_URL "$PACKAGE_URL"
2359_ACEOF
2360
2361
2362# Let the site file select an alternate cache file if it wants to.
2363# Prefer an explicitly selected file to automatically selected ones.
2364ac_site_file1=NONE
2365ac_site_file2=NONE
2366if test -n "$CONFIG_SITE"; then
2367  # We do not want a PATH search for config.site.
2368  case $CONFIG_SITE in #((
2369    -*)  ac_site_file1=./$CONFIG_SITE;;
2370    */*) ac_site_file1=$CONFIG_SITE;;
2371    *)   ac_site_file1=./$CONFIG_SITE;;
2372  esac
2373elif test "x$prefix" != xNONE; then
2374  ac_site_file1=$prefix/share/config.site
2375  ac_site_file2=$prefix/etc/config.site
2376else
2377  ac_site_file1=$ac_default_prefix/share/config.site
2378  ac_site_file2=$ac_default_prefix/etc/config.site
2379fi
2380for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2381do
2382  test "x$ac_site_file" = xNONE && continue
2383  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2384    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2385$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2386    sed 's/^/| /' "$ac_site_file" >&5
2387    . "$ac_site_file" \
2388      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390as_fn_error $? "failed to load site script $ac_site_file
2391See \`config.log' for more details" "$LINENO" 5; }
2392  fi
2393done
2394
2395if test -r "$cache_file"; then
2396  # Some versions of bash will fail to source /dev/null (special files
2397  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2398  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2399    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2400$as_echo "$as_me: loading cache $cache_file" >&6;}
2401    case $cache_file in
2402      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2403      *)                      . "./$cache_file";;
2404    esac
2405  fi
2406else
2407  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2408$as_echo "$as_me: creating cache $cache_file" >&6;}
2409  >$cache_file
2410fi
2411
2412as_fn_append ac_header_list " stdlib.h"
2413as_fn_append ac_header_list " unistd.h"
2414as_fn_append ac_header_list " sys/param.h"
2415gt_needs="$gt_needs "
2416# Check that the precious variables saved in the cache have kept the same
2417# value.
2418ac_cache_corrupted=false
2419for ac_var in $ac_precious_vars; do
2420  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421  eval ac_new_set=\$ac_env_${ac_var}_set
2422  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423  eval ac_new_val=\$ac_env_${ac_var}_value
2424  case $ac_old_set,$ac_new_set in
2425    set,)
2426      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428      ac_cache_corrupted=: ;;
2429    ,set)
2430      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432      ac_cache_corrupted=: ;;
2433    ,);;
2434    *)
2435      if test "x$ac_old_val" != "x$ac_new_val"; then
2436	# differences in whitespace do not lead to failure.
2437	ac_old_val_w=`echo x $ac_old_val`
2438	ac_new_val_w=`echo x $ac_new_val`
2439	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442	  ac_cache_corrupted=:
2443	else
2444	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446	  eval $ac_var=\$ac_old_val
2447	fi
2448	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2449$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2450	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2451$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2452      fi;;
2453  esac
2454  # Pass precious variables to config.status.
2455  if test "$ac_new_set" = set; then
2456    case $ac_new_val in
2457    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458    *) ac_arg=$ac_var=$ac_new_val ;;
2459    esac
2460    case " $ac_configure_args " in
2461      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2462      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463    esac
2464  fi
2465done
2466if $ac_cache_corrupted; then
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472fi
2473## -------------------- ##
2474## Main body of script. ##
2475## -------------------- ##
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483
2484
2485ac_config_headers="$ac_config_headers config.h"
2486
2487
2488ac_aux_dir=
2489for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2490  if test -f "$ac_dir/install-sh"; then
2491    ac_aux_dir=$ac_dir
2492    ac_install_sh="$ac_aux_dir/install-sh -c"
2493    break
2494  elif test -f "$ac_dir/install.sh"; then
2495    ac_aux_dir=$ac_dir
2496    ac_install_sh="$ac_aux_dir/install.sh -c"
2497    break
2498  elif test -f "$ac_dir/shtool"; then
2499    ac_aux_dir=$ac_dir
2500    ac_install_sh="$ac_aux_dir/shtool install -c"
2501    break
2502  fi
2503done
2504if test -z "$ac_aux_dir"; then
2505  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506fi
2507
2508# These three variables are undocumented and unsupported,
2509# and are intended to be withdrawn in a future Autoconf release.
2510# They can cause serious problems if a builder's source tree is in a directory
2511# whose full name contains unusual characters.
2512ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2513ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2514ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2515
2516
2517# Make sure we can run config.sub.
2518$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2519  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2522$as_echo_n "checking build system type... " >&6; }
2523if ${ac_cv_build+:} false; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  ac_build_alias=$build_alias
2527test "x$ac_build_alias" = x &&
2528  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2529test "x$ac_build_alias" = x &&
2530  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2531ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2532  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533
2534fi
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2536$as_echo "$ac_cv_build" >&6; }
2537case $ac_cv_build in
2538*-*-*) ;;
2539*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2540esac
2541build=$ac_cv_build
2542ac_save_IFS=$IFS; IFS='-'
2543set x $ac_cv_build
2544shift
2545build_cpu=$1
2546build_vendor=$2
2547shift; shift
2548# Remember, the first character of IFS is used to create $*,
2549# except with old shells:
2550build_os=$*
2551IFS=$ac_save_IFS
2552case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2556$as_echo_n "checking host system type... " >&6; }
2557if ${ac_cv_host+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test "x$host_alias" = x; then
2561  ac_cv_host=$ac_cv_build
2562else
2563  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2564    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2565fi
2566
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2569$as_echo "$ac_cv_host" >&6; }
2570case $ac_cv_host in
2571*-*-*) ;;
2572*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2573esac
2574host=$ac_cv_host
2575ac_save_IFS=$IFS; IFS='-'
2576set x $ac_cv_host
2577shift
2578host_cpu=$1
2579host_vendor=$2
2580shift; shift
2581# Remember, the first character of IFS is used to create $*,
2582# except with old shells:
2583host_os=$*
2584IFS=$ac_save_IFS
2585case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586
2587
2588
2589am__api_version='1.16'
2590
2591# Find a good install program.  We prefer a C program (faster),
2592# so one script is as good as another.  But avoid the broken or
2593# incompatible versions:
2594# SysV /etc/install, /usr/sbin/install
2595# SunOS /usr/etc/install
2596# IRIX /sbin/install
2597# AIX /bin/install
2598# AmigaOS /C/install, which installs bootblocks on floppy discs
2599# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602# OS/2's system install, which has a completely different semantic
2603# ./install, which can be erroneously created by make from ./install.sh.
2604# Reject install programs that cannot install multiple files.
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606$as_echo_n "checking for a BSD-compatible install... " >&6; }
2607if test -z "$INSTALL"; then
2608if ${ac_cv_path_install+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    # Account for people who put trailing slashes in PATH elements.
2617case $as_dir/ in #((
2618  ./ | .// | /[cC]/* | \
2619  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621  /usr/ucb/* ) ;;
2622  *)
2623    # OSF1 and SCO ODT 3.0 have their own names for install.
2624    # Don't use installbsd from OSF since it installs stuff as root
2625    # by default.
2626    for ac_prog in ginstall scoinst install; do
2627      for ac_exec_ext in '' $ac_executable_extensions; do
2628	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629	  if test $ac_prog = install &&
2630	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631	    # AIX install.  It has an incompatible calling convention.
2632	    :
2633	  elif test $ac_prog = install &&
2634	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635	    # program-specific install script used by HP pwplus--don't use.
2636	    :
2637	  else
2638	    rm -rf conftest.one conftest.two conftest.dir
2639	    echo one > conftest.one
2640	    echo two > conftest.two
2641	    mkdir conftest.dir
2642	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2643	      test -s conftest.one && test -s conftest.two &&
2644	      test -s conftest.dir/conftest.one &&
2645	      test -s conftest.dir/conftest.two
2646	    then
2647	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648	      break 3
2649	    fi
2650	  fi
2651	fi
2652      done
2653    done
2654    ;;
2655esac
2656
2657  done
2658IFS=$as_save_IFS
2659
2660rm -rf conftest.one conftest.two conftest.dir
2661
2662fi
2663  if test "${ac_cv_path_install+set}" = set; then
2664    INSTALL=$ac_cv_path_install
2665  else
2666    # As a last resort, use the slow shell script.  Don't cache a
2667    # value for INSTALL within a source directory, because that will
2668    # break other packages using the cache if that directory is
2669    # removed, or if the value is a relative name.
2670    INSTALL=$ac_install_sh
2671  fi
2672fi
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674$as_echo "$INSTALL" >&6; }
2675
2676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677# It thinks the first close brace ends the variable substitution.
2678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
2680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681
2682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685$as_echo_n "checking whether build environment is sane... " >&6; }
2686# Reject unsafe characters in $srcdir or the absolute working directory
2687# name.  Accept space and tab only in the latter.
2688am_lf='
2689'
2690case `pwd` in
2691  *[\\\"\#\$\&\'\`$am_lf]*)
2692    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693esac
2694case $srcdir in
2695  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2696    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697esac
2698
2699# Do 'set' in a subshell so we don't clobber the current shell's
2700# arguments.  Must try -L first in case configure is actually a
2701# symlink; some systems play weird games with the mod time of symlinks
2702# (eg FreeBSD returns the mod time of the symlink's containing
2703# directory).
2704if (
2705   am_has_slept=no
2706   for am_try in 1 2; do
2707     echo "timestamp, slept: $am_has_slept" > conftest.file
2708     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709     if test "$*" = "X"; then
2710	# -L didn't work.
2711	set X `ls -t "$srcdir/configure" conftest.file`
2712     fi
2713     if test "$*" != "X $srcdir/configure conftest.file" \
2714	&& test "$*" != "X conftest.file $srcdir/configure"; then
2715
2716	# If neither matched, then we have a broken ls.  This can happen
2717	# if, for instance, CONFIG_SHELL is bash and it inherits a
2718	# broken ls alias from the environment.  This has actually
2719	# happened.  Such a system could not be considered "sane".
2720	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2721  alias in your environment" "$LINENO" 5
2722     fi
2723     if test "$2" = conftest.file || test $am_try -eq 2; then
2724       break
2725     fi
2726     # Just in case.
2727     sleep 1
2728     am_has_slept=yes
2729   done
2730   test "$2" = conftest.file
2731   )
2732then
2733   # Ok.
2734   :
2735else
2736   as_fn_error $? "newly created file is older than distributed files!
2737Check your system clock" "$LINENO" 5
2738fi
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740$as_echo "yes" >&6; }
2741# If we didn't sleep, we still need to ensure time stamps of config.status and
2742# generated files are strictly newer.
2743am_sleep_pid=
2744if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2745  ( sleep 1 ) &
2746  am_sleep_pid=$!
2747fi
2748
2749rm -f conftest.file
2750
2751test "$program_prefix" != NONE &&
2752  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2753# Use a double $ so make ignores it.
2754test "$program_suffix" != NONE &&
2755  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2756# Double any \ or $.
2757# By default was `s,x,x', remove it if useless.
2758ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2759program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760
2761# Expand $ac_aux_dir to an absolute path.
2762am_aux_dir=`cd "$ac_aux_dir" && pwd`
2763
2764if test x"${MISSING+set}" != xset; then
2765  case $am_aux_dir in
2766  *\ * | *\	*)
2767    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2768  *)
2769    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2770  esac
2771fi
2772# Use eval to expand $SHELL
2773if eval "$MISSING --is-lightweight"; then
2774  am_missing_run="$MISSING "
2775else
2776  am_missing_run=
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2778$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2779fi
2780
2781if test x"${install_sh+set}" != xset; then
2782  case $am_aux_dir in
2783  *\ * | *\	*)
2784    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2785  *)
2786    install_sh="\${SHELL} $am_aux_dir/install-sh"
2787  esac
2788fi
2789
2790# Installed binaries are usually stripped using 'strip' when the user
2791# run "make install-strip".  However 'strip' might not be the right
2792# tool to use in cross-compilation environments, therefore Automake
2793# will honor the 'STRIP' environment variable to overrule this program.
2794if test "$cross_compiling" != no; then
2795  if test -n "$ac_tool_prefix"; then
2796  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2797set dummy ${ac_tool_prefix}strip; ac_word=$2
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799$as_echo_n "checking for $ac_word... " >&6; }
2800if ${ac_cv_prog_STRIP+:} false; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  if test -n "$STRIP"; then
2804  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809  IFS=$as_save_IFS
2810  test -z "$as_dir" && as_dir=.
2811    for ac_exec_ext in '' $ac_executable_extensions; do
2812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815    break 2
2816  fi
2817done
2818  done
2819IFS=$as_save_IFS
2820
2821fi
2822fi
2823STRIP=$ac_cv_prog_STRIP
2824if test -n "$STRIP"; then
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2826$as_echo "$STRIP" >&6; }
2827else
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833fi
2834if test -z "$ac_cv_prog_STRIP"; then
2835  ac_ct_STRIP=$STRIP
2836  # Extract the first word of "strip", so it can be a program name with args.
2837set dummy strip; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2841  $as_echo_n "(cached) " >&6
2842else
2843  if test -n "$ac_ct_STRIP"; then
2844  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851    for ac_exec_ext in '' $ac_executable_extensions; do
2852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853    ac_cv_prog_ac_ct_STRIP="strip"
2854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2864if test -n "$ac_ct_STRIP"; then
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2866$as_echo "$ac_ct_STRIP" >&6; }
2867else
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872  if test "x$ac_ct_STRIP" = x; then
2873    STRIP=":"
2874  else
2875    case $cross_compiling:$ac_tool_warned in
2876yes:)
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879ac_tool_warned=yes ;;
2880esac
2881    STRIP=$ac_ct_STRIP
2882  fi
2883else
2884  STRIP="$ac_cv_prog_STRIP"
2885fi
2886
2887fi
2888INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2889
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2891$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2892if test -z "$MKDIR_P"; then
2893  if ${ac_cv_path_mkdir+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901    for ac_prog in mkdir gmkdir; do
2902	 for ac_exec_ext in '' $ac_executable_extensions; do
2903	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2904	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905	     'mkdir (GNU coreutils) '* | \
2906	     'mkdir (coreutils) '* | \
2907	     'mkdir (fileutils) '4.1*)
2908	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2909	       break 3;;
2910	   esac
2911	 done
2912       done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917
2918  test -d ./--version && rmdir ./--version
2919  if test "${ac_cv_path_mkdir+set}" = set; then
2920    MKDIR_P="$ac_cv_path_mkdir -p"
2921  else
2922    # As a last resort, use the slow shell script.  Don't cache a
2923    # value for MKDIR_P within a source directory, because that will
2924    # break other packages using the cache if that directory is
2925    # removed, or if the value is a relative name.
2926    MKDIR_P="$ac_install_sh -d"
2927  fi
2928fi
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930$as_echo "$MKDIR_P" >&6; }
2931
2932for ac_prog in gawk mawk nawk awk
2933do
2934  # Extract the first word of "$ac_prog", so it can be a program name with args.
2935set dummy $ac_prog; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if ${ac_cv_prog_AWK+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$AWK"; then
2942  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943else
2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945for as_dir in $PATH
2946do
2947  IFS=$as_save_IFS
2948  test -z "$as_dir" && as_dir=.
2949    for ac_exec_ext in '' $ac_executable_extensions; do
2950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951    ac_cv_prog_AWK="$ac_prog"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959fi
2960fi
2961AWK=$ac_cv_prog_AWK
2962if test -n "$AWK"; then
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964$as_echo "$AWK" >&6; }
2965else
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968fi
2969
2970
2971  test -n "$AWK" && break
2972done
2973
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2975$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976set x ${MAKE-make}
2977ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2978if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2979  $as_echo_n "(cached) " >&6
2980else
2981  cat >conftest.make <<\_ACEOF
2982SHELL = /bin/sh
2983all:
2984	@echo '@@@%%%=$(MAKE)=@@@%%%'
2985_ACEOF
2986# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2987case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988  *@@@%%%=?*=@@@%%%*)
2989    eval ac_cv_prog_make_${ac_make}_set=yes;;
2990  *)
2991    eval ac_cv_prog_make_${ac_make}_set=no;;
2992esac
2993rm -f conftest.make
2994fi
2995if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997$as_echo "yes" >&6; }
2998  SET_MAKE=
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002  SET_MAKE="MAKE=${MAKE-make}"
3003fi
3004
3005rm -rf .tst 2>/dev/null
3006mkdir .tst 2>/dev/null
3007if test -d .tst; then
3008  am__leading_dot=.
3009else
3010  am__leading_dot=_
3011fi
3012rmdir .tst 2>/dev/null
3013
3014# Check whether --enable-silent-rules was given.
3015if test "${enable_silent_rules+set}" = set; then :
3016  enableval=$enable_silent_rules;
3017fi
3018
3019case $enable_silent_rules in # (((
3020  yes) AM_DEFAULT_VERBOSITY=0;;
3021   no) AM_DEFAULT_VERBOSITY=1;;
3022    *) AM_DEFAULT_VERBOSITY=1;;
3023esac
3024am_make=${MAKE-make}
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3026$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3027if ${am_cv_make_support_nested_variables+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  if $as_echo 'TRUE=$(BAR$(V))
3031BAR0=false
3032BAR1=true
3033V=1
3034am__doit:
3035	@$(TRUE)
3036.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3037  am_cv_make_support_nested_variables=yes
3038else
3039  am_cv_make_support_nested_variables=no
3040fi
3041fi
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3043$as_echo "$am_cv_make_support_nested_variables" >&6; }
3044if test $am_cv_make_support_nested_variables = yes; then
3045    AM_V='$(V)'
3046  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3047else
3048  AM_V=$AM_DEFAULT_VERBOSITY
3049  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3050fi
3051AM_BACKSLASH='\'
3052
3053if test "`cd $srcdir && pwd`" != "`pwd`"; then
3054  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3055  # is not polluted with repeated "-I."
3056  am__isrc=' -I$(srcdir)'
3057  # test to see if srcdir already configured
3058  if test -f $srcdir/config.status; then
3059    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3060  fi
3061fi
3062
3063# test whether we have cygpath
3064if test -z "$CYGPATH_W"; then
3065  if (cygpath --version) >/dev/null 2>/dev/null; then
3066    CYGPATH_W='cygpath -w'
3067  else
3068    CYGPATH_W=echo
3069  fi
3070fi
3071
3072
3073# Define the identity of the package.
3074 PACKAGE='libgtop'
3075 VERSION='2.40.0'
3076
3077
3078cat >>confdefs.h <<_ACEOF
3079#define PACKAGE "$PACKAGE"
3080_ACEOF
3081
3082
3083cat >>confdefs.h <<_ACEOF
3084#define VERSION "$VERSION"
3085_ACEOF
3086
3087# Some tools Automake needs.
3088
3089ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3090
3091
3092AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3093
3094
3095AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3096
3097
3098AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3099
3100
3101MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3102
3103# For better backward compatibility.  To be removed once Automake 1.9.x
3104# dies out for good.  For more background, see:
3105# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3106# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3107mkdir_p='$(MKDIR_P)'
3108
3109# We need awk for the "check" target (and possibly the TAP driver).  The
3110# system "awk" is bad on some platforms.
3111# Always define AMTAR for backward compatibility.  Yes, it's still used
3112# in the wild :-(  We should find a proper way to deprecate it ...
3113AMTAR='$${TAR-tar}'
3114
3115
3116# We'll loop over all known methods to create a tar archive until one works.
3117_am_tools='gnutar plaintar pax cpio none'
3118
3119# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3120      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3121      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3122      # and bug#13588).
3123      am_max_uid=2097151 # 2^21 - 1
3124      am_max_gid=$am_max_uid
3125      # The $UID and $GID variables are not portable, so we need to resort
3126      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3127      # below are definitely unexpected, so allow the users to see them
3128      # (that is, avoid stderr redirection).
3129      am_uid=`id -u || echo unknown`
3130      am_gid=`id -g || echo unknown`
3131      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3132$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3133      if test $am_uid -le $am_max_uid; then
3134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136      else
3137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139         _am_tools=none
3140      fi
3141      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3142$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3143      if test $am_gid -le $am_max_gid; then
3144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145$as_echo "yes" >&6; }
3146      else
3147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3149        _am_tools=none
3150      fi
3151
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3153$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3154
3155  # Go ahead even if we have the value already cached.  We do so because we
3156  # need to set the values for the 'am__tar' and 'am__untar' variables.
3157  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3158
3159  for _am_tool in $_am_tools; do
3160    case $_am_tool in
3161    gnutar)
3162      for _am_tar in tar gnutar gtar; do
3163        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3164   ($_am_tar --version) >&5 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); } && break
3168      done
3169      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3170      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3171      am__untar="$_am_tar -xf -"
3172      ;;
3173    plaintar)
3174      # Must skip GNU tar: if it does not support --format= it doesn't create
3175      # ustar tarball either.
3176      (tar --version) >/dev/null 2>&1 && continue
3177      am__tar='tar chf - "$$tardir"'
3178      am__tar_='tar chf - "$tardir"'
3179      am__untar='tar xf -'
3180      ;;
3181    pax)
3182      am__tar='pax -L -x ustar -w "$$tardir"'
3183      am__tar_='pax -L -x ustar -w "$tardir"'
3184      am__untar='pax -r'
3185      ;;
3186    cpio)
3187      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3188      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3189      am__untar='cpio -i -H ustar -d'
3190      ;;
3191    none)
3192      am__tar=false
3193      am__tar_=false
3194      am__untar=false
3195      ;;
3196    esac
3197
3198    # If the value was cached, stop now.  We just wanted to have am__tar
3199    # and am__untar set.
3200    test -n "${am_cv_prog_tar_ustar}" && break
3201
3202    # tar/untar a dummy directory, and stop if the command works.
3203    rm -rf conftest.dir
3204    mkdir conftest.dir
3205    echo GrepMe > conftest.dir/file
3206    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3207   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211    rm -rf conftest.dir
3212    if test -s conftest.tar; then
3213      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3214   ($am__untar <conftest.tar) >&5 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }
3218      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3219   (cat conftest.dir/file) >&5 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }
3223      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3224    fi
3225  done
3226  rm -rf conftest.dir
3227
3228  if ${am_cv_prog_tar_ustar+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  am_cv_prog_tar_ustar=$_am_tool
3232fi
3233
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3235$as_echo "$am_cv_prog_tar_ustar" >&6; }
3236
3237
3238
3239
3240
3241
3242# POSIX will say in a future version that running "rm -f" with no argument
3243# is OK; and we want to be able to make that assumption in our Makefile
3244# recipes.  So use an aggressive probe to check that the usage we want is
3245# actually supported "in the wild" to an acceptable degree.
3246# See automake bug#10828.
3247# To make any issue more visible, cause the running configure to be aborted
3248# by default if the 'rm' program in use doesn't match our expectations; the
3249# user can still override this though.
3250if rm -f && rm -fr && rm -rf; then : OK; else
3251  cat >&2 <<'END'
3252Oops!
3253
3254Your 'rm' program seems unable to run without file operands specified
3255on the command line, even when the '-f' option is present.  This is contrary
3256to the behaviour of most rm programs out there, and not conforming with
3257the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3258
3259Please tell bug-automake@gnu.org about your system, including the value
3260of your $PATH and any error possibly output before this message.  This
3261can help us improve future automake versions.
3262
3263END
3264  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3265    echo 'Configuration will proceed anyway, since you have set the' >&2
3266    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3267    echo >&2
3268  else
3269    cat >&2 <<'END'
3270Aborting the configuration process, to ensure you take notice of the issue.
3271
3272You can download and install GNU coreutils to get an 'rm' implementation
3273that behaves properly: <https://www.gnu.org/software/coreutils/>.
3274
3275If you want to complete the configuration process using your problematic
3276'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3277to "yes", and re-run configure.
3278
3279END
3280    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3281  fi
3282fi
3283
3284# Check whether --enable-silent-rules was given.
3285if test "${enable_silent_rules+set}" = set; then :
3286  enableval=$enable_silent_rules;
3287fi
3288
3289case $enable_silent_rules in # (((
3290  yes) AM_DEFAULT_VERBOSITY=0;;
3291   no) AM_DEFAULT_VERBOSITY=1;;
3292    *) AM_DEFAULT_VERBOSITY=0;;
3293esac
3294am_make=${MAKE-make}
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3296$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3297if ${am_cv_make_support_nested_variables+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  if $as_echo 'TRUE=$(BAR$(V))
3301BAR0=false
3302BAR1=true
3303V=1
3304am__doit:
3305	@$(TRUE)
3306.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3307  am_cv_make_support_nested_variables=yes
3308else
3309  am_cv_make_support_nested_variables=no
3310fi
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3313$as_echo "$am_cv_make_support_nested_variables" >&6; }
3314if test $am_cv_make_support_nested_variables = yes; then
3315    AM_V='$(V)'
3316  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3317else
3318  AM_V=$AM_DEFAULT_VERBOSITY
3319  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3320fi
3321AM_BACKSLASH='\'
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3332	if test -n "$ac_tool_prefix"; then
3333  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3334set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_path_PKG_CONFIG+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  case $PKG_CONFIG in
3341  [\\/]* | ?:[\\/]*)
3342  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3343  ;;
3344  *)
3345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348  IFS=$as_save_IFS
3349  test -z "$as_dir" && as_dir=.
3350    for ac_exec_ext in '' $ac_executable_extensions; do
3351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354    break 2
3355  fi
3356done
3357  done
3358IFS=$as_save_IFS
3359
3360  ;;
3361esac
3362fi
3363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3364if test -n "$PKG_CONFIG"; then
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3366$as_echo "$PKG_CONFIG" >&6; }
3367else
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3370fi
3371
3372
3373fi
3374if test -z "$ac_cv_path_PKG_CONFIG"; then
3375  ac_pt_PKG_CONFIG=$PKG_CONFIG
3376  # Extract the first word of "pkg-config", so it can be a program name with args.
3377set dummy pkg-config; ac_word=$2
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379$as_echo_n "checking for $ac_word... " >&6; }
3380if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  case $ac_pt_PKG_CONFIG in
3384  [\\/]* | ?:[\\/]*)
3385  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3386  ;;
3387  *)
3388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391  IFS=$as_save_IFS
3392  test -z "$as_dir" && as_dir=.
3393    for ac_exec_ext in '' $ac_executable_extensions; do
3394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400  done
3401IFS=$as_save_IFS
3402
3403  ;;
3404esac
3405fi
3406ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3407if test -n "$ac_pt_PKG_CONFIG"; then
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3409$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3410else
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413fi
3414
3415  if test "x$ac_pt_PKG_CONFIG" = x; then
3416    PKG_CONFIG=""
3417  else
3418    case $cross_compiling:$ac_tool_warned in
3419yes:)
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422ac_tool_warned=yes ;;
3423esac
3424    PKG_CONFIG=$ac_pt_PKG_CONFIG
3425  fi
3426else
3427  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3428fi
3429
3430fi
3431if test -n "$PKG_CONFIG"; then
3432	_pkg_min_version=0.9.0
3433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3434$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3435	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437$as_echo "yes" >&6; }
3438	else
3439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441		PKG_CONFIG=""
3442	fi
3443fi
3444
3445
3446
3447                # Check whether --enable-introspection was given.
3448if test "${enable_introspection+set}" = set; then :
3449  enableval=$enable_introspection;
3450else
3451  enable_introspection=auto
3452fi
3453
3454
3455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
3456$as_echo_n "checking for gobject-introspection... " >&6; }
3457
3458        case $enable_introspection in #(
3459  no) :
3460            found_introspection="no (disabled, use --enable-introspection to enable)"
3461     ;; #(
3462      yes) :
3463            if test -n "$PKG_CONFIG" && \
3464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
3465  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then
3469  :
3470else
3471  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
3472fi
3473        if test -n "$PKG_CONFIG" && \
3474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
3475  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
3476  ac_status=$?
3477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478  test $ac_status = 0; }; then
3479  found_introspection=yes
3480else
3481  as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build libgtop" "$LINENO" 5
3482fi
3483     ;; #(
3484      auto) :
3485            if test -n "$PKG_CONFIG" && \
3486    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
3487  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
3488  ac_status=$?
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }; then
3491  found_introspection=yes
3492else
3493  found_introspection=no
3494fi
3495     ;; #(
3496  *) :
3497                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
3498     ;;
3499esac
3500    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
3501$as_echo "$found_introspection" >&6; }
3502
3503    INTROSPECTION_SCANNER=
3504    INTROSPECTION_COMPILER=
3505    INTROSPECTION_GENERATE=
3506    INTROSPECTION_GIRDIR=
3507    INTROSPECTION_TYPELIBDIR=
3508    if test "x$found_introspection" = "xyes"; then
3509       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
3510       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
3511       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
3512       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
3513       INTROSPECTION_GIRDIR=`echo ${INTROSPECTION_GIRDIR} | sed -e "s|${datadir}|\\\$(datadir)|"`
3514       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
3515       INTROSPECTION_TYPELIBDIR=`echo ${INTROSPECTION_TYPELIBDIR} | sed -e "s|${libdir}|\\\$(libdir)|"`
3516       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
3517       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
3518       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
3519    fi
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529     if test "x$found_introspection" = "xyes"; then
3530  HAVE_INTROSPECTION_TRUE=
3531  HAVE_INTROSPECTION_FALSE='#'
3532else
3533  HAVE_INTROSPECTION_TRUE='#'
3534  HAVE_INTROSPECTION_FALSE=
3535fi
3536
3537
3538
3539
3540ACLOCAL_AMFLAGS=\${ACLOCAL_FLAGS}
3541
3542
3543LIBGTOP_MAJOR_VERSION=2
3544
3545LIBGTOP_MINOR_VERSION=40
3546
3547LIBGTOP_MICRO_VERSION=0
3548
3549LIBGTOP_SERVER_VERSION=5
3550
3551LIBGTOP_VERSION=2.40.0
3552
3553LIBGTOP_VERSION_CODE=2040000
3554
3555
3556# libtool versioning
3557LT_VERSION_INFO="-version-info 11:1:0"
3558
3559
3560ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I ."
3561
3562DEPDIR="${am__leading_dot}deps"
3563
3564ac_config_commands="$ac_config_commands depfiles"
3565
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3567$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3568cat > confinc.mk << 'END'
3569am__doit:
3570	@echo this is the am__doit target >confinc.out
3571.PHONY: am__doit
3572END
3573am__include="#"
3574am__quote=
3575# BSD make does it like this.
3576echo '.include "confinc.mk" # ignored' > confmf.BSD
3577# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3578echo 'include confinc.mk # ignored' > confmf.GNU
3579_am_result=no
3580for s in GNU BSD; do
3581  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3582   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }
3586  case $?:`cat confinc.out 2>/dev/null` in #(
3587  '0:this is the am__doit target') :
3588    case $s in #(
3589  BSD) :
3590    am__include='.include' am__quote='"' ;; #(
3591  *) :
3592    am__include='include' am__quote='' ;;
3593esac ;; #(
3594  *) :
3595     ;;
3596esac
3597  if test "$am__include" != "#"; then
3598    _am_result="yes ($s style)"
3599    break
3600  fi
3601done
3602rm -f confinc.* confmf.*
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3604$as_echo "${_am_result}" >&6; }
3605
3606# Check whether --enable-dependency-tracking was given.
3607if test "${enable_dependency_tracking+set}" = set; then :
3608  enableval=$enable_dependency_tracking;
3609fi
3610
3611if test "x$enable_dependency_tracking" != xno; then
3612  am_depcomp="$ac_aux_dir/depcomp"
3613  AMDEPBACKSLASH='\'
3614  am__nodep='_no'
3615fi
3616 if test "x$enable_dependency_tracking" != xno; then
3617  AMDEP_TRUE=
3618  AMDEP_FALSE='#'
3619else
3620  AMDEP_TRUE='#'
3621  AMDEP_FALSE=
3622fi
3623
3624
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630if test -n "$ac_tool_prefix"; then
3631  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3632set dummy ${ac_tool_prefix}gcc; ac_word=$2
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
3635if ${ac_cv_prog_CC+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  if test -n "$CC"; then
3639  ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661$as_echo "$CC" >&6; }
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665fi
3666
3667
3668fi
3669if test -z "$ac_cv_prog_CC"; then
3670  ac_ct_CC=$CC
3671  # Extract the first word of "gcc", so it can be a program name with args.
3672set dummy gcc; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
3675if ${ac_cv_prog_ac_ct_CC+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -n "$ac_ct_CC"; then
3679  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3680else
3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684  IFS=$as_save_IFS
3685  test -z "$as_dir" && as_dir=.
3686    for ac_exec_ext in '' $ac_executable_extensions; do
3687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688    ac_cv_prog_ac_ct_CC="gcc"
3689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690    break 2
3691  fi
3692done
3693  done
3694IFS=$as_save_IFS
3695
3696fi
3697fi
3698ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699if test -n "$ac_ct_CC"; then
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701$as_echo "$ac_ct_CC" >&6; }
3702else
3703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705fi
3706
3707  if test "x$ac_ct_CC" = x; then
3708    CC=""
3709  else
3710    case $cross_compiling:$ac_tool_warned in
3711yes:)
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714ac_tool_warned=yes ;;
3715esac
3716    CC=$ac_ct_CC
3717  fi
3718else
3719  CC="$ac_cv_prog_CC"
3720fi
3721
3722if test -z "$CC"; then
3723          if test -n "$ac_tool_prefix"; then
3724    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3725set dummy ${ac_tool_prefix}cc; ac_word=$2
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727$as_echo_n "checking for $ac_word... " >&6; }
3728if ${ac_cv_prog_CC+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  if test -n "$CC"; then
3732  ac_cv_prog_CC="$CC" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741    ac_cv_prog_CC="${ac_tool_prefix}cc"
3742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743    break 2
3744  fi
3745done
3746  done
3747IFS=$as_save_IFS
3748
3749fi
3750fi
3751CC=$ac_cv_prog_CC
3752if test -n "$CC"; then
3753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754$as_echo "$CC" >&6; }
3755else
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
3758fi
3759
3760
3761  fi
3762fi
3763if test -z "$CC"; then
3764  # Extract the first word of "cc", so it can be a program name with args.
3765set dummy cc; ac_word=$2
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767$as_echo_n "checking for $ac_word... " >&6; }
3768if ${ac_cv_prog_CC+:} false; then :
3769  $as_echo_n "(cached) " >&6
3770else
3771  if test -n "$CC"; then
3772  ac_cv_prog_CC="$CC" # Let the user override the test.
3773else
3774  ac_prog_rejected=no
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778  IFS=$as_save_IFS
3779  test -z "$as_dir" && as_dir=.
3780    for ac_exec_ext in '' $ac_executable_extensions; do
3781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3783       ac_prog_rejected=yes
3784       continue
3785     fi
3786    ac_cv_prog_CC="cc"
3787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788    break 2
3789  fi
3790done
3791  done
3792IFS=$as_save_IFS
3793
3794if test $ac_prog_rejected = yes; then
3795  # We found a bogon in the path, so make sure we never use it.
3796  set dummy $ac_cv_prog_CC
3797  shift
3798  if test $# != 0; then
3799    # We chose a different compiler from the bogus one.
3800    # However, it has the same basename, so the bogon will be chosen
3801    # first if we set CC to just the basename; use the full file name.
3802    shift
3803    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3804  fi
3805fi
3806fi
3807fi
3808CC=$ac_cv_prog_CC
3809if test -n "$CC"; then
3810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3811$as_echo "$CC" >&6; }
3812else
3813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814$as_echo "no" >&6; }
3815fi
3816
3817
3818fi
3819if test -z "$CC"; then
3820  if test -n "$ac_tool_prefix"; then
3821  for ac_prog in cl.exe
3822  do
3823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826$as_echo_n "checking for $ac_word... " >&6; }
3827if ${ac_cv_prog_CC+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  if test -n "$CC"; then
3831  ac_cv_prog_CC="$CC" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836  IFS=$as_save_IFS
3837  test -z "$as_dir" && as_dir=.
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845  done
3846IFS=$as_save_IFS
3847
3848fi
3849fi
3850CC=$ac_cv_prog_CC
3851if test -n "$CC"; then
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853$as_echo "$CC" >&6; }
3854else
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
3857fi
3858
3859
3860    test -n "$CC" && break
3861  done
3862fi
3863if test -z "$CC"; then
3864  ac_ct_CC=$CC
3865  for ac_prog in cl.exe
3866do
3867  # Extract the first word of "$ac_prog", so it can be a program name with args.
3868set dummy $ac_prog; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_ac_ct_CC+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$ac_ct_CC"; then
3875  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_ac_ct_CC="$ac_prog"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895if test -n "$ac_ct_CC"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897$as_echo "$ac_ct_CC" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904  test -n "$ac_ct_CC" && break
3905done
3906
3907  if test "x$ac_ct_CC" = x; then
3908    CC=""
3909  else
3910    case $cross_compiling:$ac_tool_warned in
3911yes:)
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3914ac_tool_warned=yes ;;
3915esac
3916    CC=$ac_ct_CC
3917  fi
3918fi
3919
3920fi
3921
3922
3923test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error $? "no acceptable C compiler found in \$PATH
3926See \`config.log' for more details" "$LINENO" 5; }
3927
3928# Provide some information about the compiler.
3929$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3930set X $ac_compile
3931ac_compiler=$2
3932for ac_option in --version -v -V -qversion; do
3933  { { ac_try="$ac_compiler $ac_option >&5"
3934case "(($ac_try" in
3935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936  *) ac_try_echo=$ac_try;;
3937esac
3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939$as_echo "$ac_try_echo"; } >&5
3940  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3941  ac_status=$?
3942  if test -s conftest.err; then
3943    sed '10a\
3944... rest of stderr output deleted ...
3945         10q' conftest.err >conftest.er1
3946    cat conftest.er1 >&5
3947  fi
3948  rm -f conftest.er1 conftest.err
3949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950  test $ac_status = 0; }
3951done
3952
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955
3956int
3957main ()
3958{
3959
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964ac_clean_files_save=$ac_clean_files
3965ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3966# Try to create an executable without -o first, disregard a.out.
3967# It will help us diagnose broken compilers, and finding out an intuition
3968# of exeext.
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3970$as_echo_n "checking whether the C compiler works... " >&6; }
3971ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3972
3973# The possible output files:
3974ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3975
3976ac_rmfiles=
3977for ac_file in $ac_files
3978do
3979  case $ac_file in
3980    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3982  esac
3983done
3984rm -f $ac_rmfiles
3985
3986if { { ac_try="$ac_link_default"
3987case "(($ac_try" in
3988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989  *) ac_try_echo=$ac_try;;
3990esac
3991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992$as_echo "$ac_try_echo"; } >&5
3993  (eval "$ac_link_default") 2>&5
3994  ac_status=$?
3995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996  test $ac_status = 0; }; then :
3997  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3998# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3999# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4000# so that the user can short-circuit this test for compilers unknown to
4001# Autoconf.
4002for ac_file in $ac_files ''
4003do
4004  test -f "$ac_file" || continue
4005  case $ac_file in
4006    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4007	;;
4008    [ab].out )
4009	# We found the default executable, but exeext='' is most
4010	# certainly right.
4011	break;;
4012    *.* )
4013	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4014	then :; else
4015	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4016	fi
4017	# We set ac_cv_exeext here because the later test for it is not
4018	# safe: cross compilers may not add the suffix if given an `-o'
4019	# argument, so we may need to know it at that point already.
4020	# Even if this section looks crufty: it has the advantage of
4021	# actually working.
4022	break;;
4023    * )
4024	break;;
4025  esac
4026done
4027test "$ac_cv_exeext" = no && ac_cv_exeext=
4028
4029else
4030  ac_file=''
4031fi
4032if test -z "$ac_file"; then :
4033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034$as_echo "no" >&6; }
4035$as_echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040as_fn_error 77 "C compiler cannot create executables
4041See \`config.log' for more details" "$LINENO" 5; }
4042else
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4044$as_echo "yes" >&6; }
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4047$as_echo_n "checking for C compiler default output file name... " >&6; }
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4049$as_echo "$ac_file" >&6; }
4050ac_exeext=$ac_cv_exeext
4051
4052rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4053ac_clean_files=$ac_clean_files_save
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4055$as_echo_n "checking for suffix of executables... " >&6; }
4056if { { ac_try="$ac_link"
4057case "(($ac_try" in
4058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059  *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062$as_echo "$ac_try_echo"; } >&5
4063  (eval "$ac_link") 2>&5
4064  ac_status=$?
4065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066  test $ac_status = 0; }; then :
4067  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4068# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4069# work properly (i.e., refer to `conftest.exe'), while it won't with
4070# `rm'.
4071for ac_file in conftest.exe conftest conftest.*; do
4072  test -f "$ac_file" || continue
4073  case $ac_file in
4074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4075    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4076	  break;;
4077    * ) break;;
4078  esac
4079done
4080else
4081  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4084See \`config.log' for more details" "$LINENO" 5; }
4085fi
4086rm -f conftest conftest$ac_cv_exeext
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4088$as_echo "$ac_cv_exeext" >&6; }
4089
4090rm -f conftest.$ac_ext
4091EXEEXT=$ac_cv_exeext
4092ac_exeext=$EXEEXT
4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#include <stdio.h>
4096int
4097main ()
4098{
4099FILE *f = fopen ("conftest.out", "w");
4100 return ferror (f) || fclose (f) != 0;
4101
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106ac_clean_files="$ac_clean_files conftest.out"
4107# Check that the compiler produces executables we can run.  If not, either
4108# the compiler is broken, or we cross compile.
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4110$as_echo_n "checking whether we are cross compiling... " >&6; }
4111if test "$cross_compiling" != yes; then
4112  { { ac_try="$ac_link"
4113case "(($ac_try" in
4114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115  *) ac_try_echo=$ac_try;;
4116esac
4117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118$as_echo "$ac_try_echo"; } >&5
4119  (eval "$ac_link") 2>&5
4120  ac_status=$?
4121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122  test $ac_status = 0; }
4123  if { ac_try='./conftest$ac_cv_exeext'
4124  { { case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129$as_echo "$ac_try_echo"; } >&5
4130  (eval "$ac_try") 2>&5
4131  ac_status=$?
4132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133  test $ac_status = 0; }; }; then
4134    cross_compiling=no
4135  else
4136    if test "$cross_compiling" = maybe; then
4137	cross_compiling=yes
4138    else
4139	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141as_fn_error $? "cannot run C compiled programs.
4142If you meant to cross compile, use \`--host'.
4143See \`config.log' for more details" "$LINENO" 5; }
4144    fi
4145  fi
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4148$as_echo "$cross_compiling" >&6; }
4149
4150rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4151ac_clean_files=$ac_clean_files_save
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153$as_echo_n "checking for suffix of object files... " >&6; }
4154if ${ac_cv_objext+:} false; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168rm -f conftest.o conftest.obj
4169if { { ac_try="$ac_compile"
4170case "(($ac_try" in
4171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172  *) ac_try_echo=$ac_try;;
4173esac
4174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175$as_echo "$ac_try_echo"; } >&5
4176  (eval "$ac_compile") 2>&5
4177  ac_status=$?
4178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179  test $ac_status = 0; }; then :
4180  for ac_file in conftest.o conftest.obj conftest.*; do
4181  test -f "$ac_file" || continue;
4182  case $ac_file in
4183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4184    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4185       break;;
4186  esac
4187done
4188else
4189  $as_echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194as_fn_error $? "cannot compute suffix of object files: cannot compile
4195See \`config.log' for more details" "$LINENO" 5; }
4196fi
4197rm -f conftest.$ac_cv_objext conftest.$ac_ext
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200$as_echo "$ac_cv_objext" >&6; }
4201OBJEXT=$ac_cv_objext
4202ac_objext=$OBJEXT
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205if ${ac_cv_c_compiler_gnu+:} false; then :
4206  $as_echo_n "(cached) " >&6
4207else
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211int
4212main ()
4213{
4214#ifndef __GNUC__
4215       choke me
4216#endif
4217
4218  ;
4219  return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223  ac_compiler_gnu=yes
4224else
4225  ac_compiler_gnu=no
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229
4230fi
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233if test $ac_compiler_gnu = yes; then
4234  GCC=yes
4235else
4236  GCC=
4237fi
4238ac_test_CFLAGS=${CFLAGS+set}
4239ac_save_CFLAGS=$CFLAGS
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241$as_echo_n "checking whether $CC accepts -g... " >&6; }
4242if ${ac_cv_prog_cc_g+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  ac_save_c_werror_flag=$ac_c_werror_flag
4246   ac_c_werror_flag=yes
4247   ac_cv_prog_cc_g=no
4248   CFLAGS="-g"
4249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251
4252int
4253main ()
4254{
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260if ac_fn_c_try_compile "$LINENO"; then :
4261  ac_cv_prog_cc_g=yes
4262else
4263  CFLAGS=""
4264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266
4267int
4268main ()
4269{
4270
4271  ;
4272  return 0;
4273}
4274_ACEOF
4275if ac_fn_c_try_compile "$LINENO"; then :
4276
4277else
4278  ac_c_werror_flag=$ac_save_c_werror_flag
4279	 CFLAGS="-g"
4280	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h.  */
4282
4283int
4284main ()
4285{
4286
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_compile "$LINENO"; then :
4292  ac_cv_prog_cc_g=yes
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299   ac_c_werror_flag=$ac_save_c_werror_flag
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302$as_echo "$ac_cv_prog_cc_g" >&6; }
4303if test "$ac_test_CFLAGS" = set; then
4304  CFLAGS=$ac_save_CFLAGS
4305elif test $ac_cv_prog_cc_g = yes; then
4306  if test "$GCC" = yes; then
4307    CFLAGS="-g -O2"
4308  else
4309    CFLAGS="-g"
4310  fi
4311else
4312  if test "$GCC" = yes; then
4313    CFLAGS="-O2"
4314  else
4315    CFLAGS=
4316  fi
4317fi
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320if ${ac_cv_prog_cc_c89+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  ac_cv_prog_cc_c89=no
4324ac_save_CC=$CC
4325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327#include <stdarg.h>
4328#include <stdio.h>
4329struct stat;
4330/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4331struct buf { int x; };
4332FILE * (*rcsopen) (struct buf *, struct stat *, int);
4333static char *e (p, i)
4334     char **p;
4335     int i;
4336{
4337  return p[i];
4338}
4339static char *f (char * (*g) (char **, int), char **p, ...)
4340{
4341  char *s;
4342  va_list v;
4343  va_start (v,p);
4344  s = g (p, va_arg (v,int));
4345  va_end (v);
4346  return s;
4347}
4348
4349/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4350   function prototypes and stuff, but not '\xHH' hex character constants.
4351   These don't provoke an error unfortunately, instead are silently treated
4352   as 'x'.  The following induces an error, until -std is added to get
4353   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4354   array size at least.  It's necessary to write '\x00'==0 to get something
4355   that's true only with -std.  */
4356int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4357
4358/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4359   inside strings and character constants.  */
4360#define FOO(x) 'x'
4361int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4362
4363int test (int i, double x);
4364struct s1 {int (*f) (int a);};
4365struct s2 {int (*f) (double a);};
4366int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4367int argc;
4368char **argv;
4369int
4370main ()
4371{
4372return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4378	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4379do
4380  CC="$ac_save_CC $ac_arg"
4381  if ac_fn_c_try_compile "$LINENO"; then :
4382  ac_cv_prog_cc_c89=$ac_arg
4383fi
4384rm -f core conftest.err conftest.$ac_objext
4385  test "x$ac_cv_prog_cc_c89" != "xno" && break
4386done
4387rm -f conftest.$ac_ext
4388CC=$ac_save_CC
4389
4390fi
4391# AC_CACHE_VAL
4392case "x$ac_cv_prog_cc_c89" in
4393  x)
4394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4395$as_echo "none needed" >&6; } ;;
4396  xno)
4397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398$as_echo "unsupported" >&6; } ;;
4399  *)
4400    CC="$CC $ac_cv_prog_cc_c89"
4401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4402$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4403esac
4404if test "x$ac_cv_prog_cc_c89" != xno; then :
4405
4406fi
4407
4408ac_ext=c
4409ac_cpp='$CPP $CPPFLAGS'
4410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413
4414ac_ext=c
4415ac_cpp='$CPP $CPPFLAGS'
4416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4420$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4421if ${am_cv_prog_cc_c_o+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426
4427int
4428main ()
4429{
4430
4431  ;
4432  return 0;
4433}
4434_ACEOF
4435  # Make sure it works both with $CC and with simple cc.
4436  # Following AC_PROG_CC_C_O, we do the test twice because some
4437  # compilers refuse to overwrite an existing .o file with -o,
4438  # though they will create one.
4439  am_cv_prog_cc_c_o=yes
4440  for am_i in 1 2; do
4441    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4442   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } \
4446         && test -f conftest2.$ac_objext; then
4447      : OK
4448    else
4449      am_cv_prog_cc_c_o=no
4450      break
4451    fi
4452  done
4453  rm -f core conftest*
4454  unset am_i
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4457$as_echo "$am_cv_prog_cc_c_o" >&6; }
4458if test "$am_cv_prog_cc_c_o" != yes; then
4459   # Losing compiler, so override with the script.
4460   # FIXME: It is wrong to rewrite CC.
4461   # But if we don't then we get into trouble of one sort or another.
4462   # A longer-term fix would be to have automake use am__CC in this case,
4463   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4464   CC="$am_aux_dir/compile $CC"
4465fi
4466ac_ext=c
4467ac_cpp='$CPP $CPPFLAGS'
4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472
4473depcc="$CC"   am_compiler_list=
4474
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4476$as_echo_n "checking dependency style of $depcc... " >&6; }
4477if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4481  # We make a subdir and do the tests there.  Otherwise we can end up
4482  # making bogus files that we don't know about and never remove.  For
4483  # instance it was reported that on HP-UX the gcc test will end up
4484  # making a dummy file named 'D' -- because '-MD' means "put the output
4485  # in D".
4486  rm -rf conftest.dir
4487  mkdir conftest.dir
4488  # Copy depcomp to subdir because otherwise we won't find it if we're
4489  # using a relative directory.
4490  cp "$am_depcomp" conftest.dir
4491  cd conftest.dir
4492  # We will build objects and dependencies in a subdirectory because
4493  # it helps to detect inapplicable dependency modes.  For instance
4494  # both Tru64's cc and ICC support -MD to output dependencies as a
4495  # side effect of compilation, but ICC will put the dependencies in
4496  # the current directory while Tru64 will put them in the object
4497  # directory.
4498  mkdir sub
4499
4500  am_cv_CC_dependencies_compiler_type=none
4501  if test "$am_compiler_list" = ""; then
4502     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4503  fi
4504  am__universal=false
4505  case " $depcc " in #(
4506     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4507     esac
4508
4509  for depmode in $am_compiler_list; do
4510    # Setup a source with many dependencies, because some compilers
4511    # like to wrap large dependency lists on column 80 (with \), and
4512    # we should not choose a depcomp mode which is confused by this.
4513    #
4514    # We need to recreate these files for each test, as the compiler may
4515    # overwrite some of them when testing with obscure command lines.
4516    # This happens at least with the AIX C compiler.
4517    : > sub/conftest.c
4518    for i in 1 2 3 4 5 6; do
4519      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4520      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4521      # Solaris 10 /bin/sh.
4522      echo '/* dummy */' > sub/conftst$i.h
4523    done
4524    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4525
4526    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4527    # mode.  It turns out that the SunPro C++ compiler does not properly
4528    # handle '-M -o', and we need to detect this.  Also, some Intel
4529    # versions had trouble with output in subdirs.
4530    am__obj=sub/conftest.${OBJEXT-o}
4531    am__minus_obj="-o $am__obj"
4532    case $depmode in
4533    gcc)
4534      # This depmode causes a compiler race in universal mode.
4535      test "$am__universal" = false || continue
4536      ;;
4537    nosideeffect)
4538      # After this tag, mechanisms are not by side-effect, so they'll
4539      # only be used when explicitly requested.
4540      if test "x$enable_dependency_tracking" = xyes; then
4541	continue
4542      else
4543	break
4544      fi
4545      ;;
4546    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4547      # This compiler won't grok '-c -o', but also, the minuso test has
4548      # not run yet.  These depmodes are late enough in the game, and
4549      # so weak that their functioning should not be impacted.
4550      am__obj=conftest.${OBJEXT-o}
4551      am__minus_obj=
4552      ;;
4553    none) break ;;
4554    esac
4555    if depmode=$depmode \
4556       source=sub/conftest.c object=$am__obj \
4557       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4558       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4559         >/dev/null 2>conftest.err &&
4560       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4561       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4562       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4563       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4564      # icc doesn't choke on unknown options, it will just issue warnings
4565      # or remarks (even with -Werror).  So we grep stderr for any message
4566      # that says an option was ignored or not supported.
4567      # When given -MP, icc 7.0 and 7.1 complain thusly:
4568      #   icc: Command line warning: ignoring option '-M'; no argument required
4569      # The diagnosis changed in icc 8.0:
4570      #   icc: Command line remark: option '-MP' not supported
4571      if (grep 'ignoring option' conftest.err ||
4572          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4573        am_cv_CC_dependencies_compiler_type=$depmode
4574        break
4575      fi
4576    fi
4577  done
4578
4579  cd ..
4580  rm -rf conftest.dir
4581else
4582  am_cv_CC_dependencies_compiler_type=none
4583fi
4584
4585fi
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4587$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4588CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4589
4590 if
4591  test "x$enable_dependency_tracking" != xno \
4592  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4593  am__fastdepCC_TRUE=
4594  am__fastdepCC_FALSE='#'
4595else
4596  am__fastdepCC_TRUE='#'
4597  am__fastdepCC_FALSE=
4598fi
4599
4600
4601
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4603$as_echo_n "checking for library containing strerror... " >&6; }
4604if ${ac_cv_search_strerror+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  ac_func_search_save_LIBS=$LIBS
4608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610
4611/* Override any GCC internal prototype to avoid an error.
4612   Use char because int might match the return type of a GCC
4613   builtin and then its argument prototype would still apply.  */
4614#ifdef __cplusplus
4615extern "C"
4616#endif
4617char strerror ();
4618int
4619main ()
4620{
4621return strerror ();
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626for ac_lib in '' cposix; do
4627  if test -z "$ac_lib"; then
4628    ac_res="none required"
4629  else
4630    ac_res=-l$ac_lib
4631    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4632  fi
4633  if ac_fn_c_try_link "$LINENO"; then :
4634  ac_cv_search_strerror=$ac_res
4635fi
4636rm -f core conftest.err conftest.$ac_objext \
4637    conftest$ac_exeext
4638  if ${ac_cv_search_strerror+:} false; then :
4639  break
4640fi
4641done
4642if ${ac_cv_search_strerror+:} false; then :
4643
4644else
4645  ac_cv_search_strerror=no
4646fi
4647rm conftest.$ac_ext
4648LIBS=$ac_func_search_save_LIBS
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4651$as_echo "$ac_cv_search_strerror" >&6; }
4652ac_res=$ac_cv_search_strerror
4653if test "$ac_res" != no; then :
4654  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4655
4656fi
4657
4658ac_ext=c
4659ac_cpp='$CPP $CPPFLAGS'
4660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663if test -n "$ac_tool_prefix"; then
4664  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4665set dummy ${ac_tool_prefix}gcc; ac_word=$2
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667$as_echo_n "checking for $ac_word... " >&6; }
4668if ${ac_cv_prog_CC+:} false; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  if test -n "$CC"; then
4672  ac_cv_prog_CC="$CC" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677  IFS=$as_save_IFS
4678  test -z "$as_dir" && as_dir=.
4679    for ac_exec_ext in '' $ac_executable_extensions; do
4680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683    break 2
4684  fi
4685done
4686  done
4687IFS=$as_save_IFS
4688
4689fi
4690fi
4691CC=$ac_cv_prog_CC
4692if test -n "$CC"; then
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4694$as_echo "$CC" >&6; }
4695else
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697$as_echo "no" >&6; }
4698fi
4699
4700
4701fi
4702if test -z "$ac_cv_prog_CC"; then
4703  ac_ct_CC=$CC
4704  # Extract the first word of "gcc", so it can be a program name with args.
4705set dummy gcc; ac_word=$2
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
4708if ${ac_cv_prog_ac_ct_CC+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  if test -n "$ac_ct_CC"; then
4712  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717  IFS=$as_save_IFS
4718  test -z "$as_dir" && as_dir=.
4719    for ac_exec_ext in '' $ac_executable_extensions; do
4720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721    ac_cv_prog_ac_ct_CC="gcc"
4722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732if test -n "$ac_ct_CC"; then
4733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4734$as_echo "$ac_ct_CC" >&6; }
4735else
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738fi
4739
4740  if test "x$ac_ct_CC" = x; then
4741    CC=""
4742  else
4743    case $cross_compiling:$ac_tool_warned in
4744yes:)
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747ac_tool_warned=yes ;;
4748esac
4749    CC=$ac_ct_CC
4750  fi
4751else
4752  CC="$ac_cv_prog_CC"
4753fi
4754
4755if test -z "$CC"; then
4756          if test -n "$ac_tool_prefix"; then
4757    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}cc; ac_word=$2
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if ${ac_cv_prog_CC+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  if test -n "$CC"; then
4765  ac_cv_prog_CC="$CC" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770  IFS=$as_save_IFS
4771  test -z "$as_dir" && as_dir=.
4772    for ac_exec_ext in '' $ac_executable_extensions; do
4773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774    ac_cv_prog_CC="${ac_tool_prefix}cc"
4775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776    break 2
4777  fi
4778done
4779  done
4780IFS=$as_save_IFS
4781
4782fi
4783fi
4784CC=$ac_cv_prog_CC
4785if test -n "$CC"; then
4786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4787$as_echo "$CC" >&6; }
4788else
4789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791fi
4792
4793
4794  fi
4795fi
4796if test -z "$CC"; then
4797  # Extract the first word of "cc", so it can be a program name with args.
4798set dummy cc; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_CC+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$CC"; then
4805  ac_cv_prog_CC="$CC" # Let the user override the test.
4806else
4807  ac_prog_rejected=no
4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809for as_dir in $PATH
4810do
4811  IFS=$as_save_IFS
4812  test -z "$as_dir" && as_dir=.
4813    for ac_exec_ext in '' $ac_executable_extensions; do
4814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4816       ac_prog_rejected=yes
4817       continue
4818     fi
4819    ac_cv_prog_CC="cc"
4820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824  done
4825IFS=$as_save_IFS
4826
4827if test $ac_prog_rejected = yes; then
4828  # We found a bogon in the path, so make sure we never use it.
4829  set dummy $ac_cv_prog_CC
4830  shift
4831  if test $# != 0; then
4832    # We chose a different compiler from the bogus one.
4833    # However, it has the same basename, so the bogon will be chosen
4834    # first if we set CC to just the basename; use the full file name.
4835    shift
4836    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4837  fi
4838fi
4839fi
4840fi
4841CC=$ac_cv_prog_CC
4842if test -n "$CC"; then
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844$as_echo "$CC" >&6; }
4845else
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850
4851fi
4852if test -z "$CC"; then
4853  if test -n "$ac_tool_prefix"; then
4854  for ac_prog in cl.exe
4855  do
4856    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859$as_echo_n "checking for $ac_word... " >&6; }
4860if ${ac_cv_prog_CC+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863  if test -n "$CC"; then
4864  ac_cv_prog_CC="$CC" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869  IFS=$as_save_IFS
4870  test -z "$as_dir" && as_dir=.
4871    for ac_exec_ext in '' $ac_executable_extensions; do
4872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875    break 2
4876  fi
4877done
4878  done
4879IFS=$as_save_IFS
4880
4881fi
4882fi
4883CC=$ac_cv_prog_CC
4884if test -n "$CC"; then
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4886$as_echo "$CC" >&6; }
4887else
4888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890fi
4891
4892
4893    test -n "$CC" && break
4894  done
4895fi
4896if test -z "$CC"; then
4897  ac_ct_CC=$CC
4898  for ac_prog in cl.exe
4899do
4900  # Extract the first word of "$ac_prog", so it can be a program name with args.
4901set dummy $ac_prog; ac_word=$2
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
4904if ${ac_cv_prog_ac_ct_CC+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  if test -n "$ac_ct_CC"; then
4908  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915    for ac_exec_ext in '' $ac_executable_extensions; do
4916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917    ac_cv_prog_ac_ct_CC="$ac_prog"
4918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919    break 2
4920  fi
4921done
4922  done
4923IFS=$as_save_IFS
4924
4925fi
4926fi
4927ac_ct_CC=$ac_cv_prog_ac_ct_CC
4928if test -n "$ac_ct_CC"; then
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4930$as_echo "$ac_ct_CC" >&6; }
4931else
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
4934fi
4935
4936
4937  test -n "$ac_ct_CC" && break
4938done
4939
4940  if test "x$ac_ct_CC" = x; then
4941    CC=""
4942  else
4943    case $cross_compiling:$ac_tool_warned in
4944yes:)
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947ac_tool_warned=yes ;;
4948esac
4949    CC=$ac_ct_CC
4950  fi
4951fi
4952
4953fi
4954
4955
4956test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4958as_fn_error $? "no acceptable C compiler found in \$PATH
4959See \`config.log' for more details" "$LINENO" 5; }
4960
4961# Provide some information about the compiler.
4962$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4963set X $ac_compile
4964ac_compiler=$2
4965for ac_option in --version -v -V -qversion; do
4966  { { ac_try="$ac_compiler $ac_option >&5"
4967case "(($ac_try" in
4968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969  *) ac_try_echo=$ac_try;;
4970esac
4971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4972$as_echo "$ac_try_echo"; } >&5
4973  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4974  ac_status=$?
4975  if test -s conftest.err; then
4976    sed '10a\
4977... rest of stderr output deleted ...
4978         10q' conftest.err >conftest.er1
4979    cat conftest.er1 >&5
4980  fi
4981  rm -f conftest.er1 conftest.err
4982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983  test $ac_status = 0; }
4984done
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4987$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4988if ${ac_cv_c_compiler_gnu+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993
4994int
4995main ()
4996{
4997#ifndef __GNUC__
4998       choke me
4999#endif
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  ac_compiler_gnu=yes
5007else
5008  ac_compiler_gnu=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011ac_cv_c_compiler_gnu=$ac_compiler_gnu
5012
5013fi
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5015$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5016if test $ac_compiler_gnu = yes; then
5017  GCC=yes
5018else
5019  GCC=
5020fi
5021ac_test_CFLAGS=${CFLAGS+set}
5022ac_save_CFLAGS=$CFLAGS
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5024$as_echo_n "checking whether $CC accepts -g... " >&6; }
5025if ${ac_cv_prog_cc_g+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  ac_save_c_werror_flag=$ac_c_werror_flag
5029   ac_c_werror_flag=yes
5030   ac_cv_prog_cc_g=no
5031   CFLAGS="-g"
5032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034
5035int
5036main ()
5037{
5038
5039  ;
5040  return 0;
5041}
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"; then :
5044  ac_cv_prog_cc_g=yes
5045else
5046  CFLAGS=""
5047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049
5050int
5051main ()
5052{
5053
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059
5060else
5061  ac_c_werror_flag=$ac_save_c_werror_flag
5062	 CFLAGS="-g"
5063	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065
5066int
5067main ()
5068{
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_compile "$LINENO"; then :
5075  ac_cv_prog_cc_g=yes
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078fi
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080fi
5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082   ac_c_werror_flag=$ac_save_c_werror_flag
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5085$as_echo "$ac_cv_prog_cc_g" >&6; }
5086if test "$ac_test_CFLAGS" = set; then
5087  CFLAGS=$ac_save_CFLAGS
5088elif test $ac_cv_prog_cc_g = yes; then
5089  if test "$GCC" = yes; then
5090    CFLAGS="-g -O2"
5091  else
5092    CFLAGS="-g"
5093  fi
5094else
5095  if test "$GCC" = yes; then
5096    CFLAGS="-O2"
5097  else
5098    CFLAGS=
5099  fi
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5102$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5103if ${ac_cv_prog_cc_c89+:} false; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  ac_cv_prog_cc_c89=no
5107ac_save_CC=$CC
5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110#include <stdarg.h>
5111#include <stdio.h>
5112struct stat;
5113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5114struct buf { int x; };
5115FILE * (*rcsopen) (struct buf *, struct stat *, int);
5116static char *e (p, i)
5117     char **p;
5118     int i;
5119{
5120  return p[i];
5121}
5122static char *f (char * (*g) (char **, int), char **p, ...)
5123{
5124  char *s;
5125  va_list v;
5126  va_start (v,p);
5127  s = g (p, va_arg (v,int));
5128  va_end (v);
5129  return s;
5130}
5131
5132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5133   function prototypes and stuff, but not '\xHH' hex character constants.
5134   These don't provoke an error unfortunately, instead are silently treated
5135   as 'x'.  The following induces an error, until -std is added to get
5136   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5137   array size at least.  It's necessary to write '\x00'==0 to get something
5138   that's true only with -std.  */
5139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5140
5141/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5142   inside strings and character constants.  */
5143#define FOO(x) 'x'
5144int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5145
5146int test (int i, double x);
5147struct s1 {int (*f) (int a);};
5148struct s2 {int (*f) (double a);};
5149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5150int argc;
5151char **argv;
5152int
5153main ()
5154{
5155return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5156  ;
5157  return 0;
5158}
5159_ACEOF
5160for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5161	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5162do
5163  CC="$ac_save_CC $ac_arg"
5164  if ac_fn_c_try_compile "$LINENO"; then :
5165  ac_cv_prog_cc_c89=$ac_arg
5166fi
5167rm -f core conftest.err conftest.$ac_objext
5168  test "x$ac_cv_prog_cc_c89" != "xno" && break
5169done
5170rm -f conftest.$ac_ext
5171CC=$ac_save_CC
5172
5173fi
5174# AC_CACHE_VAL
5175case "x$ac_cv_prog_cc_c89" in
5176  x)
5177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5178$as_echo "none needed" >&6; } ;;
5179  xno)
5180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5181$as_echo "unsupported" >&6; } ;;
5182  *)
5183    CC="$CC $ac_cv_prog_cc_c89"
5184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5185$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5186esac
5187if test "x$ac_cv_prog_cc_c89" != xno; then :
5188
5189fi
5190
5191ac_ext=c
5192ac_cpp='$CPP $CPPFLAGS'
5193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196
5197ac_ext=c
5198ac_cpp='$CPP $CPPFLAGS'
5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5203$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5204if ${am_cv_prog_cc_c_o+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209
5210int
5211main ()
5212{
5213
5214  ;
5215  return 0;
5216}
5217_ACEOF
5218  # Make sure it works both with $CC and with simple cc.
5219  # Following AC_PROG_CC_C_O, we do the test twice because some
5220  # compilers refuse to overwrite an existing .o file with -o,
5221  # though they will create one.
5222  am_cv_prog_cc_c_o=yes
5223  for am_i in 1 2; do
5224    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5225   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } \
5229         && test -f conftest2.$ac_objext; then
5230      : OK
5231    else
5232      am_cv_prog_cc_c_o=no
5233      break
5234    fi
5235  done
5236  rm -f core conftest*
5237  unset am_i
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5240$as_echo "$am_cv_prog_cc_c_o" >&6; }
5241if test "$am_cv_prog_cc_c_o" != yes; then
5242   # Losing compiler, so override with the script.
5243   # FIXME: It is wrong to rewrite CC.
5244   # But if we don't then we get into trouble of one sort or another.
5245   # A longer-term fix would be to have automake use am__CC in this case,
5246   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5247   CC="$am_aux_dir/compile $CC"
5248fi
5249ac_ext=c
5250ac_cpp='$CPP $CPPFLAGS'
5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254
5255
5256depcc="$CC"   am_compiler_list=
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5259$as_echo_n "checking dependency style of $depcc... " >&6; }
5260if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5264  # We make a subdir and do the tests there.  Otherwise we can end up
5265  # making bogus files that we don't know about and never remove.  For
5266  # instance it was reported that on HP-UX the gcc test will end up
5267  # making a dummy file named 'D' -- because '-MD' means "put the output
5268  # in D".
5269  rm -rf conftest.dir
5270  mkdir conftest.dir
5271  # Copy depcomp to subdir because otherwise we won't find it if we're
5272  # using a relative directory.
5273  cp "$am_depcomp" conftest.dir
5274  cd conftest.dir
5275  # We will build objects and dependencies in a subdirectory because
5276  # it helps to detect inapplicable dependency modes.  For instance
5277  # both Tru64's cc and ICC support -MD to output dependencies as a
5278  # side effect of compilation, but ICC will put the dependencies in
5279  # the current directory while Tru64 will put them in the object
5280  # directory.
5281  mkdir sub
5282
5283  am_cv_CC_dependencies_compiler_type=none
5284  if test "$am_compiler_list" = ""; then
5285     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5286  fi
5287  am__universal=false
5288  case " $depcc " in #(
5289     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5290     esac
5291
5292  for depmode in $am_compiler_list; do
5293    # Setup a source with many dependencies, because some compilers
5294    # like to wrap large dependency lists on column 80 (with \), and
5295    # we should not choose a depcomp mode which is confused by this.
5296    #
5297    # We need to recreate these files for each test, as the compiler may
5298    # overwrite some of them when testing with obscure command lines.
5299    # This happens at least with the AIX C compiler.
5300    : > sub/conftest.c
5301    for i in 1 2 3 4 5 6; do
5302      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5304      # Solaris 10 /bin/sh.
5305      echo '/* dummy */' > sub/conftst$i.h
5306    done
5307    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5308
5309    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5310    # mode.  It turns out that the SunPro C++ compiler does not properly
5311    # handle '-M -o', and we need to detect this.  Also, some Intel
5312    # versions had trouble with output in subdirs.
5313    am__obj=sub/conftest.${OBJEXT-o}
5314    am__minus_obj="-o $am__obj"
5315    case $depmode in
5316    gcc)
5317      # This depmode causes a compiler race in universal mode.
5318      test "$am__universal" = false || continue
5319      ;;
5320    nosideeffect)
5321      # After this tag, mechanisms are not by side-effect, so they'll
5322      # only be used when explicitly requested.
5323      if test "x$enable_dependency_tracking" = xyes; then
5324	continue
5325      else
5326	break
5327      fi
5328      ;;
5329    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5330      # This compiler won't grok '-c -o', but also, the minuso test has
5331      # not run yet.  These depmodes are late enough in the game, and
5332      # so weak that their functioning should not be impacted.
5333      am__obj=conftest.${OBJEXT-o}
5334      am__minus_obj=
5335      ;;
5336    none) break ;;
5337    esac
5338    if depmode=$depmode \
5339       source=sub/conftest.c object=$am__obj \
5340       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5341       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5342         >/dev/null 2>conftest.err &&
5343       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5344       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5345       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5346       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5347      # icc doesn't choke on unknown options, it will just issue warnings
5348      # or remarks (even with -Werror).  So we grep stderr for any message
5349      # that says an option was ignored or not supported.
5350      # When given -MP, icc 7.0 and 7.1 complain thusly:
5351      #   icc: Command line warning: ignoring option '-M'; no argument required
5352      # The diagnosis changed in icc 8.0:
5353      #   icc: Command line remark: option '-MP' not supported
5354      if (grep 'ignoring option' conftest.err ||
5355          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5356        am_cv_CC_dependencies_compiler_type=$depmode
5357        break
5358      fi
5359    fi
5360  done
5361
5362  cd ..
5363  rm -rf conftest.dir
5364else
5365  am_cv_CC_dependencies_compiler_type=none
5366fi
5367
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5370$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5371CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5372
5373 if
5374  test "x$enable_dependency_tracking" != xno \
5375  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5376  am__fastdepCC_TRUE=
5377  am__fastdepCC_FALSE='#'
5378else
5379  am__fastdepCC_TRUE='#'
5380  am__fastdepCC_FALSE=
5381fi
5382
5383
5384ac_ext=c
5385ac_cpp='$CPP $CPPFLAGS'
5386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5390$as_echo_n "checking how to run the C preprocessor... " >&6; }
5391# On Suns, sometimes $CPP names a directory.
5392if test -n "$CPP" && test -d "$CPP"; then
5393  CPP=
5394fi
5395if test -z "$CPP"; then
5396  if ${ac_cv_prog_CPP+:} false; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399      # Double quotes because CPP needs to be expanded
5400    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5401    do
5402      ac_preproc_ok=false
5403for ac_c_preproc_warn_flag in '' yes
5404do
5405  # Use a header file that comes with gcc, so configuring glibc
5406  # with a fresh cross-compiler works.
5407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408  # <limits.h> exists even on freestanding compilers.
5409  # On the NeXT, cc -E runs the code through the compiler's parser,
5410  # not just through cpp. "Syntax error" is here to catch this case.
5411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413#ifdef __STDC__
5414# include <limits.h>
5415#else
5416# include <assert.h>
5417#endif
5418		     Syntax error
5419_ACEOF
5420if ac_fn_c_try_cpp "$LINENO"; then :
5421
5422else
5423  # Broken: fails on valid input.
5424continue
5425fi
5426rm -f conftest.err conftest.i conftest.$ac_ext
5427
5428  # OK, works on sane cases.  Now check whether nonexistent headers
5429  # can be detected and how.
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432#include <ac_nonexistent.h>
5433_ACEOF
5434if ac_fn_c_try_cpp "$LINENO"; then :
5435  # Broken: success on invalid input.
5436continue
5437else
5438  # Passes both tests.
5439ac_preproc_ok=:
5440break
5441fi
5442rm -f conftest.err conftest.i conftest.$ac_ext
5443
5444done
5445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5446rm -f conftest.i conftest.err conftest.$ac_ext
5447if $ac_preproc_ok; then :
5448  break
5449fi
5450
5451    done
5452    ac_cv_prog_CPP=$CPP
5453
5454fi
5455  CPP=$ac_cv_prog_CPP
5456else
5457  ac_cv_prog_CPP=$CPP
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5460$as_echo "$CPP" >&6; }
5461ac_preproc_ok=false
5462for ac_c_preproc_warn_flag in '' yes
5463do
5464  # Use a header file that comes with gcc, so configuring glibc
5465  # with a fresh cross-compiler works.
5466  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467  # <limits.h> exists even on freestanding compilers.
5468  # On the NeXT, cc -E runs the code through the compiler's parser,
5469  # not just through cpp. "Syntax error" is here to catch this case.
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472#ifdef __STDC__
5473# include <limits.h>
5474#else
5475# include <assert.h>
5476#endif
5477		     Syntax error
5478_ACEOF
5479if ac_fn_c_try_cpp "$LINENO"; then :
5480
5481else
5482  # Broken: fails on valid input.
5483continue
5484fi
5485rm -f conftest.err conftest.i conftest.$ac_ext
5486
5487  # OK, works on sane cases.  Now check whether nonexistent headers
5488  # can be detected and how.
5489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491#include <ac_nonexistent.h>
5492_ACEOF
5493if ac_fn_c_try_cpp "$LINENO"; then :
5494  # Broken: success on invalid input.
5495continue
5496else
5497  # Passes both tests.
5498ac_preproc_ok=:
5499break
5500fi
5501rm -f conftest.err conftest.i conftest.$ac_ext
5502
5503done
5504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505rm -f conftest.i conftest.err conftest.$ac_ext
5506if $ac_preproc_ok; then :
5507
5508else
5509  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5511as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5512See \`config.log' for more details" "$LINENO" 5; }
5513fi
5514
5515ac_ext=c
5516ac_cpp='$CPP $CPPFLAGS'
5517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5523$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5524if ${ac_cv_path_GREP+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -z "$GREP"; then
5528  ac_path_GREP_found=false
5529  # Loop through the user's path and test for each of PROGNAME-LIST
5530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_prog in grep ggrep; do
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5538      as_fn_executable_p "$ac_path_GREP" || continue
5539# Check for GNU ac_path_GREP and select it if it is found.
5540  # Check for GNU $ac_path_GREP
5541case `"$ac_path_GREP" --version 2>&1` in
5542*GNU*)
5543  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5544*)
5545  ac_count=0
5546  $as_echo_n 0123456789 >"conftest.in"
5547  while :
5548  do
5549    cat "conftest.in" "conftest.in" >"conftest.tmp"
5550    mv "conftest.tmp" "conftest.in"
5551    cp "conftest.in" "conftest.nl"
5552    $as_echo 'GREP' >> "conftest.nl"
5553    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555    as_fn_arith $ac_count + 1 && ac_count=$as_val
5556    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5557      # Best one so far, save it but keep looking for a better one
5558      ac_cv_path_GREP="$ac_path_GREP"
5559      ac_path_GREP_max=$ac_count
5560    fi
5561    # 10*(2^10) chars as input seems more than enough
5562    test $ac_count -gt 10 && break
5563  done
5564  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565esac
5566
5567      $ac_path_GREP_found && break 3
5568    done
5569  done
5570  done
5571IFS=$as_save_IFS
5572  if test -z "$ac_cv_path_GREP"; then
5573    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574  fi
5575else
5576  ac_cv_path_GREP=$GREP
5577fi
5578
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5581$as_echo "$ac_cv_path_GREP" >&6; }
5582 GREP="$ac_cv_path_GREP"
5583
5584
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5586$as_echo_n "checking for egrep... " >&6; }
5587if ${ac_cv_path_EGREP+:} false; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5591   then ac_cv_path_EGREP="$GREP -E"
5592   else
5593     if test -z "$EGREP"; then
5594  ac_path_EGREP_found=false
5595  # Loop through the user's path and test for each of PROGNAME-LIST
5596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5598do
5599  IFS=$as_save_IFS
5600  test -z "$as_dir" && as_dir=.
5601    for ac_prog in egrep; do
5602    for ac_exec_ext in '' $ac_executable_extensions; do
5603      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5604      as_fn_executable_p "$ac_path_EGREP" || continue
5605# Check for GNU ac_path_EGREP and select it if it is found.
5606  # Check for GNU $ac_path_EGREP
5607case `"$ac_path_EGREP" --version 2>&1` in
5608*GNU*)
5609  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5610*)
5611  ac_count=0
5612  $as_echo_n 0123456789 >"conftest.in"
5613  while :
5614  do
5615    cat "conftest.in" "conftest.in" >"conftest.tmp"
5616    mv "conftest.tmp" "conftest.in"
5617    cp "conftest.in" "conftest.nl"
5618    $as_echo 'EGREP' >> "conftest.nl"
5619    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5620    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5621    as_fn_arith $ac_count + 1 && ac_count=$as_val
5622    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5623      # Best one so far, save it but keep looking for a better one
5624      ac_cv_path_EGREP="$ac_path_EGREP"
5625      ac_path_EGREP_max=$ac_count
5626    fi
5627    # 10*(2^10) chars as input seems more than enough
5628    test $ac_count -gt 10 && break
5629  done
5630  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5631esac
5632
5633      $ac_path_EGREP_found && break 3
5634    done
5635  done
5636  done
5637IFS=$as_save_IFS
5638  if test -z "$ac_cv_path_EGREP"; then
5639    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5640  fi
5641else
5642  ac_cv_path_EGREP=$EGREP
5643fi
5644
5645   fi
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5648$as_echo "$ac_cv_path_EGREP" >&6; }
5649 EGREP="$ac_cv_path_EGREP"
5650
5651
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5653$as_echo_n "checking for ANSI C header files... " >&6; }
5654if ${ac_cv_header_stdc+:} false; then :
5655  $as_echo_n "(cached) " >&6
5656else
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659#include <stdlib.h>
5660#include <stdarg.h>
5661#include <string.h>
5662#include <float.h>
5663
5664int
5665main ()
5666{
5667
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673  ac_cv_header_stdc=yes
5674else
5675  ac_cv_header_stdc=no
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678
5679if test $ac_cv_header_stdc = yes; then
5680  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683#include <string.h>
5684
5685_ACEOF
5686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687  $EGREP "memchr" >/dev/null 2>&1; then :
5688
5689else
5690  ac_cv_header_stdc=no
5691fi
5692rm -f conftest*
5693
5694fi
5695
5696if test $ac_cv_header_stdc = yes; then
5697  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h.  */
5700#include <stdlib.h>
5701
5702_ACEOF
5703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5704  $EGREP "free" >/dev/null 2>&1; then :
5705
5706else
5707  ac_cv_header_stdc=no
5708fi
5709rm -f conftest*
5710
5711fi
5712
5713if test $ac_cv_header_stdc = yes; then
5714  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5715  if test "$cross_compiling" = yes; then :
5716  :
5717else
5718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719/* end confdefs.h.  */
5720#include <ctype.h>
5721#include <stdlib.h>
5722#if ((' ' & 0x0FF) == 0x020)
5723# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5724# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5725#else
5726# define ISLOWER(c) \
5727		   (('a' <= (c) && (c) <= 'i') \
5728		     || ('j' <= (c) && (c) <= 'r') \
5729		     || ('s' <= (c) && (c) <= 'z'))
5730# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5731#endif
5732
5733#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5734int
5735main ()
5736{
5737  int i;
5738  for (i = 0; i < 256; i++)
5739    if (XOR (islower (i), ISLOWER (i))
5740	|| toupper (i) != TOUPPER (i))
5741      return 2;
5742  return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_run "$LINENO"; then :
5746
5747else
5748  ac_cv_header_stdc=no
5749fi
5750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5751  conftest.$ac_objext conftest.beam conftest.$ac_ext
5752fi
5753
5754fi
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5757$as_echo "$ac_cv_header_stdc" >&6; }
5758if test $ac_cv_header_stdc = yes; then
5759
5760$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5761
5762fi
5763
5764
5765libgtop_top_builddir=`pwd`
5766
5767
5768for ac_prog in gawk awk
5769do
5770  # Extract the first word of "$ac_prog", so it can be a program name with args.
5771set dummy $ac_prog; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if ${ac_cv_prog_AWK+:} false; then :
5775  $as_echo_n "(cached) " >&6
5776else
5777  if test -n "$AWK"; then
5778  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  test -z "$as_dir" && as_dir=.
5785    for ac_exec_ext in '' $ac_executable_extensions; do
5786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787    ac_cv_prog_AWK="$ac_prog"
5788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789    break 2
5790  fi
5791done
5792  done
5793IFS=$as_save_IFS
5794
5795fi
5796fi
5797AWK=$ac_cv_prog_AWK
5798if test -n "$AWK"; then
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5800$as_echo "$AWK" >&6; }
5801else
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804fi
5805
5806
5807  test -n "$AWK" && break
5808done
5809
5810test -z "$AWK" && as_fn_error $? "Sorry, you need a working awk interpreter." "$LINENO" 5
5811
5812for ac_prog in perl5 perl
5813do
5814  # Extract the first word of "$ac_prog", so it can be a program name with args.
5815set dummy $ac_prog; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_PERL+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821  if test -n "$PERL"; then
5822  ac_cv_prog_PERL="$PERL" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  test -z "$as_dir" && as_dir=.
5829    for ac_exec_ext in '' $ac_executable_extensions; do
5830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831    ac_cv_prog_PERL="$ac_prog"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841PERL=$ac_cv_prog_PERL
5842if test -n "$PERL"; then
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5844$as_echo "$PERL" >&6; }
5845else
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851  test -n "$PERL" && break
5852done
5853
5854test -z "$PERL" && as_fn_error $? "You need to have a working perl interpreter." "$LINENO" 5
5855
5856if test -n "$ac_tool_prefix"; then
5857  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}gcc; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_CC+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$CC"; then
5865  ac_cv_prog_CC="$CC" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884CC=$ac_cv_prog_CC
5885if test -n "$CC"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5887$as_echo "$CC" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_CC"; then
5896  ac_ct_CC=$CC
5897  # Extract the first word of "gcc", so it can be a program name with args.
5898set dummy gcc; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if ${ac_cv_prog_ac_ct_CC+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  if test -n "$ac_ct_CC"; then
5905  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910  IFS=$as_save_IFS
5911  test -z "$as_dir" && as_dir=.
5912    for ac_exec_ext in '' $ac_executable_extensions; do
5913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914    ac_cv_prog_ac_ct_CC="gcc"
5915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916    break 2
5917  fi
5918done
5919  done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_CC=$ac_cv_prog_ac_ct_CC
5925if test -n "$ac_ct_CC"; then
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5927$as_echo "$ac_ct_CC" >&6; }
5928else
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933  if test "x$ac_ct_CC" = x; then
5934    CC=""
5935  else
5936    case $cross_compiling:$ac_tool_warned in
5937yes:)
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940ac_tool_warned=yes ;;
5941esac
5942    CC=$ac_ct_CC
5943  fi
5944else
5945  CC="$ac_cv_prog_CC"
5946fi
5947
5948if test -n "$ac_tool_prefix"; then
5949  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5950set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_prog_RANLIB+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$RANLIB"; then
5957  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976RANLIB=$ac_cv_prog_RANLIB
5977if test -n "$RANLIB"; then
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5979$as_echo "$RANLIB" >&6; }
5980else
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985
5986fi
5987if test -z "$ac_cv_prog_RANLIB"; then
5988  ac_ct_RANLIB=$RANLIB
5989  # Extract the first word of "ranlib", so it can be a program name with args.
5990set dummy ranlib; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
5993if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996  if test -n "$ac_ct_RANLIB"; then
5997  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002  IFS=$as_save_IFS
6003  test -z "$as_dir" && as_dir=.
6004    for ac_exec_ext in '' $ac_executable_extensions; do
6005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006    ac_cv_prog_ac_ct_RANLIB="ranlib"
6007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008    break 2
6009  fi
6010done
6011  done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6017if test -n "$ac_ct_RANLIB"; then
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6019$as_echo "$ac_ct_RANLIB" >&6; }
6020else
6021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025  if test "x$ac_ct_RANLIB" = x; then
6026    RANLIB=""
6027  else
6028    case $cross_compiling:$ac_tool_warned in
6029yes:)
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032ac_tool_warned=yes ;;
6033esac
6034    RANLIB=$ac_ct_RANLIB
6035  fi
6036else
6037  RANLIB="$ac_cv_prog_RANLIB"
6038fi
6039
6040if test -n "$ac_tool_prefix"; then
6041  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}as; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_AS+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  if test -n "$AS"; then
6049  ac_cv_prog_AS="$AS" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056    for ac_exec_ext in '' $ac_executable_extensions; do
6057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_AS="${ac_tool_prefix}as"
6059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063  done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068AS=$ac_cv_prog_AS
6069if test -n "$AS"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6071$as_echo "$AS" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_AS"; then
6080  ac_ct_AS=$AS
6081  # Extract the first word of "as", so it can be a program name with args.
6082set dummy as; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_ac_ct_AS+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  if test -n "$ac_ct_AS"; then
6089  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094  IFS=$as_save_IFS
6095  test -z "$as_dir" && as_dir=.
6096    for ac_exec_ext in '' $ac_executable_extensions; do
6097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098    ac_cv_prog_ac_ct_AS="as"
6099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100    break 2
6101  fi
6102done
6103  done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_AS=$ac_cv_prog_ac_ct_AS
6109if test -n "$ac_ct_AS"; then
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6111$as_echo "$ac_ct_AS" >&6; }
6112else
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117  if test "x$ac_ct_AS" = x; then
6118    AS=""
6119  else
6120    case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126    AS=$ac_ct_AS
6127  fi
6128else
6129  AS="$ac_cv_prog_AS"
6130fi
6131
6132if test -n "$ac_tool_prefix"; then
6133  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6134set dummy ${ac_tool_prefix}ar; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if ${ac_cv_prog_AR+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  if test -n "$AR"; then
6141  ac_cv_prog_AR="$AR" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148    for ac_exec_ext in '' $ac_executable_extensions; do
6149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150    ac_cv_prog_AR="${ac_tool_prefix}ar"
6151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155  done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160AR=$ac_cv_prog_AR
6161if test -n "$AR"; then
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6163$as_echo "$AR" >&6; }
6164else
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170fi
6171if test -z "$ac_cv_prog_AR"; then
6172  ac_ct_AR=$AR
6173  # Extract the first word of "ar", so it can be a program name with args.
6174set dummy ar; ac_word=$2
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if ${ac_cv_prog_ac_ct_AR+:} false; then :
6178  $as_echo_n "(cached) " >&6
6179else
6180  if test -n "$ac_ct_AR"; then
6181  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186  IFS=$as_save_IFS
6187  test -z "$as_dir" && as_dir=.
6188    for ac_exec_ext in '' $ac_executable_extensions; do
6189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190    ac_cv_prog_ac_ct_AR="ar"
6191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192    break 2
6193  fi
6194done
6195  done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200ac_ct_AR=$ac_cv_prog_ac_ct_AR
6201if test -n "$ac_ct_AR"; then
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6203$as_echo "$ac_ct_AR" >&6; }
6204else
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
6207fi
6208
6209  if test "x$ac_ct_AR" = x; then
6210    AR=""
6211  else
6212    case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218    AR=$ac_ct_AR
6219  fi
6220else
6221  AR="$ac_cv_prog_AR"
6222fi
6223
6224
6225export CC CXX RANLIB LD AS AR
6226
6227
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6229$as_echo_n "checking whether ln -s works... " >&6; }
6230LN_S=$as_ln_s
6231if test "$LN_S" = "ln -s"; then
6232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6233$as_echo "yes" >&6; }
6234else
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6236$as_echo "no, using $LN_S" >&6; }
6237fi
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6240$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6241set x ${MAKE-make}
6242ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6243if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  cat >conftest.make <<\_ACEOF
6247SHELL = /bin/sh
6248all:
6249	@echo '@@@%%%=$(MAKE)=@@@%%%'
6250_ACEOF
6251# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6252case `${MAKE-make} -f conftest.make 2>/dev/null` in
6253  *@@@%%%=?*=@@@%%%*)
6254    eval ac_cv_prog_make_${ac_make}_set=yes;;
6255  *)
6256    eval ac_cv_prog_make_${ac_make}_set=no;;
6257esac
6258rm -f conftest.make
6259fi
6260if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262$as_echo "yes" >&6; }
6263  SET_MAKE=
6264else
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267  SET_MAKE="MAKE=${MAKE-make}"
6268fi
6269
6270
6271export cross_compiling
6272
6273case `pwd` in
6274  *\ * | *\	*)
6275    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6276$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6277esac
6278
6279
6280
6281macro_version='2.4.6'
6282macro_revision='2.4.6'
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296ltmain=$ac_aux_dir/ltmain.sh
6297
6298# Backslashify metacharacters that are still active within
6299# double-quoted strings.
6300sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6301
6302# Same as above, but do not quote variable references.
6303double_quote_subst='s/\(["`\\]\)/\\\1/g'
6304
6305# Sed substitution to delay expansion of an escaped shell variable in a
6306# double_quote_subst'ed string.
6307delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6308
6309# Sed substitution to delay expansion of an escaped single quote.
6310delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6311
6312# Sed substitution to avoid accidental globbing in evaled expressions
6313no_glob_subst='s/\*/\\\*/g'
6314
6315ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6316ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6317ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6318
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6320$as_echo_n "checking how to print strings... " >&6; }
6321# Test print first, because it will be a builtin if present.
6322if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6323   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6324  ECHO='print -r --'
6325elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6326  ECHO='printf %s\n'
6327else
6328  # Use this function as a fallback that always works.
6329  func_fallback_echo ()
6330  {
6331    eval 'cat <<_LTECHO_EOF
6332$1
6333_LTECHO_EOF'
6334  }
6335  ECHO='func_fallback_echo'
6336fi
6337
6338# func_echo_all arg...
6339# Invoke $ECHO with all args, space-separated.
6340func_echo_all ()
6341{
6342    $ECHO ""
6343}
6344
6345case $ECHO in
6346  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6347$as_echo "printf" >&6; } ;;
6348  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6349$as_echo "print -r" >&6; } ;;
6350  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6351$as_echo "cat" >&6; } ;;
6352esac
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6368$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6369if ${ac_cv_path_SED+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6373     for ac_i in 1 2 3 4 5 6 7; do
6374       ac_script="$ac_script$as_nl$ac_script"
6375     done
6376     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6377     { ac_script=; unset ac_script;}
6378     if test -z "$SED"; then
6379  ac_path_SED_found=false
6380  # Loop through the user's path and test for each of PROGNAME-LIST
6381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384  IFS=$as_save_IFS
6385  test -z "$as_dir" && as_dir=.
6386    for ac_prog in sed gsed; do
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6389      as_fn_executable_p "$ac_path_SED" || continue
6390# Check for GNU ac_path_SED and select it if it is found.
6391  # Check for GNU $ac_path_SED
6392case `"$ac_path_SED" --version 2>&1` in
6393*GNU*)
6394  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6395*)
6396  ac_count=0
6397  $as_echo_n 0123456789 >"conftest.in"
6398  while :
6399  do
6400    cat "conftest.in" "conftest.in" >"conftest.tmp"
6401    mv "conftest.tmp" "conftest.in"
6402    cp "conftest.in" "conftest.nl"
6403    $as_echo '' >> "conftest.nl"
6404    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6406    as_fn_arith $ac_count + 1 && ac_count=$as_val
6407    if test $ac_count -gt ${ac_path_SED_max-0}; then
6408      # Best one so far, save it but keep looking for a better one
6409      ac_cv_path_SED="$ac_path_SED"
6410      ac_path_SED_max=$ac_count
6411    fi
6412    # 10*(2^10) chars as input seems more than enough
6413    test $ac_count -gt 10 && break
6414  done
6415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6416esac
6417
6418      $ac_path_SED_found && break 3
6419    done
6420  done
6421  done
6422IFS=$as_save_IFS
6423  if test -z "$ac_cv_path_SED"; then
6424    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6425  fi
6426else
6427  ac_cv_path_SED=$SED
6428fi
6429
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6432$as_echo "$ac_cv_path_SED" >&6; }
6433 SED="$ac_cv_path_SED"
6434  rm -f conftest.sed
6435
6436test -z "$SED" && SED=sed
6437Xsed="$SED -e 1s/^X//"
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6450$as_echo_n "checking for fgrep... " >&6; }
6451if ${ac_cv_path_FGREP+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6455   then ac_cv_path_FGREP="$GREP -F"
6456   else
6457     if test -z "$FGREP"; then
6458  ac_path_FGREP_found=false
6459  # Loop through the user's path and test for each of PROGNAME-LIST
6460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6462do
6463  IFS=$as_save_IFS
6464  test -z "$as_dir" && as_dir=.
6465    for ac_prog in fgrep; do
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6468      as_fn_executable_p "$ac_path_FGREP" || continue
6469# Check for GNU ac_path_FGREP and select it if it is found.
6470  # Check for GNU $ac_path_FGREP
6471case `"$ac_path_FGREP" --version 2>&1` in
6472*GNU*)
6473  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6474*)
6475  ac_count=0
6476  $as_echo_n 0123456789 >"conftest.in"
6477  while :
6478  do
6479    cat "conftest.in" "conftest.in" >"conftest.tmp"
6480    mv "conftest.tmp" "conftest.in"
6481    cp "conftest.in" "conftest.nl"
6482    $as_echo 'FGREP' >> "conftest.nl"
6483    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6484    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6485    as_fn_arith $ac_count + 1 && ac_count=$as_val
6486    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6487      # Best one so far, save it but keep looking for a better one
6488      ac_cv_path_FGREP="$ac_path_FGREP"
6489      ac_path_FGREP_max=$ac_count
6490    fi
6491    # 10*(2^10) chars as input seems more than enough
6492    test $ac_count -gt 10 && break
6493  done
6494  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6495esac
6496
6497      $ac_path_FGREP_found && break 3
6498    done
6499  done
6500  done
6501IFS=$as_save_IFS
6502  if test -z "$ac_cv_path_FGREP"; then
6503    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6504  fi
6505else
6506  ac_cv_path_FGREP=$FGREP
6507fi
6508
6509   fi
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6512$as_echo "$ac_cv_path_FGREP" >&6; }
6513 FGREP="$ac_cv_path_FGREP"
6514
6515
6516test -z "$GREP" && GREP=grep
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536# Check whether --with-gnu-ld was given.
6537if test "${with_gnu_ld+set}" = set; then :
6538  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6539else
6540  with_gnu_ld=no
6541fi
6542
6543ac_prog=ld
6544if test yes = "$GCC"; then
6545  # Check if gcc -print-prog-name=ld gives a path.
6546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6547$as_echo_n "checking for ld used by $CC... " >&6; }
6548  case $host in
6549  *-*-mingw*)
6550    # gcc leaves a trailing carriage return, which upsets mingw
6551    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6552  *)
6553    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6554  esac
6555  case $ac_prog in
6556    # Accept absolute paths.
6557    [\\/]* | ?:[\\/]*)
6558      re_direlt='/[^/][^/]*/\.\./'
6559      # Canonicalize the pathname of ld
6560      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6561      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6562	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6563      done
6564      test -z "$LD" && LD=$ac_prog
6565      ;;
6566  "")
6567    # If it fails, then pretend we aren't using GCC.
6568    ac_prog=ld
6569    ;;
6570  *)
6571    # If it is relative, then search for the first ld in PATH.
6572    with_gnu_ld=unknown
6573    ;;
6574  esac
6575elif test yes = "$with_gnu_ld"; then
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6577$as_echo_n "checking for GNU ld... " >&6; }
6578else
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6580$as_echo_n "checking for non-GNU ld... " >&6; }
6581fi
6582if ${lt_cv_path_LD+:} false; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  if test -z "$LD"; then
6586  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6587  for ac_dir in $PATH; do
6588    IFS=$lt_save_ifs
6589    test -z "$ac_dir" && ac_dir=.
6590    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6591      lt_cv_path_LD=$ac_dir/$ac_prog
6592      # Check to see if the program is GNU ld.  I'd rather use --version,
6593      # but apparently some variants of GNU ld only accept -v.
6594      # Break only if it was the GNU/non-GNU ld that we prefer.
6595      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6596      *GNU* | *'with BFD'*)
6597	test no != "$with_gnu_ld" && break
6598	;;
6599      *)
6600	test yes != "$with_gnu_ld" && break
6601	;;
6602      esac
6603    fi
6604  done
6605  IFS=$lt_save_ifs
6606else
6607  lt_cv_path_LD=$LD # Let the user override the test with a path.
6608fi
6609fi
6610
6611LD=$lt_cv_path_LD
6612if test -n "$LD"; then
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6614$as_echo "$LD" >&6; }
6615else
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
6618fi
6619test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6621$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6622if ${lt_cv_prog_gnu_ld+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6626case `$LD -v 2>&1 </dev/null` in
6627*GNU* | *'with BFD'*)
6628  lt_cv_prog_gnu_ld=yes
6629  ;;
6630*)
6631  lt_cv_prog_gnu_ld=no
6632  ;;
6633esac
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6636$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6637with_gnu_ld=$lt_cv_prog_gnu_ld
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6648$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6649if ${lt_cv_path_NM+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$NM"; then
6653  # Let the user override the test.
6654  lt_cv_path_NM=$NM
6655else
6656  lt_nm_to_check=${ac_tool_prefix}nm
6657  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6658    lt_nm_to_check="$lt_nm_to_check nm"
6659  fi
6660  for lt_tmp_nm in $lt_nm_to_check; do
6661    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6662    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6663      IFS=$lt_save_ifs
6664      test -z "$ac_dir" && ac_dir=.
6665      tmp_nm=$ac_dir/$lt_tmp_nm
6666      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6667	# Check to see if the nm accepts a BSD-compat flag.
6668	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6669	#   nm: unknown option "B" ignored
6670	# Tru64's nm complains that /dev/null is an invalid object file
6671	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6672	case $build_os in
6673	mingw*) lt_bad_file=conftest.nm/nofile ;;
6674	*) lt_bad_file=/dev/null ;;
6675	esac
6676	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6677	*$lt_bad_file* | *'Invalid file or object type'*)
6678	  lt_cv_path_NM="$tmp_nm -B"
6679	  break 2
6680	  ;;
6681	*)
6682	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6683	  */dev/null*)
6684	    lt_cv_path_NM="$tmp_nm -p"
6685	    break 2
6686	    ;;
6687	  *)
6688	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6689	    continue # so that we can try to find one that supports BSD flags
6690	    ;;
6691	  esac
6692	  ;;
6693	esac
6694      fi
6695    done
6696    IFS=$lt_save_ifs
6697  done
6698  : ${lt_cv_path_NM=no}
6699fi
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6702$as_echo "$lt_cv_path_NM" >&6; }
6703if test no != "$lt_cv_path_NM"; then
6704  NM=$lt_cv_path_NM
6705else
6706  # Didn't find any BSD compatible name lister, look for dumpbin.
6707  if test -n "$DUMPBIN"; then :
6708    # Let the user override the test.
6709  else
6710    if test -n "$ac_tool_prefix"; then
6711  for ac_prog in dumpbin "link -dump"
6712  do
6713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
6717if ${ac_cv_prog_DUMPBIN+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  if test -n "$DUMPBIN"; then
6721  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728    for ac_exec_ext in '' $ac_executable_extensions; do
6729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732    break 2
6733  fi
6734done
6735  done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740DUMPBIN=$ac_cv_prog_DUMPBIN
6741if test -n "$DUMPBIN"; then
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6743$as_echo "$DUMPBIN" >&6; }
6744else
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749
6750    test -n "$DUMPBIN" && break
6751  done
6752fi
6753if test -z "$DUMPBIN"; then
6754  ac_ct_DUMPBIN=$DUMPBIN
6755  for ac_prog in dumpbin "link -dump"
6756do
6757  # Extract the first word of "$ac_prog", so it can be a program name with args.
6758set dummy $ac_prog; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  if test -n "$ac_ct_DUMPBIN"; then
6765  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772    for ac_exec_ext in '' $ac_executable_extensions; do
6773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776    break 2
6777  fi
6778done
6779  done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6785if test -n "$ac_ct_DUMPBIN"; then
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6787$as_echo "$ac_ct_DUMPBIN" >&6; }
6788else
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793
6794  test -n "$ac_ct_DUMPBIN" && break
6795done
6796
6797  if test "x$ac_ct_DUMPBIN" = x; then
6798    DUMPBIN=":"
6799  else
6800    case $cross_compiling:$ac_tool_warned in
6801yes:)
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804ac_tool_warned=yes ;;
6805esac
6806    DUMPBIN=$ac_ct_DUMPBIN
6807  fi
6808fi
6809
6810    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6811    *COFF*)
6812      DUMPBIN="$DUMPBIN -symbols -headers"
6813      ;;
6814    *)
6815      DUMPBIN=:
6816      ;;
6817    esac
6818  fi
6819
6820  if test : != "$DUMPBIN"; then
6821    NM=$DUMPBIN
6822  fi
6823fi
6824test -z "$NM" && NM=nm
6825
6826
6827
6828
6829
6830
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6832$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6833if ${lt_cv_nm_interface+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  lt_cv_nm_interface="BSD nm"
6837  echo "int some_variable = 0;" > conftest.$ac_ext
6838  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6839  (eval "$ac_compile" 2>conftest.err)
6840  cat conftest.err >&5
6841  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6842  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6843  cat conftest.err >&5
6844  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6845  cat conftest.out >&5
6846  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6847    lt_cv_nm_interface="MS dumpbin"
6848  fi
6849  rm -f conftest*
6850fi
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6852$as_echo "$lt_cv_nm_interface" >&6; }
6853
6854# find the maximum length of command line arguments
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6856$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6857if ${lt_cv_sys_max_cmd_len+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860    i=0
6861  teststring=ABCD
6862
6863  case $build_os in
6864  msdosdjgpp*)
6865    # On DJGPP, this test can blow up pretty badly due to problems in libc
6866    # (any single argument exceeding 2000 bytes causes a buffer overrun
6867    # during glob expansion).  Even if it were fixed, the result of this
6868    # check would be larger than it should be.
6869    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6870    ;;
6871
6872  gnu*)
6873    # Under GNU Hurd, this test is not required because there is
6874    # no limit to the length of command line arguments.
6875    # Libtool will interpret -1 as no limit whatsoever
6876    lt_cv_sys_max_cmd_len=-1;
6877    ;;
6878
6879  cygwin* | mingw* | cegcc*)
6880    # On Win9x/ME, this test blows up -- it succeeds, but takes
6881    # about 5 minutes as the teststring grows exponentially.
6882    # Worse, since 9x/ME are not pre-emptively multitasking,
6883    # you end up with a "frozen" computer, even though with patience
6884    # the test eventually succeeds (with a max line length of 256k).
6885    # Instead, let's just punt: use the minimum linelength reported by
6886    # all of the supported platforms: 8192 (on NT/2K/XP).
6887    lt_cv_sys_max_cmd_len=8192;
6888    ;;
6889
6890  mint*)
6891    # On MiNT this can take a long time and run out of memory.
6892    lt_cv_sys_max_cmd_len=8192;
6893    ;;
6894
6895  amigaos*)
6896    # On AmigaOS with pdksh, this test takes hours, literally.
6897    # So we just punt and use a minimum line length of 8192.
6898    lt_cv_sys_max_cmd_len=8192;
6899    ;;
6900
6901  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6902    # This has been around since 386BSD, at least.  Likely further.
6903    if test -x /sbin/sysctl; then
6904      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6905    elif test -x /usr/sbin/sysctl; then
6906      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6907    else
6908      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6909    fi
6910    # And add a safety zone
6911    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6912    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6913    ;;
6914
6915  interix*)
6916    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6917    lt_cv_sys_max_cmd_len=196608
6918    ;;
6919
6920  os2*)
6921    # The test takes a long time on OS/2.
6922    lt_cv_sys_max_cmd_len=8192
6923    ;;
6924
6925  osf*)
6926    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6927    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6928    # nice to cause kernel panics so lets avoid the loop below.
6929    # First set a reasonable default.
6930    lt_cv_sys_max_cmd_len=16384
6931    #
6932    if test -x /sbin/sysconfig; then
6933      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6934        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6935      esac
6936    fi
6937    ;;
6938  sco3.2v5*)
6939    lt_cv_sys_max_cmd_len=102400
6940    ;;
6941  sysv5* | sco5v6* | sysv4.2uw2*)
6942    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6943    if test -n "$kargmax"; then
6944      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6945    else
6946      lt_cv_sys_max_cmd_len=32768
6947    fi
6948    ;;
6949  *)
6950    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6951    if test -n "$lt_cv_sys_max_cmd_len" && \
6952       test undefined != "$lt_cv_sys_max_cmd_len"; then
6953      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6954      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6955    else
6956      # Make teststring a little bigger before we do anything with it.
6957      # a 1K string should be a reasonable start.
6958      for i in 1 2 3 4 5 6 7 8; do
6959        teststring=$teststring$teststring
6960      done
6961      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6962      # If test is not a shell built-in, we'll probably end up computing a
6963      # maximum length that is only half of the actual maximum length, but
6964      # we can't tell.
6965      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6966	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6967	      test 17 != "$i" # 1/2 MB should be enough
6968      do
6969        i=`expr $i + 1`
6970        teststring=$teststring$teststring
6971      done
6972      # Only check the string length outside the loop.
6973      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6974      teststring=
6975      # Add a significant safety factor because C++ compilers can tack on
6976      # massive amounts of additional arguments before passing them to the
6977      # linker.  It appears as though 1/2 is a usable value.
6978      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6979    fi
6980    ;;
6981  esac
6982
6983fi
6984
6985if test -n "$lt_cv_sys_max_cmd_len"; then
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6987$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6988else
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6990$as_echo "none" >&6; }
6991fi
6992max_cmd_len=$lt_cv_sys_max_cmd_len
6993
6994
6995
6996
6997
6998
6999: ${CP="cp -f"}
7000: ${MV="mv -f"}
7001: ${RM="rm -f"}
7002
7003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7004  lt_unset=unset
7005else
7006  lt_unset=false
7007fi
7008
7009
7010
7011
7012
7013# test EBCDIC or ASCII
7014case `echo X|tr X '\101'` in
7015 A) # ASCII based system
7016    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7017  lt_SP2NL='tr \040 \012'
7018  lt_NL2SP='tr \015\012 \040\040'
7019  ;;
7020 *) # EBCDIC based system
7021  lt_SP2NL='tr \100 \n'
7022  lt_NL2SP='tr \r\n \100\100'
7023  ;;
7024esac
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7035$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7036if ${lt_cv_to_host_file_cmd+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  case $host in
7040  *-*-mingw* )
7041    case $build in
7042      *-*-mingw* ) # actually msys
7043        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7044        ;;
7045      *-*-cygwin* )
7046        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7047        ;;
7048      * ) # otherwise, assume *nix
7049        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7050        ;;
7051    esac
7052    ;;
7053  *-*-cygwin* )
7054    case $build in
7055      *-*-mingw* ) # actually msys
7056        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7057        ;;
7058      *-*-cygwin* )
7059        lt_cv_to_host_file_cmd=func_convert_file_noop
7060        ;;
7061      * ) # otherwise, assume *nix
7062        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7063        ;;
7064    esac
7065    ;;
7066  * ) # unhandled hosts (and "normal" native builds)
7067    lt_cv_to_host_file_cmd=func_convert_file_noop
7068    ;;
7069esac
7070
7071fi
7072
7073to_host_file_cmd=$lt_cv_to_host_file_cmd
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7075$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7076
7077
7078
7079
7080
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7082$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7083if ${lt_cv_to_tool_file_cmd+:} false; then :
7084  $as_echo_n "(cached) " >&6
7085else
7086  #assume ordinary cross tools, or native build.
7087lt_cv_to_tool_file_cmd=func_convert_file_noop
7088case $host in
7089  *-*-mingw* )
7090    case $build in
7091      *-*-mingw* ) # actually msys
7092        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7093        ;;
7094    esac
7095    ;;
7096esac
7097
7098fi
7099
7100to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7102$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7103
7104
7105
7106
7107
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7109$as_echo_n "checking for $LD option to reload object files... " >&6; }
7110if ${lt_cv_ld_reload_flag+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  lt_cv_ld_reload_flag='-r'
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7116$as_echo "$lt_cv_ld_reload_flag" >&6; }
7117reload_flag=$lt_cv_ld_reload_flag
7118case $reload_flag in
7119"" | " "*) ;;
7120*) reload_flag=" $reload_flag" ;;
7121esac
7122reload_cmds='$LD$reload_flag -o $output$reload_objs'
7123case $host_os in
7124  cygwin* | mingw* | pw32* | cegcc*)
7125    if test yes != "$GCC"; then
7126      reload_cmds=false
7127    fi
7128    ;;
7129  darwin*)
7130    if test yes = "$GCC"; then
7131      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7132    else
7133      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7134    fi
7135    ;;
7136esac
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146if test -n "$ac_tool_prefix"; then
7147  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7148set dummy ${ac_tool_prefix}objdump; ac_word=$2
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150$as_echo_n "checking for $ac_word... " >&6; }
7151if ${ac_cv_prog_OBJDUMP+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  if test -n "$OBJDUMP"; then
7155  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162    for ac_exec_ext in '' $ac_executable_extensions; do
7163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169  done
7170IFS=$as_save_IFS
7171
7172fi
7173fi
7174OBJDUMP=$ac_cv_prog_OBJDUMP
7175if test -n "$OBJDUMP"; then
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7177$as_echo "$OBJDUMP" >&6; }
7178else
7179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
7181fi
7182
7183
7184fi
7185if test -z "$ac_cv_prog_OBJDUMP"; then
7186  ac_ct_OBJDUMP=$OBJDUMP
7187  # Extract the first word of "objdump", so it can be a program name with args.
7188set dummy objdump; ac_word=$2
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190$as_echo_n "checking for $ac_word... " >&6; }
7191if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  if test -n "$ac_ct_OBJDUMP"; then
7195  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202    for ac_exec_ext in '' $ac_executable_extensions; do
7203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209  done
7210IFS=$as_save_IFS
7211
7212fi
7213fi
7214ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7215if test -n "$ac_ct_OBJDUMP"; then
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7217$as_echo "$ac_ct_OBJDUMP" >&6; }
7218else
7219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220$as_echo "no" >&6; }
7221fi
7222
7223  if test "x$ac_ct_OBJDUMP" = x; then
7224    OBJDUMP="false"
7225  else
7226    case $cross_compiling:$ac_tool_warned in
7227yes:)
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7230ac_tool_warned=yes ;;
7231esac
7232    OBJDUMP=$ac_ct_OBJDUMP
7233  fi
7234else
7235  OBJDUMP="$ac_cv_prog_OBJDUMP"
7236fi
7237
7238test -z "$OBJDUMP" && OBJDUMP=objdump
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7249$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7250if ${lt_cv_deplibs_check_method+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  lt_cv_file_magic_cmd='$MAGIC_CMD'
7254lt_cv_file_magic_test_file=
7255lt_cv_deplibs_check_method='unknown'
7256# Need to set the preceding variable on all platforms that support
7257# interlibrary dependencies.
7258# 'none' -- dependencies not supported.
7259# 'unknown' -- same as none, but documents that we really don't know.
7260# 'pass_all' -- all dependencies passed with no checks.
7261# 'test_compile' -- check by making test program.
7262# 'file_magic [[regex]]' -- check by looking for files in library path
7263# that responds to the $file_magic_cmd with a given extended regex.
7264# If you have 'file' or equivalent on your system and you're not sure
7265# whether 'pass_all' will *always* work, you probably want this one.
7266
7267case $host_os in
7268aix[4-9]*)
7269  lt_cv_deplibs_check_method=pass_all
7270  ;;
7271
7272beos*)
7273  lt_cv_deplibs_check_method=pass_all
7274  ;;
7275
7276bsdi[45]*)
7277  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7278  lt_cv_file_magic_cmd='/usr/bin/file -L'
7279  lt_cv_file_magic_test_file=/shlib/libc.so
7280  ;;
7281
7282cygwin*)
7283  # func_win32_libid is a shell function defined in ltmain.sh
7284  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7285  lt_cv_file_magic_cmd='func_win32_libid'
7286  ;;
7287
7288mingw* | pw32*)
7289  # Base MSYS/MinGW do not provide the 'file' command needed by
7290  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7291  # unless we find 'file', for example because we are cross-compiling.
7292  if ( file / ) >/dev/null 2>&1; then
7293    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7294    lt_cv_file_magic_cmd='func_win32_libid'
7295  else
7296    # Keep this pattern in sync with the one in func_win32_libid.
7297    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7298    lt_cv_file_magic_cmd='$OBJDUMP -f'
7299  fi
7300  ;;
7301
7302cegcc*)
7303  # use the weaker test based on 'objdump'. See mingw*.
7304  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7305  lt_cv_file_magic_cmd='$OBJDUMP -f'
7306  ;;
7307
7308darwin* | rhapsody*)
7309  lt_cv_deplibs_check_method=pass_all
7310  ;;
7311
7312freebsd* | dragonfly*)
7313  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7314    case $host_cpu in
7315    i*86 )
7316      # Not sure whether the presence of OpenBSD here was a mistake.
7317      # Let's accept both of them until this is cleared up.
7318      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7319      lt_cv_file_magic_cmd=/usr/bin/file
7320      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7321      ;;
7322    esac
7323  else
7324    lt_cv_deplibs_check_method=pass_all
7325  fi
7326  ;;
7327
7328haiku*)
7329  lt_cv_deplibs_check_method=pass_all
7330  ;;
7331
7332hpux10.20* | hpux11*)
7333  lt_cv_file_magic_cmd=/usr/bin/file
7334  case $host_cpu in
7335  ia64*)
7336    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7337    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7338    ;;
7339  hppa*64*)
7340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7341    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7342    ;;
7343  *)
7344    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7345    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7346    ;;
7347  esac
7348  ;;
7349
7350interix[3-9]*)
7351  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7352  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7353  ;;
7354
7355irix5* | irix6* | nonstopux*)
7356  case $LD in
7357  *-32|*"-32 ") libmagic=32-bit;;
7358  *-n32|*"-n32 ") libmagic=N32;;
7359  *-64|*"-64 ") libmagic=64-bit;;
7360  *) libmagic=never-match;;
7361  esac
7362  lt_cv_deplibs_check_method=pass_all
7363  ;;
7364
7365# This must be glibc/ELF.
7366linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369
7370netbsd*)
7371  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7373  else
7374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7375  fi
7376  ;;
7377
7378newos6*)
7379  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7380  lt_cv_file_magic_cmd=/usr/bin/file
7381  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7382  ;;
7383
7384*nto* | *qnx*)
7385  lt_cv_deplibs_check_method=pass_all
7386  ;;
7387
7388openbsd* | bitrig*)
7389  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7391  else
7392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7393  fi
7394  ;;
7395
7396osf3* | osf4* | osf5*)
7397  lt_cv_deplibs_check_method=pass_all
7398  ;;
7399
7400rdos*)
7401  lt_cv_deplibs_check_method=pass_all
7402  ;;
7403
7404solaris*)
7405  lt_cv_deplibs_check_method=pass_all
7406  ;;
7407
7408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7409  lt_cv_deplibs_check_method=pass_all
7410  ;;
7411
7412sysv4 | sysv4.3*)
7413  case $host_vendor in
7414  motorola)
7415    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]'
7416    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7417    ;;
7418  ncr)
7419    lt_cv_deplibs_check_method=pass_all
7420    ;;
7421  sequent)
7422    lt_cv_file_magic_cmd='/bin/file'
7423    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7424    ;;
7425  sni)
7426    lt_cv_file_magic_cmd='/bin/file'
7427    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7428    lt_cv_file_magic_test_file=/lib/libc.so
7429    ;;
7430  siemens)
7431    lt_cv_deplibs_check_method=pass_all
7432    ;;
7433  pc)
7434    lt_cv_deplibs_check_method=pass_all
7435    ;;
7436  esac
7437  ;;
7438
7439tpf*)
7440  lt_cv_deplibs_check_method=pass_all
7441  ;;
7442os2*)
7443  lt_cv_deplibs_check_method=pass_all
7444  ;;
7445esac
7446
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7449$as_echo "$lt_cv_deplibs_check_method" >&6; }
7450
7451file_magic_glob=
7452want_nocaseglob=no
7453if test "$build" = "$host"; then
7454  case $host_os in
7455  mingw* | pw32*)
7456    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7457      want_nocaseglob=yes
7458    else
7459      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7460    fi
7461    ;;
7462  esac
7463fi
7464
7465file_magic_cmd=$lt_cv_file_magic_cmd
7466deplibs_check_method=$lt_cv_deplibs_check_method
7467test -z "$deplibs_check_method" && deplibs_check_method=unknown
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490if test -n "$ac_tool_prefix"; then
7491  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7492set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if ${ac_cv_prog_DLLTOOL+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  if test -n "$DLLTOOL"; then
7499  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506    for ac_exec_ext in '' $ac_executable_extensions; do
7507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513  done
7514IFS=$as_save_IFS
7515
7516fi
7517fi
7518DLLTOOL=$ac_cv_prog_DLLTOOL
7519if test -n "$DLLTOOL"; then
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7521$as_echo "$DLLTOOL" >&6; }
7522else
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527
7528fi
7529if test -z "$ac_cv_prog_DLLTOOL"; then
7530  ac_ct_DLLTOOL=$DLLTOOL
7531  # Extract the first word of "dlltool", so it can be a program name with args.
7532set dummy dlltool; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  if test -n "$ac_ct_DLLTOOL"; then
7539  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546    for ac_exec_ext in '' $ac_executable_extensions; do
7547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553  done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7559if test -n "$ac_ct_DLLTOOL"; then
7560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7561$as_echo "$ac_ct_DLLTOOL" >&6; }
7562else
7563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567  if test "x$ac_ct_DLLTOOL" = x; then
7568    DLLTOOL="false"
7569  else
7570    case $cross_compiling:$ac_tool_warned in
7571yes:)
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574ac_tool_warned=yes ;;
7575esac
7576    DLLTOOL=$ac_ct_DLLTOOL
7577  fi
7578else
7579  DLLTOOL="$ac_cv_prog_DLLTOOL"
7580fi
7581
7582test -z "$DLLTOOL" && DLLTOOL=dlltool
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7594$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7595if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  lt_cv_sharedlib_from_linklib_cmd='unknown'
7599
7600case $host_os in
7601cygwin* | mingw* | pw32* | cegcc*)
7602  # two different shell functions defined in ltmain.sh;
7603  # decide which one to use based on capabilities of $DLLTOOL
7604  case `$DLLTOOL --help 2>&1` in
7605  *--identify-strict*)
7606    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7607    ;;
7608  *)
7609    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7610    ;;
7611  esac
7612  ;;
7613*)
7614  # fallback: assume linklib IS sharedlib
7615  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7616  ;;
7617esac
7618
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7621$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7622sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7623test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7624
7625
7626
7627
7628
7629
7630
7631if test -n "$ac_tool_prefix"; then
7632  for ac_prog in ar
7633  do
7634    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if ${ac_cv_prog_AR+:} false; then :
7639  $as_echo_n "(cached) " >&6
7640else
7641  if test -n "$AR"; then
7642  ac_cv_prog_AR="$AR" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649    for ac_exec_ext in '' $ac_executable_extensions; do
7650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656  done
7657IFS=$as_save_IFS
7658
7659fi
7660fi
7661AR=$ac_cv_prog_AR
7662if test -n "$AR"; then
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7664$as_echo "$AR" >&6; }
7665else
7666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670
7671    test -n "$AR" && break
7672  done
7673fi
7674if test -z "$AR"; then
7675  ac_ct_AR=$AR
7676  for ac_prog in ar
7677do
7678  # Extract the first word of "$ac_prog", so it can be a program name with args.
7679set dummy $ac_prog; ac_word=$2
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
7682if ${ac_cv_prog_ac_ct_AR+:} false; then :
7683  $as_echo_n "(cached) " >&6
7684else
7685  if test -n "$ac_ct_AR"; then
7686  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691  IFS=$as_save_IFS
7692  test -z "$as_dir" && as_dir=.
7693    for ac_exec_ext in '' $ac_executable_extensions; do
7694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695    ac_cv_prog_ac_ct_AR="$ac_prog"
7696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697    break 2
7698  fi
7699done
7700  done
7701IFS=$as_save_IFS
7702
7703fi
7704fi
7705ac_ct_AR=$ac_cv_prog_ac_ct_AR
7706if test -n "$ac_ct_AR"; then
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7708$as_echo "$ac_ct_AR" >&6; }
7709else
7710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
7713
7714
7715  test -n "$ac_ct_AR" && break
7716done
7717
7718  if test "x$ac_ct_AR" = x; then
7719    AR="false"
7720  else
7721    case $cross_compiling:$ac_tool_warned in
7722yes:)
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725ac_tool_warned=yes ;;
7726esac
7727    AR=$ac_ct_AR
7728  fi
7729fi
7730
7731: ${AR=ar}
7732: ${AR_FLAGS=cru}
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7745$as_echo_n "checking for archiver @FILE support... " >&6; }
7746if ${lt_cv_ar_at_file+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  lt_cv_ar_at_file=no
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752
7753int
7754main ()
7755{
7756
7757  ;
7758  return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_compile "$LINENO"; then :
7762  echo conftest.$ac_objext > conftest.lst
7763      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7764      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7765  (eval $lt_ar_try) 2>&5
7766  ac_status=$?
7767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768  test $ac_status = 0; }
7769      if test 0 -eq "$ac_status"; then
7770	# Ensure the archiver fails upon bogus file names.
7771	rm -f conftest.$ac_objext libconftest.a
7772	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7773  (eval $lt_ar_try) 2>&5
7774  ac_status=$?
7775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776  test $ac_status = 0; }
7777	if test 0 -ne "$ac_status"; then
7778          lt_cv_ar_at_file=@
7779        fi
7780      fi
7781      rm -f conftest.* libconftest.a
7782
7783fi
7784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785
7786fi
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7788$as_echo "$lt_cv_ar_at_file" >&6; }
7789
7790if test no = "$lt_cv_ar_at_file"; then
7791  archiver_list_spec=
7792else
7793  archiver_list_spec=$lt_cv_ar_at_file
7794fi
7795
7796
7797
7798
7799
7800
7801
7802if test -n "$ac_tool_prefix"; then
7803  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7804set dummy ${ac_tool_prefix}strip; ac_word=$2
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
7807if ${ac_cv_prog_STRIP+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  if test -n "$STRIP"; then
7811  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816  IFS=$as_save_IFS
7817  test -z "$as_dir" && as_dir=.
7818    for ac_exec_ext in '' $ac_executable_extensions; do
7819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822    break 2
7823  fi
7824done
7825  done
7826IFS=$as_save_IFS
7827
7828fi
7829fi
7830STRIP=$ac_cv_prog_STRIP
7831if test -n "$STRIP"; then
7832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7833$as_echo "$STRIP" >&6; }
7834else
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
7837fi
7838
7839
7840fi
7841if test -z "$ac_cv_prog_STRIP"; then
7842  ac_ct_STRIP=$STRIP
7843  # Extract the first word of "strip", so it can be a program name with args.
7844set dummy strip; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  if test -n "$ac_ct_STRIP"; then
7851  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  test -z "$as_dir" && as_dir=.
7858    for ac_exec_ext in '' $ac_executable_extensions; do
7859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860    ac_cv_prog_ac_ct_STRIP="strip"
7861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862    break 2
7863  fi
7864done
7865  done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7871if test -n "$ac_ct_STRIP"; then
7872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7873$as_echo "$ac_ct_STRIP" >&6; }
7874else
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879  if test "x$ac_ct_STRIP" = x; then
7880    STRIP=":"
7881  else
7882    case $cross_compiling:$ac_tool_warned in
7883yes:)
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7886ac_tool_warned=yes ;;
7887esac
7888    STRIP=$ac_ct_STRIP
7889  fi
7890else
7891  STRIP="$ac_cv_prog_STRIP"
7892fi
7893
7894test -z "$STRIP" && STRIP=:
7895
7896
7897
7898
7899
7900
7901if test -n "$ac_tool_prefix"; then
7902  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7903set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if ${ac_cv_prog_RANLIB+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  if test -n "$RANLIB"; then
7910  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915  IFS=$as_save_IFS
7916  test -z "$as_dir" && as_dir=.
7917    for ac_exec_ext in '' $ac_executable_extensions; do
7918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921    break 2
7922  fi
7923done
7924  done
7925IFS=$as_save_IFS
7926
7927fi
7928fi
7929RANLIB=$ac_cv_prog_RANLIB
7930if test -n "$RANLIB"; then
7931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7932$as_echo "$RANLIB" >&6; }
7933else
7934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
7936fi
7937
7938
7939fi
7940if test -z "$ac_cv_prog_RANLIB"; then
7941  ac_ct_RANLIB=$RANLIB
7942  # Extract the first word of "ranlib", so it can be a program name with args.
7943set dummy ranlib; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  if test -n "$ac_ct_RANLIB"; then
7950  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955  IFS=$as_save_IFS
7956  test -z "$as_dir" && as_dir=.
7957    for ac_exec_ext in '' $ac_executable_extensions; do
7958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959    ac_cv_prog_ac_ct_RANLIB="ranlib"
7960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961    break 2
7962  fi
7963done
7964  done
7965IFS=$as_save_IFS
7966
7967fi
7968fi
7969ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7970if test -n "$ac_ct_RANLIB"; then
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7972$as_echo "$ac_ct_RANLIB" >&6; }
7973else
7974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
7978  if test "x$ac_ct_RANLIB" = x; then
7979    RANLIB=":"
7980  else
7981    case $cross_compiling:$ac_tool_warned in
7982yes:)
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985ac_tool_warned=yes ;;
7986esac
7987    RANLIB=$ac_ct_RANLIB
7988  fi
7989else
7990  RANLIB="$ac_cv_prog_RANLIB"
7991fi
7992
7993test -z "$RANLIB" && RANLIB=:
7994
7995
7996
7997
7998
7999
8000# Determine commands to create old-style static archives.
8001old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8002old_postinstall_cmds='chmod 644 $oldlib'
8003old_postuninstall_cmds=
8004
8005if test -n "$RANLIB"; then
8006  case $host_os in
8007  bitrig* | openbsd*)
8008    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8009    ;;
8010  *)
8011    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8012    ;;
8013  esac
8014  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8015fi
8016
8017case $host_os in
8018  darwin*)
8019    lock_old_archive_extraction=yes ;;
8020  *)
8021    lock_old_archive_extraction=no ;;
8022esac
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062# If no C compiler was specified, use CC.
8063LTCC=${LTCC-"$CC"}
8064
8065# If no C compiler flags were specified, use CFLAGS.
8066LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8067
8068# Allow CC to be a program name with arguments.
8069compiler=$CC
8070
8071
8072# Check for command to grab the raw symbol name followed by C symbol from nm.
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8074$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8075if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078
8079# These are sane defaults that work on at least a few old systems.
8080# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8081
8082# Character class describing NM global symbol codes.
8083symcode='[BCDEGRST]'
8084
8085# Regexp to match symbols that can be accessed directly from C.
8086sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8087
8088# Define system-specific variables.
8089case $host_os in
8090aix*)
8091  symcode='[BCDT]'
8092  ;;
8093cygwin* | mingw* | pw32* | cegcc*)
8094  symcode='[ABCDGISTW]'
8095  ;;
8096hpux*)
8097  if test ia64 = "$host_cpu"; then
8098    symcode='[ABCDEGRST]'
8099  fi
8100  ;;
8101irix* | nonstopux*)
8102  symcode='[BCDEGRST]'
8103  ;;
8104osf*)
8105  symcode='[BCDEGQRST]'
8106  ;;
8107solaris*)
8108  symcode='[BDRT]'
8109  ;;
8110sco3.2v5*)
8111  symcode='[DT]'
8112  ;;
8113sysv4.2uw2*)
8114  symcode='[DT]'
8115  ;;
8116sysv5* | sco5v6* | unixware* | OpenUNIX*)
8117  symcode='[ABDT]'
8118  ;;
8119sysv4)
8120  symcode='[DFNSTU]'
8121  ;;
8122esac
8123
8124# If we're using GNU nm, then use its standard symbol codes.
8125case `$NM -V 2>&1` in
8126*GNU* | *'with BFD'*)
8127  symcode='[ABCDGIRSTW]' ;;
8128esac
8129
8130if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8131  # Gets list of data symbols to import.
8132  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8133  # Adjust the below global symbol transforms to fixup imported variables.
8134  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8135  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8136  lt_c_name_lib_hook="\
8137  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8138  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8139else
8140  # Disable hooks by default.
8141  lt_cv_sys_global_symbol_to_import=
8142  lt_cdecl_hook=
8143  lt_c_name_hook=
8144  lt_c_name_lib_hook=
8145fi
8146
8147# Transform an extracted symbol line into a proper C declaration.
8148# Some systems (esp. on ia64) link data and code symbols differently,
8149# so use this general approach.
8150lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8151$lt_cdecl_hook\
8152" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8153" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8154
8155# Transform an extracted symbol line into symbol name and symbol address
8156lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8157$lt_c_name_hook\
8158" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8159" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8160
8161# Transform an extracted symbol line into symbol name with lib prefix and
8162# symbol address.
8163lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8164$lt_c_name_lib_hook\
8165" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8166" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8167" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8168
8169# Handle CRLF in mingw tool chain
8170opt_cr=
8171case $build_os in
8172mingw*)
8173  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8174  ;;
8175esac
8176
8177# Try without a prefix underscore, then with it.
8178for ac_symprfx in "" "_"; do
8179
8180  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8181  symxfrm="\\1 $ac_symprfx\\2 \\2"
8182
8183  # Write the raw and C identifiers.
8184  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8185    # Fake it for dumpbin and say T for any non-static function,
8186    # D for any global variable and I for any imported variable.
8187    # Also find C++ and __fastcall symbols from MSVC++,
8188    # which start with @ or ?.
8189    lt_cv_sys_global_symbol_pipe="$AWK '"\
8190"     {last_section=section; section=\$ 3};"\
8191"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8192"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8193"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8194"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8195"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8196"     \$ 0!~/External *\|/{next};"\
8197"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8198"     {if(hide[section]) next};"\
8199"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8200"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8201"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8202"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8203"     ' prfx=^$ac_symprfx"
8204  else
8205    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8206  fi
8207  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8208
8209  # Check to see that the pipe works correctly.
8210  pipe_works=no
8211
8212  rm -f conftest*
8213  cat > conftest.$ac_ext <<_LT_EOF
8214#ifdef __cplusplus
8215extern "C" {
8216#endif
8217char nm_test_var;
8218void nm_test_func(void);
8219void nm_test_func(void){}
8220#ifdef __cplusplus
8221}
8222#endif
8223int main(){nm_test_var='a';nm_test_func();return(0);}
8224_LT_EOF
8225
8226  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8227  (eval $ac_compile) 2>&5
8228  ac_status=$?
8229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8230  test $ac_status = 0; }; then
8231    # Now try to grab the symbols.
8232    nlist=conftest.nm
8233    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8234  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8235  ac_status=$?
8236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237  test $ac_status = 0; } && test -s "$nlist"; then
8238      # Try sorting and uniquifying the output.
8239      if sort "$nlist" | uniq > "$nlist"T; then
8240	mv -f "$nlist"T "$nlist"
8241      else
8242	rm -f "$nlist"T
8243      fi
8244
8245      # Make sure that we snagged all the symbols we need.
8246      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8247	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8248	  cat <<_LT_EOF > conftest.$ac_ext
8249/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8250#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8251/* DATA imports from DLLs on WIN32 can't be const, because runtime
8252   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8253# define LT_DLSYM_CONST
8254#elif defined __osf__
8255/* This system does not cope well with relocations in const data.  */
8256# define LT_DLSYM_CONST
8257#else
8258# define LT_DLSYM_CONST const
8259#endif
8260
8261#ifdef __cplusplus
8262extern "C" {
8263#endif
8264
8265_LT_EOF
8266	  # Now generate the symbol file.
8267	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8268
8269	  cat <<_LT_EOF >> conftest.$ac_ext
8270
8271/* The mapping between symbol names and symbols.  */
8272LT_DLSYM_CONST struct {
8273  const char *name;
8274  void       *address;
8275}
8276lt__PROGRAM__LTX_preloaded_symbols[] =
8277{
8278  { "@PROGRAM@", (void *) 0 },
8279_LT_EOF
8280	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8281	  cat <<\_LT_EOF >> conftest.$ac_ext
8282  {0, (void *) 0}
8283};
8284
8285/* This works around a problem in FreeBSD linker */
8286#ifdef FREEBSD_WORKAROUND
8287static const void *lt_preloaded_setup() {
8288  return lt__PROGRAM__LTX_preloaded_symbols;
8289}
8290#endif
8291
8292#ifdef __cplusplus
8293}
8294#endif
8295_LT_EOF
8296	  # Now try linking the two files.
8297	  mv conftest.$ac_objext conftstm.$ac_objext
8298	  lt_globsym_save_LIBS=$LIBS
8299	  lt_globsym_save_CFLAGS=$CFLAGS
8300	  LIBS=conftstm.$ac_objext
8301	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8302	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8303  (eval $ac_link) 2>&5
8304  ac_status=$?
8305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8306  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8307	    pipe_works=yes
8308	  fi
8309	  LIBS=$lt_globsym_save_LIBS
8310	  CFLAGS=$lt_globsym_save_CFLAGS
8311	else
8312	  echo "cannot find nm_test_func in $nlist" >&5
8313	fi
8314      else
8315	echo "cannot find nm_test_var in $nlist" >&5
8316      fi
8317    else
8318      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8319    fi
8320  else
8321    echo "$progname: failed program was:" >&5
8322    cat conftest.$ac_ext >&5
8323  fi
8324  rm -rf conftest* conftst*
8325
8326  # Do not use the global_symbol_pipe unless it works.
8327  if test yes = "$pipe_works"; then
8328    break
8329  else
8330    lt_cv_sys_global_symbol_pipe=
8331  fi
8332done
8333
8334fi
8335
8336if test -z "$lt_cv_sys_global_symbol_pipe"; then
8337  lt_cv_sys_global_symbol_to_cdecl=
8338fi
8339if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8341$as_echo "failed" >&6; }
8342else
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8344$as_echo "ok" >&6; }
8345fi
8346
8347# Response file support.
8348if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8349  nm_file_list_spec='@'
8350elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8351  nm_file_list_spec='@'
8352fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8391$as_echo_n "checking for sysroot... " >&6; }
8392
8393# Check whether --with-sysroot was given.
8394if test "${with_sysroot+set}" = set; then :
8395  withval=$with_sysroot;
8396else
8397  with_sysroot=no
8398fi
8399
8400
8401lt_sysroot=
8402case $with_sysroot in #(
8403 yes)
8404   if test yes = "$GCC"; then
8405     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8406   fi
8407   ;; #(
8408 /*)
8409   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8410   ;; #(
8411 no|'')
8412   ;; #(
8413 *)
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8415$as_echo "$with_sysroot" >&6; }
8416   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8417   ;;
8418esac
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8421$as_echo "${lt_sysroot:-no}" >&6; }
8422
8423
8424
8425
8426
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8428$as_echo_n "checking for a working dd... " >&6; }
8429if ${ac_cv_path_lt_DD+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  printf 0123456789abcdef0123456789abcdef >conftest.i
8433cat conftest.i conftest.i >conftest2.i
8434: ${lt_DD:=$DD}
8435if test -z "$lt_DD"; then
8436  ac_path_lt_DD_found=false
8437  # Loop through the user's path and test for each of PROGNAME-LIST
8438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441  IFS=$as_save_IFS
8442  test -z "$as_dir" && as_dir=.
8443    for ac_prog in dd; do
8444    for ac_exec_ext in '' $ac_executable_extensions; do
8445      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8446      as_fn_executable_p "$ac_path_lt_DD" || continue
8447if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8448  cmp -s conftest.i conftest.out \
8449  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8450fi
8451      $ac_path_lt_DD_found && break 3
8452    done
8453  done
8454  done
8455IFS=$as_save_IFS
8456  if test -z "$ac_cv_path_lt_DD"; then
8457    :
8458  fi
8459else
8460  ac_cv_path_lt_DD=$lt_DD
8461fi
8462
8463rm -f conftest.i conftest2.i conftest.out
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8466$as_echo "$ac_cv_path_lt_DD" >&6; }
8467
8468
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8470$as_echo_n "checking how to truncate binary pipes... " >&6; }
8471if ${lt_cv_truncate_bin+:} false; then :
8472  $as_echo_n "(cached) " >&6
8473else
8474  printf 0123456789abcdef0123456789abcdef >conftest.i
8475cat conftest.i conftest.i >conftest2.i
8476lt_cv_truncate_bin=
8477if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8478  cmp -s conftest.i conftest.out \
8479  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8480fi
8481rm -f conftest.i conftest2.i conftest.out
8482test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8485$as_echo "$lt_cv_truncate_bin" >&6; }
8486
8487
8488
8489
8490
8491
8492
8493# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8494func_cc_basename ()
8495{
8496    for cc_temp in $*""; do
8497      case $cc_temp in
8498        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8500        \-*) ;;
8501        *) break;;
8502      esac
8503    done
8504    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8505}
8506
8507# Check whether --enable-libtool-lock was given.
8508if test "${enable_libtool_lock+set}" = set; then :
8509  enableval=$enable_libtool_lock;
8510fi
8511
8512test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8513
8514# Some flags need to be propagated to the compiler or linker for good
8515# libtool support.
8516case $host in
8517ia64-*-hpux*)
8518  # Find out what ABI is being produced by ac_compile, and set mode
8519  # options accordingly.
8520  echo 'int i;' > conftest.$ac_ext
8521  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8522  (eval $ac_compile) 2>&5
8523  ac_status=$?
8524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8525  test $ac_status = 0; }; then
8526    case `/usr/bin/file conftest.$ac_objext` in
8527      *ELF-32*)
8528	HPUX_IA64_MODE=32
8529	;;
8530      *ELF-64*)
8531	HPUX_IA64_MODE=64
8532	;;
8533    esac
8534  fi
8535  rm -rf conftest*
8536  ;;
8537*-*-irix6*)
8538  # Find out what ABI is being produced by ac_compile, and set linker
8539  # options accordingly.
8540  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8541  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8542  (eval $ac_compile) 2>&5
8543  ac_status=$?
8544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8545  test $ac_status = 0; }; then
8546    if test yes = "$lt_cv_prog_gnu_ld"; then
8547      case `/usr/bin/file conftest.$ac_objext` in
8548	*32-bit*)
8549	  LD="${LD-ld} -melf32bsmip"
8550	  ;;
8551	*N32*)
8552	  LD="${LD-ld} -melf32bmipn32"
8553	  ;;
8554	*64-bit*)
8555	  LD="${LD-ld} -melf64bmip"
8556	;;
8557      esac
8558    else
8559      case `/usr/bin/file conftest.$ac_objext` in
8560	*32-bit*)
8561	  LD="${LD-ld} -32"
8562	  ;;
8563	*N32*)
8564	  LD="${LD-ld} -n32"
8565	  ;;
8566	*64-bit*)
8567	  LD="${LD-ld} -64"
8568	  ;;
8569      esac
8570    fi
8571  fi
8572  rm -rf conftest*
8573  ;;
8574
8575mips64*-*linux*)
8576  # Find out what ABI is being produced by ac_compile, and set linker
8577  # options accordingly.
8578  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8579  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8580  (eval $ac_compile) 2>&5
8581  ac_status=$?
8582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583  test $ac_status = 0; }; then
8584    emul=elf
8585    case `/usr/bin/file conftest.$ac_objext` in
8586      *32-bit*)
8587	emul="${emul}32"
8588	;;
8589      *64-bit*)
8590	emul="${emul}64"
8591	;;
8592    esac
8593    case `/usr/bin/file conftest.$ac_objext` in
8594      *MSB*)
8595	emul="${emul}btsmip"
8596	;;
8597      *LSB*)
8598	emul="${emul}ltsmip"
8599	;;
8600    esac
8601    case `/usr/bin/file conftest.$ac_objext` in
8602      *N32*)
8603	emul="${emul}n32"
8604	;;
8605    esac
8606    LD="${LD-ld} -m $emul"
8607  fi
8608  rm -rf conftest*
8609  ;;
8610
8611x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8612s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8613  # Find out what ABI is being produced by ac_compile, and set linker
8614  # options accordingly.  Note that the listed cases only cover the
8615  # situations where additional linker options are needed (such as when
8616  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8617  # vice versa); the common cases where no linker options are needed do
8618  # not appear in the list.
8619  echo 'int i;' > conftest.$ac_ext
8620  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8621  (eval $ac_compile) 2>&5
8622  ac_status=$?
8623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624  test $ac_status = 0; }; then
8625    case `/usr/bin/file conftest.o` in
8626      *32-bit*)
8627	case $host in
8628	  x86_64-*kfreebsd*-gnu)
8629	    LD="${LD-ld} -m elf_i386_fbsd"
8630	    ;;
8631	  x86_64-*linux*)
8632	    case `/usr/bin/file conftest.o` in
8633	      *x86-64*)
8634		LD="${LD-ld} -m elf32_x86_64"
8635		;;
8636	      *)
8637		LD="${LD-ld} -m elf_i386"
8638		;;
8639	    esac
8640	    ;;
8641	  powerpc64le-*linux*)
8642	    LD="${LD-ld} -m elf32lppclinux"
8643	    ;;
8644	  powerpc64-*linux*)
8645	    LD="${LD-ld} -m elf32ppclinux"
8646	    ;;
8647	  s390x-*linux*)
8648	    LD="${LD-ld} -m elf_s390"
8649	    ;;
8650	  sparc64-*linux*)
8651	    LD="${LD-ld} -m elf32_sparc"
8652	    ;;
8653	esac
8654	;;
8655      *64-bit*)
8656	case $host in
8657	  x86_64-*kfreebsd*-gnu)
8658	    LD="${LD-ld} -m elf_x86_64_fbsd"
8659	    ;;
8660	  x86_64-*linux*)
8661	    LD="${LD-ld} -m elf_x86_64"
8662	    ;;
8663	  powerpcle-*linux*)
8664	    LD="${LD-ld} -m elf64lppc"
8665	    ;;
8666	  powerpc-*linux*)
8667	    LD="${LD-ld} -m elf64ppc"
8668	    ;;
8669	  s390*-*linux*|s390*-*tpf*)
8670	    LD="${LD-ld} -m elf64_s390"
8671	    ;;
8672	  sparc*-*linux*)
8673	    LD="${LD-ld} -m elf64_sparc"
8674	    ;;
8675	esac
8676	;;
8677    esac
8678  fi
8679  rm -rf conftest*
8680  ;;
8681
8682*-*-sco3.2v5*)
8683  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8684  SAVE_CFLAGS=$CFLAGS
8685  CFLAGS="$CFLAGS -belf"
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8687$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8688if ${lt_cv_cc_needs_belf+:} false; then :
8689  $as_echo_n "(cached) " >&6
8690else
8691  ac_ext=c
8692ac_cpp='$CPP $CPPFLAGS'
8693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699
8700int
8701main ()
8702{
8703
8704  ;
8705  return 0;
8706}
8707_ACEOF
8708if ac_fn_c_try_link "$LINENO"; then :
8709  lt_cv_cc_needs_belf=yes
8710else
8711  lt_cv_cc_needs_belf=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext \
8714    conftest$ac_exeext conftest.$ac_ext
8715     ac_ext=c
8716ac_cpp='$CPP $CPPFLAGS'
8717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719ac_compiler_gnu=$ac_cv_c_compiler_gnu
8720
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8723$as_echo "$lt_cv_cc_needs_belf" >&6; }
8724  if test yes != "$lt_cv_cc_needs_belf"; then
8725    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8726    CFLAGS=$SAVE_CFLAGS
8727  fi
8728  ;;
8729*-*solaris*)
8730  # Find out what ABI is being produced by ac_compile, and set linker
8731  # options accordingly.
8732  echo 'int i;' > conftest.$ac_ext
8733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8734  (eval $ac_compile) 2>&5
8735  ac_status=$?
8736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8737  test $ac_status = 0; }; then
8738    case `/usr/bin/file conftest.o` in
8739    *64-bit*)
8740      case $lt_cv_prog_gnu_ld in
8741      yes*)
8742        case $host in
8743        i?86-*-solaris*|x86_64-*-solaris*)
8744          LD="${LD-ld} -m elf_x86_64"
8745          ;;
8746        sparc*-*-solaris*)
8747          LD="${LD-ld} -m elf64_sparc"
8748          ;;
8749        esac
8750        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8751        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8752          LD=${LD-ld}_sol2
8753        fi
8754        ;;
8755      *)
8756	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8757	  LD="${LD-ld} -64"
8758	fi
8759	;;
8760      esac
8761      ;;
8762    esac
8763  fi
8764  rm -rf conftest*
8765  ;;
8766esac
8767
8768need_locks=$enable_libtool_lock
8769
8770if test -n "$ac_tool_prefix"; then
8771  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8772set dummy ${ac_tool_prefix}mt; ac_word=$2
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774$as_echo_n "checking for $ac_word... " >&6; }
8775if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8776  $as_echo_n "(cached) " >&6
8777else
8778  if test -n "$MANIFEST_TOOL"; then
8779  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8780else
8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784  IFS=$as_save_IFS
8785  test -z "$as_dir" && as_dir=.
8786    for ac_exec_ext in '' $ac_executable_extensions; do
8787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8788    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8790    break 2
8791  fi
8792done
8793  done
8794IFS=$as_save_IFS
8795
8796fi
8797fi
8798MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8799if test -n "$MANIFEST_TOOL"; then
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8801$as_echo "$MANIFEST_TOOL" >&6; }
8802else
8803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804$as_echo "no" >&6; }
8805fi
8806
8807
8808fi
8809if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8810  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8811  # Extract the first word of "mt", so it can be a program name with args.
8812set dummy mt; ac_word=$2
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814$as_echo_n "checking for $ac_word... " >&6; }
8815if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  if test -n "$ac_ct_MANIFEST_TOOL"; then
8819  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8820else
8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822for as_dir in $PATH
8823do
8824  IFS=$as_save_IFS
8825  test -z "$as_dir" && as_dir=.
8826    for ac_exec_ext in '' $ac_executable_extensions; do
8827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830    break 2
8831  fi
8832done
8833  done
8834IFS=$as_save_IFS
8835
8836fi
8837fi
8838ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8839if test -n "$ac_ct_MANIFEST_TOOL"; then
8840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8841$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8842else
8843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
8845fi
8846
8847  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8848    MANIFEST_TOOL=":"
8849  else
8850    case $cross_compiling:$ac_tool_warned in
8851yes:)
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8854ac_tool_warned=yes ;;
8855esac
8856    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8857  fi
8858else
8859  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8860fi
8861
8862test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8864$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8865if ${lt_cv_path_mainfest_tool+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  lt_cv_path_mainfest_tool=no
8869  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8870  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8871  cat conftest.err >&5
8872  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8873    lt_cv_path_mainfest_tool=yes
8874  fi
8875  rm -f conftest*
8876fi
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8878$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8879if test yes != "$lt_cv_path_mainfest_tool"; then
8880  MANIFEST_TOOL=:
8881fi
8882
8883
8884
8885
8886
8887
8888  case $host_os in
8889    rhapsody* | darwin*)
8890    if test -n "$ac_tool_prefix"; then
8891  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8892set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894$as_echo_n "checking for $ac_word... " >&6; }
8895if ${ac_cv_prog_DSYMUTIL+:} false; then :
8896  $as_echo_n "(cached) " >&6
8897else
8898  if test -n "$DSYMUTIL"; then
8899  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8900else
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904  IFS=$as_save_IFS
8905  test -z "$as_dir" && as_dir=.
8906    for ac_exec_ext in '' $ac_executable_extensions; do
8907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8908    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910    break 2
8911  fi
8912done
8913  done
8914IFS=$as_save_IFS
8915
8916fi
8917fi
8918DSYMUTIL=$ac_cv_prog_DSYMUTIL
8919if test -n "$DSYMUTIL"; then
8920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8921$as_echo "$DSYMUTIL" >&6; }
8922else
8923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924$as_echo "no" >&6; }
8925fi
8926
8927
8928fi
8929if test -z "$ac_cv_prog_DSYMUTIL"; then
8930  ac_ct_DSYMUTIL=$DSYMUTIL
8931  # Extract the first word of "dsymutil", so it can be a program name with args.
8932set dummy dsymutil; ac_word=$2
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
8935if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8936  $as_echo_n "(cached) " >&6
8937else
8938  if test -n "$ac_ct_DSYMUTIL"; then
8939  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944  IFS=$as_save_IFS
8945  test -z "$as_dir" && as_dir=.
8946    for ac_exec_ext in '' $ac_executable_extensions; do
8947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950    break 2
8951  fi
8952done
8953  done
8954IFS=$as_save_IFS
8955
8956fi
8957fi
8958ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8959if test -n "$ac_ct_DSYMUTIL"; then
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8961$as_echo "$ac_ct_DSYMUTIL" >&6; }
8962else
8963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
8965fi
8966
8967  if test "x$ac_ct_DSYMUTIL" = x; then
8968    DSYMUTIL=":"
8969  else
8970    case $cross_compiling:$ac_tool_warned in
8971yes:)
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8974ac_tool_warned=yes ;;
8975esac
8976    DSYMUTIL=$ac_ct_DSYMUTIL
8977  fi
8978else
8979  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8980fi
8981
8982    if test -n "$ac_tool_prefix"; then
8983  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8984set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986$as_echo_n "checking for $ac_word... " >&6; }
8987if ${ac_cv_prog_NMEDIT+:} false; then :
8988  $as_echo_n "(cached) " >&6
8989else
8990  if test -n "$NMEDIT"; then
8991  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8992else
8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994for as_dir in $PATH
8995do
8996  IFS=$as_save_IFS
8997  test -z "$as_dir" && as_dir=.
8998    for ac_exec_ext in '' $ac_executable_extensions; do
8999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002    break 2
9003  fi
9004done
9005  done
9006IFS=$as_save_IFS
9007
9008fi
9009fi
9010NMEDIT=$ac_cv_prog_NMEDIT
9011if test -n "$NMEDIT"; then
9012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9013$as_echo "$NMEDIT" >&6; }
9014else
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016$as_echo "no" >&6; }
9017fi
9018
9019
9020fi
9021if test -z "$ac_cv_prog_NMEDIT"; then
9022  ac_ct_NMEDIT=$NMEDIT
9023  # Extract the first word of "nmedit", so it can be a program name with args.
9024set dummy nmedit; ac_word=$2
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026$as_echo_n "checking for $ac_word... " >&6; }
9027if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  if test -n "$ac_ct_NMEDIT"; then
9031  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9032else
9033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034for as_dir in $PATH
9035do
9036  IFS=$as_save_IFS
9037  test -z "$as_dir" && as_dir=.
9038    for ac_exec_ext in '' $ac_executable_extensions; do
9039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042    break 2
9043  fi
9044done
9045  done
9046IFS=$as_save_IFS
9047
9048fi
9049fi
9050ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9051if test -n "$ac_ct_NMEDIT"; then
9052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9053$as_echo "$ac_ct_NMEDIT" >&6; }
9054else
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056$as_echo "no" >&6; }
9057fi
9058
9059  if test "x$ac_ct_NMEDIT" = x; then
9060    NMEDIT=":"
9061  else
9062    case $cross_compiling:$ac_tool_warned in
9063yes:)
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9066ac_tool_warned=yes ;;
9067esac
9068    NMEDIT=$ac_ct_NMEDIT
9069  fi
9070else
9071  NMEDIT="$ac_cv_prog_NMEDIT"
9072fi
9073
9074    if test -n "$ac_tool_prefix"; then
9075  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9076set dummy ${ac_tool_prefix}lipo; ac_word=$2
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if ${ac_cv_prog_LIPO+:} false; then :
9080  $as_echo_n "(cached) " >&6
9081else
9082  if test -n "$LIPO"; then
9083  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9084else
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088  IFS=$as_save_IFS
9089  test -z "$as_dir" && as_dir=.
9090    for ac_exec_ext in '' $ac_executable_extensions; do
9091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094    break 2
9095  fi
9096done
9097  done
9098IFS=$as_save_IFS
9099
9100fi
9101fi
9102LIPO=$ac_cv_prog_LIPO
9103if test -n "$LIPO"; then
9104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9105$as_echo "$LIPO" >&6; }
9106else
9107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
9109fi
9110
9111
9112fi
9113if test -z "$ac_cv_prog_LIPO"; then
9114  ac_ct_LIPO=$LIPO
9115  # Extract the first word of "lipo", so it can be a program name with args.
9116set dummy lipo; ac_word=$2
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118$as_echo_n "checking for $ac_word... " >&6; }
9119if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9120  $as_echo_n "(cached) " >&6
9121else
9122  if test -n "$ac_ct_LIPO"; then
9123  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128  IFS=$as_save_IFS
9129  test -z "$as_dir" && as_dir=.
9130    for ac_exec_ext in '' $ac_executable_extensions; do
9131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132    ac_cv_prog_ac_ct_LIPO="lipo"
9133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134    break 2
9135  fi
9136done
9137  done
9138IFS=$as_save_IFS
9139
9140fi
9141fi
9142ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9143if test -n "$ac_ct_LIPO"; then
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9145$as_echo "$ac_ct_LIPO" >&6; }
9146else
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148$as_echo "no" >&6; }
9149fi
9150
9151  if test "x$ac_ct_LIPO" = x; then
9152    LIPO=":"
9153  else
9154    case $cross_compiling:$ac_tool_warned in
9155yes:)
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9158ac_tool_warned=yes ;;
9159esac
9160    LIPO=$ac_ct_LIPO
9161  fi
9162else
9163  LIPO="$ac_cv_prog_LIPO"
9164fi
9165
9166    if test -n "$ac_tool_prefix"; then
9167  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9168set dummy ${ac_tool_prefix}otool; ac_word=$2
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170$as_echo_n "checking for $ac_word... " >&6; }
9171if ${ac_cv_prog_OTOOL+:} false; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  if test -n "$OTOOL"; then
9175  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9176else
9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178for as_dir in $PATH
9179do
9180  IFS=$as_save_IFS
9181  test -z "$as_dir" && as_dir=.
9182    for ac_exec_ext in '' $ac_executable_extensions; do
9183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186    break 2
9187  fi
9188done
9189  done
9190IFS=$as_save_IFS
9191
9192fi
9193fi
9194OTOOL=$ac_cv_prog_OTOOL
9195if test -n "$OTOOL"; then
9196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9197$as_echo "$OTOOL" >&6; }
9198else
9199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200$as_echo "no" >&6; }
9201fi
9202
9203
9204fi
9205if test -z "$ac_cv_prog_OTOOL"; then
9206  ac_ct_OTOOL=$OTOOL
9207  # Extract the first word of "otool", so it can be a program name with args.
9208set dummy otool; ac_word=$2
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  if test -n "$ac_ct_OTOOL"; then
9215  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9216else
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220  IFS=$as_save_IFS
9221  test -z "$as_dir" && as_dir=.
9222    for ac_exec_ext in '' $ac_executable_extensions; do
9223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224    ac_cv_prog_ac_ct_OTOOL="otool"
9225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226    break 2
9227  fi
9228done
9229  done
9230IFS=$as_save_IFS
9231
9232fi
9233fi
9234ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9235if test -n "$ac_ct_OTOOL"; then
9236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9237$as_echo "$ac_ct_OTOOL" >&6; }
9238else
9239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
9241fi
9242
9243  if test "x$ac_ct_OTOOL" = x; then
9244    OTOOL=":"
9245  else
9246    case $cross_compiling:$ac_tool_warned in
9247yes:)
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9250ac_tool_warned=yes ;;
9251esac
9252    OTOOL=$ac_ct_OTOOL
9253  fi
9254else
9255  OTOOL="$ac_cv_prog_OTOOL"
9256fi
9257
9258    if test -n "$ac_tool_prefix"; then
9259  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9260set dummy ${ac_tool_prefix}otool64; ac_word=$2
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262$as_echo_n "checking for $ac_word... " >&6; }
9263if ${ac_cv_prog_OTOOL64+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  if test -n "$OTOOL64"; then
9267  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9268else
9269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270for as_dir in $PATH
9271do
9272  IFS=$as_save_IFS
9273  test -z "$as_dir" && as_dir=.
9274    for ac_exec_ext in '' $ac_executable_extensions; do
9275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9276    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278    break 2
9279  fi
9280done
9281  done
9282IFS=$as_save_IFS
9283
9284fi
9285fi
9286OTOOL64=$ac_cv_prog_OTOOL64
9287if test -n "$OTOOL64"; then
9288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9289$as_echo "$OTOOL64" >&6; }
9290else
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292$as_echo "no" >&6; }
9293fi
9294
9295
9296fi
9297if test -z "$ac_cv_prog_OTOOL64"; then
9298  ac_ct_OTOOL64=$OTOOL64
9299  # Extract the first word of "otool64", so it can be a program name with args.
9300set dummy otool64; ac_word=$2
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302$as_echo_n "checking for $ac_word... " >&6; }
9303if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  if test -n "$ac_ct_OTOOL64"; then
9307  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9308else
9309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310for as_dir in $PATH
9311do
9312  IFS=$as_save_IFS
9313  test -z "$as_dir" && as_dir=.
9314    for ac_exec_ext in '' $ac_executable_extensions; do
9315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9316    ac_cv_prog_ac_ct_OTOOL64="otool64"
9317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318    break 2
9319  fi
9320done
9321  done
9322IFS=$as_save_IFS
9323
9324fi
9325fi
9326ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9327if test -n "$ac_ct_OTOOL64"; then
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9329$as_echo "$ac_ct_OTOOL64" >&6; }
9330else
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332$as_echo "no" >&6; }
9333fi
9334
9335  if test "x$ac_ct_OTOOL64" = x; then
9336    OTOOL64=":"
9337  else
9338    case $cross_compiling:$ac_tool_warned in
9339yes:)
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9342ac_tool_warned=yes ;;
9343esac
9344    OTOOL64=$ac_ct_OTOOL64
9345  fi
9346else
9347  OTOOL64="$ac_cv_prog_OTOOL64"
9348fi
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9377$as_echo_n "checking for -single_module linker flag... " >&6; }
9378if ${lt_cv_apple_cc_single_mod+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  lt_cv_apple_cc_single_mod=no
9382      if test -z "$LT_MULTI_MODULE"; then
9383	# By default we will add the -single_module flag. You can override
9384	# by either setting the environment variable LT_MULTI_MODULE
9385	# non-empty at configure time, or by adding -multi_module to the
9386	# link flags.
9387	rm -rf libconftest.dylib*
9388	echo "int foo(void){return 1;}" > conftest.c
9389	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9390-dynamiclib -Wl,-single_module conftest.c" >&5
9391	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9392	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9393        _lt_result=$?
9394	# If there is a non-empty error log, and "single_module"
9395	# appears in it, assume the flag caused a linker warning
9396        if test -s conftest.err && $GREP single_module conftest.err; then
9397	  cat conftest.err >&5
9398	# Otherwise, if the output was created with a 0 exit code from
9399	# the compiler, it worked.
9400	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9401	  lt_cv_apple_cc_single_mod=yes
9402	else
9403	  cat conftest.err >&5
9404	fi
9405	rm -rf libconftest.dylib*
9406	rm -f conftest.*
9407      fi
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9410$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9411
9412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9413$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9414if ${lt_cv_ld_exported_symbols_list+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  lt_cv_ld_exported_symbols_list=no
9418      save_LDFLAGS=$LDFLAGS
9419      echo "_main" > conftest.sym
9420      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9421      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423
9424int
9425main ()
9426{
9427
9428  ;
9429  return 0;
9430}
9431_ACEOF
9432if ac_fn_c_try_link "$LINENO"; then :
9433  lt_cv_ld_exported_symbols_list=yes
9434else
9435  lt_cv_ld_exported_symbols_list=no
9436fi
9437rm -f core conftest.err conftest.$ac_objext \
9438    conftest$ac_exeext conftest.$ac_ext
9439	LDFLAGS=$save_LDFLAGS
9440
9441fi
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9443$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9444
9445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9446$as_echo_n "checking for -force_load linker flag... " >&6; }
9447if ${lt_cv_ld_force_load+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  lt_cv_ld_force_load=no
9451      cat > conftest.c << _LT_EOF
9452int forced_loaded() { return 2;}
9453_LT_EOF
9454      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9455      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9456      echo "$AR cru libconftest.a conftest.o" >&5
9457      $AR cru libconftest.a conftest.o 2>&5
9458      echo "$RANLIB libconftest.a" >&5
9459      $RANLIB libconftest.a 2>&5
9460      cat > conftest.c << _LT_EOF
9461int main() { return 0;}
9462_LT_EOF
9463      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9464      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9465      _lt_result=$?
9466      if test -s conftest.err && $GREP force_load conftest.err; then
9467	cat conftest.err >&5
9468      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9469	lt_cv_ld_force_load=yes
9470      else
9471	cat conftest.err >&5
9472      fi
9473        rm -f conftest.err libconftest.a conftest conftest.c
9474        rm -rf conftest.dSYM
9475
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9478$as_echo "$lt_cv_ld_force_load" >&6; }
9479    case $host_os in
9480    rhapsody* | darwin1.[012])
9481      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9482    darwin1.*)
9483      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9484    darwin*) # darwin 5.x on
9485      # if running on 10.5 or later, the deployment target defaults
9486      # to the OS version, if on x86, and 10.4, the deployment
9487      # target defaults to 10.4. Don't you love it?
9488      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9489	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9490	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9491	10.[012][,.]*)
9492	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9493	10.*)
9494	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9495      esac
9496    ;;
9497  esac
9498    if test yes = "$lt_cv_apple_cc_single_mod"; then
9499      _lt_dar_single_mod='$single_module'
9500    fi
9501    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9502      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9503    else
9504      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9505    fi
9506    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9507      _lt_dsymutil='~$DSYMUTIL $lib || :'
9508    else
9509      _lt_dsymutil=
9510    fi
9511    ;;
9512  esac
9513
9514# func_munge_path_list VARIABLE PATH
9515# -----------------------------------
9516# VARIABLE is name of variable containing _space_ separated list of
9517# directories to be munged by the contents of PATH, which is string
9518# having a format:
9519# "DIR[:DIR]:"
9520#       string "DIR[ DIR]" will be prepended to VARIABLE
9521# ":DIR[:DIR]"
9522#       string "DIR[ DIR]" will be appended to VARIABLE
9523# "DIRP[:DIRP]::[DIRA:]DIRA"
9524#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9525#       "DIRA[ DIRA]" will be appended to VARIABLE
9526# "DIR[:DIR]"
9527#       VARIABLE will be replaced by "DIR[ DIR]"
9528func_munge_path_list ()
9529{
9530    case x$2 in
9531    x)
9532        ;;
9533    *:)
9534        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9535        ;;
9536    x:*)
9537        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9538        ;;
9539    *::*)
9540        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9541        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9542        ;;
9543    *)
9544        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9545        ;;
9546    esac
9547}
9548
9549# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9551		  inttypes.h stdint.h unistd.h
9552do :
9553  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9555"
9556if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9557  cat >>confdefs.h <<_ACEOF
9558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9559_ACEOF
9560
9561fi
9562
9563done
9564
9565
9566for ac_header in dlfcn.h
9567do :
9568  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9569"
9570if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9571  cat >>confdefs.h <<_ACEOF
9572#define HAVE_DLFCN_H 1
9573_ACEOF
9574
9575fi
9576
9577done
9578
9579
9580
9581
9582
9583# Set options
9584
9585
9586
9587        enable_dlopen=no
9588
9589
9590  enable_win32_dll=no
9591
9592
9593            # Check whether --enable-shared was given.
9594if test "${enable_shared+set}" = set; then :
9595  enableval=$enable_shared; p=${PACKAGE-default}
9596    case $enableval in
9597    yes) enable_shared=yes ;;
9598    no) enable_shared=no ;;
9599    *)
9600      enable_shared=no
9601      # Look at the argument we got.  We use all the common list separators.
9602      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9603      for pkg in $enableval; do
9604	IFS=$lt_save_ifs
9605	if test "X$pkg" = "X$p"; then
9606	  enable_shared=yes
9607	fi
9608      done
9609      IFS=$lt_save_ifs
9610      ;;
9611    esac
9612else
9613  enable_shared=yes
9614fi
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624  # Check whether --enable-static was given.
9625if test "${enable_static+set}" = set; then :
9626  enableval=$enable_static; p=${PACKAGE-default}
9627    case $enableval in
9628    yes) enable_static=yes ;;
9629    no) enable_static=no ;;
9630    *)
9631     enable_static=no
9632      # Look at the argument we got.  We use all the common list separators.
9633      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9634      for pkg in $enableval; do
9635	IFS=$lt_save_ifs
9636	if test "X$pkg" = "X$p"; then
9637	  enable_static=yes
9638	fi
9639      done
9640      IFS=$lt_save_ifs
9641      ;;
9642    esac
9643else
9644  enable_static=yes
9645fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656# Check whether --with-pic was given.
9657if test "${with_pic+set}" = set; then :
9658  withval=$with_pic; lt_p=${PACKAGE-default}
9659    case $withval in
9660    yes|no) pic_mode=$withval ;;
9661    *)
9662      pic_mode=default
9663      # Look at the argument we got.  We use all the common list separators.
9664      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9665      for lt_pkg in $withval; do
9666	IFS=$lt_save_ifs
9667	if test "X$lt_pkg" = "X$lt_p"; then
9668	  pic_mode=yes
9669	fi
9670      done
9671      IFS=$lt_save_ifs
9672      ;;
9673    esac
9674else
9675  pic_mode=default
9676fi
9677
9678
9679
9680
9681
9682
9683
9684
9685  # Check whether --enable-fast-install was given.
9686if test "${enable_fast_install+set}" = set; then :
9687  enableval=$enable_fast_install; p=${PACKAGE-default}
9688    case $enableval in
9689    yes) enable_fast_install=yes ;;
9690    no) enable_fast_install=no ;;
9691    *)
9692      enable_fast_install=no
9693      # Look at the argument we got.  We use all the common list separators.
9694      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9695      for pkg in $enableval; do
9696	IFS=$lt_save_ifs
9697	if test "X$pkg" = "X$p"; then
9698	  enable_fast_install=yes
9699	fi
9700      done
9701      IFS=$lt_save_ifs
9702      ;;
9703    esac
9704else
9705  enable_fast_install=yes
9706fi
9707
9708
9709
9710
9711
9712
9713
9714
9715  shared_archive_member_spec=
9716case $host,$enable_shared in
9717power*-*-aix[5-9]*,yes)
9718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9719$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9720
9721# Check whether --with-aix-soname was given.
9722if test "${with_aix_soname+set}" = set; then :
9723  withval=$with_aix_soname; case $withval in
9724    aix|svr4|both)
9725      ;;
9726    *)
9727      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9728      ;;
9729    esac
9730    lt_cv_with_aix_soname=$with_aix_soname
9731else
9732  if ${lt_cv_with_aix_soname+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  lt_cv_with_aix_soname=aix
9736fi
9737
9738    with_aix_soname=$lt_cv_with_aix_soname
9739fi
9740
9741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9742$as_echo "$with_aix_soname" >&6; }
9743  if test aix != "$with_aix_soname"; then
9744    # For the AIX way of multilib, we name the shared archive member
9745    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9746    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9747    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9748    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9749    if test 64 = "${OBJECT_MODE-32}"; then
9750      shared_archive_member_spec=shr_64
9751    else
9752      shared_archive_member_spec=shr
9753    fi
9754  fi
9755  ;;
9756*)
9757  with_aix_soname=aix
9758  ;;
9759esac
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770# This can be used to rebuild libtool when needed
9771LIBTOOL_DEPS=$ltmain
9772
9773# Always use our own libtool.
9774LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805test -z "$LN_S" && LN_S="ln -s"
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820if test -n "${ZSH_VERSION+set}"; then
9821   setopt NO_GLOB_SUBST
9822fi
9823
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9825$as_echo_n "checking for objdir... " >&6; }
9826if ${lt_cv_objdir+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  rm -f .libs 2>/dev/null
9830mkdir .libs 2>/dev/null
9831if test -d .libs; then
9832  lt_cv_objdir=.libs
9833else
9834  # MS-DOS does not allow filenames that begin with a dot.
9835  lt_cv_objdir=_libs
9836fi
9837rmdir .libs 2>/dev/null
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9840$as_echo "$lt_cv_objdir" >&6; }
9841objdir=$lt_cv_objdir
9842
9843
9844
9845
9846
9847cat >>confdefs.h <<_ACEOF
9848#define LT_OBJDIR "$lt_cv_objdir/"
9849_ACEOF
9850
9851
9852
9853
9854case $host_os in
9855aix3*)
9856  # AIX sometimes has problems with the GCC collect2 program.  For some
9857  # reason, if we set the COLLECT_NAMES environment variable, the problems
9858  # vanish in a puff of smoke.
9859  if test set != "${COLLECT_NAMES+set}"; then
9860    COLLECT_NAMES=
9861    export COLLECT_NAMES
9862  fi
9863  ;;
9864esac
9865
9866# Global variables:
9867ofile=libtool
9868can_build_shared=yes
9869
9870# All known linkers require a '.a' archive for static linking (except MSVC,
9871# which needs '.lib').
9872libext=a
9873
9874with_gnu_ld=$lt_cv_prog_gnu_ld
9875
9876old_CC=$CC
9877old_CFLAGS=$CFLAGS
9878
9879# Set sane defaults for various variables
9880test -z "$CC" && CC=cc
9881test -z "$LTCC" && LTCC=$CC
9882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9883test -z "$LD" && LD=ld
9884test -z "$ac_objext" && ac_objext=o
9885
9886func_cc_basename $compiler
9887cc_basename=$func_cc_basename_result
9888
9889
9890# Only perform the check for file, if the check method requires it
9891test -z "$MAGIC_CMD" && MAGIC_CMD=file
9892case $deplibs_check_method in
9893file_magic*)
9894  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9897if ${lt_cv_path_MAGIC_CMD+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  case $MAGIC_CMD in
9901[\\/*] |  ?:[\\/]*)
9902  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9903  ;;
9904*)
9905  lt_save_MAGIC_CMD=$MAGIC_CMD
9906  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9907  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9908  for ac_dir in $ac_dummy; do
9909    IFS=$lt_save_ifs
9910    test -z "$ac_dir" && ac_dir=.
9911    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9912      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9913      if test -n "$file_magic_test_file"; then
9914	case $deplibs_check_method in
9915	"file_magic "*)
9916	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9917	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9918	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9919	    $EGREP "$file_magic_regex" > /dev/null; then
9920	    :
9921	  else
9922	    cat <<_LT_EOF 1>&2
9923
9924*** Warning: the command libtool uses to detect shared libraries,
9925*** $file_magic_cmd, produces output that libtool cannot recognize.
9926*** The result is that libtool may fail to recognize shared libraries
9927*** as such.  This will affect the creation of libtool libraries that
9928*** depend on shared libraries, but programs linked with such libtool
9929*** libraries will work regardless of this problem.  Nevertheless, you
9930*** may want to report the problem to your system manager and/or to
9931*** bug-libtool@gnu.org
9932
9933_LT_EOF
9934	  fi ;;
9935	esac
9936      fi
9937      break
9938    fi
9939  done
9940  IFS=$lt_save_ifs
9941  MAGIC_CMD=$lt_save_MAGIC_CMD
9942  ;;
9943esac
9944fi
9945
9946MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9947if test -n "$MAGIC_CMD"; then
9948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9949$as_echo "$MAGIC_CMD" >&6; }
9950else
9951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
9953fi
9954
9955
9956
9957
9958
9959if test -z "$lt_cv_path_MAGIC_CMD"; then
9960  if test -n "$ac_tool_prefix"; then
9961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9962$as_echo_n "checking for file... " >&6; }
9963if ${lt_cv_path_MAGIC_CMD+:} false; then :
9964  $as_echo_n "(cached) " >&6
9965else
9966  case $MAGIC_CMD in
9967[\\/*] |  ?:[\\/]*)
9968  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9969  ;;
9970*)
9971  lt_save_MAGIC_CMD=$MAGIC_CMD
9972  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9973  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9974  for ac_dir in $ac_dummy; do
9975    IFS=$lt_save_ifs
9976    test -z "$ac_dir" && ac_dir=.
9977    if test -f "$ac_dir/file"; then
9978      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9979      if test -n "$file_magic_test_file"; then
9980	case $deplibs_check_method in
9981	"file_magic "*)
9982	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9983	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9984	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9985	    $EGREP "$file_magic_regex" > /dev/null; then
9986	    :
9987	  else
9988	    cat <<_LT_EOF 1>&2
9989
9990*** Warning: the command libtool uses to detect shared libraries,
9991*** $file_magic_cmd, produces output that libtool cannot recognize.
9992*** The result is that libtool may fail to recognize shared libraries
9993*** as such.  This will affect the creation of libtool libraries that
9994*** depend on shared libraries, but programs linked with such libtool
9995*** libraries will work regardless of this problem.  Nevertheless, you
9996*** may want to report the problem to your system manager and/or to
9997*** bug-libtool@gnu.org
9998
9999_LT_EOF
10000	  fi ;;
10001	esac
10002      fi
10003      break
10004    fi
10005  done
10006  IFS=$lt_save_ifs
10007  MAGIC_CMD=$lt_save_MAGIC_CMD
10008  ;;
10009esac
10010fi
10011
10012MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10013if test -n "$MAGIC_CMD"; then
10014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10015$as_echo "$MAGIC_CMD" >&6; }
10016else
10017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018$as_echo "no" >&6; }
10019fi
10020
10021
10022  else
10023    MAGIC_CMD=:
10024  fi
10025fi
10026
10027  fi
10028  ;;
10029esac
10030
10031# Use C for the default configuration in the libtool script
10032
10033lt_save_CC=$CC
10034ac_ext=c
10035ac_cpp='$CPP $CPPFLAGS'
10036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10038ac_compiler_gnu=$ac_cv_c_compiler_gnu
10039
10040
10041# Source file extension for C test sources.
10042ac_ext=c
10043
10044# Object file extension for compiled C test sources.
10045objext=o
10046objext=$objext
10047
10048# Code to be used in simple compile tests
10049lt_simple_compile_test_code="int some_variable = 0;"
10050
10051# Code to be used in simple link tests
10052lt_simple_link_test_code='int main(){return(0);}'
10053
10054
10055
10056
10057
10058
10059
10060# If no C compiler was specified, use CC.
10061LTCC=${LTCC-"$CC"}
10062
10063# If no C compiler flags were specified, use CFLAGS.
10064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10065
10066# Allow CC to be a program name with arguments.
10067compiler=$CC
10068
10069# Save the default compiler, since it gets overwritten when the other
10070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10071compiler_DEFAULT=$CC
10072
10073# save warnings/boilerplate of simple test code
10074ac_outfile=conftest.$ac_objext
10075echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10077_lt_compiler_boilerplate=`cat conftest.err`
10078$RM conftest*
10079
10080ac_outfile=conftest.$ac_objext
10081echo "$lt_simple_link_test_code" >conftest.$ac_ext
10082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10083_lt_linker_boilerplate=`cat conftest.err`
10084$RM -r conftest*
10085
10086
10087## CAVEAT EMPTOR:
10088## There is no encapsulation within the following macros, do not change
10089## the running order or otherwise move them around unless you know exactly
10090## what you are doing...
10091if test -n "$compiler"; then
10092
10093lt_prog_compiler_no_builtin_flag=
10094
10095if test yes = "$GCC"; then
10096  case $cc_basename in
10097  nvcc*)
10098    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10099  *)
10100    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10101  esac
10102
10103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10104$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10105if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  lt_cv_prog_compiler_rtti_exceptions=no
10109   ac_outfile=conftest.$ac_objext
10110   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10111   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10112   # Insert the option either (1) after the last *FLAGS variable, or
10113   # (2) before a word containing "conftest.", or (3) at the end.
10114   # Note that $ac_compile itself does not contain backslashes and begins
10115   # with a dollar sign (not a hyphen), so the echo should work correctly.
10116   # The option is referenced via a variable to avoid confusing sed.
10117   lt_compile=`echo "$ac_compile" | $SED \
10118   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10120   -e 's:$: $lt_compiler_flag:'`
10121   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10122   (eval "$lt_compile" 2>conftest.err)
10123   ac_status=$?
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   if (exit $ac_status) && test -s "$ac_outfile"; then
10127     # The compiler can only warn and ignore the option if not recognized
10128     # So say no if there are warnings other than the usual output.
10129     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10130     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10131     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10132       lt_cv_prog_compiler_rtti_exceptions=yes
10133     fi
10134   fi
10135   $RM conftest*
10136
10137fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10139$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10140
10141if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10142    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10143else
10144    :
10145fi
10146
10147fi
10148
10149
10150
10151
10152
10153
10154  lt_prog_compiler_wl=
10155lt_prog_compiler_pic=
10156lt_prog_compiler_static=
10157
10158
10159  if test yes = "$GCC"; then
10160    lt_prog_compiler_wl='-Wl,'
10161    lt_prog_compiler_static='-static'
10162
10163    case $host_os in
10164      aix*)
10165      # All AIX code is PIC.
10166      if test ia64 = "$host_cpu"; then
10167	# AIX 5 now supports IA64 processor
10168	lt_prog_compiler_static='-Bstatic'
10169      fi
10170      lt_prog_compiler_pic='-fPIC'
10171      ;;
10172
10173    amigaos*)
10174      case $host_cpu in
10175      powerpc)
10176            # see comment about AmigaOS4 .so support
10177            lt_prog_compiler_pic='-fPIC'
10178        ;;
10179      m68k)
10180            # FIXME: we need at least 68020 code to build shared libraries, but
10181            # adding the '-m68020' flag to GCC prevents building anything better,
10182            # like '-m68040'.
10183            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10184        ;;
10185      esac
10186      ;;
10187
10188    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10189      # PIC is the default for these OSes.
10190      ;;
10191
10192    mingw* | cygwin* | pw32* | os2* | cegcc*)
10193      # This hack is so that the source file can tell whether it is being
10194      # built for inclusion in a dll (and should export symbols for example).
10195      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10196      # (--disable-auto-import) libraries
10197      lt_prog_compiler_pic='-DDLL_EXPORT'
10198      case $host_os in
10199      os2*)
10200	lt_prog_compiler_static='$wl-static'
10201	;;
10202      esac
10203      ;;
10204
10205    darwin* | rhapsody*)
10206      # PIC is the default on this platform
10207      # Common symbols not allowed in MH_DYLIB files
10208      lt_prog_compiler_pic='-fno-common'
10209      ;;
10210
10211    haiku*)
10212      # PIC is the default for Haiku.
10213      # The "-static" flag exists, but is broken.
10214      lt_prog_compiler_static=
10215      ;;
10216
10217    hpux*)
10218      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10219      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10220      # sets the default TLS model and affects inlining.
10221      case $host_cpu in
10222      hppa*64*)
10223	# +Z the default
10224	;;
10225      *)
10226	lt_prog_compiler_pic='-fPIC'
10227	;;
10228      esac
10229      ;;
10230
10231    interix[3-9]*)
10232      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10233      # Instead, we relocate shared libraries at runtime.
10234      ;;
10235
10236    msdosdjgpp*)
10237      # Just because we use GCC doesn't mean we suddenly get shared libraries
10238      # on systems that don't support them.
10239      lt_prog_compiler_can_build_shared=no
10240      enable_shared=no
10241      ;;
10242
10243    *nto* | *qnx*)
10244      # QNX uses GNU C++, but need to define -shared option too, otherwise
10245      # it will coredump.
10246      lt_prog_compiler_pic='-fPIC -shared'
10247      ;;
10248
10249    sysv4*MP*)
10250      if test -d /usr/nec; then
10251	lt_prog_compiler_pic=-Kconform_pic
10252      fi
10253      ;;
10254
10255    *)
10256      lt_prog_compiler_pic='-fPIC'
10257      ;;
10258    esac
10259
10260    case $cc_basename in
10261    nvcc*) # Cuda Compiler Driver 2.2
10262      lt_prog_compiler_wl='-Xlinker '
10263      if test -n "$lt_prog_compiler_pic"; then
10264        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10265      fi
10266      ;;
10267    esac
10268  else
10269    # PORTME Check for flag to pass linker flags through the system compiler.
10270    case $host_os in
10271    aix*)
10272      lt_prog_compiler_wl='-Wl,'
10273      if test ia64 = "$host_cpu"; then
10274	# AIX 5 now supports IA64 processor
10275	lt_prog_compiler_static='-Bstatic'
10276      else
10277	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10278      fi
10279      ;;
10280
10281    darwin* | rhapsody*)
10282      # PIC is the default on this platform
10283      # Common symbols not allowed in MH_DYLIB files
10284      lt_prog_compiler_pic='-fno-common'
10285      case $cc_basename in
10286      nagfor*)
10287        # NAG Fortran compiler
10288        lt_prog_compiler_wl='-Wl,-Wl,,'
10289        lt_prog_compiler_pic='-PIC'
10290        lt_prog_compiler_static='-Bstatic'
10291        ;;
10292      esac
10293      ;;
10294
10295    mingw* | cygwin* | pw32* | os2* | cegcc*)
10296      # This hack is so that the source file can tell whether it is being
10297      # built for inclusion in a dll (and should export symbols for example).
10298      lt_prog_compiler_pic='-DDLL_EXPORT'
10299      case $host_os in
10300      os2*)
10301	lt_prog_compiler_static='$wl-static'
10302	;;
10303      esac
10304      ;;
10305
10306    hpux9* | hpux10* | hpux11*)
10307      lt_prog_compiler_wl='-Wl,'
10308      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10309      # not for PA HP-UX.
10310      case $host_cpu in
10311      hppa*64*|ia64*)
10312	# +Z the default
10313	;;
10314      *)
10315	lt_prog_compiler_pic='+Z'
10316	;;
10317      esac
10318      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10319      lt_prog_compiler_static='$wl-a ${wl}archive'
10320      ;;
10321
10322    irix5* | irix6* | nonstopux*)
10323      lt_prog_compiler_wl='-Wl,'
10324      # PIC (with -KPIC) is the default.
10325      lt_prog_compiler_static='-non_shared'
10326      ;;
10327
10328    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10329      case $cc_basename in
10330      # old Intel for x86_64, which still supported -KPIC.
10331      ecc*)
10332	lt_prog_compiler_wl='-Wl,'
10333	lt_prog_compiler_pic='-KPIC'
10334	lt_prog_compiler_static='-static'
10335        ;;
10336      # icc used to be incompatible with GCC.
10337      # ICC 10 doesn't accept -KPIC any more.
10338      icc* | ifort*)
10339	lt_prog_compiler_wl='-Wl,'
10340	lt_prog_compiler_pic='-fPIC'
10341	lt_prog_compiler_static='-static'
10342        ;;
10343      # Lahey Fortran 8.1.
10344      lf95*)
10345	lt_prog_compiler_wl='-Wl,'
10346	lt_prog_compiler_pic='--shared'
10347	lt_prog_compiler_static='--static'
10348	;;
10349      nagfor*)
10350	# NAG Fortran compiler
10351	lt_prog_compiler_wl='-Wl,-Wl,,'
10352	lt_prog_compiler_pic='-PIC'
10353	lt_prog_compiler_static='-Bstatic'
10354	;;
10355      tcc*)
10356	# Fabrice Bellard et al's Tiny C Compiler
10357	lt_prog_compiler_wl='-Wl,'
10358	lt_prog_compiler_pic='-fPIC'
10359	lt_prog_compiler_static='-static'
10360	;;
10361      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10362        # Portland Group compilers (*not* the Pentium gcc compiler,
10363	# which looks to be a dead project)
10364	lt_prog_compiler_wl='-Wl,'
10365	lt_prog_compiler_pic='-fpic'
10366	lt_prog_compiler_static='-Bstatic'
10367        ;;
10368      ccc*)
10369        lt_prog_compiler_wl='-Wl,'
10370        # All Alpha code is PIC.
10371        lt_prog_compiler_static='-non_shared'
10372        ;;
10373      xl* | bgxl* | bgf* | mpixl*)
10374	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10375	lt_prog_compiler_wl='-Wl,'
10376	lt_prog_compiler_pic='-qpic'
10377	lt_prog_compiler_static='-qstaticlink'
10378	;;
10379      *)
10380	case `$CC -V 2>&1 | sed 5q` in
10381	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10382	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10383	  lt_prog_compiler_pic='-KPIC'
10384	  lt_prog_compiler_static='-Bstatic'
10385	  lt_prog_compiler_wl=''
10386	  ;;
10387	*Sun\ F* | *Sun*Fortran*)
10388	  lt_prog_compiler_pic='-KPIC'
10389	  lt_prog_compiler_static='-Bstatic'
10390	  lt_prog_compiler_wl='-Qoption ld '
10391	  ;;
10392	*Sun\ C*)
10393	  # Sun C 5.9
10394	  lt_prog_compiler_pic='-KPIC'
10395	  lt_prog_compiler_static='-Bstatic'
10396	  lt_prog_compiler_wl='-Wl,'
10397	  ;;
10398        *Intel*\ [CF]*Compiler*)
10399	  lt_prog_compiler_wl='-Wl,'
10400	  lt_prog_compiler_pic='-fPIC'
10401	  lt_prog_compiler_static='-static'
10402	  ;;
10403	*Portland\ Group*)
10404	  lt_prog_compiler_wl='-Wl,'
10405	  lt_prog_compiler_pic='-fpic'
10406	  lt_prog_compiler_static='-Bstatic'
10407	  ;;
10408	esac
10409	;;
10410      esac
10411      ;;
10412
10413    newsos6)
10414      lt_prog_compiler_pic='-KPIC'
10415      lt_prog_compiler_static='-Bstatic'
10416      ;;
10417
10418    *nto* | *qnx*)
10419      # QNX uses GNU C++, but need to define -shared option too, otherwise
10420      # it will coredump.
10421      lt_prog_compiler_pic='-fPIC -shared'
10422      ;;
10423
10424    osf3* | osf4* | osf5*)
10425      lt_prog_compiler_wl='-Wl,'
10426      # All OSF/1 code is PIC.
10427      lt_prog_compiler_static='-non_shared'
10428      ;;
10429
10430    rdos*)
10431      lt_prog_compiler_static='-non_shared'
10432      ;;
10433
10434    solaris*)
10435      lt_prog_compiler_pic='-KPIC'
10436      lt_prog_compiler_static='-Bstatic'
10437      case $cc_basename in
10438      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10439	lt_prog_compiler_wl='-Qoption ld ';;
10440      *)
10441	lt_prog_compiler_wl='-Wl,';;
10442      esac
10443      ;;
10444
10445    sunos4*)
10446      lt_prog_compiler_wl='-Qoption ld '
10447      lt_prog_compiler_pic='-PIC'
10448      lt_prog_compiler_static='-Bstatic'
10449      ;;
10450
10451    sysv4 | sysv4.2uw2* | sysv4.3*)
10452      lt_prog_compiler_wl='-Wl,'
10453      lt_prog_compiler_pic='-KPIC'
10454      lt_prog_compiler_static='-Bstatic'
10455      ;;
10456
10457    sysv4*MP*)
10458      if test -d /usr/nec; then
10459	lt_prog_compiler_pic='-Kconform_pic'
10460	lt_prog_compiler_static='-Bstatic'
10461      fi
10462      ;;
10463
10464    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10465      lt_prog_compiler_wl='-Wl,'
10466      lt_prog_compiler_pic='-KPIC'
10467      lt_prog_compiler_static='-Bstatic'
10468      ;;
10469
10470    unicos*)
10471      lt_prog_compiler_wl='-Wl,'
10472      lt_prog_compiler_can_build_shared=no
10473      ;;
10474
10475    uts4*)
10476      lt_prog_compiler_pic='-pic'
10477      lt_prog_compiler_static='-Bstatic'
10478      ;;
10479
10480    *)
10481      lt_prog_compiler_can_build_shared=no
10482      ;;
10483    esac
10484  fi
10485
10486case $host_os in
10487  # For platforms that do not support PIC, -DPIC is meaningless:
10488  *djgpp*)
10489    lt_prog_compiler_pic=
10490    ;;
10491  *)
10492    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10493    ;;
10494esac
10495
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10497$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10498if ${lt_cv_prog_compiler_pic+:} false; then :
10499  $as_echo_n "(cached) " >&6
10500else
10501  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10502fi
10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10504$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10505lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10506
10507#
10508# Check to make sure the PIC flag actually works.
10509#
10510if test -n "$lt_prog_compiler_pic"; then
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10512$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10513if ${lt_cv_prog_compiler_pic_works+:} false; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516  lt_cv_prog_compiler_pic_works=no
10517   ac_outfile=conftest.$ac_objext
10518   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10519   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10520   # Insert the option either (1) after the last *FLAGS variable, or
10521   # (2) before a word containing "conftest.", or (3) at the end.
10522   # Note that $ac_compile itself does not contain backslashes and begins
10523   # with a dollar sign (not a hyphen), so the echo should work correctly.
10524   # The option is referenced via a variable to avoid confusing sed.
10525   lt_compile=`echo "$ac_compile" | $SED \
10526   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10527   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10528   -e 's:$: $lt_compiler_flag:'`
10529   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10530   (eval "$lt_compile" 2>conftest.err)
10531   ac_status=$?
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   if (exit $ac_status) && test -s "$ac_outfile"; then
10535     # The compiler can only warn and ignore the option if not recognized
10536     # So say no if there are warnings other than the usual output.
10537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10538     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10539     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10540       lt_cv_prog_compiler_pic_works=yes
10541     fi
10542   fi
10543   $RM conftest*
10544
10545fi
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10547$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10548
10549if test yes = "$lt_cv_prog_compiler_pic_works"; then
10550    case $lt_prog_compiler_pic in
10551     "" | " "*) ;;
10552     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10553     esac
10554else
10555    lt_prog_compiler_pic=
10556     lt_prog_compiler_can_build_shared=no
10557fi
10558
10559fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571#
10572# Check to make sure the static flag actually works.
10573#
10574wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10576$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10577if ${lt_cv_prog_compiler_static_works+:} false; then :
10578  $as_echo_n "(cached) " >&6
10579else
10580  lt_cv_prog_compiler_static_works=no
10581   save_LDFLAGS=$LDFLAGS
10582   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10583   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10584   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10585     # The linker can only warn and ignore the option if not recognized
10586     # So say no if there are warnings
10587     if test -s conftest.err; then
10588       # Append any errors to the config.log.
10589       cat conftest.err 1>&5
10590       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10591       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10592       if diff conftest.exp conftest.er2 >/dev/null; then
10593         lt_cv_prog_compiler_static_works=yes
10594       fi
10595     else
10596       lt_cv_prog_compiler_static_works=yes
10597     fi
10598   fi
10599   $RM -r conftest*
10600   LDFLAGS=$save_LDFLAGS
10601
10602fi
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10604$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10605
10606if test yes = "$lt_cv_prog_compiler_static_works"; then
10607    :
10608else
10609    lt_prog_compiler_static=
10610fi
10611
10612
10613
10614
10615
10616
10617
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10619$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10620if ${lt_cv_prog_compiler_c_o+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  lt_cv_prog_compiler_c_o=no
10624   $RM -r conftest 2>/dev/null
10625   mkdir conftest
10626   cd conftest
10627   mkdir out
10628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629
10630   lt_compiler_flag="-o out/conftest2.$ac_objext"
10631   # Insert the option either (1) after the last *FLAGS variable, or
10632   # (2) before a word containing "conftest.", or (3) at the end.
10633   # Note that $ac_compile itself does not contain backslashes and begins
10634   # with a dollar sign (not a hyphen), so the echo should work correctly.
10635   lt_compile=`echo "$ac_compile" | $SED \
10636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638   -e 's:$: $lt_compiler_flag:'`
10639   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10640   (eval "$lt_compile" 2>out/conftest.err)
10641   ac_status=$?
10642   cat out/conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645   then
10646     # The compiler can only warn and ignore the option if not recognized
10647     # So say no if there are warnings
10648     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10649     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10650     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10651       lt_cv_prog_compiler_c_o=yes
10652     fi
10653   fi
10654   chmod u+w . 2>&5
10655   $RM conftest*
10656   # SGI C++ compiler will create directory out/ii_files/ for
10657   # template instantiation
10658   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10659   $RM out/* && rmdir out
10660   cd ..
10661   $RM -r conftest
10662   $RM conftest*
10663
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10666$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10667
10668
10669
10670
10671
10672
10673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10675if ${lt_cv_prog_compiler_c_o+:} false; then :
10676  $as_echo_n "(cached) " >&6
10677else
10678  lt_cv_prog_compiler_c_o=no
10679   $RM -r conftest 2>/dev/null
10680   mkdir conftest
10681   cd conftest
10682   mkdir out
10683   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684
10685   lt_compiler_flag="-o out/conftest2.$ac_objext"
10686   # Insert the option either (1) after the last *FLAGS variable, or
10687   # (2) before a word containing "conftest.", or (3) at the end.
10688   # Note that $ac_compile itself does not contain backslashes and begins
10689   # with a dollar sign (not a hyphen), so the echo should work correctly.
10690   lt_compile=`echo "$ac_compile" | $SED \
10691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693   -e 's:$: $lt_compiler_flag:'`
10694   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10695   (eval "$lt_compile" 2>out/conftest.err)
10696   ac_status=$?
10697   cat out/conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10700   then
10701     # The compiler can only warn and ignore the option if not recognized
10702     # So say no if there are warnings
10703     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10704     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10705     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10706       lt_cv_prog_compiler_c_o=yes
10707     fi
10708   fi
10709   chmod u+w . 2>&5
10710   $RM conftest*
10711   # SGI C++ compiler will create directory out/ii_files/ for
10712   # template instantiation
10713   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10714   $RM out/* && rmdir out
10715   cd ..
10716   $RM -r conftest
10717   $RM conftest*
10718
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10721$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10722
10723
10724
10725
10726hard_links=nottested
10727if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10728  # do not overwrite the value of need_locks provided by the user
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10730$as_echo_n "checking if we can lock with hard links... " >&6; }
10731  hard_links=yes
10732  $RM conftest*
10733  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10734  touch conftest.a
10735  ln conftest.a conftest.b 2>&5 || hard_links=no
10736  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10738$as_echo "$hard_links" >&6; }
10739  if test no = "$hard_links"; then
10740    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10741$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10742    need_locks=warn
10743  fi
10744else
10745  need_locks=no
10746fi
10747
10748
10749
10750
10751
10752
10753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10754$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10755
10756  runpath_var=
10757  allow_undefined_flag=
10758  always_export_symbols=no
10759  archive_cmds=
10760  archive_expsym_cmds=
10761  compiler_needs_object=no
10762  enable_shared_with_static_runtimes=no
10763  export_dynamic_flag_spec=
10764  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10765  hardcode_automatic=no
10766  hardcode_direct=no
10767  hardcode_direct_absolute=no
10768  hardcode_libdir_flag_spec=
10769  hardcode_libdir_separator=
10770  hardcode_minus_L=no
10771  hardcode_shlibpath_var=unsupported
10772  inherit_rpath=no
10773  link_all_deplibs=unknown
10774  module_cmds=
10775  module_expsym_cmds=
10776  old_archive_from_new_cmds=
10777  old_archive_from_expsyms_cmds=
10778  thread_safe_flag_spec=
10779  whole_archive_flag_spec=
10780  # include_expsyms should be a list of space-separated symbols to be *always*
10781  # included in the symbol list
10782  include_expsyms=
10783  # exclude_expsyms can be an extended regexp of symbols to exclude
10784  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10785  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10786  # as well as any symbol that contains 'd'.
10787  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10788  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10789  # platforms (ab)use it in PIC code, but their linkers get confused if
10790  # the symbol is explicitly referenced.  Since portable code cannot
10791  # rely on this symbol name, it's probably fine to never include it in
10792  # preloaded symbol tables.
10793  # Exclude shared library initialization/finalization symbols.
10794  extract_expsyms_cmds=
10795
10796  case $host_os in
10797  cygwin* | mingw* | pw32* | cegcc*)
10798    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10799    # When not using gcc, we currently assume that we are using
10800    # Microsoft Visual C++.
10801    if test yes != "$GCC"; then
10802      with_gnu_ld=no
10803    fi
10804    ;;
10805  interix*)
10806    # we just hope/assume this is gcc and not c89 (= MSVC++)
10807    with_gnu_ld=yes
10808    ;;
10809  openbsd* | bitrig*)
10810    with_gnu_ld=no
10811    ;;
10812  esac
10813
10814  ld_shlibs=yes
10815
10816  # On some targets, GNU ld is compatible enough with the native linker
10817  # that we're better off using the native interface for both.
10818  lt_use_gnu_ld_interface=no
10819  if test yes = "$with_gnu_ld"; then
10820    case $host_os in
10821      aix*)
10822	# The AIX port of GNU ld has always aspired to compatibility
10823	# with the native linker.  However, as the warning in the GNU ld
10824	# block says, versions before 2.19.5* couldn't really create working
10825	# shared libraries, regardless of the interface used.
10826	case `$LD -v 2>&1` in
10827	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10828	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10829	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10830	  *)
10831	    lt_use_gnu_ld_interface=yes
10832	    ;;
10833	esac
10834	;;
10835      *)
10836	lt_use_gnu_ld_interface=yes
10837	;;
10838    esac
10839  fi
10840
10841  if test yes = "$lt_use_gnu_ld_interface"; then
10842    # If archive_cmds runs LD, not CC, wlarc should be empty
10843    wlarc='$wl'
10844
10845    # Set some defaults for GNU ld with shared library support. These
10846    # are reset later if shared libraries are not supported. Putting them
10847    # here allows them to be overridden if necessary.
10848    runpath_var=LD_RUN_PATH
10849    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10850    export_dynamic_flag_spec='$wl--export-dynamic'
10851    # ancient GNU ld didn't support --whole-archive et. al.
10852    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10853      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10854    else
10855      whole_archive_flag_spec=
10856    fi
10857    supports_anon_versioning=no
10858    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10859      *GNU\ gold*) supports_anon_versioning=yes ;;
10860      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10861      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10862      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10863      *\ 2.11.*) ;; # other 2.11 versions
10864      *) supports_anon_versioning=yes ;;
10865    esac
10866
10867    # See if GNU ld supports shared libraries.
10868    case $host_os in
10869    aix[3-9]*)
10870      # On AIX/PPC, the GNU linker is very broken
10871      if test ia64 != "$host_cpu"; then
10872	ld_shlibs=no
10873	cat <<_LT_EOF 1>&2
10874
10875*** Warning: the GNU linker, at least up to release 2.19, is reported
10876*** to be unable to reliably create shared libraries on AIX.
10877*** Therefore, libtool is disabling shared libraries support.  If you
10878*** really care for shared libraries, you may want to install binutils
10879*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10880*** You will then need to restart the configuration process.
10881
10882_LT_EOF
10883      fi
10884      ;;
10885
10886    amigaos*)
10887      case $host_cpu in
10888      powerpc)
10889            # see comment about AmigaOS4 .so support
10890            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10891            archive_expsym_cmds=''
10892        ;;
10893      m68k)
10894            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)'
10895            hardcode_libdir_flag_spec='-L$libdir'
10896            hardcode_minus_L=yes
10897        ;;
10898      esac
10899      ;;
10900
10901    beos*)
10902      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10903	allow_undefined_flag=unsupported
10904	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10905	# support --undefined.  This deserves some investigation.  FIXME
10906	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10907      else
10908	ld_shlibs=no
10909      fi
10910      ;;
10911
10912    cygwin* | mingw* | pw32* | cegcc*)
10913      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10914      # as there is no search path for DLLs.
10915      hardcode_libdir_flag_spec='-L$libdir'
10916      export_dynamic_flag_spec='$wl--export-all-symbols'
10917      allow_undefined_flag=unsupported
10918      always_export_symbols=no
10919      enable_shared_with_static_runtimes=yes
10920      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10921      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10922
10923      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10924        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10925	# If the export-symbols file already is a .def file, use it as
10926	# is; otherwise, prepend EXPORTS...
10927	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10928          cp $export_symbols $output_objdir/$soname.def;
10929        else
10930          echo EXPORTS > $output_objdir/$soname.def;
10931          cat $export_symbols >> $output_objdir/$soname.def;
10932        fi~
10933        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10934      else
10935	ld_shlibs=no
10936      fi
10937      ;;
10938
10939    haiku*)
10940      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10941      link_all_deplibs=yes
10942      ;;
10943
10944    os2*)
10945      hardcode_libdir_flag_spec='-L$libdir'
10946      hardcode_minus_L=yes
10947      allow_undefined_flag=unsupported
10948      shrext_cmds=.dll
10949      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10950	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10951	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10952	$ECHO EXPORTS >> $output_objdir/$libname.def~
10953	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10954	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10955	emximp -o $lib $output_objdir/$libname.def'
10956      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10957	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10958	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10959	$ECHO EXPORTS >> $output_objdir/$libname.def~
10960	prefix_cmds="$SED"~
10961	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10962	  prefix_cmds="$prefix_cmds -e 1d";
10963	fi~
10964	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10965	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10966	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10967	emximp -o $lib $output_objdir/$libname.def'
10968      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10969      enable_shared_with_static_runtimes=yes
10970      ;;
10971
10972    interix[3-9]*)
10973      hardcode_direct=no
10974      hardcode_shlibpath_var=no
10975      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10976      export_dynamic_flag_spec='$wl-E'
10977      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10978      # Instead, shared libraries are loaded at an image base (0x10000000 by
10979      # default) and relocated if they conflict, which is a slow very memory
10980      # consuming and fragmenting process.  To avoid this, we pick a random,
10981      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10982      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10983      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10984      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'
10985      ;;
10986
10987    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10988      tmp_diet=no
10989      if test linux-dietlibc = "$host_os"; then
10990	case $cc_basename in
10991	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10992	esac
10993      fi
10994      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10995	 && test no = "$tmp_diet"
10996      then
10997	tmp_addflag=' $pic_flag'
10998	tmp_sharedflag='-shared'
10999	case $cc_basename,$host_cpu in
11000        pgcc*)				# Portland Group C compiler
11001	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11002	  tmp_addflag=' $pic_flag'
11003	  ;;
11004	pgf77* | pgf90* | pgf95* | pgfortran*)
11005					# Portland Group f77 and f90 compilers
11006	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11007	  tmp_addflag=' $pic_flag -Mnomain' ;;
11008	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11009	  tmp_addflag=' -i_dynamic' ;;
11010	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11011	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11012	ifc* | ifort*)			# Intel Fortran compiler
11013	  tmp_addflag=' -nofor_main' ;;
11014	lf95*)				# Lahey Fortran 8.1
11015	  whole_archive_flag_spec=
11016	  tmp_sharedflag='--shared' ;;
11017        nagfor*)                        # NAGFOR 5.3
11018          tmp_sharedflag='-Wl,-shared' ;;
11019	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11020	  tmp_sharedflag='-qmkshrobj'
11021	  tmp_addflag= ;;
11022	nvcc*)	# Cuda Compiler Driver 2.2
11023	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11024	  compiler_needs_object=yes
11025	  ;;
11026	esac
11027	case `$CC -V 2>&1 | sed 5q` in
11028	*Sun\ C*)			# Sun C 5.9
11029	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11030	  compiler_needs_object=yes
11031	  tmp_sharedflag='-G' ;;
11032	*Sun\ F*)			# Sun Fortran 8.3
11033	  tmp_sharedflag='-G' ;;
11034	esac
11035	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11036
11037        if test yes = "$supports_anon_versioning"; then
11038          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11039            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11040            echo "local: *; };" >> $output_objdir/$libname.ver~
11041            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11042        fi
11043
11044	case $cc_basename in
11045	tcc*)
11046	  export_dynamic_flag_spec='-rdynamic'
11047	  ;;
11048	xlf* | bgf* | bgxlf* | mpixlf*)
11049	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11050	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11051	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11052	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11053	  if test yes = "$supports_anon_versioning"; then
11054	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11055              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11056              echo "local: *; };" >> $output_objdir/$libname.ver~
11057              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11058	  fi
11059	  ;;
11060	esac
11061      else
11062        ld_shlibs=no
11063      fi
11064      ;;
11065
11066    netbsd*)
11067      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11068	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11069	wlarc=
11070      else
11071	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11072	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11073      fi
11074      ;;
11075
11076    solaris*)
11077      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11078	ld_shlibs=no
11079	cat <<_LT_EOF 1>&2
11080
11081*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11082*** create shared libraries on Solaris systems.  Therefore, libtool
11083*** is disabling shared libraries support.  We urge you to upgrade GNU
11084*** binutils to release 2.9.1 or newer.  Another option is to modify
11085*** your PATH or compiler configuration so that the native linker is
11086*** used, and then restart.
11087
11088_LT_EOF
11089      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11090	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11091	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11092      else
11093	ld_shlibs=no
11094      fi
11095      ;;
11096
11097    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11098      case `$LD -v 2>&1` in
11099        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11100	ld_shlibs=no
11101	cat <<_LT_EOF 1>&2
11102
11103*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11104*** reliably create shared libraries on SCO systems.  Therefore, libtool
11105*** is disabling shared libraries support.  We urge you to upgrade GNU
11106*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11107*** your PATH or compiler configuration so that the native linker is
11108*** used, and then restart.
11109
11110_LT_EOF
11111	;;
11112	*)
11113	  # For security reasons, it is highly recommended that you always
11114	  # use absolute paths for naming shared libraries, and exclude the
11115	  # DT_RUNPATH tag from executables and libraries.  But doing so
11116	  # requires that you compile everything twice, which is a pain.
11117	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11118	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11119	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11120	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11121	  else
11122	    ld_shlibs=no
11123	  fi
11124	;;
11125      esac
11126      ;;
11127
11128    sunos4*)
11129      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11130      wlarc=
11131      hardcode_direct=yes
11132      hardcode_shlibpath_var=no
11133      ;;
11134
11135    *)
11136      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11137	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11138	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11139      else
11140	ld_shlibs=no
11141      fi
11142      ;;
11143    esac
11144
11145    if test no = "$ld_shlibs"; then
11146      runpath_var=
11147      hardcode_libdir_flag_spec=
11148      export_dynamic_flag_spec=
11149      whole_archive_flag_spec=
11150    fi
11151  else
11152    # PORTME fill in a description of your system's linker (not GNU ld)
11153    case $host_os in
11154    aix3*)
11155      allow_undefined_flag=unsupported
11156      always_export_symbols=yes
11157      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'
11158      # Note: this linker hardcodes the directories in LIBPATH if there
11159      # are no directories specified by -L.
11160      hardcode_minus_L=yes
11161      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11162	# Neither direct hardcoding nor static linking is supported with a
11163	# broken collect2.
11164	hardcode_direct=unsupported
11165      fi
11166      ;;
11167
11168    aix[4-9]*)
11169      if test ia64 = "$host_cpu"; then
11170	# On IA64, the linker does run time linking by default, so we don't
11171	# have to do anything special.
11172	aix_use_runtimelinking=no
11173	exp_sym_flag='-Bexport'
11174	no_entry_flag=
11175      else
11176	# If we're using GNU nm, then we don't want the "-C" option.
11177	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11178	# Without the "-l" option, or with the "-B" option, AIX nm treats
11179	# weak defined symbols like other global defined symbols, whereas
11180	# GNU nm marks them as "W".
11181	# While the 'weak' keyword is ignored in the Export File, we need
11182	# it in the Import File for the 'aix-soname' feature, so we have
11183	# to replace the "-B" option with "-P" for AIX nm.
11184	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11185	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11186	else
11187	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11188	fi
11189	aix_use_runtimelinking=no
11190
11191	# Test if we are trying to use run time linking or normal
11192	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11193	# have runtime linking enabled, and use it for executables.
11194	# For shared libraries, we enable/disable runtime linking
11195	# depending on the kind of the shared library created -
11196	# when "with_aix_soname,aix_use_runtimelinking" is:
11197	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11198	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11199	#            lib.a           static archive
11200	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11201	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11202	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11203	#            lib.a(lib.so.V) shared, rtl:no
11204	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11205	#            lib.a           static archive
11206	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11207	  for ld_flag in $LDFLAGS; do
11208	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11209	    aix_use_runtimelinking=yes
11210	    break
11211	  fi
11212	  done
11213	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11214	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11215	    # so we don't have lib.a shared libs to link our executables.
11216	    # We have to force runtime linking in this case.
11217	    aix_use_runtimelinking=yes
11218	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11219	  fi
11220	  ;;
11221	esac
11222
11223	exp_sym_flag='-bexport'
11224	no_entry_flag='-bnoentry'
11225      fi
11226
11227      # When large executables or shared objects are built, AIX ld can
11228      # have problems creating the table of contents.  If linking a library
11229      # or program results in "error TOC overflow" add -mminimal-toc to
11230      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11231      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11232
11233      archive_cmds=''
11234      hardcode_direct=yes
11235      hardcode_direct_absolute=yes
11236      hardcode_libdir_separator=':'
11237      link_all_deplibs=yes
11238      file_list_spec='$wl-f,'
11239      case $with_aix_soname,$aix_use_runtimelinking in
11240      aix,*) ;; # traditional, no import file
11241      svr4,* | *,yes) # use import file
11242	# The Import File defines what to hardcode.
11243	hardcode_direct=no
11244	hardcode_direct_absolute=no
11245	;;
11246      esac
11247
11248      if test yes = "$GCC"; then
11249	case $host_os in aix4.[012]|aix4.[012].*)
11250	# We only want to do this on AIX 4.2 and lower, the check
11251	# below for broken collect2 doesn't work under 4.3+
11252	  collect2name=`$CC -print-prog-name=collect2`
11253	  if test -f "$collect2name" &&
11254	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11255	  then
11256	  # We have reworked collect2
11257	  :
11258	  else
11259	  # We have old collect2
11260	  hardcode_direct=unsupported
11261	  # It fails to find uninstalled libraries when the uninstalled
11262	  # path is not listed in the libpath.  Setting hardcode_minus_L
11263	  # to unsupported forces relinking
11264	  hardcode_minus_L=yes
11265	  hardcode_libdir_flag_spec='-L$libdir'
11266	  hardcode_libdir_separator=
11267	  fi
11268	  ;;
11269	esac
11270	shared_flag='-shared'
11271	if test yes = "$aix_use_runtimelinking"; then
11272	  shared_flag="$shared_flag "'$wl-G'
11273	fi
11274	# Need to ensure runtime linking is disabled for the traditional
11275	# shared library, or the linker may eventually find shared libraries
11276	# /with/ Import File - we do not want to mix them.
11277	shared_flag_aix='-shared'
11278	shared_flag_svr4='-shared $wl-G'
11279      else
11280	# not using gcc
11281	if test ia64 = "$host_cpu"; then
11282	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11283	# chokes on -Wl,-G. The following line is correct:
11284	  shared_flag='-G'
11285	else
11286	  if test yes = "$aix_use_runtimelinking"; then
11287	    shared_flag='$wl-G'
11288	  else
11289	    shared_flag='$wl-bM:SRE'
11290	  fi
11291	  shared_flag_aix='$wl-bM:SRE'
11292	  shared_flag_svr4='$wl-G'
11293	fi
11294      fi
11295
11296      export_dynamic_flag_spec='$wl-bexpall'
11297      # It seems that -bexpall does not export symbols beginning with
11298      # underscore (_), so it is better to generate a list of symbols to export.
11299      always_export_symbols=yes
11300      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11301	# Warning - without using the other runtime loading flags (-brtl),
11302	# -berok will link without error, but may produce a broken library.
11303	allow_undefined_flag='-berok'
11304        # Determine the default libpath from the value encoded in an
11305        # empty executable.
11306        if test set = "${lt_cv_aix_libpath+set}"; then
11307  aix_libpath=$lt_cv_aix_libpath
11308else
11309  if ${lt_cv_aix_libpath_+:} false; then :
11310  $as_echo_n "(cached) " >&6
11311else
11312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313/* end confdefs.h.  */
11314
11315int
11316main ()
11317{
11318
11319  ;
11320  return 0;
11321}
11322_ACEOF
11323if ac_fn_c_try_link "$LINENO"; then :
11324
11325  lt_aix_libpath_sed='
11326      /Import File Strings/,/^$/ {
11327	  /^0/ {
11328	      s/^0  *\([^ ]*\) *$/\1/
11329	      p
11330	  }
11331      }'
11332  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11333  # Check for a 64-bit object if we didn't find anything.
11334  if test -z "$lt_cv_aix_libpath_"; then
11335    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11336  fi
11337fi
11338rm -f core conftest.err conftest.$ac_objext \
11339    conftest$ac_exeext conftest.$ac_ext
11340  if test -z "$lt_cv_aix_libpath_"; then
11341    lt_cv_aix_libpath_=/usr/lib:/lib
11342  fi
11343
11344fi
11345
11346  aix_libpath=$lt_cv_aix_libpath_
11347fi
11348
11349        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11350        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11351      else
11352	if test ia64 = "$host_cpu"; then
11353	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11354	  allow_undefined_flag="-z nodefs"
11355	  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"
11356	else
11357	 # Determine the default libpath from the value encoded in an
11358	 # empty executable.
11359	 if test set = "${lt_cv_aix_libpath+set}"; then
11360  aix_libpath=$lt_cv_aix_libpath
11361else
11362  if ${lt_cv_aix_libpath_+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367
11368int
11369main ()
11370{
11371
11372  ;
11373  return 0;
11374}
11375_ACEOF
11376if ac_fn_c_try_link "$LINENO"; then :
11377
11378  lt_aix_libpath_sed='
11379      /Import File Strings/,/^$/ {
11380	  /^0/ {
11381	      s/^0  *\([^ ]*\) *$/\1/
11382	      p
11383	  }
11384      }'
11385  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11386  # Check for a 64-bit object if we didn't find anything.
11387  if test -z "$lt_cv_aix_libpath_"; then
11388    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11389  fi
11390fi
11391rm -f core conftest.err conftest.$ac_objext \
11392    conftest$ac_exeext conftest.$ac_ext
11393  if test -z "$lt_cv_aix_libpath_"; then
11394    lt_cv_aix_libpath_=/usr/lib:/lib
11395  fi
11396
11397fi
11398
11399  aix_libpath=$lt_cv_aix_libpath_
11400fi
11401
11402	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11403	  # Warning - without using the other run time loading flags,
11404	  # -berok will link without error, but may produce a broken library.
11405	  no_undefined_flag=' $wl-bernotok'
11406	  allow_undefined_flag=' $wl-berok'
11407	  if test yes = "$with_gnu_ld"; then
11408	    # We only use this code for GNU lds that support --whole-archive.
11409	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11410	  else
11411	    # Exported symbols can be pulled into shared objects from archives
11412	    whole_archive_flag_spec='$convenience'
11413	  fi
11414	  archive_cmds_need_lc=yes
11415	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11416	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11417	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11418	  if test svr4 != "$with_aix_soname"; then
11419	    # This is similar to how AIX traditionally builds its shared libraries.
11420	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11421	  fi
11422	  if test aix != "$with_aix_soname"; then
11423	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11424	  else
11425	    # used by -dlpreopen to get the symbols
11426	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11427	  fi
11428	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11429	fi
11430      fi
11431      ;;
11432
11433    amigaos*)
11434      case $host_cpu in
11435      powerpc)
11436            # see comment about AmigaOS4 .so support
11437            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11438            archive_expsym_cmds=''
11439        ;;
11440      m68k)
11441            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)'
11442            hardcode_libdir_flag_spec='-L$libdir'
11443            hardcode_minus_L=yes
11444        ;;
11445      esac
11446      ;;
11447
11448    bsdi[45]*)
11449      export_dynamic_flag_spec=-rdynamic
11450      ;;
11451
11452    cygwin* | mingw* | pw32* | cegcc*)
11453      # When not using gcc, we currently assume that we are using
11454      # Microsoft Visual C++.
11455      # hardcode_libdir_flag_spec is actually meaningless, as there is
11456      # no search path for DLLs.
11457      case $cc_basename in
11458      cl*)
11459	# Native MSVC
11460	hardcode_libdir_flag_spec=' '
11461	allow_undefined_flag=unsupported
11462	always_export_symbols=yes
11463	file_list_spec='@'
11464	# Tell ltmain to make .lib files, not .a files.
11465	libext=lib
11466	# Tell ltmain to make .dll files, not .so files.
11467	shrext_cmds=.dll
11468	# FIXME: Setting linknames here is a bad hack.
11469	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11470	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11471            cp "$export_symbols" "$output_objdir/$soname.def";
11472            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11473          else
11474            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11475          fi~
11476          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11477          linknames='
11478	# The linker will not automatically build a static lib if we build a DLL.
11479	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11480	enable_shared_with_static_runtimes=yes
11481	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11482	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11483	# Don't use ranlib
11484	old_postinstall_cmds='chmod 644 $oldlib'
11485	postlink_cmds='lt_outputfile="@OUTPUT@"~
11486          lt_tool_outputfile="@TOOL_OUTPUT@"~
11487          case $lt_outputfile in
11488            *.exe|*.EXE) ;;
11489            *)
11490              lt_outputfile=$lt_outputfile.exe
11491              lt_tool_outputfile=$lt_tool_outputfile.exe
11492              ;;
11493          esac~
11494          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11495            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11496            $RM "$lt_outputfile.manifest";
11497          fi'
11498	;;
11499      *)
11500	# Assume MSVC wrapper
11501	hardcode_libdir_flag_spec=' '
11502	allow_undefined_flag=unsupported
11503	# Tell ltmain to make .lib files, not .a files.
11504	libext=lib
11505	# Tell ltmain to make .dll files, not .so files.
11506	shrext_cmds=.dll
11507	# FIXME: Setting linknames here is a bad hack.
11508	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11509	# The linker will automatically build a .lib file if we build a DLL.
11510	old_archive_from_new_cmds='true'
11511	# FIXME: Should let the user specify the lib program.
11512	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11513	enable_shared_with_static_runtimes=yes
11514	;;
11515      esac
11516      ;;
11517
11518    darwin* | rhapsody*)
11519
11520
11521  archive_cmds_need_lc=no
11522  hardcode_direct=no
11523  hardcode_automatic=yes
11524  hardcode_shlibpath_var=unsupported
11525  if test yes = "$lt_cv_ld_force_load"; then
11526    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11527
11528  else
11529    whole_archive_flag_spec=''
11530  fi
11531  link_all_deplibs=yes
11532  allow_undefined_flag=$_lt_dar_allow_undefined
11533  case $cc_basename in
11534     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11535     *) _lt_dar_can_shared=$GCC ;;
11536  esac
11537  if test yes = "$_lt_dar_can_shared"; then
11538    output_verbose_link_cmd=func_echo_all
11539    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11540    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11541    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"
11542    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"
11543
11544  else
11545  ld_shlibs=no
11546  fi
11547
11548      ;;
11549
11550    dgux*)
11551      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11552      hardcode_libdir_flag_spec='-L$libdir'
11553      hardcode_shlibpath_var=no
11554      ;;
11555
11556    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11557    # support.  Future versions do this automatically, but an explicit c++rt0.o
11558    # does not break anything, and helps significantly (at the cost of a little
11559    # extra space).
11560    freebsd2.2*)
11561      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11562      hardcode_libdir_flag_spec='-R$libdir'
11563      hardcode_direct=yes
11564      hardcode_shlibpath_var=no
11565      ;;
11566
11567    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11568    freebsd2.*)
11569      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11570      hardcode_direct=yes
11571      hardcode_minus_L=yes
11572      hardcode_shlibpath_var=no
11573      ;;
11574
11575    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11576    freebsd* | dragonfly*)
11577      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11578      hardcode_libdir_flag_spec='-R$libdir'
11579      hardcode_direct=yes
11580      hardcode_shlibpath_var=no
11581      ;;
11582
11583    hpux9*)
11584      if test yes = "$GCC"; then
11585	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11586      else
11587	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11588      fi
11589      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11590      hardcode_libdir_separator=:
11591      hardcode_direct=yes
11592
11593      # hardcode_minus_L: Not really in the search PATH,
11594      # but as the default location of the library.
11595      hardcode_minus_L=yes
11596      export_dynamic_flag_spec='$wl-E'
11597      ;;
11598
11599    hpux10*)
11600      if test yes,no = "$GCC,$with_gnu_ld"; then
11601	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11602      else
11603	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11604      fi
11605      if test no = "$with_gnu_ld"; then
11606	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11607	hardcode_libdir_separator=:
11608	hardcode_direct=yes
11609	hardcode_direct_absolute=yes
11610	export_dynamic_flag_spec='$wl-E'
11611	# hardcode_minus_L: Not really in the search PATH,
11612	# but as the default location of the library.
11613	hardcode_minus_L=yes
11614      fi
11615      ;;
11616
11617    hpux11*)
11618      if test yes,no = "$GCC,$with_gnu_ld"; then
11619	case $host_cpu in
11620	hppa*64*)
11621	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11622	  ;;
11623	ia64*)
11624	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11625	  ;;
11626	*)
11627	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11628	  ;;
11629	esac
11630      else
11631	case $host_cpu in
11632	hppa*64*)
11633	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11634	  ;;
11635	ia64*)
11636	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11637	  ;;
11638	*)
11639
11640	  # Older versions of the 11.00 compiler do not understand -b yet
11641	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11642	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11643$as_echo_n "checking if $CC understands -b... " >&6; }
11644if ${lt_cv_prog_compiler__b+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  lt_cv_prog_compiler__b=no
11648   save_LDFLAGS=$LDFLAGS
11649   LDFLAGS="$LDFLAGS -b"
11650   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11651   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11652     # The linker can only warn and ignore the option if not recognized
11653     # So say no if there are warnings
11654     if test -s conftest.err; then
11655       # Append any errors to the config.log.
11656       cat conftest.err 1>&5
11657       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11658       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11659       if diff conftest.exp conftest.er2 >/dev/null; then
11660         lt_cv_prog_compiler__b=yes
11661       fi
11662     else
11663       lt_cv_prog_compiler__b=yes
11664     fi
11665   fi
11666   $RM -r conftest*
11667   LDFLAGS=$save_LDFLAGS
11668
11669fi
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11671$as_echo "$lt_cv_prog_compiler__b" >&6; }
11672
11673if test yes = "$lt_cv_prog_compiler__b"; then
11674    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11675else
11676    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11677fi
11678
11679	  ;;
11680	esac
11681      fi
11682      if test no = "$with_gnu_ld"; then
11683	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11684	hardcode_libdir_separator=:
11685
11686	case $host_cpu in
11687	hppa*64*|ia64*)
11688	  hardcode_direct=no
11689	  hardcode_shlibpath_var=no
11690	  ;;
11691	*)
11692	  hardcode_direct=yes
11693	  hardcode_direct_absolute=yes
11694	  export_dynamic_flag_spec='$wl-E'
11695
11696	  # hardcode_minus_L: Not really in the search PATH,
11697	  # but as the default location of the library.
11698	  hardcode_minus_L=yes
11699	  ;;
11700	esac
11701      fi
11702      ;;
11703
11704    irix5* | irix6* | nonstopux*)
11705      if test yes = "$GCC"; then
11706	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11707	# Try to use the -exported_symbol ld option, if it does not
11708	# work, assume that -exports_file does not work either and
11709	# implicitly export all symbols.
11710	# This should be the same for all languages, so no per-tag cache variable.
11711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11712$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11713if ${lt_cv_irix_exported_symbol+:} false; then :
11714  $as_echo_n "(cached) " >&6
11715else
11716  save_LDFLAGS=$LDFLAGS
11717	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11718	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719/* end confdefs.h.  */
11720int foo (void) { return 0; }
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  lt_cv_irix_exported_symbol=yes
11724else
11725  lt_cv_irix_exported_symbol=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729           LDFLAGS=$save_LDFLAGS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11732$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11733	if test yes = "$lt_cv_irix_exported_symbol"; then
11734          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11735	fi
11736      else
11737	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11738	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11739      fi
11740      archive_cmds_need_lc='no'
11741      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11742      hardcode_libdir_separator=:
11743      inherit_rpath=yes
11744      link_all_deplibs=yes
11745      ;;
11746
11747    linux*)
11748      case $cc_basename in
11749      tcc*)
11750	# Fabrice Bellard et al's Tiny C Compiler
11751	ld_shlibs=yes
11752	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11753	;;
11754      esac
11755      ;;
11756
11757    netbsd*)
11758      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11759	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11760      else
11761	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11762      fi
11763      hardcode_libdir_flag_spec='-R$libdir'
11764      hardcode_direct=yes
11765      hardcode_shlibpath_var=no
11766      ;;
11767
11768    newsos6)
11769      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11770      hardcode_direct=yes
11771      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11772      hardcode_libdir_separator=:
11773      hardcode_shlibpath_var=no
11774      ;;
11775
11776    *nto* | *qnx*)
11777      ;;
11778
11779    openbsd* | bitrig*)
11780      if test -f /usr/libexec/ld.so; then
11781	hardcode_direct=yes
11782	hardcode_shlibpath_var=no
11783	hardcode_direct_absolute=yes
11784	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11785	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11786	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11787	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11788	  export_dynamic_flag_spec='$wl-E'
11789	else
11790	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11791	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11792	fi
11793      else
11794	ld_shlibs=no
11795      fi
11796      ;;
11797
11798    os2*)
11799      hardcode_libdir_flag_spec='-L$libdir'
11800      hardcode_minus_L=yes
11801      allow_undefined_flag=unsupported
11802      shrext_cmds=.dll
11803      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11804	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11805	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11806	$ECHO EXPORTS >> $output_objdir/$libname.def~
11807	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11808	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11809	emximp -o $lib $output_objdir/$libname.def'
11810      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11811	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11812	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11813	$ECHO EXPORTS >> $output_objdir/$libname.def~
11814	prefix_cmds="$SED"~
11815	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11816	  prefix_cmds="$prefix_cmds -e 1d";
11817	fi~
11818	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11819	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11820	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11821	emximp -o $lib $output_objdir/$libname.def'
11822      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11823      enable_shared_with_static_runtimes=yes
11824      ;;
11825
11826    osf3*)
11827      if test yes = "$GCC"; then
11828	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11829	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11830      else
11831	allow_undefined_flag=' -expect_unresolved \*'
11832	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11833      fi
11834      archive_cmds_need_lc='no'
11835      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11836      hardcode_libdir_separator=:
11837      ;;
11838
11839    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11840      if test yes = "$GCC"; then
11841	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11842	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11843	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11844      else
11845	allow_undefined_flag=' -expect_unresolved \*'
11846	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11847	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~
11848          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11849
11850	# Both c and cxx compiler support -rpath directly
11851	hardcode_libdir_flag_spec='-rpath $libdir'
11852      fi
11853      archive_cmds_need_lc='no'
11854      hardcode_libdir_separator=:
11855      ;;
11856
11857    solaris*)
11858      no_undefined_flag=' -z defs'
11859      if test yes = "$GCC"; then
11860	wlarc='$wl'
11861	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11862	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11863          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11864      else
11865	case `$CC -V 2>&1` in
11866	*"Compilers 5.0"*)
11867	  wlarc=''
11868	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11870            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11871	  ;;
11872	*)
11873	  wlarc='$wl'
11874	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11875	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11876            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11877	  ;;
11878	esac
11879      fi
11880      hardcode_libdir_flag_spec='-R$libdir'
11881      hardcode_shlibpath_var=no
11882      case $host_os in
11883      solaris2.[0-5] | solaris2.[0-5].*) ;;
11884      *)
11885	# The compiler driver will combine and reorder linker options,
11886	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11887	# but is careful enough not to reorder.
11888	# Supported since Solaris 2.6 (maybe 2.5.1?)
11889	if test yes = "$GCC"; then
11890	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11891	else
11892	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11893	fi
11894	;;
11895      esac
11896      link_all_deplibs=yes
11897      ;;
11898
11899    sunos4*)
11900      if test sequent = "$host_vendor"; then
11901	# Use $CC to link under sequent, because it throws in some extra .o
11902	# files that make .init and .fini sections work.
11903	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11904      else
11905	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11906      fi
11907      hardcode_libdir_flag_spec='-L$libdir'
11908      hardcode_direct=yes
11909      hardcode_minus_L=yes
11910      hardcode_shlibpath_var=no
11911      ;;
11912
11913    sysv4)
11914      case $host_vendor in
11915	sni)
11916	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11917	  hardcode_direct=yes # is this really true???
11918	;;
11919	siemens)
11920	  ## LD is ld it makes a PLAMLIB
11921	  ## CC just makes a GrossModule.
11922	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11923	  reload_cmds='$CC -r -o $output$reload_objs'
11924	  hardcode_direct=no
11925        ;;
11926	motorola)
11927	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11928	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11929	;;
11930      esac
11931      runpath_var='LD_RUN_PATH'
11932      hardcode_shlibpath_var=no
11933      ;;
11934
11935    sysv4.3*)
11936      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11937      hardcode_shlibpath_var=no
11938      export_dynamic_flag_spec='-Bexport'
11939      ;;
11940
11941    sysv4*MP*)
11942      if test -d /usr/nec; then
11943	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944	hardcode_shlibpath_var=no
11945	runpath_var=LD_RUN_PATH
11946	hardcode_runpath_var=yes
11947	ld_shlibs=yes
11948      fi
11949      ;;
11950
11951    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11952      no_undefined_flag='$wl-z,text'
11953      archive_cmds_need_lc=no
11954      hardcode_shlibpath_var=no
11955      runpath_var='LD_RUN_PATH'
11956
11957      if test yes = "$GCC"; then
11958	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960      else
11961	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11962	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11963      fi
11964      ;;
11965
11966    sysv5* | sco3.2v5* | sco5v6*)
11967      # Note: We CANNOT use -z defs as we might desire, because we do not
11968      # link with -lc, and that would cause any symbols used from libc to
11969      # always be unresolved, which means just about no library would
11970      # ever link correctly.  If we're not using GNU ld we use -z text
11971      # though, which does catch some bad symbols but isn't as heavy-handed
11972      # as -z defs.
11973      no_undefined_flag='$wl-z,text'
11974      allow_undefined_flag='$wl-z,nodefs'
11975      archive_cmds_need_lc=no
11976      hardcode_shlibpath_var=no
11977      hardcode_libdir_flag_spec='$wl-R,$libdir'
11978      hardcode_libdir_separator=':'
11979      link_all_deplibs=yes
11980      export_dynamic_flag_spec='$wl-Bexport'
11981      runpath_var='LD_RUN_PATH'
11982
11983      if test yes = "$GCC"; then
11984	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11985	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11986      else
11987	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11988	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11989      fi
11990      ;;
11991
11992    uts4*)
11993      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11994      hardcode_libdir_flag_spec='-L$libdir'
11995      hardcode_shlibpath_var=no
11996      ;;
11997
11998    *)
11999      ld_shlibs=no
12000      ;;
12001    esac
12002
12003    if test sni = "$host_vendor"; then
12004      case $host in
12005      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12006	export_dynamic_flag_spec='$wl-Blargedynsym'
12007	;;
12008      esac
12009    fi
12010  fi
12011
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12013$as_echo "$ld_shlibs" >&6; }
12014test no = "$ld_shlibs" && can_build_shared=no
12015
12016with_gnu_ld=$with_gnu_ld
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032#
12033# Do we need to explicitly link libc?
12034#
12035case "x$archive_cmds_need_lc" in
12036x|xyes)
12037  # Assume -lc should be added
12038  archive_cmds_need_lc=yes
12039
12040  if test yes,yes = "$GCC,$enable_shared"; then
12041    case $archive_cmds in
12042    *'~'*)
12043      # FIXME: we may have to deal with multi-command sequences.
12044      ;;
12045    '$CC '*)
12046      # Test whether the compiler implicitly links with -lc since on some
12047      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12048      # to ld, don't add -lc before -lgcc.
12049      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12050$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12051if ${lt_cv_archive_cmds_need_lc+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  $RM conftest*
12055	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12056
12057	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12058  (eval $ac_compile) 2>&5
12059  ac_status=$?
12060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061  test $ac_status = 0; } 2>conftest.err; then
12062	  soname=conftest
12063	  lib=conftest
12064	  libobjs=conftest.$ac_objext
12065	  deplibs=
12066	  wl=$lt_prog_compiler_wl
12067	  pic_flag=$lt_prog_compiler_pic
12068	  compiler_flags=-v
12069	  linker_flags=-v
12070	  verstring=
12071	  output_objdir=.
12072	  libname=conftest
12073	  lt_save_allow_undefined_flag=$allow_undefined_flag
12074	  allow_undefined_flag=
12075	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12076  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12077  ac_status=$?
12078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079  test $ac_status = 0; }
12080	  then
12081	    lt_cv_archive_cmds_need_lc=no
12082	  else
12083	    lt_cv_archive_cmds_need_lc=yes
12084	  fi
12085	  allow_undefined_flag=$lt_save_allow_undefined_flag
12086	else
12087	  cat conftest.err 1>&5
12088	fi
12089	$RM conftest*
12090
12091fi
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12093$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12094      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12095      ;;
12096    esac
12097  fi
12098  ;;
12099esac
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
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12253$as_echo_n "checking dynamic linker characteristics... " >&6; }
12254
12255if test yes = "$GCC"; then
12256  case $host_os in
12257    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12258    *) lt_awk_arg='/^libraries:/' ;;
12259  esac
12260  case $host_os in
12261    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12262    *) lt_sed_strip_eq='s|=/|/|g' ;;
12263  esac
12264  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12265  case $lt_search_path_spec in
12266  *\;*)
12267    # if the path contains ";" then we assume it to be the separator
12268    # otherwise default to the standard path separator (i.e. ":") - it is
12269    # assumed that no part of a normal pathname contains ";" but that should
12270    # okay in the real world where ";" in dirpaths is itself problematic.
12271    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12272    ;;
12273  *)
12274    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12275    ;;
12276  esac
12277  # Ok, now we have the path, separated by spaces, we can step through it
12278  # and add multilib dir if necessary...
12279  lt_tmp_lt_search_path_spec=
12280  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12281  # ...but if some path component already ends with the multilib dir we assume
12282  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12283  case "$lt_multi_os_dir; $lt_search_path_spec " in
12284  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12285    lt_multi_os_dir=
12286    ;;
12287  esac
12288  for lt_sys_path in $lt_search_path_spec; do
12289    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12290      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12291    elif test -n "$lt_multi_os_dir"; then
12292      test -d "$lt_sys_path" && \
12293	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12294    fi
12295  done
12296  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12297BEGIN {RS = " "; FS = "/|\n";} {
12298  lt_foo = "";
12299  lt_count = 0;
12300  for (lt_i = NF; lt_i > 0; lt_i--) {
12301    if ($lt_i != "" && $lt_i != ".") {
12302      if ($lt_i == "..") {
12303        lt_count++;
12304      } else {
12305        if (lt_count == 0) {
12306          lt_foo = "/" $lt_i lt_foo;
12307        } else {
12308          lt_count--;
12309        }
12310      }
12311    }
12312  }
12313  if (lt_foo != "") { lt_freq[lt_foo]++; }
12314  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12315}'`
12316  # AWK program above erroneously prepends '/' to C:/dos/paths
12317  # for these hosts.
12318  case $host_os in
12319    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12320      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12321  esac
12322  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12323else
12324  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12325fi
12326library_names_spec=
12327libname_spec='lib$name'
12328soname_spec=
12329shrext_cmds=.so
12330postinstall_cmds=
12331postuninstall_cmds=
12332finish_cmds=
12333finish_eval=
12334shlibpath_var=
12335shlibpath_overrides_runpath=unknown
12336version_type=none
12337dynamic_linker="$host_os ld.so"
12338sys_lib_dlsearch_path_spec="/lib /usr/lib"
12339need_lib_prefix=unknown
12340hardcode_into_libs=no
12341
12342# when you set need_version to no, make sure it does not cause -set_version
12343# flags to be left without arguments
12344need_version=unknown
12345
12346
12347
12348case $host_os in
12349aix3*)
12350  version_type=linux # correct to gnu/linux during the next big refactor
12351  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12352  shlibpath_var=LIBPATH
12353
12354  # AIX 3 has no versioning support, so we append a major version to the name.
12355  soname_spec='$libname$release$shared_ext$major'
12356  ;;
12357
12358aix[4-9]*)
12359  version_type=linux # correct to gnu/linux during the next big refactor
12360  need_lib_prefix=no
12361  need_version=no
12362  hardcode_into_libs=yes
12363  if test ia64 = "$host_cpu"; then
12364    # AIX 5 supports IA64
12365    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12366    shlibpath_var=LD_LIBRARY_PATH
12367  else
12368    # With GCC up to 2.95.x, collect2 would create an import file
12369    # for dependence libraries.  The import file would start with
12370    # the line '#! .'.  This would cause the generated library to
12371    # depend on '.', always an invalid library.  This was fixed in
12372    # development snapshots of GCC prior to 3.0.
12373    case $host_os in
12374      aix4 | aix4.[01] | aix4.[01].*)
12375      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12376	   echo ' yes '
12377	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12378	:
12379      else
12380	can_build_shared=no
12381      fi
12382      ;;
12383    esac
12384    # Using Import Files as archive members, it is possible to support
12385    # filename-based versioning of shared library archives on AIX. While
12386    # this would work for both with and without runtime linking, it will
12387    # prevent static linking of such archives. So we do filename-based
12388    # shared library versioning with .so extension only, which is used
12389    # when both runtime linking and shared linking is enabled.
12390    # Unfortunately, runtime linking may impact performance, so we do
12391    # not want this to be the default eventually. Also, we use the
12392    # versioned .so libs for executables only if there is the -brtl
12393    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12394    # To allow for filename-based versioning support, we need to create
12395    # libNAME.so.V as an archive file, containing:
12396    # *) an Import File, referring to the versioned filename of the
12397    #    archive as well as the shared archive member, telling the
12398    #    bitwidth (32 or 64) of that shared object, and providing the
12399    #    list of exported symbols of that shared object, eventually
12400    #    decorated with the 'weak' keyword
12401    # *) the shared object with the F_LOADONLY flag set, to really avoid
12402    #    it being seen by the linker.
12403    # At run time we better use the real file rather than another symlink,
12404    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12405
12406    case $with_aix_soname,$aix_use_runtimelinking in
12407    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12408    # soname into executable. Probably we can add versioning support to
12409    # collect2, so additional links can be useful in future.
12410    aix,yes) # traditional libtool
12411      dynamic_linker='AIX unversionable lib.so'
12412      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12413      # instead of lib<name>.a to let people know that these are not
12414      # typical AIX shared libraries.
12415      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416      ;;
12417    aix,no) # traditional AIX only
12418      dynamic_linker='AIX lib.a(lib.so.V)'
12419      # We preserve .a as extension for shared libraries through AIX4.2
12420      # and later when we are not doing run time linking.
12421      library_names_spec='$libname$release.a $libname.a'
12422      soname_spec='$libname$release$shared_ext$major'
12423      ;;
12424    svr4,*) # full svr4 only
12425      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12426      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12427      # We do not specify a path in Import Files, so LIBPATH fires.
12428      shlibpath_overrides_runpath=yes
12429      ;;
12430    *,yes) # both, prefer svr4
12431      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12432      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12433      # unpreferred sharedlib libNAME.a needs extra handling
12434      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12435      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12436      # We do not specify a path in Import Files, so LIBPATH fires.
12437      shlibpath_overrides_runpath=yes
12438      ;;
12439    *,no) # both, prefer aix
12440      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12441      library_names_spec='$libname$release.a $libname.a'
12442      soname_spec='$libname$release$shared_ext$major'
12443      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12444      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12445      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12446      ;;
12447    esac
12448    shlibpath_var=LIBPATH
12449  fi
12450  ;;
12451
12452amigaos*)
12453  case $host_cpu in
12454  powerpc)
12455    # Since July 2007 AmigaOS4 officially supports .so libraries.
12456    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12457    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12458    ;;
12459  m68k)
12460    library_names_spec='$libname.ixlibrary $libname.a'
12461    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12462    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12463    ;;
12464  esac
12465  ;;
12466
12467beos*)
12468  library_names_spec='$libname$shared_ext'
12469  dynamic_linker="$host_os ld.so"
12470  shlibpath_var=LIBRARY_PATH
12471  ;;
12472
12473bsdi[45]*)
12474  version_type=linux # correct to gnu/linux during the next big refactor
12475  need_version=no
12476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12477  soname_spec='$libname$release$shared_ext$major'
12478  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12479  shlibpath_var=LD_LIBRARY_PATH
12480  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12481  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12482  # the default ld.so.conf also contains /usr/contrib/lib and
12483  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12484  # libtool to hard-code these into programs
12485  ;;
12486
12487cygwin* | mingw* | pw32* | cegcc*)
12488  version_type=windows
12489  shrext_cmds=.dll
12490  need_version=no
12491  need_lib_prefix=no
12492
12493  case $GCC,$cc_basename in
12494  yes,*)
12495    # gcc
12496    library_names_spec='$libname.dll.a'
12497    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12498    postinstall_cmds='base_file=`basename \$file`~
12499      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12500      dldir=$destdir/`dirname \$dlpath`~
12501      test -d \$dldir || mkdir -p \$dldir~
12502      $install_prog $dir/$dlname \$dldir/$dlname~
12503      chmod a+x \$dldir/$dlname~
12504      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12505        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12506      fi'
12507    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12508      dlpath=$dir/\$dldll~
12509       $RM \$dlpath'
12510    shlibpath_overrides_runpath=yes
12511
12512    case $host_os in
12513    cygwin*)
12514      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12515      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12516
12517      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12518      ;;
12519    mingw* | cegcc*)
12520      # MinGW DLLs use traditional 'lib' prefix
12521      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12522      ;;
12523    pw32*)
12524      # pw32 DLLs use 'pw' prefix rather than 'lib'
12525      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12526      ;;
12527    esac
12528    dynamic_linker='Win32 ld.exe'
12529    ;;
12530
12531  *,cl*)
12532    # Native MSVC
12533    libname_spec='$name'
12534    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12535    library_names_spec='$libname.dll.lib'
12536
12537    case $build_os in
12538    mingw*)
12539      sys_lib_search_path_spec=
12540      lt_save_ifs=$IFS
12541      IFS=';'
12542      for lt_path in $LIB
12543      do
12544        IFS=$lt_save_ifs
12545        # Let DOS variable expansion print the short 8.3 style file name.
12546        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12547        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12548      done
12549      IFS=$lt_save_ifs
12550      # Convert to MSYS style.
12551      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12552      ;;
12553    cygwin*)
12554      # Convert to unix form, then to dos form, then back to unix form
12555      # but this time dos style (no spaces!) so that the unix form looks
12556      # like /cygdrive/c/PROGRA~1:/cygdr...
12557      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12558      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12559      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12560      ;;
12561    *)
12562      sys_lib_search_path_spec=$LIB
12563      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12564        # It is most probably a Windows format PATH.
12565        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12566      else
12567        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12568      fi
12569      # FIXME: find the short name or the path components, as spaces are
12570      # common. (e.g. "Program Files" -> "PROGRA~1")
12571      ;;
12572    esac
12573
12574    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12575    postinstall_cmds='base_file=`basename \$file`~
12576      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12577      dldir=$destdir/`dirname \$dlpath`~
12578      test -d \$dldir || mkdir -p \$dldir~
12579      $install_prog $dir/$dlname \$dldir/$dlname'
12580    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12581      dlpath=$dir/\$dldll~
12582       $RM \$dlpath'
12583    shlibpath_overrides_runpath=yes
12584    dynamic_linker='Win32 link.exe'
12585    ;;
12586
12587  *)
12588    # Assume MSVC wrapper
12589    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12590    dynamic_linker='Win32 ld.exe'
12591    ;;
12592  esac
12593  # FIXME: first we should search . and the directory the executable is in
12594  shlibpath_var=PATH
12595  ;;
12596
12597darwin* | rhapsody*)
12598  dynamic_linker="$host_os dyld"
12599  version_type=darwin
12600  need_lib_prefix=no
12601  need_version=no
12602  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12603  soname_spec='$libname$release$major$shared_ext'
12604  shlibpath_overrides_runpath=yes
12605  shlibpath_var=DYLD_LIBRARY_PATH
12606  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12607
12608  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12609  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12610  ;;
12611
12612dgux*)
12613  version_type=linux # correct to gnu/linux during the next big refactor
12614  need_lib_prefix=no
12615  need_version=no
12616  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12617  soname_spec='$libname$release$shared_ext$major'
12618  shlibpath_var=LD_LIBRARY_PATH
12619  ;;
12620
12621freebsd* | dragonfly*)
12622  # DragonFly does not have aout.  When/if they implement a new
12623  # versioning mechanism, adjust this.
12624  if test -x /usr/bin/objformat; then
12625    objformat=`/usr/bin/objformat`
12626  else
12627    case $host_os in
12628    freebsd[23].*) objformat=aout ;;
12629    *) objformat=elf ;;
12630    esac
12631  fi
12632  version_type=freebsd-$objformat
12633  case $version_type in
12634    freebsd-elf*)
12635      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12636      soname_spec='$libname$release$shared_ext$major'
12637      need_version=no
12638      need_lib_prefix=no
12639      ;;
12640    freebsd-*)
12641      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12642      need_version=yes
12643      ;;
12644  esac
12645  shlibpath_var=LD_LIBRARY_PATH
12646  case $host_os in
12647  freebsd2.*)
12648    shlibpath_overrides_runpath=yes
12649    ;;
12650  freebsd3.[01]* | freebsdelf3.[01]*)
12651    shlibpath_overrides_runpath=yes
12652    hardcode_into_libs=yes
12653    ;;
12654  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12655  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12656    shlibpath_overrides_runpath=no
12657    hardcode_into_libs=yes
12658    ;;
12659  *) # from 4.6 on, and DragonFly
12660    shlibpath_overrides_runpath=yes
12661    hardcode_into_libs=yes
12662    ;;
12663  esac
12664  ;;
12665
12666haiku*)
12667  version_type=linux # correct to gnu/linux during the next big refactor
12668  need_lib_prefix=no
12669  need_version=no
12670  dynamic_linker="$host_os runtime_loader"
12671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12672  soname_spec='$libname$release$shared_ext$major'
12673  shlibpath_var=LIBRARY_PATH
12674  shlibpath_overrides_runpath=no
12675  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12676  hardcode_into_libs=yes
12677  ;;
12678
12679hpux9* | hpux10* | hpux11*)
12680  # Give a soname corresponding to the major version so that dld.sl refuses to
12681  # link against other versions.
12682  version_type=sunos
12683  need_lib_prefix=no
12684  need_version=no
12685  case $host_cpu in
12686  ia64*)
12687    shrext_cmds='.so'
12688    hardcode_into_libs=yes
12689    dynamic_linker="$host_os dld.so"
12690    shlibpath_var=LD_LIBRARY_PATH
12691    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12692    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12693    soname_spec='$libname$release$shared_ext$major'
12694    if test 32 = "$HPUX_IA64_MODE"; then
12695      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12696      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12697    else
12698      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12699      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12700    fi
12701    ;;
12702  hppa*64*)
12703    shrext_cmds='.sl'
12704    hardcode_into_libs=yes
12705    dynamic_linker="$host_os dld.sl"
12706    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12707    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12708    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12709    soname_spec='$libname$release$shared_ext$major'
12710    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12711    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12712    ;;
12713  *)
12714    shrext_cmds='.sl'
12715    dynamic_linker="$host_os dld.sl"
12716    shlibpath_var=SHLIB_PATH
12717    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12718    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12719    soname_spec='$libname$release$shared_ext$major'
12720    ;;
12721  esac
12722  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12723  postinstall_cmds='chmod 555 $lib'
12724  # or fails outright, so override atomically:
12725  install_override_mode=555
12726  ;;
12727
12728interix[3-9]*)
12729  version_type=linux # correct to gnu/linux during the next big refactor
12730  need_lib_prefix=no
12731  need_version=no
12732  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12733  soname_spec='$libname$release$shared_ext$major'
12734  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12735  shlibpath_var=LD_LIBRARY_PATH
12736  shlibpath_overrides_runpath=no
12737  hardcode_into_libs=yes
12738  ;;
12739
12740irix5* | irix6* | nonstopux*)
12741  case $host_os in
12742    nonstopux*) version_type=nonstopux ;;
12743    *)
12744	if test yes = "$lt_cv_prog_gnu_ld"; then
12745		version_type=linux # correct to gnu/linux during the next big refactor
12746	else
12747		version_type=irix
12748	fi ;;
12749  esac
12750  need_lib_prefix=no
12751  need_version=no
12752  soname_spec='$libname$release$shared_ext$major'
12753  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12754  case $host_os in
12755  irix5* | nonstopux*)
12756    libsuff= shlibsuff=
12757    ;;
12758  *)
12759    case $LD in # libtool.m4 will add one of these switches to LD
12760    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12761      libsuff= shlibsuff= libmagic=32-bit;;
12762    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12763      libsuff=32 shlibsuff=N32 libmagic=N32;;
12764    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12765      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12766    *) libsuff= shlibsuff= libmagic=never-match;;
12767    esac
12768    ;;
12769  esac
12770  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12771  shlibpath_overrides_runpath=no
12772  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12773  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12774  hardcode_into_libs=yes
12775  ;;
12776
12777# No shared lib support for Linux oldld, aout, or coff.
12778linux*oldld* | linux*aout* | linux*coff*)
12779  dynamic_linker=no
12780  ;;
12781
12782linux*android*)
12783  version_type=none # Android doesn't support versioned libraries.
12784  need_lib_prefix=no
12785  need_version=no
12786  library_names_spec='$libname$release$shared_ext'
12787  soname_spec='$libname$release$shared_ext'
12788  finish_cmds=
12789  shlibpath_var=LD_LIBRARY_PATH
12790  shlibpath_overrides_runpath=yes
12791
12792  # This implies no fast_install, which is unacceptable.
12793  # Some rework will be needed to allow for fast_install
12794  # before this can be enabled.
12795  hardcode_into_libs=yes
12796
12797  dynamic_linker='Android linker'
12798  # Don't embed -rpath directories since the linker doesn't support them.
12799  hardcode_libdir_flag_spec='-L$libdir'
12800  ;;
12801
12802# This must be glibc/ELF.
12803linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12804  version_type=linux # correct to gnu/linux during the next big refactor
12805  need_lib_prefix=no
12806  need_version=no
12807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12808  soname_spec='$libname$release$shared_ext$major'
12809  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12810  shlibpath_var=LD_LIBRARY_PATH
12811  shlibpath_overrides_runpath=no
12812
12813  # Some binutils ld are patched to set DT_RUNPATH
12814  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12815  $as_echo_n "(cached) " >&6
12816else
12817  lt_cv_shlibpath_overrides_runpath=no
12818    save_LDFLAGS=$LDFLAGS
12819    save_libdir=$libdir
12820    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12821	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12822    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824
12825int
12826main ()
12827{
12828
12829  ;
12830  return 0;
12831}
12832_ACEOF
12833if ac_fn_c_try_link "$LINENO"; then :
12834  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12835  lt_cv_shlibpath_overrides_runpath=yes
12836fi
12837fi
12838rm -f core conftest.err conftest.$ac_objext \
12839    conftest$ac_exeext conftest.$ac_ext
12840    LDFLAGS=$save_LDFLAGS
12841    libdir=$save_libdir
12842
12843fi
12844
12845  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12846
12847  # This implies no fast_install, which is unacceptable.
12848  # Some rework will be needed to allow for fast_install
12849  # before this can be enabled.
12850  hardcode_into_libs=yes
12851
12852  # Add ABI-specific directories to the system library path.
12853  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12854
12855  # Ideally, we could use ldconfig to report *all* directores which are
12856  # searched for libraries, however this is still not possible.  Aside from not
12857  # being certain /sbin/ldconfig is available, command
12858  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12859  # even though it is searched at run-time.  Try to do the best guess by
12860  # appending ld.so.conf contents (and includes) to the search path.
12861  if test -f /etc/ld.so.conf; then
12862    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;s/"//g;/^$/d' | tr '\n' ' '`
12863    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12864  fi
12865
12866  # We used to test for /lib/ld.so.1 and disable shared libraries on
12867  # powerpc, because MkLinux only supported shared libraries with the
12868  # GNU dynamic linker.  Since this was broken with cross compilers,
12869  # most powerpc-linux boxes support dynamic linking these days and
12870  # people can always --disable-shared, the test was removed, and we
12871  # assume the GNU/Linux dynamic linker is in use.
12872  dynamic_linker='GNU/Linux ld.so'
12873  ;;
12874
12875netbsd*)
12876  version_type=sunos
12877  need_lib_prefix=no
12878  need_version=no
12879  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12880    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12881    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12882    dynamic_linker='NetBSD (a.out) ld.so'
12883  else
12884    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12885    soname_spec='$libname$release$shared_ext$major'
12886    dynamic_linker='NetBSD ld.elf_so'
12887  fi
12888  shlibpath_var=LD_LIBRARY_PATH
12889  shlibpath_overrides_runpath=yes
12890  hardcode_into_libs=yes
12891  ;;
12892
12893newsos6)
12894  version_type=linux # correct to gnu/linux during the next big refactor
12895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12896  shlibpath_var=LD_LIBRARY_PATH
12897  shlibpath_overrides_runpath=yes
12898  ;;
12899
12900*nto* | *qnx*)
12901  version_type=qnx
12902  need_lib_prefix=no
12903  need_version=no
12904  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905  soname_spec='$libname$release$shared_ext$major'
12906  shlibpath_var=LD_LIBRARY_PATH
12907  shlibpath_overrides_runpath=no
12908  hardcode_into_libs=yes
12909  dynamic_linker='ldqnx.so'
12910  ;;
12911
12912openbsd* | bitrig*)
12913  version_type=sunos
12914  sys_lib_dlsearch_path_spec=/usr/lib
12915  need_lib_prefix=no
12916  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12917    need_version=no
12918  else
12919    need_version=yes
12920  fi
12921  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12922  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12923  shlibpath_var=LD_LIBRARY_PATH
12924  shlibpath_overrides_runpath=yes
12925  ;;
12926
12927os2*)
12928  libname_spec='$name'
12929  version_type=windows
12930  shrext_cmds=.dll
12931  need_version=no
12932  need_lib_prefix=no
12933  # OS/2 can only load a DLL with a base name of 8 characters or less.
12934  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12935    v=$($ECHO $release$versuffix | tr -d .-);
12936    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12937    $ECHO $n$v`$shared_ext'
12938  library_names_spec='${libname}_dll.$libext'
12939  dynamic_linker='OS/2 ld.exe'
12940  shlibpath_var=BEGINLIBPATH
12941  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12942  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12943  postinstall_cmds='base_file=`basename \$file`~
12944    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12945    dldir=$destdir/`dirname \$dlpath`~
12946    test -d \$dldir || mkdir -p \$dldir~
12947    $install_prog $dir/$dlname \$dldir/$dlname~
12948    chmod a+x \$dldir/$dlname~
12949    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12950      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12951    fi'
12952  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12953    dlpath=$dir/\$dldll~
12954    $RM \$dlpath'
12955  ;;
12956
12957osf3* | osf4* | osf5*)
12958  version_type=osf
12959  need_lib_prefix=no
12960  need_version=no
12961  soname_spec='$libname$release$shared_ext$major'
12962  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12963  shlibpath_var=LD_LIBRARY_PATH
12964  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12965  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12966  ;;
12967
12968rdos*)
12969  dynamic_linker=no
12970  ;;
12971
12972solaris*)
12973  version_type=linux # correct to gnu/linux during the next big refactor
12974  need_lib_prefix=no
12975  need_version=no
12976  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12977  soname_spec='$libname$release$shared_ext$major'
12978  shlibpath_var=LD_LIBRARY_PATH
12979  shlibpath_overrides_runpath=yes
12980  hardcode_into_libs=yes
12981  # ldd complains unless libraries are executable
12982  postinstall_cmds='chmod +x $lib'
12983  ;;
12984
12985sunos4*)
12986  version_type=sunos
12987  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12988  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12989  shlibpath_var=LD_LIBRARY_PATH
12990  shlibpath_overrides_runpath=yes
12991  if test yes = "$with_gnu_ld"; then
12992    need_lib_prefix=no
12993  fi
12994  need_version=yes
12995  ;;
12996
12997sysv4 | sysv4.3*)
12998  version_type=linux # correct to gnu/linux during the next big refactor
12999  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13000  soname_spec='$libname$release$shared_ext$major'
13001  shlibpath_var=LD_LIBRARY_PATH
13002  case $host_vendor in
13003    sni)
13004      shlibpath_overrides_runpath=no
13005      need_lib_prefix=no
13006      runpath_var=LD_RUN_PATH
13007      ;;
13008    siemens)
13009      need_lib_prefix=no
13010      ;;
13011    motorola)
13012      need_lib_prefix=no
13013      need_version=no
13014      shlibpath_overrides_runpath=no
13015      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13016      ;;
13017  esac
13018  ;;
13019
13020sysv4*MP*)
13021  if test -d /usr/nec; then
13022    version_type=linux # correct to gnu/linux during the next big refactor
13023    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13024    soname_spec='$libname$shared_ext.$major'
13025    shlibpath_var=LD_LIBRARY_PATH
13026  fi
13027  ;;
13028
13029sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13030  version_type=sco
13031  need_lib_prefix=no
13032  need_version=no
13033  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13034  soname_spec='$libname$release$shared_ext$major'
13035  shlibpath_var=LD_LIBRARY_PATH
13036  shlibpath_overrides_runpath=yes
13037  hardcode_into_libs=yes
13038  if test yes = "$with_gnu_ld"; then
13039    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13040  else
13041    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13042    case $host_os in
13043      sco3.2v5*)
13044        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13045	;;
13046    esac
13047  fi
13048  sys_lib_dlsearch_path_spec='/usr/lib'
13049  ;;
13050
13051tpf*)
13052  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13053  version_type=linux # correct to gnu/linux during the next big refactor
13054  need_lib_prefix=no
13055  need_version=no
13056  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13057  shlibpath_var=LD_LIBRARY_PATH
13058  shlibpath_overrides_runpath=no
13059  hardcode_into_libs=yes
13060  ;;
13061
13062uts4*)
13063  version_type=linux # correct to gnu/linux during the next big refactor
13064  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13065  soname_spec='$libname$release$shared_ext$major'
13066  shlibpath_var=LD_LIBRARY_PATH
13067  ;;
13068
13069*)
13070  dynamic_linker=no
13071  ;;
13072esac
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13074$as_echo "$dynamic_linker" >&6; }
13075test no = "$dynamic_linker" && can_build_shared=no
13076
13077variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13078if test yes = "$GCC"; then
13079  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13080fi
13081
13082if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13083  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13084fi
13085
13086if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13087  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13088fi
13089
13090# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13091configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13092
13093# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13094func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13095
13096# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13097configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13196$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13197hardcode_action=
13198if test -n "$hardcode_libdir_flag_spec" ||
13199   test -n "$runpath_var" ||
13200   test yes = "$hardcode_automatic"; then
13201
13202  # We can hardcode non-existent directories.
13203  if test no != "$hardcode_direct" &&
13204     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13205     # have to relink, otherwise we might link with an installed library
13206     # when we should be linking with a yet-to-be-installed one
13207     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13208     test no != "$hardcode_minus_L"; then
13209    # Linking always hardcodes the temporary library directory.
13210    hardcode_action=relink
13211  else
13212    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13213    hardcode_action=immediate
13214  fi
13215else
13216  # We cannot hardcode anything, or else we can only hardcode existing
13217  # directories.
13218  hardcode_action=unsupported
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13221$as_echo "$hardcode_action" >&6; }
13222
13223if test relink = "$hardcode_action" ||
13224   test yes = "$inherit_rpath"; then
13225  # Fast installation is not supported
13226  enable_fast_install=no
13227elif test yes = "$shlibpath_overrides_runpath" ||
13228     test no = "$enable_shared"; then
13229  # Fast installation is not necessary
13230  enable_fast_install=needless
13231fi
13232
13233
13234
13235
13236
13237
13238  if test yes != "$enable_dlopen"; then
13239  enable_dlopen=unknown
13240  enable_dlopen_self=unknown
13241  enable_dlopen_self_static=unknown
13242else
13243  lt_cv_dlopen=no
13244  lt_cv_dlopen_libs=
13245
13246  case $host_os in
13247  beos*)
13248    lt_cv_dlopen=load_add_on
13249    lt_cv_dlopen_libs=
13250    lt_cv_dlopen_self=yes
13251    ;;
13252
13253  mingw* | pw32* | cegcc*)
13254    lt_cv_dlopen=LoadLibrary
13255    lt_cv_dlopen_libs=
13256    ;;
13257
13258  cygwin*)
13259    lt_cv_dlopen=dlopen
13260    lt_cv_dlopen_libs=
13261    ;;
13262
13263  darwin*)
13264    # if libdl is installed we need to link against it
13265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13266$as_echo_n "checking for dlopen in -ldl... " >&6; }
13267if ${ac_cv_lib_dl_dlopen+:} false; then :
13268  $as_echo_n "(cached) " >&6
13269else
13270  ac_check_lib_save_LIBS=$LIBS
13271LIBS="-ldl  $LIBS"
13272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h.  */
13274
13275/* Override any GCC internal prototype to avoid an error.
13276   Use char because int might match the return type of a GCC
13277   builtin and then its argument prototype would still apply.  */
13278#ifdef __cplusplus
13279extern "C"
13280#endif
13281char dlopen ();
13282int
13283main ()
13284{
13285return dlopen ();
13286  ;
13287  return 0;
13288}
13289_ACEOF
13290if ac_fn_c_try_link "$LINENO"; then :
13291  ac_cv_lib_dl_dlopen=yes
13292else
13293  ac_cv_lib_dl_dlopen=no
13294fi
13295rm -f core conftest.err conftest.$ac_objext \
13296    conftest$ac_exeext conftest.$ac_ext
13297LIBS=$ac_check_lib_save_LIBS
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13300$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13301if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13302  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13303else
13304
13305    lt_cv_dlopen=dyld
13306    lt_cv_dlopen_libs=
13307    lt_cv_dlopen_self=yes
13308
13309fi
13310
13311    ;;
13312
13313  tpf*)
13314    # Don't try to run any link tests for TPF.  We know it's impossible
13315    # because TPF is a cross-compiler, and we know how we open DSOs.
13316    lt_cv_dlopen=dlopen
13317    lt_cv_dlopen_libs=
13318    lt_cv_dlopen_self=no
13319    ;;
13320
13321  *)
13322    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13323if test "x$ac_cv_func_shl_load" = xyes; then :
13324  lt_cv_dlopen=shl_load
13325else
13326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13327$as_echo_n "checking for shl_load in -ldld... " >&6; }
13328if ${ac_cv_lib_dld_shl_load+:} false; then :
13329  $as_echo_n "(cached) " >&6
13330else
13331  ac_check_lib_save_LIBS=$LIBS
13332LIBS="-ldld  $LIBS"
13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335
13336/* Override any GCC internal prototype to avoid an error.
13337   Use char because int might match the return type of a GCC
13338   builtin and then its argument prototype would still apply.  */
13339#ifdef __cplusplus
13340extern "C"
13341#endif
13342char shl_load ();
13343int
13344main ()
13345{
13346return shl_load ();
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351if ac_fn_c_try_link "$LINENO"; then :
13352  ac_cv_lib_dld_shl_load=yes
13353else
13354  ac_cv_lib_dld_shl_load=no
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358LIBS=$ac_check_lib_save_LIBS
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13361$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13362if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13363  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13364else
13365  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13366if test "x$ac_cv_func_dlopen" = xyes; then :
13367  lt_cv_dlopen=dlopen
13368else
13369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13370$as_echo_n "checking for dlopen in -ldl... " >&6; }
13371if ${ac_cv_lib_dl_dlopen+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  ac_check_lib_save_LIBS=$LIBS
13375LIBS="-ldl  $LIBS"
13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379/* Override any GCC internal prototype to avoid an error.
13380   Use char because int might match the return type of a GCC
13381   builtin and then its argument prototype would still apply.  */
13382#ifdef __cplusplus
13383extern "C"
13384#endif
13385char dlopen ();
13386int
13387main ()
13388{
13389return dlopen ();
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_link "$LINENO"; then :
13395  ac_cv_lib_dl_dlopen=yes
13396else
13397  ac_cv_lib_dl_dlopen=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext \
13400    conftest$ac_exeext conftest.$ac_ext
13401LIBS=$ac_check_lib_save_LIBS
13402fi
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13404$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13405if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13406  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13407else
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13409$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13410if ${ac_cv_lib_svld_dlopen+:} false; then :
13411  $as_echo_n "(cached) " >&6
13412else
13413  ac_check_lib_save_LIBS=$LIBS
13414LIBS="-lsvld  $LIBS"
13415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h.  */
13417
13418/* Override any GCC internal prototype to avoid an error.
13419   Use char because int might match the return type of a GCC
13420   builtin and then its argument prototype would still apply.  */
13421#ifdef __cplusplus
13422extern "C"
13423#endif
13424char dlopen ();
13425int
13426main ()
13427{
13428return dlopen ();
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433if ac_fn_c_try_link "$LINENO"; then :
13434  ac_cv_lib_svld_dlopen=yes
13435else
13436  ac_cv_lib_svld_dlopen=no
13437fi
13438rm -f core conftest.err conftest.$ac_objext \
13439    conftest$ac_exeext conftest.$ac_ext
13440LIBS=$ac_check_lib_save_LIBS
13441fi
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13443$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13444if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13445  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13448$as_echo_n "checking for dld_link in -ldld... " >&6; }
13449if ${ac_cv_lib_dld_dld_link+:} false; then :
13450  $as_echo_n "(cached) " >&6
13451else
13452  ac_check_lib_save_LIBS=$LIBS
13453LIBS="-ldld  $LIBS"
13454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455/* end confdefs.h.  */
13456
13457/* Override any GCC internal prototype to avoid an error.
13458   Use char because int might match the return type of a GCC
13459   builtin and then its argument prototype would still apply.  */
13460#ifdef __cplusplus
13461extern "C"
13462#endif
13463char dld_link ();
13464int
13465main ()
13466{
13467return dld_link ();
13468  ;
13469  return 0;
13470}
13471_ACEOF
13472if ac_fn_c_try_link "$LINENO"; then :
13473  ac_cv_lib_dld_dld_link=yes
13474else
13475  ac_cv_lib_dld_dld_link=no
13476fi
13477rm -f core conftest.err conftest.$ac_objext \
13478    conftest$ac_exeext conftest.$ac_ext
13479LIBS=$ac_check_lib_save_LIBS
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13482$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13483if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13484  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13485fi
13486
13487
13488fi
13489
13490
13491fi
13492
13493
13494fi
13495
13496
13497fi
13498
13499
13500fi
13501
13502    ;;
13503  esac
13504
13505  if test no = "$lt_cv_dlopen"; then
13506    enable_dlopen=no
13507  else
13508    enable_dlopen=yes
13509  fi
13510
13511  case $lt_cv_dlopen in
13512  dlopen)
13513    save_CPPFLAGS=$CPPFLAGS
13514    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13515
13516    save_LDFLAGS=$LDFLAGS
13517    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13518
13519    save_LIBS=$LIBS
13520    LIBS="$lt_cv_dlopen_libs $LIBS"
13521
13522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13523$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13524if ${lt_cv_dlopen_self+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  	  if test yes = "$cross_compiling"; then :
13528  lt_cv_dlopen_self=cross
13529else
13530  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13531  lt_status=$lt_dlunknown
13532  cat > conftest.$ac_ext <<_LT_EOF
13533#line $LINENO "configure"
13534#include "confdefs.h"
13535
13536#if HAVE_DLFCN_H
13537#include <dlfcn.h>
13538#endif
13539
13540#include <stdio.h>
13541
13542#ifdef RTLD_GLOBAL
13543#  define LT_DLGLOBAL		RTLD_GLOBAL
13544#else
13545#  ifdef DL_GLOBAL
13546#    define LT_DLGLOBAL		DL_GLOBAL
13547#  else
13548#    define LT_DLGLOBAL		0
13549#  endif
13550#endif
13551
13552/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13553   find out it does not work in some platform. */
13554#ifndef LT_DLLAZY_OR_NOW
13555#  ifdef RTLD_LAZY
13556#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13557#  else
13558#    ifdef DL_LAZY
13559#      define LT_DLLAZY_OR_NOW		DL_LAZY
13560#    else
13561#      ifdef RTLD_NOW
13562#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13563#      else
13564#        ifdef DL_NOW
13565#          define LT_DLLAZY_OR_NOW	DL_NOW
13566#        else
13567#          define LT_DLLAZY_OR_NOW	0
13568#        endif
13569#      endif
13570#    endif
13571#  endif
13572#endif
13573
13574/* When -fvisibility=hidden is used, assume the code has been annotated
13575   correspondingly for the symbols needed.  */
13576#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13577int fnord () __attribute__((visibility("default")));
13578#endif
13579
13580int fnord () { return 42; }
13581int main ()
13582{
13583  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13584  int status = $lt_dlunknown;
13585
13586  if (self)
13587    {
13588      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13589      else
13590        {
13591	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13592          else puts (dlerror ());
13593	}
13594      /* dlclose (self); */
13595    }
13596  else
13597    puts (dlerror ());
13598
13599  return status;
13600}
13601_LT_EOF
13602  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13603  (eval $ac_link) 2>&5
13604  ac_status=$?
13605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13606  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13607    (./conftest; exit; ) >&5 2>/dev/null
13608    lt_status=$?
13609    case x$lt_status in
13610      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13611      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13612      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13613    esac
13614  else :
13615    # compilation failed
13616    lt_cv_dlopen_self=no
13617  fi
13618fi
13619rm -fr conftest*
13620
13621
13622fi
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13624$as_echo "$lt_cv_dlopen_self" >&6; }
13625
13626    if test yes = "$lt_cv_dlopen_self"; then
13627      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13628      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13629$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13630if ${lt_cv_dlopen_self_static+:} false; then :
13631  $as_echo_n "(cached) " >&6
13632else
13633  	  if test yes = "$cross_compiling"; then :
13634  lt_cv_dlopen_self_static=cross
13635else
13636  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13637  lt_status=$lt_dlunknown
13638  cat > conftest.$ac_ext <<_LT_EOF
13639#line $LINENO "configure"
13640#include "confdefs.h"
13641
13642#if HAVE_DLFCN_H
13643#include <dlfcn.h>
13644#endif
13645
13646#include <stdio.h>
13647
13648#ifdef RTLD_GLOBAL
13649#  define LT_DLGLOBAL		RTLD_GLOBAL
13650#else
13651#  ifdef DL_GLOBAL
13652#    define LT_DLGLOBAL		DL_GLOBAL
13653#  else
13654#    define LT_DLGLOBAL		0
13655#  endif
13656#endif
13657
13658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13659   find out it does not work in some platform. */
13660#ifndef LT_DLLAZY_OR_NOW
13661#  ifdef RTLD_LAZY
13662#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13663#  else
13664#    ifdef DL_LAZY
13665#      define LT_DLLAZY_OR_NOW		DL_LAZY
13666#    else
13667#      ifdef RTLD_NOW
13668#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13669#      else
13670#        ifdef DL_NOW
13671#          define LT_DLLAZY_OR_NOW	DL_NOW
13672#        else
13673#          define LT_DLLAZY_OR_NOW	0
13674#        endif
13675#      endif
13676#    endif
13677#  endif
13678#endif
13679
13680/* When -fvisibility=hidden is used, assume the code has been annotated
13681   correspondingly for the symbols needed.  */
13682#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13683int fnord () __attribute__((visibility("default")));
13684#endif
13685
13686int fnord () { return 42; }
13687int main ()
13688{
13689  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13690  int status = $lt_dlunknown;
13691
13692  if (self)
13693    {
13694      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13695      else
13696        {
13697	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13698          else puts (dlerror ());
13699	}
13700      /* dlclose (self); */
13701    }
13702  else
13703    puts (dlerror ());
13704
13705  return status;
13706}
13707_LT_EOF
13708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13709  (eval $ac_link) 2>&5
13710  ac_status=$?
13711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13713    (./conftest; exit; ) >&5 2>/dev/null
13714    lt_status=$?
13715    case x$lt_status in
13716      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13717      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13718      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13719    esac
13720  else :
13721    # compilation failed
13722    lt_cv_dlopen_self_static=no
13723  fi
13724fi
13725rm -fr conftest*
13726
13727
13728fi
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13730$as_echo "$lt_cv_dlopen_self_static" >&6; }
13731    fi
13732
13733    CPPFLAGS=$save_CPPFLAGS
13734    LDFLAGS=$save_LDFLAGS
13735    LIBS=$save_LIBS
13736    ;;
13737  esac
13738
13739  case $lt_cv_dlopen_self in
13740  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13741  *) enable_dlopen_self=unknown ;;
13742  esac
13743
13744  case $lt_cv_dlopen_self_static in
13745  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13746  *) enable_dlopen_self_static=unknown ;;
13747  esac
13748fi
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766striplib=
13767old_striplib=
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13769$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13770if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13771  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13772  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13774$as_echo "yes" >&6; }
13775else
13776# FIXME - insert some real tests, host_os isn't really good enough
13777  case $host_os in
13778  darwin*)
13779    if test -n "$STRIP"; then
13780      striplib="$STRIP -x"
13781      old_striplib="$STRIP -S"
13782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13783$as_echo "yes" >&6; }
13784    else
13785      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786$as_echo "no" >&6; }
13787    fi
13788    ;;
13789  *)
13790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791$as_echo "no" >&6; }
13792    ;;
13793  esac
13794fi
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807  # Report what library types will actually be built
13808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13809$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13811$as_echo "$can_build_shared" >&6; }
13812
13813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13814$as_echo_n "checking whether to build shared libraries... " >&6; }
13815  test no = "$can_build_shared" && enable_shared=no
13816
13817  # On AIX, shared libraries and static libraries use the same namespace, and
13818  # are all built from PIC.
13819  case $host_os in
13820  aix3*)
13821    test yes = "$enable_shared" && enable_static=no
13822    if test -n "$RANLIB"; then
13823      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13824      postinstall_cmds='$RANLIB $lib'
13825    fi
13826    ;;
13827
13828  aix[4-9]*)
13829    if test ia64 != "$host_cpu"; then
13830      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13831      yes,aix,yes) ;;			# shared object as lib.so file only
13832      yes,svr4,*) ;;			# shared object as lib.so archive member only
13833      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13834      esac
13835    fi
13836    ;;
13837  esac
13838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13839$as_echo "$enable_shared" >&6; }
13840
13841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13842$as_echo_n "checking whether to build static libraries... " >&6; }
13843  # Make sure either enable_shared or enable_static is yes.
13844  test yes = "$enable_shared" || enable_static=yes
13845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13846$as_echo "$enable_static" >&6; }
13847
13848
13849
13850
13851fi
13852ac_ext=c
13853ac_cpp='$CPP $CPPFLAGS'
13854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_c_compiler_gnu
13857
13858CC=$lt_save_CC
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874        ac_config_commands="$ac_config_commands libtool"
13875
13876
13877
13878
13879# Only expand once:
13880
13881
13882
13883 if test "x$cross_compiling" = xyes; then
13884  CROSS_COMPILING_TRUE=
13885  CROSS_COMPILING_FALSE='#'
13886else
13887  CROSS_COMPILING_TRUE='#'
13888  CROSS_COMPILING_FALSE=
13889fi
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899# Check whether --with-examples was given.
13900if test "${with_examples+set}" = set; then :
13901  withval=$with_examples;
13902	build_examples="$withval"
13903else
13904  build_examples=yes
13905fi
13906
13907
13908	 if test x"$build_examples" = xyes; then
13909  EXAMPLES_TRUE=
13910  EXAMPLES_FALSE='#'
13911else
13912  EXAMPLES_TRUE='#'
13913  EXAMPLES_FALSE=
13914fi
13915
13916
13917	# Check whether --enable-hacker-mode was given.
13918if test "${enable_hacker_mode+set}" = set; then :
13919  enableval=$enable_hacker_mode; hacker_mode="$enableval"
13920else
13921  hacker_mode=no
13922fi
13923
13924
13925	 if test x"$hacker_mode" = xyes; then
13926  HACKER_MODE_TRUE=
13927  HACKER_MODE_FALSE='#'
13928else
13929  HACKER_MODE_TRUE='#'
13930  HACKER_MODE_FALSE=
13931fi
13932
13933
13934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgtop sysdeps directory" >&5
13935$as_echo_n "checking for libgtop sysdeps directory... " >&6; }
13936
13937	case "$host_os" in
13938	linux*)
13939	  libgtop_sysdeps_dir=linux
13940	  libgtop_have_sysinfo=yes
13941	  libgtop_need_server=yes
13942	  libgtop_sysdeps_private_mountlist=yes
13943	  libgtop_sysdeps_private_fsusage=yes
13944	  libgtop_postinstall='chown root $(bindir)/libgtop_server2 && chmod 4755 $(bindir)/libgtop_server2'
13945	  ;;
13946	netbsd*|bsdi*)
13947	  libgtop_sysdeps_dir=bsd
13948	  libgtop_need_server=yes
13949	  libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
13950	  ;;
13951	openbsd*)
13952	  libgtop_sysdeps_dir=openbsd
13953	  libgtop_need_server=yes
13954	  libgtop_sysdeps_private_mountlist=yes
13955	  libgtop_sysdeps_private_fsusage=yes
13956	  libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2555 $(bindir)/libgtop_server2'
13957	  ;;
13958	freebsd*|kfreebsd*|dragonfly*)
13959	  libgtop_sysdeps_dir=freebsd
13960	  libgtop_need_server=yes
13961	  libgtop_sysdeps_private_mountlist=yes
13962	  libgtop_sysdeps_private_fsusage=yes
13963	  libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
13964	  ;;
13965	solaris*)
13966	  libgtop_sysdeps_dir=solaris
13967	  libgtop_need_server=yes
13968	  libgtop_postinstall='chgrp sys $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
13969	  ;;
13970	aix*)
13971	  libgtop_sysdeps_dir=aix
13972	  libgtop_need_server=yes
13973	  libgtop_have_sysinfo=yes
13974	  libgtop_postinstall='chgrp system $(bindir)/libgtop_server && chmod g+s $(bindir)/libgtop_server2'
13975	  ;;
13976	darwin*)
13977	  libgtop_sysdeps_dir=darwin
13978	  libgtop_need_server=yes
13979	  libgtop_have_sysinfo=yes
13980	  libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod g+s $(bindir)/libgtop_server2'
13981	  ;;
13982	cygwin*)
13983	  libgtop_sysdeps_dir=cygwin
13984	  libgtop_need_server=no
13985	  libgtop_have_sysinfo=yes
13986	  libgtop_sysdeps_private_mountlist=yes
13987	  ;;
13988	*)
13989	  if test x$hacker_mode = xyes ; then
13990	    case "$host_os" in
13991	    sunos4*)
13992	      #Please note that this port is obsolete and not working at
13993	      #all. It is only useful for people who want to fix it ... :-)
13994	      libgtop_sysdeps_dir=sun4
13995	      libgtop_need_server=yes
13996	      ;;
13997	    osf*)
13998	      libgtop_sysdeps_dir=osf1
13999	      libgtop_need_server=yes
14000	      ;;
14001	    *)
14002	      libgtop_sysdeps_dir=stub
14003	      libgtop_need_server=no
14004	      ;;
14005	    esac
14006	  else
14007	    libgtop_sysdeps_dir=stub
14008	    libgtop_need_server=no
14009	  fi
14010	  ;;
14011	esac
14012
14013	test -z "$libgtop_postinstall" && libgtop_postinstall=:
14014
14015	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgtop_sysdeps_dir" >&5
14016$as_echo "$libgtop_sysdeps_dir" >&6; }
14017
14018
14019
14020
14021
14022	case "$host_os" in
14023	*bsd*|dragonfly*)
14024	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14025$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14026if ${ac_cv_lib_kvm_kvm_open+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  ac_check_lib_save_LIBS=$LIBS
14030LIBS="-lkvm  $LIBS"
14031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032/* end confdefs.h.  */
14033
14034/* Override any GCC internal prototype to avoid an error.
14035   Use char because int might match the return type of a GCC
14036   builtin and then its argument prototype would still apply.  */
14037#ifdef __cplusplus
14038extern "C"
14039#endif
14040char kvm_open ();
14041int
14042main ()
14043{
14044return kvm_open ();
14045  ;
14046  return 0;
14047}
14048_ACEOF
14049if ac_fn_c_try_link "$LINENO"; then :
14050  ac_cv_lib_kvm_kvm_open=yes
14051else
14052  ac_cv_lib_kvm_kvm_open=no
14053fi
14054rm -f core conftest.err conftest.$ac_objext \
14055    conftest$ac_exeext conftest.$ac_ext
14056LIBS=$ac_check_lib_save_LIBS
14057fi
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14059$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14060if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
14061  KVM_LIBS=-lkvm
14062else
14063  KVM_LIBS=
14064fi
14065
14066
14067
14068	  for ac_header in net/if_var.h
14069do :
14070  ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
14071#include <net/if.h>
14072#include <sys/types.h>
14073#include <sys/socket.h>
14074"
14075if test "x$ac_cv_header_net_if_var_h" = xyes; then :
14076  cat >>confdefs.h <<_ACEOF
14077#define HAVE_NET_IF_VAR_H 1
14078_ACEOF
14079
14080fi
14081
14082done
14083
14084	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I4B" >&5
14085$as_echo_n "checking for I4B... " >&6; }
14086	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087/* end confdefs.h.  */
14088
14089#include <sys/types.h>
14090#include <sys/socket.h>
14091
14092#include <net/if.h>
14093#include <net/if_types.h>
14094
14095#ifdef HAVE_NET_IF_VAR_H
14096#include <net/if_var.h>
14097#endif
14098
14099#include <net/netisr.h>
14100#include <net/route.h>
14101
14102#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
14103#include <net/if_sppp.h>
14104#elif defined(__DragonFly__)
14105#include <net/sppp/if_sppp.h>
14106#else
14107#include <i4b/sppp/if_sppp.h>
14108#endif
14109
14110int
14111main ()
14112{
14113
14114	size_t size = sizeof (struct sppp);
14115
14116  ;
14117  return 0;
14118}
14119_ACEOF
14120if ac_fn_c_try_compile "$LINENO"; then :
14121  have_i4b=yes
14122else
14123  have_i4b=no
14124fi
14125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_i4b" >&5
14127$as_echo "$have_i4b" >&6; }
14128	  if test x$have_i4b = xyes; then
14129
14130$as_echo "#define HAVE_I4B 1" >>confdefs.h
14131
14132	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I4B accounting" >&5
14133$as_echo_n "checking for I4B accounting... " >&6; }
14134	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136
14137#include <sys/types.h>
14138#include <sys/socket.h>
14139
14140#include <net/if.h>
14141#include <net/if_types.h>
14142
14143#ifdef HAVE_NET_IF_VAR_H
14144#include <net/if_var.h>
14145#endif
14146
14147#include <net/netisr.h>
14148#include <net/route.h>
14149
14150#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
14151#include <net/if_sppp.h>
14152#elif defined(__DragonFly__)
14153#include <net/sppp/if_sppp.h>
14154#else
14155#include <i4b/sppp/if_sppp.h>
14156#endif
14157
14158#include <machine/i4b_acct.h>
14159
14160int
14161main ()
14162{
14163
14164	size_t size = sizeof (struct i4bisppp_softc);
14165
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170if ac_fn_c_try_compile "$LINENO"; then :
14171  have_i4b_acct=yes
14172else
14173  have_i4b_acct=no
14174fi
14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_i4b_acct" >&5
14177$as_echo "$have_i4b_acct" >&6; }
14178	    if test x$have_i4b_acct = xyes ; then
14179
14180$as_echo "#define HAVE_I4B_ACCT 1" >>confdefs.h
14181
14182	    else
14183	      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14184*** I4B accounting disabled - you won't get any PPP statistics.
14185*** Read \"misc/i4b_acct.txt\" in the LibGTop source directory
14186*** to see how to enable it." >&5
14187$as_echo "$as_me: WARNING:
14188*** I4B accounting disabled - you won't get any PPP statistics.
14189*** Read \"misc/i4b_acct.txt\" in the LibGTop source directory
14190*** to see how to enable it." >&2;}
14191	    fi
14192	  fi
14193
14194	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what we need to define to get struct msginfo" >&5
14195$as_echo_n "checking what we need to define to get struct msginfo... " >&6; }
14196	  if ${msginfo_cv_needs+:} false; then :
14197  $as_echo_n "(cached) " >&6
14198else
14199  msginfo_cv_needs=
14200	    for def in nothing KERNEL _KERNEL; do
14201	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202/* end confdefs.h.  */
14203#define $def
14204#include <sys/types.h>
14205#include <sys/ipc.h>
14206#include <sys/msg.h>
14207#include <stdio.h>
14208
14209int
14210main (void)
14211{
14212  struct msginfo mi;
14213  mi.msgmax = 0;
14214  return 0;
14215}
14216_ACEOF
14217if ac_fn_c_try_compile "$LINENO"; then :
14218
14219	          msginfo_cv_needs=$def
14220	          if test ${msginfo_cv_needs} = KERNEL; then
14221
14222$as_echo "#define STRUCT_MSGINFO_NEEDS_KERNEL 1" >>confdefs.h
14223
14224	          elif test ${msginfo_cv_needs} = _KERNEL; then
14225
14226$as_echo "#define STRUCT_MSGINFO_NEEDS__KERNEL 1" >>confdefs.h
14227
14228	          fi
14229
14230
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233	      test -n "${msginfo_cv_needs}" && break
14234	    done
14235
14236fi
14237
14238	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msginfo_cv_needs" >&5
14239$as_echo "$msginfo_cv_needs" >&6; }
14240	  if test -z "${msginfo_cv_needs}"; then
14241	    as_fn_error $? "Could not find the definition of 'struct msginfo'" "$LINENO" 5
14242	  fi
14243	  ;;
14244	linux*)
14245	  os_major_version=`uname -r | sed 's/-pre[0-9]*//' | \
14246	    sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14247	  os_minor_version=`uname -r | sed 's/-pre[0-9]*//' | \
14248	    sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14249	  os_micro_version=`uname -r | sed 's/-pre[0-9]*//' | \
14250	    sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14251	  os_version_expr="$os_major_version 65536 * $os_minor_version 256 * + $os_micro_version + p q"
14252
14253	  for ac_header in linux/version.h
14254do :
14255  ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
14256if test "x$ac_cv_header_linux_version_h" = xyes; then :
14257  cat >>confdefs.h <<_ACEOF
14258#define HAVE_LINUX_VERSION_H 1
14259_ACEOF
14260 have_linux_version_h=yes
14261else
14262  have_linux_version_h=no
14263fi
14264
14265done
14266
14267
14268	  if test x$have_linux_version_h = xyes ; then
14269	    version_code=`cat /usr/include/linux/version.h | \
14270	      grep \#define | grep LINUX_VERSION_CODE`
14271	    os_version_code=`echo $version_code | \
14272	      sed 's/^.*LINUX_VERSION_CODE[ \t]*\([0-9]*\).*$/\1/'`
14273	  else
14274	    os_version_code=`echo "$os_version_expr" | dc`
14275	  fi
14276
14277	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kernel version code" >&5
14278$as_echo_n "checking for Linux kernel version code... " >&6; }
14279
14280cat >>confdefs.h <<_ACEOF
14281#define GLIBTOP_LINUX_VERSION_CODE $os_version_code
14282_ACEOF
14283
14284	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_version_code" >&5
14285$as_echo "$os_version_code" >&6; }
14286	  ;;
14287	solaris*)
14288	  os_major_version=`uname -r | sed 's/\([0-9]*\).\([0-9]*\)\.*\([0-9]*\)/\1/'`
14289	  os_minor_version=`uname -r | sed 's/\([0-9]*\).\([0-9]*\)\.*\([0-9]*\)/\2/'`
14290	  os_micro_version=`uname -r | sed 's/\([0-9]*\).\([0-9]*\)\.*\([0-9]*\)/\3/'`
14291	  test -z "$os_micro_version" && os_micro_version=0
14292	  os_version_expr="$os_major_version 10000 * $os_minor_version 100 * + $os_micro_version + p q"
14293	  os_version_code=`echo "$os_version_expr" | dc`
14294
14295	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris release code" >&5
14296$as_echo_n "checking for Solaris release code... " >&6; }
14297
14298cat >>confdefs.h <<_ACEOF
14299#define GLIBTOP_SOLARIS_RELEASE $os_version_code
14300_ACEOF
14301
14302	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_version_code" >&5
14303$as_echo "$os_version_code" >&6; }
14304	  ;;
14305	esac
14306
14307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need libgtop" >&5
14308$as_echo_n "checking whether we need libgtop... " >&6; }
14309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgtop_need_server" >&5
14310$as_echo "$libgtop_need_server" >&6; }
14311
14312	if test x$libgtop_need_server = xyes ; then
14313
14314$as_echo "#define LIBGTOP_NEED_SERVER 1" >>confdefs.h
14315
14316	fi
14317
14318	 if test x$libgtop_need_server = xyes; then
14319  LIBGTOP_NEED_SERVER_TRUE=
14320  LIBGTOP_NEED_SERVER_FALSE='#'
14321else
14322  LIBGTOP_NEED_SERVER_TRUE='#'
14323  LIBGTOP_NEED_SERVER_FALSE=
14324fi
14325
14326	 if test x$libgtop_sysdeps_private_mountlist = xyes; then
14327  LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_TRUE=
14328  LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_FALSE='#'
14329else
14330  LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_TRUE='#'
14331  LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_FALSE=
14332fi
14333
14334	 if test x$libgtop_sysdeps_private_fsusage = xyes; then
14335  LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_TRUE=
14336  LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_FALSE='#'
14337else
14338  LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_TRUE='#'
14339  LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_FALSE=
14340fi
14341
14342
14343
14344        for ac_header in sys/bitypes.h
14345do :
14346  ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
14347if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
14348  cat >>confdefs.h <<_ACEOF
14349#define HAVE_SYS_BITYPES_H 1
14350_ACEOF
14351
14352fi
14353
14354done
14355
14356
14357
14358GLIB_REQUIRED=2.6.0
14359GOBJECT_REQUIRED=2.26.0
14360
14361
14362pkg_failed=no
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
14364$as_echo_n "checking for GLIB... " >&6; }
14365
14366if test -n "$GLIB_CFLAGS"; then
14367    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
14368 elif test -n "$PKG_CONFIG"; then
14369    if test -n "$PKG_CONFIG" && \
14370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GOBJECT_REQUIRED\""; } >&5
14371  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED") 2>&5
14372  ac_status=$?
14373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374  test $ac_status = 0; }; then
14375  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED" 2>/dev/null`
14376		      test "x$?" != "x0" && pkg_failed=yes
14377else
14378  pkg_failed=yes
14379fi
14380 else
14381    pkg_failed=untried
14382fi
14383if test -n "$GLIB_LIBS"; then
14384    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
14385 elif test -n "$PKG_CONFIG"; then
14386    if test -n "$PKG_CONFIG" && \
14387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 >= \$GOBJECT_REQUIRED\""; } >&5
14388  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED") 2>&5
14389  ac_status=$?
14390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14391  test $ac_status = 0; }; then
14392  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED" 2>/dev/null`
14393		      test "x$?" != "x0" && pkg_failed=yes
14394else
14395  pkg_failed=yes
14396fi
14397 else
14398    pkg_failed=untried
14399fi
14400
14401
14402
14403if test $pkg_failed = yes; then
14404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405$as_echo "no" >&6; }
14406
14407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14408        _pkg_short_errors_supported=yes
14409else
14410        _pkg_short_errors_supported=no
14411fi
14412        if test $_pkg_short_errors_supported = yes; then
14413	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED" 2>&1`
14414        else
14415	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED" 2>&1`
14416        fi
14417	# Put the nasty error message in config.log where it belongs
14418	echo "$GLIB_PKG_ERRORS" >&5
14419
14420	as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GOBJECT_REQUIRED) were not met:
14421
14422$GLIB_PKG_ERRORS
14423
14424Consider adjusting the PKG_CONFIG_PATH environment variable if you
14425installed software in a non-standard prefix.
14426
14427Alternatively, you may set the environment variables GLIB_CFLAGS
14428and GLIB_LIBS to avoid the need to call pkg-config.
14429See the pkg-config man page for more details." "$LINENO" 5
14430elif test $pkg_failed = untried; then
14431     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432$as_echo "no" >&6; }
14433	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14435as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14436is in your PATH or set the PKG_CONFIG environment variable to the full
14437path to pkg-config.
14438
14439Alternatively, you may set the environment variables GLIB_CFLAGS
14440and GLIB_LIBS to avoid the need to call pkg-config.
14441See the pkg-config man page for more details.
14442
14443To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14444See \`config.log' for more details" "$LINENO" 5; }
14445else
14446	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
14447	GLIB_LIBS=$pkg_cv_GLIB_LIBS
14448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14449$as_echo "yes" >&6; }
14450
14451fi
14452
14453
14454
14455ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
14456if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
14457  HAVE_IFADDRS_H=yes
14458else
14459  HAVE_IFADDRS_H=no
14460fi
14461
14462
14463if test x$HAVE_IFADDRS_H = xyes ; then
14464
14465$as_echo "#define HAVE_IFADDRS_H 1" >>confdefs.h
14466
14467fi
14468
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kinfo_getfile in -lutil" >&5
14470$as_echo_n "checking for kinfo_getfile in -lutil... " >&6; }
14471if ${ac_cv_lib_util_kinfo_getfile+:} false; then :
14472  $as_echo_n "(cached) " >&6
14473else
14474  ac_check_lib_save_LIBS=$LIBS
14475LIBS="-lutil  $LIBS"
14476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477/* end confdefs.h.  */
14478
14479/* Override any GCC internal prototype to avoid an error.
14480   Use char because int might match the return type of a GCC
14481   builtin and then its argument prototype would still apply.  */
14482#ifdef __cplusplus
14483extern "C"
14484#endif
14485char kinfo_getfile ();
14486int
14487main ()
14488{
14489return kinfo_getfile ();
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494if ac_fn_c_try_link "$LINENO"; then :
14495  ac_cv_lib_util_kinfo_getfile=yes
14496else
14497  ac_cv_lib_util_kinfo_getfile=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext \
14500    conftest$ac_exeext conftest.$ac_ext
14501LIBS=$ac_check_lib_save_LIBS
14502fi
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_kinfo_getfile" >&5
14504$as_echo "$ac_cv_lib_util_kinfo_getfile" >&6; }
14505if test "x$ac_cv_lib_util_kinfo_getfile" = xyes; then :
14506  cat >>confdefs.h <<_ACEOF
14507#define HAVE_LIBUTIL 1
14508_ACEOF
14509
14510  LIBS="-lutil $LIBS"
14511
14512fi
14513
14514if test xac_cv_lib_kinfo_getfile_util = xyes ; then
14515
14516$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
14517
14518fi
14519
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14521$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14522if ${ac_cv_c_const+:} false; then :
14523  $as_echo_n "(cached) " >&6
14524else
14525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527
14528int
14529main ()
14530{
14531
14532#ifndef __cplusplus
14533  /* Ultrix mips cc rejects this sort of thing.  */
14534  typedef int charset[2];
14535  const charset cs = { 0, 0 };
14536  /* SunOS 4.1.1 cc rejects this.  */
14537  char const *const *pcpcc;
14538  char **ppc;
14539  /* NEC SVR4.0.2 mips cc rejects this.  */
14540  struct point {int x, y;};
14541  static struct point const zero = {0,0};
14542  /* AIX XL C 1.02.0.0 rejects this.
14543     It does not let you subtract one const X* pointer from another in
14544     an arm of an if-expression whose if-part is not a constant
14545     expression */
14546  const char *g = "string";
14547  pcpcc = &g + (g ? g-g : 0);
14548  /* HPUX 7.0 cc rejects these. */
14549  ++pcpcc;
14550  ppc = (char**) pcpcc;
14551  pcpcc = (char const *const *) ppc;
14552  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14553    char tx;
14554    char *t = &tx;
14555    char const *s = 0 ? (char *) 0 : (char const *) 0;
14556
14557    *t++ = 0;
14558    if (s) return 0;
14559  }
14560  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14561    int x[] = {25, 17};
14562    const int *foo = &x[0];
14563    ++foo;
14564  }
14565  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14566    typedef const int *iptr;
14567    iptr p = 0;
14568    ++p;
14569  }
14570  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14571       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14572    struct s { int j; const int *ap[3]; } bx;
14573    struct s *b = &bx; b->j = 5;
14574  }
14575  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14576    const int foo = 10;
14577    if (!foo) return 0;
14578  }
14579  return !cs[0] && !zero.x;
14580#endif
14581
14582  ;
14583  return 0;
14584}
14585_ACEOF
14586if ac_fn_c_try_compile "$LINENO"; then :
14587  ac_cv_c_const=yes
14588else
14589  ac_cv_c_const=no
14590fi
14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592fi
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14594$as_echo "$ac_cv_c_const" >&6; }
14595if test $ac_cv_c_const = no; then
14596
14597$as_echo "#define const /**/" >>confdefs.h
14598
14599fi
14600
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14602$as_echo_n "checking for inline... " >&6; }
14603if ${ac_cv_c_inline+:} false; then :
14604  $as_echo_n "(cached) " >&6
14605else
14606  ac_cv_c_inline=no
14607for ac_kw in inline __inline__ __inline; do
14608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610#ifndef __cplusplus
14611typedef int foo_t;
14612static $ac_kw foo_t static_foo () {return 0; }
14613$ac_kw foo_t foo () {return 0; }
14614#endif
14615
14616_ACEOF
14617if ac_fn_c_try_compile "$LINENO"; then :
14618  ac_cv_c_inline=$ac_kw
14619fi
14620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621  test "$ac_cv_c_inline" != no && break
14622done
14623
14624fi
14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14626$as_echo "$ac_cv_c_inline" >&6; }
14627
14628case $ac_cv_c_inline in
14629  inline | yes) ;;
14630  *)
14631    case $ac_cv_c_inline in
14632      no) ac_val=;;
14633      *) ac_val=$ac_cv_c_inline;;
14634    esac
14635    cat >>confdefs.h <<_ACEOF
14636#ifndef __cplusplus
14637#define inline $ac_val
14638#endif
14639_ACEOF
14640    ;;
14641esac
14642
14643ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14644if test "x$ac_cv_type_off_t" = xyes; then :
14645
14646else
14647
14648cat >>confdefs.h <<_ACEOF
14649#define off_t long int
14650_ACEOF
14651
14652fi
14653
14654ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14655if test "x$ac_cv_type_pid_t" = xyes; then :
14656
14657else
14658
14659cat >>confdefs.h <<_ACEOF
14660#define pid_t int
14661_ACEOF
14662
14663fi
14664
14665ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14666if test "x$ac_cv_type_size_t" = xyes; then :
14667
14668else
14669
14670cat >>confdefs.h <<_ACEOF
14671#define size_t unsigned int
14672_ACEOF
14673
14674fi
14675
14676ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
14677if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
14678
14679cat >>confdefs.h <<_ACEOF
14680#define HAVE_STRUCT_STAT_ST_RDEV 1
14681_ACEOF
14682
14683
14684$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
14685
14686fi
14687
14688
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14690$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14691if ${ac_cv_header_time+:} false; then :
14692  $as_echo_n "(cached) " >&6
14693else
14694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696#include <sys/types.h>
14697#include <sys/time.h>
14698#include <time.h>
14699
14700int
14701main ()
14702{
14703if ((struct tm *) 0)
14704return 0;
14705  ;
14706  return 0;
14707}
14708_ACEOF
14709if ac_fn_c_try_compile "$LINENO"; then :
14710  ac_cv_header_time=yes
14711else
14712  ac_cv_header_time=no
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715fi
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14717$as_echo "$ac_cv_header_time" >&6; }
14718if test $ac_cv_header_time = yes; then
14719
14720$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14721
14722fi
14723
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14725$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14726if ${ac_cv_struct_tm+:} false; then :
14727  $as_echo_n "(cached) " >&6
14728else
14729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730/* end confdefs.h.  */
14731#include <sys/types.h>
14732#include <time.h>
14733
14734int
14735main ()
14736{
14737struct tm tm;
14738				     int *p = &tm.tm_sec;
14739				     return !p;
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744if ac_fn_c_try_compile "$LINENO"; then :
14745  ac_cv_struct_tm=time.h
14746else
14747  ac_cv_struct_tm=sys/time.h
14748fi
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750fi
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14752$as_echo "$ac_cv_struct_tm" >&6; }
14753if test $ac_cv_struct_tm = sys/time.h; then
14754
14755$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14756
14757fi
14758
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14760$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14761if ${ac_cv_type_uid_t+:} false; then :
14762  $as_echo_n "(cached) " >&6
14763else
14764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766#include <sys/types.h>
14767
14768_ACEOF
14769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14770  $EGREP "uid_t" >/dev/null 2>&1; then :
14771  ac_cv_type_uid_t=yes
14772else
14773  ac_cv_type_uid_t=no
14774fi
14775rm -f conftest*
14776
14777fi
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14779$as_echo "$ac_cv_type_uid_t" >&6; }
14780if test $ac_cv_type_uid_t = no; then
14781
14782$as_echo "#define uid_t int" >>confdefs.h
14783
14784
14785$as_echo "#define gid_t int" >>confdefs.h
14786
14787fi
14788
14789
14790ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14791if test "x$ac_cv_type_ssize_t" = xyes; then :
14792
14793else
14794
14795cat >>confdefs.h <<_ACEOF
14796#define ssize_t int
14797_ACEOF
14798
14799fi
14800
14801for ac_header in memory.h
14802do :
14803  ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
14804if test "x$ac_cv_header_memory_h" = xyes; then :
14805  cat >>confdefs.h <<_ACEOF
14806#define HAVE_MEMORY_H 1
14807_ACEOF
14808
14809fi
14810
14811done
14812
14813for ac_header in string.h strings.h
14814do :
14815  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14818  cat >>confdefs.h <<_ACEOF
14819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820_ACEOF
14821 break
14822fi
14823
14824done
14825
14826ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14827if test "x$ac_cv_func_strerror" = xyes; then :
14828  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
14829
14830else
14831  case " $LIBOBJS " in
14832  *" strerror.$ac_objext "* ) ;;
14833  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
14834 ;;
14835esac
14836
14837fi
14838
14839
14840
14841DL_LIB=
14842for ac_func in dlopen
14843do :
14844  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14845if test "x$ac_cv_func_dlopen" = xyes; then :
14846  cat >>confdefs.h <<_ACEOF
14847#define HAVE_DLOPEN 1
14848_ACEOF
14849
14850else
14851
14852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14853$as_echo_n "checking for dlopen in -ldl... " >&6; }
14854if ${ac_cv_lib_dl_dlopen+:} false; then :
14855  $as_echo_n "(cached) " >&6
14856else
14857  ac_check_lib_save_LIBS=$LIBS
14858LIBS="-ldl  $LIBS"
14859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861
14862/* Override any GCC internal prototype to avoid an error.
14863   Use char because int might match the return type of a GCC
14864   builtin and then its argument prototype would still apply.  */
14865#ifdef __cplusplus
14866extern "C"
14867#endif
14868char dlopen ();
14869int
14870main ()
14871{
14872return dlopen ();
14873  ;
14874  return 0;
14875}
14876_ACEOF
14877if ac_fn_c_try_link "$LINENO"; then :
14878  ac_cv_lib_dl_dlopen=yes
14879else
14880  ac_cv_lib_dl_dlopen=no
14881fi
14882rm -f core conftest.err conftest.$ac_objext \
14883    conftest$ac_exeext conftest.$ac_ext
14884LIBS=$ac_check_lib_save_LIBS
14885fi
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14887$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14888if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14889  DL_LIB="-ldl"
14890else
14891
14892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14893$as_echo_n "checking for shl_load in -ldld... " >&6; }
14894if ${ac_cv_lib_dld_shl_load+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  ac_check_lib_save_LIBS=$LIBS
14898LIBS="-ldld  $LIBS"
14899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901
14902/* Override any GCC internal prototype to avoid an error.
14903   Use char because int might match the return type of a GCC
14904   builtin and then its argument prototype would still apply.  */
14905#ifdef __cplusplus
14906extern "C"
14907#endif
14908char shl_load ();
14909int
14910main ()
14911{
14912return shl_load ();
14913  ;
14914  return 0;
14915}
14916_ACEOF
14917if ac_fn_c_try_link "$LINENO"; then :
14918  ac_cv_lib_dld_shl_load=yes
14919else
14920  ac_cv_lib_dld_shl_load=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext \
14923    conftest$ac_exeext conftest.$ac_ext
14924LIBS=$ac_check_lib_save_LIBS
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14927$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14928if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14929  DL_LIB="-ldld"
14930else
14931
14932      for ac_func in dlopen
14933do :
14934  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14935if test "x$ac_cv_func_dlopen" = xyes; then :
14936  cat >>confdefs.h <<_ACEOF
14937#define HAVE_DLOPEN 1
14938_ACEOF
14939 DL_LIB=""
14940else
14941  DL_LIB=""
14942fi
14943done
14944
14945
14946fi
14947
14948
14949fi
14950
14951
14952fi
14953done
14954
14955oLIBS="$LIBS"
14956LIBS="$LIBS $DL_LIB"
14957for ac_func in dlerror
14958do :
14959  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
14960if test "x$ac_cv_func_dlerror" = xyes; then :
14961  cat >>confdefs.h <<_ACEOF
14962#define HAVE_DLERROR 1
14963_ACEOF
14964
14965fi
14966done
14967
14968LIBS="$oLIBS"
14969
14970
14971ac_fn_c_check_header_mongrel "$LINENO" "linux/isdn.h" "ac_cv_header_linux_isdn_h" "$ac_includes_default"
14972if test "x$ac_cv_header_linux_isdn_h" = xyes; then :
14973  HAVE_ISDN_H=yes
14974else
14975  HAVE_ISDN_H=no
14976fi
14977
14978
14979if test x$HAVE_ISDN_H = xyes ; then
14980
14981$as_echo "#define HAVE_ISDN_H 1" >>confdefs.h
14982
14983fi
14984
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vmgetinfo in -lperfstat" >&5
14986$as_echo_n "checking for vmgetinfo in -lperfstat... " >&6; }
14987if ${ac_cv_lib_perfstat_vmgetinfo+:} false; then :
14988  $as_echo_n "(cached) " >&6
14989else
14990  ac_check_lib_save_LIBS=$LIBS
14991LIBS="-lperfstat  $LIBS"
14992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993/* end confdefs.h.  */
14994
14995/* Override any GCC internal prototype to avoid an error.
14996   Use char because int might match the return type of a GCC
14997   builtin and then its argument prototype would still apply.  */
14998#ifdef __cplusplus
14999extern "C"
15000#endif
15001char vmgetinfo ();
15002int
15003main ()
15004{
15005return vmgetinfo ();
15006  ;
15007  return 0;
15008}
15009_ACEOF
15010if ac_fn_c_try_link "$LINENO"; then :
15011  ac_cv_lib_perfstat_vmgetinfo=yes
15012else
15013  ac_cv_lib_perfstat_vmgetinfo=no
15014fi
15015rm -f core conftest.err conftest.$ac_objext \
15016    conftest$ac_exeext conftest.$ac_ext
15017LIBS=$ac_check_lib_save_LIBS
15018fi
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_vmgetinfo" >&5
15020$as_echo "$ac_cv_lib_perfstat_vmgetinfo" >&6; }
15021if test "x$ac_cv_lib_perfstat_vmgetinfo" = xyes; then :
15022
15023$as_echo "#define HAVE_VMGETINFO 1" >>confdefs.h
15024
15025fi
15026
15027
15028case "$host_os" in
15029     solaris*)
15030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15031$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15032if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15033  $as_echo_n "(cached) " >&6
15034else
15035  ac_check_lib_save_LIBS=$LIBS
15036LIBS="-lkstat  $LIBS"
15037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038/* end confdefs.h.  */
15039
15040/* Override any GCC internal prototype to avoid an error.
15041   Use char because int might match the return type of a GCC
15042   builtin and then its argument prototype would still apply.  */
15043#ifdef __cplusplus
15044extern "C"
15045#endif
15046char kstat_open ();
15047int
15048main ()
15049{
15050return kstat_open ();
15051  ;
15052  return 0;
15053}
15054_ACEOF
15055if ac_fn_c_try_link "$LINENO"; then :
15056  ac_cv_lib_kstat_kstat_open=yes
15057else
15058  ac_cv_lib_kstat_kstat_open=no
15059fi
15060rm -f core conftest.err conftest.$ac_objext \
15061    conftest$ac_exeext conftest.$ac_ext
15062LIBS=$ac_check_lib_save_LIBS
15063fi
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15065$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15066if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15067  cat >>confdefs.h <<_ACEOF
15068#define HAVE_LIBKSTAT 1
15069_ACEOF
15070
15071  LIBS="-lkstat $LIBS"
15072
15073fi
15074
15075     for ac_func in getloadavg swapctl
15076do :
15077  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15078ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15079if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15080  cat >>confdefs.h <<_ACEOF
15081#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082_ACEOF
15083
15084fi
15085done
15086
15087     for ac_header in procfs.h sys/procfs.h
15088do :
15089  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15090ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15092  cat >>confdefs.h <<_ACEOF
15093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094_ACEOF
15095 break
15096fi
15097
15098done
15099
15100
15101
15102        case $host_os in
15103    solaris[8-9] | solaris2.[0-9].*)
15104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15105$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15106if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15107  $as_echo_n "(cached) " >&6
15108else
15109  ac_check_lib_save_LIBS=$LIBS
15110LIBS="-lkvm  $LIBS"
15111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112/* end confdefs.h.  */
15113
15114/* Override any GCC internal prototype to avoid an error.
15115   Use char because int might match the return type of a GCC
15116   builtin and then its argument prototype would still apply.  */
15117#ifdef __cplusplus
15118extern "C"
15119#endif
15120char kvm_open ();
15121int
15122main ()
15123{
15124return kvm_open ();
15125  ;
15126  return 0;
15127}
15128_ACEOF
15129if ac_fn_c_try_link "$LINENO"; then :
15130  ac_cv_lib_kvm_kvm_open=yes
15131else
15132  ac_cv_lib_kvm_kvm_open=no
15133fi
15134rm -f core conftest.err conftest.$ac_objext \
15135    conftest$ac_exeext conftest.$ac_ext
15136LIBS=$ac_check_lib_save_LIBS
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15139$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15140if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15141
15142      LIBS="-lkvm $LIBS"
15143
15144else
15145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm with -lelf" >&5
15146$as_echo_n "checking for kvm_open in -lkvm with -lelf... " >&6; }
15147       if ${ac_cv_lib_kvm_with_elf+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  ac_save_LIBS="$LIBS"
15151        LIBS="-lkvm -lelf $LIBS"
15152        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153/* end confdefs.h.  */
15154char kvm_open();
15155int
15156main ()
15157{
15158kvm_open()
15159  ;
15160  return 0;
15161}
15162_ACEOF
15163if ac_fn_c_try_link "$LINENO"; then :
15164  ac_cv_lib_kvm_with_elf=yes
15165else
15166  ac_cv_lib_kvm_with_elf=no
15167fi
15168rm -f core conftest.err conftest.$ac_objext \
15169    conftest$ac_exeext conftest.$ac_ext
15170        LIBS="$ac_save_LIBS"
15171
15172fi
15173
15174       if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
15175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176$as_echo "yes" >&6; }
15177         LIBS="-lkvm -lelf $LIBS"
15178       else
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180$as_echo "no" >&6; }
15181       fi
15182
15183fi
15184
15185     ;;
15186     esac
15187     ;;
15188esac
15189
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vm_statistics in -lmach" >&5
15191$as_echo_n "checking for vm_statistics in -lmach... " >&6; }
15192if ${ac_cv_lib_mach_vm_statistics+:} false; then :
15193  $as_echo_n "(cached) " >&6
15194else
15195  ac_check_lib_save_LIBS=$LIBS
15196LIBS="-lmach  $LIBS"
15197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199
15200/* Override any GCC internal prototype to avoid an error.
15201   Use char because int might match the return type of a GCC
15202   builtin and then its argument prototype would still apply.  */
15203#ifdef __cplusplus
15204extern "C"
15205#endif
15206char vm_statistics ();
15207int
15208main ()
15209{
15210return vm_statistics ();
15211  ;
15212  return 0;
15213}
15214_ACEOF
15215if ac_fn_c_try_link "$LINENO"; then :
15216  ac_cv_lib_mach_vm_statistics=yes
15217else
15218  ac_cv_lib_mach_vm_statistics=no
15219fi
15220rm -f core conftest.err conftest.$ac_objext \
15221    conftest$ac_exeext conftest.$ac_ext
15222LIBS=$ac_check_lib_save_LIBS
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mach_vm_statistics" >&5
15225$as_echo "$ac_cv_lib_mach_vm_statistics" >&6; }
15226if test "x$ac_cv_lib_mach_vm_statistics" = xyes; then :
15227  cat >>confdefs.h <<_ACEOF
15228#define HAVE_LIBMACH 1
15229_ACEOF
15230
15231  LIBS="-lmach $LIBS"
15232
15233fi
15234
15235
15236saved_CFLAGS=$CFLAGS
15237CFLAGS="$CFLAGS -D_GNU_SOURCE"
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name must be declared" >&5
15239$as_echo_n "checking whether program_invocation_name must be declared... " >&6; }
15240if ${gcc_cv_decl_needed_program_invocation_name+:} false; then :
15241  $as_echo_n "(cached) " >&6
15242else
15243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h.  */
15245
15246#include <stdio.h>
15247#ifdef HAVE_STRING_H
15248#include <string.h>
15249#else
15250#ifdef HAVE_STRINGS_H
15251#include <strings.h>
15252#endif
15253#endif
15254#ifdef HAVE_STDLIB_H
15255#include <stdlib.h>
15256#endif
15257#ifdef HAVE_UNISTD_H
15258#include <unistd.h>
15259#endif
15260
15261#include <errno.h>
15262#include <stdio.h>
15263#include <stdlib.h>
15264#include <string.h>
15265
15266int
15267main ()
15268{
15269char *(*pfn) = (char *(*)) program_invocation_name
15270  ;
15271  return 0;
15272}
15273_ACEOF
15274if ac_fn_c_try_compile "$LINENO"; then :
15275  eval "gcc_cv_decl_needed_program_invocation_name=no"
15276else
15277  eval "gcc_cv_decl_needed_program_invocation_name=yes"
15278fi
15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280fi
15281
15282if eval "test \"`echo '$gcc_cv_decl_needed_'program_invocation_name`\" = yes"; then
15283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15284$as_echo "yes" >&6; }
15285  gcc_need_declarations="$gcc_need_declarations program_invocation_name"
15286  gcc_tr_decl=NEED_DECLARATION_`echo program_invocation_name | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15287
15288cat >>confdefs.h <<_ACEOF
15289#define $gcc_tr_decl 1
15290_ACEOF
15291
15292else
15293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
15295fi
15296
15297
15298CFLAGS=$saved_CFLAGS
15299
15300ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15301if test "x$ac_cv_func_socket" = xyes; then :
15302  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15303if test "x$ac_cv_header_netinet_in_h" = xyes; then :
15304  ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15305if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
15306
15307
15308$as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15309
15310      { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for sun_len member in struct sockaddr_un\"" >&5
15311$as_echo_n "checking \"for sun_len member in struct sockaddr_un\"... " >&6; }
15312      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h.  */
15314
15315#include <sys/types.h>
15316#include <sys/socket.h>
15317#include <sys/un.h>
15318
15319int
15320main ()
15321{
15322static struct sockaddr_un x; x.sun_len = 1;
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327if ac_fn_c_try_link "$LINENO"; then :
15328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15329$as_echo "yes" >&6; };
15330$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
15331
15332else
15333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334$as_echo "no" >&6; }
15335fi
15336rm -f core conftest.err conftest.$ac_objext \
15337    conftest$ac_exeext conftest.$ac_ext
15338fi
15339
15340
15341fi
15342
15343
15344fi
15345
15346
15347# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15348# for constant arguments.  Useless!
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15350$as_echo_n "checking for working alloca.h... " >&6; }
15351if ${ac_cv_working_alloca_h+:} false; then :
15352  $as_echo_n "(cached) " >&6
15353else
15354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h.  */
15356#include <alloca.h>
15357int
15358main ()
15359{
15360char *p = (char *) alloca (2 * sizeof (int));
15361			  if (p) return 0;
15362  ;
15363  return 0;
15364}
15365_ACEOF
15366if ac_fn_c_try_link "$LINENO"; then :
15367  ac_cv_working_alloca_h=yes
15368else
15369  ac_cv_working_alloca_h=no
15370fi
15371rm -f core conftest.err conftest.$ac_objext \
15372    conftest$ac_exeext conftest.$ac_ext
15373fi
15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15375$as_echo "$ac_cv_working_alloca_h" >&6; }
15376if test $ac_cv_working_alloca_h = yes; then
15377
15378$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15379
15380fi
15381
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15383$as_echo_n "checking for alloca... " >&6; }
15384if ${ac_cv_func_alloca_works+:} false; then :
15385  $as_echo_n "(cached) " >&6
15386else
15387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389#ifdef __GNUC__
15390# define alloca __builtin_alloca
15391#else
15392# ifdef _MSC_VER
15393#  include <malloc.h>
15394#  define alloca _alloca
15395# else
15396#  ifdef HAVE_ALLOCA_H
15397#   include <alloca.h>
15398#  else
15399#   ifdef _AIX
15400 #pragma alloca
15401#   else
15402#    ifndef alloca /* predefined by HP cc +Olibcalls */
15403void *alloca (size_t);
15404#    endif
15405#   endif
15406#  endif
15407# endif
15408#endif
15409
15410int
15411main ()
15412{
15413char *p = (char *) alloca (1);
15414				    if (p) return 0;
15415  ;
15416  return 0;
15417}
15418_ACEOF
15419if ac_fn_c_try_link "$LINENO"; then :
15420  ac_cv_func_alloca_works=yes
15421else
15422  ac_cv_func_alloca_works=no
15423fi
15424rm -f core conftest.err conftest.$ac_objext \
15425    conftest$ac_exeext conftest.$ac_ext
15426fi
15427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15428$as_echo "$ac_cv_func_alloca_works" >&6; }
15429
15430if test $ac_cv_func_alloca_works = yes; then
15431
15432$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15433
15434else
15435  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15436# that cause trouble.  Some versions do not even contain alloca or
15437# contain a buggy version.  If you still want to use their alloca,
15438# use ar to extract alloca.o from them instead of compiling alloca.c.
15439
15440ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15441
15442$as_echo "#define C_ALLOCA 1" >>confdefs.h
15443
15444
15445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15446$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15447if ${ac_cv_os_cray+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452#if defined CRAY && ! defined CRAY2
15453webecray
15454#else
15455wenotbecray
15456#endif
15457
15458_ACEOF
15459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15460  $EGREP "webecray" >/dev/null 2>&1; then :
15461  ac_cv_os_cray=yes
15462else
15463  ac_cv_os_cray=no
15464fi
15465rm -f conftest*
15466
15467fi
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15469$as_echo "$ac_cv_os_cray" >&6; }
15470if test $ac_cv_os_cray = yes; then
15471  for ac_func in _getb67 GETB67 getb67; do
15472    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15474if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15475
15476cat >>confdefs.h <<_ACEOF
15477#define CRAY_STACKSEG_END $ac_func
15478_ACEOF
15479
15480    break
15481fi
15482
15483  done
15484fi
15485
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15487$as_echo_n "checking stack direction for C alloca... " >&6; }
15488if ${ac_cv_c_stack_direction+:} false; then :
15489  $as_echo_n "(cached) " >&6
15490else
15491  if test "$cross_compiling" = yes; then :
15492  ac_cv_c_stack_direction=0
15493else
15494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495/* end confdefs.h.  */
15496$ac_includes_default
15497int
15498find_stack_direction (int *addr, int depth)
15499{
15500  int dir, dummy = 0;
15501  if (! addr)
15502    addr = &dummy;
15503  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15504  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15505  return dir + dummy;
15506}
15507
15508int
15509main (int argc, char **argv)
15510{
15511  return find_stack_direction (0, argc + !argv + 20) < 0;
15512}
15513_ACEOF
15514if ac_fn_c_try_run "$LINENO"; then :
15515  ac_cv_c_stack_direction=1
15516else
15517  ac_cv_c_stack_direction=-1
15518fi
15519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15520  conftest.$ac_objext conftest.beam conftest.$ac_ext
15521fi
15522
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15525$as_echo "$ac_cv_c_stack_direction" >&6; }
15526cat >>confdefs.h <<_ACEOF
15527#define STACK_DIRECTION $ac_cv_c_stack_direction
15528_ACEOF
15529
15530
15531fi
15532
15533
15534
15535
15536  for ac_header in $ac_header_list
15537do :
15538  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15540"
15541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15542  cat >>confdefs.h <<_ACEOF
15543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15544_ACEOF
15545
15546fi
15547
15548done
15549
15550
15551
15552
15553
15554
15555
15556
15557for ac_func in getpagesize
15558do :
15559  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15560if test "x$ac_cv_func_getpagesize" = xyes; then :
15561  cat >>confdefs.h <<_ACEOF
15562#define HAVE_GETPAGESIZE 1
15563_ACEOF
15564
15565fi
15566done
15567
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15569$as_echo_n "checking for working mmap... " >&6; }
15570if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15571  $as_echo_n "(cached) " >&6
15572else
15573  if test "$cross_compiling" = yes; then :
15574  ac_cv_func_mmap_fixed_mapped=no
15575else
15576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577/* end confdefs.h.  */
15578$ac_includes_default
15579/* malloc might have been renamed as rpl_malloc. */
15580#undef malloc
15581
15582/* Thanks to Mike Haertel and Jim Avera for this test.
15583   Here is a matrix of mmap possibilities:
15584	mmap private not fixed
15585	mmap private fixed at somewhere currently unmapped
15586	mmap private fixed at somewhere already mapped
15587	mmap shared not fixed
15588	mmap shared fixed at somewhere currently unmapped
15589	mmap shared fixed at somewhere already mapped
15590   For private mappings, we should verify that changes cannot be read()
15591   back from the file, nor mmap's back from the file at a different
15592   address.  (There have been systems where private was not correctly
15593   implemented like the infamous i386 svr4.0, and systems where the
15594   VM page cache was not coherent with the file system buffer cache
15595   like early versions of FreeBSD and possibly contemporary NetBSD.)
15596   For shared mappings, we should conversely verify that changes get
15597   propagated back to all the places they're supposed to be.
15598
15599   Grep wants private fixed already mapped.
15600   The main things grep needs to know about mmap are:
15601   * does it exist and is it safe to write into the mmap'd area
15602   * how to use it (BSD variants)  */
15603
15604#include <fcntl.h>
15605#include <sys/mman.h>
15606
15607#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15608char *malloc ();
15609#endif
15610
15611/* This mess was copied from the GNU getpagesize.h.  */
15612#ifndef HAVE_GETPAGESIZE
15613# ifdef _SC_PAGESIZE
15614#  define getpagesize() sysconf(_SC_PAGESIZE)
15615# else /* no _SC_PAGESIZE */
15616#  ifdef HAVE_SYS_PARAM_H
15617#   include <sys/param.h>
15618#   ifdef EXEC_PAGESIZE
15619#    define getpagesize() EXEC_PAGESIZE
15620#   else /* no EXEC_PAGESIZE */
15621#    ifdef NBPG
15622#     define getpagesize() NBPG * CLSIZE
15623#     ifndef CLSIZE
15624#      define CLSIZE 1
15625#     endif /* no CLSIZE */
15626#    else /* no NBPG */
15627#     ifdef NBPC
15628#      define getpagesize() NBPC
15629#     else /* no NBPC */
15630#      ifdef PAGESIZE
15631#       define getpagesize() PAGESIZE
15632#      endif /* PAGESIZE */
15633#     endif /* no NBPC */
15634#    endif /* no NBPG */
15635#   endif /* no EXEC_PAGESIZE */
15636#  else /* no HAVE_SYS_PARAM_H */
15637#   define getpagesize() 8192	/* punt totally */
15638#  endif /* no HAVE_SYS_PARAM_H */
15639# endif /* no _SC_PAGESIZE */
15640
15641#endif /* no HAVE_GETPAGESIZE */
15642
15643int
15644main ()
15645{
15646  char *data, *data2, *data3;
15647  const char *cdata2;
15648  int i, pagesize;
15649  int fd, fd2;
15650
15651  pagesize = getpagesize ();
15652
15653  /* First, make a file with some known garbage in it. */
15654  data = (char *) malloc (pagesize);
15655  if (!data)
15656    return 1;
15657  for (i = 0; i < pagesize; ++i)
15658    *(data + i) = rand ();
15659  umask (0);
15660  fd = creat ("conftest.mmap", 0600);
15661  if (fd < 0)
15662    return 2;
15663  if (write (fd, data, pagesize) != pagesize)
15664    return 3;
15665  close (fd);
15666
15667  /* Next, check that the tail of a page is zero-filled.  File must have
15668     non-zero length, otherwise we risk SIGBUS for entire page.  */
15669  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15670  if (fd2 < 0)
15671    return 4;
15672  cdata2 = "";
15673  if (write (fd2, cdata2, 1) != 1)
15674    return 5;
15675  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15676  if (data2 == MAP_FAILED)
15677    return 6;
15678  for (i = 0; i < pagesize; ++i)
15679    if (*(data2 + i))
15680      return 7;
15681  close (fd2);
15682  if (munmap (data2, pagesize))
15683    return 8;
15684
15685  /* Next, try to mmap the file at a fixed address which already has
15686     something else allocated at it.  If we can, also make sure that
15687     we see the same garbage.  */
15688  fd = open ("conftest.mmap", O_RDWR);
15689  if (fd < 0)
15690    return 9;
15691  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15692		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
15693    return 10;
15694  for (i = 0; i < pagesize; ++i)
15695    if (*(data + i) != *(data2 + i))
15696      return 11;
15697
15698  /* Finally, make sure that changes to the mapped area do not
15699     percolate back to the file as seen by read().  (This is a bug on
15700     some variants of i386 svr4.0.)  */
15701  for (i = 0; i < pagesize; ++i)
15702    *(data2 + i) = *(data2 + i) + 1;
15703  data3 = (char *) malloc (pagesize);
15704  if (!data3)
15705    return 12;
15706  if (read (fd, data3, pagesize) != pagesize)
15707    return 13;
15708  for (i = 0; i < pagesize; ++i)
15709    if (*(data + i) != *(data3 + i))
15710      return 14;
15711  close (fd);
15712  return 0;
15713}
15714_ACEOF
15715if ac_fn_c_try_run "$LINENO"; then :
15716  ac_cv_func_mmap_fixed_mapped=yes
15717else
15718  ac_cv_func_mmap_fixed_mapped=no
15719fi
15720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15721  conftest.$ac_objext conftest.beam conftest.$ac_ext
15722fi
15723
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15726$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15727if test $ac_cv_func_mmap_fixed_mapped = yes; then
15728
15729$as_echo "#define HAVE_MMAP 1" >>confdefs.h
15730
15731fi
15732rm -f conftest.mmap conftest.txt
15733
15734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15735$as_echo_n "checking return type of signal handlers... " >&6; }
15736if ${ac_cv_type_signal+:} false; then :
15737  $as_echo_n "(cached) " >&6
15738else
15739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h.  */
15741#include <sys/types.h>
15742#include <signal.h>
15743
15744int
15745main ()
15746{
15747return *(signal (0, 0)) (0) == 1;
15748  ;
15749  return 0;
15750}
15751_ACEOF
15752if ac_fn_c_try_compile "$LINENO"; then :
15753  ac_cv_type_signal=int
15754else
15755  ac_cv_type_signal=void
15756fi
15757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15758fi
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15760$as_echo "$ac_cv_type_signal" >&6; }
15761
15762cat >>confdefs.h <<_ACEOF
15763#define RETSIGTYPE $ac_cv_type_signal
15764_ACEOF
15765
15766
15767for ac_func in strftime
15768do :
15769  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15770if test "x$ac_cv_func_strftime" = xyes; then :
15771  cat >>confdefs.h <<_ACEOF
15772#define HAVE_STRFTIME 1
15773_ACEOF
15774
15775else
15776  # strftime is in -lintl on SCO UNIX.
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15778$as_echo_n "checking for strftime in -lintl... " >&6; }
15779if ${ac_cv_lib_intl_strftime+:} false; then :
15780  $as_echo_n "(cached) " >&6
15781else
15782  ac_check_lib_save_LIBS=$LIBS
15783LIBS="-lintl  $LIBS"
15784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h.  */
15786
15787/* Override any GCC internal prototype to avoid an error.
15788   Use char because int might match the return type of a GCC
15789   builtin and then its argument prototype would still apply.  */
15790#ifdef __cplusplus
15791extern "C"
15792#endif
15793char strftime ();
15794int
15795main ()
15796{
15797return strftime ();
15798  ;
15799  return 0;
15800}
15801_ACEOF
15802if ac_fn_c_try_link "$LINENO"; then :
15803  ac_cv_lib_intl_strftime=yes
15804else
15805  ac_cv_lib_intl_strftime=no
15806fi
15807rm -f core conftest.err conftest.$ac_objext \
15808    conftest$ac_exeext conftest.$ac_ext
15809LIBS=$ac_check_lib_save_LIBS
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15812$as_echo "$ac_cv_lib_intl_strftime" >&6; }
15813if test "x$ac_cv_lib_intl_strftime" = xyes; then :
15814  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15815
15816LIBS="-lintl $LIBS"
15817fi
15818
15819fi
15820done
15821
15822for ac_func in getcwd gettimeofday getwd putenv strdup strtoul uname
15823do :
15824  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15825ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15826if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15827  cat >>confdefs.h <<_ACEOF
15828#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15829_ACEOF
15830
15831fi
15832done
15833
15834
15835
15836
15837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15838$as_echo_n "checking whether NLS is requested... " >&6; }
15839    # Check whether --enable-nls was given.
15840if test "${enable_nls+set}" = set; then :
15841  enableval=$enable_nls; USE_NLS=$enableval
15842else
15843  USE_NLS=yes
15844fi
15845
15846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15847$as_echo "$USE_NLS" >&6; }
15848
15849
15850
15851
15852      GETTEXT_MACRO_VERSION=0.19
15853
15854
15855
15856
15857# Prepare PATH_SEPARATOR.
15858# The user is always right.
15859if test "${PATH_SEPARATOR+set}" != set; then
15860  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15861  # contains only /bin. Note that ksh looks also at the FPATH variable,
15862  # so we have to set that as well for the test.
15863  PATH_SEPARATOR=:
15864  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15865    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15866           || PATH_SEPARATOR=';'
15867       }
15868fi
15869
15870# Find out how to test for executable files. Don't use a zero-byte file,
15871# as systems may use methods other than mode bits to determine executability.
15872cat >conf$$.file <<_ASEOF
15873#! /bin/sh
15874exit 0
15875_ASEOF
15876chmod +x conf$$.file
15877if test -x conf$$.file >/dev/null 2>&1; then
15878  ac_executable_p="test -x"
15879else
15880  ac_executable_p="test -f"
15881fi
15882rm -f conf$$.file
15883
15884# Extract the first word of "msgfmt", so it can be a program name with args.
15885set dummy msgfmt; ac_word=$2
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15887$as_echo_n "checking for $ac_word... " >&6; }
15888if ${ac_cv_path_MSGFMT+:} false; then :
15889  $as_echo_n "(cached) " >&6
15890else
15891  case "$MSGFMT" in
15892  [\\/]* | ?:[\\/]*)
15893    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15894    ;;
15895  *)
15896    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15897    for ac_dir in $PATH; do
15898      IFS="$ac_save_IFS"
15899      test -z "$ac_dir" && ac_dir=.
15900      for ac_exec_ext in '' $ac_executable_extensions; do
15901        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15902          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15903          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15904     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15905            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15906            break 2
15907          fi
15908        fi
15909      done
15910    done
15911    IFS="$ac_save_IFS"
15912  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15913    ;;
15914esac
15915fi
15916MSGFMT="$ac_cv_path_MSGFMT"
15917if test "$MSGFMT" != ":"; then
15918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15919$as_echo "$MSGFMT" >&6; }
15920else
15921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922$as_echo "no" >&6; }
15923fi
15924
15925  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15926set dummy gmsgfmt; ac_word=$2
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15928$as_echo_n "checking for $ac_word... " >&6; }
15929if ${ac_cv_path_GMSGFMT+:} false; then :
15930  $as_echo_n "(cached) " >&6
15931else
15932  case $GMSGFMT in
15933  [\\/]* | ?:[\\/]*)
15934  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15935  ;;
15936  *)
15937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938for as_dir in $PATH
15939do
15940  IFS=$as_save_IFS
15941  test -z "$as_dir" && as_dir=.
15942    for ac_exec_ext in '' $ac_executable_extensions; do
15943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15944    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15946    break 2
15947  fi
15948done
15949  done
15950IFS=$as_save_IFS
15951
15952  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15953  ;;
15954esac
15955fi
15956GMSGFMT=$ac_cv_path_GMSGFMT
15957if test -n "$GMSGFMT"; then
15958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15959$as_echo "$GMSGFMT" >&6; }
15960else
15961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962$as_echo "no" >&6; }
15963fi
15964
15965
15966
15967    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15968    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15969    *) MSGFMT_015=$MSGFMT ;;
15970  esac
15971
15972  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15973    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15974    *) GMSGFMT_015=$GMSGFMT ;;
15975  esac
15976
15977
15978
15979# Prepare PATH_SEPARATOR.
15980# The user is always right.
15981if test "${PATH_SEPARATOR+set}" != set; then
15982  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15983  # contains only /bin. Note that ksh looks also at the FPATH variable,
15984  # so we have to set that as well for the test.
15985  PATH_SEPARATOR=:
15986  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15987    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15988           || PATH_SEPARATOR=';'
15989       }
15990fi
15991
15992# Find out how to test for executable files. Don't use a zero-byte file,
15993# as systems may use methods other than mode bits to determine executability.
15994cat >conf$$.file <<_ASEOF
15995#! /bin/sh
15996exit 0
15997_ASEOF
15998chmod +x conf$$.file
15999if test -x conf$$.file >/dev/null 2>&1; then
16000  ac_executable_p="test -x"
16001else
16002  ac_executable_p="test -f"
16003fi
16004rm -f conf$$.file
16005
16006# Extract the first word of "xgettext", so it can be a program name with args.
16007set dummy xgettext; ac_word=$2
16008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009$as_echo_n "checking for $ac_word... " >&6; }
16010if ${ac_cv_path_XGETTEXT+:} false; then :
16011  $as_echo_n "(cached) " >&6
16012else
16013  case "$XGETTEXT" in
16014  [\\/]* | ?:[\\/]*)
16015    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16016    ;;
16017  *)
16018    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16019    for ac_dir in $PATH; do
16020      IFS="$ac_save_IFS"
16021      test -z "$ac_dir" && ac_dir=.
16022      for ac_exec_ext in '' $ac_executable_extensions; do
16023        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16024          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16025          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16026     (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
16027            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16028            break 2
16029          fi
16030        fi
16031      done
16032    done
16033    IFS="$ac_save_IFS"
16034  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16035    ;;
16036esac
16037fi
16038XGETTEXT="$ac_cv_path_XGETTEXT"
16039if test "$XGETTEXT" != ":"; then
16040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16041$as_echo "$XGETTEXT" >&6; }
16042else
16043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044$as_echo "no" >&6; }
16045fi
16046
16047    rm -f messages.po
16048
16049    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16050    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16051    *) XGETTEXT_015=$XGETTEXT ;;
16052  esac
16053
16054
16055
16056# Prepare PATH_SEPARATOR.
16057# The user is always right.
16058if test "${PATH_SEPARATOR+set}" != set; then
16059  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16060  # contains only /bin. Note that ksh looks also at the FPATH variable,
16061  # so we have to set that as well for the test.
16062  PATH_SEPARATOR=:
16063  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16064    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16065           || PATH_SEPARATOR=';'
16066       }
16067fi
16068
16069# Find out how to test for executable files. Don't use a zero-byte file,
16070# as systems may use methods other than mode bits to determine executability.
16071cat >conf$$.file <<_ASEOF
16072#! /bin/sh
16073exit 0
16074_ASEOF
16075chmod +x conf$$.file
16076if test -x conf$$.file >/dev/null 2>&1; then
16077  ac_executable_p="test -x"
16078else
16079  ac_executable_p="test -f"
16080fi
16081rm -f conf$$.file
16082
16083# Extract the first word of "msgmerge", so it can be a program name with args.
16084set dummy msgmerge; ac_word=$2
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086$as_echo_n "checking for $ac_word... " >&6; }
16087if ${ac_cv_path_MSGMERGE+:} false; then :
16088  $as_echo_n "(cached) " >&6
16089else
16090  case "$MSGMERGE" in
16091  [\\/]* | ?:[\\/]*)
16092    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16093    ;;
16094  *)
16095    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16096    for ac_dir in $PATH; do
16097      IFS="$ac_save_IFS"
16098      test -z "$ac_dir" && ac_dir=.
16099      for ac_exec_ext in '' $ac_executable_extensions; do
16100        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16101          echo "$as_me: trying $ac_dir/$ac_word..." >&5
16102          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16103            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16104            break 2
16105          fi
16106        fi
16107      done
16108    done
16109    IFS="$ac_save_IFS"
16110  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16111    ;;
16112esac
16113fi
16114MSGMERGE="$ac_cv_path_MSGMERGE"
16115if test "$MSGMERGE" != ":"; then
16116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16117$as_echo "$MSGMERGE" >&6; }
16118else
16119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120$as_echo "no" >&6; }
16121fi
16122
16123
16124        test -n "$localedir" || localedir='${datadir}/locale'
16125
16126
16127    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16128
16129
16130  ac_config_commands="$ac_config_commands po-directories"
16131
16132
16133
16134      if test "X$prefix" = "XNONE"; then
16135    acl_final_prefix="$ac_default_prefix"
16136  else
16137    acl_final_prefix="$prefix"
16138  fi
16139  if test "X$exec_prefix" = "XNONE"; then
16140    acl_final_exec_prefix='${prefix}'
16141  else
16142    acl_final_exec_prefix="$exec_prefix"
16143  fi
16144  acl_save_prefix="$prefix"
16145  prefix="$acl_final_prefix"
16146  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16147  prefix="$acl_save_prefix"
16148
16149
16150
16151# Check whether --with-gnu-ld was given.
16152if test "${with_gnu_ld+set}" = set; then :
16153  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16154else
16155  with_gnu_ld=no
16156fi
16157
16158# Prepare PATH_SEPARATOR.
16159# The user is always right.
16160if test "${PATH_SEPARATOR+set}" != set; then
16161  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16162  # contains only /bin. Note that ksh looks also at the FPATH variable,
16163  # so we have to set that as well for the test.
16164  PATH_SEPARATOR=:
16165  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16166    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16167           || PATH_SEPARATOR=';'
16168       }
16169fi
16170
16171ac_prog=ld
16172if test "$GCC" = yes; then
16173  # Check if gcc -print-prog-name=ld gives a path.
16174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16175$as_echo_n "checking for ld used by $CC... " >&6; }
16176  case $host in
16177  *-*-mingw*)
16178    # gcc leaves a trailing carriage return which upsets mingw
16179    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16180  *)
16181    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16182  esac
16183  case $ac_prog in
16184    # Accept absolute paths.
16185    [\\/]* | ?:[\\/]*)
16186      re_direlt='/[^/][^/]*/\.\./'
16187      # Canonicalize the pathname of ld
16188      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16189      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16190        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16191      done
16192      test -z "$LD" && LD="$ac_prog"
16193      ;;
16194  "")
16195    # If it fails, then pretend we aren't using GCC.
16196    ac_prog=ld
16197    ;;
16198  *)
16199    # If it is relative, then search for the first ld in PATH.
16200    with_gnu_ld=unknown
16201    ;;
16202  esac
16203elif test "$with_gnu_ld" = yes; then
16204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16205$as_echo_n "checking for GNU ld... " >&6; }
16206else
16207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16208$as_echo_n "checking for non-GNU ld... " >&6; }
16209fi
16210if ${acl_cv_path_LD+:} false; then :
16211  $as_echo_n "(cached) " >&6
16212else
16213  if test -z "$LD"; then
16214  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16215  for ac_dir in $PATH; do
16216    IFS="$acl_save_ifs"
16217    test -z "$ac_dir" && ac_dir=.
16218    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16219      acl_cv_path_LD="$ac_dir/$ac_prog"
16220      # Check to see if the program is GNU ld.  I'd rather use --version,
16221      # but apparently some variants of GNU ld only accept -v.
16222      # Break only if it was the GNU/non-GNU ld that we prefer.
16223      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16224      *GNU* | *'with BFD'*)
16225        test "$with_gnu_ld" != no && break
16226        ;;
16227      *)
16228        test "$with_gnu_ld" != yes && break
16229        ;;
16230      esac
16231    fi
16232  done
16233  IFS="$acl_save_ifs"
16234else
16235  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16236fi
16237fi
16238
16239LD="$acl_cv_path_LD"
16240if test -n "$LD"; then
16241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16242$as_echo "$LD" >&6; }
16243else
16244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16245$as_echo "no" >&6; }
16246fi
16247test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16250if ${acl_cv_prog_gnu_ld+:} false; then :
16251  $as_echo_n "(cached) " >&6
16252else
16253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16254case `$LD -v 2>&1 </dev/null` in
16255*GNU* | *'with BFD'*)
16256  acl_cv_prog_gnu_ld=yes
16257  ;;
16258*)
16259  acl_cv_prog_gnu_ld=no
16260  ;;
16261esac
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16264$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16265with_gnu_ld=$acl_cv_prog_gnu_ld
16266
16267
16268
16269
16270                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16271$as_echo_n "checking for shared library run path origin... " >&6; }
16272if ${acl_cv_rpath+:} false; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275
16276    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16277    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16278    . ./conftest.sh
16279    rm -f ./conftest.sh
16280    acl_cv_rpath=done
16281
16282fi
16283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16284$as_echo "$acl_cv_rpath" >&6; }
16285  wl="$acl_cv_wl"
16286  acl_libext="$acl_cv_libext"
16287  acl_shlibext="$acl_cv_shlibext"
16288  acl_libname_spec="$acl_cv_libname_spec"
16289  acl_library_names_spec="$acl_cv_library_names_spec"
16290  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16291  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16292  acl_hardcode_direct="$acl_cv_hardcode_direct"
16293  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16294    # Check whether --enable-rpath was given.
16295if test "${enable_rpath+set}" = set; then :
16296  enableval=$enable_rpath; :
16297else
16298  enable_rpath=yes
16299fi
16300
16301
16302
16303
16304  acl_libdirstem=lib
16305  acl_libdirstem2=
16306  case "$host_os" in
16307    solaris*)
16308                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16309$as_echo_n "checking for 64-bit host... " >&6; }
16310if ${gl_cv_solaris_64bit+:} false; then :
16311  $as_echo_n "(cached) " >&6
16312else
16313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h.  */
16315
16316#ifdef _LP64
16317sixtyfour bits
16318#endif
16319
16320_ACEOF
16321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16322  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16323  gl_cv_solaris_64bit=yes
16324else
16325  gl_cv_solaris_64bit=no
16326fi
16327rm -f conftest*
16328
16329
16330fi
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16332$as_echo "$gl_cv_solaris_64bit" >&6; }
16333      if test $gl_cv_solaris_64bit = yes; then
16334        acl_libdirstem=lib/64
16335        case "$host_cpu" in
16336          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16337          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16338        esac
16339      fi
16340      ;;
16341    *)
16342      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16343      if test -n "$searchpath"; then
16344        acl_save_IFS="${IFS= 	}"; IFS=":"
16345        for searchdir in $searchpath; do
16346          if test -d "$searchdir"; then
16347            case "$searchdir" in
16348              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16349              */../ | */.. )
16350                # Better ignore directories of this form. They are misleading.
16351                ;;
16352              *) searchdir=`cd "$searchdir" && pwd`
16353                 case "$searchdir" in
16354                   */lib64 ) acl_libdirstem=lib64 ;;
16355                 esac ;;
16356            esac
16357          fi
16358        done
16359        IFS="$acl_save_IFS"
16360      fi
16361      ;;
16362  esac
16363  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376    use_additional=yes
16377
16378  acl_save_prefix="$prefix"
16379  prefix="$acl_final_prefix"
16380  acl_save_exec_prefix="$exec_prefix"
16381  exec_prefix="$acl_final_exec_prefix"
16382
16383    eval additional_includedir=\"$includedir\"
16384    eval additional_libdir=\"$libdir\"
16385
16386  exec_prefix="$acl_save_exec_prefix"
16387  prefix="$acl_save_prefix"
16388
16389
16390# Check whether --with-libiconv-prefix was given.
16391if test "${with_libiconv_prefix+set}" = set; then :
16392  withval=$with_libiconv_prefix;
16393    if test "X$withval" = "Xno"; then
16394      use_additional=no
16395    else
16396      if test "X$withval" = "X"; then
16397
16398  acl_save_prefix="$prefix"
16399  prefix="$acl_final_prefix"
16400  acl_save_exec_prefix="$exec_prefix"
16401  exec_prefix="$acl_final_exec_prefix"
16402
16403          eval additional_includedir=\"$includedir\"
16404          eval additional_libdir=\"$libdir\"
16405
16406  exec_prefix="$acl_save_exec_prefix"
16407  prefix="$acl_save_prefix"
16408
16409      else
16410        additional_includedir="$withval/include"
16411        additional_libdir="$withval/$acl_libdirstem"
16412        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16413           && ! test -d "$withval/$acl_libdirstem"; then
16414          additional_libdir="$withval/$acl_libdirstem2"
16415        fi
16416      fi
16417    fi
16418
16419fi
16420
16421      LIBICONV=
16422  LTLIBICONV=
16423  INCICONV=
16424  LIBICONV_PREFIX=
16425      HAVE_LIBICONV=
16426  rpathdirs=
16427  ltrpathdirs=
16428  names_already_handled=
16429  names_next_round='iconv '
16430  while test -n "$names_next_round"; do
16431    names_this_round="$names_next_round"
16432    names_next_round=
16433    for name in $names_this_round; do
16434      already_handled=
16435      for n in $names_already_handled; do
16436        if test "$n" = "$name"; then
16437          already_handled=yes
16438          break
16439        fi
16440      done
16441      if test -z "$already_handled"; then
16442        names_already_handled="$names_already_handled $name"
16443                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16444        eval value=\"\$HAVE_LIB$uppername\"
16445        if test -n "$value"; then
16446          if test "$value" = yes; then
16447            eval value=\"\$LIB$uppername\"
16448            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16449            eval value=\"\$LTLIB$uppername\"
16450            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16451          else
16452                                    :
16453          fi
16454        else
16455                              found_dir=
16456          found_la=
16457          found_so=
16458          found_a=
16459          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16460          if test -n "$acl_shlibext"; then
16461            shrext=".$acl_shlibext"             # typically: shrext=.so
16462          else
16463            shrext=
16464          fi
16465          if test $use_additional = yes; then
16466            dir="$additional_libdir"
16467                                    if test -n "$acl_shlibext"; then
16468              if test -f "$dir/$libname$shrext"; then
16469                found_dir="$dir"
16470                found_so="$dir/$libname$shrext"
16471              else
16472                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16473                  ver=`(cd "$dir" && \
16474                        for f in "$libname$shrext".*; do echo "$f"; done \
16475                        | sed -e "s,^$libname$shrext\\\\.,," \
16476                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16477                        | sed 1q ) 2>/dev/null`
16478                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16479                    found_dir="$dir"
16480                    found_so="$dir/$libname$shrext.$ver"
16481                  fi
16482                else
16483                  eval library_names=\"$acl_library_names_spec\"
16484                  for f in $library_names; do
16485                    if test -f "$dir/$f"; then
16486                      found_dir="$dir"
16487                      found_so="$dir/$f"
16488                      break
16489                    fi
16490                  done
16491                fi
16492              fi
16493            fi
16494                        if test "X$found_dir" = "X"; then
16495              if test -f "$dir/$libname.$acl_libext"; then
16496                found_dir="$dir"
16497                found_a="$dir/$libname.$acl_libext"
16498              fi
16499            fi
16500            if test "X$found_dir" != "X"; then
16501              if test -f "$dir/$libname.la"; then
16502                found_la="$dir/$libname.la"
16503              fi
16504            fi
16505          fi
16506          if test "X$found_dir" = "X"; then
16507            for x in $LDFLAGS $LTLIBICONV; do
16508
16509  acl_save_prefix="$prefix"
16510  prefix="$acl_final_prefix"
16511  acl_save_exec_prefix="$exec_prefix"
16512  exec_prefix="$acl_final_exec_prefix"
16513  eval x=\"$x\"
16514  exec_prefix="$acl_save_exec_prefix"
16515  prefix="$acl_save_prefix"
16516
16517              case "$x" in
16518                -L*)
16519                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16520                                    if test -n "$acl_shlibext"; then
16521                    if test -f "$dir/$libname$shrext"; then
16522                      found_dir="$dir"
16523                      found_so="$dir/$libname$shrext"
16524                    else
16525                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16526                        ver=`(cd "$dir" && \
16527                              for f in "$libname$shrext".*; do echo "$f"; done \
16528                              | sed -e "s,^$libname$shrext\\\\.,," \
16529                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16530                              | sed 1q ) 2>/dev/null`
16531                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16532                          found_dir="$dir"
16533                          found_so="$dir/$libname$shrext.$ver"
16534                        fi
16535                      else
16536                        eval library_names=\"$acl_library_names_spec\"
16537                        for f in $library_names; do
16538                          if test -f "$dir/$f"; then
16539                            found_dir="$dir"
16540                            found_so="$dir/$f"
16541                            break
16542                          fi
16543                        done
16544                      fi
16545                    fi
16546                  fi
16547                                    if test "X$found_dir" = "X"; then
16548                    if test -f "$dir/$libname.$acl_libext"; then
16549                      found_dir="$dir"
16550                      found_a="$dir/$libname.$acl_libext"
16551                    fi
16552                  fi
16553                  if test "X$found_dir" != "X"; then
16554                    if test -f "$dir/$libname.la"; then
16555                      found_la="$dir/$libname.la"
16556                    fi
16557                  fi
16558                  ;;
16559              esac
16560              if test "X$found_dir" != "X"; then
16561                break
16562              fi
16563            done
16564          fi
16565          if test "X$found_dir" != "X"; then
16566                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16567            if test "X$found_so" != "X"; then
16568                                                        if test "$enable_rpath" = no \
16569                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16570                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16571                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16572              else
16573                                                                                haveit=
16574                for x in $ltrpathdirs; do
16575                  if test "X$x" = "X$found_dir"; then
16576                    haveit=yes
16577                    break
16578                  fi
16579                done
16580                if test -z "$haveit"; then
16581                  ltrpathdirs="$ltrpathdirs $found_dir"
16582                fi
16583                                if test "$acl_hardcode_direct" = yes; then
16584                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16585                else
16586                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16587                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16588                                                            haveit=
16589                    for x in $rpathdirs; do
16590                      if test "X$x" = "X$found_dir"; then
16591                        haveit=yes
16592                        break
16593                      fi
16594                    done
16595                    if test -z "$haveit"; then
16596                      rpathdirs="$rpathdirs $found_dir"
16597                    fi
16598                  else
16599                                                                                haveit=
16600                    for x in $LDFLAGS $LIBICONV; do
16601
16602  acl_save_prefix="$prefix"
16603  prefix="$acl_final_prefix"
16604  acl_save_exec_prefix="$exec_prefix"
16605  exec_prefix="$acl_final_exec_prefix"
16606  eval x=\"$x\"
16607  exec_prefix="$acl_save_exec_prefix"
16608  prefix="$acl_save_prefix"
16609
16610                      if test "X$x" = "X-L$found_dir"; then
16611                        haveit=yes
16612                        break
16613                      fi
16614                    done
16615                    if test -z "$haveit"; then
16616                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16617                    fi
16618                    if test "$acl_hardcode_minus_L" != no; then
16619                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16620                    else
16621                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16622                    fi
16623                  fi
16624                fi
16625              fi
16626            else
16627              if test "X$found_a" != "X"; then
16628                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16629              else
16630                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16631              fi
16632            fi
16633                        additional_includedir=
16634            case "$found_dir" in
16635              */$acl_libdirstem | */$acl_libdirstem/)
16636                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16637                if test "$name" = 'iconv'; then
16638                  LIBICONV_PREFIX="$basedir"
16639                fi
16640                additional_includedir="$basedir/include"
16641                ;;
16642              */$acl_libdirstem2 | */$acl_libdirstem2/)
16643                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16644                if test "$name" = 'iconv'; then
16645                  LIBICONV_PREFIX="$basedir"
16646                fi
16647                additional_includedir="$basedir/include"
16648                ;;
16649            esac
16650            if test "X$additional_includedir" != "X"; then
16651                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16652                haveit=
16653                if test "X$additional_includedir" = "X/usr/local/include"; then
16654                  if test -n "$GCC"; then
16655                    case $host_os in
16656                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16657                    esac
16658                  fi
16659                fi
16660                if test -z "$haveit"; then
16661                  for x in $CPPFLAGS $INCICONV; do
16662
16663  acl_save_prefix="$prefix"
16664  prefix="$acl_final_prefix"
16665  acl_save_exec_prefix="$exec_prefix"
16666  exec_prefix="$acl_final_exec_prefix"
16667  eval x=\"$x\"
16668  exec_prefix="$acl_save_exec_prefix"
16669  prefix="$acl_save_prefix"
16670
16671                    if test "X$x" = "X-I$additional_includedir"; then
16672                      haveit=yes
16673                      break
16674                    fi
16675                  done
16676                  if test -z "$haveit"; then
16677                    if test -d "$additional_includedir"; then
16678                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16679                    fi
16680                  fi
16681                fi
16682              fi
16683            fi
16684                        if test -n "$found_la"; then
16685                                                        save_libdir="$libdir"
16686              case "$found_la" in
16687                */* | *\\*) . "$found_la" ;;
16688                *) . "./$found_la" ;;
16689              esac
16690              libdir="$save_libdir"
16691                            for dep in $dependency_libs; do
16692                case "$dep" in
16693                  -L*)
16694                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16695                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16696                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16697                      haveit=
16698                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16699                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16700                        if test -n "$GCC"; then
16701                          case $host_os in
16702                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16703                          esac
16704                        fi
16705                      fi
16706                      if test -z "$haveit"; then
16707                        haveit=
16708                        for x in $LDFLAGS $LIBICONV; do
16709
16710  acl_save_prefix="$prefix"
16711  prefix="$acl_final_prefix"
16712  acl_save_exec_prefix="$exec_prefix"
16713  exec_prefix="$acl_final_exec_prefix"
16714  eval x=\"$x\"
16715  exec_prefix="$acl_save_exec_prefix"
16716  prefix="$acl_save_prefix"
16717
16718                          if test "X$x" = "X-L$additional_libdir"; then
16719                            haveit=yes
16720                            break
16721                          fi
16722                        done
16723                        if test -z "$haveit"; then
16724                          if test -d "$additional_libdir"; then
16725                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16726                          fi
16727                        fi
16728                        haveit=
16729                        for x in $LDFLAGS $LTLIBICONV; do
16730
16731  acl_save_prefix="$prefix"
16732  prefix="$acl_final_prefix"
16733  acl_save_exec_prefix="$exec_prefix"
16734  exec_prefix="$acl_final_exec_prefix"
16735  eval x=\"$x\"
16736  exec_prefix="$acl_save_exec_prefix"
16737  prefix="$acl_save_prefix"
16738
16739                          if test "X$x" = "X-L$additional_libdir"; then
16740                            haveit=yes
16741                            break
16742                          fi
16743                        done
16744                        if test -z "$haveit"; then
16745                          if test -d "$additional_libdir"; then
16746                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16747                          fi
16748                        fi
16749                      fi
16750                    fi
16751                    ;;
16752                  -R*)
16753                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16754                    if test "$enable_rpath" != no; then
16755                                                                  haveit=
16756                      for x in $rpathdirs; do
16757                        if test "X$x" = "X$dir"; then
16758                          haveit=yes
16759                          break
16760                        fi
16761                      done
16762                      if test -z "$haveit"; then
16763                        rpathdirs="$rpathdirs $dir"
16764                      fi
16765                                                                  haveit=
16766                      for x in $ltrpathdirs; do
16767                        if test "X$x" = "X$dir"; then
16768                          haveit=yes
16769                          break
16770                        fi
16771                      done
16772                      if test -z "$haveit"; then
16773                        ltrpathdirs="$ltrpathdirs $dir"
16774                      fi
16775                    fi
16776                    ;;
16777                  -l*)
16778                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16779                    ;;
16780                  *.la)
16781                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16782                    ;;
16783                  *)
16784                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16785                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16786                    ;;
16787                esac
16788              done
16789            fi
16790          else
16791                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16792            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16793          fi
16794        fi
16795      fi
16796    done
16797  done
16798  if test "X$rpathdirs" != "X"; then
16799    if test -n "$acl_hardcode_libdir_separator"; then
16800                        alldirs=
16801      for found_dir in $rpathdirs; do
16802        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16803      done
16804            acl_save_libdir="$libdir"
16805      libdir="$alldirs"
16806      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16807      libdir="$acl_save_libdir"
16808      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16809    else
16810            for found_dir in $rpathdirs; do
16811        acl_save_libdir="$libdir"
16812        libdir="$found_dir"
16813        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16814        libdir="$acl_save_libdir"
16815        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16816      done
16817    fi
16818  fi
16819  if test "X$ltrpathdirs" != "X"; then
16820            for found_dir in $ltrpathdirs; do
16821      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16822    done
16823  fi
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16856$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16857if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16858  $as_echo_n "(cached) " >&6
16859else
16860  gt_save_LIBS="$LIBS"
16861     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16862     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h.  */
16864#include <CoreFoundation/CFPreferences.h>
16865int
16866main ()
16867{
16868CFPreferencesCopyAppValue(NULL, NULL)
16869  ;
16870  return 0;
16871}
16872_ACEOF
16873if ac_fn_c_try_link "$LINENO"; then :
16874  gt_cv_func_CFPreferencesCopyAppValue=yes
16875else
16876  gt_cv_func_CFPreferencesCopyAppValue=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext \
16879    conftest$ac_exeext conftest.$ac_ext
16880     LIBS="$gt_save_LIBS"
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16883$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16884  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16885
16886$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16887
16888  fi
16889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16890$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16891if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16892  $as_echo_n "(cached) " >&6
16893else
16894  gt_save_LIBS="$LIBS"
16895     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897/* end confdefs.h.  */
16898#include <CoreFoundation/CFLocale.h>
16899int
16900main ()
16901{
16902CFLocaleCopyCurrent();
16903  ;
16904  return 0;
16905}
16906_ACEOF
16907if ac_fn_c_try_link "$LINENO"; then :
16908  gt_cv_func_CFLocaleCopyCurrent=yes
16909else
16910  gt_cv_func_CFLocaleCopyCurrent=no
16911fi
16912rm -f core conftest.err conftest.$ac_objext \
16913    conftest$ac_exeext conftest.$ac_ext
16914     LIBS="$gt_save_LIBS"
16915fi
16916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16917$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16918  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16919
16920$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16921
16922  fi
16923  INTL_MACOSX_LIBS=
16924  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16925    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16926  fi
16927
16928
16929
16930
16931
16932
16933  LIBINTL=
16934  LTLIBINTL=
16935  POSUB=
16936
16937    case " $gt_needs " in
16938    *" need-formatstring-macros "*) gt_api_version=3 ;;
16939    *" need-ngettext "*) gt_api_version=2 ;;
16940    *) gt_api_version=1 ;;
16941  esac
16942  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16943  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16944
16945    if test "$USE_NLS" = "yes"; then
16946    gt_use_preinstalled_gnugettext=no
16947
16948
16949        if test $gt_api_version -ge 3; then
16950          gt_revision_test_code='
16951#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16952#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16953#endif
16954typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16955'
16956        else
16957          gt_revision_test_code=
16958        fi
16959        if test $gt_api_version -ge 2; then
16960          gt_expression_test_code=' + * ngettext ("", "", 0)'
16961        else
16962          gt_expression_test_code=
16963        fi
16964
16965        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16966$as_echo_n "checking for GNU gettext in libc... " >&6; }
16967if eval \${$gt_func_gnugettext_libc+:} false; then :
16968  $as_echo_n "(cached) " >&6
16969else
16970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h.  */
16972
16973#include <libintl.h>
16974$gt_revision_test_code
16975extern int _nl_msg_cat_cntr;
16976extern int *_nl_domain_bindings;
16977
16978int
16979main ()
16980{
16981
16982bindtextdomain ("", "");
16983return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16984
16985  ;
16986  return 0;
16987}
16988_ACEOF
16989if ac_fn_c_try_link "$LINENO"; then :
16990  eval "$gt_func_gnugettext_libc=yes"
16991else
16992  eval "$gt_func_gnugettext_libc=no"
16993fi
16994rm -f core conftest.err conftest.$ac_objext \
16995    conftest$ac_exeext conftest.$ac_ext
16996fi
16997eval ac_res=\$$gt_func_gnugettext_libc
16998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16999$as_echo "$ac_res" >&6; }
17000
17001        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17002
17003
17004
17005
17006
17007          am_save_CPPFLAGS="$CPPFLAGS"
17008
17009  for element in $INCICONV; do
17010    haveit=
17011    for x in $CPPFLAGS; do
17012
17013  acl_save_prefix="$prefix"
17014  prefix="$acl_final_prefix"
17015  acl_save_exec_prefix="$exec_prefix"
17016  exec_prefix="$acl_final_exec_prefix"
17017  eval x=\"$x\"
17018  exec_prefix="$acl_save_exec_prefix"
17019  prefix="$acl_save_prefix"
17020
17021      if test "X$x" = "X$element"; then
17022        haveit=yes
17023        break
17024      fi
17025    done
17026    if test -z "$haveit"; then
17027      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17028    fi
17029  done
17030
17031
17032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17033$as_echo_n "checking for iconv... " >&6; }
17034if ${am_cv_func_iconv+:} false; then :
17035  $as_echo_n "(cached) " >&6
17036else
17037
17038    am_cv_func_iconv="no, consider installing GNU libiconv"
17039    am_cv_lib_iconv=no
17040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041/* end confdefs.h.  */
17042
17043#include <stdlib.h>
17044#include <iconv.h>
17045
17046int
17047main ()
17048{
17049iconv_t cd = iconv_open("","");
17050           iconv(cd,NULL,NULL,NULL,NULL);
17051           iconv_close(cd);
17052  ;
17053  return 0;
17054}
17055_ACEOF
17056if ac_fn_c_try_link "$LINENO"; then :
17057  am_cv_func_iconv=yes
17058fi
17059rm -f core conftest.err conftest.$ac_objext \
17060    conftest$ac_exeext conftest.$ac_ext
17061    if test "$am_cv_func_iconv" != yes; then
17062      am_save_LIBS="$LIBS"
17063      LIBS="$LIBS $LIBICONV"
17064      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066
17067#include <stdlib.h>
17068#include <iconv.h>
17069
17070int
17071main ()
17072{
17073iconv_t cd = iconv_open("","");
17074             iconv(cd,NULL,NULL,NULL,NULL);
17075             iconv_close(cd);
17076  ;
17077  return 0;
17078}
17079_ACEOF
17080if ac_fn_c_try_link "$LINENO"; then :
17081  am_cv_lib_iconv=yes
17082        am_cv_func_iconv=yes
17083fi
17084rm -f core conftest.err conftest.$ac_objext \
17085    conftest$ac_exeext conftest.$ac_ext
17086      LIBS="$am_save_LIBS"
17087    fi
17088
17089fi
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17091$as_echo "$am_cv_func_iconv" >&6; }
17092  if test "$am_cv_func_iconv" = yes; then
17093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17094$as_echo_n "checking for working iconv... " >&6; }
17095if ${am_cv_func_iconv_works+:} false; then :
17096  $as_echo_n "(cached) " >&6
17097else
17098
17099                  am_save_LIBS="$LIBS"
17100      if test $am_cv_lib_iconv = yes; then
17101        LIBS="$LIBS $LIBICONV"
17102      fi
17103      am_cv_func_iconv_works=no
17104      for ac_iconv_const in '' 'const'; do
17105        if test "$cross_compiling" = yes; then :
17106  case "$host_os" in
17107             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17108             *)            am_cv_func_iconv_works="guessing yes" ;;
17109           esac
17110else
17111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h.  */
17113
17114#include <iconv.h>
17115#include <string.h>
17116
17117#ifndef ICONV_CONST
17118# define ICONV_CONST $ac_iconv_const
17119#endif
17120
17121int
17122main ()
17123{
17124int result = 0;
17125  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17126     returns.  */
17127  {
17128    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17129    if (cd_utf8_to_88591 != (iconv_t)(-1))
17130      {
17131        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17132        char buf[10];
17133        ICONV_CONST char *inptr = input;
17134        size_t inbytesleft = strlen (input);
17135        char *outptr = buf;
17136        size_t outbytesleft = sizeof (buf);
17137        size_t res = iconv (cd_utf8_to_88591,
17138                            &inptr, &inbytesleft,
17139                            &outptr, &outbytesleft);
17140        if (res == 0)
17141          result |= 1;
17142        iconv_close (cd_utf8_to_88591);
17143      }
17144  }
17145  /* Test against Solaris 10 bug: Failures are not distinguishable from
17146     successful returns.  */
17147  {
17148    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17149    if (cd_ascii_to_88591 != (iconv_t)(-1))
17150      {
17151        static ICONV_CONST char input[] = "\263";
17152        char buf[10];
17153        ICONV_CONST char *inptr = input;
17154        size_t inbytesleft = strlen (input);
17155        char *outptr = buf;
17156        size_t outbytesleft = sizeof (buf);
17157        size_t res = iconv (cd_ascii_to_88591,
17158                            &inptr, &inbytesleft,
17159                            &outptr, &outbytesleft);
17160        if (res == 0)
17161          result |= 2;
17162        iconv_close (cd_ascii_to_88591);
17163      }
17164  }
17165  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
17166  {
17167    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17168    if (cd_88591_to_utf8 != (iconv_t)(-1))
17169      {
17170        static ICONV_CONST char input[] = "\304";
17171        static char buf[2] = { (char)0xDE, (char)0xAD };
17172        ICONV_CONST char *inptr = input;
17173        size_t inbytesleft = 1;
17174        char *outptr = buf;
17175        size_t outbytesleft = 1;
17176        size_t res = iconv (cd_88591_to_utf8,
17177                            &inptr, &inbytesleft,
17178                            &outptr, &outbytesleft);
17179        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17180          result |= 4;
17181        iconv_close (cd_88591_to_utf8);
17182      }
17183  }
17184#if 0 /* This bug could be worked around by the caller.  */
17185  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17186  {
17187    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17188    if (cd_88591_to_utf8 != (iconv_t)(-1))
17189      {
17190        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17191        char buf[50];
17192        ICONV_CONST char *inptr = input;
17193        size_t inbytesleft = strlen (input);
17194        char *outptr = buf;
17195        size_t outbytesleft = sizeof (buf);
17196        size_t res = iconv (cd_88591_to_utf8,
17197                            &inptr, &inbytesleft,
17198                            &outptr, &outbytesleft);
17199        if ((int)res > 0)
17200          result |= 8;
17201        iconv_close (cd_88591_to_utf8);
17202      }
17203  }
17204#endif
17205  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17206     provided.  */
17207  if (/* Try standardized names.  */
17208      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17209      /* Try IRIX, OSF/1 names.  */
17210      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17211      /* Try AIX names.  */
17212      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17213      /* Try HP-UX names.  */
17214      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17215    result |= 16;
17216  return result;
17217
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222if ac_fn_c_try_run "$LINENO"; then :
17223  am_cv_func_iconv_works=yes
17224fi
17225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17226  conftest.$ac_objext conftest.beam conftest.$ac_ext
17227fi
17228
17229        test "$am_cv_func_iconv_works" = no || break
17230      done
17231      LIBS="$am_save_LIBS"
17232
17233fi
17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17235$as_echo "$am_cv_func_iconv_works" >&6; }
17236    case "$am_cv_func_iconv_works" in
17237      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17238      *)   am_func_iconv=yes ;;
17239    esac
17240  else
17241    am_func_iconv=no am_cv_lib_iconv=no
17242  fi
17243  if test "$am_func_iconv" = yes; then
17244
17245$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17246
17247  fi
17248  if test "$am_cv_lib_iconv" = yes; then
17249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17250$as_echo_n "checking how to link with libiconv... " >&6; }
17251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17252$as_echo "$LIBICONV" >&6; }
17253  else
17254            CPPFLAGS="$am_save_CPPFLAGS"
17255    LIBICONV=
17256    LTLIBICONV=
17257  fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269    use_additional=yes
17270
17271  acl_save_prefix="$prefix"
17272  prefix="$acl_final_prefix"
17273  acl_save_exec_prefix="$exec_prefix"
17274  exec_prefix="$acl_final_exec_prefix"
17275
17276    eval additional_includedir=\"$includedir\"
17277    eval additional_libdir=\"$libdir\"
17278
17279  exec_prefix="$acl_save_exec_prefix"
17280  prefix="$acl_save_prefix"
17281
17282
17283# Check whether --with-libintl-prefix was given.
17284if test "${with_libintl_prefix+set}" = set; then :
17285  withval=$with_libintl_prefix;
17286    if test "X$withval" = "Xno"; then
17287      use_additional=no
17288    else
17289      if test "X$withval" = "X"; then
17290
17291  acl_save_prefix="$prefix"
17292  prefix="$acl_final_prefix"
17293  acl_save_exec_prefix="$exec_prefix"
17294  exec_prefix="$acl_final_exec_prefix"
17295
17296          eval additional_includedir=\"$includedir\"
17297          eval additional_libdir=\"$libdir\"
17298
17299  exec_prefix="$acl_save_exec_prefix"
17300  prefix="$acl_save_prefix"
17301
17302      else
17303        additional_includedir="$withval/include"
17304        additional_libdir="$withval/$acl_libdirstem"
17305        if test "$acl_libdirstem2" != "$acl_libdirstem" \
17306           && ! test -d "$withval/$acl_libdirstem"; then
17307          additional_libdir="$withval/$acl_libdirstem2"
17308        fi
17309      fi
17310    fi
17311
17312fi
17313
17314      LIBINTL=
17315  LTLIBINTL=
17316  INCINTL=
17317  LIBINTL_PREFIX=
17318      HAVE_LIBINTL=
17319  rpathdirs=
17320  ltrpathdirs=
17321  names_already_handled=
17322  names_next_round='intl '
17323  while test -n "$names_next_round"; do
17324    names_this_round="$names_next_round"
17325    names_next_round=
17326    for name in $names_this_round; do
17327      already_handled=
17328      for n in $names_already_handled; do
17329        if test "$n" = "$name"; then
17330          already_handled=yes
17331          break
17332        fi
17333      done
17334      if test -z "$already_handled"; then
17335        names_already_handled="$names_already_handled $name"
17336                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17337        eval value=\"\$HAVE_LIB$uppername\"
17338        if test -n "$value"; then
17339          if test "$value" = yes; then
17340            eval value=\"\$LIB$uppername\"
17341            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17342            eval value=\"\$LTLIB$uppername\"
17343            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17344          else
17345                                    :
17346          fi
17347        else
17348                              found_dir=
17349          found_la=
17350          found_so=
17351          found_a=
17352          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17353          if test -n "$acl_shlibext"; then
17354            shrext=".$acl_shlibext"             # typically: shrext=.so
17355          else
17356            shrext=
17357          fi
17358          if test $use_additional = yes; then
17359            dir="$additional_libdir"
17360                                    if test -n "$acl_shlibext"; then
17361              if test -f "$dir/$libname$shrext"; then
17362                found_dir="$dir"
17363                found_so="$dir/$libname$shrext"
17364              else
17365                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17366                  ver=`(cd "$dir" && \
17367                        for f in "$libname$shrext".*; do echo "$f"; done \
17368                        | sed -e "s,^$libname$shrext\\\\.,," \
17369                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17370                        | sed 1q ) 2>/dev/null`
17371                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17372                    found_dir="$dir"
17373                    found_so="$dir/$libname$shrext.$ver"
17374                  fi
17375                else
17376                  eval library_names=\"$acl_library_names_spec\"
17377                  for f in $library_names; do
17378                    if test -f "$dir/$f"; then
17379                      found_dir="$dir"
17380                      found_so="$dir/$f"
17381                      break
17382                    fi
17383                  done
17384                fi
17385              fi
17386            fi
17387                        if test "X$found_dir" = "X"; then
17388              if test -f "$dir/$libname.$acl_libext"; then
17389                found_dir="$dir"
17390                found_a="$dir/$libname.$acl_libext"
17391              fi
17392            fi
17393            if test "X$found_dir" != "X"; then
17394              if test -f "$dir/$libname.la"; then
17395                found_la="$dir/$libname.la"
17396              fi
17397            fi
17398          fi
17399          if test "X$found_dir" = "X"; then
17400            for x in $LDFLAGS $LTLIBINTL; do
17401
17402  acl_save_prefix="$prefix"
17403  prefix="$acl_final_prefix"
17404  acl_save_exec_prefix="$exec_prefix"
17405  exec_prefix="$acl_final_exec_prefix"
17406  eval x=\"$x\"
17407  exec_prefix="$acl_save_exec_prefix"
17408  prefix="$acl_save_prefix"
17409
17410              case "$x" in
17411                -L*)
17412                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17413                                    if test -n "$acl_shlibext"; then
17414                    if test -f "$dir/$libname$shrext"; then
17415                      found_dir="$dir"
17416                      found_so="$dir/$libname$shrext"
17417                    else
17418                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17419                        ver=`(cd "$dir" && \
17420                              for f in "$libname$shrext".*; do echo "$f"; done \
17421                              | sed -e "s,^$libname$shrext\\\\.,," \
17422                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17423                              | sed 1q ) 2>/dev/null`
17424                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17425                          found_dir="$dir"
17426                          found_so="$dir/$libname$shrext.$ver"
17427                        fi
17428                      else
17429                        eval library_names=\"$acl_library_names_spec\"
17430                        for f in $library_names; do
17431                          if test -f "$dir/$f"; then
17432                            found_dir="$dir"
17433                            found_so="$dir/$f"
17434                            break
17435                          fi
17436                        done
17437                      fi
17438                    fi
17439                  fi
17440                                    if test "X$found_dir" = "X"; then
17441                    if test -f "$dir/$libname.$acl_libext"; then
17442                      found_dir="$dir"
17443                      found_a="$dir/$libname.$acl_libext"
17444                    fi
17445                  fi
17446                  if test "X$found_dir" != "X"; then
17447                    if test -f "$dir/$libname.la"; then
17448                      found_la="$dir/$libname.la"
17449                    fi
17450                  fi
17451                  ;;
17452              esac
17453              if test "X$found_dir" != "X"; then
17454                break
17455              fi
17456            done
17457          fi
17458          if test "X$found_dir" != "X"; then
17459                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17460            if test "X$found_so" != "X"; then
17461                                                        if test "$enable_rpath" = no \
17462                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17463                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17464                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17465              else
17466                                                                                haveit=
17467                for x in $ltrpathdirs; do
17468                  if test "X$x" = "X$found_dir"; then
17469                    haveit=yes
17470                    break
17471                  fi
17472                done
17473                if test -z "$haveit"; then
17474                  ltrpathdirs="$ltrpathdirs $found_dir"
17475                fi
17476                                if test "$acl_hardcode_direct" = yes; then
17477                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17478                else
17479                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17480                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17481                                                            haveit=
17482                    for x in $rpathdirs; do
17483                      if test "X$x" = "X$found_dir"; then
17484                        haveit=yes
17485                        break
17486                      fi
17487                    done
17488                    if test -z "$haveit"; then
17489                      rpathdirs="$rpathdirs $found_dir"
17490                    fi
17491                  else
17492                                                                                haveit=
17493                    for x in $LDFLAGS $LIBINTL; do
17494
17495  acl_save_prefix="$prefix"
17496  prefix="$acl_final_prefix"
17497  acl_save_exec_prefix="$exec_prefix"
17498  exec_prefix="$acl_final_exec_prefix"
17499  eval x=\"$x\"
17500  exec_prefix="$acl_save_exec_prefix"
17501  prefix="$acl_save_prefix"
17502
17503                      if test "X$x" = "X-L$found_dir"; then
17504                        haveit=yes
17505                        break
17506                      fi
17507                    done
17508                    if test -z "$haveit"; then
17509                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17510                    fi
17511                    if test "$acl_hardcode_minus_L" != no; then
17512                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17513                    else
17514                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17515                    fi
17516                  fi
17517                fi
17518              fi
17519            else
17520              if test "X$found_a" != "X"; then
17521                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17522              else
17523                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17524              fi
17525            fi
17526                        additional_includedir=
17527            case "$found_dir" in
17528              */$acl_libdirstem | */$acl_libdirstem/)
17529                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17530                if test "$name" = 'intl'; then
17531                  LIBINTL_PREFIX="$basedir"
17532                fi
17533                additional_includedir="$basedir/include"
17534                ;;
17535              */$acl_libdirstem2 | */$acl_libdirstem2/)
17536                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17537                if test "$name" = 'intl'; then
17538                  LIBINTL_PREFIX="$basedir"
17539                fi
17540                additional_includedir="$basedir/include"
17541                ;;
17542            esac
17543            if test "X$additional_includedir" != "X"; then
17544                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17545                haveit=
17546                if test "X$additional_includedir" = "X/usr/local/include"; then
17547                  if test -n "$GCC"; then
17548                    case $host_os in
17549                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17550                    esac
17551                  fi
17552                fi
17553                if test -z "$haveit"; then
17554                  for x in $CPPFLAGS $INCINTL; do
17555
17556  acl_save_prefix="$prefix"
17557  prefix="$acl_final_prefix"
17558  acl_save_exec_prefix="$exec_prefix"
17559  exec_prefix="$acl_final_exec_prefix"
17560  eval x=\"$x\"
17561  exec_prefix="$acl_save_exec_prefix"
17562  prefix="$acl_save_prefix"
17563
17564                    if test "X$x" = "X-I$additional_includedir"; then
17565                      haveit=yes
17566                      break
17567                    fi
17568                  done
17569                  if test -z "$haveit"; then
17570                    if test -d "$additional_includedir"; then
17571                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17572                    fi
17573                  fi
17574                fi
17575              fi
17576            fi
17577                        if test -n "$found_la"; then
17578                                                        save_libdir="$libdir"
17579              case "$found_la" in
17580                */* | *\\*) . "$found_la" ;;
17581                *) . "./$found_la" ;;
17582              esac
17583              libdir="$save_libdir"
17584                            for dep in $dependency_libs; do
17585                case "$dep" in
17586                  -L*)
17587                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17588                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17589                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17590                      haveit=
17591                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17592                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17593                        if test -n "$GCC"; then
17594                          case $host_os in
17595                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17596                          esac
17597                        fi
17598                      fi
17599                      if test -z "$haveit"; then
17600                        haveit=
17601                        for x in $LDFLAGS $LIBINTL; do
17602
17603  acl_save_prefix="$prefix"
17604  prefix="$acl_final_prefix"
17605  acl_save_exec_prefix="$exec_prefix"
17606  exec_prefix="$acl_final_exec_prefix"
17607  eval x=\"$x\"
17608  exec_prefix="$acl_save_exec_prefix"
17609  prefix="$acl_save_prefix"
17610
17611                          if test "X$x" = "X-L$additional_libdir"; then
17612                            haveit=yes
17613                            break
17614                          fi
17615                        done
17616                        if test -z "$haveit"; then
17617                          if test -d "$additional_libdir"; then
17618                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17619                          fi
17620                        fi
17621                        haveit=
17622                        for x in $LDFLAGS $LTLIBINTL; do
17623
17624  acl_save_prefix="$prefix"
17625  prefix="$acl_final_prefix"
17626  acl_save_exec_prefix="$exec_prefix"
17627  exec_prefix="$acl_final_exec_prefix"
17628  eval x=\"$x\"
17629  exec_prefix="$acl_save_exec_prefix"
17630  prefix="$acl_save_prefix"
17631
17632                          if test "X$x" = "X-L$additional_libdir"; then
17633                            haveit=yes
17634                            break
17635                          fi
17636                        done
17637                        if test -z "$haveit"; then
17638                          if test -d "$additional_libdir"; then
17639                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17640                          fi
17641                        fi
17642                      fi
17643                    fi
17644                    ;;
17645                  -R*)
17646                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17647                    if test "$enable_rpath" != no; then
17648                                                                  haveit=
17649                      for x in $rpathdirs; do
17650                        if test "X$x" = "X$dir"; then
17651                          haveit=yes
17652                          break
17653                        fi
17654                      done
17655                      if test -z "$haveit"; then
17656                        rpathdirs="$rpathdirs $dir"
17657                      fi
17658                                                                  haveit=
17659                      for x in $ltrpathdirs; do
17660                        if test "X$x" = "X$dir"; then
17661                          haveit=yes
17662                          break
17663                        fi
17664                      done
17665                      if test -z "$haveit"; then
17666                        ltrpathdirs="$ltrpathdirs $dir"
17667                      fi
17668                    fi
17669                    ;;
17670                  -l*)
17671                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17672                    ;;
17673                  *.la)
17674                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17675                    ;;
17676                  *)
17677                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17678                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17679                    ;;
17680                esac
17681              done
17682            fi
17683          else
17684                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17685            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17686          fi
17687        fi
17688      fi
17689    done
17690  done
17691  if test "X$rpathdirs" != "X"; then
17692    if test -n "$acl_hardcode_libdir_separator"; then
17693                        alldirs=
17694      for found_dir in $rpathdirs; do
17695        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17696      done
17697            acl_save_libdir="$libdir"
17698      libdir="$alldirs"
17699      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17700      libdir="$acl_save_libdir"
17701      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17702    else
17703            for found_dir in $rpathdirs; do
17704        acl_save_libdir="$libdir"
17705        libdir="$found_dir"
17706        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17707        libdir="$acl_save_libdir"
17708        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17709      done
17710    fi
17711  fi
17712  if test "X$ltrpathdirs" != "X"; then
17713            for found_dir in $ltrpathdirs; do
17714      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17715    done
17716  fi
17717
17718
17719
17720
17721
17722
17723          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17724$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17725if eval \${$gt_func_gnugettext_libintl+:} false; then :
17726  $as_echo_n "(cached) " >&6
17727else
17728  gt_save_CPPFLAGS="$CPPFLAGS"
17729            CPPFLAGS="$CPPFLAGS $INCINTL"
17730            gt_save_LIBS="$LIBS"
17731            LIBS="$LIBS $LIBINTL"
17732                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733/* end confdefs.h.  */
17734
17735#include <libintl.h>
17736$gt_revision_test_code
17737extern int _nl_msg_cat_cntr;
17738extern
17739#ifdef __cplusplus
17740"C"
17741#endif
17742const char *_nl_expand_alias (const char *);
17743
17744int
17745main ()
17746{
17747
17748bindtextdomain ("", "");
17749return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17750
17751  ;
17752  return 0;
17753}
17754_ACEOF
17755if ac_fn_c_try_link "$LINENO"; then :
17756  eval "$gt_func_gnugettext_libintl=yes"
17757else
17758  eval "$gt_func_gnugettext_libintl=no"
17759fi
17760rm -f core conftest.err conftest.$ac_objext \
17761    conftest$ac_exeext conftest.$ac_ext
17762                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17763              LIBS="$LIBS $LIBICONV"
17764              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765/* end confdefs.h.  */
17766
17767#include <libintl.h>
17768$gt_revision_test_code
17769extern int _nl_msg_cat_cntr;
17770extern
17771#ifdef __cplusplus
17772"C"
17773#endif
17774const char *_nl_expand_alias (const char *);
17775
17776int
17777main ()
17778{
17779
17780bindtextdomain ("", "");
17781return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17782
17783  ;
17784  return 0;
17785}
17786_ACEOF
17787if ac_fn_c_try_link "$LINENO"; then :
17788  LIBINTL="$LIBINTL $LIBICONV"
17789                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17790                 eval "$gt_func_gnugettext_libintl=yes"
17791
17792fi
17793rm -f core conftest.err conftest.$ac_objext \
17794    conftest$ac_exeext conftest.$ac_ext
17795            fi
17796            CPPFLAGS="$gt_save_CPPFLAGS"
17797            LIBS="$gt_save_LIBS"
17798fi
17799eval ac_res=\$$gt_func_gnugettext_libintl
17800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17801$as_echo "$ac_res" >&6; }
17802        fi
17803
17804                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17805           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17806                && test "$PACKAGE" != gettext-runtime \
17807                && test "$PACKAGE" != gettext-tools; }; then
17808          gt_use_preinstalled_gnugettext=yes
17809        else
17810                    LIBINTL=
17811          LTLIBINTL=
17812          INCINTL=
17813        fi
17814
17815
17816
17817    if test -n "$INTL_MACOSX_LIBS"; then
17818      if test "$gt_use_preinstalled_gnugettext" = "yes" \
17819         || test "$nls_cv_use_gnu_gettext" = "yes"; then
17820                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17821        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17822      fi
17823    fi
17824
17825    if test "$gt_use_preinstalled_gnugettext" = "yes" \
17826       || test "$nls_cv_use_gnu_gettext" = "yes"; then
17827
17828$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17829
17830    else
17831      USE_NLS=no
17832    fi
17833  fi
17834
17835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17836$as_echo_n "checking whether to use NLS... " >&6; }
17837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17838$as_echo "$USE_NLS" >&6; }
17839  if test "$USE_NLS" = "yes"; then
17840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17841$as_echo_n "checking where the gettext function comes from... " >&6; }
17842    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17843      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17844        gt_source="external libintl"
17845      else
17846        gt_source="libc"
17847      fi
17848    else
17849      gt_source="included intl directory"
17850    fi
17851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17852$as_echo "$gt_source" >&6; }
17853  fi
17854
17855  if test "$USE_NLS" = "yes"; then
17856
17857    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17858      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17859        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17860$as_echo_n "checking how to link with libintl... " >&6; }
17861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17862$as_echo "$LIBINTL" >&6; }
17863
17864  for element in $INCINTL; do
17865    haveit=
17866    for x in $CPPFLAGS; do
17867
17868  acl_save_prefix="$prefix"
17869  prefix="$acl_final_prefix"
17870  acl_save_exec_prefix="$exec_prefix"
17871  exec_prefix="$acl_final_exec_prefix"
17872  eval x=\"$x\"
17873  exec_prefix="$acl_save_exec_prefix"
17874  prefix="$acl_save_prefix"
17875
17876      if test "X$x" = "X$element"; then
17877        haveit=yes
17878        break
17879      fi
17880    done
17881    if test -z "$haveit"; then
17882      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17883    fi
17884  done
17885
17886      fi
17887
17888
17889$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17890
17891
17892$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17893
17894    fi
17895
17896        POSUB=po
17897  fi
17898
17899
17900
17901    INTLLIBS="$LIBINTL"
17902
17903
17904
17905
17906
17907
17908
17909GETTEXT_PACKAGE=libgtop-2.0
17910
17911
17912cat >>confdefs.h <<_ACEOF
17913#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
17914_ACEOF
17915
17916
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17918$as_echo_n "checking for X... " >&6; }
17919
17920
17921# Check whether --with-x was given.
17922if test "${with_x+set}" = set; then :
17923  withval=$with_x;
17924fi
17925
17926# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17927if test "x$with_x" = xno; then
17928  # The user explicitly disabled X.
17929  have_x=disabled
17930else
17931  case $x_includes,$x_libraries in #(
17932    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17933    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
17934  $as_echo_n "(cached) " >&6
17935else
17936  # One or both of the vars are not set, and there is no cached value.
17937ac_x_includes=no ac_x_libraries=no
17938rm -f -r conftest.dir
17939if mkdir conftest.dir; then
17940  cd conftest.dir
17941  cat >Imakefile <<'_ACEOF'
17942incroot:
17943	@echo incroot='${INCROOT}'
17944usrlibdir:
17945	@echo usrlibdir='${USRLIBDIR}'
17946libdir:
17947	@echo libdir='${LIBDIR}'
17948_ACEOF
17949  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17950    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17951    for ac_var in incroot usrlibdir libdir; do
17952      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17953    done
17954    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17955    for ac_extension in a so sl dylib la dll; do
17956      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17957	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17958	ac_im_usrlibdir=$ac_im_libdir; break
17959      fi
17960    done
17961    # Screen out bogus values from the imake configuration.  They are
17962    # bogus both because they are the default anyway, and because
17963    # using them would break gcc on systems where it needs fixed includes.
17964    case $ac_im_incroot in
17965	/usr/include) ac_x_includes= ;;
17966	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17967    esac
17968    case $ac_im_usrlibdir in
17969	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
17970	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17971    esac
17972  fi
17973  cd ..
17974  rm -f -r conftest.dir
17975fi
17976
17977# Standard set of common directories for X headers.
17978# Check X11 before X11Rn because it is often a symlink to the current release.
17979ac_x_header_dirs='
17980/usr/X11/include
17981/usr/X11R7/include
17982/usr/X11R6/include
17983/usr/X11R5/include
17984/usr/X11R4/include
17985
17986/usr/include/X11
17987/usr/include/X11R7
17988/usr/include/X11R6
17989/usr/include/X11R5
17990/usr/include/X11R4
17991
17992/usr/local/X11/include
17993/usr/local/X11R7/include
17994/usr/local/X11R6/include
17995/usr/local/X11R5/include
17996/usr/local/X11R4/include
17997
17998/usr/local/include/X11
17999/usr/local/include/X11R7
18000/usr/local/include/X11R6
18001/usr/local/include/X11R5
18002/usr/local/include/X11R4
18003
18004/usr/X386/include
18005/usr/x386/include
18006/usr/XFree86/include/X11
18007
18008/usr/include
18009/usr/local/include
18010/usr/unsupported/include
18011/usr/athena/include
18012/usr/local/x11r5/include
18013/usr/lpp/Xamples/include
18014
18015/usr/openwin/include
18016/usr/openwin/share/include'
18017
18018if test "$ac_x_includes" = no; then
18019  # Guess where to find include files, by looking for Xlib.h.
18020  # First, try using that file with no special directory specified.
18021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022/* end confdefs.h.  */
18023#include <X11/Xlib.h>
18024_ACEOF
18025if ac_fn_c_try_cpp "$LINENO"; then :
18026  # We can compile using X headers with no special include directory.
18027ac_x_includes=
18028else
18029  for ac_dir in $ac_x_header_dirs; do
18030  if test -r "$ac_dir/X11/Xlib.h"; then
18031    ac_x_includes=$ac_dir
18032    break
18033  fi
18034done
18035fi
18036rm -f conftest.err conftest.i conftest.$ac_ext
18037fi # $ac_x_includes = no
18038
18039if test "$ac_x_libraries" = no; then
18040  # Check for the libraries.
18041  # See if we find them without any special options.
18042  # Don't add to $LIBS permanently.
18043  ac_save_LIBS=$LIBS
18044  LIBS="-lX11 $LIBS"
18045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047#include <X11/Xlib.h>
18048int
18049main ()
18050{
18051XrmInitialize ()
18052  ;
18053  return 0;
18054}
18055_ACEOF
18056if ac_fn_c_try_link "$LINENO"; then :
18057  LIBS=$ac_save_LIBS
18058# We can link X programs with no special library path.
18059ac_x_libraries=
18060else
18061  LIBS=$ac_save_LIBS
18062for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18063do
18064  # Don't even attempt the hair of trying to link an X program!
18065  for ac_extension in a so sl dylib la dll; do
18066    if test -r "$ac_dir/libX11.$ac_extension"; then
18067      ac_x_libraries=$ac_dir
18068      break 2
18069    fi
18070  done
18071done
18072fi
18073rm -f core conftest.err conftest.$ac_objext \
18074    conftest$ac_exeext conftest.$ac_ext
18075fi # $ac_x_libraries = no
18076
18077case $ac_x_includes,$ac_x_libraries in #(
18078  no,* | *,no | *\'*)
18079    # Didn't find X, or a directory has "'" in its name.
18080    ac_cv_have_x="have_x=no";; #(
18081  *)
18082    # Record where we found X for the cache.
18083    ac_cv_have_x="have_x=yes\
18084	ac_x_includes='$ac_x_includes'\
18085	ac_x_libraries='$ac_x_libraries'"
18086esac
18087fi
18088;; #(
18089    *) have_x=yes;;
18090  esac
18091  eval "$ac_cv_have_x"
18092fi # $with_x != no
18093
18094if test "$have_x" != yes; then
18095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18096$as_echo "$have_x" >&6; }
18097  no_x=yes
18098else
18099  # If each of the values was on the command line, it overrides each guess.
18100  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18101  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18102  # Update the cache value to reflect the command line values.
18103  ac_cv_have_x="have_x=yes\
18104	ac_x_includes='$x_includes'\
18105	ac_x_libraries='$x_libraries'"
18106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18107$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18108fi
18109
18110if test "$no_x" = yes; then
18111  # Not all programs may use this symbol, but it does not hurt to define it.
18112
18113$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18114
18115  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18116else
18117  if test -n "$x_includes"; then
18118    X_CFLAGS="$X_CFLAGS -I$x_includes"
18119  fi
18120
18121  # It would also be nice to do this for all -L options, not just this one.
18122  if test -n "$x_libraries"; then
18123    X_LIBS="$X_LIBS -L$x_libraries"
18124    # For Solaris; some versions of Sun CC require a space after -R and
18125    # others require no space.  Words are not sufficient . . . .
18126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18127$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18128    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18129    ac_xsave_c_werror_flag=$ac_c_werror_flag
18130    ac_c_werror_flag=yes
18131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132/* end confdefs.h.  */
18133
18134int
18135main ()
18136{
18137
18138  ;
18139  return 0;
18140}
18141_ACEOF
18142if ac_fn_c_try_link "$LINENO"; then :
18143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144$as_echo "no" >&6; }
18145       X_LIBS="$X_LIBS -R$x_libraries"
18146else
18147  LIBS="$ac_xsave_LIBS -R $x_libraries"
18148       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149/* end confdefs.h.  */
18150
18151int
18152main ()
18153{
18154
18155  ;
18156  return 0;
18157}
18158_ACEOF
18159if ac_fn_c_try_link "$LINENO"; then :
18160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161$as_echo "yes" >&6; }
18162	  X_LIBS="$X_LIBS -R $x_libraries"
18163else
18164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18165$as_echo "neither works" >&6; }
18166fi
18167rm -f core conftest.err conftest.$ac_objext \
18168    conftest$ac_exeext conftest.$ac_ext
18169fi
18170rm -f core conftest.err conftest.$ac_objext \
18171    conftest$ac_exeext conftest.$ac_ext
18172    ac_c_werror_flag=$ac_xsave_c_werror_flag
18173    LIBS=$ac_xsave_LIBS
18174  fi
18175
18176  # Check for system-dependent libraries X programs must link with.
18177  # Do this before checking for the system-independent R6 libraries
18178  # (-lICE), since we may need -lsocket or whatever for X linking.
18179
18180  if test "$ISC" = yes; then
18181    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18182  else
18183    # Martyn Johnson says this is needed for Ultrix, if the X
18184    # libraries were built with DECnet support.  And Karl Berry says
18185    # the Alpha needs dnet_stub (dnet does not exist).
18186    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188/* end confdefs.h.  */
18189
18190/* Override any GCC internal prototype to avoid an error.
18191   Use char because int might match the return type of a GCC
18192   builtin and then its argument prototype would still apply.  */
18193#ifdef __cplusplus
18194extern "C"
18195#endif
18196char XOpenDisplay ();
18197int
18198main ()
18199{
18200return XOpenDisplay ();
18201  ;
18202  return 0;
18203}
18204_ACEOF
18205if ac_fn_c_try_link "$LINENO"; then :
18206
18207else
18208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18209$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18210if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18211  $as_echo_n "(cached) " >&6
18212else
18213  ac_check_lib_save_LIBS=$LIBS
18214LIBS="-ldnet  $LIBS"
18215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217
18218/* Override any GCC internal prototype to avoid an error.
18219   Use char because int might match the return type of a GCC
18220   builtin and then its argument prototype would still apply.  */
18221#ifdef __cplusplus
18222extern "C"
18223#endif
18224char dnet_ntoa ();
18225int
18226main ()
18227{
18228return dnet_ntoa ();
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_link "$LINENO"; then :
18234  ac_cv_lib_dnet_dnet_ntoa=yes
18235else
18236  ac_cv_lib_dnet_dnet_ntoa=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext \
18239    conftest$ac_exeext conftest.$ac_ext
18240LIBS=$ac_check_lib_save_LIBS
18241fi
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18243$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18244if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18245  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18246fi
18247
18248    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18249      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18250$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18251if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18252  $as_echo_n "(cached) " >&6
18253else
18254  ac_check_lib_save_LIBS=$LIBS
18255LIBS="-ldnet_stub  $LIBS"
18256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257/* end confdefs.h.  */
18258
18259/* Override any GCC internal prototype to avoid an error.
18260   Use char because int might match the return type of a GCC
18261   builtin and then its argument prototype would still apply.  */
18262#ifdef __cplusplus
18263extern "C"
18264#endif
18265char dnet_ntoa ();
18266int
18267main ()
18268{
18269return dnet_ntoa ();
18270  ;
18271  return 0;
18272}
18273_ACEOF
18274if ac_fn_c_try_link "$LINENO"; then :
18275  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18276else
18277  ac_cv_lib_dnet_stub_dnet_ntoa=no
18278fi
18279rm -f core conftest.err conftest.$ac_objext \
18280    conftest$ac_exeext conftest.$ac_ext
18281LIBS=$ac_check_lib_save_LIBS
18282fi
18283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18284$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18285if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18286  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18287fi
18288
18289    fi
18290fi
18291rm -f core conftest.err conftest.$ac_objext \
18292    conftest$ac_exeext conftest.$ac_ext
18293    LIBS="$ac_xsave_LIBS"
18294
18295    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18296    # to get the SysV transport functions.
18297    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18298    # needs -lnsl.
18299    # The nsl library prevents programs from opening the X display
18300    # on Irix 5.2, according to T.E. Dickey.
18301    # The functions gethostbyname, getservbyname, and inet_addr are
18302    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18303    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18304if test "x$ac_cv_func_gethostbyname" = xyes; then :
18305
18306fi
18307
18308    if test $ac_cv_func_gethostbyname = no; then
18309      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18310$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18311if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18312  $as_echo_n "(cached) " >&6
18313else
18314  ac_check_lib_save_LIBS=$LIBS
18315LIBS="-lnsl  $LIBS"
18316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317/* end confdefs.h.  */
18318
18319/* Override any GCC internal prototype to avoid an error.
18320   Use char because int might match the return type of a GCC
18321   builtin and then its argument prototype would still apply.  */
18322#ifdef __cplusplus
18323extern "C"
18324#endif
18325char gethostbyname ();
18326int
18327main ()
18328{
18329return gethostbyname ();
18330  ;
18331  return 0;
18332}
18333_ACEOF
18334if ac_fn_c_try_link "$LINENO"; then :
18335  ac_cv_lib_nsl_gethostbyname=yes
18336else
18337  ac_cv_lib_nsl_gethostbyname=no
18338fi
18339rm -f core conftest.err conftest.$ac_objext \
18340    conftest$ac_exeext conftest.$ac_ext
18341LIBS=$ac_check_lib_save_LIBS
18342fi
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18344$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18345if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18346  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18347fi
18348
18349      if test $ac_cv_lib_nsl_gethostbyname = no; then
18350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18351$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18352if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18353  $as_echo_n "(cached) " >&6
18354else
18355  ac_check_lib_save_LIBS=$LIBS
18356LIBS="-lbsd  $LIBS"
18357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358/* end confdefs.h.  */
18359
18360/* Override any GCC internal prototype to avoid an error.
18361   Use char because int might match the return type of a GCC
18362   builtin and then its argument prototype would still apply.  */
18363#ifdef __cplusplus
18364extern "C"
18365#endif
18366char gethostbyname ();
18367int
18368main ()
18369{
18370return gethostbyname ();
18371  ;
18372  return 0;
18373}
18374_ACEOF
18375if ac_fn_c_try_link "$LINENO"; then :
18376  ac_cv_lib_bsd_gethostbyname=yes
18377else
18378  ac_cv_lib_bsd_gethostbyname=no
18379fi
18380rm -f core conftest.err conftest.$ac_objext \
18381    conftest$ac_exeext conftest.$ac_ext
18382LIBS=$ac_check_lib_save_LIBS
18383fi
18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18385$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18386if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18387  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18388fi
18389
18390      fi
18391    fi
18392
18393    # lieder@skyler.mavd.honeywell.com says without -lsocket,
18394    # socket/setsockopt and other routines are undefined under SCO ODT
18395    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18396    # on later versions), says Simon Leinen: it contains gethostby*
18397    # variants that don't use the name server (or something).  -lsocket
18398    # must be given before -lnsl if both are needed.  We assume that
18399    # if connect needs -lnsl, so does gethostbyname.
18400    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18401if test "x$ac_cv_func_connect" = xyes; then :
18402
18403fi
18404
18405    if test $ac_cv_func_connect = no; then
18406      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18407$as_echo_n "checking for connect in -lsocket... " >&6; }
18408if ${ac_cv_lib_socket_connect+:} false; then :
18409  $as_echo_n "(cached) " >&6
18410else
18411  ac_check_lib_save_LIBS=$LIBS
18412LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415
18416/* Override any GCC internal prototype to avoid an error.
18417   Use char because int might match the return type of a GCC
18418   builtin and then its argument prototype would still apply.  */
18419#ifdef __cplusplus
18420extern "C"
18421#endif
18422char connect ();
18423int
18424main ()
18425{
18426return connect ();
18427  ;
18428  return 0;
18429}
18430_ACEOF
18431if ac_fn_c_try_link "$LINENO"; then :
18432  ac_cv_lib_socket_connect=yes
18433else
18434  ac_cv_lib_socket_connect=no
18435fi
18436rm -f core conftest.err conftest.$ac_objext \
18437    conftest$ac_exeext conftest.$ac_ext
18438LIBS=$ac_check_lib_save_LIBS
18439fi
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18441$as_echo "$ac_cv_lib_socket_connect" >&6; }
18442if test "x$ac_cv_lib_socket_connect" = xyes; then :
18443  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18444fi
18445
18446    fi
18447
18448    # Guillermo Gomez says -lposix is necessary on A/UX.
18449    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18450if test "x$ac_cv_func_remove" = xyes; then :
18451
18452fi
18453
18454    if test $ac_cv_func_remove = no; then
18455      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18456$as_echo_n "checking for remove in -lposix... " >&6; }
18457if ${ac_cv_lib_posix_remove+:} false; then :
18458  $as_echo_n "(cached) " >&6
18459else
18460  ac_check_lib_save_LIBS=$LIBS
18461LIBS="-lposix  $LIBS"
18462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463/* end confdefs.h.  */
18464
18465/* Override any GCC internal prototype to avoid an error.
18466   Use char because int might match the return type of a GCC
18467   builtin and then its argument prototype would still apply.  */
18468#ifdef __cplusplus
18469extern "C"
18470#endif
18471char remove ();
18472int
18473main ()
18474{
18475return remove ();
18476  ;
18477  return 0;
18478}
18479_ACEOF
18480if ac_fn_c_try_link "$LINENO"; then :
18481  ac_cv_lib_posix_remove=yes
18482else
18483  ac_cv_lib_posix_remove=no
18484fi
18485rm -f core conftest.err conftest.$ac_objext \
18486    conftest$ac_exeext conftest.$ac_ext
18487LIBS=$ac_check_lib_save_LIBS
18488fi
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18490$as_echo "$ac_cv_lib_posix_remove" >&6; }
18491if test "x$ac_cv_lib_posix_remove" = xyes; then :
18492  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18493fi
18494
18495    fi
18496
18497    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18498    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18499if test "x$ac_cv_func_shmat" = xyes; then :
18500
18501fi
18502
18503    if test $ac_cv_func_shmat = no; then
18504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18505$as_echo_n "checking for shmat in -lipc... " >&6; }
18506if ${ac_cv_lib_ipc_shmat+:} false; then :
18507  $as_echo_n "(cached) " >&6
18508else
18509  ac_check_lib_save_LIBS=$LIBS
18510LIBS="-lipc  $LIBS"
18511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512/* end confdefs.h.  */
18513
18514/* Override any GCC internal prototype to avoid an error.
18515   Use char because int might match the return type of a GCC
18516   builtin and then its argument prototype would still apply.  */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520char shmat ();
18521int
18522main ()
18523{
18524return shmat ();
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529if ac_fn_c_try_link "$LINENO"; then :
18530  ac_cv_lib_ipc_shmat=yes
18531else
18532  ac_cv_lib_ipc_shmat=no
18533fi
18534rm -f core conftest.err conftest.$ac_objext \
18535    conftest$ac_exeext conftest.$ac_ext
18536LIBS=$ac_check_lib_save_LIBS
18537fi
18538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18539$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18540if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18541  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18542fi
18543
18544    fi
18545  fi
18546
18547  # Check for libraries that X11R6 Xt/Xaw programs need.
18548  ac_save_LDFLAGS=$LDFLAGS
18549  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18550  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18551  # check for ICE first), but we must link in the order -lSM -lICE or
18552  # we get undefined symbols.  So assume we have SM if we have ICE.
18553  # These have to be linked with before -lX11, unlike the other
18554  # libraries we check for below, so use a different variable.
18555  # John Interrante, Karl Berry
18556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18557$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18558if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18559  $as_echo_n "(cached) " >&6
18560else
18561  ac_check_lib_save_LIBS=$LIBS
18562LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564/* end confdefs.h.  */
18565
18566/* Override any GCC internal prototype to avoid an error.
18567   Use char because int might match the return type of a GCC
18568   builtin and then its argument prototype would still apply.  */
18569#ifdef __cplusplus
18570extern "C"
18571#endif
18572char IceConnectionNumber ();
18573int
18574main ()
18575{
18576return IceConnectionNumber ();
18577  ;
18578  return 0;
18579}
18580_ACEOF
18581if ac_fn_c_try_link "$LINENO"; then :
18582  ac_cv_lib_ICE_IceConnectionNumber=yes
18583else
18584  ac_cv_lib_ICE_IceConnectionNumber=no
18585fi
18586rm -f core conftest.err conftest.$ac_objext \
18587    conftest$ac_exeext conftest.$ac_ext
18588LIBS=$ac_check_lib_save_LIBS
18589fi
18590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18591$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18592if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18593  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18594fi
18595
18596  LDFLAGS=$ac_save_LDFLAGS
18597
18598fi
18599
18600
18601ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18602if test "x$ac_cv_func_gethostbyname" = xyes; then :
18603
18604else
18605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18606$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18607if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18608  $as_echo_n "(cached) " >&6
18609else
18610  ac_check_lib_save_LIBS=$LIBS
18611LIBS="-lnsl  $LIBS"
18612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613/* end confdefs.h.  */
18614
18615/* Override any GCC internal prototype to avoid an error.
18616   Use char because int might match the return type of a GCC
18617   builtin and then its argument prototype would still apply.  */
18618#ifdef __cplusplus
18619extern "C"
18620#endif
18621char gethostbyname ();
18622int
18623main ()
18624{
18625return gethostbyname ();
18626  ;
18627  return 0;
18628}
18629_ACEOF
18630if ac_fn_c_try_link "$LINENO"; then :
18631  ac_cv_lib_nsl_gethostbyname=yes
18632else
18633  ac_cv_lib_nsl_gethostbyname=no
18634fi
18635rm -f core conftest.err conftest.$ac_objext \
18636    conftest$ac_exeext conftest.$ac_ext
18637LIBS=$ac_check_lib_save_LIBS
18638fi
18639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18640$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18641if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18642  cat >>confdefs.h <<_ACEOF
18643#define HAVE_LIBNSL 1
18644_ACEOF
18645
18646  LIBS="-lnsl $LIBS"
18647
18648fi
18649
18650fi
18651
18652ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18653if test "x$ac_cv_func_connect" = xyes; then :
18654
18655else
18656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18657$as_echo_n "checking for connect in -lsocket... " >&6; }
18658if ${ac_cv_lib_socket_connect+:} false; then :
18659  $as_echo_n "(cached) " >&6
18660else
18661  ac_check_lib_save_LIBS=$LIBS
18662LIBS="-lsocket  $LIBS"
18663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664/* end confdefs.h.  */
18665
18666/* Override any GCC internal prototype to avoid an error.
18667   Use char because int might match the return type of a GCC
18668   builtin and then its argument prototype would still apply.  */
18669#ifdef __cplusplus
18670extern "C"
18671#endif
18672char connect ();
18673int
18674main ()
18675{
18676return connect ();
18677  ;
18678  return 0;
18679}
18680_ACEOF
18681if ac_fn_c_try_link "$LINENO"; then :
18682  ac_cv_lib_socket_connect=yes
18683else
18684  ac_cv_lib_socket_connect=no
18685fi
18686rm -f core conftest.err conftest.$ac_objext \
18687    conftest$ac_exeext conftest.$ac_ext
18688LIBS=$ac_check_lib_save_LIBS
18689fi
18690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18691$as_echo "$ac_cv_lib_socket_connect" >&6; }
18692if test "x$ac_cv_lib_socket_connect" = xyes; then :
18693  cat >>confdefs.h <<_ACEOF
18694#define HAVE_LIBSOCKET 1
18695_ACEOF
18696
18697  LIBS="-lsocket $LIBS"
18698
18699fi
18700
18701fi
18702
18703ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18704if test "x$ac_cv_func_inet_aton" = xyes; then :
18705
18706else
18707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
18708$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
18709if ${ac_cv_lib_resolv_inet_aton+:} false; then :
18710  $as_echo_n "(cached) " >&6
18711else
18712  ac_check_lib_save_LIBS=$LIBS
18713LIBS="-lresolv  $LIBS"
18714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715/* end confdefs.h.  */
18716
18717/* Override any GCC internal prototype to avoid an error.
18718   Use char because int might match the return type of a GCC
18719   builtin and then its argument prototype would still apply.  */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char inet_aton ();
18724int
18725main ()
18726{
18727return inet_aton ();
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_c_try_link "$LINENO"; then :
18733  ac_cv_lib_resolv_inet_aton=yes
18734else
18735  ac_cv_lib_resolv_inet_aton=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext \
18738    conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
18742$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
18743if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
18744  cat >>confdefs.h <<_ACEOF
18745#define HAVE_LIBRESOLV 1
18746_ACEOF
18747
18748  LIBS="-lresolv $LIBS"
18749
18750fi
18751
18752fi
18753
18754
18755
18756saved_CPPFLAGS="$CPPFLAGS"
18757CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18758test -z "$with_xauth" && { ac_fn_c_check_header_mongrel "$LINENO" "X11/Xauth.h" "ac_cv_header_X11_Xauth_h" "$ac_includes_default"
18759if test "x$ac_cv_header_X11_Xauth_h" = xyes; then :
18760
18761else
18762  with_xauth=no
18763fi
18764
18765 }
18766test -z "$with_xauth" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetAuthByAddr in -lXau" >&5
18767$as_echo_n "checking for XauGetAuthByAddr in -lXau... " >&6; }
18768if ${ac_cv_lib_Xau_XauGetAuthByAddr+:} false; then :
18769  $as_echo_n "(cached) " >&6
18770else
18771  ac_check_lib_save_LIBS=$LIBS
18772LIBS="-lXau $X_LIBS $LIBS"
18773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775
18776/* Override any GCC internal prototype to avoid an error.
18777   Use char because int might match the return type of a GCC
18778   builtin and then its argument prototype would still apply.  */
18779#ifdef __cplusplus
18780extern "C"
18781#endif
18782char XauGetAuthByAddr ();
18783int
18784main ()
18785{
18786return XauGetAuthByAddr ();
18787  ;
18788  return 0;
18789}
18790_ACEOF
18791if ac_fn_c_try_link "$LINENO"; then :
18792  ac_cv_lib_Xau_XauGetAuthByAddr=yes
18793else
18794  ac_cv_lib_Xau_XauGetAuthByAddr=no
18795fi
18796rm -f core conftest.err conftest.$ac_objext \
18797    conftest$ac_exeext conftest.$ac_ext
18798LIBS=$ac_check_lib_save_LIBS
18799fi
18800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetAuthByAddr" >&5
18801$as_echo "$ac_cv_lib_Xau_XauGetAuthByAddr" >&6; }
18802if test "x$ac_cv_lib_Xau_XauGetAuthByAddr" = xyes; then :
18803  :
18804else
18805  with_xauth=no
18806fi
18807 }
18808test -z "$with_xauth" && with_xauth=yes
18809if test "$with_xauth" = "yes"; then
18810
18811$as_echo "#define HAVE_XAUTH 1" >>confdefs.h
18812
18813
18814T=""
18815for W in $X_LIBS -lXau; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
18816libs_xauth="$T"
18817
18818fi
18819CPPFLAGS="$saved_CPPFLAGS"
18820
18821
18822
18823for ac_header in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
18824mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
18825sys/filsys.h sys/fs_types.h sys/fs/s5param.h
18826do :
18827  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18830  cat >>confdefs.h <<_ACEOF
18831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18832_ACEOF
18833
18834fi
18835
18836done
18837
18838
18839for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
18840getcwd getmntinfo gettimeofday isascii lchown \
18841listmntent memcpy mkfifo strchr strerror strrchr vprintf
18842do :
18843  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18844ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18845if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18846  cat >>confdefs.h <<_ACEOF
18847#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18848_ACEOF
18849
18850fi
18851done
18852
18853
18854
18855if test x$cross_compiling = xyes ; then
18856        case "$host_os" in
18857        linux*)
18858          fu_cv_sys_mounted_getmntent1=yes
18859          fu_cv_sys_stat_statfs2_bsize=yes
18860          ;;
18861        sunos*)
18862          fu_cv_sys_stat_statfs4=yes
18863          ;;
18864        freebsd*|dragonfly*)
18865          fu_cv_sys_stat_statfs2_bsize=yes
18866          ;;
18867        osf*)
18868          fu_cv_sys_stat_statfs3_osf1=yes
18869          ;;
18870        esac
18871fi
18872
18873# Determine how to get the list of mounted filesystems.
18874list_mounted_fs=
18875
18876# If the getmntent function is available but not in the standard library,
18877# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
18878# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
18879# -lseq on Dynix/PTX, -lgen on Unixware.
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
18881$as_echo_n "checking for library containing getmntent... " >&6; }
18882if ${ac_cv_search_getmntent+:} false; then :
18883  $as_echo_n "(cached) " >&6
18884else
18885  ac_func_search_save_LIBS=$LIBS
18886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888
18889/* Override any GCC internal prototype to avoid an error.
18890   Use char because int might match the return type of a GCC
18891   builtin and then its argument prototype would still apply.  */
18892#ifdef __cplusplus
18893extern "C"
18894#endif
18895char getmntent ();
18896int
18897main ()
18898{
18899return getmntent ();
18900  ;
18901  return 0;
18902}
18903_ACEOF
18904for ac_lib in '' sun seq gen; do
18905  if test -z "$ac_lib"; then
18906    ac_res="none required"
18907  else
18908    ac_res=-l$ac_lib
18909    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18910  fi
18911  if ac_fn_c_try_link "$LINENO"; then :
18912  ac_cv_search_getmntent=$ac_res
18913fi
18914rm -f core conftest.err conftest.$ac_objext \
18915    conftest$ac_exeext
18916  if ${ac_cv_search_getmntent+:} false; then :
18917  break
18918fi
18919done
18920if ${ac_cv_search_getmntent+:} false; then :
18921
18922else
18923  ac_cv_search_getmntent=no
18924fi
18925rm conftest.$ac_ext
18926LIBS=$ac_func_search_save_LIBS
18927fi
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
18929$as_echo "$ac_cv_search_getmntent" >&6; }
18930ac_res=$ac_cv_search_getmntent
18931if test "$ac_res" != no; then :
18932  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18933  ac_cv_func_getmntent=yes
18934
18935$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
18936
18937else
18938  ac_cv_func_getmntent=no
18939fi
18940
18941
18942
18943# This test must precede the ones for getmntent because Unicos-9 is
18944# reported to have the getmntent function, but its support is incompatible
18945# with other getmntent implementations.
18946
18947# NOTE: Normally, I wouldn't use a check for system type as I've done for
18948# `CRAY' below since that goes against the whole autoconf philosophy.  But
18949# I think there is too great a chance that some non-Cray system has a
18950# function named listmntent to risk the false positive.
18951
18952if test -z "$list_mounted_fs"; then
18953# Cray UNICOS 9
18954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for listmntent of Cray/Unicos-9" >&5
18955$as_echo_n "checking for listmntent of Cray/Unicos-9... " >&6; }
18956if ${fu_cv_sys_mounted_cray_listmntent+:} false; then :
18957  $as_echo_n "(cached) " >&6
18958else
18959  fu_cv_sys_mounted_cray_listmntent=no
18960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961/* end confdefs.h.  */
18962#ifdef _CRAY
18963yes
18964#endif
18965
18966_ACEOF
18967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18968  $EGREP "yes" >/dev/null 2>&1; then :
18969  test $ac_cv_func_listmntent = yes \
18970&& fu_cv_sys_mounted_cray_listmntent=yes
18971
18972fi
18973rm -f conftest*
18974
18975
18976
18977fi
18978
18979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_cray_listmntent" >&5
18980$as_echo "$fu_cv_sys_mounted_cray_listmntent" >&6; }
18981if test $fu_cv_sys_mounted_cray_listmntent = yes; then
18982list_mounted_fs=found
18983
18984$as_echo "#define MOUNTED_LISTMNTENT 1" >>confdefs.h
18985
18986fi
18987fi
18988
18989if test $ac_cv_func_getmntent = yes; then
18990
18991# This system has the getmntent function.
18992# Determine whether it's the one-argument variant or the two-argument one.
18993
18994if test -z "$list_mounted_fs"; then
18995# 4.3BSD, SunOS, HP-UX, Dynix, Irix
18996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for one-argument getmntent function" >&5
18997$as_echo_n "checking for one-argument getmntent function... " >&6; }
18998if ${fu_cv_sys_mounted_getmntent1+:} false; then :
18999  $as_echo_n "(cached) " >&6
19000else
19001  test $ac_cv_header_mntent_h = yes \
19002&& fu_cv_sys_mounted_getmntent1=yes \
19003|| fu_cv_sys_mounted_getmntent1=no
19004fi
19005
19006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent1" >&5
19007$as_echo "$fu_cv_sys_mounted_getmntent1" >&6; }
19008if test $fu_cv_sys_mounted_getmntent1 = yes; then
19009list_mounted_fs=found
19010
19011$as_echo "#define MOUNTED_GETMNTENT1 1" >>confdefs.h
19012
19013fi
19014fi
19015
19016if test -z "$list_mounted_fs"; then
19017# SVR4
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument getmntent function" >&5
19019$as_echo_n "checking for two-argument getmntent function... " >&6; }
19020if ${fu_cv_sys_mounted_getmntent2+:} false; then :
19021  $as_echo_n "(cached) " >&6
19022else
19023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024/* end confdefs.h.  */
19025#include <sys/mnttab.h>
19026
19027_ACEOF
19028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19029  $EGREP "getmntent" >/dev/null 2>&1; then :
19030  fu_cv_sys_mounted_getmntent2=yes
19031else
19032  fu_cv_sys_mounted_getmntent2=no
19033fi
19034rm -f conftest*
19035
19036fi
19037
19038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent2" >&5
19039$as_echo "$fu_cv_sys_mounted_getmntent2" >&6; }
19040if test $fu_cv_sys_mounted_getmntent2 = yes; then
19041list_mounted_fs=found
19042
19043$as_echo "#define MOUNTED_GETMNTENT2 1" >>confdefs.h
19044
19045fi
19046fi
19047
19048if test -z "$list_mounted_fs"; then
19049as_fn_error $? "could not determine how to read list of mounted filesystems" "$LINENO" 5
19050fi
19051
19052fi
19053
19054if test -z "$list_mounted_fs"; then
19055# DEC Alpha running OSF/1.
19056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfsstat function" >&5
19057$as_echo_n "checking for getfsstat function... " >&6; }
19058if ${fu_cv_sys_mounted_getsstat+:} false; then :
19059  $as_echo_n "(cached) " >&6
19060else
19061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063
19064#include <sys/types.h>
19065#include <sys/mount.h>
19066#include <sys/fs_types.h>
19067int
19068main ()
19069{
19070struct statfs *stats;
19071int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
19072  ;
19073  return 0;
19074}
19075_ACEOF
19076if ac_fn_c_try_link "$LINENO"; then :
19077  fu_cv_sys_mounted_getsstat=yes
19078else
19079  fu_cv_sys_mounted_getsstat=no
19080fi
19081rm -f core conftest.err conftest.$ac_objext \
19082    conftest$ac_exeext conftest.$ac_ext
19083fi
19084
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getsstat" >&5
19086$as_echo "$fu_cv_sys_mounted_getsstat" >&6; }
19087if test $fu_cv_sys_mounted_getsstat = yes; then
19088list_mounted_fs=found
19089
19090$as_echo "#define MOUNTED_GETFSSTAT 1" >>confdefs.h
19091
19092fi
19093fi
19094
19095if test -z "$list_mounted_fs"; then
19096# AIX.
19097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mntctl function and struct vmount" >&5
19098$as_echo_n "checking for mntctl function and struct vmount... " >&6; }
19099if ${fu_cv_sys_mounted_vmount+:} false; then :
19100  $as_echo_n "(cached) " >&6
19101else
19102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103/* end confdefs.h.  */
19104#include <fshelp.h>
19105_ACEOF
19106if ac_fn_c_try_cpp "$LINENO"; then :
19107  fu_cv_sys_mounted_vmount=yes
19108else
19109  fu_cv_sys_mounted_vmount=no
19110fi
19111rm -f conftest.err conftest.i conftest.$ac_ext
19112fi
19113
19114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_vmount" >&5
19115$as_echo "$fu_cv_sys_mounted_vmount" >&6; }
19116if test $fu_cv_sys_mounted_vmount = yes; then
19117list_mounted_fs=found
19118
19119$as_echo "#define MOUNTED_VMOUNT 1" >>confdefs.h
19120
19121fi
19122fi
19123
19124if test -z "$list_mounted_fs"; then
19125# SVR3
19126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXME existence of three headers" >&5
19127$as_echo_n "checking for FIXME existence of three headers... " >&6; }
19128if ${fu_cv_sys_mounted_fread_fstyp+:} false; then :
19129  $as_echo_n "(cached) " >&6
19130else
19131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19132/* end confdefs.h.  */
19133
19134#include <sys/statfs.h>
19135#include <sys/fstyp.h>
19136#include <mnttab.h>
19137_ACEOF
19138if ac_fn_c_try_cpp "$LINENO"; then :
19139  fu_cv_sys_mounted_fread_fstyp=yes
19140else
19141  fu_cv_sys_mounted_fread_fstyp=no
19142fi
19143rm -f conftest.err conftest.i conftest.$ac_ext
19144fi
19145
19146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread_fstyp" >&5
19147$as_echo "$fu_cv_sys_mounted_fread_fstyp" >&6; }
19148if test $fu_cv_sys_mounted_fread_fstyp = yes; then
19149list_mounted_fs=found
19150
19151$as_echo "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h
19152
19153fi
19154fi
19155
19156if test -z "$list_mounted_fs"; then
19157# 4.4BSD and DEC OSF/1.
19158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntinfo function" >&5
19159$as_echo_n "checking for getmntinfo function... " >&6; }
19160if ${fu_cv_sys_mounted_getmntinfo+:} false; then :
19161  $as_echo_n "(cached) " >&6
19162else
19163
19164ok=
19165if test $ac_cv_func_getmntinfo = yes; then
19166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167/* end confdefs.h.  */
19168#include <sys/mount.h>
19169
19170_ACEOF
19171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19172  $EGREP "f_type;" >/dev/null 2>&1; then :
19173  ok=yes
19174fi
19175rm -f conftest*
19176
19177fi
19178test -n "$ok" \
19179&& fu_cv_sys_mounted_getmntinfo=yes \
19180|| fu_cv_sys_mounted_getmntinfo=no
19181
19182fi
19183
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo" >&5
19185$as_echo "$fu_cv_sys_mounted_getmntinfo" >&6; }
19186if test $fu_cv_sys_mounted_getmntinfo = yes; then
19187list_mounted_fs=found
19188
19189$as_echo "#define MOUNTED_GETMNTINFO 1" >>confdefs.h
19190
19191fi
19192fi
19193
19194# FIXME: add a test for netbsd-1.1 here
19195
19196if test -z "$list_mounted_fs"; then
19197# Ultrix
19198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmnt function" >&5
19199$as_echo_n "checking for getmnt function... " >&6; }
19200if ${fu_cv_sys_mounted_getmnt+:} false; then :
19201  $as_echo_n "(cached) " >&6
19202else
19203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204/* end confdefs.h.  */
19205
19206#include <sys/fs_types.h>
19207#include <sys/mount.h>
19208_ACEOF
19209if ac_fn_c_try_cpp "$LINENO"; then :
19210  fu_cv_sys_mounted_getmnt=yes
19211else
19212  fu_cv_sys_mounted_getmnt=no
19213fi
19214rm -f conftest.err conftest.i conftest.$ac_ext
19215fi
19216
19217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmnt" >&5
19218$as_echo "$fu_cv_sys_mounted_getmnt" >&6; }
19219if test $fu_cv_sys_mounted_getmnt = yes; then
19220list_mounted_fs=found
19221
19222$as_echo "#define MOUNTED_GETMNT 1" >>confdefs.h
19223
19224fi
19225fi
19226
19227if test -z "$list_mounted_fs"; then
19228# SVR2
19229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to resort to fread on /etc/mnttab" >&5
19230$as_echo_n "checking whether it is possible to resort to fread on /etc/mnttab... " >&6; }
19231if ${fu_cv_sys_mounted_fread+:} false; then :
19232  $as_echo_n "(cached) " >&6
19233else
19234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235/* end confdefs.h.  */
19236#include <mnttab.h>
19237_ACEOF
19238if ac_fn_c_try_cpp "$LINENO"; then :
19239  fu_cv_sys_mounted_fread=yes
19240else
19241  fu_cv_sys_mounted_fread=no
19242fi
19243rm -f conftest.err conftest.i conftest.$ac_ext
19244fi
19245
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread" >&5
19247$as_echo "$fu_cv_sys_mounted_fread" >&6; }
19248if test $fu_cv_sys_mounted_fread = yes; then
19249list_mounted_fs=found
19250
19251$as_echo "#define MOUNTED_FREAD 1" >>confdefs.h
19252
19253fi
19254fi
19255
19256if test -z "$list_mounted_fs"; then
19257as_fn_error $? "could not determine how to read list of mounted filesystems" "$LINENO" 5
19258# FIXME -- no need to abort building the whole package
19259# Cannot build mountlist.c or anything that needs its functions
19260fi
19261
19262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
19263$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
19264space=no
19265
19266# Perform only the link test since it seems there are no variants of the
19267# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
19268# because that got a false positive on SCO OSR5.  Adding the declaration
19269# of a `struct statvfs' causes this test to fail (as it should) on such
19270# systems.  That system is reported to work fine with STAT_STATFS4 which
19271# is what it gets when this test fails.
19272if test $space = no; then
19273# SVR4
19274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
19275$as_echo_n "checking statvfs function (SVR4)... " >&6; }
19276if ${fu_cv_sys_stat_statvfs+:} false; then :
19277  $as_echo_n "(cached) " >&6
19278else
19279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280/* end confdefs.h.  */
19281#include <sys/types.h>
19282#include <sys/statvfs.h>
19283int
19284main ()
19285{
19286struct statvfs fsd; statvfs (0, &fsd);
19287  ;
19288  return 0;
19289}
19290_ACEOF
19291if ac_fn_c_try_link "$LINENO"; then :
19292  fu_cv_sys_stat_statvfs=yes
19293else
19294  fu_cv_sys_stat_statvfs=no
19295fi
19296rm -f core conftest.err conftest.$ac_objext \
19297    conftest$ac_exeext conftest.$ac_ext
19298fi
19299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
19300$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
19301if test $fu_cv_sys_stat_statvfs = yes; then
19302space=yes
19303
19304$as_echo "#define STAT_STATVFS 1" >>confdefs.h
19305
19306fi
19307fi
19308
19309if test $space = no; then
19310# DEC Alpha running OSF/1
19311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
19312$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
19313if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
19314  $as_echo_n "(cached) " >&6
19315else
19316  if test "$cross_compiling" = yes; then :
19317  fu_cv_sys_stat_statfs3_osf1=no
19318else
19319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320/* end confdefs.h.  */
19321
19322#include <sys/param.h>
19323#include <sys/types.h>
19324#include <sys/mount.h>
19325int main ()
19326{
19327struct statfs fsd;
19328fsd.f_fsize = 0;
19329return (statfs (".", &fsd, sizeof (struct statfs)));
19330}
19331_ACEOF
19332if ac_fn_c_try_run "$LINENO"; then :
19333  fu_cv_sys_stat_statfs3_osf1=yes
19334else
19335  fu_cv_sys_stat_statfs3_osf1=no
19336fi
19337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19338  conftest.$ac_objext conftest.beam conftest.$ac_ext
19339fi
19340
19341fi
19342
19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19344$as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
19345if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19346space=yes
19347
19348$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
19349
19350fi
19351fi
19352
19353if test $space = no; then
19354# AIX
19355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
19356$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
19357if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
19358  $as_echo_n "(cached) " >&6
19359else
19360  if test "$cross_compiling" = yes; then :
19361  fu_cv_sys_stat_statfs2_bsize=no
19362else
19363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364/* end confdefs.h.  */
19365
19366#ifdef HAVE_SYS_PARAM_H
19367#include <sys/param.h>
19368#endif
19369#ifdef HAVE_SYS_MOUNT_H
19370#include <sys/mount.h>
19371#endif
19372#ifdef HAVE_SYS_VFS_H
19373#include <sys/vfs.h>
19374#endif
19375int main ()
19376{
19377struct statfs fsd;
19378fsd.f_bsize = 0;
19379return (statfs (".", &fsd));
19380}
19381_ACEOF
19382if ac_fn_c_try_run "$LINENO"; then :
19383  fu_cv_sys_stat_statfs2_bsize=yes
19384else
19385  fu_cv_sys_stat_statfs2_bsize=no
19386fi
19387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19388  conftest.$ac_objext conftest.beam conftest.$ac_ext
19389fi
19390
19391fi
19392
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19394$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
19395if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19396space=yes
19397
19398$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
19399
19400fi
19401fi
19402
19403if test $space = no; then
19404# SVR3
19405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19406$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
19407if ${fu_cv_sys_stat_statfs4+:} false; then :
19408  $as_echo_n "(cached) " >&6
19409else
19410  if test "$cross_compiling" = yes; then :
19411  fu_cv_sys_stat_statfs4=no
19412else
19413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414/* end confdefs.h.  */
19415#include <sys/types.h>
19416#include <sys/statfs.h>
19417int main ()
19418{
19419struct statfs fsd;
19420return (statfs (".", &fsd, sizeof fsd, 0));
19421}
19422_ACEOF
19423if ac_fn_c_try_run "$LINENO"; then :
19424  fu_cv_sys_stat_statfs4=yes
19425else
19426  fu_cv_sys_stat_statfs4=no
19427fi
19428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19429  conftest.$ac_objext conftest.beam conftest.$ac_ext
19430fi
19431
19432fi
19433
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
19435$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
19436if test $fu_cv_sys_stat_statfs4 = yes; then
19437space=yes
19438
19439$as_echo "#define STAT_STATFS4 1" >>confdefs.h
19440
19441fi
19442fi
19443
19444if test $space = no; then
19445# 4.4BSD and NetBSD
19446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
19447$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
19448if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
19449  $as_echo_n "(cached) " >&6
19450else
19451  if test "$cross_compiling" = yes; then :
19452  fu_cv_sys_stat_statfs2_fsize=no
19453else
19454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455/* end confdefs.h.  */
19456#include <sys/types.h>
19457#ifdef HAVE_SYS_PARAM_H
19458#include <sys/param.h>
19459#endif
19460#ifdef HAVE_SYS_MOUNT_H
19461#include <sys/mount.h>
19462#endif
19463int main ()
19464{
19465struct statfs fsd;
19466fsd.f_fsize = 0;
19467return (statfs (".", &fsd));
19468}
19469_ACEOF
19470if ac_fn_c_try_run "$LINENO"; then :
19471  fu_cv_sys_stat_statfs2_fsize=yes
19472else
19473  fu_cv_sys_stat_statfs2_fsize=no
19474fi
19475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19476  conftest.$ac_objext conftest.beam conftest.$ac_ext
19477fi
19478
19479fi
19480
19481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19482$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
19483if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19484space=yes
19485
19486$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
19487
19488fi
19489fi
19490
19491if test $space = no; then
19492# Ultrix
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19494$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
19495if ${fu_cv_sys_stat_fs_data+:} false; then :
19496  $as_echo_n "(cached) " >&6
19497else
19498  if test "$cross_compiling" = yes; then :
19499  fu_cv_sys_stat_fs_data=no
19500else
19501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502/* end confdefs.h.  */
19503#include <sys/types.h>
19504#ifdef HAVE_SYS_PARAM_H
19505#include <sys/param.h>
19506#endif
19507#ifdef HAVE_SYS_MOUNT_H
19508#include <sys/mount.h>
19509#endif
19510#ifdef HAVE_SYS_FS_TYPES_H
19511#include <sys/fs_types.h>
19512#endif
19513int main ()
19514{
19515struct fs_data fsd;
19516/* Ultrix's statfs returns 1 for success,
195170 for not mounted, -1 for failure.  */
19518return (statfs (".", &fsd) != 1);
19519}
19520_ACEOF
19521if ac_fn_c_try_run "$LINENO"; then :
19522  fu_cv_sys_stat_fs_data=yes
19523else
19524  fu_cv_sys_stat_fs_data=no
19525fi
19526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19527  conftest.$ac_objext conftest.beam conftest.$ac_ext
19528fi
19529
19530fi
19531
19532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
19533$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
19534if test $fu_cv_sys_stat_fs_data = yes; then
19535space=yes
19536
19537$as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
19538
19539fi
19540fi
19541
19542if test $space = no; then
19543# SVR2
19544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546#include <sys/filsys.h>
19547_ACEOF
19548if ac_fn_c_try_cpp "$LINENO"; then :
19549
19550$as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
19551
19552space=yes
19553fi
19554rm -f conftest.err conftest.i conftest.$ac_ext
19555fi
19556
19557if test -n "$list_mounted_fs" && test $space != no; then
19558DF_PROG="df"
19559# AC_LIBOBJ(fsusage)
19560# AC_LIBOBJ(mountlist)
19561fi
19562
19563# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
19564# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
19565# enable the work-around code in fsusage.c.
19566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
19567$as_echo_n "checking for statfs that truncates block counts... " >&6; }
19568if ${fu_cv_sys_truncating_statfs+:} false; then :
19569  $as_echo_n "(cached) " >&6
19570else
19571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572/* end confdefs.h.  */
19573
19574#if !defined(sun) && !defined(__sun)
19575choke -- this is a workaround for a Sun-specific problem
19576#endif
19577#include <sys/types.h>
19578#include <sys/vfs.h>
19579int
19580main ()
19581{
19582struct statfs t; long c = *(t.f_spare);
19583  ;
19584  return 0;
19585}
19586_ACEOF
19587if ac_fn_c_try_compile "$LINENO"; then :
19588  fu_cv_sys_truncating_statfs=yes
19589else
19590  fu_cv_sys_truncating_statfs=no
19591fi
19592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593fi
19594
19595if test $fu_cv_sys_truncating_statfs = yes; then
19596
19597$as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
19598
19599fi
19600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
19601$as_echo "$fu_cv_sys_truncating_statfs" >&6; }
19602
19603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AFS..." >&5
19604$as_echo "$as_me: checking for AFS..." >&6;}
19605test -d /afs &&
19606$as_echo "#define AFS 1" >>confdefs.h
19607
19608
19609
19610# Check whether --enable-debug was given.
19611if test "${enable_debug+set}" = set; then :
19612  enableval=$enable_debug;
19613$as_echo "#define LIBGTOP_ENABLE_DEBUG 1" >>confdefs.h
19614
19615else
19616
19617$as_echo "#define LIBGTOP_ENABLE_DEBUG 0" >>confdefs.h
19618
19619fi
19620
19621# Check whether --enable-fatal-warnings was given.
19622if test "${enable_fatal_warnings+set}" = set; then :
19623  enableval=$enable_fatal_warnings;
19624$as_echo "#define LIBGTOP_FATAL_WARNINGS 1" >>confdefs.h
19625
19626fi
19627
19628
19629LIBGTOP_LIBS='-L$(libdir)'
19630LIBGTOP_INCS='-I$(includedir)/libgtop-2.0'
19631
19632if test x$libgtop_have_sysinfo = xyes ; then
19633  LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
19634fi
19635
19636LIBGTOP_INCS="$LIBGTOP_INCS $GLIB_CFLAGS"
19637
19638libgtop_save_prefix="$prefix"
19639libgtop_save_exec_prefix="$exec_prefix"
19640test "x$prefix" = xNONE && prefix=$ac_default_prefix
19641test "x$exec_prefix" = xNONE && exec_prefix=$prefix
19642LIBGTOP_BINDIR=`eval echo "${bindir}"`
19643LIBGTOP_SERVER=`eval echo "${bindir}/libgtop_server2"`
19644prefix="$libgtop_save_prefix"
19645exec_prefix="$libgtop_save_exec_prefix"
19646
19647sysdeps_dir="$libgtop_sysdeps_dir"
19648
19649
19650if test -z "$LIBGTOP_EXTRA_LIBS" ; then
19651  LIBGTOP_EXTRA_LIBS="$libs_xauth"
19652else
19653  LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $libs_xauth"
19654fi
19655
19656LIBGTOP_EXTRA_LIBS="$GLIB_LIBS $LIBGTOP_EXTRA_LIBS"
19657
19658LIBGTOP_LIBS="$LIBGTOP_LIBS"
19659
19660if test "$GCC" = "yes" ; then
19661        CFLAGS="\
19662	-Winline \
19663	-Wall \
19664	-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
19665	-Wnested-externs -Wpointer-arith \
19666	-Wcast-align -Wsign-compare \
19667	$CFLAGS"
19668fi
19669
19670AM_CPPFLAGS="-I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include $GLIB_CFLAGS $X_CFLAGS"
19671
19672# Add various defines to the config.h file ...
19673
19674
19675$as_echo "#define _IN_LIBGTOP 1" >>confdefs.h
19676
19677
19678$as_echo "#define LIBGTOP_VERSION \"2.40.0\"" >>confdefs.h
19679
19680
19681$as_echo "#define LIBGTOP_SERVER_VERSION \"5\"" >>confdefs.h
19682
19683
19684$as_echo "#define LIBGTOP_VERSION_CODE 2040000" >>confdefs.h
19685
19686
19687cat >>confdefs.h <<_ACEOF
19688#define LIBGTOP_SERVER "$LIBGTOP_SERVER"
19689_ACEOF
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701if test x$libgtop_need_server = xyes ; then
19702   sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid-2.0.la"
19703   server_programs='libgtop_server2'
19704else
19705   sysdeps_suid_lib=
19706   server_programs=
19707fi
19708
19709
19710
19711
19712
19713
19714  gtk_doc_requires="gtk-doc >= 1.4"
19715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19716$as_echo_n "checking for gtk-doc... " >&6; }
19717  if test -n "$PKG_CONFIG" && \
19718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19719  ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19720  ac_status=$?
19721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19722  test $ac_status = 0; }; then
19723  have_gtk_doc=yes
19724else
19725  have_gtk_doc=no
19726fi
19727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19728$as_echo "$have_gtk_doc" >&6; }
19729
19730  if test "$have_gtk_doc" = "no"; then
19731      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19732  You will not be able to create source packages with 'make dist'
19733  because $gtk_doc_requires is not found." >&5
19734$as_echo "$as_me: WARNING:
19735  You will not be able to create source packages with 'make dist'
19736  because $gtk_doc_requires is not found." >&2;}
19737  fi
19738
19739            # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19740set dummy gtkdoc-check; ac_word=$2
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742$as_echo_n "checking for $ac_word... " >&6; }
19743if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19744  $as_echo_n "(cached) " >&6
19745else
19746  if test -n "$GTKDOC_CHECK"; then
19747  ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19748else
19749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750for as_dir in $PATH
19751do
19752  IFS=$as_save_IFS
19753  test -z "$as_dir" && as_dir=.
19754    for ac_exec_ext in '' $ac_executable_extensions; do
19755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756    ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19758    break 2
19759  fi
19760done
19761  done
19762IFS=$as_save_IFS
19763
19764fi
19765fi
19766GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19767if test -n "$GTKDOC_CHECK"; then
19768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19769$as_echo "$GTKDOC_CHECK" >&6; }
19770else
19771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772$as_echo "no" >&6; }
19773fi
19774
19775
19776  # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19777set dummy gtkdoc-check; ac_word=$2
19778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19779$as_echo_n "checking for $ac_word... " >&6; }
19780if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19781  $as_echo_n "(cached) " >&6
19782else
19783  case $GTKDOC_CHECK_PATH in
19784  [\\/]* | ?:[\\/]*)
19785  ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19786  ;;
19787  *)
19788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789for as_dir in $PATH
19790do
19791  IFS=$as_save_IFS
19792  test -z "$as_dir" && as_dir=.
19793    for ac_exec_ext in '' $ac_executable_extensions; do
19794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19795    ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19797    break 2
19798  fi
19799done
19800  done
19801IFS=$as_save_IFS
19802
19803  ;;
19804esac
19805fi
19806GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19807if test -n "$GTKDOC_CHECK_PATH"; then
19808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19809$as_echo "$GTKDOC_CHECK_PATH" >&6; }
19810else
19811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19812$as_echo "no" >&6; }
19813fi
19814
19815
19816  for ac_prog in gtkdoc-rebase
19817do
19818  # Extract the first word of "$ac_prog", so it can be a program name with args.
19819set dummy $ac_prog; ac_word=$2
19820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19821$as_echo_n "checking for $ac_word... " >&6; }
19822if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19823  $as_echo_n "(cached) " >&6
19824else
19825  case $GTKDOC_REBASE in
19826  [\\/]* | ?:[\\/]*)
19827  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19828  ;;
19829  *)
19830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19831for as_dir in $PATH
19832do
19833  IFS=$as_save_IFS
19834  test -z "$as_dir" && as_dir=.
19835    for ac_exec_ext in '' $ac_executable_extensions; do
19836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19837    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19839    break 2
19840  fi
19841done
19842  done
19843IFS=$as_save_IFS
19844
19845  ;;
19846esac
19847fi
19848GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19849if test -n "$GTKDOC_REBASE"; then
19850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19851$as_echo "$GTKDOC_REBASE" >&6; }
19852else
19853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19854$as_echo "no" >&6; }
19855fi
19856
19857
19858  test -n "$GTKDOC_REBASE" && break
19859done
19860test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19861
19862  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19863set dummy gtkdoc-mkpdf; ac_word=$2
19864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19865$as_echo_n "checking for $ac_word... " >&6; }
19866if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19867  $as_echo_n "(cached) " >&6
19868else
19869  case $GTKDOC_MKPDF in
19870  [\\/]* | ?:[\\/]*)
19871  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19872  ;;
19873  *)
19874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875for as_dir in $PATH
19876do
19877  IFS=$as_save_IFS
19878  test -z "$as_dir" && as_dir=.
19879    for ac_exec_ext in '' $ac_executable_extensions; do
19880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19881    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19883    break 2
19884  fi
19885done
19886  done
19887IFS=$as_save_IFS
19888
19889  ;;
19890esac
19891fi
19892GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19893if test -n "$GTKDOC_MKPDF"; then
19894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19895$as_echo "$GTKDOC_MKPDF" >&6; }
19896else
19897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19898$as_echo "no" >&6; }
19899fi
19900
19901
19902
19903
19904# Check whether --with-html-dir was given.
19905if test "${with_html_dir+set}" = set; then :
19906  withval=$with_html_dir;
19907else
19908  with_html_dir='${datadir}/gtk-doc/html'
19909fi
19910
19911  HTML_DIR="$with_html_dir"
19912
19913
19914    # Check whether --enable-gtk-doc was given.
19915if test "${enable_gtk_doc+set}" = set; then :
19916  enableval=$enable_gtk_doc;
19917else
19918  enable_gtk_doc=no
19919fi
19920
19921
19922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19923$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19925$as_echo "$enable_gtk_doc" >&6; }
19926
19927  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19928    as_fn_error $? "
19929  You must have $gtk_doc_requires installed to build documentation for
19930  $PACKAGE_NAME. Please install gtk-doc or disable building the
19931  documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19932  fi
19933
19934    if test "x$PACKAGE_NAME" != "xglib"; then
19935
19936pkg_failed=no
19937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19938$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19939
19940if test -n "$GTKDOC_DEPS_CFLAGS"; then
19941    pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19942 elif test -n "$PKG_CONFIG"; then
19943    if test -n "$PKG_CONFIG" && \
19944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
19945  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19946  ac_status=$?
19947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19948  test $ac_status = 0; }; then
19949  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19950		      test "x$?" != "x0" && pkg_failed=yes
19951else
19952  pkg_failed=yes
19953fi
19954 else
19955    pkg_failed=untried
19956fi
19957if test -n "$GTKDOC_DEPS_LIBS"; then
19958    pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19959 elif test -n "$PKG_CONFIG"; then
19960    if test -n "$PKG_CONFIG" && \
19961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
19962  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19963  ac_status=$?
19964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19965  test $ac_status = 0; }; then
19966  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19967		      test "x$?" != "x0" && pkg_failed=yes
19968else
19969  pkg_failed=yes
19970fi
19971 else
19972    pkg_failed=untried
19973fi
19974
19975
19976
19977if test $pkg_failed = yes; then
19978   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19979$as_echo "no" >&6; }
19980
19981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19982        _pkg_short_errors_supported=yes
19983else
19984        _pkg_short_errors_supported=no
19985fi
19986        if test $_pkg_short_errors_supported = yes; then
19987	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19988        else
19989	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19990        fi
19991	# Put the nasty error message in config.log where it belongs
19992	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19993
19994	:
19995elif test $pkg_failed = untried; then
19996     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19997$as_echo "no" >&6; }
19998	:
19999else
20000	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
20001	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
20002        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20003$as_echo "yes" >&6; }
20004
20005fi
20006  fi
20007
20008    # Check whether --enable-gtk-doc-html was given.
20009if test "${enable_gtk_doc_html+set}" = set; then :
20010  enableval=$enable_gtk_doc_html;
20011else
20012  enable_gtk_doc_html=yes
20013fi
20014
20015    # Check whether --enable-gtk-doc-pdf was given.
20016if test "${enable_gtk_doc_pdf+set}" = set; then :
20017  enableval=$enable_gtk_doc_pdf;
20018else
20019  enable_gtk_doc_pdf=no
20020fi
20021
20022
20023  if test -z "$GTKDOC_MKPDF"; then
20024    enable_gtk_doc_pdf=no
20025  fi
20026
20027  if test -z "$AM_DEFAULT_VERBOSITY"; then
20028    AM_DEFAULT_VERBOSITY=1
20029  fi
20030
20031
20032   if test x$have_gtk_doc = xyes; then
20033  HAVE_GTK_DOC_TRUE=
20034  HAVE_GTK_DOC_FALSE='#'
20035else
20036  HAVE_GTK_DOC_TRUE='#'
20037  HAVE_GTK_DOC_FALSE=
20038fi
20039
20040   if test x$enable_gtk_doc = xyes; then
20041  ENABLE_GTK_DOC_TRUE=
20042  ENABLE_GTK_DOC_FALSE='#'
20043else
20044  ENABLE_GTK_DOC_TRUE='#'
20045  ENABLE_GTK_DOC_FALSE=
20046fi
20047
20048   if test x$enable_gtk_doc_html = xyes; then
20049  GTK_DOC_BUILD_HTML_TRUE=
20050  GTK_DOC_BUILD_HTML_FALSE='#'
20051else
20052  GTK_DOC_BUILD_HTML_TRUE='#'
20053  GTK_DOC_BUILD_HTML_FALSE=
20054fi
20055
20056   if test x$enable_gtk_doc_pdf = xyes; then
20057  GTK_DOC_BUILD_PDF_TRUE=
20058  GTK_DOC_BUILD_PDF_FALSE='#'
20059else
20060  GTK_DOC_BUILD_PDF_TRUE='#'
20061  GTK_DOC_BUILD_PDF_FALSE=
20062fi
20063
20064   if test -n "$LIBTOOL"; then
20065  GTK_DOC_USE_LIBTOOL_TRUE=
20066  GTK_DOC_USE_LIBTOOL_FALSE='#'
20067else
20068  GTK_DOC_USE_LIBTOOL_TRUE='#'
20069  GTK_DOC_USE_LIBTOOL_FALSE=
20070fi
20071
20072   if test -n "$GTKDOC_REBASE"; then
20073  GTK_DOC_USE_REBASE_TRUE=
20074  GTK_DOC_USE_REBASE_FALSE='#'
20075else
20076  GTK_DOC_USE_REBASE_TRUE='#'
20077  GTK_DOC_USE_REBASE_FALSE=
20078fi
20079
20080
20081
20082ac_config_files="$ac_config_files Makefile libgtop.spec po/Makefile.in misc/Makefile include/Makefile include/glibtop/Makefile sysdeps/Makefile sysdeps/common/Makefile sysdeps/stub/Makefile sysdeps/stub_suid/Makefile sysdeps/sun4/Makefile sysdeps/osf1/Makefile sysdeps/linux/Makefile sysdeps/freebsd/Makefile sysdeps/solaris/Makefile sysdeps/aix/Makefile sysdeps/bsd/Makefile sysdeps/darwin/Makefile sysdeps/cygwin/Makefile sysdeps/openbsd/Makefile src/Makefile src/daemon/Makefile lib/Makefile examples/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml libgtop-2.0.pc libgtopconfig.h"
20083
20084
20085cat >confcache <<\_ACEOF
20086# This file is a shell script that caches the results of configure
20087# tests run on this system so they can be shared between configure
20088# scripts and configure runs, see configure's option --config-cache.
20089# It is not useful on other systems.  If it contains results you don't
20090# want to keep, you may remove or edit it.
20091#
20092# config.status only pays attention to the cache file if you give it
20093# the --recheck option to rerun configure.
20094#
20095# `ac_cv_env_foo' variables (set or unset) will be overridden when
20096# loading this file, other *unset* `ac_cv_foo' will be assigned the
20097# following values.
20098
20099_ACEOF
20100
20101# The following way of writing the cache mishandles newlines in values,
20102# but we know of no workaround that is simple, portable, and efficient.
20103# So, we kill variables containing newlines.
20104# Ultrix sh set writes to stderr and can't be redirected directly,
20105# and sets the high bit in the cache file unless we assign to the vars.
20106(
20107  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20108    eval ac_val=\$$ac_var
20109    case $ac_val in #(
20110    *${as_nl}*)
20111      case $ac_var in #(
20112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20114      esac
20115      case $ac_var in #(
20116      _ | IFS | as_nl) ;; #(
20117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20118      *) { eval $ac_var=; unset $ac_var;} ;;
20119      esac ;;
20120    esac
20121  done
20122
20123  (set) 2>&1 |
20124    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20125    *${as_nl}ac_space=\ *)
20126      # `set' does not quote correctly, so add quotes: double-quote
20127      # substitution turns \\\\ into \\, and sed turns \\ into \.
20128      sed -n \
20129	"s/'/'\\\\''/g;
20130	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20131      ;; #(
20132    *)
20133      # `set' quotes correctly as required by POSIX, so do not add quotes.
20134      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20135      ;;
20136    esac |
20137    sort
20138) |
20139  sed '
20140     /^ac_cv_env_/b end
20141     t clear
20142     :clear
20143     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20144     t end
20145     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20146     :end' >>confcache
20147if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20148  if test -w "$cache_file"; then
20149    if test "x$cache_file" != "x/dev/null"; then
20150      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20151$as_echo "$as_me: updating cache $cache_file" >&6;}
20152      if test ! -f "$cache_file" || test -h "$cache_file"; then
20153	cat confcache >"$cache_file"
20154      else
20155        case $cache_file in #(
20156        */* | ?:*)
20157	  mv -f confcache "$cache_file"$$ &&
20158	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20159        *)
20160	  mv -f confcache "$cache_file" ;;
20161	esac
20162      fi
20163    fi
20164  else
20165    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20166$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20167  fi
20168fi
20169rm -f confcache
20170
20171test "x$prefix" = xNONE && prefix=$ac_default_prefix
20172# Let make expand exec_prefix.
20173test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20174
20175DEFS=-DHAVE_CONFIG_H
20176
20177ac_libobjs=
20178ac_ltlibobjs=
20179U=
20180for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20181  # 1. Remove the extension, and $U if already installed.
20182  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20183  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20184  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20185  #    will be set to the directory where LIBOBJS objects are built.
20186  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20187  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20188done
20189LIBOBJS=$ac_libobjs
20190
20191LTLIBOBJS=$ac_ltlibobjs
20192
20193
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20195$as_echo_n "checking that generated files are newer than configure... " >&6; }
20196   if test -n "$am_sleep_pid"; then
20197     # Hide warnings about reused PIDs.
20198     wait $am_sleep_pid 2>/dev/null
20199   fi
20200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20201$as_echo "done" >&6; }
20202 if test -n "$EXEEXT"; then
20203  am__EXEEXT_TRUE=
20204  am__EXEEXT_FALSE='#'
20205else
20206  am__EXEEXT_TRUE='#'
20207  am__EXEEXT_FALSE=
20208fi
20209
20210if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
20211  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
20212Usually this means the macro was only invoked conditionally." "$LINENO" 5
20213fi
20214if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20215  as_fn_error $? "conditional \"AMDEP\" was never defined.
20216Usually this means the macro was only invoked conditionally." "$LINENO" 5
20217fi
20218if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20219  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20220Usually this means the macro was only invoked conditionally." "$LINENO" 5
20221fi
20222if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20223  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20224Usually this means the macro was only invoked conditionally." "$LINENO" 5
20225fi
20226if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20227  as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20228Usually this means the macro was only invoked conditionally." "$LINENO" 5
20229fi
20230if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
20231  as_fn_error $? "conditional \"EXAMPLES\" was never defined.
20232Usually this means the macro was only invoked conditionally." "$LINENO" 5
20233fi
20234if test -z "${HACKER_MODE_TRUE}" && test -z "${HACKER_MODE_FALSE}"; then
20235  as_fn_error $? "conditional \"HACKER_MODE\" was never defined.
20236Usually this means the macro was only invoked conditionally." "$LINENO" 5
20237fi
20238if test -z "${LIBGTOP_NEED_SERVER_TRUE}" && test -z "${LIBGTOP_NEED_SERVER_FALSE}"; then
20239  as_fn_error $? "conditional \"LIBGTOP_NEED_SERVER\" was never defined.
20240Usually this means the macro was only invoked conditionally." "$LINENO" 5
20241fi
20242if test -z "${LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_TRUE}" && test -z "${LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST_FALSE}"; then
20243  as_fn_error $? "conditional \"LIBGTOP_SYSDEPS_PRIVATE_MOUNTLIST\" was never defined.
20244Usually this means the macro was only invoked conditionally." "$LINENO" 5
20245fi
20246if test -z "${LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_TRUE}" && test -z "${LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE_FALSE}"; then
20247  as_fn_error $? "conditional \"LIBGTOP_SYSDEPS_PRIVATE_FSUSAGE\" was never defined.
20248Usually this means the macro was only invoked conditionally." "$LINENO" 5
20249fi
20250if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
20251  as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
20252Usually this means the macro was only invoked conditionally." "$LINENO" 5
20253fi
20254if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20255  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
20256Usually this means the macro was only invoked conditionally." "$LINENO" 5
20257fi
20258if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
20259  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
20260Usually this means the macro was only invoked conditionally." "$LINENO" 5
20261fi
20262if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
20263  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
20264Usually this means the macro was only invoked conditionally." "$LINENO" 5
20265fi
20266if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
20267  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20268Usually this means the macro was only invoked conditionally." "$LINENO" 5
20269fi
20270if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
20271  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
20272Usually this means the macro was only invoked conditionally." "$LINENO" 5
20273fi
20274
20275: "${CONFIG_STATUS=./config.status}"
20276ac_write_fail=0
20277ac_clean_files_save=$ac_clean_files
20278ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20279{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20280$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20281as_write_fail=0
20282cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20283#! $SHELL
20284# Generated by $as_me.
20285# Run this file to recreate the current configuration.
20286# Compiler output produced by configure, useful for debugging
20287# configure, is in config.log if it exists.
20288
20289debug=false
20290ac_cs_recheck=false
20291ac_cs_silent=false
20292
20293SHELL=\${CONFIG_SHELL-$SHELL}
20294export SHELL
20295_ASEOF
20296cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20297## -------------------- ##
20298## M4sh Initialization. ##
20299## -------------------- ##
20300
20301# Be more Bourne compatible
20302DUALCASE=1; export DUALCASE # for MKS sh
20303if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20304  emulate sh
20305  NULLCMD=:
20306  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20307  # is contrary to our usage.  Disable this feature.
20308  alias -g '${1+"$@"}'='"$@"'
20309  setopt NO_GLOB_SUBST
20310else
20311  case `(set -o) 2>/dev/null` in #(
20312  *posix*) :
20313    set -o posix ;; #(
20314  *) :
20315     ;;
20316esac
20317fi
20318
20319
20320as_nl='
20321'
20322export as_nl
20323# Printing a long string crashes Solaris 7 /usr/bin/printf.
20324as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20325as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20326as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20327# Prefer a ksh shell builtin over an external printf program on Solaris,
20328# but without wasting forks for bash or zsh.
20329if test -z "$BASH_VERSION$ZSH_VERSION" \
20330    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20331  as_echo='print -r --'
20332  as_echo_n='print -rn --'
20333elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20334  as_echo='printf %s\n'
20335  as_echo_n='printf %s'
20336else
20337  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20338    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20339    as_echo_n='/usr/ucb/echo -n'
20340  else
20341    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20342    as_echo_n_body='eval
20343      arg=$1;
20344      case $arg in #(
20345      *"$as_nl"*)
20346	expr "X$arg" : "X\\(.*\\)$as_nl";
20347	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20348      esac;
20349      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20350    '
20351    export as_echo_n_body
20352    as_echo_n='sh -c $as_echo_n_body as_echo'
20353  fi
20354  export as_echo_body
20355  as_echo='sh -c $as_echo_body as_echo'
20356fi
20357
20358# The user is always right.
20359if test "${PATH_SEPARATOR+set}" != set; then
20360  PATH_SEPARATOR=:
20361  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20362    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20363      PATH_SEPARATOR=';'
20364  }
20365fi
20366
20367
20368# IFS
20369# We need space, tab and new line, in precisely that order.  Quoting is
20370# there to prevent editors from complaining about space-tab.
20371# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20372# splitting by setting IFS to empty value.)
20373IFS=" ""	$as_nl"
20374
20375# Find who we are.  Look in the path if we contain no directory separator.
20376as_myself=
20377case $0 in #((
20378  *[\\/]* ) as_myself=$0 ;;
20379  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380for as_dir in $PATH
20381do
20382  IFS=$as_save_IFS
20383  test -z "$as_dir" && as_dir=.
20384    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20385  done
20386IFS=$as_save_IFS
20387
20388     ;;
20389esac
20390# We did not find ourselves, most probably we were run as `sh COMMAND'
20391# in which case we are not to be found in the path.
20392if test "x$as_myself" = x; then
20393  as_myself=$0
20394fi
20395if test ! -f "$as_myself"; then
20396  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20397  exit 1
20398fi
20399
20400# Unset variables that we do not need and which cause bugs (e.g. in
20401# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20402# suppresses any "Segmentation fault" message there.  '((' could
20403# trigger a bug in pdksh 5.2.14.
20404for as_var in BASH_ENV ENV MAIL MAILPATH
20405do eval test x\${$as_var+set} = xset \
20406  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20407done
20408PS1='$ '
20409PS2='> '
20410PS4='+ '
20411
20412# NLS nuisances.
20413LC_ALL=C
20414export LC_ALL
20415LANGUAGE=C
20416export LANGUAGE
20417
20418# CDPATH.
20419(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20420
20421
20422# as_fn_error STATUS ERROR [LINENO LOG_FD]
20423# ----------------------------------------
20424# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20425# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20426# script with STATUS, using 1 if that was 0.
20427as_fn_error ()
20428{
20429  as_status=$1; test $as_status -eq 0 && as_status=1
20430  if test "$4"; then
20431    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20432    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20433  fi
20434  $as_echo "$as_me: error: $2" >&2
20435  as_fn_exit $as_status
20436} # as_fn_error
20437
20438
20439# as_fn_set_status STATUS
20440# -----------------------
20441# Set $? to STATUS, without forking.
20442as_fn_set_status ()
20443{
20444  return $1
20445} # as_fn_set_status
20446
20447# as_fn_exit STATUS
20448# -----------------
20449# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20450as_fn_exit ()
20451{
20452  set +e
20453  as_fn_set_status $1
20454  exit $1
20455} # as_fn_exit
20456
20457# as_fn_unset VAR
20458# ---------------
20459# Portably unset VAR.
20460as_fn_unset ()
20461{
20462  { eval $1=; unset $1;}
20463}
20464as_unset=as_fn_unset
20465# as_fn_append VAR VALUE
20466# ----------------------
20467# Append the text in VALUE to the end of the definition contained in VAR. Take
20468# advantage of any shell optimizations that allow amortized linear growth over
20469# repeated appends, instead of the typical quadratic growth present in naive
20470# implementations.
20471if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20472  eval 'as_fn_append ()
20473  {
20474    eval $1+=\$2
20475  }'
20476else
20477  as_fn_append ()
20478  {
20479    eval $1=\$$1\$2
20480  }
20481fi # as_fn_append
20482
20483# as_fn_arith ARG...
20484# ------------------
20485# Perform arithmetic evaluation on the ARGs, and store the result in the
20486# global $as_val. Take advantage of shells that can avoid forks. The arguments
20487# must be portable across $(()) and expr.
20488if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20489  eval 'as_fn_arith ()
20490  {
20491    as_val=$(( $* ))
20492  }'
20493else
20494  as_fn_arith ()
20495  {
20496    as_val=`expr "$@" || test $? -eq 1`
20497  }
20498fi # as_fn_arith
20499
20500
20501if expr a : '\(a\)' >/dev/null 2>&1 &&
20502   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20503  as_expr=expr
20504else
20505  as_expr=false
20506fi
20507
20508if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20509  as_basename=basename
20510else
20511  as_basename=false
20512fi
20513
20514if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20515  as_dirname=dirname
20516else
20517  as_dirname=false
20518fi
20519
20520as_me=`$as_basename -- "$0" ||
20521$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20522	 X"$0" : 'X\(//\)$' \| \
20523	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20524$as_echo X/"$0" |
20525    sed '/^.*\/\([^/][^/]*\)\/*$/{
20526	    s//\1/
20527	    q
20528	  }
20529	  /^X\/\(\/\/\)$/{
20530	    s//\1/
20531	    q
20532	  }
20533	  /^X\/\(\/\).*/{
20534	    s//\1/
20535	    q
20536	  }
20537	  s/.*/./; q'`
20538
20539# Avoid depending upon Character Ranges.
20540as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20541as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20542as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20543as_cr_digits='0123456789'
20544as_cr_alnum=$as_cr_Letters$as_cr_digits
20545
20546ECHO_C= ECHO_N= ECHO_T=
20547case `echo -n x` in #(((((
20548-n*)
20549  case `echo 'xy\c'` in
20550  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20551  xy)  ECHO_C='\c';;
20552  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20553       ECHO_T='	';;
20554  esac;;
20555*)
20556  ECHO_N='-n';;
20557esac
20558
20559rm -f conf$$ conf$$.exe conf$$.file
20560if test -d conf$$.dir; then
20561  rm -f conf$$.dir/conf$$.file
20562else
20563  rm -f conf$$.dir
20564  mkdir conf$$.dir 2>/dev/null
20565fi
20566if (echo >conf$$.file) 2>/dev/null; then
20567  if ln -s conf$$.file conf$$ 2>/dev/null; then
20568    as_ln_s='ln -s'
20569    # ... but there are two gotchas:
20570    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20571    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20572    # In both cases, we have to default to `cp -pR'.
20573    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20574      as_ln_s='cp -pR'
20575  elif ln conf$$.file conf$$ 2>/dev/null; then
20576    as_ln_s=ln
20577  else
20578    as_ln_s='cp -pR'
20579  fi
20580else
20581  as_ln_s='cp -pR'
20582fi
20583rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20584rmdir conf$$.dir 2>/dev/null
20585
20586
20587# as_fn_mkdir_p
20588# -------------
20589# Create "$as_dir" as a directory, including parents if necessary.
20590as_fn_mkdir_p ()
20591{
20592
20593  case $as_dir in #(
20594  -*) as_dir=./$as_dir;;
20595  esac
20596  test -d "$as_dir" || eval $as_mkdir_p || {
20597    as_dirs=
20598    while :; do
20599      case $as_dir in #(
20600      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20601      *) as_qdir=$as_dir;;
20602      esac
20603      as_dirs="'$as_qdir' $as_dirs"
20604      as_dir=`$as_dirname -- "$as_dir" ||
20605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20606	 X"$as_dir" : 'X\(//\)[^/]' \| \
20607	 X"$as_dir" : 'X\(//\)$' \| \
20608	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20609$as_echo X"$as_dir" |
20610    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20611	    s//\1/
20612	    q
20613	  }
20614	  /^X\(\/\/\)[^/].*/{
20615	    s//\1/
20616	    q
20617	  }
20618	  /^X\(\/\/\)$/{
20619	    s//\1/
20620	    q
20621	  }
20622	  /^X\(\/\).*/{
20623	    s//\1/
20624	    q
20625	  }
20626	  s/.*/./; q'`
20627      test -d "$as_dir" && break
20628    done
20629    test -z "$as_dirs" || eval "mkdir $as_dirs"
20630  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20631
20632
20633} # as_fn_mkdir_p
20634if mkdir -p . 2>/dev/null; then
20635  as_mkdir_p='mkdir -p "$as_dir"'
20636else
20637  test -d ./-p && rmdir ./-p
20638  as_mkdir_p=false
20639fi
20640
20641
20642# as_fn_executable_p FILE
20643# -----------------------
20644# Test if FILE is an executable regular file.
20645as_fn_executable_p ()
20646{
20647  test -f "$1" && test -x "$1"
20648} # as_fn_executable_p
20649as_test_x='test -x'
20650as_executable_p=as_fn_executable_p
20651
20652# Sed expression to map a string onto a valid CPP name.
20653as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20654
20655# Sed expression to map a string onto a valid variable name.
20656as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20657
20658
20659exec 6>&1
20660## ----------------------------------- ##
20661## Main body of $CONFIG_STATUS script. ##
20662## ----------------------------------- ##
20663_ASEOF
20664test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20665
20666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20667# Save the log message, to keep $0 and so on meaningful, and to
20668# report actual input values of CONFIG_FILES etc. instead of their
20669# values after options handling.
20670ac_log="
20671This file was extended by libgtop $as_me 2.40.0, which was
20672generated by GNU Autoconf 2.69.  Invocation command line was
20673
20674  CONFIG_FILES    = $CONFIG_FILES
20675  CONFIG_HEADERS  = $CONFIG_HEADERS
20676  CONFIG_LINKS    = $CONFIG_LINKS
20677  CONFIG_COMMANDS = $CONFIG_COMMANDS
20678  $ $0 $@
20679
20680on `(hostname || uname -n) 2>/dev/null | sed 1q`
20681"
20682
20683_ACEOF
20684
20685case $ac_config_files in *"
20686"*) set x $ac_config_files; shift; ac_config_files=$*;;
20687esac
20688
20689case $ac_config_headers in *"
20690"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20691esac
20692
20693
20694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20695# Files that config.status was made for.
20696config_files="$ac_config_files"
20697config_headers="$ac_config_headers"
20698config_commands="$ac_config_commands"
20699
20700_ACEOF
20701
20702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20703ac_cs_usage="\
20704\`$as_me' instantiates files and other configuration actions
20705from templates according to the current configuration.  Unless the files
20706and actions are specified as TAGs, all are instantiated by default.
20707
20708Usage: $0 [OPTION]... [TAG]...
20709
20710  -h, --help       print this help, then exit
20711  -V, --version    print version number and configuration settings, then exit
20712      --config     print configuration, then exit
20713  -q, --quiet, --silent
20714                   do not print progress messages
20715  -d, --debug      don't remove temporary files
20716      --recheck    update $as_me by reconfiguring in the same conditions
20717      --file=FILE[:TEMPLATE]
20718                   instantiate the configuration file FILE
20719      --header=FILE[:TEMPLATE]
20720                   instantiate the configuration header FILE
20721
20722Configuration files:
20723$config_files
20724
20725Configuration headers:
20726$config_headers
20727
20728Configuration commands:
20729$config_commands
20730
20731Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop>."
20732
20733_ACEOF
20734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20735ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20736ac_cs_version="\\
20737libgtop config.status 2.40.0
20738configured by $0, generated by GNU Autoconf 2.69,
20739  with options \\"\$ac_cs_config\\"
20740
20741Copyright (C) 2012 Free Software Foundation, Inc.
20742This config.status script is free software; the Free Software Foundation
20743gives unlimited permission to copy, distribute and modify it."
20744
20745ac_pwd='$ac_pwd'
20746srcdir='$srcdir'
20747INSTALL='$INSTALL'
20748MKDIR_P='$MKDIR_P'
20749AWK='$AWK'
20750test -n "\$AWK" || AWK=awk
20751_ACEOF
20752
20753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20754# The default lists apply if the user does not specify any file.
20755ac_need_defaults=:
20756while test $# != 0
20757do
20758  case $1 in
20759  --*=?*)
20760    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20761    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20762    ac_shift=:
20763    ;;
20764  --*=)
20765    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20766    ac_optarg=
20767    ac_shift=:
20768    ;;
20769  *)
20770    ac_option=$1
20771    ac_optarg=$2
20772    ac_shift=shift
20773    ;;
20774  esac
20775
20776  case $ac_option in
20777  # Handling of the options.
20778  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20779    ac_cs_recheck=: ;;
20780  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20781    $as_echo "$ac_cs_version"; exit ;;
20782  --config | --confi | --conf | --con | --co | --c )
20783    $as_echo "$ac_cs_config"; exit ;;
20784  --debug | --debu | --deb | --de | --d | -d )
20785    debug=: ;;
20786  --file | --fil | --fi | --f )
20787    $ac_shift
20788    case $ac_optarg in
20789    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20790    '') as_fn_error $? "missing file argument" ;;
20791    esac
20792    as_fn_append CONFIG_FILES " '$ac_optarg'"
20793    ac_need_defaults=false;;
20794  --header | --heade | --head | --hea )
20795    $ac_shift
20796    case $ac_optarg in
20797    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20798    esac
20799    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20800    ac_need_defaults=false;;
20801  --he | --h)
20802    # Conflict between --help and --header
20803    as_fn_error $? "ambiguous option: \`$1'
20804Try \`$0 --help' for more information.";;
20805  --help | --hel | -h )
20806    $as_echo "$ac_cs_usage"; exit ;;
20807  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20808  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20809    ac_cs_silent=: ;;
20810
20811  # This is an error.
20812  -*) as_fn_error $? "unrecognized option: \`$1'
20813Try \`$0 --help' for more information." ;;
20814
20815  *) as_fn_append ac_config_targets " $1"
20816     ac_need_defaults=false ;;
20817
20818  esac
20819  shift
20820done
20821
20822ac_configure_extra_args=
20823
20824if $ac_cs_silent; then
20825  exec 6>/dev/null
20826  ac_configure_extra_args="$ac_configure_extra_args --silent"
20827fi
20828
20829_ACEOF
20830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831if \$ac_cs_recheck; then
20832  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20833  shift
20834  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20835  CONFIG_SHELL='$SHELL'
20836  export CONFIG_SHELL
20837  exec "\$@"
20838fi
20839
20840_ACEOF
20841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20842exec 5>>config.log
20843{
20844  echo
20845  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20846## Running $as_me. ##
20847_ASBOX
20848  $as_echo "$ac_log"
20849} >&5
20850
20851_ACEOF
20852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20853#
20854# INIT-COMMANDS
20855#
20856AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20857
20858
20859# The HP-UX ksh and POSIX shell print the target directory to stdout
20860# if CDPATH is set.
20861(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20862
20863sed_quote_subst='$sed_quote_subst'
20864double_quote_subst='$double_quote_subst'
20865delay_variable_subst='$delay_variable_subst'
20866macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20867macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20868enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20869enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20870pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20871enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20872shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20873SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20874ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20875PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20876host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20877host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20878host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20879build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20880build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20881build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20882SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20883Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20884GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20885EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20886FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20887LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20888NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20889LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20890max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20891ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20892exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20893lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20894lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20895lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20896lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20897lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20898reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20899reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20900OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20901deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20902file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20903file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20904want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20905DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20906sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20907AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20908AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20909archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20910STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20911RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20912old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20913old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20914old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20915lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20916CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20917CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20918compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20919GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20920lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20921lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20922lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20923lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20924lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20925lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20926nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20927lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20928lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20929objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20930MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20931lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20932lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20933lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20934lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20935lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20936need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20937MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20938DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20939NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20940LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20941OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20942OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20943libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20944shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20945extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20946archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20947enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20948export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20949whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20950compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20951old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20952old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20953archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20954archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20955module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20956module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20957with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20958allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20959no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20960hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20961hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20962hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20963hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20964hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20965hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20966hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20967inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20968link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20969always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20970export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20971exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20972include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20973prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20974postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20975file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20976variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20977need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20978need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20979version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20980runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20981shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20982shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20983libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20984library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20985soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20986install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20987postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20988postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20989finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20990finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20991hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20992sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20993configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20994configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20995hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20996enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20997enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20998enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20999old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21000striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21001
21002LTCC='$LTCC'
21003LTCFLAGS='$LTCFLAGS'
21004compiler='$compiler_DEFAULT'
21005
21006# A function that is used when there is no print builtin or printf.
21007func_fallback_echo ()
21008{
21009  eval 'cat <<_LTECHO_EOF
21010\$1
21011_LTECHO_EOF'
21012}
21013
21014# Quote evaled strings.
21015for var in SHELL \
21016ECHO \
21017PATH_SEPARATOR \
21018SED \
21019GREP \
21020EGREP \
21021FGREP \
21022LD \
21023NM \
21024LN_S \
21025lt_SP2NL \
21026lt_NL2SP \
21027reload_flag \
21028OBJDUMP \
21029deplibs_check_method \
21030file_magic_cmd \
21031file_magic_glob \
21032want_nocaseglob \
21033DLLTOOL \
21034sharedlib_from_linklib_cmd \
21035AR \
21036AR_FLAGS \
21037archiver_list_spec \
21038STRIP \
21039RANLIB \
21040CC \
21041CFLAGS \
21042compiler \
21043lt_cv_sys_global_symbol_pipe \
21044lt_cv_sys_global_symbol_to_cdecl \
21045lt_cv_sys_global_symbol_to_import \
21046lt_cv_sys_global_symbol_to_c_name_address \
21047lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21048lt_cv_nm_interface \
21049nm_file_list_spec \
21050lt_cv_truncate_bin \
21051lt_prog_compiler_no_builtin_flag \
21052lt_prog_compiler_pic \
21053lt_prog_compiler_wl \
21054lt_prog_compiler_static \
21055lt_cv_prog_compiler_c_o \
21056need_locks \
21057MANIFEST_TOOL \
21058DSYMUTIL \
21059NMEDIT \
21060LIPO \
21061OTOOL \
21062OTOOL64 \
21063shrext_cmds \
21064export_dynamic_flag_spec \
21065whole_archive_flag_spec \
21066compiler_needs_object \
21067with_gnu_ld \
21068allow_undefined_flag \
21069no_undefined_flag \
21070hardcode_libdir_flag_spec \
21071hardcode_libdir_separator \
21072exclude_expsyms \
21073include_expsyms \
21074file_list_spec \
21075variables_saved_for_relink \
21076libname_spec \
21077library_names_spec \
21078soname_spec \
21079install_override_mode \
21080finish_eval \
21081old_striplib \
21082striplib; do
21083    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21084    *[\\\\\\\`\\"\\\$]*)
21085      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21086      ;;
21087    *)
21088      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21089      ;;
21090    esac
21091done
21092
21093# Double-quote double-evaled strings.
21094for var in reload_cmds \
21095old_postinstall_cmds \
21096old_postuninstall_cmds \
21097old_archive_cmds \
21098extract_expsyms_cmds \
21099old_archive_from_new_cmds \
21100old_archive_from_expsyms_cmds \
21101archive_cmds \
21102archive_expsym_cmds \
21103module_cmds \
21104module_expsym_cmds \
21105export_symbols_cmds \
21106prelink_cmds \
21107postlink_cmds \
21108postinstall_cmds \
21109postuninstall_cmds \
21110finish_cmds \
21111sys_lib_search_path_spec \
21112configure_time_dlsearch_path \
21113configure_time_lt_sys_library_path; do
21114    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21115    *[\\\\\\\`\\"\\\$]*)
21116      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21117      ;;
21118    *)
21119      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21120      ;;
21121    esac
21122done
21123
21124ac_aux_dir='$ac_aux_dir'
21125
21126# See if we are running on zsh, and set the options that allow our
21127# commands through without removal of \ escapes INIT.
21128if test -n "\${ZSH_VERSION+set}"; then
21129   setopt NO_GLOB_SUBST
21130fi
21131
21132
21133    PACKAGE='$PACKAGE'
21134    VERSION='$VERSION'
21135    RM='$RM'
21136    ofile='$ofile'
21137
21138
21139
21140# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21141    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21142    # from automake < 1.5.
21143    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21144    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21145    LINGUAS="${LINGUAS-%UNSET%}"
21146
21147
21148_ACEOF
21149
21150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151
21152# Handling of arguments.
21153for ac_config_target in $ac_config_targets
21154do
21155  case $ac_config_target in
21156    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21157    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21158    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21159    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21160    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21161    "libgtop.spec") CONFIG_FILES="$CONFIG_FILES libgtop.spec" ;;
21162    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21163    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
21164    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21165    "include/glibtop/Makefile") CONFIG_FILES="$CONFIG_FILES include/glibtop/Makefile" ;;
21166    "sysdeps/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/Makefile" ;;
21167    "sysdeps/common/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/common/Makefile" ;;
21168    "sysdeps/stub/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/stub/Makefile" ;;
21169    "sysdeps/stub_suid/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/stub_suid/Makefile" ;;
21170    "sysdeps/sun4/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/sun4/Makefile" ;;
21171    "sysdeps/osf1/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/osf1/Makefile" ;;
21172    "sysdeps/linux/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/linux/Makefile" ;;
21173    "sysdeps/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/freebsd/Makefile" ;;
21174    "sysdeps/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/solaris/Makefile" ;;
21175    "sysdeps/aix/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/aix/Makefile" ;;
21176    "sysdeps/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/bsd/Makefile" ;;
21177    "sysdeps/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/darwin/Makefile" ;;
21178    "sysdeps/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/cygwin/Makefile" ;;
21179    "sysdeps/openbsd/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/openbsd/Makefile" ;;
21180    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21181    "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
21182    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21183    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21184    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21185    "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
21186    "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
21187    "libgtop-2.0.pc") CONFIG_FILES="$CONFIG_FILES libgtop-2.0.pc" ;;
21188    "libgtopconfig.h") CONFIG_FILES="$CONFIG_FILES libgtopconfig.h" ;;
21189
21190  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21191  esac
21192done
21193
21194
21195# If the user did not use the arguments to specify the items to instantiate,
21196# then the envvar interface is used.  Set only those that are not.
21197# We use the long form for the default assignment because of an extremely
21198# bizarre bug on SunOS 4.1.3.
21199if $ac_need_defaults; then
21200  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21201  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21202  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21203fi
21204
21205# Have a temporary directory for convenience.  Make it in the build tree
21206# simply because there is no reason against having it here, and in addition,
21207# creating and moving files from /tmp can sometimes cause problems.
21208# Hook for its removal unless debugging.
21209# Note that there is a small window in which the directory will not be cleaned:
21210# after its creation but before its name has been assigned to `$tmp'.
21211$debug ||
21212{
21213  tmp= ac_tmp=
21214  trap 'exit_status=$?
21215  : "${ac_tmp:=$tmp}"
21216  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21217' 0
21218  trap 'as_fn_exit 1' 1 2 13 15
21219}
21220# Create a (secure) tmp directory for tmp files.
21221
21222{
21223  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21224  test -d "$tmp"
21225}  ||
21226{
21227  tmp=./conf$$-$RANDOM
21228  (umask 077 && mkdir "$tmp")
21229} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21230ac_tmp=$tmp
21231
21232# Set up the scripts for CONFIG_FILES section.
21233# No need to generate them if there are no CONFIG_FILES.
21234# This happens for instance with `./config.status config.h'.
21235if test -n "$CONFIG_FILES"; then
21236
21237
21238ac_cr=`echo X | tr X '\015'`
21239# On cygwin, bash can eat \r inside `` if the user requested igncr.
21240# But we know of no other shell where ac_cr would be empty at this
21241# point, so we can use a bashism as a fallback.
21242if test "x$ac_cr" = x; then
21243  eval ac_cr=\$\'\\r\'
21244fi
21245ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21246if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21247  ac_cs_awk_cr='\\r'
21248else
21249  ac_cs_awk_cr=$ac_cr
21250fi
21251
21252echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21253_ACEOF
21254
21255
21256{
21257  echo "cat >conf$$subs.awk <<_ACEOF" &&
21258  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21259  echo "_ACEOF"
21260} >conf$$subs.sh ||
21261  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21262ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21263ac_delim='%!_!# '
21264for ac_last_try in false false false false false :; do
21265  . ./conf$$subs.sh ||
21266    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21267
21268  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21269  if test $ac_delim_n = $ac_delim_num; then
21270    break
21271  elif $ac_last_try; then
21272    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21273  else
21274    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21275  fi
21276done
21277rm -f conf$$subs.sh
21278
21279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21280cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21281_ACEOF
21282sed -n '
21283h
21284s/^/S["/; s/!.*/"]=/
21285p
21286g
21287s/^[^!]*!//
21288:repl
21289t repl
21290s/'"$ac_delim"'$//
21291t delim
21292:nl
21293h
21294s/\(.\{148\}\)..*/\1/
21295t more1
21296s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21297p
21298n
21299b repl
21300:more1
21301s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21302p
21303g
21304s/.\{148\}//
21305t nl
21306:delim
21307h
21308s/\(.\{148\}\)..*/\1/
21309t more2
21310s/["\\]/\\&/g; s/^/"/; s/$/"/
21311p
21312b
21313:more2
21314s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21315p
21316g
21317s/.\{148\}//
21318t delim
21319' <conf$$subs.awk | sed '
21320/^[^""]/{
21321  N
21322  s/\n//
21323}
21324' >>$CONFIG_STATUS || ac_write_fail=1
21325rm -f conf$$subs.awk
21326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21327_ACAWK
21328cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21329  for (key in S) S_is_set[key] = 1
21330  FS = ""
21331
21332}
21333{
21334  line = $ 0
21335  nfields = split(line, field, "@")
21336  substed = 0
21337  len = length(field[1])
21338  for (i = 2; i < nfields; i++) {
21339    key = field[i]
21340    keylen = length(key)
21341    if (S_is_set[key]) {
21342      value = S[key]
21343      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21344      len += length(value) + length(field[++i])
21345      substed = 1
21346    } else
21347      len += 1 + keylen
21348  }
21349
21350  print line
21351}
21352
21353_ACAWK
21354_ACEOF
21355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21356if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21357  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21358else
21359  cat
21360fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21361  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21362_ACEOF
21363
21364# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21365# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21366# trailing colons and then remove the whole line if VPATH becomes empty
21367# (actually we leave an empty line to preserve line numbers).
21368if test "x$srcdir" = x.; then
21369  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21370h
21371s///
21372s/^/:/
21373s/[	 ]*$/:/
21374s/:\$(srcdir):/:/g
21375s/:\${srcdir}:/:/g
21376s/:@srcdir@:/:/g
21377s/^:*//
21378s/:*$//
21379x
21380s/\(=[	 ]*\).*/\1/
21381G
21382s/\n//
21383s/^[^=]*=[	 ]*$//
21384}'
21385fi
21386
21387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21388fi # test -n "$CONFIG_FILES"
21389
21390# Set up the scripts for CONFIG_HEADERS section.
21391# No need to generate them if there are no CONFIG_HEADERS.
21392# This happens for instance with `./config.status Makefile'.
21393if test -n "$CONFIG_HEADERS"; then
21394cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21395BEGIN {
21396_ACEOF
21397
21398# Transform confdefs.h into an awk script `defines.awk', embedded as
21399# here-document in config.status, that substitutes the proper values into
21400# config.h.in to produce config.h.
21401
21402# Create a delimiter string that does not exist in confdefs.h, to ease
21403# handling of long lines.
21404ac_delim='%!_!# '
21405for ac_last_try in false false :; do
21406  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21407  if test -z "$ac_tt"; then
21408    break
21409  elif $ac_last_try; then
21410    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21411  else
21412    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21413  fi
21414done
21415
21416# For the awk script, D is an array of macro values keyed by name,
21417# likewise P contains macro parameters if any.  Preserve backslash
21418# newline sequences.
21419
21420ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21421sed -n '
21422s/.\{148\}/&'"$ac_delim"'/g
21423t rset
21424:rset
21425s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21426t def
21427d
21428:def
21429s/\\$//
21430t bsnl
21431s/["\\]/\\&/g
21432s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21433D["\1"]=" \3"/p
21434s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21435d
21436:bsnl
21437s/["\\]/\\&/g
21438s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21439D["\1"]=" \3\\\\\\n"\\/p
21440t cont
21441s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21442t cont
21443d
21444:cont
21445n
21446s/.\{148\}/&'"$ac_delim"'/g
21447t clear
21448:clear
21449s/\\$//
21450t bsnlc
21451s/["\\]/\\&/g; s/^/"/; s/$/"/p
21452d
21453:bsnlc
21454s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21455b cont
21456' <confdefs.h | sed '
21457s/'"$ac_delim"'/"\\\
21458"/g' >>$CONFIG_STATUS || ac_write_fail=1
21459
21460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21461  for (key in D) D_is_set[key] = 1
21462  FS = ""
21463}
21464/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21465  line = \$ 0
21466  split(line, arg, " ")
21467  if (arg[1] == "#") {
21468    defundef = arg[2]
21469    mac1 = arg[3]
21470  } else {
21471    defundef = substr(arg[1], 2)
21472    mac1 = arg[2]
21473  }
21474  split(mac1, mac2, "(") #)
21475  macro = mac2[1]
21476  prefix = substr(line, 1, index(line, defundef) - 1)
21477  if (D_is_set[macro]) {
21478    # Preserve the white space surrounding the "#".
21479    print prefix "define", macro P[macro] D[macro]
21480    next
21481  } else {
21482    # Replace #undef with comments.  This is necessary, for example,
21483    # in the case of _POSIX_SOURCE, which is predefined and required
21484    # on some systems where configure will not decide to define it.
21485    if (defundef == "undef") {
21486      print "/*", prefix defundef, macro, "*/"
21487      next
21488    }
21489  }
21490}
21491{ print }
21492_ACAWK
21493_ACEOF
21494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21495  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21496fi # test -n "$CONFIG_HEADERS"
21497
21498
21499eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21500shift
21501for ac_tag
21502do
21503  case $ac_tag in
21504  :[FHLC]) ac_mode=$ac_tag; continue;;
21505  esac
21506  case $ac_mode$ac_tag in
21507  :[FHL]*:*);;
21508  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21509  :[FH]-) ac_tag=-:-;;
21510  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21511  esac
21512  ac_save_IFS=$IFS
21513  IFS=:
21514  set x $ac_tag
21515  IFS=$ac_save_IFS
21516  shift
21517  ac_file=$1
21518  shift
21519
21520  case $ac_mode in
21521  :L) ac_source=$1;;
21522  :[FH])
21523    ac_file_inputs=
21524    for ac_f
21525    do
21526      case $ac_f in
21527      -) ac_f="$ac_tmp/stdin";;
21528      *) # Look for the file first in the build tree, then in the source tree
21529	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21530	 # because $ac_f cannot contain `:'.
21531	 test -f "$ac_f" ||
21532	   case $ac_f in
21533	   [\\/$]*) false;;
21534	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21535	   esac ||
21536	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21537      esac
21538      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21539      as_fn_append ac_file_inputs " '$ac_f'"
21540    done
21541
21542    # Let's still pretend it is `configure' which instantiates (i.e., don't
21543    # use $as_me), people would be surprised to read:
21544    #    /* config.h.  Generated by config.status.  */
21545    configure_input='Generated from '`
21546	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21547	`' by configure.'
21548    if test x"$ac_file" != x-; then
21549      configure_input="$ac_file.  $configure_input"
21550      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21551$as_echo "$as_me: creating $ac_file" >&6;}
21552    fi
21553    # Neutralize special characters interpreted by sed in replacement strings.
21554    case $configure_input in #(
21555    *\&* | *\|* | *\\* )
21556       ac_sed_conf_input=`$as_echo "$configure_input" |
21557       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21558    *) ac_sed_conf_input=$configure_input;;
21559    esac
21560
21561    case $ac_tag in
21562    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21563      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21564    esac
21565    ;;
21566  esac
21567
21568  ac_dir=`$as_dirname -- "$ac_file" ||
21569$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21570	 X"$ac_file" : 'X\(//\)[^/]' \| \
21571	 X"$ac_file" : 'X\(//\)$' \| \
21572	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21573$as_echo X"$ac_file" |
21574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21575	    s//\1/
21576	    q
21577	  }
21578	  /^X\(\/\/\)[^/].*/{
21579	    s//\1/
21580	    q
21581	  }
21582	  /^X\(\/\/\)$/{
21583	    s//\1/
21584	    q
21585	  }
21586	  /^X\(\/\).*/{
21587	    s//\1/
21588	    q
21589	  }
21590	  s/.*/./; q'`
21591  as_dir="$ac_dir"; as_fn_mkdir_p
21592  ac_builddir=.
21593
21594case "$ac_dir" in
21595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21596*)
21597  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21598  # A ".." for each directory in $ac_dir_suffix.
21599  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21600  case $ac_top_builddir_sub in
21601  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21602  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21603  esac ;;
21604esac
21605ac_abs_top_builddir=$ac_pwd
21606ac_abs_builddir=$ac_pwd$ac_dir_suffix
21607# for backward compatibility:
21608ac_top_builddir=$ac_top_build_prefix
21609
21610case $srcdir in
21611  .)  # We are building in place.
21612    ac_srcdir=.
21613    ac_top_srcdir=$ac_top_builddir_sub
21614    ac_abs_top_srcdir=$ac_pwd ;;
21615  [\\/]* | ?:[\\/]* )  # Absolute name.
21616    ac_srcdir=$srcdir$ac_dir_suffix;
21617    ac_top_srcdir=$srcdir
21618    ac_abs_top_srcdir=$srcdir ;;
21619  *) # Relative name.
21620    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21621    ac_top_srcdir=$ac_top_build_prefix$srcdir
21622    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21623esac
21624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21625
21626
21627  case $ac_mode in
21628  :F)
21629  #
21630  # CONFIG_FILE
21631  #
21632
21633  case $INSTALL in
21634  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21635  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21636  esac
21637  ac_MKDIR_P=$MKDIR_P
21638  case $MKDIR_P in
21639  [\\/$]* | ?:[\\/]* ) ;;
21640  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21641  esac
21642_ACEOF
21643
21644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21645# If the template does not know about datarootdir, expand it.
21646# FIXME: This hack should be removed a few years after 2.60.
21647ac_datarootdir_hack=; ac_datarootdir_seen=
21648ac_sed_dataroot='
21649/datarootdir/ {
21650  p
21651  q
21652}
21653/@datadir@/p
21654/@docdir@/p
21655/@infodir@/p
21656/@localedir@/p
21657/@mandir@/p'
21658case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21659*datarootdir*) ac_datarootdir_seen=yes;;
21660*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21661  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21662$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21663_ACEOF
21664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21665  ac_datarootdir_hack='
21666  s&@datadir@&$datadir&g
21667  s&@docdir@&$docdir&g
21668  s&@infodir@&$infodir&g
21669  s&@localedir@&$localedir&g
21670  s&@mandir@&$mandir&g
21671  s&\\\${datarootdir}&$datarootdir&g' ;;
21672esac
21673_ACEOF
21674
21675# Neutralize VPATH when `$srcdir' = `.'.
21676# Shell code in configure.ac might set extrasub.
21677# FIXME: do we really want to maintain this feature?
21678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21679ac_sed_extra="$ac_vpsub
21680$extrasub
21681_ACEOF
21682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21683:t
21684/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21685s|@configure_input@|$ac_sed_conf_input|;t t
21686s&@top_builddir@&$ac_top_builddir_sub&;t t
21687s&@top_build_prefix@&$ac_top_build_prefix&;t t
21688s&@srcdir@&$ac_srcdir&;t t
21689s&@abs_srcdir@&$ac_abs_srcdir&;t t
21690s&@top_srcdir@&$ac_top_srcdir&;t t
21691s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21692s&@builddir@&$ac_builddir&;t t
21693s&@abs_builddir@&$ac_abs_builddir&;t t
21694s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21695s&@INSTALL@&$ac_INSTALL&;t t
21696s&@MKDIR_P@&$ac_MKDIR_P&;t t
21697$ac_datarootdir_hack
21698"
21699eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21700  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21701
21702test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21703  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21704  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21705      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21706  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21707which seems to be undefined.  Please make sure it is defined" >&5
21708$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21709which seems to be undefined.  Please make sure it is defined" >&2;}
21710
21711  rm -f "$ac_tmp/stdin"
21712  case $ac_file in
21713  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21714  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21715  esac \
21716  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21717 ;;
21718  :H)
21719  #
21720  # CONFIG_HEADER
21721  #
21722  if test x"$ac_file" != x-; then
21723    {
21724      $as_echo "/* $configure_input  */" \
21725      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21726    } >"$ac_tmp/config.h" \
21727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21728    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21729      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21730$as_echo "$as_me: $ac_file is unchanged" >&6;}
21731    else
21732      rm -f "$ac_file"
21733      mv "$ac_tmp/config.h" "$ac_file" \
21734	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21735    fi
21736  else
21737    $as_echo "/* $configure_input  */" \
21738      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21739      || as_fn_error $? "could not create -" "$LINENO" 5
21740  fi
21741# Compute "$ac_file"'s index in $config_headers.
21742_am_arg="$ac_file"
21743_am_stamp_count=1
21744for _am_header in $config_headers :; do
21745  case $_am_header in
21746    $_am_arg | $_am_arg:* )
21747      break ;;
21748    * )
21749      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21750  esac
21751done
21752echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21753$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21754	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21755	 X"$_am_arg" : 'X\(//\)$' \| \
21756	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21757$as_echo X"$_am_arg" |
21758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21759	    s//\1/
21760	    q
21761	  }
21762	  /^X\(\/\/\)[^/].*/{
21763	    s//\1/
21764	    q
21765	  }
21766	  /^X\(\/\/\)$/{
21767	    s//\1/
21768	    q
21769	  }
21770	  /^X\(\/\).*/{
21771	    s//\1/
21772	    q
21773	  }
21774	  s/.*/./; q'`/stamp-h$_am_stamp_count
21775 ;;
21776
21777  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21778$as_echo "$as_me: executing $ac_file commands" >&6;}
21779 ;;
21780  esac
21781
21782
21783  case $ac_file$ac_mode in
21784    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21785  # Older Autoconf quotes --file arguments for eval, but not when files
21786  # are listed without --file.  Let's play safe and only enable the eval
21787  # if we detect the quoting.
21788  # TODO: see whether this extra hack can be removed once we start
21789  # requiring Autoconf 2.70 or later.
21790  case $CONFIG_FILES in #(
21791  *\'*) :
21792    eval set x "$CONFIG_FILES" ;; #(
21793  *) :
21794    set x $CONFIG_FILES ;; #(
21795  *) :
21796     ;;
21797esac
21798  shift
21799  # Used to flag and report bootstrapping failures.
21800  am_rc=0
21801  for am_mf
21802  do
21803    # Strip MF so we end up with the name of the file.
21804    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21805    # Check whether this is an Automake generated Makefile which includes
21806    # dependency-tracking related rules and includes.
21807    # Grep'ing the whole file directly is not great: AIX grep has a line
21808    # limit of 2048, but all sed's we know have understand at least 4000.
21809    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21810      || continue
21811    am_dirpart=`$as_dirname -- "$am_mf" ||
21812$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21813	 X"$am_mf" : 'X\(//\)[^/]' \| \
21814	 X"$am_mf" : 'X\(//\)$' \| \
21815	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21816$as_echo X"$am_mf" |
21817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21818	    s//\1/
21819	    q
21820	  }
21821	  /^X\(\/\/\)[^/].*/{
21822	    s//\1/
21823	    q
21824	  }
21825	  /^X\(\/\/\)$/{
21826	    s//\1/
21827	    q
21828	  }
21829	  /^X\(\/\).*/{
21830	    s//\1/
21831	    q
21832	  }
21833	  s/.*/./; q'`
21834    am_filepart=`$as_basename -- "$am_mf" ||
21835$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21836	 X"$am_mf" : 'X\(//\)$' \| \
21837	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21838$as_echo X/"$am_mf" |
21839    sed '/^.*\/\([^/][^/]*\)\/*$/{
21840	    s//\1/
21841	    q
21842	  }
21843	  /^X\/\(\/\/\)$/{
21844	    s//\1/
21845	    q
21846	  }
21847	  /^X\/\(\/\).*/{
21848	    s//\1/
21849	    q
21850	  }
21851	  s/.*/./; q'`
21852    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21853      && sed -e '/# am--include-marker/d' "$am_filepart" \
21854        | $MAKE -f - am--depfiles" >&5
21855   (cd "$am_dirpart" \
21856      && sed -e '/# am--include-marker/d' "$am_filepart" \
21857        | $MAKE -f - am--depfiles) >&5 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); } || am_rc=$?
21861  done
21862  if test $am_rc -ne 0; then
21863    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21865as_fn_error $? "Something went wrong bootstrapping makefile fragments
21866    for automatic dependency tracking.  Try re-running configure with the
21867    '--disable-dependency-tracking' option to at least be able to build
21868    the package (albeit without support for automatic dependency tracking).
21869See \`config.log' for more details" "$LINENO" 5; }
21870  fi
21871  { am_dirpart=; unset am_dirpart;}
21872  { am_filepart=; unset am_filepart;}
21873  { am_mf=; unset am_mf;}
21874  { am_rc=; unset am_rc;}
21875  rm -f conftest-deps.mk
21876}
21877 ;;
21878    "libtool":C)
21879
21880    # See if we are running on zsh, and set the options that allow our
21881    # commands through without removal of \ escapes.
21882    if test -n "${ZSH_VERSION+set}"; then
21883      setopt NO_GLOB_SUBST
21884    fi
21885
21886    cfgfile=${ofile}T
21887    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21888    $RM "$cfgfile"
21889
21890    cat <<_LT_EOF >> "$cfgfile"
21891#! $SHELL
21892# Generated automatically by $as_me ($PACKAGE) $VERSION
21893# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21894# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21895
21896# Provide generalized library-building support services.
21897# Written by Gordon Matzigkeit, 1996
21898
21899# Copyright (C) 2014 Free Software Foundation, Inc.
21900# This is free software; see the source for copying conditions.  There is NO
21901# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21902
21903# GNU Libtool is free software; you can redistribute it and/or modify
21904# it under the terms of the GNU General Public License as published by
21905# the Free Software Foundation; either version 2 of of the License, or
21906# (at your option) any later version.
21907#
21908# As a special exception to the GNU General Public License, if you
21909# distribute this file as part of a program or library that is built
21910# using GNU Libtool, you may include this file under the  same
21911# distribution terms that you use for the rest of that program.
21912#
21913# GNU Libtool is distributed in the hope that it will be useful, but
21914# WITHOUT ANY WARRANTY; without even the implied warranty of
21915# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21916# GNU General Public License for more details.
21917#
21918# You should have received a copy of the GNU General Public License
21919# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21920
21921
21922# The names of the tagged configurations supported by this script.
21923available_tags=''
21924
21925# Configured defaults for sys_lib_dlsearch_path munging.
21926: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21927
21928# ### BEGIN LIBTOOL CONFIG
21929
21930# Which release of libtool.m4 was used?
21931macro_version=$macro_version
21932macro_revision=$macro_revision
21933
21934# Whether or not to build shared libraries.
21935build_libtool_libs=$enable_shared
21936
21937# Whether or not to build static libraries.
21938build_old_libs=$enable_static
21939
21940# What type of objects to build.
21941pic_mode=$pic_mode
21942
21943# Whether or not to optimize for fast installation.
21944fast_install=$enable_fast_install
21945
21946# Shared archive member basename,for filename based shared library versioning on AIX.
21947shared_archive_member_spec=$shared_archive_member_spec
21948
21949# Shell to use when invoking shell scripts.
21950SHELL=$lt_SHELL
21951
21952# An echo program that protects backslashes.
21953ECHO=$lt_ECHO
21954
21955# The PATH separator for the build system.
21956PATH_SEPARATOR=$lt_PATH_SEPARATOR
21957
21958# The host system.
21959host_alias=$host_alias
21960host=$host
21961host_os=$host_os
21962
21963# The build system.
21964build_alias=$build_alias
21965build=$build
21966build_os=$build_os
21967
21968# A sed program that does not truncate output.
21969SED=$lt_SED
21970
21971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21972Xsed="\$SED -e 1s/^X//"
21973
21974# A grep program that handles long lines.
21975GREP=$lt_GREP
21976
21977# An ERE matcher.
21978EGREP=$lt_EGREP
21979
21980# A literal string matcher.
21981FGREP=$lt_FGREP
21982
21983# A BSD- or MS-compatible name lister.
21984NM=$lt_NM
21985
21986# Whether we need soft or hard links.
21987LN_S=$lt_LN_S
21988
21989# What is the maximum length of a command?
21990max_cmd_len=$max_cmd_len
21991
21992# Object file suffix (normally "o").
21993objext=$ac_objext
21994
21995# Executable file suffix (normally "").
21996exeext=$exeext
21997
21998# whether the shell understands "unset".
21999lt_unset=$lt_unset
22000
22001# turn spaces into newlines.
22002SP2NL=$lt_lt_SP2NL
22003
22004# turn newlines into spaces.
22005NL2SP=$lt_lt_NL2SP
22006
22007# convert \$build file names to \$host format.
22008to_host_file_cmd=$lt_cv_to_host_file_cmd
22009
22010# convert \$build files to toolchain format.
22011to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22012
22013# An object symbol dumper.
22014OBJDUMP=$lt_OBJDUMP
22015
22016# Method to check whether dependent libraries are shared objects.
22017deplibs_check_method=$lt_deplibs_check_method
22018
22019# Command to use when deplibs_check_method = "file_magic".
22020file_magic_cmd=$lt_file_magic_cmd
22021
22022# How to find potential files when deplibs_check_method = "file_magic".
22023file_magic_glob=$lt_file_magic_glob
22024
22025# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22026want_nocaseglob=$lt_want_nocaseglob
22027
22028# DLL creation program.
22029DLLTOOL=$lt_DLLTOOL
22030
22031# Command to associate shared and link libraries.
22032sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22033
22034# The archiver.
22035AR=$lt_AR
22036
22037# Flags to create an archive.
22038AR_FLAGS=$lt_AR_FLAGS
22039
22040# How to feed a file listing to the archiver.
22041archiver_list_spec=$lt_archiver_list_spec
22042
22043# A symbol stripping program.
22044STRIP=$lt_STRIP
22045
22046# Commands used to install an old-style archive.
22047RANLIB=$lt_RANLIB
22048old_postinstall_cmds=$lt_old_postinstall_cmds
22049old_postuninstall_cmds=$lt_old_postuninstall_cmds
22050
22051# Whether to use a lock for old archive extraction.
22052lock_old_archive_extraction=$lock_old_archive_extraction
22053
22054# A C compiler.
22055LTCC=$lt_CC
22056
22057# LTCC compiler flags.
22058LTCFLAGS=$lt_CFLAGS
22059
22060# Take the output of nm and produce a listing of raw symbols and C names.
22061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22062
22063# Transform the output of nm in a proper C declaration.
22064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22065
22066# Transform the output of nm into a list of symbols to manually relocate.
22067global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22068
22069# Transform the output of nm in a C name address pair.
22070global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22071
22072# Transform the output of nm in a C name address pair when lib prefix is needed.
22073global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22074
22075# The name lister interface.
22076nm_interface=$lt_lt_cv_nm_interface
22077
22078# Specify filename containing input files for \$NM.
22079nm_file_list_spec=$lt_nm_file_list_spec
22080
22081# The root where to search for dependent libraries,and where our libraries should be installed.
22082lt_sysroot=$lt_sysroot
22083
22084# Command to truncate a binary pipe.
22085lt_truncate_bin=$lt_lt_cv_truncate_bin
22086
22087# The name of the directory that contains temporary libtool files.
22088objdir=$objdir
22089
22090# Used to examine libraries when file_magic_cmd begins with "file".
22091MAGIC_CMD=$MAGIC_CMD
22092
22093# Must we lock files when doing compilation?
22094need_locks=$lt_need_locks
22095
22096# Manifest tool.
22097MANIFEST_TOOL=$lt_MANIFEST_TOOL
22098
22099# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22100DSYMUTIL=$lt_DSYMUTIL
22101
22102# Tool to change global to local symbols on Mac OS X.
22103NMEDIT=$lt_NMEDIT
22104
22105# Tool to manipulate fat objects and archives on Mac OS X.
22106LIPO=$lt_LIPO
22107
22108# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22109OTOOL=$lt_OTOOL
22110
22111# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22112OTOOL64=$lt_OTOOL64
22113
22114# Old archive suffix (normally "a").
22115libext=$libext
22116
22117# Shared library suffix (normally ".so").
22118shrext_cmds=$lt_shrext_cmds
22119
22120# The commands to extract the exported symbol list from a shared archive.
22121extract_expsyms_cmds=$lt_extract_expsyms_cmds
22122
22123# Variables whose values should be saved in libtool wrapper scripts and
22124# restored at link time.
22125variables_saved_for_relink=$lt_variables_saved_for_relink
22126
22127# Do we need the "lib" prefix for modules?
22128need_lib_prefix=$need_lib_prefix
22129
22130# Do we need a version for libraries?
22131need_version=$need_version
22132
22133# Library versioning type.
22134version_type=$version_type
22135
22136# Shared library runtime path variable.
22137runpath_var=$runpath_var
22138
22139# Shared library path variable.
22140shlibpath_var=$shlibpath_var
22141
22142# Is shlibpath searched before the hard-coded library search path?
22143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22144
22145# Format of library name prefix.
22146libname_spec=$lt_libname_spec
22147
22148# List of archive names.  First name is the real one, the rest are links.
22149# The last name is the one that the linker finds with -lNAME
22150library_names_spec=$lt_library_names_spec
22151
22152# The coded name of the library, if different from the real name.
22153soname_spec=$lt_soname_spec
22154
22155# Permission mode override for installation of shared libraries.
22156install_override_mode=$lt_install_override_mode
22157
22158# Command to use after installation of a shared archive.
22159postinstall_cmds=$lt_postinstall_cmds
22160
22161# Command to use after uninstallation of a shared archive.
22162postuninstall_cmds=$lt_postuninstall_cmds
22163
22164# Commands used to finish a libtool library installation in a directory.
22165finish_cmds=$lt_finish_cmds
22166
22167# As "finish_cmds", except a single script fragment to be evaled but
22168# not shown.
22169finish_eval=$lt_finish_eval
22170
22171# Whether we should hardcode library paths into libraries.
22172hardcode_into_libs=$hardcode_into_libs
22173
22174# Compile-time system search path for libraries.
22175sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22176
22177# Detected run-time system search path for libraries.
22178sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22179
22180# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22181configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22182
22183# Whether dlopen is supported.
22184dlopen_support=$enable_dlopen
22185
22186# Whether dlopen of programs is supported.
22187dlopen_self=$enable_dlopen_self
22188
22189# Whether dlopen of statically linked programs is supported.
22190dlopen_self_static=$enable_dlopen_self_static
22191
22192# Commands to strip libraries.
22193old_striplib=$lt_old_striplib
22194striplib=$lt_striplib
22195
22196
22197# The linker used to build libraries.
22198LD=$lt_LD
22199
22200# How to create reloadable object files.
22201reload_flag=$lt_reload_flag
22202reload_cmds=$lt_reload_cmds
22203
22204# Commands used to build an old-style archive.
22205old_archive_cmds=$lt_old_archive_cmds
22206
22207# A language specific compiler.
22208CC=$lt_compiler
22209
22210# Is the compiler the GNU compiler?
22211with_gcc=$GCC
22212
22213# Compiler flag to turn off builtin functions.
22214no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22215
22216# Additional compiler flags for building library objects.
22217pic_flag=$lt_lt_prog_compiler_pic
22218
22219# How to pass a linker flag through the compiler.
22220wl=$lt_lt_prog_compiler_wl
22221
22222# Compiler flag to prevent dynamic linking.
22223link_static_flag=$lt_lt_prog_compiler_static
22224
22225# Does compiler simultaneously support -c and -o options?
22226compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22227
22228# Whether or not to add -lc for building shared libraries.
22229build_libtool_need_lc=$archive_cmds_need_lc
22230
22231# Whether or not to disallow shared libs when runtime libs are static.
22232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22233
22234# Compiler flag to allow reflexive dlopens.
22235export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22236
22237# Compiler flag to generate shared objects directly from archives.
22238whole_archive_flag_spec=$lt_whole_archive_flag_spec
22239
22240# Whether the compiler copes with passing no objects directly.
22241compiler_needs_object=$lt_compiler_needs_object
22242
22243# Create an old-style archive from a shared archive.
22244old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22245
22246# Create a temporary old-style archive to link instead of a shared archive.
22247old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22248
22249# Commands used to build a shared archive.
22250archive_cmds=$lt_archive_cmds
22251archive_expsym_cmds=$lt_archive_expsym_cmds
22252
22253# Commands used to build a loadable module if different from building
22254# a shared archive.
22255module_cmds=$lt_module_cmds
22256module_expsym_cmds=$lt_module_expsym_cmds
22257
22258# Whether we are building with GNU ld or not.
22259with_gnu_ld=$lt_with_gnu_ld
22260
22261# Flag that allows shared libraries with undefined symbols to be built.
22262allow_undefined_flag=$lt_allow_undefined_flag
22263
22264# Flag that enforces no undefined symbols.
22265no_undefined_flag=$lt_no_undefined_flag
22266
22267# Flag to hardcode \$libdir into a binary during linking.
22268# This must work even if \$libdir does not exist
22269hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22270
22271# Whether we need a single "-rpath" flag with a separated argument.
22272hardcode_libdir_separator=$lt_hardcode_libdir_separator
22273
22274# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22275# DIR into the resulting binary.
22276hardcode_direct=$hardcode_direct
22277
22278# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22279# DIR into the resulting binary and the resulting library dependency is
22280# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22281# library is relocated.
22282hardcode_direct_absolute=$hardcode_direct_absolute
22283
22284# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22285# into the resulting binary.
22286hardcode_minus_L=$hardcode_minus_L
22287
22288# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22289# into the resulting binary.
22290hardcode_shlibpath_var=$hardcode_shlibpath_var
22291
22292# Set to "yes" if building a shared library automatically hardcodes DIR
22293# into the library and all subsequent libraries and executables linked
22294# against it.
22295hardcode_automatic=$hardcode_automatic
22296
22297# Set to yes if linker adds runtime paths of dependent libraries
22298# to runtime path list.
22299inherit_rpath=$inherit_rpath
22300
22301# Whether libtool must link a program against all its dependency libraries.
22302link_all_deplibs=$link_all_deplibs
22303
22304# Set to "yes" if exported symbols are required.
22305always_export_symbols=$always_export_symbols
22306
22307# The commands to list exported symbols.
22308export_symbols_cmds=$lt_export_symbols_cmds
22309
22310# Symbols that should not be listed in the preloaded symbols.
22311exclude_expsyms=$lt_exclude_expsyms
22312
22313# Symbols that must always be exported.
22314include_expsyms=$lt_include_expsyms
22315
22316# Commands necessary for linking programs (against libraries) with templates.
22317prelink_cmds=$lt_prelink_cmds
22318
22319# Commands necessary for finishing linking programs.
22320postlink_cmds=$lt_postlink_cmds
22321
22322# Specify filename containing input files.
22323file_list_spec=$lt_file_list_spec
22324
22325# How to hardcode a shared library path into an executable.
22326hardcode_action=$hardcode_action
22327
22328# ### END LIBTOOL CONFIG
22329
22330_LT_EOF
22331
22332    cat <<'_LT_EOF' >> "$cfgfile"
22333
22334# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22335
22336# func_munge_path_list VARIABLE PATH
22337# -----------------------------------
22338# VARIABLE is name of variable containing _space_ separated list of
22339# directories to be munged by the contents of PATH, which is string
22340# having a format:
22341# "DIR[:DIR]:"
22342#       string "DIR[ DIR]" will be prepended to VARIABLE
22343# ":DIR[:DIR]"
22344#       string "DIR[ DIR]" will be appended to VARIABLE
22345# "DIRP[:DIRP]::[DIRA:]DIRA"
22346#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22347#       "DIRA[ DIRA]" will be appended to VARIABLE
22348# "DIR[:DIR]"
22349#       VARIABLE will be replaced by "DIR[ DIR]"
22350func_munge_path_list ()
22351{
22352    case x$2 in
22353    x)
22354        ;;
22355    *:)
22356        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22357        ;;
22358    x:*)
22359        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22360        ;;
22361    *::*)
22362        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22363        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22364        ;;
22365    *)
22366        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22367        ;;
22368    esac
22369}
22370
22371
22372# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22373func_cc_basename ()
22374{
22375    for cc_temp in $*""; do
22376      case $cc_temp in
22377        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22378        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22379        \-*) ;;
22380        *) break;;
22381      esac
22382    done
22383    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22384}
22385
22386
22387# ### END FUNCTIONS SHARED WITH CONFIGURE
22388
22389_LT_EOF
22390
22391  case $host_os in
22392  aix3*)
22393    cat <<\_LT_EOF >> "$cfgfile"
22394# AIX sometimes has problems with the GCC collect2 program.  For some
22395# reason, if we set the COLLECT_NAMES environment variable, the problems
22396# vanish in a puff of smoke.
22397if test set != "${COLLECT_NAMES+set}"; then
22398  COLLECT_NAMES=
22399  export COLLECT_NAMES
22400fi
22401_LT_EOF
22402    ;;
22403  esac
22404
22405
22406ltmain=$ac_aux_dir/ltmain.sh
22407
22408
22409  # We use sed instead of cat because bash on DJGPP gets confused if
22410  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22411  # text mode, it properly converts lines to CR/LF.  This bash problem
22412  # is reportedly fixed, but why not run on old versions too?
22413  sed '$q' "$ltmain" >> "$cfgfile" \
22414     || (rm -f "$cfgfile"; exit 1)
22415
22416   mv -f "$cfgfile" "$ofile" ||
22417    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22418  chmod +x "$ofile"
22419
22420 ;;
22421    "po-directories":C)
22422    for ac_file in $CONFIG_FILES; do
22423      # Support "outfile[:infile[:infile...]]"
22424      case "$ac_file" in
22425        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22426      esac
22427      # PO directories have a Makefile.in generated from Makefile.in.in.
22428      case "$ac_file" in */Makefile.in)
22429        # Adjust a relative srcdir.
22430        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22431        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22432        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22433        # In autoconf-2.13 it is called $ac_given_srcdir.
22434        # In autoconf-2.50 it is called $srcdir.
22435        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22436        case "$ac_given_srcdir" in
22437          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22438          /*) top_srcdir="$ac_given_srcdir" ;;
22439          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22440        esac
22441        # Treat a directory as a PO directory if and only if it has a
22442        # POTFILES.in file. This allows packages to have multiple PO
22443        # directories under different names or in different locations.
22444        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22445          rm -f "$ac_dir/POTFILES"
22446          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22447          gt_tab=`printf '\t'`
22448          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22449          POMAKEFILEDEPS="POTFILES.in"
22450          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22451          # on $ac_dir but don't depend on user-specified configuration
22452          # parameters.
22453          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22454            # The LINGUAS file contains the set of available languages.
22455            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22456              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22457            fi
22458            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22459            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22460            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22461            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22462          else
22463            # The set of available languages was given in configure.in.
22464            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22465            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22466          fi
22467          # Compute POFILES
22468          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22469          # Compute UPDATEPOFILES
22470          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22471          # Compute DUMMYPOFILES
22472          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22473          # Compute GMOFILES
22474          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22475          case "$ac_given_srcdir" in
22476            .) srcdirpre= ;;
22477            *) srcdirpre='$(srcdir)/' ;;
22478          esac
22479          POFILES=
22480          UPDATEPOFILES=
22481          DUMMYPOFILES=
22482          GMOFILES=
22483          for lang in $ALL_LINGUAS; do
22484            POFILES="$POFILES $srcdirpre$lang.po"
22485            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22486            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22487            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22488          done
22489          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22490          # environment variable.
22491          INST_LINGUAS=
22492          if test -n "$ALL_LINGUAS"; then
22493            for presentlang in $ALL_LINGUAS; do
22494              useit=no
22495              if test "%UNSET%" != "$LINGUAS"; then
22496                desiredlanguages="$LINGUAS"
22497              else
22498                desiredlanguages="$ALL_LINGUAS"
22499              fi
22500              for desiredlang in $desiredlanguages; do
22501                # Use the presentlang catalog if desiredlang is
22502                #   a. equal to presentlang, or
22503                #   b. a variant of presentlang (because in this case,
22504                #      presentlang can be used as a fallback for messages
22505                #      which are not translated in the desiredlang catalog).
22506                case "$desiredlang" in
22507                  "$presentlang"*) useit=yes;;
22508                esac
22509              done
22510              if test $useit = yes; then
22511                INST_LINGUAS="$INST_LINGUAS $presentlang"
22512              fi
22513            done
22514          fi
22515          CATALOGS=
22516          if test -n "$INST_LINGUAS"; then
22517            for lang in $INST_LINGUAS; do
22518              CATALOGS="$CATALOGS $lang.gmo"
22519            done
22520          fi
22521          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22522          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"
22523          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22524            if test -f "$f"; then
22525              case "$f" in
22526                *.orig | *.bak | *~) ;;
22527                *) cat "$f" >> "$ac_dir/Makefile" ;;
22528              esac
22529            fi
22530          done
22531        fi
22532        ;;
22533      esac
22534    done ;;
22535
22536  esac
22537done # for ac_tag
22538
22539
22540as_fn_exit 0
22541_ACEOF
22542ac_clean_files=$ac_clean_files_save
22543
22544test $ac_write_fail = 0 ||
22545  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22546
22547
22548# configure is writing to config.log, and then calls config.status.
22549# config.status does its own redirection, appending to config.log.
22550# Unfortunately, on DOS this fails, as config.log is still kept open
22551# by configure, so config.status won't be able to write to it; its
22552# output is simply discarded.  So we exec the FD to /dev/null,
22553# effectively closing config.log, so it can be properly (re)opened and
22554# appended to by config.status.  When coming back to configure, we
22555# need to make the FD available again.
22556if test "$no_create" != yes; then
22557  ac_cs_success=:
22558  ac_config_status_args=
22559  test "$silent" = yes &&
22560    ac_config_status_args="$ac_config_status_args --quiet"
22561  exec 5>/dev/null
22562  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22563  exec 5>>config.log
22564  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22565  # would make configure fail if this is the last instruction.
22566  $ac_cs_success || as_fn_exit 1
22567fi
22568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22570$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22571fi
22572
22573