Changeset 2404


Ignore:
Timestamp:
Jul 18, 2007, 11:20:27 PM (15 years ago)
Author:
charles
Message:

update configure and aclocal.m4 to make it easier to use the automake configure script from svn

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    </
    r2390 r2404  
    11#! /bin/sh
     2# Guess values for system-dependent variables and create Makefiles.
     3# Generated by GNU Autoconf 2.59 for Transmission 0.72Z.
    24#
    3 # $Id$
    4 
     5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=Pan>.
    56#
    6 # Default settings
     7# Copyright (C) 2003 Free Software Foundation, Inc.
     8# This configure script is free software; the Free Software Foundation
     9# gives unlimited permission to copy, distribute and modify it.
     10## --------------------- ##
     11## M4sh Initialization.  ##
     12## --------------------- ##
     13
     14# Be Bourne compatible
     15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     16  emulate sh
     17  NULLCMD=:
     18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     19  # is contrary to our usage.  Disable this feature.
     20  alias -g '${1+"$@"}'='"$@"'
     21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22  set -o posix
     23fi
     24DUALCASE=1; export DUALCASE # for MKS sh
     25
     26# Support unset when possible.
     27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     28  as_unset=unset
     29else
     30  as_unset=false
     31fi
     32
     33
     34# Work around bugs in pre-3.0 UWIN ksh.
     35$as_unset ENV MAIL MAILPATH
     36PS1='$ '
     37PS2='> '
     38PS4='+ '
     39
     40# NLS nuisances.
     41for as_var in \
     42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     44  LC_TELEPHONE LC_TIME
     45do
     46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     47    eval $as_var=C; export $as_var
     48  else
     49    $as_unset $as_var
     50  fi
     51done
     52
     53# Required to use basename.
     54if expr a : '\(a\)' >/dev/null 2>&1; then
     55  as_expr=expr
     56else
     57  as_expr=false
     58fi
     59
     60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     61  as_basename=basename
     62else
     63  as_basename=false
     64fi
     65
     66
     67# Name of the executable.
     68as_me=`$as_basename "$0" ||
     69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     70         X"$0" : 'X\(//\)$' \| \
     71         X"$0" : 'X\(/\)$' \| \
     72         .     : '\(.\)' 2>/dev/null ||
     73echo X/"$0" |
     74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     75          /^X\/\(\/\/\)$/{ s//\1/; q; }
     76          /^X\/\(\/\).*/{ s//\1/; q; }
     77          s/.*/./; q'`
     78
     79
     80# PATH needs CR, and LINENO needs CR and PATH.
     81# Avoid depending upon Character Ranges.
     82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     85as_cr_digits='0123456789'
     86as_cr_alnum=$as_cr_Letters$as_cr_digits
     87
     88# The user is always right.
     89if test "${PATH_SEPARATOR+set}" != set; then
     90  echo "#! /bin/sh" >conf$$.sh
     91  echo  "exit 0"   >>conf$$.sh
     92  chmod +x conf$$.sh
     93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     94    PATH_SEPARATOR=';'
     95  else
     96    PATH_SEPARATOR=:
     97  fi
     98  rm -f conf$$.sh
     99fi
     100
     101
     102  as_lineno_1=$LINENO
     103  as_lineno_2=$LINENO
     104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     105  test "x$as_lineno_1" != "x$as_lineno_2" &&
     106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     107  # Find who we are.  Look in the path if we contain no path at all
     108  # relative or not.
     109  case $0 in
     110    *[\\/]* ) as_myself=$0 ;;
     111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     112for as_dir in $PATH
     113do
     114  IFS=$as_save_IFS
     115  test -z "$as_dir" && as_dir=.
     116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     117done
     118
     119       ;;
     120  esac
     121  # We did not find ourselves, most probably we were run as `sh COMMAND'
     122  # in which case we are not to be found in the path.
     123  if test "x$as_myself" = x; then
     124    as_myself=$0
     125  fi
     126  if test ! -f "$as_myself"; then
     127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     128   { (exit 1); exit 1; }; }
     129  fi
     130  case $CONFIG_SHELL in
     131  '')
     132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     134do
     135  IFS=$as_save_IFS
     136  test -z "$as_dir" && as_dir=.
     137  for as_base in sh bash ksh sh5; do
     138         case $as_dir in
     139         /*)
     140           if ("$as_dir/$as_base" -c '
     141  as_lineno_1=$LINENO
     142  as_lineno_2=$LINENO
     143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     144  test "x$as_lineno_1" != "x$as_lineno_2" &&
     145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     148             CONFIG_SHELL=$as_dir/$as_base
     149             export CONFIG_SHELL
     150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     151           fi;;
     152         esac
     153       done
     154done
     155;;
     156  esac
     157
     158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
     159  # uniformly replaced by the line number.  The first 'sed' inserts a
     160  # line-number line before each line; the second 'sed' does the real
     161  # work.  The second script uses 'N' to pair each line-number line
     162  # with the numbered line, and appends trailing '-' during
     163  # substitution so that $LINENO is not a special case at line end.
     164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
     165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     166  sed '=' <$as_myself |
     167    sed '
     168      N
     169      s,$,-,
     170      : loop
     171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     172      t loop
     173      s,-$,,
     174      s,^['$as_cr_digits']*\n,,
     175    ' >$as_me.lineno &&
     176  chmod +x $as_me.lineno ||
     177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
     178   { (exit 1); exit 1; }; }
     179
     180  # Don't try to exec as it changes $[0], causing all sort of problems
     181  # (the dirname of $[0] is not the place where we might find the
     182  # original and so on.  Autoconf is especially sensible to this).
     183  . ./$as_me.lineno
     184  # Exit status is that of the last command.
     185  exit
     186}
     187
     188
     189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     190  *c*,-n*) ECHO_N= ECHO_C='
     191' ECHO_T='      ' ;;
     192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     194esac
     195
     196if expr a : '\(a\)' >/dev/null 2>&1; then
     197  as_expr=expr
     198else
     199  as_expr=false
     200fi
     201
     202rm -f conf$$ conf$$.exe conf$$.file
     203echo >conf$$.file
     204if ln -s conf$$.file conf$$ 2>/dev/null; then
     205  # We could just check for DJGPP; but this test a) works b) is more generic
     206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     207  if test -f conf$$.exe; then
     208    # Don't use ln at all; we don't have any links
     209    as_ln_s='cp -p'
     210  else
     211    as_ln_s='ln -s'
     212  fi
     213elif ln conf$$.file conf$$ 2>/dev/null; then
     214  as_ln_s=ln
     215else
     216  as_ln_s='cp -p'
     217fi
     218rm -f conf$$ conf$$.exe conf$$.file
     219
     220if mkdir -p . 2>/dev/null; then
     221  as_mkdir_p=:
     222else
     223  test -d ./-p && rmdir ./-p
     224  as_mkdir_p=false
     225fi
     226
     227as_executable_p="test -f"
     228
     229# Sed expression to map a string onto a valid CPP name.
     230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     231
     232# Sed expression to map a string onto a valid variable name.
     233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     234
     235
     236# IFS
     237# We need space, tab and new line, in precisely that order.
     238as_nl='
     239'
     240IFS="   $as_nl"
     241
     242# CDPATH.
     243$as_unset CDPATH
     244
     245
     246# Name of the host.
     247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     248# so uname gets run too.
     249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     250
     251exec 6>&1
     252
    7253#
    8 SYSTEM=
    9 BEOS_NETSERVER=no
    10 BEOS_OLDCC=no
    11 MATH=no
    12 PTHREAD=no
    13 OPENSSL=
    14 GTK=
    15 LIBEVENT=
    16 PREFIX=/usr/local
    17 CC="${CC-cc}"
    18 CFLAGS="${CFLAGS}"
    19 CXX="${CXX-c++}"
    20 CXXFLAGS="${CXXFLAGS}"
    21 LDFLAGS="${LDFLAGS}"
    22 VERBOSE=no
    23 
     254# Initializations.
    24255#
    25 # Functions
     256ac_default_prefix=/usr/local
     257ac_config_libobj_dir=.
     258cross_compiling=no
     259subdirs=
     260MFLAGS=
     261MAKEFLAGS=
     262SHELL=${CONFIG_SHELL-/bin/sh}
     263
     264# Maximum number of lines to put in a shell here document.
     265# This variable seems obsolete.  It should probably be removed, and
     266# only ac_max_sed_lines should be used.
     267: ${ac_max_here_lines=38}
     268
     269# Identity of this package.
     270PACKAGE_NAME='Transmission'
     271PACKAGE_TARNAME='transmission'
     272PACKAGE_VERSION='0.72Z'
     273PACKAGE_STRING='Transmission 0.72Z'
     274PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=Pan'
     275
     276ac_unique_file="libtransmission/transmission.h"
     277# Factoring default headers for most tests.
     278ac_includes_default="\
     279#include <stdio.h>
     280#if HAVE_SYS_TYPES_H
     281# include <sys/types.h>
     282#endif
     283#if HAVE_SYS_STAT_H
     284# include <sys/stat.h>
     285#endif
     286#if STDC_HEADERS
     287# include <stdlib.h>
     288# include <stddef.h>
     289#else
     290# if HAVE_STDLIB_H
     291#  include <stdlib.h>
     292# endif
     293#endif
     294#if HAVE_STRING_H
     295# if !STDC_HEADERS && HAVE_MEMORY_H
     296#  include <memory.h>
     297# endif
     298# include <string.h>
     299#endif
     300#if HAVE_STRINGS_H
     301# include <strings.h>
     302#endif
     303#if HAVE_INTTYPES_H
     304# include <inttypes.h>
     305#else
     306# if HAVE_STDINT_H
     307#  include <stdint.h>
     308# endif
     309#endif
     310#if HAVE_UNISTD_H
     311# include <unistd.h>
     312#endif"
     313
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GLIB_MINIMUM GTK_MINIMUM WX_MINIMUM CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS WITH_LIBEVENT_TRUE WITH_LIBEVENT_FALSE PKG_CONFIG GTK_CFLAGS GTK_LIBS ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS WITH_GTK_TRUE WITH_GTK_FALSE WINDRES HAVE_BEOS_TRUE HAVE_BEOS_FALSE HAVE_DARWIN_TRUE HAVE_DARWIN_FALSE HAVE_WINDOWS_TRUE HAVE_WINDOWS_FALSE VERSION_MAJOR VERSION_MINOR VERSION_MAINTENANCE VERSION_REVISION VERSION_BETA VERSION_STRING VERSION_STRING_LONG BUNDLE_VERSION VERSION_PACKAGE LIBOBJS LTLIBOBJS'
     315ac_subst_files=''
     316
     317# Initialize some variables set by options.
     318ac_init_help=
     319ac_init_version=false
     320# The variables have the same names as the options, with
     321# dashes changed to underlines.
     322cache_file=/dev/null
     323exec_prefix=NONE
     324no_create=
     325no_recursion=
     326prefix=NONE
     327program_prefix=NONE
     328program_suffix=NONE
     329program_transform_name=s,x,x,
     330silent=
     331site=
     332srcdir=
     333verbose=
     334x_includes=NONE
     335x_libraries=NONE
     336
     337# Installation directory options.
     338# These are left unexpanded so users can "make install exec_prefix=/foo"
     339# and all the variables that are supposed to be based on exec_prefix
     340# by default will actually change.
     341# Use braces instead of parens because sh, perl, etc. also accept them.
     342bindir='${exec_prefix}/bin'
     343sbindir='${exec_prefix}/sbin'
     344libexecdir='${exec_prefix}/libexec'
     345datadir='${prefix}/share'
     346sysconfdir='${prefix}/etc'
     347sharedstatedir='${prefix}/com'
     348localstatedir='${prefix}/var'
     349libdir='${exec_prefix}/lib'
     350includedir='${prefix}/include'
     351oldincludedir='/usr/include'
     352infodir='${prefix}/info'
     353mandir='${prefix}/man'
     354
     355ac_prev=
     356for ac_option
     357do
     358  # If the previous option needs an argument, assign it.
     359  if test -n "$ac_prev"; then
     360    eval "$ac_prev=\$ac_option"
     361    ac_prev=
     362    continue
     363  fi
     364
     365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     366
     367  # Accept the important Cygnus configure options, so we can diagnose typos.
     368
     369  case $ac_option in
     370
     371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     372    ac_prev=bindir ;;
     373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
     374    bindir=$ac_optarg ;;
     375
     376  -build | --build | --buil | --bui | --bu)
     377    ac_prev=build_alias ;;
     378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
     379    build_alias=$ac_optarg ;;
     380
     381  -cache-file | --cache-file | --cache-fil | --cache-fi \
     382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     383    ac_prev=cache_file ;;
     384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     386    cache_file=$ac_optarg ;;
     387
     388  --config-cache | -C)
     389    cache_file=config.cache ;;
     390
     391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     392    ac_prev=datadir ;;
     393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     394  | --da=*)
     395    datadir=$ac_optarg ;;
     396
     397  -disable-* | --disable-*)
     398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     399    # Reject names that are not valid shell variable names.
     400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     402   { (exit 1); exit 1; }; }
     403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     404    eval "enable_$ac_feature=no" ;;
     405
     406  -enable-* | --enable-*)
     407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     408    # Reject names that are not valid shell variable names.
     409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     411   { (exit 1); exit 1; }; }
     412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     413    case $ac_option in
     414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     415      *) ac_optarg=yes ;;
     416    esac
     417    eval "enable_$ac_feature='$ac_optarg'" ;;
     418
     419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
     421  | --exec | --exe | --ex)
     422    ac_prev=exec_prefix ;;
     423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
     424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
     425  | --exec=* | --exe=* | --ex=*)
     426    exec_prefix=$ac_optarg ;;
     427
     428  -gas | --gas | --ga | --g)
     429    # Obsolete; use --with-gas.
     430    with_gas=yes ;;
     431
     432  -help | --help | --hel | --he | -h)
     433    ac_init_help=long ;;
     434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     435    ac_init_help=recursive ;;
     436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     437    ac_init_help=short ;;
     438
     439  -host | --host | --hos | --ho)
     440    ac_prev=host_alias ;;
     441  -host=* | --host=* | --hos=* | --ho=*)
     442    host_alias=$ac_optarg ;;
     443
     444  -includedir | --includedir | --includedi | --included | --include \
     445  | --includ | --inclu | --incl | --inc)
     446    ac_prev=includedir ;;
     447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
     448  | --includ=* | --inclu=* | --incl=* | --inc=*)
     449    includedir=$ac_optarg ;;
     450
     451  -infodir | --infodir | --infodi | --infod | --info | --inf)
     452    ac_prev=infodir ;;
     453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
     454    infodir=$ac_optarg ;;
     455
     456  -libdir | --libdir | --libdi | --libd)
     457    ac_prev=libdir ;;
     458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
     459    libdir=$ac_optarg ;;
     460
     461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     462  | --libexe | --libex | --libe)
     463    ac_prev=libexecdir ;;
     464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
     465  | --libexe=* | --libex=* | --libe=*)
     466    libexecdir=$ac_optarg ;;
     467
     468  -localstatedir | --localstatedir | --localstatedi | --localstated \
     469  | --localstate | --localstat | --localsta | --localst \
     470  | --locals | --local | --loca | --loc | --lo)
     471    ac_prev=localstatedir ;;
     472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
     473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
     474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     475    localstatedir=$ac_optarg ;;
     476
     477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
     478    ac_prev=mandir ;;
     479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
     480    mandir=$ac_optarg ;;
     481
     482  -nfp | --nfp | --nf)
     483    # Obsolete; use --without-fp.
     484    with_fp=no ;;
     485
     486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     487  | --no-cr | --no-c | -n)
     488    no_create=yes ;;
     489
     490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
     492    no_recursion=yes ;;
     493
     494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
     495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
     496  | --oldin | --oldi | --old | --ol | --o)
     497    ac_prev=oldincludedir ;;
     498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
     499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
     500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
     501    oldincludedir=$ac_optarg ;;
     502
     503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     504    ac_prev=prefix ;;
     505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     506    prefix=$ac_optarg ;;
     507
     508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     509  | --program-pre | --program-pr | --program-p)
     510    ac_prev=program_prefix ;;
     511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
     512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
     513    program_prefix=$ac_optarg ;;
     514
     515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     516  | --program-suf | --program-su | --program-s)
     517    ac_prev=program_suffix ;;
     518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
     519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
     520    program_suffix=$ac_optarg ;;
     521
     522  -program-transform-name | --program-transform-name \
     523  | --program-transform-nam | --program-transform-na \
     524  | --program-transform-n | --program-transform- \
     525  | --program-transform | --program-transfor \
     526  | --program-transfo | --program-transf \
     527  | --program-trans | --program-tran \
     528  | --progr-tra | --program-tr | --program-t)
     529    ac_prev=program_transform_name ;;
     530  -program-transform-name=* | --program-transform-name=* \
     531  | --program-transform-nam=* | --program-transform-na=* \
     532  | --program-transform-n=* | --program-transform-=* \
     533  | --program-transform=* | --program-transfor=* \
     534  | --program-transfo=* | --program-transf=* \
     535  | --program-trans=* | --program-tran=* \
     536  | --progr-tra=* | --program-tr=* | --program-t=*)
     537    program_transform_name=$ac_optarg ;;
     538
     539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     540  | -silent | --silent | --silen | --sile | --sil)
     541    silent=yes ;;
     542
     543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     544    ac_prev=sbindir ;;
     545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
     546  | --sbi=* | --sb=*)
     547    sbindir=$ac_optarg ;;
     548
     549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
     551  | --sharedst | --shareds | --shared | --share | --shar \
     552  | --sha | --sh)
     553    ac_prev=sharedstatedir ;;
     554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
     555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
     556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
     557  | --sha=* | --sh=*)
     558    sharedstatedir=$ac_optarg ;;
     559
     560  -site | --site | --sit)
     561    ac_prev=site ;;
     562  -site=* | --site=* | --sit=*)
     563    site=$ac_optarg ;;
     564
     565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     566    ac_prev=srcdir ;;
     567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     568    srcdir=$ac_optarg ;;
     569
     570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     571  | --syscon | --sysco | --sysc | --sys | --sy)
     572    ac_prev=sysconfdir ;;
     573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
     574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
     575    sysconfdir=$ac_optarg ;;
     576
     577  -target | --target | --targe | --targ | --tar | --ta | --t)
     578    ac_prev=target_alias ;;
     579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
     580    target_alias=$ac_optarg ;;
     581
     582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
     583    verbose=yes ;;
     584
     585  -version | --version | --versio | --versi | --vers | -V)
     586    ac_init_version=: ;;
     587
     588  -with-* | --with-*)
     589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     590    # Reject names that are not valid shell variable names.
     591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     592      { echo "$as_me: error: invalid package name: $ac_package" >&2
     593   { (exit 1); exit 1; }; }
     594    ac_package=`echo $ac_package| sed 's/-/_/g'`
     595    case $ac_option in
     596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     597      *) ac_optarg=yes ;;
     598    esac
     599    eval "with_$ac_package='$ac_optarg'" ;;
     600
     601  -without-* | --without-*)
     602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     603    # Reject names that are not valid shell variable names.
     604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     605      { echo "$as_me: error: invalid package name: $ac_package" >&2
     606   { (exit 1); exit 1; }; }
     607    ac_package=`echo $ac_package | sed 's/-/_/g'`
     608    eval "with_$ac_package=no" ;;
     609
     610  --x)
     611    # Obsolete; use --with-x.
     612    with_x=yes ;;
     613
     614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
     615  | --x-incl | --x-inc | --x-in | --x-i)
     616    ac_prev=x_includes ;;
     617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
     618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
     619    x_includes=$ac_optarg ;;
     620
     621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
     623    ac_prev=x_libraries ;;
     624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
     625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
     626    x_libraries=$ac_optarg ;;
     627
     628  -*) { echo "$as_me: error: unrecognized option: $ac_option
     629Try \`$0 --help' for more information." >&2
     630   { (exit 1); exit 1; }; }
     631    ;;
     632
     633  *=*)
     634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     635    # Reject names that are not valid shell variable names.
     636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     638   { (exit 1); exit 1; }; }
     639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     640    eval "$ac_envvar='$ac_optarg'"
     641    export $ac_envvar ;;
     642
     643  *)
     644    # FIXME: should be removed in autoconf 3.0.
     645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     649    ;;
     650
     651  esac
     652done
     653
     654if test -n "$ac_prev"; then
     655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     656  { echo "$as_me: error: missing argument to $ac_option" >&2
     657   { (exit 1); exit 1; }; }
     658fi
     659
     660# Be sure to have absolute paths.
     661for ac_var in exec_prefix prefix
     662do
     663  eval ac_val=$`echo $ac_var`
     664  case $ac_val in
     665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     667   { (exit 1); exit 1; }; };;
     668  esac
     669done
     670
     671# Be sure to have absolute paths.
     672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     673              localstatedir libdir includedir oldincludedir infodir mandir
     674do
     675  eval ac_val=$`echo $ac_var`
     676  case $ac_val in
     677    [\\/$]* | ?:[\\/]* ) ;;
     678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     679   { (exit 1); exit 1; }; };;
     680  esac
     681done
     682
     683# There might be people who depend on the old broken behavior: `$host'
     684# used to hold the argument of --host etc.
     685# FIXME: To remove some day.
     686build=$build_alias
     687host=$host_alias
     688target=$target_alias
     689
     690# FIXME: To remove some day.
     691if test "x$host_alias" != x; then
     692  if test "x$build_alias" = x; then
     693    cross_compiling=maybe
     694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     695    If a cross compiler is detected then cross compile mode will be used." >&2
     696  elif test "x$build_alias" != "x$host_alias"; then
     697    cross_compiling=yes
     698  fi
     699fi
     700
     701ac_tool_prefix=
     702test -n "$host_alias" && ac_tool_prefix=$host_alias-
     703
     704test "$silent" = yes && exec 6>/dev/null
     705
     706
     707# Find the source files, if location was not specified.
     708if test -z "$srcdir"; then
     709  ac_srcdir_defaulted=yes
     710  # Try the directory containing this script, then its parent.
     711  ac_confdir=`(dirname "$0") 2>/dev/null ||
     712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     713         X"$0" : 'X\(//\)[^/]' \| \
     714         X"$0" : 'X\(//\)$' \| \
     715         X"$0" : 'X\(/\)' \| \
     716         .     : '\(.\)' 2>/dev/null ||
     717echo X"$0" |
     718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     720          /^X\(\/\/\)$/{ s//\1/; q; }
     721          /^X\(\/\).*/{ s//\1/; q; }
     722          s/.*/./; q'`
     723  srcdir=$ac_confdir
     724  if test ! -r $srcdir/$ac_unique_file; then
     725    srcdir=..
     726  fi
     727else
     728  ac_srcdir_defaulted=no
     729fi
     730if test ! -r $srcdir/$ac_unique_file; then
     731  if test "$ac_srcdir_defaulted" = yes; then
     732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
     733   { (exit 1); exit 1; }; }
     734  else
     735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     736   { (exit 1); exit 1; }; }
     737  fi
     738fi
     739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     741   { (exit 1); exit 1; }; }
     742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     743ac_env_build_alias_set=${build_alias+set}
     744ac_env_build_alias_value=$build_alias
     745ac_cv_env_build_alias_set=${build_alias+set}
     746ac_cv_env_build_alias_value=$build_alias
     747ac_env_host_alias_set=${host_alias+set}
     748ac_env_host_alias_value=$host_alias
     749ac_cv_env_host_alias_set=${host_alias+set}
     750ac_cv_env_host_alias_value=$host_alias
     751ac_env_target_alias_set=${target_alias+set}
     752ac_env_target_alias_value=$target_alias
     753ac_cv_env_target_alias_set=${target_alias+set}
     754ac_cv_env_target_alias_value=$target_alias
     755ac_env_CC_set=${CC+set}
     756ac_env_CC_value=$CC
     757ac_cv_env_CC_set=${CC+set}
     758ac_cv_env_CC_value=$CC
     759ac_env_CFLAGS_set=${CFLAGS+set}
     760ac_env_CFLAGS_value=$CFLAGS
     761ac_cv_env_CFLAGS_set=${CFLAGS+set}
     762ac_cv_env_CFLAGS_value=$CFLAGS
     763ac_env_LDFLAGS_set=${LDFLAGS+set}
     764ac_env_LDFLAGS_value=$LDFLAGS
     765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     766ac_cv_env_LDFLAGS_value=$LDFLAGS
     767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     768ac_env_CPPFLAGS_value=$CPPFLAGS
     769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     771ac_env_CXX_set=${CXX+set}
     772ac_env_CXX_value=$CXX
     773ac_cv_env_CXX_set=${CXX+set}
     774ac_cv_env_CXX_value=$CXX
     775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     776ac_env_CXXFLAGS_value=$CXXFLAGS
     777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     779ac_env_CPP_set=${CPP+set}
     780ac_env_CPP_value=$CPP
     781ac_cv_env_CPP_set=${CPP+set}
     782ac_cv_env_CPP_value=$CPP
     783ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     784ac_env_PKG_CONFIG_value=$PKG_CONFIG
     785ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     786ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
     787
    26788#
    27 usage()
    28 {
    29   cat << EOF
    30 
    31 Options:
    32   --disable-openssl      Disable OpenSSL, use built-in SHA1 implementation
    33   --disable-gtk          Don't build the GTK+ GUI
    34   --disable-daemon       Don't build the daemon
    35   --prefix=PATH          Installation path
    36   --verbose              Display additional information for debugging
     789# Report the --help message.
     790#
     791if test "$ac_init_help" = "long"; then
     792  # Omit some internal or obsolete options to make the list less imposing.
     793  # This message is too long to be a string in the A/UX 3.1 sh.
     794  cat <<_ACEOF
     795\`configure' configures Transmission 0.72Z to adapt to many kinds of systems.
     796
     797Usage: $0 [OPTION]... [VAR=VALUE]...
     798
     799To assign environment variables (e.g., CC, CFLAGS...), specify them as
     800VAR=VALUE.  See below for descriptions of some of the useful variables.
     801
     802Defaults for the options are specified in brackets.
     803
     804Configuration:
     805  -h, --help              display this help and exit
     806      --help=short        display options specific to this package
     807      --help=recursive    display the short help of all the included packages
     808  -V, --version           display version information and exit
     809  -q, --quiet, --silent   do not print \`checking...' messages
     810      --cache-file=FILE   cache test results in FILE [disabled]
     811  -C, --config-cache      alias for \`--cache-file=config.cache'
     812  -n, --no-create         do not create output files
     813      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     814
     815_ACEOF
     816
     817  cat <<_ACEOF
     818Installation directories:
     819  --prefix=PREFIX         install architecture-independent files in PREFIX
     820                          [$ac_default_prefix]
     821  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     822                          [PREFIX]
     823
     824By default, \`make install' will install all the files in
     825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     827for instance \`--prefix=\$HOME'.
     828
     829For better control, use the options below.
     830
     831Fine tuning of the installation directories:
     832  --bindir=DIR           user executables [EPREFIX/bin]
     833  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     834  --libexecdir=DIR       program executables [EPREFIX/libexec]
     835  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     836  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     837  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     838  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     839  --libdir=DIR           object code libraries [EPREFIX/lib]
     840  --includedir=DIR       C header files [PREFIX/include]
     841  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     842  --infodir=DIR          info documentation [PREFIX/info]
     843  --mandir=DIR           man documentation [PREFIX/man]
     844_ACEOF
     845
     846  cat <<\_ACEOF
     847
     848Program names:
     849  --program-prefix=PREFIX            prepend PREFIX to installed program names
     850  --program-suffix=SUFFIX            append SUFFIX to installed program names
     851  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     852
     853System types:
     854  --build=BUILD     configure for building on BUILD [guessed]
     855  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
     856_ACEOF
     857fi
     858
     859if test -n "$ac_init_help"; then
     860  case $ac_init_help in
     861     short | recursive ) echo "Configuration of Transmission 0.72Z:";;
     862   esac
     863  cat <<\_ACEOF
     864
     865Optional Features:
     866  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     867  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     868  --enable-maintainer-mode  enable make rules and dependencies not useful
     869                          (and sometimes confusing) to the casual installer
     870  --disable-dependency-tracking  speeds up one-time build
     871  --enable-dependency-tracking   do not reject slow dependency extractors
     872  --disable-gtktest       do not try to compile and run a test GTK+ program
     873  --disable-glibtest      do not try to compile and run a test GLIB program
     874
     875Optional Packages:
     876  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     877  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     878  --with-libevent         Build Daemon
     879  --with-gtk              Build gtk client
    37880
    38881Some influential environment variables:
    39882  CC          C compiler command
    40883  CFLAGS      C compiler flags
     884  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     885              nonstandard directory <lib dir>
     886  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     887              headers in a nonstandard directory <include dir>
    41888  CXX         C++ compiler command
    42889  CXXFLAGS    C++ compiler flags
    43   LDFLAGS     linker flags
    44 
    45 EOF
     890  CPP         C preprocessor
     891  PKG_CONFIG  path to pkg-config utility
     892
     893Use these variables to override the choices made by `configure' or to help
     894it to find libraries and programs with nonstandard names/locations.
     895
     896Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=Pan>.
     897_ACEOF
     898fi
     899
     900if test "$ac_init_help" = "recursive"; then
     901  # If there are subdirs, report their specific --help.
     902  ac_popdir=`pwd`
     903  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
     904    test -d $ac_dir || continue
     905    ac_builddir=.
     906
     907if test "$ac_dir" != .; then
     908  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     909  # A "../" for each directory in $ac_dir_suffix.
     910  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     911else
     912  ac_dir_suffix= ac_top_builddir=
     913fi
     914
     915case $srcdir in
     916  .)  # No --srcdir option.  We are building in place.
     917    ac_srcdir=.
     918    if test -z "$ac_top_builddir"; then
     919       ac_top_srcdir=.
     920    else
     921       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     922    fi ;;
     923  [\\/]* | ?:[\\/]* )  # Absolute path.
     924    ac_srcdir=$srcdir$ac_dir_suffix;
     925    ac_top_srcdir=$srcdir ;;
     926  *) # Relative path.
     927    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     928    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     929esac
     930
     931# Do not use `cd foo && pwd` to compute absolute paths, because
     932# the directories may not exist.
     933case `pwd` in
     934.) ac_abs_builddir="$ac_dir";;
     935*)
     936  case "$ac_dir" in
     937  .) ac_abs_builddir=`pwd`;;
     938  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     939  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     940  esac;;
     941esac
     942case $ac_abs_builddir in
     943.) ac_abs_top_builddir=${ac_top_builddir}.;;
     944*)
     945  case ${ac_top_builddir}. in
     946  .) ac_abs_top_builddir=$ac_abs_builddir;;
     947  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     948  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     949  esac;;
     950esac
     951case $ac_abs_builddir in
     952.) ac_abs_srcdir=$ac_srcdir;;
     953*)
     954  case $ac_srcdir in
     955  .) ac_abs_srcdir=$ac_abs_builddir;;
     956  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     957  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     958  esac;;
     959esac
     960case $ac_abs_builddir in
     961.) ac_abs_top_srcdir=$ac_top_srcdir;;
     962*)
     963  case $ac_top_srcdir in
     964  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     965  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     966  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     967  esac;;
     968esac
     969
     970    cd $ac_dir
     971    # Check for guested configure; otherwise get Cygnus style configure.
     972    if test -f $ac_srcdir/configure.gnu; then
     973      echo
     974      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     975    elif test -f $ac_srcdir/configure; then
     976      echo
     977      $SHELL $ac_srcdir/configure  --help=recursive
     978    elif test -f $ac_srcdir/configure.ac ||
     979           test -f $ac_srcdir/configure.in; then
     980      echo
     981      $ac_configure --help
     982    else
     983      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     984    fi
     985    cd $ac_popdir
     986  done
     987fi
     988
     989test -n "$ac_init_help" && exit 0
     990if $ac_init_version; then
     991  cat <<\_ACEOF
     992Transmission configure 0.72Z
     993generated by GNU Autoconf 2.59
     994
     995Copyright (C) 2003 Free Software Foundation, Inc.
     996This configure script is free software; the Free Software Foundation
     997gives unlimited permission to copy, distribute and modify it.
     998_ACEOF
     999  exit 0
     1000fi
     1001exec 5>config.log
     1002cat >&5 <<_ACEOF
     1003This file contains any messages produced by compilers while
     1004running configure, to aid debugging if configure makes a mistake.
     1005
     1006It was created by Transmission $as_me 0.72Z, which was
     1007generated by GNU Autoconf 2.59.  Invocation command line was
     1008
     1009  $ $0 $@
     1010
     1011_ACEOF
     1012{
     1013cat <<_ASUNAME
     1014## --------- ##
     1015## Platform. ##
     1016## --------- ##
     1017
     1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1023
     1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     1025/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     1026
     1027/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     1028/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     1030hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     1031/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     1032/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     1033/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     1034
     1035_ASUNAME
     1036
     1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1038for as_dir in $PATH
     1039do
     1040  IFS=$as_save_IFS
     1041  test -z "$as_dir" && as_dir=.
     1042  echo "PATH: $as_dir"
     1043done
     1044
     1045} >&5
     1046
     1047cat >&5 <<_ACEOF
     1048
     1049
     1050## ----------- ##
     1051## Core tests. ##
     1052## ----------- ##
     1053
     1054_ACEOF
     1055
     1056
     1057# Keep a trace of the command line.
     1058# Strip out --no-create and --no-recursion so they do not pile up.
     1059# Strip out --silent because we don't want to record it for future runs.
     1060# Also quote any args containing shell meta-characters.
     1061# Make two passes to allow for proper duplicate-argument suppression.
     1062ac_configure_args=
     1063ac_configure_args0=
     1064ac_configure_args1=
     1065ac_sep=
     1066ac_must_keep_next=false
     1067for ac_pass in 1 2
     1068do
     1069  for ac_arg
     1070  do
     1071    case $ac_arg in
     1072    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
     1073    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     1074    | -silent | --silent | --silen | --sile | --sil)
     1075      continue ;;
     1076    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1077      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     1078    esac
     1079    case $ac_pass in
     1080    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     1081    2)
     1082      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     1083      if test $ac_must_keep_next = true; then
     1084        ac_must_keep_next=false # Got value, back to normal.
     1085      else
     1086        case $ac_arg in
     1087          *=* | --config-cache | -C | -disable-* | --disable-* \
     1088          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1089          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1090          | -with-* | --with-* | -without-* | --without-* | --x)
     1091            case "$ac_configure_args0 " in
     1092              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1093            esac
     1094            ;;
     1095          -* ) ac_must_keep_next=true ;;
     1096        esac
     1097      fi
     1098      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1099      # Get rid of the leading space.
     1100      ac_sep=" "
     1101      ;;
     1102    esac
     1103  done
     1104done
     1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
     1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     1107
     1108# When interrupted or exit'd, cleanup temporary files, and complete
     1109# config.log.  We remove comments because anyway the quotes in there
     1110# would cause problems or look ugly.
     1111# WARNING: Be sure not to use single quotes in there, as some shells,
     1112# such as our DU 5.0 friend, will then `close' the trap.
     1113trap 'exit_status=$?
     1114  # Save into config.log some information that might help in debugging.
     1115  {
     1116    echo
     1117
     1118    cat <<\_ASBOX
     1119## ---------------- ##
     1120## Cache variables. ##
     1121## ---------------- ##
     1122_ASBOX
     1123    echo
     1124    # The following way of writing the cache mishandles newlines in values,
     1125{
     1126  (set) 2>&1 |
     1127    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1128    *ac_space=\ *)
     1129      sed -n \
     1130        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1131          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1132      ;;
     1133    *)
     1134      sed -n \
     1135        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1136      ;;
     1137    esac;
    461138}
    47 
    48 runcmd()
     1139    echo
     1140
     1141    cat <<\_ASBOX
     1142## ----------------- ##
     1143## Output variables. ##
     1144## ----------------- ##
     1145_ASBOX
     1146    echo
     1147    for ac_var in $ac_subst_vars
     1148    do
     1149      eval ac_val=$`echo $ac_var`
     1150      echo "$ac_var='"'"'$ac_val'"'"'"
     1151    done | sort
     1152    echo
     1153
     1154    if test -n "$ac_subst_files"; then
     1155      cat <<\_ASBOX
     1156## ------------- ##
     1157## Output files. ##
     1158## ------------- ##
     1159_ASBOX
     1160      echo
     1161      for ac_var in $ac_subst_files
     1162      do
     1163        eval ac_val=$`echo $ac_var`
     1164        echo "$ac_var='"'"'$ac_val'"'"'"
     1165      done | sort
     1166      echo
     1167    fi
     1168
     1169    if test -s confdefs.h; then
     1170      cat <<\_ASBOX
     1171## ----------- ##
     1172## confdefs.h. ##
     1173## ----------- ##
     1174_ASBOX
     1175      echo
     1176      sed "/^$/d" confdefs.h | sort
     1177      echo
     1178    fi
     1179    test "$ac_signal" != 0 &&
     1180      echo "$as_me: caught signal $ac_signal"
     1181    echo "$as_me: exit $exit_status"
     1182  } >&5
     1183  rm -f core *.core &&
     1184  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     1185    exit $exit_status
     1186     ' 0
     1187for ac_signal in 1 2 13 15; do
     1188  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     1189done
     1190ac_signal=0
     1191
     1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
     1193rm -rf conftest* confdefs.h
     1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1195echo >confdefs.h
     1196
     1197# Predefined preprocessor variables.
     1198
     1199cat >>confdefs.h <<_ACEOF
     1200#define PACKAGE_NAME "$PACKAGE_NAME"
     1201_ACEOF
     1202
     1203
     1204cat >>confdefs.h <<_ACEOF
     1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
     1206_ACEOF
     1207
     1208
     1209cat >>confdefs.h <<_ACEOF
     1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
     1211_ACEOF
     1212
     1213
     1214cat >>confdefs.h <<_ACEOF
     1215#define PACKAGE_STRING "$PACKAGE_STRING"
     1216_ACEOF
     1217
     1218
     1219cat >>confdefs.h <<_ACEOF
     1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
     1221_ACEOF
     1222
     1223
     1224# Let the site file select an alternate cache file if it wants to.
     1225# Prefer explicitly selected file to automatically selected ones.
     1226if test -z "$CONFIG_SITE"; then
     1227  if test "x$prefix" != xNONE; then
     1228    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
     1229  else
     1230    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     1231  fi
     1232fi
     1233for ac_site_file in $CONFIG_SITE; do
     1234  if test -r "$ac_site_file"; then
     1235    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     1236echo "$as_me: loading site script $ac_site_file" >&6;}
     1237    sed 's/^/| /' "$ac_site_file" >&5
     1238    . "$ac_site_file"
     1239  fi
     1240done
     1241
     1242if test -r "$cache_file"; then
     1243  # Some versions of bash will fail to source /dev/null (special
     1244  # files actually), so we avoid doing that.
     1245  if test -f "$cache_file"; then
     1246    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
     1247echo "$as_me: loading cache $cache_file" >&6;}
     1248    case $cache_file in
     1249      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1250      *)                      . ./$cache_file;;
     1251    esac
     1252  fi
     1253else
     1254  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
     1255echo "$as_me: creating cache $cache_file" >&6;}
     1256  >$cache_file
     1257fi
     1258
     1259# Check that the precious variables saved in the cache have kept the same
     1260# value.
     1261ac_cache_corrupted=false
     1262for ac_var in `(set) 2>&1 |
     1263               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1264  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     1265  eval ac_new_set=\$ac_env_${ac_var}_set
     1266  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1267  eval ac_new_val="\$ac_env_${ac_var}_value"
     1268  case $ac_old_set,$ac_new_set in
     1269    set,)
     1270      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     1272      ac_cache_corrupted=: ;;
     1273    ,set)
     1274      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
     1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     1276      ac_cache_corrupted=: ;;
     1277    ,);;
     1278    *)
     1279      if test "x$ac_old_val" != "x$ac_new_val"; then
     1280        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     1282        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1283echo "$as_me:   former value:  $ac_old_val" >&2;}
     1284        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1285echo "$as_me:   current value: $ac_new_val" >&2;}
     1286        ac_cache_corrupted=:
     1287      fi;;
     1288  esac
     1289  # Pass precious variables to config.status.
     1290  if test "$ac_new_set" = set; then
     1291    case $ac_new_val in
     1292    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1293      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1294    *) ac_arg=$ac_var=$ac_new_val ;;
     1295    esac
     1296    case " $ac_configure_args " in
     1297      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
     1298      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     1299    esac
     1300  fi
     1301done
     1302if $ac_cache_corrupted; then
     1303  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
     1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     1305  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     1307   { (exit 1); exit 1; }; }
     1308fi
     1309
     1310ac_ext=c
     1311ac_cpp='$CPP $CPPFLAGS'
     1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1315
     1316
     1317
     1318
     1319
     1320
     1321
     1322
     1323
     1324
     1325
     1326
     1327
     1328
     1329
     1330
     1331
     1332
     1333
     1334
     1335
     1336
     1337
     1338
     1339
     1340
     1341
     1342
     1343          ac_config_headers="$ac_config_headers config.h"
     1344
     1345
     1346am__api_version="1.9"
     1347ac_aux_dir=
     1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     1349  if test -f $ac_dir/install-sh; then
     1350    ac_aux_dir=$ac_dir
     1351    ac_install_sh="$ac_aux_dir/install-sh -c"
     1352    break
     1353  elif test -f $ac_dir/install.sh; then
     1354    ac_aux_dir=$ac_dir
     1355    ac_install_sh="$ac_aux_dir/install.sh -c"
     1356    break
     1357  elif test -f $ac_dir/shtool; then
     1358    ac_aux_dir=$ac_dir
     1359    ac_install_sh="$ac_aux_dir/shtool install -c"
     1360    break
     1361  fi
     1362done
     1363if test -z "$ac_aux_dir"; then
     1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     1366   { (exit 1); exit 1; }; }
     1367fi
     1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     1371
     1372# Find a good install program.  We prefer a C program (faster),
     1373# so one script is as good as another.  But avoid the broken or
     1374# incompatible versions:
     1375# SysV /etc/install, /usr/sbin/install
     1376# SunOS /usr/etc/install
     1377# IRIX /sbin/install
     1378# AIX /bin/install
     1379# AmigaOS /C/install, which installs bootblocks on floppy discs
     1380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     1381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     1382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     1383# OS/2's system install, which has a completely different semantic
     1384# ./install, which can be erroneously created by make from ./install.sh.
     1385echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     1386echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     1387if test -z "$INSTALL"; then
     1388if test "${ac_cv_path_install+set}" = set; then
     1389  echo $ECHO_N "(cached) $ECHO_C" >&6
     1390else
     1391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1392for as_dir in $PATH
     1393do
     1394  IFS=$as_save_IFS
     1395  test -z "$as_dir" && as_dir=.
     1396  # Account for people who put trailing slashes in PATH elements.
     1397case $as_dir/ in
     1398  ./ | .// | /cC/* | \
     1399  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     1400  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     1401  /usr/ucb/* ) ;;
     1402  *)
     1403    # OSF1 and SCO ODT 3.0 have their own names for install.
     1404    # Don't use installbsd from OSF since it installs stuff as root
     1405    # by default.
     1406    for ac_prog in ginstall scoinst install; do
     1407      for ac_exec_ext in '' $ac_executable_extensions; do
     1408        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     1409          if test $ac_prog = install &&
     1410            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1411            # AIX install.  It has an incompatible calling convention.
     1412            :
     1413          elif test $ac_prog = install &&
     1414            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1415            # program-specific install script used by HP pwplus--don't use.
     1416            :
     1417          else
     1418            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     1419            break 3
     1420          fi
     1421        fi
     1422      done
     1423    done
     1424    ;;
     1425esac
     1426done
     1427
     1428
     1429fi
     1430  if test "${ac_cv_path_install+set}" = set; then
     1431    INSTALL=$ac_cv_path_install
     1432  else
     1433    # As a last resort, use the slow shell script.  We don't cache a
     1434    # path for INSTALL within a source directory, because that will
     1435    # break other packages using the cache if that directory is
     1436    # removed, or if the path is relative.
     1437    INSTALL=$ac_install_sh
     1438  fi
     1439fi
     1440echo "$as_me:$LINENO: result: $INSTALL" >&5
     1441echo "${ECHO_T}$INSTALL" >&6
     1442
     1443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     1444# It thinks the first close brace ends the variable substitution.
     1445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     1446
     1447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     1448
     1449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     1450
     1451echo "$as_me:$LINENO: checking whether build environment is sane" >&5
     1452echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
     1453# Just in case
     1454sleep 1
     1455echo timestamp > conftest.file
     1456# Do `set' in a subshell so we don't clobber the current shell's
     1457# arguments.  Must try -L first in case configure is actually a
     1458# symlink; some systems play weird games with the mod time of symlinks
     1459# (eg FreeBSD returns the mod time of the symlink's containing
     1460# directory).
     1461if (
     1462   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     1463   if test "$*" = "X"; then
     1464      # -L didn't work.
     1465      set X `ls -t $srcdir/configure conftest.file`
     1466   fi
     1467   rm -f conftest.file
     1468   if test "$*" != "X $srcdir/configure conftest.file" \
     1469      && test "$*" != "X conftest.file $srcdir/configure"; then
     1470
     1471      # If neither matched, then we have a broken ls.  This can happen
     1472      # if, for instance, CONFIG_SHELL is bash and it inherits a
     1473      # broken ls alias from the environment.  This has actually
     1474      # happened.  Such a system could not be considered "sane".
     1475      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
     1476alias in your environment" >&5
     1477echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
     1478alias in your environment" >&2;}
     1479   { (exit 1); exit 1; }; }
     1480   fi
     1481
     1482   test "$2" = conftest.file
     1483   )
     1484then
     1485   # Ok.
     1486   :
     1487else
     1488   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
     1489Check your system clock" >&5
     1490echo "$as_me: error: newly created file is older than distributed files!
     1491Check your system clock" >&2;}
     1492   { (exit 1); exit 1; }; }
     1493fi
     1494echo "$as_me:$LINENO: result: yes" >&5
     1495echo "${ECHO_T}yes" >&6
     1496test "$program_prefix" != NONE &&
     1497  program_transform_name="s,^,$program_prefix,;$program_transform_name"
     1498# Use a double $ so make ignores it.
     1499test "$program_suffix" != NONE &&
     1500  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     1501# Double any \ or $.  echo might interpret backslashes.
     1502# By default was `s,x,x', remove it if useless.
     1503cat <<\_ACEOF >conftest.sed
     1504s/[\\$]/&&/g;s/;s,x,x,$//
     1505_ACEOF
     1506program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     1507rm conftest.sed
     1508
     1509# expand $ac_aux_dir to an absolute path
     1510am_aux_dir=`cd $ac_aux_dir && pwd`
     1511
     1512test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     1513# Use eval to expand $SHELL
     1514if eval "$MISSING --run true"; then
     1515  am_missing_run="$MISSING --run "
     1516else
     1517  am_missing_run=
     1518  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
     1519echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     1520fi
     1521
     1522if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     1523  # We used to keeping the `.' as first argument, in order to
     1524  # allow $(mkdir_p) to be used without argument.  As in
     1525  #   $(mkdir_p) $(somedir)
     1526  # where $(somedir) is conditionally defined.  However this is wrong
     1527  # for two reasons:
     1528  #  1. if the package is installed by a user who cannot write `.'
     1529  #     make install will fail,
     1530  #  2. the above comment should most certainly read
     1531  #     $(mkdir_p) $(DESTDIR)$(somedir)
     1532  #     so it does not work when $(somedir) is undefined and
     1533  #     $(DESTDIR) is not.
     1534  #  To support the latter case, we have to write
     1535  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
     1536  #  so the `.' trick is pointless.
     1537  mkdir_p='mkdir -p --'
     1538else
     1539  # On NextStep and OpenStep, the `mkdir' command does not
     1540  # recognize any option.  It will interpret all options as
     1541  # directories to create, and then abort because `.' already
     1542  # exists.
     1543  for d in ./-p ./--version;
     1544  do
     1545    test -d $d && rmdir $d
     1546  done
     1547  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     1548  if test -f "$ac_aux_dir/mkinstalldirs"; then
     1549    mkdir_p='$(mkinstalldirs)'
     1550  else
     1551    mkdir_p='$(install_sh) -d'
     1552  fi
     1553fi
     1554
     1555for ac_prog in gawk mawk nawk awk
     1556do
     1557  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1558set dummy $ac_prog; ac_word=$2
     1559echo "$as_me:$LINENO: checking for $ac_word" >&5
     1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1561if test "${ac_cv_prog_AWK+set}" = set; then
     1562  echo $ECHO_N "(cached) $ECHO_C" >&6
     1563else
     1564  if test -n "$AWK"; then
     1565  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     1566else
     1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1568for as_dir in $PATH
     1569do
     1570  IFS=$as_save_IFS
     1571  test -z "$as_dir" && as_dir=.
     1572  for ac_exec_ext in '' $ac_executable_extensions; do
     1573  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1574    ac_cv_prog_AWK="$ac_prog"
     1575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1576    break 2
     1577  fi
     1578done
     1579done
     1580
     1581fi
     1582fi
     1583AWK=$ac_cv_prog_AWK
     1584if test -n "$AWK"; then
     1585  echo "$as_me:$LINENO: result: $AWK" >&5
     1586echo "${ECHO_T}$AWK" >&6
     1587else
     1588  echo "$as_me:$LINENO: result: no" >&5
     1589echo "${ECHO_T}no" >&6
     1590fi
     1591
     1592  test -n "$AWK" && break
     1593done
     1594
     1595echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     1596echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     1597set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     1598if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     1599  echo $ECHO_N "(cached) $ECHO_C" >&6
     1600else
     1601  cat >conftest.make <<\_ACEOF
     1602all:
     1603        @echo 'ac_maketemp="$(MAKE)"'
     1604_ACEOF
     1605# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     1606eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     1607if test -n "$ac_maketemp"; then
     1608  eval ac_cv_prog_make_${ac_make}_set=yes
     1609else
     1610  eval ac_cv_prog_make_${ac_make}_set=no
     1611fi
     1612rm -f conftest.make
     1613fi
     1614if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     1615  echo "$as_me:$LINENO: result: yes" >&5
     1616echo "${ECHO_T}yes" >&6
     1617  SET_MAKE=
     1618else
     1619  echo "$as_me:$LINENO: result: no" >&5
     1620echo "${ECHO_T}no" >&6
     1621  SET_MAKE="MAKE=${MAKE-make}"
     1622fi
     1623
     1624rm -rf .tst 2>/dev/null
     1625mkdir .tst 2>/dev/null
     1626if test -d .tst; then
     1627  am__leading_dot=.
     1628else
     1629  am__leading_dot=_
     1630fi
     1631rmdir .tst 2>/dev/null
     1632
     1633# test to see if srcdir already configured
     1634if test "`cd $srcdir && pwd`" != "`pwd`" &&
     1635   test -f $srcdir/config.status; then
     1636  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
     1637echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
     1638   { (exit 1); exit 1; }; }
     1639fi
     1640
     1641# test whether we have cygpath
     1642if test -z "$CYGPATH_W"; then
     1643  if (cygpath --version) >/dev/null 2>/dev/null; then
     1644    CYGPATH_W='cygpath -w'
     1645  else
     1646    CYGPATH_W=echo
     1647  fi
     1648fi
     1649
     1650
     1651# Define the identity of the package.
     1652 PACKAGE=Transmission
     1653 VERSION=0.72Z
     1654
     1655
     1656cat >>confdefs.h <<_ACEOF
     1657#define PACKAGE "$PACKAGE"
     1658_ACEOF
     1659
     1660
     1661cat >>confdefs.h <<_ACEOF
     1662#define VERSION "$VERSION"
     1663_ACEOF
     1664
     1665# Some tools Automake needs.
     1666
     1667ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
     1668
     1669
     1670AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
     1671
     1672
     1673AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
     1674
     1675
     1676AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
     1677
     1678
     1679MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
     1680
     1681install_sh=${install_sh-"$am_aux_dir/install-sh"}
     1682
     1683# Installed binaries are usually stripped using `strip' when the user
     1684# run `make install-strip'.  However `strip' might not be the right
     1685# tool to use in cross-compilation environments, therefore Automake
     1686# will honor the `STRIP' environment variable to overrule this program.
     1687if test "$cross_compiling" != no; then
     1688  if test -n "$ac_tool_prefix"; then
     1689  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     1690set dummy ${ac_tool_prefix}strip; ac_word=$2
     1691echo "$as_me:$LINENO: checking for $ac_word" >&5
     1692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1693if test "${ac_cv_prog_STRIP+set}" = set; then
     1694  echo $ECHO_N "(cached) $ECHO_C" >&6
     1695else
     1696  if test -n "$STRIP"; then
     1697  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     1698else
     1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1700for as_dir in $PATH
     1701do
     1702  IFS=$as_save_IFS
     1703  test -z "$as_dir" && as_dir=.
     1704  for ac_exec_ext in '' $ac_executable_extensions; do
     1705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1706    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     1707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1708    break 2
     1709  fi
     1710done
     1711done
     1712
     1713fi
     1714fi
     1715STRIP=$ac_cv_prog_STRIP
     1716if test -n "$STRIP"; then
     1717  echo "$as_me:$LINENO: result: $STRIP" >&5
     1718echo "${ECHO_T}$STRIP" >&6
     1719else
     1720  echo "$as_me:$LINENO: result: no" >&5
     1721echo "${ECHO_T}no" >&6
     1722fi
     1723
     1724fi
     1725if test -z "$ac_cv_prog_STRIP"; then
     1726  ac_ct_STRIP=$STRIP
     1727  # Extract the first word of "strip", so it can be a program name with args.
     1728set dummy strip; ac_word=$2
     1729echo "$as_me:$LINENO: checking for $ac_word" >&5
     1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
     1732  echo $ECHO_N "(cached) $ECHO_C" >&6
     1733else
     1734  if test -n "$ac_ct_STRIP"; then
     1735  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     1736else
     1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1738for as_dir in $PATH
     1739do
     1740  IFS=$as_save_IFS
     1741  test -z "$as_dir" && as_dir=.
     1742  for ac_exec_ext in '' $ac_executable_extensions; do
     1743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1744    ac_cv_prog_ac_ct_STRIP="strip"
     1745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1746    break 2
     1747  fi
     1748done
     1749done
     1750
     1751  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
     1752fi
     1753fi
     1754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     1755if test -n "$ac_ct_STRIP"; then
     1756  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
     1757echo "${ECHO_T}$ac_ct_STRIP" >&6
     1758else
     1759  echo "$as_me:$LINENO: result: no" >&5
     1760echo "${ECHO_T}no" >&6
     1761fi
     1762
     1763  STRIP=$ac_ct_STRIP
     1764else
     1765  STRIP="$ac_cv_prog_STRIP"
     1766fi
     1767
     1768fi
     1769INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     1770
     1771# We need awk for the "check" target.  The system "awk" is bad on
     1772# some platforms.
     1773# Always define AMTAR for backward compatibility.
     1774
     1775AMTAR=${AMTAR-"${am_missing_run}tar"}
     1776
     1777am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
     1778
     1779
     1780
     1781
     1782
     1783echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     1784echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
     1785    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     1786if test "${enable_maintainer_mode+set}" = set; then
     1787  enableval="$enable_maintainer_mode"
     1788  USE_MAINTAINER_MODE=$enableval
     1789else
     1790  USE_MAINTAINER_MODE=no
     1791fi;
     1792  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
     1793echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
     1794
     1795
     1796if test $USE_MAINTAINER_MODE = yes; then
     1797  MAINTAINER_MODE_TRUE=
     1798  MAINTAINER_MODE_FALSE='#'
     1799else
     1800  MAINTAINER_MODE_TRUE='#'
     1801  MAINTAINER_MODE_FALSE=
     1802fi
     1803
     1804  MAINT=$MAINTAINER_MODE_TRUE
     1805
     1806
     1807
     1808GLIB_MINIMUM=2.4.0
     1809GTK_MINIMUM=2.4.0
     1810WX_MINIMUM=2.6.0
     1811
     1812
     1813
     1814
     1815ac_ext=c
     1816ac_cpp='$CPP $CPPFLAGS'
     1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1820if test -n "$ac_tool_prefix"; then
     1821  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1822set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1823echo "$as_me:$LINENO: checking for $ac_word" >&5
     1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1825if test "${ac_cv_prog_CC+set}" = set; then
     1826  echo $ECHO_N "(cached) $ECHO_C" >&6
     1827else
     1828  if test -n "$CC"; then
     1829  ac_cv_prog_CC="$CC" # Let the user override the test.
     1830else
     1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1832for as_dir in $PATH
     1833do
     1834  IFS=$as_save_IFS
     1835  test -z "$as_dir" && as_dir=.
     1836  for ac_exec_ext in '' $ac_executable_extensions; do
     1837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1838    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1840    break 2
     1841  fi
     1842done
     1843done
     1844
     1845fi
     1846fi
     1847CC=$ac_cv_prog_CC
     1848if test -n "$CC"; then
     1849  echo "$as_me:$LINENO: result: $CC" >&5
     1850echo "${ECHO_T}$CC" >&6
     1851else
     1852  echo "$as_me:$LINENO: result: no" >&5
     1853echo "${ECHO_T}no" >&6
     1854fi
     1855
     1856fi
     1857if test -z "$ac_cv_prog_CC"; then
     1858  ac_ct_CC=$CC
     1859  # Extract the first word of "gcc", so it can be a program name with args.
     1860set dummy gcc; ac_word=$2
     1861echo "$as_me:$LINENO: checking for $ac_word" >&5
     1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1864  echo $ECHO_N "(cached) $ECHO_C" >&6
     1865else
     1866  if test -n "$ac_ct_CC"; then
     1867  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1868else
     1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1870for as_dir in $PATH
     1871do
     1872  IFS=$as_save_IFS
     1873  test -z "$as_dir" && as_dir=.
     1874  for ac_exec_ext in '' $ac_executable_extensions; do
     1875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1876    ac_cv_prog_ac_ct_CC="gcc"
     1877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1878    break 2
     1879  fi
     1880done
     1881done
     1882
     1883fi
     1884fi
     1885ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1886if test -n "$ac_ct_CC"; then
     1887  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1888echo "${ECHO_T}$ac_ct_CC" >&6
     1889else
     1890  echo "$as_me:$LINENO: result: no" >&5
     1891echo "${ECHO_T}no" >&6
     1892fi
     1893
     1894  CC=$ac_ct_CC
     1895else
     1896  CC="$ac_cv_prog_CC"
     1897fi
     1898
     1899if test -z "$CC"; then
     1900  if test -n "$ac_tool_prefix"; then
     1901  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1902set dummy ${ac_tool_prefix}cc; ac_word=$2
     1903echo "$as_me:$LINENO: checking for $ac_word" >&5
     1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1905if test "${ac_cv_prog_CC+set}" = set; then
     1906  echo $ECHO_N "(cached) $ECHO_C" >&6
     1907else
     1908  if test -n "$CC"; then
     1909  ac_cv_prog_CC="$CC" # Let the user override the test.
     1910else
     1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1912for as_dir in $PATH
     1913do
     1914  IFS=$as_save_IFS
     1915  test -z "$as_dir" && as_dir=.
     1916  for ac_exec_ext in '' $ac_executable_extensions; do
     1917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1918    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1920    break 2
     1921  fi
     1922done
     1923done
     1924
     1925fi
     1926fi
     1927CC=$ac_cv_prog_CC
     1928if test -n "$CC"; then
     1929  echo "$as_me:$LINENO: result: $CC" >&5
     1930echo "${ECHO_T}$CC" >&6
     1931else
     1932  echo "$as_me:$LINENO: result: no" >&5
     1933echo "${ECHO_T}no" >&6
     1934fi
     1935
     1936fi
     1937if test -z "$ac_cv_prog_CC"; then
     1938  ac_ct_CC=$CC
     1939  # Extract the first word of "cc", so it can be a program name with args.
     1940set dummy cc; ac_word=$2
     1941echo "$as_me:$LINENO: checking for $ac_word" >&5
     1942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1943if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1944  echo $ECHO_N "(cached) $ECHO_C" >&6
     1945else
     1946  if test -n "$ac_ct_CC"; then
     1947  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1948else
     1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1950for as_dir in $PATH
     1951do
     1952  IFS=$as_save_IFS
     1953  test -z "$as_dir" && as_dir=.
     1954  for ac_exec_ext in '' $ac_executable_extensions; do
     1955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1956    ac_cv_prog_ac_ct_CC="cc"
     1957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1958    break 2
     1959  fi
     1960done
     1961done
     1962
     1963fi
     1964fi
     1965ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1966if test -n "$ac_ct_CC"; then
     1967  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1968echo "${ECHO_T}$ac_ct_CC" >&6
     1969else
     1970  echo "$as_me:$LINENO: result: no" >&5
     1971echo "${ECHO_T}no" >&6
     1972fi
     1973
     1974  CC=$ac_ct_CC
     1975else
     1976  CC="$ac_cv_prog_CC"
     1977fi
     1978
     1979fi
     1980if test -z "$CC"; then
     1981  # Extract the first word of "cc", so it can be a program name with args.
     1982set dummy cc; ac_word=$2
     1983echo "$as_me:$LINENO: checking for $ac_word" >&5
     1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1985if test "${ac_cv_prog_CC+set}" = set; then
     1986  echo $ECHO_N "(cached) $ECHO_C" >&6
     1987else
     1988  if test -n "$CC"; then
     1989  ac_cv_prog_CC="$CC" # Let the user override the test.
     1990else
     1991  ac_prog_rejected=no
     1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1993for as_dir in $PATH
     1994do
     1995  IFS=$as_save_IFS
     1996  test -z "$as_dir" && as_dir=.
     1997  for ac_exec_ext in '' $ac_executable_extensions; do
     1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1999    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2000       ac_prog_rejected=yes
     2001       continue
     2002     fi
     2003    ac_cv_prog_CC="cc"
     2004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2005    break 2
     2006  fi
     2007done
     2008done
     2009
     2010if test $ac_prog_rejected = yes; then
     2011  # We found a bogon in the path, so make sure we never use it.
     2012  set dummy $ac_cv_prog_CC
     2013  shift
     2014  if test $# != 0; then
     2015    # We chose a different compiler from the bogus one.
     2016    # However, it has the same basename, so the bogon will be chosen
     2017    # first if we set CC to just the basename; use the full file name.
     2018    shift
     2019    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     2020  fi
     2021fi
     2022fi
     2023fi
     2024CC=$ac_cv_prog_CC
     2025if test -n "$CC"; then
     2026  echo "$as_me:$LINENO: result: $CC" >&5
     2027echo "${ECHO_T}$CC" >&6
     2028else
     2029  echo "$as_me:$LINENO: result: no" >&5
     2030echo "${ECHO_T}no" >&6
     2031fi
     2032
     2033fi
     2034if test -z "$CC"; then
     2035  if test -n "$ac_tool_prefix"; then
     2036  for ac_prog in cl
     2037  do
     2038    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2039set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2040echo "$as_me:$LINENO: checking for $ac_word" >&5
     2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2042if test "${ac_cv_prog_CC+set}" = set; then
     2043  echo $ECHO_N "(cached) $ECHO_C" >&6
     2044else
     2045  if test -n "$CC"; then
     2046  ac_cv_prog_CC="$CC" # Let the user override the test.
     2047else
     2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2049for as_dir in $PATH
     2050do
     2051  IFS=$as_save_IFS
     2052  test -z "$as_dir" && as_dir=.
     2053  for ac_exec_ext in '' $ac_executable_extensions; do
     2054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2055    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2057    break 2
     2058  fi
     2059done
     2060done
     2061
     2062fi
     2063fi
     2064CC=$ac_cv_prog_CC
     2065if test -n "$CC"; then
     2066  echo "$as_me:$LINENO: result: $CC" >&5
     2067echo "${ECHO_T}$CC" >&6
     2068else
     2069  echo "$as_me:$LINENO: result: no" >&5
     2070echo "${ECHO_T}no" >&6
     2071fi
     2072
     2073    test -n "$CC" && break
     2074  done
     2075fi
     2076if test -z "$CC"; then
     2077  ac_ct_CC=$CC
     2078  for ac_prog in cl
     2079do
     2080  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2081set dummy $ac_prog; ac_word=$2
     2082echo "$as_me:$LINENO: checking for $ac_word" >&5
     2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2085  echo $ECHO_N "(cached) $ECHO_C" >&6
     2086else
     2087  if test -n "$ac_ct_CC"; then
     2088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2089else
     2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2091for as_dir in $PATH
     2092do
     2093  IFS=$as_save_IFS
     2094  test -z "$as_dir" && as_dir=.
     2095  for ac_exec_ext in '' $ac_executable_extensions; do
     2096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2097    ac_cv_prog_ac_ct_CC="$ac_prog"
     2098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2099    break 2
     2100  fi
     2101done
     2102done
     2103
     2104fi
     2105fi
     2106ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2107if test -n "$ac_ct_CC"; then
     2108  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2109echo "${ECHO_T}$ac_ct_CC" >&6
     2110else
     2111  echo "$as_me:$LINENO: result: no" >&5
     2112echo "${ECHO_T}no" >&6
     2113fi
     2114
     2115  test -n "$ac_ct_CC" && break
     2116done
     2117
     2118  CC=$ac_ct_CC
     2119fi
     2120
     2121fi
     2122
     2123
     2124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2125See \`config.log' for more details." >&5
     2126echo "$as_me: error: no acceptable C compiler found in \$PATH
     2127See \`config.log' for more details." >&2;}
     2128   { (exit 1); exit 1; }; }
     2129
     2130# Provide some information about the compiler.
     2131echo "$as_me:$LINENO:" \
     2132     "checking for C compiler version" >&5
     2133ac_compiler=`set X $ac_compile; echo $2`
     2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2135  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2136  ac_status=$?
     2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2138  (exit $ac_status); }
     2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2140  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2141  ac_status=$?
     2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2143  (exit $ac_status); }
     2144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2145  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2146  ac_status=$?
     2147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2148  (exit $ac_status); }
     2149
     2150cat >conftest.$ac_ext <<_ACEOF
     2151/* confdefs.h.  */
     2152_ACEOF
     2153cat confdefs.h >>conftest.$ac_ext
     2154cat >>conftest.$ac_ext <<_ACEOF
     2155/* end confdefs.h.  */
     2156
     2157int
     2158main ()
    492159{
    50   if [ "$VERBOSE" = yes ]
    51   then
    52     echo "$@" >&2
    53     "$@"
     2160
     2161  ;
     2162  return 0;
     2163}
     2164_ACEOF
     2165ac_clean_files_save=$ac_clean_files
     2166ac_clean_files="$ac_clean_files a.out a.exe b.out"
     2167# Try to create an executable without -o first, disregard a.out.
     2168# It will help us diagnose broken compilers, and finding out an intuition
     2169# of exeext.
     2170echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2171echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     2172ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2173if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     2174  (eval $ac_link_default) 2>&5
     2175  ac_status=$?
     2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2177  (exit $ac_status); }; then
     2178  # Find the output, starting from the most likely.  This scheme is
     2179# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     2180# resort.
     2181
     2182# Be careful to initialize this variable, since it used to be cached.
     2183# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     2184ac_cv_exeext=
     2185# b.out is created by i960 compilers.
     2186for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     2187do
     2188  test -f "$ac_file" || continue
     2189  case $ac_file in
     2190    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     2191        ;;
     2192    conftest.$ac_ext )
     2193        # This is the source file.
     2194        ;;
     2195    [ab].out )
     2196        # We found the default executable, but exeext='' is most
     2197        # certainly right.
     2198        break;;
     2199    *.* )
     2200        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2201        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2202        # but it would be cool to find out if it's true.  Does anybody
     2203        # maintain Libtool? --akim.
     2204        export ac_cv_exeext
     2205        break;;
     2206    * )
     2207        break;;
     2208  esac
     2209done
     2210else
     2211  echo "$as_me: failed program was:" >&5
     2212sed 's/^/| /' conftest.$ac_ext >&5
     2213
     2214{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2215See \`config.log' for more details." >&5
     2216echo "$as_me: error: C compiler cannot create executables
     2217See \`config.log' for more details." >&2;}
     2218   { (exit 77); exit 77; }; }
     2219fi
     2220
     2221ac_exeext=$ac_cv_exeext
     2222echo "$as_me:$LINENO: result: $ac_file" >&5
     2223echo "${ECHO_T}$ac_file" >&6
     2224
     2225# Check the compiler produces executables we can run.  If not, either
     2226# the compiler is broken, or we cross compile.
     2227echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2228echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2229# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2230# If not cross compiling, check that we can run a simple program.
     2231if test "$cross_compiling" != yes; then
     2232  if { ac_try='./$ac_file'
     2233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2234  (eval $ac_try) 2>&5
     2235  ac_status=$?
     2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2237  (exit $ac_status); }; }; then
     2238    cross_compiling=no
    542239  else
    55     "$@" > /dev/null 2>&1
    56   fi
    57   return $!
    58 }
    59 
    60 verbose()
    61 {
    62   if [ "$VERBOSE" = yes ]
    63   then
    64     echo "$@"
    65   fi
    66 }
    67 
    68 cc_test()
    69 {
    70   verbose cc_test
    71   cat > testconf.c <<EOF
    72   int main()
    73   {
    74     return 0;
    75   }
    76 EOF
    77   if ! runcmd $CC -o testconf testconf.c
    78   then
    79     rm -f testconf*
    80     echo "Could not find a working compiler"
    81     exit 1
    82   fi
    83   rm -f testconf*
    84 }
    85 
    86 openssl_test()
    87 {
    88   verbose openssl_test
    89   cat > testconf.c << EOF
    90   #include <stdio.h>
    91   #include <openssl/sha.h>
    92   int main()
    93   {
    94       SHA1( 0, 0, 0 );
    95   }
    96 EOF
    97   if runcmd $CC $CFLAGS $LDFLAGS -o testconf testconf.c -lcrypto
    98   then
    99     echo "yes"
    100     OPENSSL=yes
    101   else
    102     echo "missing, using built-in SHA1 implementation"
    103     OPENSSL=no
    104   fi
    105   rm -f testconf*
    106 }
    107 
    108 lm_test()
    109 {
    110   verbose lm_test
    111   cat > testconf.c << EOF
    112   int main()
    113   {
    114     return cos( 42 );
    115   }
    116 EOF
    117   if ! runcmd $CC -o testconf testconf.c
    118   then
    119     if runcmd $CC -o testconf testconf.c -lm
    120     then
    121       LDFLAGS="-lm $LDFLAGS"
     2240    if test "$cross_compiling" = maybe; then
     2241        cross_compiling=yes
     2242    else
     2243        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2244If you meant to cross compile, use \`--host'.
     2245See \`config.log' for more details." >&5
     2246echo "$as_me: error: cannot run C compiled programs.
     2247If you meant to cross compile, use \`--host'.
     2248See \`config.log' for more details." >&2;}
     2249   { (exit 1); exit 1; }; }
    1222250    fi
    1232251  fi
    124   rm -f testconf*
    125 }
    126 
    127 lrintf_test()
     2252fi
     2253echo "$as_me:$LINENO: result: yes" >&5
     2254echo "${ECHO_T}yes" >&6
     2255
     2256rm -f a.out a.exe conftest$ac_cv_exeext b.out
     2257ac_clean_files=$ac_clean_files_save
     2258# Check the compiler produces executables we can run.  If not, either
     2259# the compiler is broken, or we cross compile.
     2260echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2261echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     2262echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2263echo "${ECHO_T}$cross_compiling" >&6
     2264
     2265echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2266echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     2267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2268  (eval $ac_link) 2>&5
     2269  ac_status=$?
     2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2271  (exit $ac_status); }; then
     2272  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2273# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2274# work properly (i.e., refer to `conftest.exe'), while it won't with
     2275# `rm'.
     2276for ac_file in conftest.exe conftest conftest.*; do
     2277  test -f "$ac_file" || continue
     2278  case $ac_file in
     2279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2280    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2281          export ac_cv_exeext
     2282          break;;
     2283    * ) break;;
     2284  esac
     2285done
     2286else
     2287  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2288See \`config.log' for more details." >&5
     2289echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2290See \`config.log' for more details." >&2;}
     2291   { (exit 1); exit 1; }; }
     2292fi
     2293
     2294rm -f conftest$ac_cv_exeext
     2295echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2296echo "${ECHO_T}$ac_cv_exeext" >&6
     2297
     2298rm -f conftest.$ac_ext
     2299EXEEXT=$ac_cv_exeext
     2300ac_exeext=$EXEEXT
     2301echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2302echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2303if test "${ac_cv_objext+set}" = set; then
     2304  echo $ECHO_N "(cached) $ECHO_C" >&6
     2305else
     2306  cat >conftest.$ac_ext <<_ACEOF
     2307/* confdefs.h.  */
     2308_ACEOF
     2309cat confdefs.h >>conftest.$ac_ext
     2310cat >>conftest.$ac_ext <<_ACEOF
     2311/* end confdefs.h.  */
     2312
     2313int
     2314main ()
    1282315{
    129   verbose lrintf_test
    130   cat > testconf.c << EOF
    131   int main()
    132   {
    133     return ( lrintf( 3.14 ) != 3 );
    134   }
    135 EOF
    136   if runcmd $CC -o testconf testconf.c $LDFLAGS && runcmd ./testconf
    137   then
    138     CFLAGS="$CFLAGS -DHAVE_LRINTF"
    139   fi
    140   rm -f testconf*
    141 }
    142 
    143 strlcpy_test()
    144 {
    145   verbose strlcpy_test
    146   cat > testconf.c << EOF
    147 #include <string.h>
    148 int main()
    149 {
    150   char buf[] = "1234:p";
    151   strlcpy( buf, "foo", sizeof buf );
    152   return ( 0 == memcmp( buf, "foo\0:p", 6 ) ? 0 : 1 );
    153 }
    154 EOF
    155   if runcmd $CC -o testconf testconf.c && runcmd ./testconf
    156   then
    157     CFLAGS="$CFLAGS -DHAVE_STRLCPY"
    158   fi
    159   rm -f testconf*
    160 }
    161 
    162 strlcat_test()
    163 {
    164   verbose strlcat_test
    165   cat > testconf.c << EOF
    166 #include <string.h>
    167 int main()
    168 {
    169   char buf[] = "1234567:p";
    170   buf[0] = '\0';
    171   strlcat( buf, "foo", sizeof buf );
    172   strlcat( buf, "bar", sizeof buf );
    173   return ( 0 == memcmp( buf, "foobar\0:p", 6 ) ? 0 : 1 );
    174 }
    175 EOF
    176   if runcmd $CC -o testconf testconf.c && runcmd ./testconf
    177   then
    178     CFLAGS="$CFLAGS -DHAVE_STRLCAT"
    179   fi
    180   rm -f testconf*
    181 }
    182 
    183 asprintf_test()
    184 {
    185   verbose asprintf_test
    186   cat > testconf.c <<EOF
    187 #define _GNU_SOURCE
    188 #include <stdio.h>
    189 int main()
    190 {
    191   asprintf( NULL, NULL );
     2316
     2317  ;
    1922318  return 0;
    1932319}
    194 EOF
    195   if runcmd $CC -o testconf testconf.c
    196   then
    197     CFLAGS="$CFLAGS -DHAVE_ASPRINTF"
    198   fi
    199   rm -f testconf*
    200 }
    201 
    202 snprintf_test()
     2320_ACEOF
     2321rm -f conftest.o conftest.obj
     2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2323  (eval $ac_compile) 2>&5
     2324  ac_status=$?
     2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2326  (exit $ac_status); }; then
     2327  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2328  case $ac_file in
     2329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2330    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     2331       break;;
     2332  esac
     2333done
     2334else
     2335  echo "$as_me: failed program was:" >&5
     2336sed 's/^/| /' conftest.$ac_ext >&5
     2337
     2338{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2339See \`config.log' for more details." >&5
     2340echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2341See \`config.log' for more details." >&2;}
     2342   { (exit 1); exit 1; }; }
     2343fi
     2344
     2345rm -f conftest.$ac_cv_objext conftest.$ac_ext
     2346fi
     2347echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2348echo "${ECHO_T}$ac_cv_objext" >&6
     2349OBJEXT=$ac_cv_objext
     2350ac_objext=$OBJEXT
     2351echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2352echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2353if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2354  echo $ECHO_N "(cached) $ECHO_C" >&6
     2355else
     2356  cat >conftest.$ac_ext <<_ACEOF
     2357/* confdefs.h.  */
     2358_ACEOF
     2359cat confdefs.h >>conftest.$ac_ext
     2360cat >>conftest.$ac_ext <<_ACEOF
     2361/* end confdefs.h.  */
     2362
     2363int
     2364main ()
    2032365{
    204   verbose snprintf_test
    205   cat > testconf.c <<EOF
    206 #include <stdio.h>
    207 int main()
    208 {
    209   char buf[] = "blueberry";
    210   return ( 6 != snprintf( buf, 4, "%s%s", "foo", "bar" ) ||
    211            0 != memcmp( buf, "foo\0berry", 9 ) );
    212 }
    213 EOF
    214   if ! runcmd $CC -o testconf testconf.c || ! runcmd ./testconf
    215   then
    216     echo "error: broken snprintf() found"
    217     exit 1
    218   fi
    219   rm -f testconf*
    220 }
    221 
    222 libgen_test()
    223 {
    224   verbose libgen_test
    225   cat > testconf.c << EOF
    226 #include <libgen.h>
    227 int main()
    228 {
     2366#ifndef __GNUC__
     2367       choke me
     2368#endif
     2369
     2370  ;
    2292371  return 0;
    2302372}
    231 EOF
    232   if runcmd $CC -o testconf testconf.c
    233   then
    234     CFLAGS="$CFLAGS -DHAVE_LIBGEN"
     2373_ACEOF
     2374rm -f conftest.$ac_objext
     2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2376  (eval $ac_compile) 2>conftest.er1
     2377  ac_status=$?
     2378  grep -v '^ *+' conftest.er1 >conftest.err
     2379  rm -f conftest.er1
     2380  cat conftest.err >&5
     2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2382  (exit $ac_status); } &&
     2383         { ac_try='test -z "$ac_c_werror_flag"
     2384                         || test ! -s conftest.err'
     2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2386  (eval $ac_try) 2>&5
     2387  ac_status=$?
     2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2389  (exit $ac_status); }; } &&
     2390         { ac_try='test -s conftest.$ac_objext'
     2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2392  (eval $ac_try) 2>&5
     2393  ac_status=$?
     2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2395  (exit $ac_status); }; }; then
     2396  ac_compiler_gnu=yes
     2397else
     2398  echo "$as_me: failed program was:" >&5
     2399sed 's/^/| /' conftest.$ac_ext >&5
     2400
     2401ac_compiler_gnu=no
     2402fi
     2403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2404ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2405
     2406fi
     2407echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2408echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2409GCC=`test $ac_compiler_gnu = yes && echo yes`
     2410ac_test_CFLAGS=${CFLAGS+set}
     2411ac_save_CFLAGS=$CFLAGS
     2412CFLAGS="-g"
     2413echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2414echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2415if test "${ac_cv_prog_cc_g+set}" = set; then
     2416  echo $ECHO_N "(cached) $ECHO_C" >&6
     2417else
     2418  cat >conftest.$ac_ext <<_ACEOF
     2419/* confdefs.h.  */
     2420_ACEOF
     2421cat confdefs.h >>conftest.$ac_ext
     2422cat >>conftest.$ac_ext <<_ACEOF
     2423/* end confdefs.h.  */
     2424
     2425int
     2426main ()
     2427{
     2428
     2429  ;
     2430  return 0;
     2431}
     2432_ACEOF
     2433rm -f conftest.$ac_objext
     2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2435  (eval $ac_compile) 2>conftest.er1
     2436  ac_status=$?
     2437  grep -v '^ *+' conftest.er1 >conftest.err
     2438  rm -f conftest.er1
     2439  cat conftest.err >&5
     2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2441  (exit $ac_status); } &&
     2442         { ac_try='test -z "$ac_c_werror_flag"
     2443                         || test ! -s conftest.err'
     2444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2445  (eval $ac_try) 2>&5
     2446  ac_status=$?
     2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2448  (exit $ac_status); }; } &&
     2449         { ac_try='test -s conftest.$ac_objext'
     2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2451  (eval $ac_try) 2>&5
     2452  ac_status=$?
     2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2454  (exit $ac_status); }; }; then
     2455  ac_cv_prog_cc_g=yes
     2456else
     2457  echo "$as_me: failed program was:" >&5
     2458sed 's/^/| /' conftest.$ac_ext >&5
     2459
     2460ac_cv_prog_cc_g=no
     2461fi
     2462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2463fi
     2464echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2465echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2466if test "$ac_test_CFLAGS" = set; then
     2467  CFLAGS=$ac_save_CFLAGS
     2468elif test $ac_cv_prog_cc_g = yes; then
     2469  if test "$GCC" = yes; then
     2470    CFLAGS="-g -O2"
     2471  else
     2472    CFLAGS="-g"
    2352473  fi
    236   rm -f testconf*
     2474else
     2475  if test "$GCC" = yes; then
     2476    CFLAGS="-O2"
     2477  else
     2478    CFLAGS=
     2479  fi
     2480fi
     2481echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2482echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2483if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2484  echo $ECHO_N "(cached) $ECHO_C" >&6
     2485else
     2486  ac_cv_prog_cc_stdc=no
     2487ac_save_CC=$CC
     2488cat >conftest.$ac_ext <<_ACEOF
     2489/* confdefs.h.  */
     2490_ACEOF
     2491cat confdefs.h >>conftest.$ac_ext
     2492cat >>conftest.$ac_ext <<_ACEOF
     2493/* end confdefs.h.  */
     2494#include <stdarg.h>
     2495#include <stdio.h>
     2496#include <sys/types.h>
     2497#include <sys/stat.h>
     2498/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2499struct buf { int x; };
     2500FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2501static char *e (p, i)
     2502     char **p;
     2503     int i;
     2504{
     2505  return p[i];
    2372506}
    238 
    239 gettext_test()
     2507static char *f (char * (*g) (char **, int), char **p, ...)
    2402508{
    241   verbose gettext_test
    242   cat > testconf.c <<EOF
    243   #include <libintl.h>
    244   int main()
    245   {
    246     gettext("");
    247   }
    248 EOF
    249 
    250   if runcmd $CC $CFLAGS_GTK $LDFLAGS_GTK -o testconf testconf.c
    251   then
    252     rm -f testconf*
    253     return 0
     2509  char *s;
     2510  va_list v;
     2511  va_start (v,p);
     2512  s = g (p, va_arg (v,int));
     2513  va_end (v);
     2514  return s;
     2515}
     2516
     2517/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2518   function prototypes and stuff, but not '\xHH' hex character constants.
     2519   These don't provoke an error unfortunately, instead are silently treated
     2520   as 'x'.  The following induces an error, until -std1 is added to get
     2521   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2522   array size at least.  It's necessary to write '\x00'==0 to get something
     2523   that's true only with -std1.  */
     2524int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2525
     2526int test (int i, double x);
     2527struct s1 {int (*f) (int a);};
     2528struct s2 {int (*f) (double a);};
     2529int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2530int argc;
     2531char **argv;
     2532int
     2533main ()
     2534{
     2535return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2536  ;
     2537  return 0;
     2538}
     2539_ACEOF
     2540# Don't try gcc -ansi; that turns off useful extensions and
     2541# breaks some systems' header files.
     2542# AIX                   -qlanglvl=ansi
     2543# Ultrix and OSF/1      -std1
     2544# HP-UX 10.20 and later -Ae
     2545# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2546# SVR4                  -Xc -D__EXTENSIONS__
     2547for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2548do
     2549  CC="$ac_save_CC $ac_arg"
     2550  rm -f conftest.$ac_objext
     2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2552  (eval $ac_compile) 2>conftest.er1
     2553  ac_status=$?
     2554  grep -v '^ *+' conftest.er1 >conftest.err
     2555  rm -f conftest.er1
     2556  cat conftest.err >&5
     2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2558  (exit $ac_status); } &&
     2559         { ac_try='test -z "$ac_c_werror_flag"
     2560                         || test ! -s conftest.err'
     2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2562  (eval $ac_try) 2>&5
     2563  ac_status=$?
     2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2565  (exit $ac_status); }; } &&
     2566         { ac_try='test -s conftest.$ac_objext'
     2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2568  (eval $ac_try) 2>&5
     2569  ac_status=$?
     2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2571  (exit $ac_status); }; }; then
     2572  ac_cv_prog_cc_stdc=$ac_arg
     2573break
     2574else
     2575  echo "$as_me: failed program was:" >&5
     2576sed 's/^/| /' conftest.$ac_ext >&5
     2577
     2578fi
     2579rm -f conftest.err conftest.$ac_objext
     2580done
     2581rm -f conftest.$ac_ext conftest.$ac_objext
     2582CC=$ac_save_CC
     2583
     2584fi
     2585
     2586case "x$ac_cv_prog_cc_stdc" in
     2587  x|xno)
     2588    echo "$as_me:$LINENO: result: none needed" >&5
     2589echo "${ECHO_T}none needed" >&6 ;;
     2590  *)
     2591    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2592echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2593    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2594esac
     2595
     2596# Some people use a C++ compiler to compile C.  Since we use `exit',
     2597# in C++ we need to declare it.  In case someone uses the same compiler
     2598# for both compiling C and C++ we need to have the C++ compiler decide
     2599# the declaration of exit, since it's the most demanding environment.
     2600cat >conftest.$ac_ext <<_ACEOF
     2601#ifndef __cplusplus
     2602  choke me
     2603#endif
     2604_ACEOF
     2605rm -f conftest.$ac_objext
     2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2607  (eval $ac_compile) 2>conftest.er1
     2608  ac_status=$?
     2609  grep -v '^ *+' conftest.er1 >conftest.err
     2610  rm -f conftest.er1
     2611  cat conftest.err >&5
     2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2613  (exit $ac_status); } &&
     2614         { ac_try='test -z "$ac_c_werror_flag"
     2615                         || test ! -s conftest.err'
     2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2617  (eval $ac_try) 2>&5
     2618  ac_status=$?
     2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2620  (exit $ac_status); }; } &&
     2621         { ac_try='test -s conftest.$ac_objext'
     2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2623  (eval $ac_try) 2>&5
     2624  ac_status=$?
     2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2626  (exit $ac_status); }; }; then
     2627  for ac_declaration in \
     2628   '' \
     2629   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2630   'extern "C" void std::exit (int); using std::exit;' \
     2631   'extern "C" void exit (int) throw ();' \
     2632   'extern "C" void exit (int);' \
     2633   'void exit (int);'
     2634do
     2635  cat >conftest.$ac_ext <<_ACEOF
     2636/* confdefs.h.  */
     2637_ACEOF
     2638cat confdefs.h >>conftest.$ac_ext
     2639cat >>conftest.$ac_ext <<_ACEOF
     2640/* end confdefs.h.  */
     2641$ac_declaration
     2642#include <stdlib.h>
     2643int
     2644main ()
     2645{
     2646exit (42);
     2647  ;
     2648  return 0;
     2649}
     2650_ACEOF
     2651rm -f conftest.$ac_objext
     2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2653  (eval $ac_compile) 2>conftest.er1
     2654  ac_status=$?
     2655  grep -v '^ *+' conftest.er1 >conftest.err
     2656  rm -f conftest.er1
     2657  cat conftest.err >&5
     2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2659  (exit $ac_status); } &&
     2660         { ac_try='test -z "$ac_c_werror_flag"
     2661                         || test ! -s conftest.err'
     2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2663  (eval $ac_try) 2>&5
     2664  ac_status=$?
     2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2666  (exit $ac_status); }; } &&
     2667         { ac_try='test -s conftest.$ac_objext'
     2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2669  (eval $ac_try) 2>&5
     2670  ac_status=$?
     2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2672  (exit $ac_status); }; }; then
     2673  :
     2674else
     2675  echo "$as_me: failed program was:" >&5
     2676sed 's/^/| /' conftest.$ac_ext >&5
     2677
     2678continue
     2679fi
     2680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2681  cat >conftest.$ac_ext <<_ACEOF
     2682/* confdefs.h.  */
     2683_ACEOF
     2684cat confdefs.h >>conftest.$ac_ext
     2685cat >>conftest.$ac_ext <<_ACEOF
     2686/* end confdefs.h.  */
     2687$ac_declaration
     2688int
     2689main ()
     2690{
     2691exit (42);
     2692  ;
     2693  return 0;
     2694}
     2695_ACEOF
     2696rm -f conftest.$ac_objext
     2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2698  (eval $ac_compile) 2>conftest.er1
     2699  ac_status=$?
     2700  grep -v '^ *+' conftest.er1 >conftest.err
     2701  rm -f conftest.er1
     2702  cat conftest.err >&5
     2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2704  (exit $ac_status); } &&
     2705         { ac_try='test -z "$ac_c_werror_flag"
     2706                         || test ! -s conftest.err'
     2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2708  (eval $ac_try) 2>&5
     2709  ac_status=$?
     2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2711  (exit $ac_status); }; } &&
     2712         { ac_try='test -s conftest.$ac_objext'
     2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2714  (eval $ac_try) 2>&5
     2715  ac_status=$?
     2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2717  (exit $ac_status); }; }; then
     2718  break
     2719else
     2720  echo "$as_me: failed program was:" >&5
     2721sed 's/^/| /' conftest.$ac_ext >&5
     2722
     2723fi
     2724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2725done
     2726rm -f conftest*
     2727if test -n "$ac_declaration"; then
     2728  echo '#ifdef __cplusplus' >>confdefs.h
     2729  echo $ac_declaration      >>confdefs.h
     2730  echo '#endif'             >>confdefs.h
     2731fi
     2732
     2733else
     2734  echo "$as_me: failed program was:" >&5
     2735sed 's/^/| /' conftest.$ac_ext >&5
     2736
     2737fi
     2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2739ac_ext=c
     2740ac_cpp='$CPP $CPPFLAGS'
     2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2744DEPDIR="${am__leading_dot}deps"
     2745
     2746          ac_config_commands="$ac_config_commands depfiles"
     2747
     2748
     2749am_make=${MAKE-make}
     2750cat > confinc << 'END'
     2751am__doit:
     2752        @echo done
     2753.PHONY: am__doit
     2754END
     2755# If we don't find an include directive, just comment out the code.
     2756echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     2757echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     2758am__include="#"
     2759am__quote=
     2760_am_result=none
     2761# First try GNU make style include.
     2762echo "include confinc" > confmf
     2763# We grep out `Entering directory' and `Leaving directory'
     2764# messages which can occur if `w' ends up in MAKEFLAGS.
     2765# In particular we don't look at `^make:' because GNU make might
     2766# be invoked under some other name (usually "gmake"), in which
     2767# case it prints its new name instead of `make'.
     2768if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     2769   am__include=include
     2770   am__quote=
     2771   _am_result=GNU
     2772fi
     2773# Now try BSD make style include.
     2774if test "$am__include" = "#"; then
     2775   echo '.include "confinc"' > confmf
     2776   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     2777      am__include=.include
     2778      am__quote="\""
     2779      _am_result=BSD
     2780   fi
     2781fi
     2782
     2783
     2784echo "$as_me:$LINENO: result: $_am_result" >&5
     2785echo "${ECHO_T}$_am_result" >&6
     2786rm -f confinc confmf
     2787
     2788# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     2789if test "${enable_dependency_tracking+set}" = set; then
     2790  enableval="$enable_dependency_tracking"
     2791
     2792fi;
     2793if test "x$enable_dependency_tracking" != xno; then
     2794  am_depcomp="$ac_aux_dir/depcomp"
     2795  AMDEPBACKSLASH='\'
     2796fi
     2797
     2798
     2799if test "x$enable_dependency_tracking" != xno; then
     2800  AMDEP_TRUE=
     2801  AMDEP_FALSE='#'
     2802else
     2803  AMDEP_TRUE='#'
     2804  AMDEP_FALSE=
     2805fi
     2806
     2807
     2808
     2809
     2810depcc="$CC"   am_compiler_list=
     2811
     2812echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     2813echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     2814if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     2815  echo $ECHO_N "(cached) $ECHO_C" >&6
     2816else
     2817  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     2818  # We make a subdir and do the tests there.  Otherwise we can end up
     2819  # making bogus files that we don't know about and never remove.  For
     2820  # instance it was reported that on HP-UX the gcc test will end up
     2821  # making a dummy file named `D' -- because `-MD' means `put the output
     2822  # in D'.
     2823  mkdir conftest.dir
     2824  # Copy depcomp to subdir because otherwise we won't find it if we're
     2825  # using a relative directory.
     2826  cp "$am_depcomp" conftest.dir
     2827  cd conftest.dir
     2828  # We will build objects and dependencies in a subdirectory because
     2829  # it helps to detect inapplicable dependency modes.  For instance
     2830  # both Tru64's cc and ICC support -MD to output dependencies as a
     2831  # side effect of compilation, but ICC will put the dependencies in
     2832  # the current directory while Tru64 will put them in the object
     2833  # directory.
     2834  mkdir sub
     2835
     2836  am_cv_CC_dependencies_compiler_type=none
     2837  if test "$am_compiler_list" = ""; then
     2838     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    2542839  fi
    255 
    256   for intl_testdir in $PREFIX/include \
    257       /usr/local/include /usr/X11R6/include /usr/pkg/include
    258   do
    259     if runcmd $CC $CFLAGS_GTK -I$intl_testdir $LDFLAGS_GTK -o testconf testconf.c
    260     then
    261       CFLAGS_GTK="$CFLAGS_GTK -I$intl_testdir"
    262       rm -f testconf*
    263       return 0
     2840  for depmode in $am_compiler_list; do
     2841    # Setup a source with many dependencies, because some compilers
     2842    # like to wrap large dependency lists on column 80 (with \), and
     2843    # we should not choose a depcomp mode which is confused by this.
     2844    #
     2845    # We need to recreate these files for each test, as the compiler may
     2846    # overwrite some of them when testing with obscure command lines.
     2847    # This happens at least with the AIX C compiler.
     2848    : > sub/conftest.c
     2849    for i in 1 2 3 4 5 6; do
     2850      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     2851      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     2852      # Solaris 8's {/usr,}/bin/sh.
     2853      touch sub/conftst$i.h
     2854    done
     2855    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     2856
     2857    case $depmode in
     2858    nosideeffect)
     2859      # after this tag, mechanisms are not by side-effect, so they'll
     2860      # only be used when explicitly requested
     2861      if test "x$enable_dependency_tracking" = xyes; then
     2862        continue
     2863      else
     2864        break
     2865      fi
     2866      ;;
     2867    none) break ;;
     2868    esac
     2869    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     2870    # mode.  It turns out that the SunPro C++ compiler does not properly
     2871    # handle `-M -o', and we need to detect this.
     2872    if depmode=$depmode \
     2873       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     2874       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     2875       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     2876         >/dev/null 2>conftest.err &&
     2877       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     2878       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     2879       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     2880      # icc doesn't choke on unknown options, it will just issue warnings
     2881      # or remarks (even with -Werror).  So we grep stderr for any message
     2882      # that says an option was ignored or not supported.
     2883      # When given -MP, icc 7.0 and 7.1 complain thusly:
     2884      #   icc: Command line warning: ignoring option '-M'; no argument required
     2885      # The diagnosis changed in icc 8.0:
     2886      #   icc: Command line remark: option '-MP' not supported
     2887      if (grep 'ignoring option' conftest.err ||
     2888          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     2889        am_cv_CC_dependencies_compiler_type=$depmode
     2890        break
     2891      fi
    2642892    fi
    2652893  done
    266   rm -f testconf*
    267   return 1
     2894
     2895  cd ..
     2896  rm -rf conftest.dir
     2897else
     2898  am_cv_CC_dependencies_compiler_type=none
     2899fi
     2900
     2901fi
     2902echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     2903echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     2904CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     2905
     2906
     2907
     2908if
     2909  test "x$enable_dependency_tracking" != xno \
     2910  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     2911  am__fastdepCC_TRUE=
     2912  am__fastdepCC_FALSE='#'
     2913else
     2914  am__fastdepCC_TRUE='#'
     2915  am__fastdepCC_FALSE=
     2916fi
     2917
     2918
     2919ac_ext=cc
     2920ac_cpp='$CXXCPP $CPPFLAGS'
     2921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2924if test -n "$ac_tool_prefix"; then
     2925  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2926  do
     2927    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2929echo "$as_me:$LINENO: checking for $ac_word" >&5
     2930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2931if test "${ac_cv_prog_CXX+set}" = set; then
     2932  echo $ECHO_N "(cached) $ECHO_C" >&6
     2933else
     2934  if test -n "$CXX"; then
     2935  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     2936else
     2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2938for as_dir in $PATH
     2939do
     2940  IFS=$as_save_IFS
     2941  test -z "$as_dir" && as_dir=.
     2942  for ac_exec_ext in '' $ac_executable_extensions; do
     2943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2944    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     2945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2946    break 2
     2947  fi
     2948done
     2949done
     2950
     2951fi
     2952fi
     2953CXX=$ac_cv_prog_CXX
     2954if test -n "$CXX"; then
     2955  echo "$as_me:$LINENO: result: $CXX" >&5
     2956echo "${ECHO_T}$CXX" >&6
     2957else
     2958  echo "$as_me:$LINENO: result: no" >&5
     2959echo "${ECHO_T}no" >&6
     2960fi
     2961
     2962    test -n "$CXX" && break
     2963  done
     2964fi
     2965if test -z "$CXX"; then
     2966  ac_ct_CXX=$CXX
     2967  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     2968do
     2969  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2970set dummy $ac_prog; ac_word=$2
     2971echo "$as_me:$LINENO: checking for $ac_word" >&5
     2972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2973if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     2974  echo $ECHO_N "(cached) $ECHO_C" >&6
     2975else
     2976  if test -n "$ac_ct_CXX"; then
     2977  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     2978else
     2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2980for as_dir in $PATH
     2981do
     2982  IFS=$as_save_IFS
     2983  test -z "$as_dir" && as_dir=.
     2984  for ac_exec_ext in '' $ac_executable_extensions; do
     2985  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2986    ac_cv_prog_ac_ct_CXX="$ac_prog"
     2987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2988    break 2
     2989  fi
     2990done
     2991done
     2992
     2993fi
     2994fi
     2995ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     2996if test -n "$ac_ct_CXX"; then
     2997  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     2998echo "${ECHO_T}$ac_ct_CXX" >&6
     2999else
     3000  echo "$as_me:$LINENO: result: no" >&5
     3001echo "${ECHO_T}no" >&6
     3002fi
     3003
     3004  test -n "$ac_ct_CXX" && break
     3005done
     3006test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     3007
     3008  CXX=$ac_ct_CXX
     3009fi
     3010
     3011
     3012# Provide some information about the compiler.
     3013echo "$as_me:$LINENO:" \
     3014     "checking for C++ compiler version" >&5
     3015ac_compiler=`set X $ac_compile; echo $2`
     3016{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3017  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3018  ac_status=$?
     3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3020  (exit $ac_status); }
     3021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3022  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3023  ac_status=$?
     3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3025  (exit $ac_status); }
     3026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3027  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3028  ac_status=$?
     3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3030  (exit $ac_status); }
     3031
     3032echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3033echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     3034if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     3035  echo $ECHO_N "(cached) $ECHO_C" >&6
     3036else
     3037  cat >conftest.$ac_ext <<_ACEOF
     3038/* confdefs.h.  */
     3039_ACEOF
     3040cat confdefs.h >>conftest.$ac_ext
     3041cat >>conftest.$ac_ext <<_ACEOF
     3042/* end confdefs.h.  */
     3043
     3044int
     3045main ()
     3046{
     3047#ifndef __GNUC__
     3048       choke me
     3049#endif
     3050
     3051  ;
     3052  return 0;
    2683053}
    269 
    270 gtk_test()
     3054_ACEOF
     3055rm -f conftest.$ac_objext
     3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3057  (eval $ac_compile) 2>conftest.er1
     3058  ac_status=$?
     3059  grep -v '^ *+' conftest.er1 >conftest.err
     3060  rm -f conftest.er1
     3061  cat conftest.err >&5
     3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3063  (exit $ac_status); } &&
     3064         { ac_try='test -z "$ac_cxx_werror_flag"
     3065                         || test ! -s conftest.err'
     3066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3067  (eval $ac_try) 2>&5
     3068  ac_status=$?
     3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3070  (exit $ac_status); }; } &&
     3071         { ac_try='test -s conftest.$ac_objext'
     3072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3073  (eval $ac_try) 2>&5
     3074  ac_status=$?
     3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3076  (exit $ac_status); }; }; then
     3077  ac_compiler_gnu=yes
     3078else
     3079  echo "$as_me: failed program was:" >&5
     3080sed 's/^/| /' conftest.$ac_ext >&5
     3081
     3082ac_compiler_gnu=no
     3083fi
     3084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3085ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     3086
     3087fi
     3088echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3089echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     3090GXX=`test $ac_compiler_gnu = yes && echo yes`
     3091ac_test_CXXFLAGS=${CXXFLAGS+set}
     3092ac_save_CXXFLAGS=$CXXFLAGS
     3093CXXFLAGS="-g"
     3094echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3095echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     3096if test "${ac_cv_prog_cxx_g+set}" = set; then
     3097  echo $ECHO_N "(cached) $ECHO_C" >&6
     3098else
     3099  cat >conftest.$ac_ext <<_ACEOF
     3100/* confdefs.h.  */
     3101_ACEOF
     3102cat confdefs.h >>conftest.$ac_ext
     3103cat >>conftest.$ac_ext <<_ACEOF
     3104/* end confdefs.h.  */
     3105
     3106int
     3107main ()
    2713108{
    272   verbose gtk_test
    273   if runcmd pkg-config gtk+-2.0
    274   then
    275     if runcmd pkg-config --exists gtk+-2.0 '>=' 2.6.0
    276     then
    277       cat > testconf.c << EOF
    278       #include <gtk/gtk.h>
    279       int main()
    280       {
    281         gtk_main();
    282       }
    283 EOF
    284       if runcmd $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c
    285       then
    286         CFLAGS_GTK=`pkg-config gtk+-2.0 --cflags`
    287         LDFLAGS_GTK=`pkg-config gtk+-2.0 --libs`
    288         if gettext_test
    289         then
    290           echo "yes"
    291           GTK=yes
    292           LOCALEDIR="$PREFIX/share/locale"
    293           CFLAGS_GTK="$CFLAGS_GTK -DLOCALEDIR=\\"\""$LOCALEDIR\\"\"
     3109
     3110  ;
     3111  return 0;
     3112}
     3113_ACEOF
     3114rm -f conftest.$ac_objext
     3115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3116  (eval $ac_compile) 2>conftest.er1
     3117  ac_status=$?
     3118  grep -v '^ *+' conftest.er1 >conftest.err
     3119  rm -f conftest.er1
     3120  cat conftest.err >&5
     3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3122  (exit $ac_status); } &&
     3123         { ac_try='test -z "$ac_cxx_werror_flag"
     3124                         || test ! -s conftest.err'
     3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3126  (eval $ac_try) 2>&5
     3127  ac_status=$?
     3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3129  (exit $ac_status); }; } &&
     3130         { ac_try='test -s conftest.$ac_objext'
     3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3132  (eval $ac_try) 2>&5
     3133  ac_status=$?
     3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3135  (exit $ac_status); }; }; then
     3136  ac_cv_prog_cxx_g=yes
     3137else
     3138  echo "$as_me: failed program was:" >&5
     3139sed 's/^/| /' conftest.$ac_ext >&5
     3140
     3141ac_cv_prog_cxx_g=no
     3142fi
     3143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3144fi
     3145echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3146echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3147if test "$ac_test_CXXFLAGS" = set; then
     3148  CXXFLAGS=$ac_save_CXXFLAGS
     3149elif test $ac_cv_prog_cxx_g = yes; then
     3150  if test "$GXX" = yes; then
     3151    CXXFLAGS="-g -O2"
     3152  else
     3153    CXXFLAGS="-g"
     3154  fi
     3155else
     3156  if test "$GXX" = yes; then
     3157    CXXFLAGS="-O2"
     3158  else
     3159    CXXFLAGS=
     3160  fi
     3161fi
     3162for ac_declaration in \
     3163   '' \
     3164   'extern "C" void std::exit (int) throw (); using std::exit;' \
     3165   'extern "C" void std::exit (int); using std::exit;' \
     3166   'extern "C" void exit (int) throw ();' \
     3167   'extern "C" void exit (int);' \
     3168   'void exit (int);'
     3169do
     3170  cat >conftest.$ac_ext <<_ACEOF
     3171/* confdefs.h.  */
     3172_ACEOF
     3173cat confdefs.h >>conftest.$ac_ext
     3174cat >>conftest.$ac_ext <<_ACEOF
     3175/* end confdefs.h.  */
     3176$ac_declaration
     3177#include <stdlib.h>
     3178int
     3179main ()
     3180{
     3181exit (42);
     3182  ;
     3183  return 0;
     3184}
     3185_ACEOF
     3186rm -f conftest.$ac_objext
     3187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3188  (eval $ac_compile) 2>conftest.er1
     3189  ac_status=$?
     3190  grep -v '^ *+' conftest.er1 >conftest.err
     3191  rm -f conftest.er1
     3192  cat conftest.err >&5
     3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3194  (exit $ac_status); } &&
     3195         { ac_try='test -z "$ac_cxx_werror_flag"
     3196                         || test ! -s conftest.err'
     3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3198  (eval $ac_try) 2>&5
     3199  ac_status=$?
     3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3201  (exit $ac_status); }; } &&
     3202         { ac_try='test -s conftest.$ac_objext'
     3203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3204  (eval $ac_try) 2>&5
     3205  ac_status=$?
     3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3207  (exit $ac_status); }; }; then
     3208  :
     3209else
     3210  echo "$as_me: failed program was:" >&5
     3211sed 's/^/| /' conftest.$ac_ext >&5
     3212
     3213continue
     3214fi
     3215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3216  cat >conftest.$ac_ext <<_ACEOF
     3217/* confdefs.h.  */
     3218_ACEOF
     3219cat confdefs.h >>conftest.$ac_ext
     3220cat >>conftest.$ac_ext <<_ACEOF
     3221/* end confdefs.h.  */
     3222$ac_declaration
     3223int
     3224main ()
     3225{
     3226exit (42);
     3227  ;
     3228  return 0;
     3229}
     3230_ACEOF
     3231rm -f conftest.$ac_objext
     3232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3233  (eval $ac_compile) 2>conftest.er1
     3234  ac_status=$?
     3235  grep -v '^ *+' conftest.er1 >conftest.err
     3236  rm -f conftest.er1
     3237  cat conftest.err >&5
     3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3239  (exit $ac_status); } &&
     3240         { ac_try='test -z "$ac_cxx_werror_flag"
     3241                         || test ! -s conftest.err'
     3242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3243  (eval $ac_try) 2>&5
     3244  ac_status=$?
     3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3246  (exit $ac_status); }; } &&
     3247         { ac_try='test -s conftest.$ac_objext'
     3248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3249  (eval $ac_try) 2>&5
     3250  ac_status=$?
     3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3252  (exit $ac_status); }; }; then
     3253  break
     3254else
     3255  echo "$as_me: failed program was:" >&5
     3256sed 's/^/| /' conftest.$ac_ext >&5
     3257
     3258fi
     3259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3260done
     3261rm -f conftest*
     3262if test -n "$ac_declaration"; then
     3263  echo '#ifdef __cplusplus' >>confdefs.h
     3264  echo $ac_declaration      >>confdefs.h
     3265  echo '#endif'             >>confdefs.h
     3266fi
     3267
     3268ac_ext=c
     3269ac_cpp='$CPP $CPPFLAGS'
     3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3273
     3274depcc="$CXX"  am_compiler_list=
     3275
     3276echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     3277echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     3278if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     3279  echo $ECHO_N "(cached) $ECHO_C" >&6
     3280else
     3281  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     3282  # We make a subdir and do the tests there.  Otherwise we can end up
     3283  # making bogus files that we don't know about and never remove.  For
     3284  # instance it was reported that on HP-UX the gcc test will end up
     3285  # making a dummy file named `D' -- because `-MD' means `put the output
     3286  # in D'.
     3287  mkdir conftest.dir
     3288  # Copy depcomp to subdir because otherwise we won't find it if we're
     3289  # using a relative directory.
     3290  cp "$am_depcomp" conftest.dir
     3291  cd conftest.dir
     3292  # We will build objects and dependencies in a subdirectory because
     3293  # it helps to detect inapplicable dependency modes.  For instance
     3294  # both Tru64's cc and ICC support -MD to output dependencies as a
     3295  # side effect of compilation, but ICC will put the dependencies in
     3296  # the current directory while Tru64 will put them in the object
     3297  # directory.
     3298  mkdir sub
     3299
     3300  am_cv_CXX_dependencies_compiler_type=none
     3301  if test "$am_compiler_list" = ""; then
     3302     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     3303  fi
     3304  for depmode in $am_compiler_list; do
     3305    # Setup a source with many dependencies, because some compilers
     3306    # like to wrap large dependency lists on column 80 (with \), and
     3307    # we should not choose a depcomp mode which is confused by this.
     3308    #
     3309    # We need to recreate these files for each test, as the compiler may
     3310    # overwrite some of them when testing with obscure command lines.
     3311    # This happens at least with the AIX C compiler.
     3312    : > sub/conftest.c
     3313    for i in 1 2 3 4 5 6; do
     3314      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     3315      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     3316      # Solaris 8's {/usr,}/bin/sh.
     3317      touch sub/conftst$i.h
     3318    done
     3319    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     3320
     3321    case $depmode in
     3322    nosideeffect)
     3323      # after this tag, mechanisms are not by side-effect, so they'll
     3324      # only be used when explicitly requested
     3325      if test "x$enable_dependency_tracking" = xyes; then
     3326        continue
     3327      else
     3328        break
     3329      fi
     3330      ;;
     3331    none) break ;;
     3332    esac
     3333    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     3334    # mode.  It turns out that the SunPro C++ compiler does not properly
     3335    # handle `-M -o', and we need to detect this.
     3336    if depmode=$depmode \
     3337       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     3338       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     3339       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     3340         >/dev/null 2>conftest.err &&
     3341       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     3342       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     3343       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     3344      # icc doesn't choke on unknown options, it will just issue warnings
     3345      # or remarks (even with -Werror).  So we grep stderr for any message
     3346      # that says an option was ignored or not supported.
     3347      # When given -MP, icc 7.0 and 7.1 complain thusly:
     3348      #   icc: Command line warning: ignoring option '-M'; no argument required
     3349      # The diagnosis changed in icc 8.0:
     3350      #   icc: Command line remark: option '-MP' not supported
     3351      if (grep 'ignoring option' conftest.err ||
     3352          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     3353        am_cv_CXX_dependencies_compiler_type=$depmode
     3354        break
     3355      fi
     3356    fi
     3357  done
     3358
     3359  cd ..
     3360  rm -rf conftest.dir
     3361else
     3362  am_cv_CXX_dependencies_compiler_type=none
     3363fi
     3364
     3365fi
     3366echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     3367echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     3368CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     3369
     3370
     3371
     3372if
     3373  test "x$enable_dependency_tracking" != xno \
     3374  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     3375  am__fastdepCXX_TRUE=
     3376  am__fastdepCXX_FALSE='#'
     3377else
     3378  am__fastdepCXX_TRUE='#'
     3379  am__fastdepCXX_FALSE=
     3380fi
     3381
     3382
     3383
     3384ac_ext=c
     3385ac_cpp='$CPP $CPPFLAGS'
     3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3389echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3390echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     3391# On Suns, sometimes $CPP names a directory.
     3392if test -n "$CPP" && test -d "$CPP"; then
     3393  CPP=
     3394fi
     3395if test -z "$CPP"; then
     3396  if test "${ac_cv_prog_CPP+set}" = set; then
     3397  echo $ECHO_N "(cached) $ECHO_C" >&6
     3398else
     3399      # Double quotes because CPP needs to be expanded
     3400    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3401    do
     3402      ac_preproc_ok=false
     3403for ac_c_preproc_warn_flag in '' yes
     3404do
     3405  # Use a header file that comes with gcc, so configuring glibc
     3406  # with a fresh cross-compiler works.
     3407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3408  # <limits.h> exists even on freestanding compilers.
     3409  # On the NeXT, cc -E runs the code through the compiler's parser,
     3410  # not just through cpp. "Syntax error" is here to catch this case.
     3411  cat >conftest.$ac_ext <<_ACEOF
     3412/* confdefs.h.  */
     3413_ACEOF
     3414cat confdefs.h >>conftest.$ac_ext
     3415cat >>conftest.$ac_ext <<_ACEOF
     3416/* end confdefs.h.  */
     3417#ifdef __STDC__
     3418# include <limits.h>
     3419#else
     3420# include <assert.h>
     3421#endif
     3422                     Syntax error
     3423_ACEOF
     3424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3425  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3426  ac_status=$?
     3427  grep -v '^ *+' conftest.er1 >conftest.err
     3428  rm -f conftest.er1
     3429  cat conftest.err >&5
     3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3431  (exit $ac_status); } >/dev/null; then
     3432  if test -s conftest.err; then
     3433    ac_cpp_err=$ac_c_preproc_warn_flag
     3434    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3435  else
     3436    ac_cpp_err=
     3437  fi
     3438else
     3439  ac_cpp_err=yes
     3440fi
     3441if test -z "$ac_cpp_err"; then
     3442  :
     3443else
     3444  echo "$as_me: failed program was:" >&5
     3445sed 's/^/| /' conftest.$ac_ext >&5
     3446
     3447  # Broken: fails on valid input.
     3448continue
     3449fi
     3450rm -f conftest.err conftest.$ac_ext
     3451
     3452  # OK, works on sane cases.  Now check whether non-existent headers
     3453  # can be detected and how.
     3454  cat >conftest.$ac_ext <<_ACEOF
     3455/* confdefs.h.  */
     3456_ACEOF
     3457cat confdefs.h >>conftest.$ac_ext
     3458cat >>conftest.$ac_ext <<_ACEOF
     3459/* end confdefs.h.  */
     3460#include <ac_nonexistent.h>
     3461_ACEOF
     3462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3464  ac_status=$?
     3465  grep -v '^ *+' conftest.er1 >conftest.err
     3466  rm -f conftest.er1
     3467  cat conftest.err >&5
     3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3469  (exit $ac_status); } >/dev/null; then
     3470  if test -s conftest.err; then
     3471    ac_cpp_err=$ac_c_preproc_warn_flag
     3472    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3473  else
     3474    ac_cpp_err=
     3475  fi
     3476else
     3477  ac_cpp_err=yes
     3478fi
     3479if test -z "$ac_cpp_err"; then
     3480  # Broken: success on invalid input.
     3481continue
     3482else
     3483  echo "$as_me: failed program was:" >&5
     3484sed 's/^/| /' conftest.$ac_ext >&5
     3485
     3486  # Passes both tests.
     3487ac_preproc_ok=:
     3488break
     3489fi
     3490rm -f conftest.err conftest.$ac_ext
     3491
     3492done
     3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3494rm -f conftest.err conftest.$ac_ext
     3495if $ac_preproc_ok; then
     3496  break
     3497fi
     3498
     3499    done
     3500    ac_cv_prog_CPP=$CPP
     3501
     3502fi
     3503  CPP=$ac_cv_prog_CPP
     3504else
     3505  ac_cv_prog_CPP=$CPP
     3506fi
     3507echo "$as_me:$LINENO: result: $CPP" >&5
     3508echo "${ECHO_T}$CPP" >&6
     3509ac_preproc_ok=false
     3510for ac_c_preproc_warn_flag in '' yes
     3511do
     3512  # Use a header file that comes with gcc, so configuring glibc
     3513  # with a fresh cross-compiler works.
     3514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3515  # <limits.h> exists even on freestanding compilers.
     3516  # On the NeXT, cc -E runs the code through the compiler's parser,
     3517  # not just through cpp. "Syntax error" is here to catch this case.
     3518  cat >conftest.$ac_ext <<_ACEOF
     3519/* confdefs.h.  */
     3520_ACEOF
     3521cat confdefs.h >>conftest.$ac_ext
     3522cat >>conftest.$ac_ext <<_ACEOF
     3523/* end confdefs.h.  */
     3524#ifdef __STDC__
     3525# include <limits.h>
     3526#else
     3527# include <assert.h>
     3528#endif
     3529                     Syntax error
     3530_ACEOF
     3531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3533  ac_status=$?
     3534  grep -v '^ *+' conftest.er1 >conftest.err
     3535  rm -f conftest.er1
     3536  cat conftest.err >&5
     3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3538  (exit $ac_status); } >/dev/null; then
     3539  if test -s conftest.err; then
     3540    ac_cpp_err=$ac_c_preproc_warn_flag
     3541    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3542  else
     3543    ac_cpp_err=
     3544  fi
     3545else
     3546  ac_cpp_err=yes
     3547fi
     3548if test -z "$ac_cpp_err"; then
     3549  :
     3550else
     3551  echo "$as_me: failed program was:" >&5
     3552sed 's/^/| /' conftest.$ac_ext >&5
     3553
     3554  # Broken: fails on valid input.
     3555continue
     3556fi
     3557rm -f conftest.err conftest.$ac_ext
     3558
     3559  # OK, works on sane cases.  Now check whether non-existent headers
     3560  # can be detected and how.
     3561  cat >conftest.$ac_ext <<_ACEOF
     3562/* confdefs.h.  */
     3563_ACEOF
     3564cat confdefs.h >>conftest.$ac_ext
     3565cat >>conftest.$ac_ext <<_ACEOF
     3566/* end confdefs.h.  */
     3567#include <ac_nonexistent.h>
     3568_ACEOF
     3569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3571  ac_status=$?
     3572  grep -v '^ *+' conftest.er1 >conftest.err
     3573  rm -f conftest.er1
     3574  cat conftest.err >&5
     3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3576  (exit $ac_status); } >/dev/null; then
     3577  if test -s conftest.err; then
     3578    ac_cpp_err=$ac_c_preproc_warn_flag
     3579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3580  else
     3581    ac_cpp_err=
     3582  fi
     3583else
     3584  ac_cpp_err=yes
     3585fi
     3586if test -z "$ac_cpp_err"; then
     3587  # Broken: success on invalid input.
     3588continue
     3589else
     3590  echo "$as_me: failed program was:" >&5
     3591sed 's/^/| /' conftest.$ac_ext >&5
     3592
     3593  # Passes both tests.
     3594ac_preproc_ok=:
     3595break
     3596fi
     3597rm -f conftest.err conftest.$ac_ext
     3598
     3599done
     3600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3601rm -f conftest.err conftest.$ac_ext
     3602if $ac_preproc_ok; then
     3603  :
     3604else
     3605  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3606See \`config.log' for more details." >&5
     3607echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3608See \`config.log' for more details." >&2;}
     3609   { (exit 1); exit 1; }; }
     3610fi
     3611
     3612ac_ext=c
     3613ac_cpp='$CPP $CPPFLAGS'
     3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3617
     3618
     3619echo "$as_me:$LINENO: checking for egrep" >&5
     3620echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3621if test "${ac_cv_prog_egrep+set}" = set; then
     3622  echo $ECHO_N "(cached) $ECHO_C" >&6
     3623else
     3624  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3625    then ac_cv_prog_egrep='grep -E'
     3626    else ac_cv_prog_egrep='egrep'
     3627    fi
     3628fi
     3629echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3630echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3631 EGREP=$ac_cv_prog_egrep
     3632
     3633
     3634echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3635echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3636if test "${ac_cv_header_stdc+set}" = set; then
     3637  echo $ECHO_N "(cached) $ECHO_C" >&6
     3638else
     3639  cat >conftest.$ac_ext <<_ACEOF
     3640/* confdefs.h.  */
     3641_ACEOF
     3642cat confdefs.h >>conftest.$ac_ext
     3643cat >>conftest.$ac_ext <<_ACEOF
     3644/* end confdefs.h.  */
     3645#include <stdlib.h>
     3646#include <stdarg.h>
     3647#include <string.h>
     3648#include <float.h>
     3649
     3650int
     3651main ()
     3652{
     3653
     3654  ;
     3655  return 0;
     3656}
     3657_ACEOF
     3658rm -f conftest.$ac_objext
     3659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3660  (eval $ac_compile) 2>conftest.er1
     3661  ac_status=$?
     3662  grep -v '^ *+' conftest.er1 >conftest.err
     3663  rm -f conftest.er1
     3664  cat conftest.err >&5
     3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3666  (exit $ac_status); } &&
     3667         { ac_try='test -z "$ac_c_werror_flag"
     3668                         || test ! -s conftest.err'
     3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3670  (eval $ac_try) 2>&5
     3671  ac_status=$?
     3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3673  (exit $ac_status); }; } &&
     3674         { ac_try='test -s conftest.$ac_objext'
     3675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3676  (eval $ac_try) 2>&5
     3677  ac_status=$?
     3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3679  (exit $ac_status); }; }; then
     3680  ac_cv_header_stdc=yes
     3681else
     3682  echo "$as_me: failed program was:" >&5
     3683sed 's/^/| /' conftest.$ac_ext >&5
     3684
     3685ac_cv_header_stdc=no
     3686fi
     3687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3688
     3689if test $ac_cv_header_stdc = yes; then
     3690  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3691  cat >conftest.$ac_ext <<_ACEOF
     3692/* confdefs.h.  */
     3693_ACEOF
     3694cat confdefs.h >>conftest.$ac_ext
     3695cat >>conftest.$ac_ext <<_ACEOF
     3696/* end confdefs.h.  */
     3697#include <string.h>
     3698
     3699_ACEOF
     3700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3701  $EGREP "memchr" >/dev/null 2>&1; then
     3702  :
     3703else
     3704  ac_cv_header_stdc=no
     3705fi
     3706rm -f conftest*
     3707
     3708fi
     3709
     3710if test $ac_cv_header_stdc = yes; then
     3711  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3712  cat >conftest.$ac_ext <<_ACEOF
     3713/* confdefs.h.  */
     3714_ACEOF
     3715cat confdefs.h >>conftest.$ac_ext
     3716cat >>conftest.$ac_ext <<_ACEOF
     3717/* end confdefs.h.  */
     3718#include <stdlib.h>
     3719
     3720_ACEOF
     3721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3722  $EGREP "free" >/dev/null 2>&1; then
     3723  :
     3724else
     3725  ac_cv_header_stdc=no
     3726fi
     3727rm -f conftest*
     3728
     3729fi
     3730
     3731if test $ac_cv_header_stdc = yes; then
     3732  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3733  if test "$cross_compiling" = yes; then
     3734  :
     3735else
     3736  cat >conftest.$ac_ext <<_ACEOF
     3737/* confdefs.h.  */
     3738_ACEOF
     3739cat confdefs.h >>conftest.$ac_ext
     3740cat >>conftest.$ac_ext <<_ACEOF
     3741/* end confdefs.h.  */
     3742#include <ctype.h>
     3743#if ((' ' & 0x0FF) == 0x020)
     3744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3746#else
     3747# define ISLOWER(c) \
     3748                   (('a' <= (c) && (c) <= 'i') \
     3749                     || ('j' <= (c) && (c) <= 'r') \
     3750                     || ('s' <= (c) && (c) <= 'z'))
     3751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3752#endif
     3753
     3754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3755int
     3756main ()
     3757{
     3758  int i;
     3759  for (i = 0; i < 256; i++)
     3760    if (XOR (islower (i), ISLOWER (i))
     3761        || toupper (i) != TOUPPER (i))
     3762      exit(2);
     3763  exit (0);
     3764}
     3765_ACEOF
     3766rm -f conftest$ac_exeext
     3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3768  (eval $ac_link) 2>&5
     3769  ac_status=$?
     3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3771  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3773  (eval $ac_try) 2>&5
     3774  ac_status=$?
     3775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3776  (exit $ac_status); }; }; then
     3777  :
     3778else
     3779  echo "$as_me: program exited with status $ac_status" >&5
     3780echo "$as_me: failed program was:" >&5
     3781sed 's/^/| /' conftest.$ac_ext >&5
     3782
     3783( exit $ac_status )
     3784ac_cv_header_stdc=no
     3785fi
     3786rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3787fi
     3788fi
     3789fi
     3790echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3791echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3792if test $ac_cv_header_stdc = yes; then
     3793
     3794cat >>confdefs.h <<\_ACEOF
     3795#define STDC_HEADERS 1
     3796_ACEOF
     3797
     3798fi
     3799
     3800echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
     3801echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
     3802if test "${ac_cv_header_time+set}" = set; then
     3803  echo $ECHO_N "(cached) $ECHO_C" >&6
     3804else
     3805  cat >conftest.$ac_ext <<_ACEOF
     3806/* confdefs.h.  */
     3807_ACEOF
     3808cat confdefs.h >>conftest.$ac_ext
     3809cat >>conftest.$ac_ext <<_ACEOF
     3810/* end confdefs.h.  */
     3811#include <sys/types.h>
     3812#include <sys/time.h>
     3813#include <time.h>
     3814
     3815int
     3816main ()
     3817{
     3818if ((struct tm *) 0)
     3819return 0;
     3820  ;
     3821  return 0;
     3822}
     3823_ACEOF
     3824rm -f conftest.$ac_objext
     3825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3826  (eval $ac_compile) 2>conftest.er1
     3827  ac_status=$?
     3828  grep -v '^ *+' conftest.er1 >conftest.err
     3829  rm -f conftest.er1
     3830  cat conftest.err >&5
     3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3832  (exit $ac_status); } &&
     3833         { ac_try='test -z "$ac_c_werror_flag"
     3834                         || test ! -s conftest.err'
     3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3836  (eval $ac_try) 2>&5
     3837  ac_status=$?
     3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3839  (exit $ac_status); }; } &&
     3840         { ac_try='test -s conftest.$ac_objext'
     3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3842  (eval $ac_try) 2>&5
     3843  ac_status=$?
     3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3845  (exit $ac_status); }; }; then
     3846  ac_cv_header_time=yes
     3847else
     3848  echo "$as_me: failed program was:" >&5
     3849sed 's/^/| /' conftest.$ac_ext >&5
     3850
     3851ac_cv_header_time=no
     3852fi
     3853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3854fi
     3855echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
     3856echo "${ECHO_T}$ac_cv_header_time" >&6
     3857if test $ac_cv_header_time = yes; then
     3858
     3859cat >>confdefs.h <<\_ACEOF
     3860#define TIME_WITH_SYS_TIME 1
     3861_ACEOF
     3862
     3863fi
     3864
     3865
     3866
     3867
     3868for ac_func in lrintf strlcpy strlcat
     3869do
     3870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     3871echo "$as_me:$LINENO: checking for $ac_func" >&5
     3872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     3873if eval "test \"\${$as_ac_var+set}\" = set"; then
     3874  echo $ECHO_N "(cached) $ECHO_C" >&6
     3875else
     3876  cat >conftest.$ac_ext <<_ACEOF
     3877/* confdefs.h.  */
     3878_ACEOF
     3879cat confdefs.h >>conftest.$ac_ext
     3880cat >>conftest.$ac_ext <<_ACEOF
     3881/* end confdefs.h.  */
     3882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     3883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     3884#define $ac_func innocuous_$ac_func
     3885
     3886/* System header to define __stub macros and hopefully few prototypes,
     3887    which can conflict with char $ac_func (); below.
     3888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3889    <limits.h> exists even on freestanding compilers.  */
     3890
     3891#ifdef __STDC__
     3892# include <limits.h>
     3893#else
     3894# include <assert.h>
     3895#endif
     3896
     3897#undef $ac_func
     3898
     3899/* Override any gcc2 internal prototype to avoid an error.  */
     3900#ifdef __cplusplus
     3901extern "C"
     3902{
     3903#endif
     3904/* We use char because int might match the return type of a gcc2
     3905   builtin and then its argument prototype would still apply.  */
     3906char $ac_func ();
     3907/* The GNU C library defines this for functions which it implements
     3908    to always fail with ENOSYS.  Some functions are actually named
     3909    something starting with __ and the normal name is an alias.  */
     3910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     3911choke me
     3912#else
     3913char (*f) () = $ac_func;
     3914#endif
     3915#ifdef __cplusplus
     3916}
     3917#endif
     3918
     3919int
     3920main ()
     3921{
     3922return f != $ac_func;
     3923  ;
     3924  return 0;
     3925}
     3926_ACEOF
     3927rm -f conftest.$ac_objext conftest$ac_exeext
     3928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3929  (eval $ac_link) 2>conftest.er1
     3930  ac_status=$?
     3931  grep -v '^ *+' conftest.er1 >conftest.err
     3932  rm -f conftest.er1
     3933  cat conftest.err >&5
     3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3935  (exit $ac_status); } &&
     3936         { ac_try='test -z "$ac_c_werror_flag"
     3937                         || test ! -s conftest.err'
     3938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3939  (eval $ac_try) 2>&5
     3940  ac_status=$?
     3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3942  (exit $ac_status); }; } &&
     3943         { ac_try='test -s conftest$ac_exeext'
     3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3945  (eval $ac_try) 2>&5
     3946  ac_status=$?
     3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3948  (exit $ac_status); }; }; then
     3949  eval "$as_ac_var=yes"
     3950else
     3951  echo "$as_me: failed program was:" >&5
     3952sed 's/^/| /' conftest.$ac_ext >&5
     3953
     3954eval "$as_ac_var=no"
     3955fi
     3956rm -f conftest.err conftest.$ac_objext \
     3957      conftest$ac_exeext conftest.$ac_ext
     3958fi
     3959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     3960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     3961if test `eval echo '${'$as_ac_var'}'` = yes; then
     3962  cat >>confdefs.h <<_ACEOF
     3963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     3964_ACEOF
     3965
     3966fi
     3967done
     3968
     3969# Find a good install program.  We prefer a C program (faster),
     3970# so one script is as good as another.  But avoid the broken or
     3971# incompatible versions:
     3972# SysV /etc/install, /usr/sbin/install
     3973# SunOS /usr/etc/install
     3974# IRIX /sbin/install
     3975# AIX /bin/install
     3976# AmigaOS /C/install, which installs bootblocks on floppy discs
     3977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     3978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     3979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     3980# OS/2's system install, which has a completely different semantic
     3981# ./install, which can be erroneously created by make from ./install.sh.
     3982echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     3983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3984if test -z "$INSTALL"; then
     3985if test "${ac_cv_path_install+set}" = set; then
     3986  echo $ECHO_N "(cached) $ECHO_C" >&6
     3987else
     3988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3989for as_dir in $PATH
     3990do
     3991  IFS=$as_save_IFS
     3992  test -z "$as_dir" && as_dir=.
     3993  # Account for people who put trailing slashes in PATH elements.
     3994case $as_dir/ in
     3995  ./ | .// | /cC/* | \
     3996  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     3997  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3998  /usr/ucb/* ) ;;
     3999  *)
     4000    # OSF1 and SCO ODT 3.0 have their own names for install.
     4001    # Don't use installbsd from OSF since it installs stuff as root
     4002    # by default.
     4003    for ac_prog in ginstall scoinst install; do
     4004      for ac_exec_ext in '' $ac_executable_extensions; do
     4005        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4006          if test $ac_prog = install &&
     4007            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     4008            # AIX install.  It has an incompatible calling convention.
     4009            :
     4010          elif test $ac_prog = install &&
     4011            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     4012            # program-specific install script used by HP pwplus--don't use.
     4013            :
     4014          else
     4015            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     4016            break 3
     4017          fi
     4018        fi
     4019      done
     4020    done
     4021    ;;
     4022esac
     4023done
     4024
     4025
     4026fi
     4027  if test "${ac_cv_path_install+set}" = set; then
     4028    INSTALL=$ac_cv_path_install
     4029  else
     4030    # As a last resort, use the slow shell script.  We don't cache a
     4031    # path for INSTALL within a source directory, because that will
     4032    # break other packages using the cache if that directory is
     4033    # removed, or if the path is relative.
     4034    INSTALL=$ac_install_sh
     4035  fi
     4036fi
     4037echo "$as_me:$LINENO: result: $INSTALL" >&5
     4038echo "${ECHO_T}$INSTALL" >&6
     4039
     4040# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     4041# It thinks the first close brace ends the variable substitution.
     4042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     4043
     4044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     4045
     4046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     4047
     4048echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     4049echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     4050set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     4051if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     4052  echo $ECHO_N "(cached) $ECHO_C" >&6
     4053else
     4054  cat >conftest.make <<\_ACEOF
     4055all:
     4056        @echo 'ac_maketemp="$(MAKE)"'
     4057_ACEOF
     4058# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     4059eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     4060if test -n "$ac_maketemp"; then
     4061  eval ac_cv_prog_make_${ac_make}_set=yes
     4062else
     4063  eval ac_cv_prog_make_${ac_make}_set=no
     4064fi
     4065rm -f conftest.make
     4066fi
     4067if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     4068  echo "$as_me:$LINENO: result: yes" >&5
     4069echo "${ECHO_T}yes" >&6
     4070  SET_MAKE=
     4071else
     4072  echo "$as_me:$LINENO: result: no" >&5
     4073echo "${ECHO_T}no" >&6
     4074  SET_MAKE="MAKE=${MAKE-make}"
     4075fi
     4076
     4077if test -n "$ac_tool_prefix"; then
     4078  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     4079set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     4080echo "$as_me:$LINENO: checking for $ac_word" >&5
     4081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4082if test "${ac_cv_prog_RANLIB+set}" = set; then
     4083  echo $ECHO_N "(cached) $ECHO_C" >&6
     4084else
     4085  if test -n "$RANLIB"; then
     4086  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     4087else
     4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4089for as_dir in $PATH
     4090do
     4091  IFS=$as_save_IFS
     4092  test -z "$as_dir" && as_dir=.
     4093  for ac_exec_ext in '' $ac_executable_extensions; do
     4094  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4095    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     4096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4097    break 2
     4098  fi
     4099done
     4100done
     4101
     4102fi
     4103fi
     4104RANLIB=$ac_cv_prog_RANLIB
     4105if test -n "$RANLIB"; then
     4106  echo "$as_me:$LINENO: result: $RANLIB" >&5
     4107echo "${ECHO_T}$RANLIB" >&6
     4108else
     4109  echo "$as_me:$LINENO: result: no" >&5
     4110echo "${ECHO_T}no" >&6
     4111fi
     4112
     4113fi
     4114if test -z "$ac_cv_prog_RANLIB"; then
     4115  ac_ct_RANLIB=$RANLIB
     4116  # Extract the first word of "ranlib", so it can be a program name with args.
     4117set dummy ranlib; ac_word=$2
     4118echo "$as_me:$LINENO: checking for $ac_word" >&5
     4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4120if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     4121  echo $ECHO_N "(cached) $ECHO_C" >&6
     4122else
     4123  if test -n "$ac_ct_RANLIB"; then
     4124  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     4125else
     4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4127for as_dir in $PATH
     4128do
     4129  IFS=$as_save_IFS
     4130  test -z "$as_dir" && as_dir=.
     4131  for ac_exec_ext in '' $ac_executable_extensions; do
     4132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4133    ac_cv_prog_ac_ct_RANLIB="ranlib"
     4134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4135    break 2
     4136  fi
     4137done
     4138done
     4139
     4140  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     4141fi
     4142fi
     4143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     4144if test -n "$ac_ct_RANLIB"; then
     4145  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     4146echo "${ECHO_T}$ac_ct_RANLIB" >&6
     4147else
     4148  echo "$as_me:$LINENO: result: no" >&5
     4149echo "${ECHO_T}no" >&6
     4150fi
     4151
     4152  RANLIB=$ac_ct_RANLIB
     4153else
     4154  RANLIB="$ac_cv_prog_RANLIB"
     4155fi
     4156
     4157# Make sure we can run config.sub.
     4158$ac_config_sub sun4 >/dev/null 2>&1 ||
     4159  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     4160echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     4161   { (exit 1); exit 1; }; }
     4162
     4163echo "$as_me:$LINENO: checking build system type" >&5
     4164echo $ECHO_N "checking build system type... $ECHO_C" >&6
     4165if test "${ac_cv_build+set}" = set; then
     4166  echo $ECHO_N "(cached) $ECHO_C" >&6
     4167else
     4168  ac_cv_build_alias=$build_alias
     4169test -z "$ac_cv_build_alias" &&
     4170  ac_cv_build_alias=`$ac_config_guess`
     4171test -z "$ac_cv_build_alias" &&
     4172  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     4173echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     4174   { (exit 1); exit 1; }; }
     4175ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     4176  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     4177echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     4178   { (exit 1); exit 1; }; }
     4179
     4180fi
     4181echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     4182echo "${ECHO_T}$ac_cv_build" >&6
     4183build=$ac_cv_build
     4184build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     4185build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     4186build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4187
     4188
     4189echo "$as_me:$LINENO: checking host system type" >&5
     4190echo $ECHO_N "checking host system type... $ECHO_C" >&6
     4191if test "${ac_cv_host+set}" = set; then
     4192  echo $ECHO_N "(cached) $ECHO_C" >&6
     4193else
     4194  ac_cv_host_alias=$host_alias
     4195test -z "$ac_cv_host_alias" &&
     4196  ac_cv_host_alias=$ac_cv_build_alias
     4197ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     4198  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     4199echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     4200   { (exit 1); exit 1; }; }
     4201
     4202fi
     4203echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     4204echo "${ECHO_T}$ac_cv_host" >&6
     4205host=$ac_cv_host
     4206host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     4207host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     4208host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     4209
     4210
     4211
     4212
     4213
     4214
     4215ac_ext=c
     4216ac_cpp='$CPP $CPPFLAGS'
     4217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4219ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4220
     4221acx_pthread_ok=no
     4222
     4223# We used to check for pthread.h first, but this fails if pthread.h
     4224# requires special compiler flags (e.g. on True64 or Sequent).
     4225# It gets checked for in the link test anyway.
     4226
     4227# First of all, check if the user has set any of the PTHREAD_LIBS,
     4228# etcetera environment variables, and if threads linking works using
     4229# them:
     4230if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
     4231        save_CFLAGS="$CFLAGS"
     4232        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     4233        save_LIBS="$LIBS"
     4234        LIBS="$PTHREAD_LIBS $LIBS"
     4235        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
     4236echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
     4237        cat >conftest.$ac_ext <<_ACEOF
     4238/* confdefs.h.  */
     4239_ACEOF
     4240cat confdefs.h >>conftest.$ac_ext
     4241cat >>conftest.$ac_ext <<_ACEOF
     4242/* end confdefs.h.  */
     4243
     4244/* Override any gcc2 internal prototype to avoid an error.  */
     4245#ifdef __cplusplus
     4246extern "C"
     4247#endif
     4248/* We use char because int might match the return type of a gcc2
     4249   builtin and then its argument prototype would still apply.  */
     4250char pthread_join ();
     4251int
     4252main ()
     4253{
     4254pthread_join ();
     4255  ;
     4256  return 0;
     4257}
     4258_ACEOF
     4259rm -f conftest.$ac_objext conftest$ac_exeext
     4260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4261  (eval $ac_link) 2>conftest.er1
     4262  ac_status=$?
     4263  grep -v '^ *+' conftest.er1 >conftest.err
     4264  rm -f conftest.er1
     4265  cat conftest.err >&5
     4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4267  (exit $ac_status); } &&
     4268         { ac_try='test -z "$ac_c_werror_flag"
     4269                         || test ! -s conftest.err'
     4270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4271  (eval $ac_try) 2>&5
     4272  ac_status=$?
     4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4274  (exit $ac_status); }; } &&
     4275         { ac_try='test -s conftest$ac_exeext'
     4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4277  (eval $ac_try) 2>&5
     4278  ac_status=$?
     4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4280  (exit $ac_status); }; }; then
     4281  acx_pthread_ok=yes
     4282else
     4283  echo "$as_me: failed program was:" >&5
     4284sed 's/^/| /' conftest.$ac_ext >&5
     4285
     4286fi
     4287rm -f conftest.err conftest.$ac_objext \
     4288      conftest$ac_exeext conftest.$ac_ext
     4289        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
     4290echo "${ECHO_T}$acx_pthread_ok" >&6
     4291        if test x"$acx_pthread_ok" = xno; then
     4292                PTHREAD_LIBS=""
     4293                PTHREAD_CFLAGS=""
     4294        fi
     4295        LIBS="$save_LIBS"
     4296        CFLAGS="$save_CFLAGS"
     4297fi
     4298
     4299# We must check for the threads library under a number of different
     4300# names; the ordering is very important because some systems
     4301# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
     4302# libraries is broken (non-POSIX).
     4303
     4304# Create a list of thread flags to try.  Items starting with a "-" are
     4305# C compiler flags, and other items are library names, except for "none"
     4306# which indicates that we try without any flags at all, and "pthread-config"
     4307# which is a program returning the flags for the Pth emulation library.
     4308
     4309acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
     4310
     4311# The ordering *is* (sometimes) important.  Some notes on the
     4312# individual items follow:
     4313
     4314# pthreads: AIX (must check this before -lpthread)
     4315# none: in case threads are in libc; should be tried before -Kthread and
     4316#       other compiler flags to prevent continual compiler warnings
     4317# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
     4318# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
     4319# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
     4320# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
     4321# -pthreads: Solaris/gcc
     4322# -mthreads: Mingw32/gcc, Lynx/gcc
     4323# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
     4324#      doesn't hurt to check since this sometimes defines pthreads too;
     4325#      also defines -D_REENTRANT)
     4326#      ... -mt is also the pthreads flag for HP/aCC
     4327# pthread: Linux, etcetera
     4328# --thread-safe: KAI C++
     4329# pthread-config: use pthread-config program (for GNU Pth library)
     4330
     4331case "${host_cpu}-${host_os}" in
     4332        *solaris*)
     4333
     4334        # On Solaris (at least, for some versions), libc contains stubbed
     4335        # (non-functional) versions of the pthreads routines, so link-based
     4336        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
     4337        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
     4338        # a function called by this macro, so we could check for that, but
     4339        # who knows whether they'll stub that too in a future libc.)  So,
     4340        # we'll just look for -pthreads and -lpthread first:
     4341
     4342        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
     4343        ;;
     4344esac
     4345
     4346if test x"$acx_pthread_ok" = xno; then
     4347for flag in $acx_pthread_flags; do
     4348
     4349        case $flag in
     4350                none)
     4351                echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
     4352echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
     4353                ;;
     4354
     4355                -*)
     4356                echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
     4357echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
     4358                PTHREAD_CFLAGS="$flag"
     4359                ;;
     4360
     4361                pthread-config)
     4362                # Extract the first word of "pthread-config", so it can be a program name with args.
     4363set dummy pthread-config; ac_word=$2
     4364echo "$as_me:$LINENO: checking for $ac_word" >&5
     4365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4366if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
     4367  echo $ECHO_N "(cached) $ECHO_C" >&6
     4368else
     4369  if test -n "$acx_pthread_config"; then
     4370  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
     4371else
     4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4373for as_dir in $PATH
     4374do
     4375  IFS=$as_save_IFS
     4376  test -z "$as_dir" && as_dir=.
     4377  for ac_exec_ext in '' $ac_executable_extensions; do
     4378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4379    ac_cv_prog_acx_pthread_config="yes"
     4380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4381    break 2
     4382  fi
     4383done
     4384done
     4385
     4386  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
     4387fi
     4388fi
     4389acx_pthread_config=$ac_cv_prog_acx_pthread_config
     4390if test -n "$acx_pthread_config"; then
     4391  echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
     4392echo "${ECHO_T}$acx_pthread_config" >&6
     4393else
     4394  echo "$as_me:$LINENO: result: no" >&5
     4395echo "${ECHO_T}no" >&6
     4396fi
     4397
     4398                if test x"$acx_pthread_config" = xno; then continue; fi
     4399                PTHREAD_CFLAGS="`pthread-config --cflags`"
     4400                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
     4401                ;;
     4402
     4403                *)
     4404                echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
     4405echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
     4406                PTHREAD_LIBS="-l$flag"
     4407                ;;
     4408        esac
     4409
     4410        save_LIBS="$LIBS"
     4411        save_CFLAGS="$CFLAGS"
     4412        LIBS="$PTHREAD_LIBS $LIBS"
     4413        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     4414
     4415        # Check for various functions.  We must include pthread.h,
     4416        # since some functions may be macros.  (On the Sequent, we
     4417        # need a special flag -Kthread to make this header compile.)
     4418        # We check for pthread_join because it is in -lpthread on IRIX
     4419        # while pthread_create is in libc.  We check for pthread_attr_init
     4420        # due to DEC craziness with -lpthreads.  We check for
     4421        # pthread_cleanup_push because it is one of the few pthread
     4422        # functions on Solaris that doesn't have a non-functional libc stub.
     4423        # We try pthread_create on general principles.
     4424        cat >conftest.$ac_ext <<_ACEOF
     4425/* confdefs.h.  */
     4426_ACEOF
     4427cat confdefs.h >>conftest.$ac_ext
     4428cat >>conftest.$ac_ext <<_ACEOF
     4429/* end confdefs.h.  */
     4430#include <pthread.h>
     4431int
     4432main ()
     4433{
     4434pthread_t th; pthread_join(th, 0);
     4435                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
     4436                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
     4437  ;
     4438  return 0;
     4439}
     4440_ACEOF
     4441rm -f conftest.$ac_objext conftest$ac_exeext
     4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4443  (eval $ac_link) 2>conftest.er1
     4444  ac_status=$?
     4445  grep -v '^ *+' conftest.er1 >conftest.err
     4446  rm -f conftest.er1
     4447  cat conftest.err >&5
     4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4449  (exit $ac_status); } &&
     4450         { ac_try='test -z "$ac_c_werror_flag"
     4451                         || test ! -s conftest.err'
     4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4453  (eval $ac_try) 2>&5
     4454  ac_status=$?
     4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4456  (exit $ac_status); }; } &&
     4457         { ac_try='test -s conftest$ac_exeext'
     4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4459  (eval $ac_try) 2>&5
     4460  ac_status=$?
     4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4462  (exit $ac_status); }; }; then
     4463  acx_pthread_ok=yes
     4464else
     4465  echo "$as_me: failed program was:" >&5
     4466sed 's/^/| /' conftest.$ac_ext >&5
     4467
     4468fi
     4469rm -f conftest.err conftest.$ac_objext \
     4470      conftest$ac_exeext conftest.$ac_ext
     4471
     4472        LIBS="$save_LIBS"
     4473        CFLAGS="$save_CFLAGS"
     4474
     4475        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
     4476echo "${ECHO_T}$acx_pthread_ok" >&6
     4477        if test "x$acx_pthread_ok" = xyes; then
     4478                break;
     4479        fi
     4480
     4481        PTHREAD_LIBS=""
     4482        PTHREAD_CFLAGS=""
     4483done
     4484fi
     4485
     4486# Various other checks:
     4487if test "x$acx_pthread_ok" = xyes; then
     4488        save_LIBS="$LIBS"
     4489        LIBS="$PTHREAD_LIBS $LIBS"
     4490        save_CFLAGS="$CFLAGS"
     4491        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
     4492
     4493        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
     4494        echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
     4495echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
     4496        attr_name=unknown
     4497        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
     4498            cat >conftest.$ac_ext <<_ACEOF
     4499/* confdefs.h.  */
     4500_ACEOF
     4501cat confdefs.h >>conftest.$ac_ext
     4502cat >>conftest.$ac_ext <<_ACEOF
     4503/* end confdefs.h.  */
     4504#include <pthread.h>
     4505int
     4506main ()
     4507{
     4508int attr=$attr; return attr;
     4509  ;
     4510  return 0;
     4511}
     4512_ACEOF
     4513rm -f conftest.$ac_objext conftest$ac_exeext
     4514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4515  (eval $ac_link) 2>conftest.er1
     4516  ac_status=$?
     4517  grep -v '^ *+' conftest.er1 >conftest.err
     4518  rm -f conftest.er1
     4519  cat conftest.err >&5
     4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4521  (exit $ac_status); } &&
     4522         { ac_try='test -z "$ac_c_werror_flag"
     4523                         || test ! -s conftest.err'
     4524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4525  (eval $ac_try) 2>&5
     4526  ac_status=$?
     4527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4528  (exit $ac_status); }; } &&
     4529         { ac_try='test -s conftest$ac_exeext'
     4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4531  (eval $ac_try) 2>&5
     4532  ac_status=$?
     4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4534  (exit $ac_status); }; }; then
     4535  attr_name=$attr; break
     4536else
     4537  echo "$as_me: failed program was:" >&5
     4538sed 's/^/| /' conftest.$ac_ext >&5
     4539
     4540fi
     4541rm -f conftest.err conftest.$ac_objext \
     4542      conftest$ac_exeext conftest.$ac_ext
     4543        done
     4544        echo "$as_me:$LINENO: result: $attr_name" >&5
     4545echo "${ECHO_T}$attr_name" >&6
     4546        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
     4547
     4548cat >>confdefs.h <<_ACEOF
     4549#define PTHREAD_CREATE_JOINABLE $attr_name
     4550_ACEOF
     4551
     4552        fi
     4553
     4554        echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
     4555echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
     4556        flag=no
     4557        case "${host_cpu}-${host_os}" in
     4558            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
     4559            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
     4560        esac
     4561        echo "$as_me:$LINENO: result: ${flag}" >&5
     4562echo "${ECHO_T}${flag}" >&6
     4563        if test "x$flag" != xno; then
     4564            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
     4565        fi
     4566
     4567        LIBS="$save_LIBS"
     4568        CFLAGS="$save_CFLAGS"
     4569
     4570        # More AIX lossage: must compile with xlc_r or cc_r
     4571        if test x"$GCC" != xyes; then
     4572          for ac_prog in xlc_r cc_r
     4573do
     4574  # Extract the first word of "$ac_prog", so it can be a program name with args.
     4575set dummy $ac_prog; ac_word=$2
     4576echo "$as_me:$LINENO: checking for $ac_word" >&5
     4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4578if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
     4579  echo $ECHO_N "(cached) $ECHO_C" >&6
     4580else
     4581  if test -n "$PTHREAD_CC"; then
     4582  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
     4583else
     4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4585for as_dir in $PATH
     4586do
     4587  IFS=$as_save_IFS
     4588  test -z "$as_dir" && as_dir=.
     4589  for ac_exec_ext in '' $ac_executable_extensions; do
     4590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4591    ac_cv_prog_PTHREAD_CC="$ac_prog"
     4592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4593    break 2
     4594  fi
     4595done
     4596done
     4597
     4598fi
     4599fi
     4600PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
     4601if test -n "$PTHREAD_CC"; then
     4602  echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
     4603echo "${ECHO_T}$PTHREAD_CC" >&6
     4604else
     4605  echo "$as_me:$LINENO: result: no" >&5
     4606echo "${ECHO_T}no" >&6
     4607fi
     4608
     4609  test -n "$PTHREAD_CC" && break
     4610done
     4611test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
     4612
    2944613        else
    295           echo "no (could not find gettext libintl.h)"
    296           GTK=no
     4614          PTHREAD_CC=$CC
    2974615        fi
     4616else
     4617        PTHREAD_CC="$CC"
     4618fi
     4619
     4620
     4621
     4622
     4623
     4624# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
     4625if test x"$acx_pthread_ok" = xyes; then
     4626
     4627cat >>confdefs.h <<\_ACEOF
     4628#define HAVE_PTHREAD 1
     4629_ACEOF
     4630
     4631        :
     4632else
     4633        acx_pthread_ok=no
     4634
     4635fi
     4636ac_ext=c
     4637ac_cpp='$CPP $CPPFLAGS'
     4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4640ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4641
     4642
     4643
     4644GETTEXT_PACKAGE=transmission
     4645
     4646
     4647cat >>confdefs.h <<_ACEOF
     4648#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
     4649_ACEOF
     4650
     4651ALL_LINGUAS="bg es fi fr it pl ro ru sv"
     4652# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4653
     4654
     4655
     4656
     4657
     4658
     4659
     4660
     4661
     4662for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4663                  inttypes.h stdint.h unistd.h
     4664do
     4665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4666echo "$as_me:$LINENO: checking for $ac_header" >&5
     4667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4668if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4669  echo $ECHO_N "(cached) $ECHO_C" >&6
     4670else
     4671  cat >conftest.$ac_ext <<_ACEOF
     4672/* confdefs.h.  */
     4673_ACEOF
     4674cat confdefs.h >>conftest.$ac_ext
     4675cat >>conftest.$ac_ext <<_ACEOF
     4676/* end confdefs.h.  */
     4677$ac_includes_default
     4678
     4679#include <$ac_header>
     4680_ACEOF
     4681rm -f conftest.$ac_objext
     4682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4683  (eval $ac_compile) 2>conftest.er1
     4684  ac_status=$?
     4685  grep -v '^ *+' conftest.er1 >conftest.err
     4686  rm -f conftest.er1
     4687  cat conftest.err >&5
     4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4689  (exit $ac_status); } &&
     4690         { ac_try='test -z "$ac_c_werror_flag"
     4691                         || test ! -s conftest.err'
     4692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4693  (eval $ac_try) 2>&5
     4694  ac_status=$?
     4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4696  (exit $ac_status); }; } &&
     4697         { ac_try='test -s conftest.$ac_objext'
     4698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4699  (eval $ac_try) 2>&5
     4700  ac_status=$?
     4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4702  (exit $ac_status); }; }; then
     4703  eval "$as_ac_Header=yes"
     4704else
     4705  echo "$as_me: failed program was:" >&5
     4706sed 's/^/| /' conftest.$ac_ext >&5
     4707
     4708eval "$as_ac_Header=no"
     4709fi
     4710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4711fi
     4712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4714if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4715  cat >>confdefs.h <<_ACEOF
     4716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4717_ACEOF
     4718
     4719fi
     4720
     4721done
     4722
     4723
     4724
     4725
     4726for ac_header in locale.h
     4727do
     4728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4729if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4730  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4732if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4733  echo $ECHO_N "(cached) $ECHO_C" >&6
     4734fi
     4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4737else
     4738  # Is the header compilable?
     4739echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4741cat >conftest.$ac_ext <<_ACEOF
     4742/* confdefs.h.  */
     4743_ACEOF
     4744cat confdefs.h >>conftest.$ac_ext
     4745cat >>conftest.$ac_ext <<_ACEOF
     4746/* end confdefs.h.  */
     4747$ac_includes_default
     4748#include <$ac_header>
     4749_ACEOF
     4750rm -f conftest.$ac_objext
     4751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4752  (eval $ac_compile) 2>conftest.er1
     4753  ac_status=$?
     4754  grep -v '^ *+' conftest.er1 >conftest.err
     4755  rm -f conftest.er1
     4756  cat conftest.err >&5
     4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4758  (exit $ac_status); } &&
     4759         { ac_try='test -z "$ac_c_werror_flag"
     4760                         || test ! -s conftest.err'
     4761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4762  (eval $ac_try) 2>&5
     4763  ac_status=$?
     4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4765  (exit $ac_status); }; } &&
     4766         { ac_try='test -s conftest.$ac_objext'
     4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4768  (eval $ac_try) 2>&5
     4769  ac_status=$?
     4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4771  (exit $ac_status); }; }; then
     4772  ac_header_compiler=yes
     4773else
     4774  echo "$as_me: failed program was:" >&5
     4775sed 's/^/| /' conftest.$ac_ext >&5
     4776
     4777ac_header_compiler=no
     4778fi
     4779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4781echo "${ECHO_T}$ac_header_compiler" >&6
     4782
     4783# Is the header present?
     4784echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4786cat >conftest.$ac_ext <<_ACEOF
     4787/* confdefs.h.  */
     4788_ACEOF
     4789cat confdefs.h >>conftest.$ac_ext
     4790cat >>conftest.$ac_ext <<_ACEOF
     4791/* end confdefs.h.  */
     4792#include <$ac_header>
     4793_ACEOF
     4794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4796  ac_status=$?
     4797  grep -v '^ *+' conftest.er1 >conftest.err
     4798  rm -f conftest.er1
     4799  cat conftest.err >&5
     4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4801  (exit $ac_status); } >/dev/null; then
     4802  if test -s conftest.err; then
     4803    ac_cpp_err=$ac_c_preproc_warn_flag
     4804    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4805  else
     4806    ac_cpp_err=
     4807  fi
     4808else
     4809  ac_cpp_err=yes
     4810fi
     4811if test -z "$ac_cpp_err"; then
     4812  ac_header_preproc=yes
     4813else
     4814  echo "$as_me: failed program was:" >&5
     4815sed 's/^/| /' conftest.$ac_ext >&5
     4816
     4817  ac_header_preproc=no
     4818fi
     4819rm -f conftest.err conftest.$ac_ext
     4820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4821echo "${ECHO_T}$ac_header_preproc" >&6
     4822
     4823# So?  What about this header?
     4824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4825  yes:no: )
     4826    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4830    ac_header_preproc=yes
     4831    ;;
     4832  no:yes:* )
     4833    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4835    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4836echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4837    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4839    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4840echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4843    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4845    (
     4846      cat <<\_ASBOX
     4847## ------------------------------------------------------------------ ##
     4848## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=Pan ##
     4849## ------------------------------------------------------------------ ##
     4850_ASBOX
     4851    ) |
     4852      sed "s/^/$as_me: WARNING:     /" >&2
     4853    ;;
     4854esac
     4855echo "$as_me:$LINENO: checking for $ac_header" >&5
     4856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4857if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4858  echo $ECHO_N "(cached) $ECHO_C" >&6
     4859else
     4860  eval "$as_ac_Header=\$ac_header_preproc"
     4861fi
     4862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4864
     4865fi
     4866if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4867  cat >>confdefs.h <<_ACEOF
     4868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4869_ACEOF
     4870
     4871fi
     4872
     4873done
     4874
     4875    if test $ac_cv_header_locale_h = yes; then
     4876    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
     4877echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
     4878if test "${am_cv_val_LC_MESSAGES+set}" = set; then
     4879  echo $ECHO_N "(cached) $ECHO_C" >&6
     4880else
     4881  cat >conftest.$ac_ext <<_ACEOF
     4882/* confdefs.h.  */
     4883_ACEOF
     4884cat confdefs.h >>conftest.$ac_ext
     4885cat >>conftest.$ac_ext <<_ACEOF
     4886/* end confdefs.h.  */
     4887#include <locale.h>
     4888int
     4889main ()
     4890{
     4891return LC_MESSAGES
     4892  ;
     4893  return 0;
     4894}
     4895_ACEOF
     4896rm -f conftest.$ac_objext conftest$ac_exeext
     4897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4898  (eval $ac_link) 2>conftest.er1
     4899  ac_status=$?
     4900  grep -v '^ *+' conftest.er1 >conftest.err
     4901  rm -f conftest.er1
     4902  cat conftest.err >&5
     4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4904  (exit $ac_status); } &&
     4905         { ac_try='test -z "$ac_c_werror_flag"
     4906                         || test ! -s conftest.err'
     4907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4908  (eval $ac_try) 2>&5
     4909  ac_status=$?
     4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4911  (exit $ac_status); }; } &&
     4912         { ac_try='test -s conftest$ac_exeext'
     4913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4914  (eval $ac_try) 2>&5
     4915  ac_status=$?
     4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4917  (exit $ac_status); }; }; then
     4918  am_cv_val_LC_MESSAGES=yes
     4919else
     4920  echo "$as_me: failed program was:" >&5
     4921sed 's/^/| /' conftest.$ac_ext >&5
     4922
     4923am_cv_val_LC_MESSAGES=no
     4924fi
     4925rm -f conftest.err conftest.$ac_objext \
     4926      conftest$ac_exeext conftest.$ac_ext
     4927fi
     4928echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
     4929echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
     4930    if test $am_cv_val_LC_MESSAGES = yes; then
     4931
     4932cat >>confdefs.h <<\_ACEOF
     4933#define HAVE_LC_MESSAGES 1
     4934_ACEOF
     4935
     4936    fi
     4937  fi
     4938         USE_NLS=yes
     4939
     4940
     4941    gt_cv_have_gettext=no
     4942
     4943    CATOBJEXT=NONE
     4944    XGETTEXT=:
     4945    INTLLIBS=
     4946
     4947    if test "${ac_cv_header_libintl_h+set}" = set; then
     4948  echo "$as_me:$LINENO: checking for libintl.h" >&5
     4949echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
     4950if test "${ac_cv_header_libintl_h+set}" = set; then
     4951  echo $ECHO_N "(cached) $ECHO_C" >&6
     4952fi
     4953echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
     4954echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
     4955else
     4956  # Is the header compilable?
     4957echo "$as_me:$LINENO: checking libintl.h usability" >&5
     4958echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
     4959cat >conftest.$ac_ext <<_ACEOF
     4960/* confdefs.h.  */
     4961_ACEOF
     4962cat confdefs.h >>conftest.$ac_ext
     4963cat >>conftest.$ac_ext <<_ACEOF
     4964/* end confdefs.h.  */
     4965$ac_includes_default
     4966#include <libintl.h>
     4967_ACEOF
     4968rm -f conftest.$ac_objext
     4969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4970  (eval $ac_compile) 2>conftest.er1
     4971  ac_status=$?
     4972  grep -v '^ *+' conftest.er1 >conftest.err
     4973  rm -f conftest.er1
     4974  cat conftest.err >&5
     4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4976  (exit $ac_status); } &&
     4977         { ac_try='test -z "$ac_c_werror_flag"
     4978                         || test ! -s conftest.err'
     4979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4980  (eval $ac_try) 2>&5
     4981  ac_status=$?
     4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4983  (exit $ac_status); }; } &&
     4984         { ac_try='test -s conftest.$ac_objext'
     4985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4986  (eval $ac_try) 2>&5
     4987  ac_status=$?
     4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4989  (exit $ac_status); }; }; then
     4990  ac_header_compiler=yes
     4991else
     4992  echo "$as_me: failed program was:" >&5
     4993sed 's/^/| /' conftest.$ac_ext >&5
     4994
     4995ac_header_compiler=no
     4996fi
     4997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4999echo "${ECHO_T}$ac_header_compiler" >&6
     5000
     5001# Is the header present?
     5002echo "$as_me:$LINENO: checking libintl.h presence" >&5
     5003echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
     5004cat >conftest.$ac_ext <<_ACEOF
     5005/* confdefs.h.  */
     5006_ACEOF
     5007cat confdefs.h >>conftest.$ac_ext
     5008cat >>conftest.$ac_ext <<_ACEOF
     5009/* end confdefs.h.  */
     5010#include <libintl.h>
     5011_ACEOF
     5012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5014  ac_status=$?
     5015  grep -v '^ *+' conftest.er1 >conftest.err
     5016  rm -f conftest.er1
     5017  cat conftest.err >&5
     5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5019  (exit $ac_status); } >/dev/null; then
     5020  if test -s conftest.err; then
     5021    ac_cpp_err=$ac_c_preproc_warn_flag
     5022    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5023  else
     5024    ac_cpp_err=
     5025  fi
     5026else
     5027  ac_cpp_err=yes
     5028fi
     5029if test -z "$ac_cpp_err"; then
     5030  ac_header_preproc=yes
     5031else
     5032  echo "$as_me: failed program was:" >&5
     5033sed 's/^/| /' conftest.$ac_ext >&5
     5034
     5035  ac_header_preproc=no
     5036fi
     5037rm -f conftest.err conftest.$ac_ext
     5038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5039echo "${ECHO_T}$ac_header_preproc" >&6
     5040
     5041# So?  What about this header?
     5042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5043  yes:no: )
     5044    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5045echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5046    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
     5047echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
     5048    ac_header_preproc=yes
     5049    ;;
     5050  no:yes:* )
     5051    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
     5052echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
     5053    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
     5054echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
     5055    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
     5056echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
     5057    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
     5058echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5059    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
     5060echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
     5061    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
     5062echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
     5063    (
     5064      cat <<\_ASBOX
     5065## ------------------------------------------------------------------ ##
     5066## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=Pan ##
     5067## ------------------------------------------------------------------ ##
     5068_ASBOX
     5069    ) |
     5070      sed "s/^/$as_me: WARNING:     /" >&2
     5071    ;;
     5072esac
     5073echo "$as_me:$LINENO: checking for libintl.h" >&5
     5074echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
     5075if test "${ac_cv_header_libintl_h+set}" = set; then
     5076  echo $ECHO_N "(cached) $ECHO_C" >&6
     5077else
     5078  ac_cv_header_libintl_h=$ac_header_preproc
     5079fi
     5080echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
     5081echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
     5082
     5083fi
     5084if test $ac_cv_header_libintl_h = yes; then
     5085  gt_cv_func_dgettext_libintl="no"
     5086      libintl_extra_libs=""
     5087
     5088      #
     5089      # First check in libc
     5090      #
     5091      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
     5092echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
     5093if test "${gt_cv_func_ngettext_libc+set}" = set; then
     5094  echo $ECHO_N "(cached) $ECHO_C" >&6
     5095else
     5096  cat >conftest.$ac_ext <<_ACEOF
     5097/* confdefs.h.  */
     5098_ACEOF
     5099cat confdefs.h >>conftest.$ac_ext
     5100cat >>conftest.$ac_ext <<_ACEOF
     5101/* end confdefs.h.  */
     5102
     5103#include <libintl.h>
     5104
     5105int
     5106main ()
     5107{
     5108return !ngettext ("","", 1)
     5109  ;
     5110  return 0;
     5111}
     5112_ACEOF
     5113rm -f conftest.$ac_objext conftest$ac_exeext
     5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5115  (eval $ac_link) 2>conftest.er1
     5116  ac_status=$?
     5117  grep -v '^ *+' conftest.er1 >conftest.err
     5118  rm -f conftest.er1
     5119  cat conftest.err >&5
     5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5121  (exit $ac_status); } &&
     5122         { ac_try='test -z "$ac_c_werror_flag"
     5123                         || test ! -s conftest.err'
     5124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5125  (eval $ac_try) 2>&5
     5126  ac_status=$?
     5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5128  (exit $ac_status); }; } &&
     5129         { ac_try='test -s conftest$ac_exeext'
     5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5131  (eval $ac_try) 2>&5
     5132  ac_status=$?
     5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5134  (exit $ac_status); }; }; then
     5135  gt_cv_func_ngettext_libc=yes
     5136else
     5137  echo "$as_me: failed program was:" >&5
     5138sed 's/^/| /' conftest.$ac_ext >&5
     5139
     5140gt_cv_func_ngettext_libc=no
     5141fi
     5142rm -f conftest.err conftest.$ac_objext \
     5143      conftest$ac_exeext conftest.$ac_ext
     5144
     5145fi
     5146echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
     5147echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
     5148
     5149      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
     5150              echo "$as_me:$LINENO: checking for dgettext in libc" >&5
     5151echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
     5152if test "${gt_cv_func_dgettext_libc+set}" = set; then
     5153  echo $ECHO_N "(cached) $ECHO_C" >&6
     5154else
     5155  cat >conftest.$ac_ext <<_ACEOF
     5156/* confdefs.h.  */
     5157_ACEOF
     5158cat confdefs.h >>conftest.$ac_ext
     5159cat >>conftest.$ac_ext <<_ACEOF
     5160/* end confdefs.h.  */
     5161
     5162#include <libintl.h>
     5163
     5164int
     5165main ()
     5166{
     5167return !dgettext ("","")
     5168  ;
     5169  return 0;
     5170}
     5171_ACEOF
     5172rm -f conftest.$ac_objext conftest$ac_exeext
     5173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5174  (eval $ac_link) 2>conftest.er1
     5175  ac_status=$?
     5176  grep -v '^ *+' conftest.er1 >conftest.err
     5177  rm -f conftest.er1
     5178  cat conftest.err >&5
     5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5180  (exit $ac_status); } &&
     5181         { ac_try='test -z "$ac_c_werror_flag"
     5182                         || test ! -s conftest.err'
     5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5184  (eval $ac_try) 2>&5
     5185  ac_status=$?
     5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5187  (exit $ac_status); }; } &&
     5188         { ac_try='test -s conftest$ac_exeext'
     5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5190  (eval $ac_try) 2>&5
     5191  ac_status=$?
     5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5193  (exit $ac_status); }; }; then
     5194  gt_cv_func_dgettext_libc=yes
     5195else
     5196  echo "$as_me: failed program was:" >&5
     5197sed 's/^/| /' conftest.$ac_ext >&5
     5198
     5199gt_cv_func_dgettext_libc=no
     5200fi
     5201rm -f conftest.err conftest.$ac_objext \
     5202      conftest$ac_exeext conftest.$ac_ext
     5203
     5204fi
     5205echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
     5206echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
     5207      fi
     5208
     5209      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
     5210
     5211for ac_func in bind_textdomain_codeset
     5212do
     5213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5214echo "$as_me:$LINENO: checking for $ac_func" >&5
     5215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5216if eval "test \"\${$as_ac_var+set}\" = set"; then
     5217  echo $ECHO_N "(cached) $ECHO_C" >&6
     5218else
     5219  cat >conftest.$ac_ext <<_ACEOF
     5220/* confdefs.h.  */
     5221_ACEOF
     5222cat confdefs.h >>conftest.$ac_ext
     5223cat >>conftest.$ac_ext <<_ACEOF
     5224/* end confdefs.h.  */
     5225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5227#define $ac_func innocuous_$ac_func
     5228
     5229/* System header to define __stub macros and hopefully few prototypes,
     5230    which can conflict with char $ac_func (); below.
     5231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5232    <limits.h> exists even on freestanding compilers.  */
     5233
     5234#ifdef __STDC__
     5235# include <limits.h>
     5236#else
     5237# include <assert.h>
     5238#endif
     5239
     5240#undef $ac_func
     5241
     5242/* Override any gcc2 internal prototype to avoid an error.  */
     5243#ifdef __cplusplus
     5244extern "C"
     5245{
     5246#endif
     5247/* We use char because int might match the return type of a gcc2
     5248   builtin and then its argument prototype would still apply.  */
     5249char $ac_func ();
     5250/* The GNU C library defines this for functions which it implements
     5251    to always fail with ENOSYS.  Some functions are actually named
     5252    something starting with __ and the normal name is an alias.  */
     5253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     5254choke me
     5255#else
     5256char (*f) () = $ac_func;
     5257#endif
     5258#ifdef __cplusplus
     5259}
     5260#endif
     5261
     5262int
     5263main ()
     5264{
     5265return f != $ac_func;
     5266  ;
     5267  return 0;
     5268}
     5269_ACEOF
     5270rm -f conftest.$ac_objext conftest$ac_exeext
     5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5272  (eval $ac_link) 2>conftest.er1
     5273  ac_status=$?
     5274  grep -v '^ *+' conftest.er1 >conftest.err
     5275  rm -f conftest.er1
     5276  cat conftest.err >&5
     5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5278  (exit $ac_status); } &&
     5279         { ac_try='test -z "$ac_c_werror_flag"
     5280                         || test ! -s conftest.err'
     5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5282  (eval $ac_try) 2>&5
     5283  ac_status=$?
     5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5285  (exit $ac_status); }; } &&
     5286         { ac_try='test -s conftest$ac_exeext'
     5287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5288  (eval $ac_try) 2>&5
     5289  ac_status=$?
     5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5291  (exit $ac_status); }; }; then
     5292  eval "$as_ac_var=yes"
     5293else
     5294  echo "$as_me: failed program was:" >&5
     5295sed 's/^/| /' conftest.$ac_ext >&5
     5296
     5297eval "$as_ac_var=no"
     5298fi
     5299rm -f conftest.err conftest.$ac_objext \
     5300      conftest$ac_exeext conftest.$ac_ext
     5301fi
     5302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5304if test `eval echo '${'$as_ac_var'}'` = yes; then
     5305  cat >>confdefs.h <<_ACEOF
     5306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5307_ACEOF
     5308
     5309fi
     5310done
     5311
     5312      fi
     5313
     5314      #
     5315      # If we don't have everything we want, check in libintl
     5316      #
     5317      if test "$gt_cv_func_dgettext_libc" != "yes" \
     5318         || test "$gt_cv_func_ngettext_libc" != "yes" \
     5319         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
     5320
     5321        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
     5322echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
     5323if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
     5324  echo $ECHO_N "(cached) $ECHO_C" >&6
     5325else
     5326  ac_check_lib_save_LIBS=$LIBS
     5327LIBS="-lintl  $LIBS"
     5328cat >conftest.$ac_ext <<_ACEOF
     5329/* confdefs.h.  */
     5330_ACEOF
     5331cat confdefs.h >>conftest.$ac_ext
     5332cat >>conftest.$ac_ext <<_ACEOF
     5333/* end confdefs.h.  */
     5334
     5335/* Override any gcc2 internal prototype to avoid an error.  */
     5336#ifdef __cplusplus
     5337extern "C"
     5338#endif
     5339/* We use char because int might match the return type of a gcc2
     5340   builtin and then its argument prototype would still apply.  */
     5341char bindtextdomain ();
     5342int
     5343main ()
     5344{
     5345bindtextdomain ();
     5346  ;
     5347  return 0;
     5348}
     5349_ACEOF
     5350rm -f conftest.$ac_objext conftest$ac_exeext
     5351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5352  (eval $ac_link) 2>conftest.er1
     5353  ac_status=$?
     5354  grep -v '^ *+' conftest.er1 >conftest.err
     5355  rm -f conftest.er1
     5356  cat conftest.err >&5
     5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5358  (exit $ac_status); } &&
     5359         { ac_try='test -z "$ac_c_werror_flag"
     5360                         || test ! -s conftest.err'
     5361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5362  (eval $ac_try) 2>&5
     5363  ac_status=$?
     5364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5365  (exit $ac_status); }; } &&
     5366         { ac_try='test -s conftest$ac_exeext'
     5367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5368  (eval $ac_try) 2>&5
     5369  ac_status=$?
     5370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5371  (exit $ac_status); }; }; then
     5372  ac_cv_lib_intl_bindtextdomain=yes
     5373else
     5374  echo "$as_me: failed program was:" >&5
     5375sed 's/^/| /' conftest.$ac_ext >&5
     5376
     5377ac_cv_lib_intl_bindtextdomain=no
     5378fi
     5379rm -f conftest.err conftest.$ac_objext \
     5380      conftest$ac_exeext conftest.$ac_ext
     5381LIBS=$ac_check_lib_save_LIBS
     5382fi
     5383echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
     5384echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
     5385if test $ac_cv_lib_intl_bindtextdomain = yes; then
     5386  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
     5387echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
     5388if test "${ac_cv_lib_intl_ngettext+set}" = set; then
     5389  echo $ECHO_N "(cached) $ECHO_C" >&6
     5390else
     5391  ac_check_lib_save_LIBS=$LIBS
     5392LIBS="-lintl  $LIBS"
     5393cat >conftest.$ac_ext <<_ACEOF
     5394/* confdefs.h.  */
     5395_ACEOF
     5396cat confdefs.h >>conftest.$ac_ext
     5397cat >>conftest.$ac_ext <<_ACEOF
     5398/* end confdefs.h.  */
     5399
     5400/* Override any gcc2 internal prototype to avoid an error.  */
     5401#ifdef __cplusplus
     5402extern "C"
     5403#endif
     5404/* We use char because int might match the return type of a gcc2
     5405   builtin and then its argument prototype would still apply.  */
     5406char ngettext ();
     5407int
     5408main ()
     5409{
     5410ngettext ();
     5411  ;
     5412  return 0;
     5413}
     5414_ACEOF
     5415rm -f conftest.$ac_objext conftest$ac_exeext
     5416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5417  (eval $ac_link) 2>conftest.er1
     5418  ac_status=$?
     5419  grep -v '^ *+' conftest.er1 >conftest.err
     5420  rm -f conftest.er1
     5421  cat conftest.err >&5
     5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5423  (exit $ac_status); } &&
     5424         { ac_try='test -z "$ac_c_werror_flag"
     5425                         || test ! -s conftest.err'
     5426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5427  (eval $ac_try) 2>&5
     5428  ac_status=$?
     5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5430  (exit $ac_status); }; } &&
     5431         { ac_try='test -s conftest$ac_exeext'
     5432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5433  (eval $ac_try) 2>&5
     5434  ac_status=$?
     5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5436  (exit $ac_status); }; }; then
     5437  ac_cv_lib_intl_ngettext=yes
     5438else
     5439  echo "$as_me: failed program was:" >&5
     5440sed 's/^/| /' conftest.$ac_ext >&5
     5441
     5442ac_cv_lib_intl_ngettext=no
     5443fi
     5444rm -f conftest.err conftest.$ac_objext \
     5445      conftest$ac_exeext conftest.$ac_ext
     5446LIBS=$ac_check_lib_save_LIBS
     5447fi
     5448echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
     5449echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
     5450if test $ac_cv_lib_intl_ngettext = yes; then
     5451  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
     5452echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
     5453if test "${ac_cv_lib_intl_dgettext+set}" = set; then
     5454  echo $ECHO_N "(cached) $ECHO_C" >&6
     5455else
     5456  ac_check_lib_save_LIBS=$LIBS
     5457LIBS="-lintl  $LIBS"
     5458cat >conftest.$ac_ext <<_ACEOF
     5459/* confdefs.h.  */
     5460_ACEOF
     5461cat confdefs.h >>conftest.$ac_ext
     5462cat >>conftest.$ac_ext <<_ACEOF
     5463/* end confdefs.h.  */
     5464
     5465/* Override any gcc2 internal prototype to avoid an error.  */
     5466#ifdef __cplusplus
     5467extern "C"
     5468#endif
     5469/* We use char because int might match the return type of a gcc2
     5470   builtin and then its argument prototype would still apply.  */
     5471char dgettext ();
     5472int
     5473main ()
     5474{
     5475dgettext ();
     5476  ;
     5477  return 0;
     5478}
     5479_ACEOF
     5480rm -f conftest.$ac_objext conftest$ac_exeext
     5481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5482  (eval $ac_link) 2>conftest.er1
     5483  ac_status=$?
     5484  grep -v '^ *+' conftest.er1 >conftest.err
     5485  rm -f conftest.er1
     5486  cat conftest.err >&5
     5487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5488  (exit $ac_status); } &&
     5489         { ac_try='test -z "$ac_c_werror_flag"
     5490                         || test ! -s conftest.err'
     5491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5492  (eval $ac_try) 2>&5
     5493  ac_status=$?
     5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5495  (exit $ac_status); }; } &&
     5496         { ac_try='test -s conftest$ac_exeext'
     5497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5498  (eval $ac_try) 2>&5
     5499  ac_status=$?
     5500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5501  (exit $ac_status); }; }; then
     5502  ac_cv_lib_intl_dgettext=yes
     5503else
     5504  echo "$as_me: failed program was:" >&5
     5505sed 's/^/| /' conftest.$ac_ext >&5
     5506
     5507ac_cv_lib_intl_dgettext=no
     5508fi
     5509rm -f conftest.err conftest.$ac_objext \
     5510      conftest$ac_exeext conftest.$ac_ext
     5511LIBS=$ac_check_lib_save_LIBS
     5512fi
     5513echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
     5514echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
     5515if test $ac_cv_lib_intl_dgettext = yes; then
     5516  gt_cv_func_dgettext_libintl=yes
     5517fi
     5518
     5519fi
     5520
     5521fi
     5522
     5523
     5524        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
     5525          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
     5526echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
     5527          echo "$as_me:$LINENO: result: " >&5
     5528echo "${ECHO_T}" >&6
     5529          echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
     5530echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
     5531if test "${ac_cv_lib_intl_ngettext+set}" = set; then
     5532  echo $ECHO_N "(cached) $ECHO_C" >&6
     5533else
     5534  ac_check_lib_save_LIBS=$LIBS
     5535LIBS="-lintl -liconv $LIBS"
     5536cat >conftest.$ac_ext <<_ACEOF
     5537/* confdefs.h.  */
     5538_ACEOF
     5539cat confdefs.h >>conftest.$ac_ext
     5540cat >>conftest.$ac_ext <<_ACEOF
     5541/* end confdefs.h.  */
     5542
     5543/* Override any gcc2 internal prototype to avoid an error.  */
     5544#ifdef __cplusplus
     5545extern "C"
     5546#endif
     5547/* We use char because int might match the return type of a gcc2
     5548   builtin and then its argument prototype would still apply.  */
     5549char ngettext ();
     5550int
     5551main ()
     5552{
     5553ngettext ();
     5554  ;
     5555  return 0;
     5556}
     5557_ACEOF
     5558rm -f conftest.$ac_objext conftest$ac_exeext
     5559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5560  (eval $ac_link) 2>conftest.er1
     5561  ac_status=$?
     5562  grep -v '^ *+' conftest.er1 >conftest.err
     5563  rm -f conftest.er1
     5564  cat conftest.err >&5
     5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5566  (exit $ac_status); } &&
     5567         { ac_try='test -z "$ac_c_werror_flag"
     5568                         || test ! -s conftest.err'
     5569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5570  (eval $ac_try) 2>&5
     5571  ac_status=$?
     5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5573  (exit $ac_status); }; } &&
     5574         { ac_try='test -s conftest$ac_exeext'
     5575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5576  (eval $ac_try) 2>&5
     5577  ac_status=$?
     5578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5579  (exit $ac_status); }; }; then
     5580  ac_cv_lib_intl_ngettext=yes
     5581else
     5582  echo "$as_me: failed program was:" >&5
     5583sed 's/^/| /' conftest.$ac_ext >&5
     5584
     5585ac_cv_lib_intl_ngettext=no
     5586fi
     5587rm -f conftest.err conftest.$ac_objext \
     5588      conftest$ac_exeext conftest.$ac_ext
     5589LIBS=$ac_check_lib_save_LIBS
     5590fi
     5591echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
     5592echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
     5593if test $ac_cv_lib_intl_ngettext = yes; then
     5594  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
     5595echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
     5596if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
     5597  echo $ECHO_N "(cached) $ECHO_C" >&6
     5598else
     5599  ac_check_lib_save_LIBS=$LIBS
     5600LIBS="-lintl -liconv $LIBS"
     5601cat >conftest.$ac_ext <<_ACEOF
     5602/* confdefs.h.  */
     5603_ACEOF
     5604cat confdefs.h >>conftest.$ac_ext
     5605cat >>conftest.$ac_ext <<_ACEOF
     5606/* end confdefs.h.  */
     5607
     5608/* Override any gcc2 internal prototype to avoid an error.  */
     5609#ifdef __cplusplus
     5610extern "C"
     5611#endif
     5612/* We use char because int might match the return type of a gcc2
     5613   builtin and then its argument prototype would still apply.  */
     5614char dcgettext ();
     5615int
     5616main ()
     5617{
     5618dcgettext ();
     5619  ;
     5620  return 0;
     5621}
     5622_ACEOF
     5623rm -f conftest.$ac_objext conftest$ac_exeext
     5624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5625  (eval $ac_link) 2>conftest.er1
     5626  ac_status=$?
     5627  grep -v '^ *+' conftest.er1 >conftest.err
     5628  rm -f conftest.er1
     5629  cat conftest.err >&5
     5630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5631  (exit $ac_status); } &&
     5632         { ac_try='test -z "$ac_c_werror_flag"
     5633                         || test ! -s conftest.err'
     5634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5635  (eval $ac_try) 2>&5
     5636  ac_status=$?
     5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5638  (exit $ac_status); }; } &&
     5639         { ac_try='test -s conftest$ac_exeext'
     5640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5641  (eval $ac_try) 2>&5
     5642  ac_status=$?
     5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5644  (exit $ac_status); }; }; then
     5645  ac_cv_lib_intl_dcgettext=yes
     5646else
     5647  echo "$as_me: failed program was:" >&5
     5648sed 's/^/| /' conftest.$ac_ext >&5
     5649
     5650ac_cv_lib_intl_dcgettext=no
     5651fi
     5652rm -f conftest.err conftest.$ac_objext \
     5653      conftest$ac_exeext conftest.$ac_ext
     5654LIBS=$ac_check_lib_save_LIBS
     5655fi
     5656echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
     5657echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
     5658if test $ac_cv_lib_intl_dcgettext = yes; then
     5659  gt_cv_func_dgettext_libintl=yes
     5660                        libintl_extra_libs=-liconv
     5661else
     5662  :
     5663fi
     5664
     5665else
     5666  :
     5667fi
     5668
     5669        fi
     5670
     5671        #
     5672        # If we found libintl, then check in it for bind_textdomain_codeset();
     5673        # we'll prefer libc if neither have bind_textdomain_codeset(),
     5674        # and both have dgettext and ngettext
     5675        #
     5676        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
     5677          glib_save_LIBS="$LIBS"
     5678          LIBS="$LIBS -lintl $libintl_extra_libs"
     5679          unset ac_cv_func_bind_textdomain_codeset
     5680
     5681for ac_func in bind_textdomain_codeset
     5682do
     5683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5684echo "$as_me:$LINENO: checking for $ac_func" >&5
     5685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5686if eval "test \"\${$as_ac_var+set}\" = set"; then
     5687  echo $ECHO_N "(cached) $ECHO_C" >&6
     5688else
     5689  cat >conftest.$ac_ext <<_ACEOF
     5690/* confdefs.h.  */
     5691_ACEOF
     5692cat confdefs.h >>conftest.$ac_ext
     5693cat >>conftest.$ac_ext <<_ACEOF
     5694/* end confdefs.h.  */
     5695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5696   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5697#define $ac_func innocuous_$ac_func
     5698
     5699/* System header to define __stub macros and hopefully few prototypes,
     5700    which can conflict with char $ac_func (); below.
     5701    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5702    <limits.h> exists even on freestanding compilers.  */
     5703
     5704#ifdef __STDC__
     5705# include <limits.h>
     5706#else
     5707# include <assert.h>
     5708#endif
     5709
     5710#undef $ac_func
     5711
     5712/* Override any gcc2 internal prototype to avoid an error.  */
     5713#ifdef __cplusplus
     5714extern "C"
     5715{
     5716#endif
     5717/* We use char because int might match the return type of a gcc2
     5718   builtin and then its argument prototype would still apply.  */
     5719char $ac_func ();
     5720/* The GNU C library defines this for functions which it implements
     5721    to always fail with ENOSYS.  Some functions are actually named
     5722    something starting with __ and the normal name is an alias.  */
     5723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     5724choke me
     5725#else
     5726char (*f) () = $ac_func;
     5727#endif
     5728#ifdef __cplusplus
     5729}
     5730#endif
     5731
     5732int
     5733main ()
     5734{
     5735return f != $ac_func;
     5736  ;
     5737  return 0;
     5738}
     5739_ACEOF
     5740rm -f conftest.$ac_objext conftest$ac_exeext
     5741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5742  (eval $ac_link) 2>conftest.er1
     5743  ac_status=$?
     5744  grep -v '^ *+' conftest.er1 >conftest.err
     5745  rm -f conftest.er1
     5746  cat conftest.err >&5
     5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5748  (exit $ac_status); } &&
     5749         { ac_try='test -z "$ac_c_werror_flag"
     5750                         || test ! -s conftest.err'
     5751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5752  (eval $ac_try) 2>&5
     5753  ac_status=$?
     5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5755  (exit $ac_status); }; } &&
     5756         { ac_try='test -s conftest$ac_exeext'
     5757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5758  (eval $ac_try) 2>&5
     5759  ac_status=$?
     5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5761  (exit $ac_status); }; }; then
     5762  eval "$as_ac_var=yes"
     5763else
     5764  echo "$as_me: failed program was:" >&5
     5765sed 's/^/| /' conftest.$ac_ext >&5
     5766
     5767eval "$as_ac_var=no"
     5768fi
     5769rm -f conftest.err conftest.$ac_objext \
     5770      conftest$ac_exeext conftest.$ac_ext
     5771fi
     5772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5774if test `eval echo '${'$as_ac_var'}'` = yes; then
     5775  cat >>confdefs.h <<_ACEOF
     5776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5777_ACEOF
     5778
     5779fi
     5780done
     5781
     5782          LIBS="$glib_save_LIBS"
     5783
     5784          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
     5785            gt_cv_func_dgettext_libc=no
     5786          else
     5787            if test "$gt_cv_func_dgettext_libc" = "yes" \
     5788                && test "$gt_cv_func_ngettext_libc" = "yes"; then
     5789              gt_cv_func_dgettext_libintl=no
     5790            fi
     5791          fi
     5792        fi
     5793      fi
     5794
     5795      if test "$gt_cv_func_dgettext_libc" = "yes" \
     5796        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
     5797        gt_cv_have_gettext=yes
     5798      fi
     5799
     5800      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
     5801        INTLLIBS="-lintl $libintl_extra_libs"
     5802      fi
     5803
     5804      if test "$gt_cv_have_gettext" = "yes"; then
     5805
     5806cat >>confdefs.h <<\_ACEOF
     5807#define HAVE_GETTEXT 1
     5808_ACEOF
     5809
     5810        # Extract the first word of "msgfmt", so it can be a program name with args.
     5811set dummy msgfmt; ac_word=$2
     5812echo "$as_me:$LINENO: checking for $ac_word" >&5
     5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5814if test "${ac_cv_path_MSGFMT+set}" = set; then
     5815  echo $ECHO_N "(cached) $ECHO_C" >&6
     5816else
     5817  case "$MSGFMT" in
     5818  /*)
     5819  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
     5820  ;;
     5821  *)
     5822  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     5823  for ac_dir in $PATH; do
     5824    test -z "$ac_dir" && ac_dir=.
     5825    if test -f $ac_dir/$ac_word; then
     5826      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
     5827        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
     5828        break
     5829      fi
     5830    fi
     5831  done
     5832  IFS="$ac_save_ifs"
     5833  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
     5834  ;;
     5835esac
     5836fi
     5837MSGFMT="$ac_cv_path_MSGFMT"
     5838if test "$MSGFMT" != "no"; then
     5839  echo "$as_me:$LINENO: result: $MSGFMT" >&5
     5840echo "${ECHO_T}$MSGFMT" >&6
     5841else
     5842  echo "$as_me:$LINENO: result: no" >&5
     5843echo "${ECHO_T}no" >&6
     5844fi
     5845        if test "$MSGFMT" != "no"; then
     5846          glib_save_LIBS="$LIBS"
     5847          LIBS="$LIBS $INTLLIBS"
     5848
     5849for ac_func in dcgettext
     5850do
     5851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     5852echo "$as_me:$LINENO: checking for $ac_func" >&5
     5853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
     5854if eval "test \"\${$as_ac_var+set}\" = set"; then
     5855  echo $ECHO_N "(cached) $ECHO_C" >&6
     5856else
     5857  cat >conftest.$ac_ext <<_ACEOF
     5858/* confdefs.h.  */
     5859_ACEOF
     5860cat confdefs.h >>conftest.$ac_ext
     5861cat >>conftest.$ac_ext <<_ACEOF
     5862/* end confdefs.h.  */
     5863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
     5864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     5865#define $ac_func innocuous_$ac_func
     5866
     5867/* System header to define __stub macros and hopefully few prototypes,
     5868    which can conflict with char $ac_func (); below.
     5869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     5870    <limits.h> exists even on freestanding compilers.  */
     5871
     5872#ifdef __STDC__
     5873# include <limits.h>
     5874#else
     5875# include <assert.h>
     5876#endif
     5877
     5878#undef $ac_func
     5879
     5880/* Override any gcc2 internal prototype to avoid an error.  */
     5881#ifdef __cplusplus
     5882extern "C"
     5883{
     5884#endif
     5885/* We use char because int might match the return type of a gcc2
     5886   builtin and then its argument prototype would still apply.  */
     5887char $ac_func ();
     5888/* The GNU C library defines this for functions which it implements
     5889    to always fail with ENOSYS.  Some functions are actually named
     5890    something starting with __ and the normal name is an alias.  */
     5891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     5892choke me
     5893#else
     5894char (*f) () = $ac_func;
     5895#endif
     5896#ifdef __cplusplus
     5897}
     5898#endif
     5899
     5900int
     5901main ()
     5902{
     5903return f != $ac_func;
     5904  ;
     5905  return 0;
     5906}
     5907_ACEOF
     5908rm -f conftest.$ac_objext conftest$ac_exeext
     5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5910  (eval $ac_link) 2>conftest.er1
     5911  ac_status=$?
     5912  grep -v '^ *+' conftest.er1 >conftest.err
     5913  rm -f conftest.er1
     5914  cat conftest.err >&5
     5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5916  (exit $ac_status); } &&
     5917         { ac_try='test -z "$ac_c_werror_flag"
     5918                         || test ! -s conftest.err'
     5919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5920  (eval $ac_try) 2>&5
     5921  ac_status=$?
     5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5923  (exit $ac_status); }; } &&
     5924         { ac_try='test -s conftest$ac_exeext'
     5925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5926  (eval $ac_try) 2>&5
     5927  ac_status=$?
     5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5929  (exit $ac_status); }; }; then
     5930  eval "$as_ac_var=yes"
     5931else
     5932  echo "$as_me: failed program was:" >&5
     5933sed 's/^/| /' conftest.$ac_ext >&5
     5934
     5935eval "$as_ac_var=no"
     5936fi
     5937rm -f conftest.err conftest.$ac_objext \
     5938      conftest$ac_exeext conftest.$ac_ext
     5939fi
     5940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     5941echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
     5942if test `eval echo '${'$as_ac_var'}'` = yes; then
     5943  cat >>confdefs.h <<_ACEOF
     5944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     5945_ACEOF
     5946
     5947fi
     5948done
     5949
     5950          # Extract the first word of "gmsgfmt", so it can be a program name with args.
     5951set dummy gmsgfmt; ac_word=$2
     5952echo "$as_me:$LINENO: checking for $ac_word" >&5
     5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5954if test "${ac_cv_path_GMSGFMT+set}" = set; then
     5955  echo $ECHO_N "(cached) $ECHO_C" >&6
     5956else
     5957  case $GMSGFMT in
     5958  [\\/]* | ?:[\\/]*)
     5959  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
     5960  ;;
     5961  *)
     5962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     5963for as_dir in $PATH
     5964do
     5965  IFS=$as_save_IFS
     5966  test -z "$as_dir" && as_dir=.
     5967  for ac_exec_ext in '' $ac_executable_extensions; do
     5968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5969    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
     5970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5971    break 2
     5972  fi
     5973done
     5974done
     5975
     5976  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
     5977  ;;
     5978esac
     5979fi
     5980GMSGFMT=$ac_cv_path_GMSGFMT
     5981
     5982if test -n "$GMSGFMT"; then
     5983  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
     5984echo "${ECHO_T}$GMSGFMT" >&6
     5985else
     5986  echo "$as_me:$LINENO: result: no" >&5
     5987echo "${ECHO_T}no" >&6
     5988fi
     5989
     5990          # Extract the first word of "xgettext", so it can be a program name with args.
     5991set dummy xgettext; ac_word=$2
     5992echo "$as_me:$LINENO: checking for $ac_word" >&5
     5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5994if test "${ac_cv_path_XGETTEXT+set}" = set; then
     5995  echo $ECHO_N "(cached) $ECHO_C" >&6
     5996else
     5997  case "$XGETTEXT" in
     5998  /*)
     5999  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
     6000  ;;
     6001  *)
     6002  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     6003  for ac_dir in $PATH; do
     6004    test -z "$ac_dir" && ac_dir=.
     6005    if test -f $ac_dir/$ac_word; then
     6006      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
     6007        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
     6008        break
     6009      fi
     6010    fi
     6011  done
     6012  IFS="$ac_save_ifs"
     6013  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
     6014  ;;
     6015esac
     6016fi
     6017XGETTEXT="$ac_cv_path_XGETTEXT"
     6018if test "$XGETTEXT" != ":"; then
     6019  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
     6020echo "${ECHO_T}$XGETTEXT" >&6
     6021else
     6022  echo "$as_me:$LINENO: result: no" >&5
     6023echo "${ECHO_T}no" >&6
     6024fi
     6025
     6026          cat >conftest.$ac_ext <<_ACEOF
     6027/* confdefs.h.  */
     6028_ACEOF
     6029cat confdefs.h >>conftest.$ac_ext
     6030cat >>conftest.$ac_ext <<_ACEOF
     6031/* end confdefs.h.  */
     6032
     6033int
     6034main ()
     6035{
     6036extern int _nl_msg_cat_cntr;
     6037                         return _nl_msg_cat_cntr
     6038  ;
     6039  return 0;
     6040}
     6041_ACEOF
     6042rm -f conftest.$ac_objext conftest$ac_exeext
     6043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6044  (eval $ac_link) 2>conftest.er1
     6045  ac_status=$?
     6046  grep -v '^ *+' conftest.er1 >conftest.err
     6047  rm -f conftest.er1
     6048  cat conftest.err >&5
     6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6050  (exit $ac_status); } &&
     6051         { ac_try='test -z "$ac_c_werror_flag"
     6052                         || test ! -s conftest.err'
     6053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6054  (eval $ac_try) 2>&5
     6055  ac_status=$?
     6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6057  (exit $ac_status); }; } &&
     6058         { ac_try='test -s conftest$ac_exeext'
     6059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6060  (eval $ac_try) 2>&5
     6061  ac_status=$?
     6062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6063  (exit $ac_status); }; }; then
     6064  CATOBJEXT=.gmo
     6065             DATADIRNAME=share
     6066else
     6067  echo "$as_me: failed program was:" >&5
     6068sed 's/^/| /' conftest.$ac_ext >&5
     6069
     6070case $host in
     6071            *-*-solaris*)
     6072                                                                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
     6073echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
     6074if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
     6075  echo $ECHO_N "(cached) $ECHO_C" >&6
     6076else
     6077  cat >conftest.$ac_ext <<_ACEOF
     6078/* confdefs.h.  */
     6079_ACEOF
     6080cat confdefs.h >>conftest.$ac_ext
     6081cat >>conftest.$ac_ext <<_ACEOF
     6082/* end confdefs.h.  */
     6083/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
     6084   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     6085#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
     6086
     6087/* System header to define __stub macros and hopefully few prototypes,
     6088    which can conflict with char bind_textdomain_codeset (); below.
     6089    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     6090    <limits.h> exists even on freestanding compilers.  */
     6091
     6092#ifdef __STDC__
     6093# include <limits.h>
     6094#else
     6095# include <assert.h>
     6096#endif
     6097
     6098#undef bind_textdomain_codeset
     6099
     6100/* Override any gcc2 internal prototype to avoid an error.  */
     6101#ifdef __cplusplus
     6102extern "C"
     6103{
     6104#endif
     6105/* We use char because int might match the return type of a gcc2
     6106   builtin and then its argument prototype would still apply.  */
     6107char bind_textdomain_codeset ();
     6108/* The GNU C library defines this for functions which it implements
     6109    to always fail with ENOSYS.  Some functions are actually named
     6110    something starting with __ and the normal name is an alias.  */
     6111#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
     6112choke me
     6113#else
     6114char (*f) () = bind_textdomain_codeset;
     6115#endif
     6116#ifdef __cplusplus
     6117}
     6118#endif
     6119
     6120int
     6121main ()
     6122{
     6123return f != bind_textdomain_codeset;
     6124  ;
     6125  return 0;
     6126}
     6127_ACEOF
     6128rm -f conftest.$ac_objext conftest$ac_exeext
     6129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6130  (eval $ac_link) 2>conftest.er1
     6131  ac_status=$?
     6132  grep -v '^ *+' conftest.er1 >conftest.err
     6133  rm -f conftest.er1
     6134  cat conftest.err >&5
     6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6136  (exit $ac_status); } &&
     6137         { ac_try='test -z "$ac_c_werror_flag"
     6138                         || test ! -s conftest.err'
     6139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6140  (eval $ac_try) 2>&5
     6141  ac_status=$?
     6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6143  (exit $ac_status); }; } &&
     6144         { ac_try='test -s conftest$ac_exeext'
     6145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6146  (eval $ac_try) 2>&5
     6147  ac_status=$?
     6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6149  (exit $ac_status); }; }; then
     6150  ac_cv_func_bind_textdomain_codeset=yes
     6151else
     6152  echo "$as_me: failed program was:" >&5
     6153sed 's/^/| /' conftest.$ac_ext >&5
     6154
     6155ac_cv_func_bind_textdomain_codeset=no
     6156fi
     6157rm -f conftest.err conftest.$ac_objext \
     6158      conftest$ac_exeext conftest.$ac_ext
     6159fi
     6160echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
     6161echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
     6162if test $ac_cv_func_bind_textdomain_codeset = yes; then
     6163  CATOBJEXT=.gmo
     6164               DATADIRNAME=share
     6165else
     6166  CATOBJEXT=.mo
     6167               DATADIRNAME=lib
     6168fi
     6169
     6170            ;;
     6171            *)
     6172            CATOBJEXT=.mo
     6173            DATADIRNAME=lib
     6174            ;;
     6175            esac
     6176fi
     6177rm -f conftest.err conftest.$ac_objext \
     6178      conftest$ac_exeext conftest.$ac_ext
     6179          LIBS="$glib_save_LIBS"
     6180          INSTOBJEXT=.mo
     6181        else
     6182          gt_cv_have_gettext=no
     6183        fi
     6184      fi
     6185
     6186fi
     6187
     6188
     6189
     6190    if test "$gt_cv_have_gettext" = "yes" ; then
     6191
     6192cat >>confdefs.h <<\_ACEOF
     6193#define ENABLE_NLS 1
     6194_ACEOF
     6195
     6196    fi
     6197
     6198        if test "$XGETTEXT" != ":"; then
     6199                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
     6200        : ;
    2986201      else
    299         echo "no"
    300         GTK=no
     6202        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
     6203echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
     6204        XGETTEXT=":"
    3016205      fi
    302       rm -f testconf*
     6206    fi
     6207
     6208    # We need to process the po/ directory.
     6209    POSUB=po
     6210
     6211              ac_config_commands="$ac_config_commands default-1"
     6212
     6213
     6214                for lang in $ALL_LINGUAS; do
     6215      GMOFILES="$GMOFILES $lang.gmo"
     6216      POFILES="$POFILES $lang.po"
     6217    done
     6218
     6219
     6220
     6221
     6222
     6223
     6224
     6225
     6226
     6227
     6228
     6229
     6230
     6231   if test "$gt_cv_have_gettext" = "yes"; then
     6232     if test "x$ALL_LINGUAS" = "x"; then
     6233       LINGUAS=
     6234     else
     6235       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
     6236echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
     6237       NEW_LINGUAS=
     6238       for presentlang in $ALL_LINGUAS; do
     6239         useit=no
     6240         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
     6241           desiredlanguages="$LINGUAS"
     6242         else
     6243           desiredlanguages="$ALL_LINGUAS"
     6244         fi
     6245         for desiredlang in $desiredlanguages; do
     6246           # Use the presentlang catalog if desiredlang is
     6247           #   a. equal to presentlang, or
     6248           #   b. a variant of presentlang (because in this case,
     6249           #      presentlang can be used as a fallback for messages
     6250           #      which are not translated in the desiredlang catalog).
     6251           case "$desiredlang" in
     6252             "$presentlang"*) useit=yes;;
     6253           esac
     6254         done
     6255         if test $useit = yes; then
     6256           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
     6257         fi
     6258       done
     6259       LINGUAS=$NEW_LINGUAS
     6260       echo "$as_me:$LINENO: result: $LINGUAS" >&5
     6261echo "${ECHO_T}$LINGUAS" >&6
     6262     fi
     6263
     6264          if test -n "$LINGUAS"; then
     6265       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
     6266     fi
     6267   fi
     6268
     6269            MKINSTALLDIRS=
     6270   if test -n "$ac_aux_dir"; then
     6271     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
     6272   fi
     6273   if test -z "$MKINSTALLDIRS"; then
     6274     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
     6275   fi
     6276
     6277
     6278         test -d po || mkdir po
     6279   if test "x$srcdir" != "x."; then
     6280     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
     6281       posrcprefix="$srcdir/"
     6282     else
     6283       posrcprefix="../$srcdir/"
     6284     fi
     6285   else
     6286     posrcprefix="../"
     6287   fi
     6288   rm -f po/POTFILES
     6289   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
     6290        < $srcdir/po/POTFILES.in > po/POTFILES
     6291
     6292transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
     6293
     6294
     6295echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
     6296echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
     6297if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
     6298  echo $ECHO_N "(cached) $ECHO_C" >&6
     6299else
     6300  ac_check_lib_save_LIBS=$LIBS
     6301LIBS="-lcrypto  $LIBS"
     6302cat >conftest.$ac_ext <<_ACEOF
     6303/* confdefs.h.  */
     6304_ACEOF
     6305cat confdefs.h >>conftest.$ac_ext
     6306cat >>conftest.$ac_ext <<_ACEOF
     6307/* end confdefs.h.  */
     6308
     6309/* Override any gcc2 internal prototype to avoid an error.  */
     6310#ifdef __cplusplus
     6311extern "C"
     6312#endif
     6313/* We use char because int might match the return type of a gcc2
     6314   builtin and then its argument prototype would still apply.  */
     6315char CRYPTO_new_ex_data ();
     6316int
     6317main ()
     6318{
     6319CRYPTO_new_ex_data ();
     6320  ;
     6321  return 0;
     6322}
     6323_ACEOF
     6324rm -f conftest.$ac_objext conftest$ac_exeext
     6325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6326  (eval $ac_link) 2>conftest.er1
     6327  ac_status=$?
     6328  grep -v '^ *+' conftest.er1 >conftest.err
     6329  rm -f conftest.er1
     6330  cat conftest.err >&5
     6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6332  (exit $ac_status); } &&
     6333         { ac_try='test -z "$ac_c_werror_flag"
     6334                         || test ! -s conftest.err'
     6335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6336  (eval $ac_try) 2>&5
     6337  ac_status=$?
     6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6339  (exit $ac_status); }; } &&
     6340         { ac_try='test -s conftest$ac_exeext'
     6341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6342  (eval $ac_try) 2>&5
     6343  ac_status=$?
     6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6345  (exit $ac_status); }; }; then
     6346  ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
     6347else
     6348  echo "$as_me: failed program was:" >&5
     6349sed 's/^/| /' conftest.$ac_ext >&5
     6350
     6351ac_cv_lib_crypto_CRYPTO_new_ex_data=no
     6352fi
     6353rm -f conftest.err conftest.$ac_objext \
     6354      conftest$ac_exeext conftest.$ac_ext
     6355LIBS=$ac_check_lib_save_LIBS
     6356fi
     6357echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
     6358echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
     6359if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
     6360  cat >>confdefs.h <<_ACEOF
     6361#define HAVE_LIBCRYPTO 1
     6362_ACEOF
     6363
     6364  LIBS="-lcrypto $LIBS"
     6365
     6366fi
     6367
     6368
     6369echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
     6370echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
     6371if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
     6372  echo $ECHO_N "(cached) $ECHO_C" >&6
     6373else
     6374  ac_check_lib_save_LIBS=$LIBS
     6375LIBS="-lssl  $LIBS"
     6376cat >conftest.$ac_ext <<_ACEOF
     6377/* confdefs.h.  */
     6378_ACEOF
     6379cat confdefs.h >>conftest.$ac_ext
     6380cat >>conftest.$ac_ext <<_ACEOF
     6381/* end confdefs.h.  */
     6382
     6383/* Override any gcc2 internal prototype to avoid an error.  */
     6384#ifdef __cplusplus
     6385extern "C"
     6386#endif
     6387/* We use char because int might match the return type of a gcc2
     6388   builtin and then its argument prototype would still apply.  */
     6389char SSL_library_init ();
     6390int
     6391main ()
     6392{
     6393SSL_library_init ();
     6394  ;
     6395  return 0;
     6396}
     6397_ACEOF
     6398rm -f conftest.$ac_objext conftest$ac_exeext
     6399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6400  (eval $ac_link) 2>conftest.er1
     6401  ac_status=$?
     6402  grep -v '^ *+' conftest.er1 >conftest.err
     6403  rm -f conftest.er1
     6404  cat conftest.err >&5
     6405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6406  (exit $ac_status); } &&
     6407         { ac_try='test -z "$ac_c_werror_flag"
     6408                         || test ! -s conftest.err'
     6409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6410  (eval $ac_try) 2>&5
     6411  ac_status=$?
     6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6413  (exit $ac_status); }; } &&
     6414         { ac_try='test -s conftest$ac_exeext'
     6415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6416  (eval $ac_try) 2>&5
     6417  ac_status=$?
     6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6419  (exit $ac_status); }; }; then
     6420  ac_cv_lib_ssl_SSL_library_init=yes
     6421else
     6422  echo "$as_me: failed program was:" >&5
     6423sed 's/^/| /' conftest.$ac_ext >&5
     6424
     6425ac_cv_lib_ssl_SSL_library_init=no
     6426fi
     6427rm -f conftest.err conftest.$ac_objext \
     6428      conftest$ac_exeext conftest.$ac_ext
     6429LIBS=$ac_check_lib_save_LIBS
     6430fi
     6431echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
     6432echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
     6433if test $ac_cv_lib_ssl_SSL_library_init = yes; then
     6434  cat >>confdefs.h <<_ACEOF
     6435#define HAVE_LIBSSL 1
     6436_ACEOF
     6437
     6438  LIBS="-lssl $LIBS"
     6439
     6440fi
     6441
     6442
     6443
     6444
     6445echo "$as_me:$LINENO: checking for event_init in -levent" >&5
     6446echo $ECHO_N "checking for event_init in -levent... $ECHO_C" >&6
     6447if test "${ac_cv_lib_event_event_init+set}" = set; then
     6448  echo $ECHO_N "(cached) $ECHO_C" >&6
     6449else
     6450  ac_check_lib_save_LIBS=$LIBS
     6451LIBS="-levent  $LIBS"
     6452cat >conftest.$ac_ext <<_ACEOF
     6453/* confdefs.h.  */
     6454_ACEOF
     6455cat confdefs.h >>conftest.$ac_ext
     6456cat >>conftest.$ac_ext <<_ACEOF
     6457/* end confdefs.h.  */
     6458
     6459/* Override any gcc2 internal prototype to avoid an error.  */
     6460#ifdef __cplusplus
     6461extern "C"
     6462#endif
     6463/* We use char because int might match the return type of a gcc2
     6464   builtin and then its argument prototype would still apply.  */
     6465char event_init ();
     6466int
     6467main ()
     6468{
     6469event_init ();
     6470  ;
     6471  return 0;
     6472}
     6473_ACEOF
     6474rm -f conftest.$ac_objext conftest$ac_exeext
     6475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6476  (eval $ac_link) 2>conftest.er1
     6477  ac_status=$?
     6478  grep -v '^ *+' conftest.er1 >conftest.err
     6479  rm -f conftest.er1
     6480  cat conftest.err >&5
     6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6482  (exit $ac_status); } &&
     6483         { ac_try='test -z "$ac_c_werror_flag"
     6484                         || test ! -s conftest.err'
     6485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6486  (eval $ac_try) 2>&5
     6487  ac_status=$?
     6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6489  (exit $ac_status); }; } &&
     6490         { ac_try='test -s conftest$ac_exeext'
     6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6492  (eval $ac_try) 2>&5
     6493  ac_status=$?
     6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6495  (exit $ac_status); }; }; then
     6496  ac_cv_lib_event_event_init=yes
     6497else
     6498  echo "$as_me: failed program was:" >&5
     6499sed 's/^/| /' conftest.$ac_ext >&5
     6500
     6501ac_cv_lib_event_event_init=no
     6502fi
     6503rm -f conftest.err conftest.$ac_objext \
     6504      conftest$ac_exeext conftest.$ac_ext
     6505LIBS=$ac_check_lib_save_LIBS
     6506fi
     6507echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_init" >&5
     6508echo "${ECHO_T}$ac_cv_lib_event_event_init" >&6
     6509if test $ac_cv_lib_event_event_init = yes; then
     6510  have_libevent=yes
     6511else
     6512  have_libevent=no
     6513fi
     6514
     6515
     6516# Check whether --with-libevent or --without-libevent was given.
     6517if test "${with_libevent+set}" = set; then
     6518  withval="$with_libevent"
     6519  want_libevent=$withval
     6520else
     6521  want_libevent=$have_libevent
     6522fi;
     6523use_libevent=no
     6524if test "x$want_libevent" = "xyes" ; then
     6525    if test "x$have_libevent" = "xyes"; then
     6526      use_libevent=yes
    3036527    else
    304       echo "no (2.6.0 or later is required)"
    305       GTK=no
     6528      { { echo "$as_me:$LINENO: error: \"libevent not found!\"" >&5
     6529echo "$as_me: error: \"libevent not found!\"" >&2;}
     6530   { (exit 1); exit 1; }; }
     6531    fi
     6532fi
     6533
     6534
     6535if test "x$use_libevent" = "xyes"; then
     6536  WITH_LIBEVENT_TRUE=
     6537  WITH_LIBEVENT_FALSE='#'
     6538else
     6539  WITH_LIBEVENT_TRUE='#'
     6540  WITH_LIBEVENT_FALSE=
     6541fi
     6542
     6543
     6544
     6545
     6546
     6547# Check whether --enable-gtktest or --disable-gtktest was given.
     6548if test "${enable_gtktest+set}" = set; then
     6549  enableval="$enable_gtktest"
     6550
     6551else
     6552  enable_gtktest=yes
     6553fi;
     6554
     6555  pkg_config_args=gtk+-2.0
     6556  for module in .
     6557  do
     6558      case "$module" in
     6559         gthread)
     6560             pkg_config_args="$pkg_config_args gthread-2.0"
     6561         ;;
     6562      esac
     6563  done
     6564
     6565  no_gtk=""
     6566
     6567  # Extract the first word of "pkg-config", so it can be a program name with args.
     6568set dummy pkg-config; ac_word=$2
     6569echo "$as_me:$LINENO: checking for $ac_word" >&5
     6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6571if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     6572  echo $ECHO_N "(cached) $ECHO_C" >&6
     6573else
     6574  case $PKG_CONFIG in
     6575  [\\/]* | ?:[\\/]*)
     6576  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     6577  ;;
     6578  *)
     6579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6580for as_dir in $PATH
     6581do
     6582  IFS=$as_save_IFS
     6583  test -z "$as_dir" && as_dir=.
     6584  for ac_exec_ext in '' $ac_executable_extensions; do
     6585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6586    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     6587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     6588    break 2
     6589  fi
     6590done
     6591done
     6592
     6593  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
     6594  ;;
     6595esac
     6596fi
     6597PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     6598
     6599if test -n "$PKG_CONFIG"; then
     6600  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     6601echo "${ECHO_T}$PKG_CONFIG" >&6
     6602else
     6603  echo "$as_me:$LINENO: result: no" >&5
     6604echo "${ECHO_T}no" >&6
     6605fi
     6606
     6607
     6608  if test x$PKG_CONFIG != xno ; then
     6609    if pkg-config --atleast-pkgconfig-version 0.7 ; then
     6610      :
     6611    else
     6612      echo "*** pkg-config too old; version 0.7 or better required."
     6613      no_gtk=yes
     6614      PKG_CONFIG=no
    3066615    fi
    3076616  else
    308     echo "no"
    309     GTK=no
     6617    no_gtk=yes
    3106618  fi
     6619
     6620  min_gtk_version=$GTK_MINIMUM
     6621  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
     6622echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
     6623
     6624  if test x$PKG_CONFIG != xno ; then
     6625    ## don't try to run the test against uninstalled libtool libs
     6626    if $PKG_CONFIG --uninstalled $pkg_config_args; then
     6627          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
     6628          enable_gtktest=no
     6629    fi
     6630
     6631    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
     6632          :
     6633    else
     6634          no_gtk=yes
     6635    fi
     6636  fi
     6637
     6638  if test x"$no_gtk" = x ; then
     6639    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
     6640    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
     6641    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
     6642           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
     6643    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
     6644           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
     6645    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
     6646           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
     6647    if test "x$enable_gtktest" = "xyes" ; then
     6648      ac_save_CFLAGS="$CFLAGS"
     6649      ac_save_LIBS="$LIBS"
     6650      CFLAGS="$CFLAGS $GTK_CFLAGS"
     6651      LIBS="$GTK_LIBS $LIBS"
     6652      rm -f conf.gtktest
     6653      if test "$cross_compiling" = yes; then
     6654  echo $ac_n "cross compiling; assumed OK... $ac_c"
     6655else
     6656  cat >conftest.$ac_ext <<_ACEOF
     6657/* confdefs.h.  */
     6658_ACEOF
     6659cat confdefs.h >>conftest.$ac_ext
     6660cat >>conftest.$ac_ext <<_ACEOF
     6661/* end confdefs.h.  */
     6662
     6663#include <gtk/gtk.h>
     6664#include <stdio.h>
     6665#include <stdlib.h>
     6666
     6667int
     6668main ()
     6669{
     6670  int major, minor, micro;
     6671  char *tmp_version;
     6672
     6673  system ("touch conf.gtktest");
     6674
     6675  /* HP/UX 9 (%@#!) writes to sscanf strings */
     6676  tmp_version = g_strdup("$min_gtk_version");
     6677  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     6678     printf("%s, bad version string\n", "$min_gtk_version");
     6679     exit(1);
     6680   }
     6681
     6682  if ((gtk_major_version != $gtk_config_major_version) ||
     6683      (gtk_minor_version != $gtk_config_minor_version) ||
     6684      (gtk_micro_version != $gtk_config_micro_version))
     6685    {
     6686      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
     6687             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
     6688             gtk_major_version, gtk_minor_version, gtk_micro_version);
     6689      printf ("*** was found! If pkg-config was correct, then it is best\n");
     6690      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
     6691      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
     6692      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
     6693      printf("*** required on your system.\n");
     6694      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
     6695      printf("*** to point to the correct configuration files\n");
     6696    }
     6697  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
     6698           (gtk_minor_version != GTK_MINOR_VERSION) ||
     6699           (gtk_micro_version != GTK_MICRO_VERSION))
     6700    {
     6701      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
     6702             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
     6703      printf("*** library (version %d.%d.%d)\n",
     6704             gtk_major_version, gtk_minor_version, gtk_micro_version);
     6705    }
     6706  else
     6707    {
     6708      if ((gtk_major_version > major) ||
     6709        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
     6710        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
     6711      {
     6712        return 0;
     6713       }
     6714     else
     6715      {
     6716        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
     6717               gtk_major_version, gtk_minor_version, gtk_micro_version);
     6718        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
     6719               major, minor, micro);
     6720        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
     6721        printf("***\n");
     6722        printf("*** If you have already installed a sufficiently new version, this error\n");
     6723        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
     6724        printf("*** being found. The easiest way to fix this is to remove the old version\n");
     6725        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
     6726        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
     6727        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
     6728        printf("*** so that the correct libraries are found at run-time))\n");