#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.63 for LibreOffice 3.5.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH


if test "x$CONFIG_SHELL" = x; then
  if (eval ":") 2>/dev/null; then
  as_have_required=yes
else
  as_have_required=no
fi

  if test $as_have_required = yes &&	 (eval ":
(as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=\$LINENO
  as_lineno_2=\$LINENO
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
") 2> /dev/null; then
  :
else
  as_candidate_shells=
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  case $as_dir in
	 /*)
	   for as_base in sh bash ksh sh5; do
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
	   done;;
       esac
done
IFS=$as_save_IFS


      for as_shell in $as_candidate_shells $SHELL; do
	 # Try only shells that exist, to save several forks.
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
_ASEOF
}; then
  CONFIG_SHELL=$as_shell
	       as_have_required=yes
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi


:
(as_func_return () {
  (exit $1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = "$1" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test $exitcode = 0) || { (exit 1); exit 1; }

(
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }

_ASEOF
}; then
  break
fi

fi

      done

      if test "x$CONFIG_SHELL" != x; then
  for as_var in BASH_ENV ENV
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
	done
	export CONFIG_SHELL
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
fi


    if test $as_have_required = no; then
  echo This script requires a shell more modern than all the
      echo shells that I found on your system.  Please install a
      echo modern shell, or manually run the script under such a
      echo shell if you do have one.
      { (exit 1); exit 1; }
fi


fi

fi



(eval "as_func_return () {
  (exit \$1)
}
as_func_success () {
  as_func_return 0
}
as_func_failure () {
  as_func_return 1
}
as_func_ret_success () {
  return 0
}
as_func_ret_failure () {
  return 1
}

exitcode=0
if as_func_success; then
  :
else
  exitcode=1
  echo as_func_success failed.
fi

if as_func_failure; then
  exitcode=1
  echo as_func_failure succeeded.
fi

if as_func_ret_success; then
  :
else
  exitcode=1
  echo as_func_ret_success failed.
fi

if as_func_ret_failure; then
  exitcode=1
  echo as_func_ret_failure succeeded.
fi

if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  :
else
  exitcode=1
  echo positional parameters were not saved.
fi

test \$exitcode = 0") || {
  echo No shell found that supports shell functions.
  echo Please tell bug-autoconf@gnu.org about your system,
  echo including any error possibly output before this message.
  echo This can help us improve future autoconf versions.
  echo Configuration will now proceed without shell functions.
}



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"



exec 7<&0 </dev/null 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Identity of this package.
PACKAGE_NAME='LibreOffice'
PACKAGE_TARNAME='libreoffice'
PACKAGE_VERSION='3.5'
PACKAGE_STRING='LibreOffice 3.5'
PACKAGE_BUGREPORT=''

# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='LTLIBOBJS
LIBOBJS
MINGW_EXTERNAL_DLLS
BUILD_TYPE
LOCAL_SOLVER
GMAKE_MODULE_PARALLELISM
GMAKE_PARALLELISM
BUILD_MAX_JOBS
MERGELIBS
BUILD_NCPUS
nodep
ENABLE_ZENITY
ZNTY
VERBOSE
ENABLE_STATIC_GTK
INSTALLDIR
DOCDIR
MANDIR
DATADIR
LIBDIR
PREFIXDIR
INSTALLDIRNAME
PRODUCTNAME
WITH_COMPAT_OOWRAPPERS
UNIXWRAPPERNAME
OOO_VENDOR
STARTCENTER_SPACE_BITMAP
STARTCENTER_RTL_RIGHT_BITMAP
STARTCENTER_RTL_LEFT_BITMAP
STARTCENTER_RIGHT_BITMAP
STARTCENTER_LEFT_BITMAP
ABOUT_BITMAP
INTRO_BITMAP
PROGRESSFRAMECOLOR
PROGRESSPOSITION
PROGRESSSIZE
PROGRESSBARCOLOR
GIT_LINK_SRC
GIT_REPO_NAMES
WITH_LANG_LIST
WITH_LANG
ALL_LANGS
PRODUCTVERSION
OOO_JUNIT_JAR
ANT_LIB
ANT_HOME
ANT
JVM_ONE_PATH_CHECK
SYSTEM_LIBJPEG
SYSTEM_LIBPNG
SYSTEM_LIBGSF
SYSTEM_PANGO
SYSTEM_LIBCROCO
SYSTEM_GETTEXT
SYSTEM_GLIB
SYSTEM_GDKPIXBUF
SYSTEM_CAIRO
CAIRO_LIBS
CAIRO_CFLAGS
SYSTEM_LIBRSVG
ENABLE_LIBRSVG
LIBRSVG_LIBS
LIBRSVG_CFLAGS
XINERAMA_LINK
USE_XINERAMA
SCPDEFS
ENABLE_ACTIVEX_COMPONENT
ENABLE_SILENT_MSI
ENABLE_RELEASE_BUILD
ENABLE_ONLINE_UPDATE
ENABLE_LOMENUBAR
DBUSMENUGTK_LIBS
DBUSMENUGTK_CFLAGS
OXYGENOFFICE_PACK
ENABLE_OXYGENOFFICE
OOOP_FONTS_PACK
WITH_EXTRA_FONT
OOOP_SAMPLES_PACK
WITH_EXTRA_SAMPLE
OOOP_TEMPLATES_PACK
WITH_EXTRA_TEMPLATE
OOOP_GALLERY_PACK
WITH_EXTRA_GALLERY
WITHOUT_AFMS
WITHOUT_PPDS
WITH_AGFA_MONOTYPE_FONTS
WITH_FONTS
SUNTEMPLATES_IT_PACK
SUNTEMPLATES_HU_PACK
SUNTEMPLATES_FR_PACK
SUNTEMPLATES_ES_PACK
SUNTEMPLATES_EN_US_PACK
SUNTEMPLATES_DE_PACK
SUNTEMPLATES_LANG
OOOBLOGGER_EXTENSION_PACK
GOOGLE_DOCS_EXTENSION_PACK
TYPO_EXTENSION_PACK
HUNART_EXTENSION_PACK
NUMBERTEXT_EXTENSION_PACK
CT2N_EXTENSION_PACK
BARCODE_EXTENSION_PACK
VALIDATOR_EXTENSION_PACK
DIAGRAM_EXTENSION_PACK
WATCH_WINDOW_EXTENSION_PACK
WITH_EXTENSION_INTEGRATION
WITH_HELPPACK_INTEGRATION
WITH_THEMES
ENABLE_KAB
ENABLE_EVOAB2
GOBJECT_LIBS
GOBJECT_CFLAGS
ENABLE_LOCKDOWN
KDE_HAVE_GLIB
KDE4_LIBS
KDE4_CFLAGS
KDE_GLIB_LIBS
KDE_GLIB_CFLAGS
MOC4
MOCQT4
QMAKE4
QMAKEQT4
KDE_LIBS
KDE_CFLAGS
MOC
ENABLE_SCRIPTING_PYTHON
ENABLE_SCRIPTING_JAVASCRIPT
ENABLE_SCRIPTING_BEANSHELL
COMMONS_LOGGING_JAR
COMMONS_HTTPCLIENT_JAR
COMMONS_LANG_JAR
COMMONS_CODEC_JAR
SYSTEM_APACHE_COMMONS
LIBSERIALIZER_JAR
LIBFONTS_JAR
LIBREPOSITORY_JAR
LIBFORMULA_JAR
LIBLOADER_JAR
LIBLAYOUT_JAR
LIBBASE_JAR
JFREEREPORT_JAR
FLUTE_JAR
LIBXML_JAR
SAC_JAR
SYSTEM_JFREEREPORT
ENABLE_REPORTBUILDER
SERVLETAPI_JAR
SYSTEM_SERVLETAPI
ENABLE_MEDIAWIKI
SYSTEM_POPPLER
ENABLE_PDFIMPORT
POPPLER_LIBS
POPPLER_CFLAGS
ENABLE_PRESENTER_SCREEN
ENABLE_MINIMIZER
ENABLE_OPENGL
SYSTEM_MESA_HEADERS
ENABLE_GSTREAMER
GSTREAMER_LIBS
GSTREAMER_CFLAGS
ENABLE_CAIRO_CANVAS
SPLIT_OPT_FEATURES
SPLIT_APP_MODULES
ENABLE_QUICKSTART_LIBPNG
LIBPNG_LIBS
LIBPNG_CFLAGS
ENABLE_GTK_PRINT
ENABLE_SYSTRAY_GTK
ENABLE_DBUS
ENABLE_GIO
GIO_LIBS
GIO_CFLAGS
DBUS_LIBS
DBUS_CFLAGS
GTK_PRINT_LIBS
GTK_PRINT_CFLAGS
GTK210_LIBS
GTK210_CFLAGS
GTHREAD_LIBS
GTHREAD_CFLAGS
GTK_LIBS
GTK_CFLAGS
ENABLE_GNOMEVFS
GNOMEVFS_LIBS
GNOMEVFS_CFLAGS
ENABLE_GCONF
GCONF_LIBS
GCONF_CFLAGS
ENABLE_KDE4
ENABLE_KDE
ENABLE_GTK
ENABLE_GTK3
GTK3_LIBS
GTK3_CFLAGS
UNZIP
ZIP
ASM_HOME
ML_EXE
GNUPATCH
GNUCP
PATCH
FLEX
ANCIENT_BISON
BISON
DIRECTXSDK_LIB
DIRECTXSDK_HOME
WINDOWS_SDK_HOME
SYSTEM_LIBC
HAVE_READDIR_R
HAVE_GETOPT
SYSTEM_LIBEXTTEXTCAT_DATA
SYSTEM_LIBEXTTEXTCAT
LIBEXTTEXTCAT_LIBS
LIBEXTTEXTCAT_CFLAGS
SYSTEM_LPSOLVE
SYSTEM_MYTHES
MYTHES_LIBS
MYTHES_CFLAGS
HYPHEN_LIB
SYSTEM_HYPH
SYSTEM_HUNSPELL
HUNSPELL_LIBS
HUNSPELL_CFLAGS
SYSTEM_REDLAND
REDLAND_LIBS
REDLAND_CFLAGS
SYSTEM_OPENSSL
OPENSSL_LIBS
OPENSSL_CFLAGS
NEON_VERSION
SYSTEM_NEON
NEON_LIBS
NEON_CFLAGS
DISABLE_NEON
ENABLE_RANDR
XRANDR_DLOPEN
XRANDR_LIBS
XRANDR_CFLAGS
XAU_LIBS
XLIB
XINC
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
X_CFLAGS
XMKMF
ENABLE_NSPLUGIN
SYSTEM_SAMPLEICC
SAMPLEICC_LIBS
SAMPLEICC_CFLAGS
SYSTEM_GRAPHITE
ENABLE_GRAPHITE
GRAPHITE_LIBS
GRAPHITE_CFLAGS
ICU_RECLASSIFIED_PREPEND_SET_EMPTY
ICU_RECLASSIFIED_CLOSE_PARENTHESIS
ICU_MICRO
ICU_MINOR
ICU_MAJOR
SYSTEM_ICU
SYSTEM_GENCMN
SYSTEM_GENCCODE
SYSTEM_GENBRK
ICUCONFIG
SYSTEM_SANE_HEADER
HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
SYSTEM_MOZILLA_HEADERS
MOZILLA_HEADERS_LIBS
MOZILLA_HEADERS_CFLAGS
SYSTEM_NSS
NSS_LIBS
NSS_CFLAGS
MOZ_LDAP_CFLAGS
MOZ_LIB_XPCOM
MOZ_LIB
MOZ_INC
MOZ_FLAVOUR
SYSTEM_MOZILLA
MOZILLABUILD
BUILD_MOZAB
MOZLIBREQ_LIBS
MOZLIBREQ_CFLAGS
MOZILLA_TOOLKIT
MOZILLA_VERSION
MOZILLAXPCOM_LIBS
MOZILLAXPCOM_CFLAGS
WITH_OPENLDAP
WITH_LDAP
ENABLE_XMLSEC
WITH_MOZILLA
SYSTEM_ODBC_HEADERS
SYSTEM_VIGRA
MDDS_CPPFLAGS
SYSTEM_MDDS
SYSTEM_BOOST
HAVE_BOOST_UNORDERED_MAP
SYSTEM_CURL
CURLCONFIG
CURL_LIBS
CURL_CFLAGS
BUILD_STAX
SAXON_JAR
SYSTEM_SAXON
SERIALIZER_JAR
BSH_JAR
SYSTEM_BSH
POSTGRESQL_LIB
POSTGRESQL_INC
SYSTEM_POSTGRESQL
BUILD_POSTGRESQL_SDBC
PGCONFIG
HSQLDB_JAR
SYSTEM_HSQLDB
SYSTEM_MYSQL_CPPCONN
LIBMYSQL_PATH
MYSQL_DEFINES
MYSQL_LIB
MYSQL_INC
SYSTEM_MYSQL
MYSQLCONFIG
ENABLE_MYSQLC
LUCENE_ANALYZERS_JAR
LUCENE_CORE_JAR
SYSTEM_LUCENE
DB_CPPLIB
DB_LIB
SYSTEM_DB_CFLAGS
SYSTEM_DB
PYTHON_LIBS
PYTHON_CFLAGS
SYSTEM_PYTHON
BZIP2
pkgpyexecdir
pyexecdir
pkgpythondir
pythondir
PYTHON_PLATFORM
PYTHON_EXEC_PREFIX
PYTHON_PREFIX
PYTHON_VERSION
PYTHON
DISABLE_PYTHON
SYSTEM_LIBXML
LIBXML_LIBS
LIBXML_CFLAGS
SYSTEM_LIBXSLT
XSLTPROC
LIBXSLT_LIBS
LIBXSLT_CFLAGS
USE_FT_EMBOLDEN
SYSTEM_LIBWPG
WPG_LIBS
WPG_CFLAGS
SYSTEM_LIBWPS
WPS_LIBS
WPS_CFLAGS
FREETYPE_LIBS
FREETYPE_CFLAGS
SYSTEM_CPPUNIT
CPPUNIT_LIBS
CPPUNIT_CFLAGS
SYSTEM_LIBWPD
WPD_LIBS
WPD_CFLAGS
SYSTEM_LIBCMIS
LIBCMIS_LIBS
LIBCMIS_CFLAGS
SYSTEM_LIBVISIO
VISIO_LIBS
VISIO_CFLAGS
SYSTEM_EXPAT
SYSTEM_JPEG
SYSTEM_ZLIB
SYSTEM_STDLIBS
BUILD_UNOWINREG
MINGWSTRIP
MINGWCXX
GPERF
PKGFORMAT
BUILD_EPM
RPM
PKGMK
DPKG
EPM
BUILD_DMAKE
DMAKE
JAVAIFLAGS
JAVA_TARGET_VER
JAVA_SOURCE_VER
JAVAFLAGS
JDK
JAVA_HOME
AWTLIB
JAVADOC
JAVACISKAFFE
JAVACISGCJ
JAVACOMPILER
JAVAINTERPRETER
WITH_VC_REDIST
JITC_PROCESSOR_TYPE_EXPORT
SOLAR_JAVA
BUILD_VER_STRING
ALLOC
HAVE_POSIX_FALLOCATE
HAVE_GCC_VISIBILITY_BROKEN
HAVE_GCC_VISIBILITY_FEATURE
HAVE_GCC_AVX
HAVE_GCC_NO_LONG_DOUBLE
HAVE_CXX0X
HAVE_THREADSAFE_STATICS
WITH_STLPORT
EXCEPTIONS
MINGW_GXXDLL
MINGW_GCCDLL
MINGW_SHARED_LIBSTDCPP
MINGW_SHARED_GXXLIB
MINGW_SHARED_GCCLIB
MINGW_CLIB_DIR
MINGW_LIB_INCLUDE_PATH
GXX_INCLUDE_PATH
VALGRIND_CFLAGS
ALIGNOF_DOUBLE
ALIGNOF_LONG
ALIGNOF_INT
ALIGNOF_SHORT
SIZEOF_POINTER
SIZEOF_DOUBLE
SIZEOF_LONGLONG
SIZEOF_LONG
SIZEOF_INT
SIZEOF_SHORT
LFS_CFLAGS
WORDS_BIGENDIAN
CXXCPP
ac_ct_CXX
CXXFLAGS
CXX
DOTNET_FRAMEWORK_HOME
CSC_PATH
MIDL_PATH
WINDRES
DLLTOOL
STRIP
RANLIB
OBJDUMP
NM
AR
SHOWINCLUDES_PREFIX
COMEX
LIBMGR_X64_BINARY
LINK_X64_BINARY
CXX_X64_BINARY
CC_X64_BINARY
BUILD_X64
MSPDB_PATH
PERL
WITH_LINKER_HASH_STYLE
HAVE_LD_HASH_STYLE
_cc
STALE_MAKE
GNUMAKE
THES_SYSTEM_DIR
HYPH_SYSTEM_DIR
DICT_SYSTEM_DIR
SYSTEM_DICTS
WITH_MYSPELL_DICTS
ENABLE_RPATH
ENABLE_UGLY
WITH_BINFILTER
DO_FETCH_TARBALLS
TARFILE_LOCATION
ENABLE_FONTCONFIG
FONTCONFIG_LIBS
FONTCONFIG_CFLAGS
PKG_CONFIG
CPP
DISABLE_STRIP
ENABLE_SYMBOLS
ENABLE_LTO
DISABLE_LINKOO
PROEXT
PRODUCT
ENABLE_DEBUG
ENABLE_WERROR
DISABLE_ATL
DISABLE_ACTIVEX
ENABLE_DIRECTX
CL_X64
ENABLE_CRASHDUMP
SOURCEVERSION
UPD
WORKDIR_FOR_BUILD
SOLARLIB_FOR_BUILD
SOLARINC_FOR_BUILD
PATH_FOR_BUILD
OUTDIR_FOR_BUILD
SYSTEM_LIBXSLT_FOR_BUILD
MACOSX_DEPLOYMENT_TARGET_FOR_BUILD
OUTPATH_FOR_BUILD
INPATH_FOR_BUILD
GXX_INCLUDE_PATH_FOR_BUILD
CXX_FOR_BUILD
CC_FOR_BUILD
CPUNAME_FOR_BUILD
CPU_FOR_BUILD
OS_FOR_BUILD
GUIBASE_FOR_BUILD
GUI_FOR_BUILD
COM_FOR_BUILD
HAVE_LD_BSYMBOLIC_FUNCTIONS
MAC_OS_X_VERSION_MAX_ALLOWED
MAC_OS_X_VERSION_MIN_REQUIRED
MACOSX_DEPLOYMENT_TARGET
MACOSX_SDK_PATH
COMPATH
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
GCC_HOME
CCACHE
GNUTAR
BASH
AWK
EGREP
GREP
PTHREAD_LIBS
PTHREAD_CFLAGS
OSVERSION
WITH_MINGW
GAWK
SED
EXEEXT_FOR_BUILD
SRC_ROOT
CROSS_COMPILING
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_extension_integration
enable_ext_barcode
enable_ext_diagram
enable_ext_google_docs
enable_ext_hunart
enable_ext_languagetool
enable_ext_mysql_connector
enable_ext_nlpsolver
enable_ext_ct2n
enable_ext_numbertext
enable_ext_oooblogger
enable_ext_pdfimport
enable_ext_presenter_console
enable_ext_presenter_minimizer
enable_ext_report_builder
enable_ext_scripting_beanshell
enable_ext_scripting_javascript
enable_ext_typo
enable_ext_validator
enable_ext_watch_window
enable_ext_wiki_publisher
enable_mergelibs
enable_graphite
enable_ldap
enable_fetch_external
enable_lockdown
enable_vba
enable_pch
enable_mozilla
enable_epm
enable_activex_component
enable_odk
enable_mathmldtd
enable_evolution2
enable_directx
enable_activex
enable_atl
enable_symbols
enable_strip_solver
enable_werror
enable_debug
enable_dbgutil
enable_linkoo
enable_lto
enable_crashdump
enable_python
enable_gtk
enable_gtk3
enable_systray
enable_split_app_modules
enable_split_opt_features
enable_cairo_canvas
enable_librsvg
enable_opengl
enable_dbus
enable_gconf
enable_gnome_vfs
enable_gio
enable_static_gtk
enable_build_mozilla
enable_xmlsec
enable_kde
enable_kdeab
enable_kde4
enable_unix_qstart_libpng
enable_binfilter
enable_ugly
enable_rpath
enable_randr
enable_randr_link
enable_gstreamer
enable_neon
enable_build_unowinreg
enable_verbose
enable_dependency_tracking
enable_icecream
enable_zenity
enable_nsplugin
enable_ccache
enable_cl_x64
enable_extra_gallery
enable_extra_template
enable_extra_sample
enable_extra_font
enable_oxygenoffice
enable_lomenubar
enable_online_update
enable_release_build
enable_silent_msi
enable_postgresql_sdbc
with_gnu_patch
with_gnu_cp
with_external_tar
with_linked_git
with_openldap
with_vba_package_format
with_theme
with_helppack_integration
with_fonts
with_ppds
with_afms
with_agfa_monotype_fonts
with_epm
with_package_format
with_system_libs
with_system_headers
with_system_jars
with_system_stdlibs
with_system_cairo
with_system_graphite
with_system_nss
with_system_sampleicc
with_mozilla_version
with_mozilla_toolkit
with_myspell_dicts
with_system_dicts
with_external_dict_dir
with_external_hyph_dir
with_external_thes_dir
with_system_zlib
with_system_openssl
with_system_jpeg
with_system_expat
with_system_libcmis
with_system_libvisio
with_system_libwpd
with_system_libwps
with_system_libwpg
with_system_libxml
with_system_icu
with_system_poppler
with_system_db
with_system_lucene
with_system_apache_commons
with_lucene_core_jar
with_lucene_analyzers_jar
with_system_mysql
with_libmysql_path
with_system_mysql_cppconn
with_system_postgresql
with_libpq_path
with_system_hsqldb
with_hsqldb_jar
with_system_beanshell
with_beanshell_jar
with_commons_codec_jar
with_commons_lang_jar
with_commons_httpclient_jar
with_commons_logging_jar
with_system_servlet_api
with_servlet_api_jar
with_system_jfreereport
with_sac_jar
with_libxml_jar
with_flute_jar
with_jfreereport_jar
with_liblayout_jar
with_libloader_jar
with_libformula_jar
with_librepository_jar
with_libfonts_jar
with_libserializer_jar
with_libbase_jar
with_system_saxon
with_saxon_jar
with_system_odbc
with_system_sane
with_system_xextensions_headers
with_system_mesa_headers
with_system_curl
with_system_boost
with_system_mdds
with_system_vigra
with_system_neon
with_system_hunspell
with_system_mythes
with_system_altlinuxhyph
with_system_lpsolve
with_system_libexttextcat
with_system_cppunit
with_system_redland
with_system_mozilla
with_system_mozilla_headers
with_system_gettext
with_system_libpng
with_linker_hash_style
with_stlport
with_jdk_home
with_gxx_include_path
with_help
with_java
with_java_target_version
with_jvm_path
with_ant_home
with_junit
with_perl_home
with_cl_home
with_mspdb_path
with_midl_path
with_csc_path
with_dotnet_framework_home
with_windows_sdk_home
with_directx_home
with_mozilla_build
with_local_solver
with_lang
with_branding
with_intro_bitmap
with_intro_progressbar_color
with_intro_progressbar_size
with_intro_progressbar_position
with_intro_progressbar_frame_color
with_about_bitmap
with_startcenter_left_bitmap
with_startcenter_right_bitmap
with_startcenter_rtl_left_bitmap
with_startcenter_rtl_right_bitmap
with_startcenter_space_bitmap
with_vendor
with_unix_wrapper
with_compat_oowrappers
with_asm_home
with_os_version
with_mingw_cross_compiler
with_build_version
with_alloc
with_sun_templates
with_num_cpus
with_max_jobs
with_macosx_sdk
with_macosx_version_min_required
with_macosx_version_max_allowed
enable_largefile
with_x
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
PKG_CONFIG
FONTCONFIG_CFLAGS
FONTCONFIG_LIBS
CXX
CXXFLAGS
CCC
CXXCPP
VISIO_CFLAGS
VISIO_LIBS
LIBCMIS_CFLAGS
LIBCMIS_LIBS
WPD_CFLAGS
WPD_LIBS
CPPUNIT_CFLAGS
CPPUNIT_LIBS
FREETYPE_CFLAGS
FREETYPE_LIBS
WPS_CFLAGS
WPS_LIBS
WPG_CFLAGS
WPG_LIBS
LIBXSLT_CFLAGS
LIBXSLT_LIBS
LIBXML_CFLAGS
LIBXML_LIBS
CURL_CFLAGS
CURL_LIBS
MOZILLAXPCOM_CFLAGS
MOZILLAXPCOM_LIBS
MOZLIBREQ_CFLAGS
MOZLIBREQ_LIBS
NSS_CFLAGS
NSS_LIBS
MOZILLA_HEADERS_CFLAGS
MOZILLA_HEADERS_LIBS
GRAPHITE_CFLAGS
GRAPHITE_LIBS
SAMPLEICC_CFLAGS
SAMPLEICC_LIBS
XMKMF
XRANDR_CFLAGS
XRANDR_LIBS
NEON_CFLAGS
NEON_LIBS
OPENSSL_CFLAGS
OPENSSL_LIBS
REDLAND_CFLAGS
REDLAND_LIBS
HUNSPELL_CFLAGS
HUNSPELL_LIBS
MYTHES_CFLAGS
MYTHES_LIBS
LIBEXTTEXTCAT_CFLAGS
LIBEXTTEXTCAT_LIBS
GTK3_CFLAGS
GTK3_LIBS
GCONF_CFLAGS
GCONF_LIBS
GNOMEVFS_CFLAGS
GNOMEVFS_LIBS
GTK_CFLAGS
GTK_LIBS
GTHREAD_CFLAGS
GTHREAD_LIBS
GTK210_CFLAGS
GTK210_LIBS
GTK_PRINT_CFLAGS
GTK_PRINT_LIBS
DBUS_CFLAGS
DBUS_LIBS
GIO_CFLAGS
GIO_LIBS
LIBPNG_CFLAGS
LIBPNG_LIBS
GSTREAMER_CFLAGS
GSTREAMER_LIBS
POPPLER_CFLAGS
POPPLER_LIBS
KDE_GLIB_CFLAGS
KDE_GLIB_LIBS
GOBJECT_CFLAGS
GOBJECT_LIBS
DBUSMENUGTK_CFLAGS
DBUSMENUGTK_LIBS
LIBRSVG_CFLAGS
LIBRSVG_LIBS
CAIRO_CFLAGS
CAIRO_LIBS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
   { (exit 1); exit 1; }; }
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
   { (exit 1); exit 1; }; } ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; }
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
   { (exit 1); exit 1; }; }
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
   { (exit 1); exit 1; }; }


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
   { (exit 1); exit 1; }; }
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures LibreOffice 3.5 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libreoffice]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

X features:
  --x-includes=DIR    X include files are in DIR
  --x-libraries=DIR   X library files are in DIR

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of LibreOffice 3.5:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-extension-integration
                          Disable integration of the builded extensions to the
                          installer of the product. Use this switch to disable
                          the integration.

  --enable-ext-barcode    Enable the Barcode extension.

  --enable-ext-diagram    Enable the SmART Gallery (Diagram) extension.

  --enable-ext-google-docs
                          Enable the Google Documents extension.

  --enable-ext-hunart     Enable the Hungarian Cross-reference Toolbar
                          extension.

  --enable-ext-languagetool
                          Enable the LanguageTool extension.

  --enable-ext-mysql-connector
                          Enable the build of the MySQL Connector extension.

  --enable-ext-nlpsolver  Enable the NLPSolver extension.

  --enable-ext-ct2n       Enable the ConvertTextToNumber extension.

  --enable-ext-numbertext Enable the Numbertext extension.

  --enable-ext-oooblogger Enable the OOo Blogger extension.

  --disable-ext-pdfimport Disable the PDF Import extension.

  --disable-ext-presenter-console
                          Disable the Presenter Console extension.

  --disable-ext-presenter-minimizer
                          Disable the Presentation Minimizer extension.

  --disable-ext-report-builder
                          Disable the Report Builder extension.

  --enable-ext-scripting-beanshell
                          Enable support for scripts in BeanShell.

  --enable-ext-scripting-javascript
                          Enable support for scripts in JavaScript.

  --enable-ext-typo       Enable the Typography Toolbar extension.

  --enable-ext-validator  Enable the Validator extension.

  --enable-ext-watch-window
                          Enable the Watch Window extension to Calc.

  --enable-ext-wiki-publisher
                          Enable the Wiki Publisher extension.

  --enable-mergelibs      Enables linking of big merged library used for
                          better performance.

  --enable-graphite       Enables the compilation of Graphite smart font
                          rendering.

  --disable-ldap          Disables the use of LDAP backend via
                          Netscape/Mozilla or OpenLDAP LDAP SDK

  --disable-fetch-external
                          Disables fetching external tarballs from web
                          sources.

  --disable-lockdown      Disables the gconf integration work in LibreOffice.
  --disable-vba           Disables the vba compatibility feature.

  --enable-pch            DEPRECATED : is ignored

  --disable-mozilla       LibreOffice usually includes a strangely hacked up
                          Mozilla binary for your platform, to build without
                          this version, use this option.

  --enable-epm            LibreOffice includes self-packaging code, that
                          requires epm, however epm is useless for large scale
                          package building.

  --disable-activex-component
                          Remove support for ActiveX embedding of LibreOffice.

  --disable-odk           LibreOffice includes an ODK, office development kit
                          which some packagers may wish to build without.

  --disable-mathmldtd     Disable mathmldtd (useful for distributions that
                          want to avoid packaging it).

  --enable-evolution2     Allows the built-in evolution 2 addressbook
                          connectivity build to be enabled.

  --disable-directx       Remove DirectX implementation for the new XCanvas
                          interface. The DirectX support requires more stuff
                          installed on Windows to compile. (DirectX SDK, GDI+
                          libs)

  --disable-activex       Disable the use of ActiveX for a Windows build. This
                          switch is mandatory when using VC++ 2008 Express.

  --disable-atl           Disable the use of ATL for a Windows build.

                          This switch is mandatory when using VC++ 2008 Express.

  --enable-symbols        Include debugging symbols in output. WARNING - a
                          complete build needs 8 Gb of space and takes much
                          longer (enables -g compiler flag).

                          Enabling symbols disables the stripping of the solver
                          (--disable-strip-solver).

  --disable-strip-solver  Disable the stripping of the solver. By default the
                          solver is stripped unless a build with debugging
                          symbols (--enable-symbols) is requested.

                          This switch allows to override this setting.

  --enable-werror         Turn warnings to errors. (Has no effect in modules
                          where the treating of warnings as errors is disabled
                          explicitly.)
  --enable-debug          Include debugging symbols from --enable-symbols plus
                          extra debugging code. Extra large build! (enables -g
                          compiler flag and dmake debug=true) If you need even
                          more verbose output, build a module with "build --
                          debug=true dbglevel=2".
  --enable-dbgutil        Include additional debugging utilities, such as
                          assertions, object counting, etc. Larger build.
                          Independent from --enable-debug
  --disable-linkoo        Disable linkoo for the smoketest installation.
  --enable-lto            Enable link-time optimization. Suitable for product
                          builds. Building takes longer but libraries are
                          optimized for speed. (possible only with gcc-4.5 or
                          later, better to use gcc-4.6 and 'gold' as linker)
  --enable-crashdump      Enable the crashdump feature.
  --enable-python=<no/auto/system/internal>
                          Enables or disables Python support at run-time and
                          build-time. Also specifies what Python to use.
                          'auto' is the default. Note that Python can be
                          disabled with --disable-python or --enable-python=no
                          only if no translations are required.
  --disable-gtk           Determines whether to use Gtk+ vclplug on platforms
                          where Gtk+ is available.
  --disable-gtk3          Determines whether to use Gtk+ 3.0 vclplug on
                          platforms where Gtk+ 3.0 is available.
  --disable-systray       Determines whether to build the systray
                          quickstarter.
  --enable-split-app-modules
                          Split file lists for app modules, e.g. base, calc.
                          Has effect only with make distro-pack-install
  --enable-split-opt-features
                          Split file lists for some optional features, .e.g.
                          pyuno, testtool. Has effect only with make
                          distro-pack-install
  --disable-cairo-canvas  Determines whether to build the Cairo canvas on
                          platforms where Cairo is available.

  --enable-librsvg=<no/auto/system/internal>
                          Enables or disables use of librsvg to render SVG at
                          run-time. Also specificed what librsvg to use.
                          'auto' is the default.
  --disable-opengl        Determines whether to build the OpenGL 3D slide
                          transitions component.
  --enable-dbus           Determines whether to enable presentation mode
                          screensaver control under GNOME via DBUS.
  --disable-gconf         Determines whether to use the GConf support.
  --disable-gnome-vfs     Determines whether to use the Gnome Virtual Filing
                          System on platforms where that VFS is available.
  --enable-gio            Determines whether to use the GIO support.
  --enable-static-gtk     Modules that are linked against GTK+ libraries use
                          the static libraries instead of the dynamic ones.
                          (Enables -Bstatic linker flag for GTK+ libraries.)
  --disable-build-mozilla Use this option if you do not want to build the
                          Mozilla components from the Mozilla source code but
                          take precompiled zips.
  --disable-xmlsec        Whether to enable XMLsec for open document signing.
  --enable-kde            Determines whether to use Qt3/KDE3 vclplug on
                          platforms where Qt3 and KDE3 are available.
  --disable-kdeab         Disable the KDE3 address book support.
  --enable-kde4           Determines whether to use Qt4/KDE4 vclplug on
                          platforms where Qt4 and KDE4 are available. May be
                          used with --enable-kde if you want to support both
                          KDE3 and KDE4.
  --disable-unix-qstart-libpng
                          On UNIX systems, we have a faster splash app, that
                          can use libpng to render its splash, if we can
                          safely link to the system libpng then enabling this
                          is a good idea (ie. for Linux Distro packaging).
  --enable-binfilter      Enable legacy binary file formats filters build.
  --enable-ugly           Enables ugly pieces of functionality.
  --disable-rpath         Disable the use of relative paths in shared
                          libraries.
  --disable-randr         Disable RandR support in the vcl project.
  --disable-randr-link    Disable linking with libXrandr, instead dynamically
                          open it at runtime.
  --disable-gstreamer     Disable building the gstreamer avmedia backend.
  --disable-neon          Disable neon and the compilation of webdav binding.
  --enable-build-unowinreg
                          Do not use the prebuilt unowinreg.dll. Build it
                          instead. The MinGW C++ compiler is needed on Linux.

                          Usage:     --enable-build-unowinreg

  --enable-verbose        Increase build verbosity.
  --disable-verbose       Decrease build verbosity.
  --enable-dependency-tracking
                          Do not reject slow dependency extractors.
  --disable-dependency-tracking
                          Disables generation of dependency information.
                          Speed up one-time builds.
  --enable-icecream       Use the 'icecream' distributed compiling tool to
                          speedup the compilation. It defaults to
                          /opt/icecream for the location of the icecream
                          gcc/g++ wrappers, you can override that using
                          --with-gcc-home=/the/path switch.
  --disable-zenity        Do not display a build icon in the notification area
                          (on unix) during build.
  --disable-nsplugin      Do not build nsplugin extension for browser
                          embedding.

  --disable-ccache        Do not try to use ccache automatically. By default,
                          we will try to detect if ccache is available; in
                          that case if CC/CXX are not yet set, and
                          --enable-icecream is not given, we attempt to use
                          ccache. --disable-ccache disables ccache completely.
  --enable-cl-x64         Build a 64-bit LibreOffice using the Microsoft C/C++
                          x64 compiler.
  --enable-extra-gallery  Add extra gallery content.
  --enable-extra-template Add extra template content.
  --enable-extra-sample   Add extra sample content.
  --enable-extra-font     Add extra font content.
  --enable-oxygenoffice   Download OxygenOffice branding and set custom
                          settings.
  --enable-lomenubar      Enable global menu support.
  --enable-online-update  Enable the online update service that will check for
                          new versions of LibreOffice. By default, it is on on
                          Windows and Mac, and off on Linux.
  --enable-release-build  Enable release build. See
                          http://wiki.documentfoundation.org/DevBuild
  --enable-silent-msi     Enable MSI with LIMITUI=1 (silent install).
  --disable-postgresql-sdbc
                          Disable the build of the PostgreSQL-SDBC driver.

  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gnu-patch        Specify location of GNU patch on Solaris or FreeBSD.
  --with-gnu-cp           Specify location of GNU cp on Solaris or FreeBSD.
  --with-external-tar=<TARFILE PATH>
                          Specify path to tarfiles manually.
  --with-linked-git=<OTHER_CLONE_DIR>
                          Specify another checkout's clonedir to re-use. This
                          makes use of git-new-workdir, and saves a lot of
                          diskspace when having multiple trees side-by-side.
  --with-openldap         Enables the use of the OpenLDAP LDAP SDK instead of
                          the Netscape/Mozilla one.
  --with-vba-package-format
                          Specify package format for vba compatibility api.
                          Specifying "builtin" means the api component and
                          associated type library are part of the installation
                          set. Specifying "extn" creates an uno extension that
                          is part of the installation set (located in the
                          program directory) that MUST be optionly registered
                          using either the unopkg executeable or the extension
                          manager gui.

                          Note: "builtin" is the default, "extn" can cause
                          problems.

                          Usage:     --with-vba-package-format="builtin" or
                                     --with-vba-package-format="extn"

  --with-theme="theme1 theme2..."
                          Choose which themes to include. By default those
                          themes with an '*' are included. Possible choices:
                          *default, *crystal, *hicontrast, *oxygen, *tango,
                          classic, industrial, human.

  --without-helppack-integration      It will not integrate the helppacks to the installer
                          of the product.
                          Please use this switch to use the online help or separate help packages.
  --without-fonts         LibreOffice includes some third-party fonts to
                          provide a reliable basis for help content,
                          templates, samples, etc. When these fonts are
                          already known to be available on the system then you
                          should use this option.
  --without-ppds          Removes Postscript Printer definition files from
                          LibreOffice installation set, for people building
                          for specific distributions where PPDs are known to
                          be already available (every recent distro with CUPS
                          backend).
  --without-afms          Removes bitmap font files from LibreOffice
                          installation set, for people building for specific
                          distributions where AFM files or TrueType Fonts are
                          known to be available.
  --with-agfa-monotype-fonts
                          This switch should only be enabled for those who
                          have the right to use or distribute the proprietary
                          Agfa Monotype fonts.

  --with-epm              Decides which epm to use. Default is to use the one
                          from the system if one is built. When either this is
                          not there or you say =internal epm will be built.
  --with-package-format   Specify package format(s) for LibreOffice
                          installsets. Default is the "normal" one of the
                          OS/Distribution. Possible values: aix, bsd, deb,
                          inst, tardist, osx, pkg, rpm, setld, native,
                          portable, archive, dmg, installed, msi. Example:
                          --with-package-format="deb dmg"
  --with-system-libs      Use libraries already on system -- enables all
                          --with-system-* flags except mozilla.
  --with-system-headers   Use headers already on system -- enables all
                          --with-system-* flags for external packages whose
                          headers are the only entities used i.e.
                          boost/vigra/odbc/sane-header(s).
  --without-system-jars   When building with --with-system-libs, also the
                          needed jars are expected on the system. Use this to
                          disable that (except for the db case where
                          --with-system-db *has to* imply using the db.jar
                          from there, too).
  --without-system-stdlibs
                          Bundle the used libstdc++/libgcc_s into the
                          installation set.
  --with-system-cairo     Use Cairo libraries already on system.
  --with-system-graphite  Use graphite library already installed on system.
  --with-system-nss       Use NSS/nspr libraries already on system.
  --with-system-sampleicc Use SampleICC libraries already on system (used only
                          during build).
  --with-mozilla-version  Choose which version of Mozilla to use while
                          building Mozilla. (default=1.7.5) Note that not all
                          versions are supported.
  --with-mozilla-toolkit  Choose which GUI toolkit to use while building
                          Mozilla components. (default=gtk2)
  --without-myspell-dicts Removes myspell dictionaries from LibreOffice
                          installation set, for people building for specific
                          distributions where the myspell dictionaries are
                          installed from other sources.
  --with-system-dicts     Use dictionaries from system paths- Specify them via
                          --with-{dict,hyph,thes}-path=/path if you want to
                          override the default ones.
  --with-external-dict-dir
                          Specify external dictionary dir.
  --with-external-hyph-dir
                          Specify external hyphenation pattern dir.
  --with-external-thes-dir
                          Specify external thesaurus dir.
  --with-system-zlib      Use zlib already on system.
  --with-system-openssl   Use OpenSSL already on system.
  --with-system-jpeg      Use jpeg already on system.
  --with-system-expat     Use expat already on system.
  --with-system-libcmis   Use libcmis already on system.
  --with-system-libvisio  Use libvisio already on system.
  --with-system-libwpd    Use libwpd already on system.
  --with-system-libwps    Use libwps already on system.
  --with-system-libwpg    Use libwpg already on system.
  --with-system-libxml    Use libxml/libxslt already on system.
  --with-system-icu       Use icu already on system.
  --with-system-poppler   Use system poppler. (only needed for pdfimport
                          extension)
  --with-system-db        Use Berkeley db already on system.
  --with-system-lucene    Use Lucene already on system.
  --with-system-apache-commons
                          Use Apache commons libraries already on system.
  --with-lucene-core-jar=JARFILE
                          Specify path to jarfile manually.
  --with-lucene-analyzers-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-mysql     Use MySQL libraries already on system, for building
                          the MySQL Connector/LibreOffice extension. If the
                          the mysql_config executable is not in PATH, use
                          MYSQLCONFIG to point to it.
  --with-libmysql-path    Use Connector/C (libmysql) installation for building
                          the MySQL Connector/LibreOffice extension.

                          Usage:     --with-libmysql-path=<absolute path to
                                                  your Connector/C installation>

  --with-system-mysql-cppconn
                          Use MySQL C++ Connector libraries already on system.
  --with-system-postgresql
                          Use PostgreSQL libraries already on system, for
                          building the PostgreSQL-SDBC driver. If pg_config is
                          not in PATH, use PGCONFIG to point to it.
  --with-libpq-path       Use this PostgreSQL C interface (libpq) installation
                          for building the PostgreSQL-SDBC extension.

                          Usage:     --with-libpq-path=<absolute path to
                                                  your libq installation>

  --with-system-hsqldb    Use hsqldb already on system.
  --with-hsqldb-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-beanshell Use beanshell already on system.
  --with-beanshell-jar=JARFILE
                          Specify path to jarfile manually.
  --with-commons-codec-jar=JARFILE
                          Specify path to jarfile manually.
  --with-commons-lang-jar=JARFILE
                          Specify path to jarfile manually.
  --with-commons-httpclient-jar=JARFILE
                          Specify path to jarfile manually.
  --with-commons-logging-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-servlet-api
                          Use servlet-api already on system.
  --with-servlet-api-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-jfreereport
                          Use JFreeReport already on system.
  --with-sac-jar=JARFILE  Specify path to jarfile manually.
  --with-libxml-jar=JARFILE
                          Specify path to jarfile manually.
  --with-flute-jar=JARFILE
                          Specify path to jarfile manually.
  --with-jfreereport-jar=JARFILE
                          Specify path to jarfile manually.
  --with-liblayout-jar=JARFILE
                          Specify path to jarfile manually.
  --with-libloader-jar=JARFILE
                          Specify path to jarfile manually.
  --with-libformula-jar=JARFILE
                          Specify path to jarfile manually.
  --with-librepository-jar=JARFILE
                          Specify path to jarfile manually.
  --with-libfonts-jar=JARFILE
                          Specify path to jarfile manually.
  --with-libserializer-jar=JARFILE
                          Specify path to jarfile manually.
  --with-libbase-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-saxon     Use saxon already on system.
  --with-saxon-jar=JARFILE
                          Specify path to jarfile manually.
  --with-system-odbc      Use the odbc headers already on system.
  --with-system-sane      Use sane.h already on system.
  --with-system-xextensions-headers
                          To build without system X11 extensions headers, use
                          --without-system-xextensions-headers. This is
                          possibly useful on legacy unix systems which ship
                          with the libs but without the headers.
  --with-system-mesa-headers
                          Use Mesa headers already on system.
  --with-system-curl      Use curl already on system.
  --with-system-boost     Use boost already on system.
  --with-system-mdds      Use mdds already on system.
  --with-system-vigra     Use vigra already on system.
  --with-system-neon      Use neon already on system.
  --with-system-hunspell  Use libhunspell already on system.
  --with-system-mythes    Use mythes already on system.
  --with-system-altlinuxhyph
                          Use ALTLinuxhyph already on system.
  --with-system-lpsolve   Use lpsolve already on system.
  --with-system-libexttextcat
                          Use libexttextcat already on system.
  --with-system-cppunit   Use cppunit already on system.
  --with-system-redland   Use redland library already on system.
  --with-system-mozilla   Use Mozilla already on system. Note that some
                          components cannot be built against a contemporary
                          Mozilla. The flavour used can be specified by
                          --with-system-mozilla=<flavour>. Supported are:
                          libxul (default), xulrunner, firefox, seamonkey,
                          mozilla, iceape.
  --with-system-mozilla-headers
                          Use mozilla headers provided by system instead of
                          bundled ones. Used in nsplugin
  --with-system-gettext   Use gettext runtime library already on system.
  --with-system-libpng    Use libpng already on system.
  --with-linker-hash-style
                          Use linker with --hash-style=<style> when linking
                          shared objects. Possible values: "sysv", "gnu",
                          "both". The default value is "gnu" if supported on
                          the build system, and "sysv" otherwise.
  --with-stlport          Build the STLPort library for compatibility with old
                          extensions for architectures where STLPort used to
                          be used.
  --with-jdk-home         If you have installed JDK 1.3 or later on your
                          system please supply the path here. Note that this
                          is not the location of the java command but the
                          location of the entire distribution.

                          Usage:     --with-jdk-home=<absolute path to JDK home>

  --with-gxx-include-path If you want to override the autodetected g++ include
                          path.

                          Usage:     --with-gxx-include-path=<absolute path to
                                                                g++ include dir>

  --with-help             Enable the build of help. To build without help, use
                          --without-help.
  --with-java             Specify the name of the Java interpreter command.
                          Typically "java" which is the default. To build
                          without support for Java components, applets,
                          accessibility or the XML filters written in Java,
                          use --without-java or --with-java=no.

                          Usage:     --with-java==<java command>
                                     --without-java

  --with-java-target-version
                          Generate class files that will work on JVMs with the
                          specified version. For example, use
                          --with-java-target-version=1.4 to make sure that the
                          application will work with JVM 1.4 even when
                          compiled with JDK 1.5.

                          This option is ignored when you compile with gcj/gij.

                          Usage:     --with-java-target-version=<jvm version>

  --with-jvm-path         Use a specific JVM search path at runtime.

                          Usage:     --with-jvm-path=<absolute path to parent of jvm home>

                          e. g.: --with-jvm-path=/usr/lib/
                                 to find JRE/JDK in /usr/lib/jvm/

  --with-ant-home         If you have installed Jakarta Ant on your system,
                          please supply the path here. Note that this is not
                          the location of the Ant binary but the location of
                          the entire distribution.

                          Usage:     --with-ant-home=<absolute path to Ant home>

  --with-junit            Specifies the JUnit 4 jar file to use for
                          JUnit-based tests. --without-junit disables those
                          tests. Not relevant in the --without-java case.

                          Usage:     --with-junit=<absolute path to JUnit 4 jar>

  --with-perl-home        If you have installed Perl 5 Distribution, on your
                          system, please supply the path here. Note that this
                          is not the location of the Perl binary but the
                          location of the entire distribution.

                          Usage:     --with-perl-home=<abs. path to Perl 5 home>

  --with-cl-home          For Windows NT users, please supply the path for the
                          Microsoft C/C++ compiler. Note that this is not the
                          location of the compiler binary but the location of
                          the entire distribution.

                          Usage:     --with-cl-home=<absolute path to Microsoft
                                                            C/C++ compiler home>

  --with-mspdb-path       For Microsoft C/C++ compiler users, please supply
                          the path pointing to the mspdb80.dll (if using
                          Visual Studio 2008) or mspdb100.dll (if using Visual
                          Studio 2010).

                          Usage:     --with-mspdb-path=<path to
                                                       mspdb80.dll/mspdb100.dll>

  --with-midl-path        For Microsoft compiler users, please supply the path
                          pointing to the midl.exe.

                          Usage:     --with-midl-path=<abs. path to midl.exe>

  --with-csc-path         For Windows builds, please supply the path pointing
                          to the csc.exe. Usually found automatically when
                          building on Windows.

                          Usage:     --with-csc-path=<abs. path to csc.exe>

  --with-dotnet-framework-home
                          For Microsoft compiler users, please supply the path
                          pointing to lib/mscoree.lib, usually something like:
                          "/cygdrive/c/Program Files/Windows
                          SDKs/Windows/v7.0"

                          Note that in most cases it will be automatically
                          found, though.

                          Usage:     --with-dotnet-framework-home=<absolute path to .NET
                                                          Framework>

  --with-windows-sdk-home For Windows builds, please supply the path to the
                          Windows SDK. Usually found automatically when
                          building on Windows.

                          Usage:     --with-windows-sdk-home=<absolute path to Windows SDK>

  --with-directx-home     For Windows users, please supply the path to the
                          Microsoft DirectX SDK.

                          Usage:     --with-directx-home=<absolute path to
                                                          Microsoft DirectX SDK>

  --with-mozilla-build    For Windows users, please supply the path to the
                          Mozilla build tools.

                          Usage:     --with-mozilla-build=<absolute path to
                                                          Mozilla build tools>

                          At the moment of this writing, an installer for the
                          mozilla build tools can be obtained from http://ftp.
                          mozilla.org/pub/mozilla.org/mozilla/libraries/win32.

  --with-local-solver     If you have solver in a location other than
                          ./solver, please supply the path here.

                          Usage:     --with-local-solver=<abs. path to solver>

  --with-lang             Use this option to build LibreOffice with additional
                          language support. English (US) is always included by
                          default. Separate multiple languages with space. For
                          all languages, use --with-lang=ALL.

                          Usage:     --with-lang="es sw tu cs sk"

  --with-branding        Use given path to retrieve all branding images.
                          Expects /path/intro.png ...
                          /path/backing_rtl_right.png to be there. Individual
                          images can be overridden via --with-intro-bitmap ...
                          --with-startcenter-rtl-left-bitmap switches.

                          Usage:     --with-branding=/path/to/images

  --with-intro-bitmap    Prefer the specified intro bitmap over the
                          the default one.

                          Usage:     --with-intro-bitmap=/path/my_ooo_intro.png

  --with-intro-progressbar-color    Set color of progress bar on intro screen.
                                     Comma separated RGB values in decimal format.

                          Usage: --with-intro-progressbar-color=126,170,23

  --with-intro-progressbar-size     Set size of progress bar on intro screen.
                                     Comma separated values in decimal format.

                          Usage: --with-intro-progressbar-size=319,10

  --with-intro-progressbar-position Set position of progress bar on intro screen.
                                     Comma separated values in decimal format.

                          Usage: --with-intro-progressbar-position=164,225

  --with-intro-progressbar-frame-color    Set color of progress bar frame on intro screen.
                                           Comma separated RGB values in decimal format.

                          Usage: --with-intro-progressbar-frame-color=207,208,211

  --with-about-bitmap    Similarly to --with-intro-bitmap, this allows
                          specification of bitmap for the About box.

                          Usage:     --with-about-bitmap=/path/my_ooo_about.png

  --with-startcenter-left-bitmap    Similarly to --with-intro-bitmap, this allows
                                     specification of bitmap for the Start center.

                          Usage: --with-startcenter-left-bitmap=/path/my_backing_left.png

  --with-startcenter-right-bitmap    Similarly to --with-intro-bitmap, this allows
                                      specification of bitmap for the Start center.

                          Usage: --with-startcenter-right-bitmap=/path/my_backing_right.png

  --with-startcenter-rtl-left-bitmap    Similarly to --with-intro-bitmap, this allows
                                         specification of bitmap for the Start center.

                          Usage: --with-startcenter-rtl-left-bitmap=/path/my_backing_rtl_left.png

  --with-startcenter-rtl-right-bitmap    Similarly to --with-intro-bitmap, this allows
                                          specification of bitmap for the Start center.

                          Usage: --with-startcenter-rtl-right-bitmap=/path/my_backing_rtl_right.png

  --with-startcenter-space-bitmap    Similarly to --with-intro-bitmap, this allows
                                      specification of bitmap for the Start center.

                          Usage: --with-startcenter-space-bitmap=/path/my_backing_space.png

  --with-vendor           Set vendor of the build.

                          Usage:     --with-vendor="John the Builder"

  --with-unix-wrapper     Redefines the name of the UNIX wrapper that will be
                          used in the desktop files and in the
                          desktop-integration RPMs.

                          Usage:     --with-unix-wrapper=ooffice

  --with-compat-oowrappers
                          Install oo* wrappers in parallel with lo* ones to
                          keep backward compatibility. Has effect only with
                          make distro-pack-install
  --with-asm-home         For Windows, please supply the path for the ml.exe
                          or ml64.exe assembler.

                          Usage:     --with-asm-home=<path to assembler directory>

  --with-os-version       For FreeBSD users, use this option option to
                          override the detected OSVERSION.

                          Usage:     --with-os-version=<OSVERSION>

  --with-mingw-cross-compiler
                          Specify the MinGW cross-compiler to use.

                          Usage:     --with-mingw-cross-compiler=<mingw32-g++ command>

                          When building on the ODK on Unix and building unowinreg.dll,
                          specify the MinGW C++ cross-compiler.

  --with-build-version    Allows the builder to add a custom version tag that
                          will appear in the Help/About box for QA purposes.

                          Usage:     --with-build-version="Built by Jim"

  --with-alloc            Define which allocator to build with (choices are
                          oo, system, tcmalloc, jemalloc). Note that on
                          FreeBSD/NetBSD system==jemalloc
  --with-sun-templates    Integrate Sun template packages.
  --with-num-cpus         Number of build processes/cpus to use (number of
                          projects that will build at the same time).
                          Multi-process/multi-cpu builds can save a lot of
                          time on multi-cpu machines. Defaults to the number
                          of CPUs on the machine.
  --with-max-jobs         Maximum number of jobs that will be issued at the
                          same time per dmake or gbuild subproject. The real
                          number of the jobs is affected by the
                          --with-num-cpus too, it can get up to CPUS*max_jobs.
                          Defaults to 1, unless you configure
                          --enable-icecream - then to 10.
  --with-macosx-sdk       Use a specific SDK for building.

                          Usage:     --with-macosx-sdk=<version>

                          e. g.: --with-macosx-sdk=10.4

                          there are 3 options to controle the MacOSX build:
                          --with-macosx-sdk (refered as 'sdl' below)
                          --with-macosx-version-min-required (refered as 'min' below)
                          --with-macosx-version-max-allowed (refered as 'max' below)

                          the connection between these value and the default they take is as follow:
                          ( ? means not specified on the command line, constraint: x <= y <= z)

                          ==========================================
                           command line      || config result
                          ==========================================
                          min  | max  | sdk  || min  | max  | sdk  |
                          ?    | ?    | ?    || 10.4 | 10.4 | 10.4 |
                          ?    | ?    | 10.x || 10.4 | 10.4 | 10.x |
                          ?    | 10.x | ?    || 10.4 | 10.x | 10.x |
                          ?    | 10.x | 10.y || 10.4 | 10.x | 10.y |
                          10.x | ?    | ?    || 10.x | 10.x | 10.x |
                          10.x | ?    | 10.y || 10.x | 10.x | 10.y |
                          10.x | 10.y | ?    || 10.x | 10.y | 10.y |
                          10.x | 10.y | 10.z || 10.x | 10.y | 10.z |


                          see: http://developer.apple.com/library/mac/#technotes/tn2064/_index.html
                          for a detailled technical explanation of these variables

                          Note: MACOSX_DEPLOYMENT_TARGET will be set to the value of 'min'.


  --with-macosx-version-min-required
                          set the minimum OS version needed to run the built
                          LibreOffice

                          Usage:     --with-macosx-version-min-required=<version>

                          e. g.: --with-macos-version-min-required=10.4
                          see --with-macosx-sdk for more info

  --with-macosx-version-max-allowed
                          set the maximum allowed OS version the LibreOffice
                          compilation can use APIs from

                          Usage:     --with-macosx-version-max-allowed=<version>

                          e. g.: --with-macos-version-max-allowed=10.6
                          see --with-macosx-sdk for more info

  --with-x                use the X Window System

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  FONTCONFIG_CFLAGS
              C compiler flags for FONTCONFIG, overriding pkg-config
  FONTCONFIG_LIBS
              linker flags for FONTCONFIG, overriding pkg-config
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  VISIO_CFLAGS
              C compiler flags for VISIO, overriding pkg-config
  VISIO_LIBS  linker flags for VISIO, overriding pkg-config
  LIBCMIS_CFLAGS
              C compiler flags for LIBCMIS, overriding pkg-config
  LIBCMIS_LIBS
              linker flags for LIBCMIS, overriding pkg-config
  WPD_CFLAGS  C compiler flags for WPD, overriding pkg-config
  WPD_LIBS    linker flags for WPD, overriding pkg-config
  CPPUNIT_CFLAGS
              C compiler flags for CPPUNIT, overriding pkg-config
  CPPUNIT_LIBS
              linker flags for CPPUNIT, overriding pkg-config
  FREETYPE_CFLAGS
              C compiler flags for FREETYPE, overriding pkg-config
  FREETYPE_LIBS
              linker flags for FREETYPE, overriding pkg-config
  WPS_CFLAGS  C compiler flags for WPS, overriding pkg-config
  WPS_LIBS    linker flags for WPS, overriding pkg-config
  WPG_CFLAGS  C compiler flags for WPG, overriding pkg-config
  WPG_LIBS    linker flags for WPG, overriding pkg-config
  LIBXSLT_CFLAGS
              C compiler flags for LIBXSLT, overriding pkg-config
  LIBXSLT_LIBS
              linker flags for LIBXSLT, overriding pkg-config
  LIBXML_CFLAGS
              C compiler flags for LIBXML, overriding pkg-config
  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
  CURL_LIBS   linker flags for CURL, overriding pkg-config
  MOZILLAXPCOM_CFLAGS
              C compiler flags for MOZILLAXPCOM, overriding pkg-config
  MOZILLAXPCOM_LIBS
              linker flags for MOZILLAXPCOM, overriding pkg-config
  MOZLIBREQ_CFLAGS
              C compiler flags for MOZLIBREQ, overriding pkg-config
  MOZLIBREQ_LIBS
              linker flags for MOZLIBREQ, overriding pkg-config
  NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
  NSS_LIBS    linker flags for NSS, overriding pkg-config
  MOZILLA_HEADERS_CFLAGS
              C compiler flags for MOZILLA_HEADERS, overriding pkg-config
  MOZILLA_HEADERS_LIBS
              linker flags for MOZILLA_HEADERS, overriding pkg-config
  GRAPHITE_CFLAGS
              C compiler flags for GRAPHITE, overriding pkg-config
  GRAPHITE_LIBS
              linker flags for GRAPHITE, overriding pkg-config
  SAMPLEICC_CFLAGS
              C compiler flags for SAMPLEICC, overriding pkg-config
  SAMPLEICC_LIBS
              linker flags for SAMPLEICC, overriding pkg-config
  XMKMF       Path to xmkmf, Makefile generator for X Window System
  XRANDR_CFLAGS
              C compiler flags for XRANDR, overriding pkg-config
  XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
  NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
  NEON_LIBS   linker flags for NEON, overriding pkg-config
  OPENSSL_CFLAGS
              C compiler flags for OPENSSL, overriding pkg-config
  OPENSSL_LIBS
              linker flags for OPENSSL, overriding pkg-config
  REDLAND_CFLAGS
              C compiler flags for REDLAND, overriding pkg-config
  REDLAND_LIBS
              linker flags for REDLAND, overriding pkg-config
  HUNSPELL_CFLAGS
              C compiler flags for HUNSPELL, overriding pkg-config
  HUNSPELL_LIBS
              linker flags for HUNSPELL, overriding pkg-config
  MYTHES_CFLAGS
              C compiler flags for MYTHES, overriding pkg-config
  MYTHES_LIBS linker flags for MYTHES, overriding pkg-config
  LIBEXTTEXTCAT_CFLAGS
              C compiler flags for LIBEXTTEXTCAT, overriding pkg-config
  LIBEXTTEXTCAT_LIBS
              linker flags for LIBEXTTEXTCAT, overriding pkg-config
  GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
  GTK3_LIBS   linker flags for GTK3, overriding pkg-config
  GCONF_CFLAGS
              C compiler flags for GCONF, overriding pkg-config
  GCONF_LIBS  linker flags for GCONF, overriding pkg-config
  GNOMEVFS_CFLAGS
              C compiler flags for GNOMEVFS, overriding pkg-config
  GNOMEVFS_LIBS
              linker flags for GNOMEVFS, overriding pkg-config
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  GTK_LIBS    linker flags for GTK, overriding pkg-config
  GTHREAD_CFLAGS
              C compiler flags for GTHREAD, overriding pkg-config
  GTHREAD_LIBS
              linker flags for GTHREAD, overriding pkg-config
  GTK210_CFLAGS
              C compiler flags for GTK210, overriding pkg-config
  GTK210_LIBS linker flags for GTK210, overriding pkg-config
  GTK_PRINT_CFLAGS
              C compiler flags for GTK_PRINT, overriding pkg-config
  GTK_PRINT_LIBS
              linker flags for GTK_PRINT, overriding pkg-config
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
  GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
  GIO_LIBS    linker flags for GIO, overriding pkg-config
  LIBPNG_CFLAGS
              C compiler flags for LIBPNG, overriding pkg-config
  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  GSTREAMER_CFLAGS
              C compiler flags for GSTREAMER, overriding pkg-config
  GSTREAMER_LIBS
              linker flags for GSTREAMER, overriding pkg-config
  POPPLER_CFLAGS
              C compiler flags for POPPLER, overriding pkg-config
  POPPLER_LIBS
              linker flags for POPPLER, overriding pkg-config
  KDE_GLIB_CFLAGS
              C compiler flags for KDE_GLIB, overriding pkg-config
  KDE_GLIB_LIBS
              linker flags for KDE_GLIB, overriding pkg-config
  GOBJECT_CFLAGS
              C compiler flags for GOBJECT, overriding pkg-config
  GOBJECT_LIBS
              linker flags for GOBJECT, overriding pkg-config
  DBUSMENUGTK_CFLAGS
              C compiler flags for DBUSMENUGTK, overriding pkg-config
  DBUSMENUGTK_LIBS
              linker flags for DBUSMENUGTK, overriding pkg-config
  LIBRSVG_CFLAGS
              C compiler flags for LIBRSVG, overriding pkg-config
  LIBRSVG_LIBS
              linker flags for LIBRSVG, overriding pkg-config
  CAIRO_CFLAGS
              C compiler flags for CAIRO, overriding pkg-config
  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
LibreOffice configure 3.5
generated by GNU Autoconf 2.63

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LibreOffice $as_me 3.5, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  $as_echo "PATH: $as_dir"
done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      ac_configure_args="$ac_configure_args '$ac_arg'"
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------------- ##
## File substitutions. ##
## ------------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  ac_site_file1=$CONFIG_SITE
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test -r "$ac_site_file"; then
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

























ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




save_CC=$CC
save_CXX=$CXX

BUILD_TYPE="LibO"
SCPDEFS=""
GIT_REPO_NAMES=""
MINGW_EXTERNAL_DLLS=""

if test -n "$SOLARENV" ; then
    { { $as_echo "$as_me:$LINENO: error: You have sourced Env.Host.sh in this shell.  This may lead to trouble, please run in a fresh (login) shell." >&5
$as_echo "$as_me: error: You have sourced Env.Host.sh in this shell.  This may lead to trouble, please run in a fresh (login) shell." >&2;}
   { (exit 1); exit 1; }; }
fi

echo "********************************************************************"
echo "*"
echo "*   Running ${PACKAGE_NAME} build configuration."
echo "*"
echo "********************************************************************"
echo ""

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   { (exit 1); exit 1; }; }
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   { (exit 1); exit 1; }; }

{ $as_echo "$as_me:$LINENO: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if test "${ac_cv_build+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
   { (exit 1); exit 1; }; };;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:$LINENO: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if test "${ac_cv_host+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   { (exit 1); exit 1; }; }
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
   { (exit 1); exit 1; }; };;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac



if test "$cross_compiling" = "yes"; then
    CROSS_COMPILING=YES
else
    CROSS_COMPILING=
    BUILD_TYPE="$BUILD_TYPE NATIVE"
fi


if test "$build_os" = "cygwin"; then
    EXEEXT_FOR_BUILD=.exe
    SRC_ROOT=`pwd`
    SRC_ROOT=`cygpath -d "$SRC_ROOT"`
    SRC_ROOT=`cygpath -u "$SRC_ROOT"`
else
    EXEEXT_FOR_BUILD=
    SRC_ROOT=`pwd`
fi



cat /dev/null > warn

if test "z$EUID" = "z0" -a "z`uname -o 2>/dev/null`" = "zCygwin"; then
    { { $as_echo "$as_me:$LINENO: error: You must build LibreOffice as a normal user - not using an administrative account" >&5
$as_echo "$as_me: error: You must build LibreOffice as a normal user - not using an administrative account" >&2;}
   { (exit 1); exit 1; }; }
fi

# need sed in os checks...
for ac_prog in sed
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SED+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $SED in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
SED=$ac_cv_path_SED
if test -n "$SED"; then
  { $as_echo "$as_me:$LINENO: result: $SED" >&5
$as_echo "$SED" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$SED" && break
done

if test -z "$SED"; then
    { { $as_echo "$as_me:$LINENO: error: install sed to run this script" >&5
$as_echo "$as_me: error: install sed to run this script" >&2;}
   { (exit 1); exit 1; }; }
fi

#defaults unless the os test overrides this:
test_randr=yes
test_xrender=yes
test_cups=yes
test_fontconfig=yes

case "$host_os" in

solaris*)
    test_gtk=yes
    build_gstreamer=yes
    test_kde=yes
    test_freetype=yes
    test_gstreamer=yes
    _os=SunOS

                { $as_echo "$as_me:$LINENO: checking the Solaris operating system release" >&5
$as_echo_n "checking the Solaris operating system release... " >&6; }
    _os_release=`echo $host_os | $SED -e s/solaris2\.//`
    if test "$_os_release" -lt "10"; then
        { { $as_echo "$as_me:$LINENO: error: use Solaris >= 10 to build LibreOffice" >&5
$as_echo "$as_me: error: use Solaris >= 10 to build LibreOffice" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: result: ok ($_os_release)" >&5
$as_echo "ok ($_os_release)" >&6; }
    fi

        { $as_echo "$as_me:$LINENO: checking the processor type" >&5
$as_echo_n "checking the processor type... " >&6; }
    if test "$host_cpu" = "sparc" -o "$host_cpu" = "i386"; then
        { $as_echo "$as_me:$LINENO: result: ok ($host_cpu)" >&5
$as_echo "ok ($host_cpu)" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: only SPARC and i386 processors are supported" >&5
$as_echo "$as_me: error: only SPARC and i386 processors are supported" >&2;}
   { (exit 1); exit 1; }; }
    fi
    ;;

linux-gnu*|k*bsd*-gnu*)
    test_gtk=yes
    build_gstreamer=yes
    test_kde=yes
    test_kde4=yes
    test_freetype=yes
    test_unix_quickstarter=yes
    _os=Linux
    ;;

gnu)
    test_randr=no
    test_xrender=no
    _os=GNU
     ;;

cygwin*|interix*|mingw32*)

    # When building on Windows normally with MSVC under Cygwin,
    # configure thinks that the host platform (the platform the
    # built code will run on) is Cygwin, even if it obviously is
    # Windows, which in Autoconf terminology is called
    # "mingw32". (Which is misleading as MinGW is the name of the
    # tool-chain, not an operating system.)

    # Somewhat confusing, yes. But this configure script doesn't
    # look at $host etc that much, it mostly uses its own $_os
    # variable, set here in this case statement.

    # When cross-compiling to Windows from Unix, the host platform
    # is "mingw32" (because in that case it is the MinGW
    # tool-chain that is used).

    test_cups=no
    test_randr=no
    test_xrender=no
    test_freetype=no
    test_fontconfig=no
    _os=WINNT

    # If the host OS matches "mingw32*", that means we are using the
    # MinGW cross-compiler, because we don't see the point in building
    # LibreOffice using MinGW on Windows. If you want to build on
    # Windows, use MSVC. If you want to use MinGW, surely you want to
    # cross-compile (from Linux or some other Unix).

    case "$host_os" in
    mingw32*)
        WITH_MINGW=yes
        if test -z "$CC" ; then
            CC="$host_cpu-$host_vendor-$host_os-gcc"
        fi
        if test -z "$CXX" ; then
            CXX="$host_cpu-$host_vendor-$host_os-g++"
        fi
        ;;
    esac

    if test "$build_os" = "cygwin" ; then
        SCPDEFS="$SCPDEFS -D_MSC_VER"
    fi
    ;;

darwin*) # Mac OS X or iOS
    test_gtk=yes
    test_randr=no
    test_xrender=no
    test_freetype=no
    test_fontconfig=no
    if test "$host_cpu" = "arm"; then
        _os=iOS
        test_gtk=no
        test_cups=no
    else
        _os=Darwin
    fi
    enable_systray=no
;;

freebsd*)
    test_gtk=yes
    build_gstreamer=yes
    test_kde=yes
    test_kde4=yes
    test_freetype=yes
    { $as_echo "$as_me:$LINENO: checking the FreeBSD operating system release" >&5
$as_echo_n "checking the FreeBSD operating system release... " >&6; }
    if test -n "$with_os_version"; then
        OSVERSION="$with_os_version"
    else
        OSVERSION=`/sbin/sysctl -n kern.osreldate`
    fi
    { $as_echo "$as_me:$LINENO: result: found OSVERSION=$OSVERSION" >&5
$as_echo "found OSVERSION=$OSVERSION" >&6; }
    { $as_echo "$as_me:$LINENO: checking which thread library to use" >&5
$as_echo_n "checking which thread library to use... " >&6; }
    if test "$OSVERSION" -lt "500016"; then
        PTHREAD_CFLAGS="-D_THREAD_SAFE"
        PTHREAD_LIBS="-pthread"
    elif test "$OSVERSION" -lt "502102"; then
        PTHREAD_CFLAGS="-D_THREAD_SAFE"
        PTHREAD_LIBS="-lc_r"
    else
        PTHREAD_CFLAGS=""
        PTHREAD_LIBS="-pthread"
    fi
    { $as_echo "$as_me:$LINENO: result: $PTHREAD_LIBS" >&5
$as_echo "$PTHREAD_LIBS" >&6; }
    _os=FreeBSD
    ;;

*netbsd*)
    test_gtk=yes
    build_gstreamer=yes
    test_kde=no
    test_kde4=yes
    test_freetype=yes
    PTHREAD_LIBS="-pthread -lpthread"
    _os=NetBSD
    ;;

aix*)
    test_randr=no
    test_freetype=yes
    PTHREAD_LIBS=-pthread
    _os=AIX
    ;;

openbsd*)
    test_gtk=yes
    test_kde=yes
    test_freetype=yes
    PTHREAD_CFLAGS="-D_THREAD_SAFE"
    PTHREAD_LIBS="-pthread"
    _os=OpenBSD
    ;;

dragonfly*)
    test_gtk=yes
    build_gstreamer=yes
    test_kde=yes
    test_kde4=yes
    test_freetype=yes
    PTHREAD_LIBS="-pthread"
    _os=DragonFly
    ;;

linux-androideabi*)
    build_gstreamer=no
    test_cups=no
    test_fontconfig=no
    test_freetype=no
    test_gtk=no
    test_kde=no
    test_kde4=no
    test_randr=no
    test_xrender=no
    test_unix_quickstarter=no
    _os=Android

    # Make sure env vars pointing to where to find the cross-build
    # toolchain are set. There aren't really any sensible
    # guesstimates.
    for var in CC CXX AR NM OBJDUMP RANLIB STRIP; do
        if test -z "`eval echo '$'$var`"; then
            { { $as_echo "$as_me:$LINENO: error: You need to set the $var environment variable in a cross-compilation for Android. See README.cross for an example." >&5
$as_echo "$as_me: error: You need to set the $var environment variable in a cross-compilation for Android. See README.cross for an example." >&2;}
   { (exit 1); exit 1; }; }
        fi
    done
    ;;

*)
    { { $as_echo "$as_me:$LINENO: error: $host_os operating system is not suitable to build LibreOffice for!" >&5
$as_echo "$as_me: error: $host_os operating system is not suitable to build LibreOffice for!" >&2;}
   { (exit 1); exit 1; }; }
    ;;
esac

if test "$_os" = "AIX"; then
    # Extract the first word of "gawk", so it can be a program name with args.
set dummy gawk; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GAWK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $GAWK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GAWK="$GAWK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GAWK="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
GAWK=$ac_cv_path_GAWK
if test -n "$GAWK"; then
  { $as_echo "$as_me:$LINENO: result: $GAWK" >&5
$as_echo "$GAWK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    if test -z "$GAWK"; then
        { { $as_echo "$as_me:$LINENO: error: gawk not found in \$PATH" >&5
$as_echo "$as_me: error: gawk not found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi







###############################################################################
# Extensions switches --enable/--disable
###############################################################################
# By default these should be enabled unless having extra dependencies.
# If there is extra dependency over configure options then the enable should
# be automagic based on wether the requiring feature is enabled or not.
# All this options change anything only with --enable-extension-integration.
# Check whether --enable-extension-integration was given.
if test "${enable_extension_integration+set}" = set; then
  enableval=$enable_extension_integration;
fi


# Check whether --enable-ext-barcode was given.
if test "${enable_ext_barcode+set}" = set; then
  enableval=$enable_ext_barcode;
fi


# Check whether --enable-ext-diagram was given.
if test "${enable_ext_diagram+set}" = set; then
  enableval=$enable_ext_diagram;
fi


# Check whether --enable-ext-google-docs was given.
if test "${enable_ext_google_docs+set}" = set; then
  enableval=$enable_ext_google_docs;
fi


# Check whether --enable-ext-hunart was given.
if test "${enable_ext_hunart+set}" = set; then
  enableval=$enable_ext_hunart;
fi


# Check whether --enable-ext-languagetool was given.
if test "${enable_ext_languagetool+set}" = set; then
  enableval=$enable_ext_languagetool;
fi


# Check whether --enable-ext-mysql-connector was given.
if test "${enable_ext_mysql_connector+set}" = set; then
  enableval=$enable_ext_mysql_connector;
fi


# Check whether --enable-ext-nlpsolver was given.
if test "${enable_ext_nlpsolver+set}" = set; then
  enableval=$enable_ext_nlpsolver;
fi


# Check whether --enable-ext-ct2n was given.
if test "${enable_ext_ct2n+set}" = set; then
  enableval=$enable_ext_ct2n;
fi


# Check whether --enable-ext-numbertext was given.
if test "${enable_ext_numbertext+set}" = set; then
  enableval=$enable_ext_numbertext;
fi


# Check whether --enable-ext-oooblogger was given.
if test "${enable_ext_oooblogger+set}" = set; then
  enableval=$enable_ext_oooblogger;
fi


# Check whether --enable-ext-pdfimport was given.
if test "${enable_ext_pdfimport+set}" = set; then
  enableval=$enable_ext_pdfimport;
fi


# Check whether --enable-ext-presenter-console was given.
if test "${enable_ext_presenter_console+set}" = set; then
  enableval=$enable_ext_presenter_console;
fi


# Check whether --enable-ext-presenter-minimizer was given.
if test "${enable_ext_presenter_minimizer+set}" = set; then
  enableval=$enable_ext_presenter_minimizer;
fi


# Check whether --enable-ext-report-builder was given.
if test "${enable_ext_report_builder+set}" = set; then
  enableval=$enable_ext_report_builder;
fi


# Check whether --enable-ext-scripting-beanshell was given.
if test "${enable_ext_scripting_beanshell+set}" = set; then
  enableval=$enable_ext_scripting_beanshell;
fi


# Check whether --enable-ext-scripting-javascript was given.
if test "${enable_ext_scripting_javascript+set}" = set; then
  enableval=$enable_ext_scripting_javascript;
fi


# Check whether --enable-ext-typo was given.
if test "${enable_ext_typo+set}" = set; then
  enableval=$enable_ext_typo;
fi


# Check whether --enable-ext-validator was given.
if test "${enable_ext_validator+set}" = set; then
  enableval=$enable_ext_validator;
fi


# Check whether --enable-ext-watch-window was given.
if test "${enable_ext_watch_window+set}" = set; then
  enableval=$enable_ext_watch_window;
fi


# Check whether --enable-ext-wiki-publisher was given.
if test "${enable_ext_wiki_publisher+set}" = set; then
  enableval=$enable_ext_wiki_publisher;
fi

###############################################################################


# Check whether --enable-mergelibs was given.
if test "${enable_mergelibs+set}" = set; then
  enableval=$enable_mergelibs;
fi


# Check whether --enable-graphite was given.
if test "${enable_graphite+set}" = set; then
  enableval=$enable_graphite;
fi


# Check whether --enable-ldap was given.
if test "${enable_ldap+set}" = set; then
  enableval=$enable_ldap;
fi


# Check whether --enable-fetch-external was given.
if test "${enable_fetch_external+set}" = set; then
  enableval=$enable_fetch_external;
fi


# Check whether --enable-lockdown was given.
if test "${enable_lockdown+set}" = set; then
  enableval=$enable_lockdown;
fi


# Check whether --enable-vba was given.
if test "${enable_vba+set}" = set; then
  enableval=$enable_vba;
fi


# Check whether --enable-pch was given.
if test "${enable_pch+set}" = set; then
  enableval=$enable_pch;
fi


# Check whether --enable-mozilla was given.
if test "${enable_mozilla+set}" = set; then
  enableval=$enable_mozilla;
fi


# Check whether --enable-epm was given.
if test "${enable_epm+set}" = set; then
  enableval=$enable_epm;
fi


# Check whether --enable-activex_component was given.
if test "${enable_activex_component+set}" = set; then
  enableval=$enable_activex_component;
fi


# Check whether --enable-odk was given.
if test "${enable_odk+set}" = set; then
  enableval=$enable_odk;
fi


# Check whether --enable-mathmldtd was given.
if test "${enable_mathmldtd+set}" = set; then
  enableval=$enable_mathmldtd;
fi


# Check whether --enable-evolution2 was given.
if test "${enable_evolution2+set}" = set; then
  enableval=$enable_evolution2;
fi


# Check whether --enable-directx was given.
if test "${enable_directx+set}" = set; then
  enableval=$enable_directx;
fi


# Check whether --enable-activex was given.
if test "${enable_activex+set}" = set; then
  enableval=$enable_activex;
fi


# Check whether --enable-atl was given.
if test "${enable_atl+set}" = set; then
  enableval=$enable_atl;
fi


# Check whether --enable-symbols was given.
if test "${enable_symbols+set}" = set; then
  enableval=$enable_symbols;
fi


# Check whether --enable-strip-solver was given.
if test "${enable_strip_solver+set}" = set; then
  enableval=$enable_strip_solver;
fi


# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then
  enableval=$enable_werror;
fi


# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then
  enableval=$enable_debug;
fi


# Check whether --enable-dbgutil was given.
if test "${enable_dbgutil+set}" = set; then
  enableval=$enable_dbgutil;
fi


# Check whether --enable-linkoo was given.
if test "${enable_linkoo+set}" = set; then
  enableval=$enable_linkoo;
fi


# Check whether --enable-lto was given.
if test "${enable_lto+set}" = set; then
  enableval=$enable_lto;
fi


# Check whether --enable-crashdump was given.
if test "${enable_crashdump+set}" = set; then
  enableval=$enable_crashdump;
fi


# Check whether --enable-python was given.
if test "${enable_python+set}" = set; then
  enableval=$enable_python;
fi


# Check whether --enable-gtk was given.
if test "${enable_gtk+set}" = set; then
  enableval=$enable_gtk;
else
  enable_gtk=yes
fi


# Check whether --enable-gtk3 was given.
if test "${enable_gtk3+set}" = set; then
  enableval=$enable_gtk3;
else
  enable_gtk3=no
fi


# Check whether --enable-systray was given.
if test "${enable_systray+set}" = set; then
  enableval=$enable_systray;
else
  enable_systray=yes
fi


# Check whether --enable-split-app-modules was given.
if test "${enable_split_app_modules+set}" = set; then
  enableval=$enable_split_app_modules;
fi


# Check whether --enable-split-opt-features was given.
if test "${enable_split_opt_features+set}" = set; then
  enableval=$enable_split_opt_features;
fi


# Check whether --enable-cairo-canvas was given.
if test "${enable_cairo_canvas+set}" = set; then
  enableval=$enable_cairo_canvas;
else
  enable_cairo_canvas=yes
fi


# Check whether --enable-librsvg was given.
if test "${enable_librsvg+set}" = set; then
  enableval=$enable_librsvg;
fi


# Check whether --enable-opengl was given.
if test "${enable_opengl+set}" = set; then
  enableval=$enable_opengl;
else
  enable_opengl=yes
fi


# Check whether --enable-dbus was given.
if test "${enable_dbus+set}" = set; then
  enableval=$enable_dbus;
else
  enable_dbus=no
fi


# Check whether --enable-gconf was given.
if test "${enable_gconf+set}" = set; then
  enableval=$enable_gconf;
else
  enable_gconf=yes
fi


# Check whether --enable-gnome-vfs was given.
if test "${enable_gnome_vfs+set}" = set; then
  enableval=$enable_gnome_vfs;
else
  enable_gnome_vfs=yes
fi


# Check whether --enable-gio was given.
if test "${enable_gio+set}" = set; then
  enableval=$enable_gio;
else
  enable_gio=no
fi


# Check whether --enable-static-gtk was given.
if test "${enable_static_gtk+set}" = set; then
  enableval=$enable_static_gtk;
fi


# Check whether --enable-build-mozilla was given.
if test "${enable_build_mozilla+set}" = set; then
  enableval=$enable_build_mozilla;
fi


# Check whether --enable-xmlsec was given.
if test "${enable_xmlsec+set}" = set; then
  enableval=$enable_xmlsec;
fi


# Check whether --enable-kde was given.
if test "${enable_kde+set}" = set; then
  enableval=$enable_kde;
fi


# Check whether --enable-kdeab was given.
if test "${enable_kdeab+set}" = set; then
  enableval=$enable_kdeab;
else
  if test "$enable_kde" = "yes"; then
        enable_kdeab=yes;
    fi

fi


# Check whether --enable-kde4 was given.
if test "${enable_kde4+set}" = set; then
  enableval=$enable_kde4;
fi


# Check whether --enable-unix-qstart-libpng was given.
if test "${enable_unix_qstart_libpng+set}" = set; then
  enableval=$enable_unix_qstart_libpng;
else
  enable_unix_qstart_libpng=yes
fi


# Check whether --enable-binfilter was given.
if test "${enable_binfilter+set}" = set; then
  enableval=$enable_binfilter;
else
  enable_binfilter=no

fi


# Check whether --enable-ugly was given.
if test "${enable_ugly+set}" = set; then
  enableval=$enable_ugly;
else
  enable_ugly=no

fi


# Check whether --enable-rpath was given.
if test "${enable_rpath+set}" = set; then
  enableval=$enable_rpath;
fi


# Check whether --enable-randr was given.
if test "${enable_randr+set}" = set; then
  enableval=$enable_randr;
else
  enable_randr=yes
fi


# Check whether --enable-randr-link was given.
if test "${enable_randr_link+set}" = set; then
  enableval=$enable_randr_link;
else
  enable_randr_link=yes
fi


# Check whether --enable-gstreamer was given.
if test "${enable_gstreamer+set}" = set; then
  enableval=$enable_gstreamer;
else
  enable_gstreamer=yes
fi


# Check whether --enable-neon was given.
if test "${enable_neon+set}" = set; then
  enableval=$enable_neon;
fi


# Check whether --enable-build-unowinreg was given.
if test "${enable_build_unowinreg+set}" = set; then
  enableval=$enable_build_unowinreg;
fi


# Check whether --enable-verbose was given.
if test "${enable_verbose+set}" = set; then
  enableval=$enable_verbose;
fi


# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval=$enable_dependency_tracking;
fi


# Check whether --enable-icecream was given.
if test "${enable_icecream+set}" = set; then
  enableval=$enable_icecream;
fi


# Check whether --enable-zenity was given.
if test "${enable_zenity+set}" = set; then
  enableval=$enable_zenity;
else
  enable_zenity=yes
fi


# Check whether --enable-nsplugin was given.
if test "${enable_nsplugin+set}" = set; then
  enableval=$enable_nsplugin;
fi


# Check whether --enable-ccache was given.
if test "${enable_ccache+set}" = set; then
  enableval=$enable_ccache;
fi


# Check whether --enable-cl-x64 was given.
if test "${enable_cl_x64+set}" = set; then
  enableval=$enable_cl_x64;
fi


# Check whether --enable-extra-gallery was given.
if test "${enable_extra_gallery+set}" = set; then
  enableval=$enable_extra_gallery;
fi


# Check whether --enable-extra-template was given.
if test "${enable_extra_template+set}" = set; then
  enableval=$enable_extra_template;
fi


# Check whether --enable-extra-sample was given.
if test "${enable_extra_sample+set}" = set; then
  enableval=$enable_extra_sample;
fi


# Check whether --enable-extra-font was given.
if test "${enable_extra_font+set}" = set; then
  enableval=$enable_extra_font;
fi


# Check whether --enable-oxygenoffice was given.
if test "${enable_oxygenoffice+set}" = set; then
  enableval=$enable_oxygenoffice;
fi


# Check whether --enable-lomenubar was given.
if test "${enable_lomenubar+set}" = set; then
  enableval=$enable_lomenubar;
fi


# Check whether --enable-online-update was given.
if test "${enable_online_update+set}" = set; then
  enableval=$enable_online_update;
fi


# Check whether --enable-release-build was given.
if test "${enable_release_build+set}" = set; then
  enableval=$enable_release_build;
fi


# Check whether --enable-silent-msi was given.
if test "${enable_silent_msi+set}" = set; then
  enableval=$enable_silent_msi;
fi


# Check whether --enable-postgresql-sdbc was given.
if test "${enable_postgresql_sdbc+set}" = set; then
  enableval=$enable_postgresql_sdbc;
fi



# Check whether --with-gnu-patch was given.
if test "${with_gnu_patch+set}" = set; then
  withval=$with_gnu_patch;
fi



# Check whether --with-gnu-cp was given.
if test "${with_gnu_cp+set}" = set; then
  withval=$with_gnu_cp;
fi



# Check whether --with-external-tar was given.
if test "${with_external_tar+set}" = set; then
  withval=$with_external_tar; TARFILE_LOCATION=$withval
fi



# Check whether --with-linked-git was given.
if test "${with_linked_git+set}" = set; then
  withval=$with_linked_git; GIT_LINK_SRC=$withval
fi



# Check whether --with-openldap was given.
if test "${with_openldap+set}" = set; then
  withval=$with_openldap;
fi



# Check whether --with-vba-package-format was given.
if test "${with_vba_package_format+set}" = set; then
  withval=$with_vba_package_format;
fi



# Check whether --with-theme was given.
if test "${with_theme+set}" = set; then
  withval=$with_theme;
fi



# Check whether --with-helppack-integration was given.
if test "${with_helppack_integration+set}" = set; then
  withval=$with_helppack_integration;
fi



# Check whether --with-fonts was given.
if test "${with_fonts+set}" = set; then
  withval=$with_fonts;
fi



# Check whether --with-ppds was given.
if test "${with_ppds+set}" = set; then
  withval=$with_ppds;
fi



# Check whether --with-afms was given.
if test "${with_afms+set}" = set; then
  withval=$with_afms;
fi



# Check whether --with-agfa-monotype-fonts was given.
if test "${with_agfa_monotype_fonts+set}" = set; then
  withval=$with_agfa_monotype_fonts;
fi



# Check whether --with-epm was given.
if test "${with_epm+set}" = set; then
  withval=$with_epm;
fi



# Check whether --with-package-format was given.
if test "${with_package_format+set}" = set; then
  withval=$with_package_format;
fi



# Check whether --with-system-libs was given.
if test "${with_system_libs+set}" = set; then
  withval=$with_system_libs;
fi



# Check whether --with-system-headers was given.
if test "${with_system_headers+set}" = set; then
  withval=$with_system_headers;
fi



# Check whether --with-system-jars was given.
if test "${with_system_jars+set}" = set; then
  withval=$with_system_jars;
fi



# Check whether --with-system-stdlibs was given.
if test "${with_system_stdlibs+set}" = set; then
  withval=$with_system_stdlibs;
else
  with_system_stdlibs="$with_system_libs"
fi



# Check whether --with-system-cairo was given.
if test "${with_system_cairo+set}" = set; then
  withval=$with_system_cairo;
else
  with_system_cairo="$with_system_libs"
fi



# Check whether --with-system-graphite was given.
if test "${with_system_graphite+set}" = set; then
  withval=$with_system_graphite;
else
  with_system_graphite="$with_system_libs"
fi



# Check whether --with-system-nss was given.
if test "${with_system_nss+set}" = set; then
  withval=$with_system_nss;
else
  with_system_nss="$with_system_libs"
fi



# Check whether --with-system-sampleicc was given.
if test "${with_system_sampleicc+set}" = set; then
  withval=$with_system_sampleicc;
else
  with_system_sampleicc="$with_system_libs"
fi



# Check whether --with-mozilla-version was given.
if test "${with_mozilla_version+set}" = set; then
  withval=$with_mozilla_version;
fi



# Check whether --with-mozilla-toolkit was given.
if test "${with_mozilla_toolkit+set}" = set; then
  withval=$with_mozilla_toolkit;
fi



# Check whether --with-myspell-dicts was given.
if test "${with_myspell_dicts+set}" = set; then
  withval=$with_myspell_dicts;
fi



# Check whether --with-system-dicts was given.
if test "${with_system_dicts+set}" = set; then
  withval=$with_system_dicts;
fi



# Check whether --with-external-dict-dir was given.
if test "${with_external_dict_dir+set}" = set; then
  withval=$with_external_dict_dir;
fi



# Check whether --with-external-hyph-dir was given.
if test "${with_external_hyph_dir+set}" = set; then
  withval=$with_external_hyph_dir;
fi



# Check whether --with-external-thes-dir was given.
if test "${with_external_thes_dir+set}" = set; then
  withval=$with_external_thes_dir;
fi



# Check whether --with-system-zlib was given.
if test "${with_system_zlib+set}" = set; then
  withval=$with_system_zlib;
else
  if test "$_os" != "WINNT"; then
    with_system_zlib=yes
  else
    with_system_zlib="$with_system_libs"
  fi
fi



# Check whether --with-system-openssl was given.
if test "${with_system_openssl+set}" = set; then
  withval=$with_system_openssl;
else
  with_system_openssl="$with_system_libs"
fi



# Check whether --with-system-jpeg was given.
if test "${with_system_jpeg+set}" = set; then
  withval=$with_system_jpeg;
else
  if test "$_os" = "Linux"; then
    with_system_jpeg=yes
  else
    with_system_jpeg="$with_system_libs"
  fi
fi



# Check whether --with-system-expat was given.
if test "${with_system_expat+set}" = set; then
  withval=$with_system_expat;
else
  with_system_expat="$with_system_libs"
fi



# Check whether --with-system-libcmis was given.
if test "${with_system_libcmis+set}" = set; then
  withval=$with_system_libcmis;
else
  with_system_libcmis="$with_system_libs"
fi



# Check whether --with-system-libvisio was given.
if test "${with_system_libvisio+set}" = set; then
  withval=$with_system_libvisio;
else
  with_system_libvisio="$with_system_libs"
fi



# Check whether --with-system-libwpd was given.
if test "${with_system_libwpd+set}" = set; then
  withval=$with_system_libwpd;
else
  with_system_libwpd="$with_system_libs"
fi



# Check whether --with-system-libwps was given.
if test "${with_system_libwps+set}" = set; then
  withval=$with_system_libwps;
else
  with_system_libwps="$with_system_libs"
fi



# Check whether --with-system-libwpg was given.
if test "${with_system_libwpg+set}" = set; then
  withval=$with_system_libwpg;
else
  with_system_libwpg="$with_system_libs"
fi



# Check whether --with-system-libxml was given.
if test "${with_system_libxml+set}" = set; then
  withval=$with_system_libxml;
else
  if test "$_os" = "Darwin"; then
    with_system_libxml=yes
  else
    with_system_libxml="$with_system_libs"
  fi
fi



# Check whether --with-system-icu was given.
if test "${with_system_icu+set}" = set; then
  withval=$with_system_icu;
else
  with_system_icu="$with_system_libs"
fi



# Check whether --with-system-poppler was given.
if test "${with_system_poppler+set}" = set; then
  withval=$with_system_poppler;
else
  with_system_poppler="$with_system_libs"
fi



# Check whether --with-system-db was given.
if test "${with_system_db+set}" = set; then
  withval=$with_system_db;
else
  with_system_db="$with_system_libs"
fi



# Check whether --with-system-lucene was given.
if test "${with_system_lucene+set}" = set; then
  withval=$with_system_lucene;
else
  with_system_lucene="$with_system_jars"
fi



# Check whether --with-system-apache-commons was given.
if test "${with_system_apache_commons+set}" = set; then
  withval=$with_system_apache_commons;
else
  with_system_apache_commons="$with_system_jars"
fi



# Check whether --with-lucene-core-jar was given.
if test "${with_lucene_core_jar+set}" = set; then
  withval=$with_lucene_core_jar; LUCENE_CORE_JAR=$withval
fi



# Check whether --with-lucene-analyzers-jar was given.
if test "${with_lucene_analyzers_jar+set}" = set; then
  withval=$with_lucene_analyzers_jar; LUCENE_ANALYZERS_JAR=$withval
fi



# Check whether --with-system-mysql was given.
if test "${with_system_mysql+set}" = set; then
  withval=$with_system_mysql;
else
  with_system_mysql="$with_system_libs"
fi



# Check whether --with-libmysql-path was given.
if test "${with_libmysql_path+set}" = set; then
  withval=$with_libmysql_path;
fi



# Check whether --with-system-mysql-cppconn was given.
if test "${with_system_mysql_cppconn+set}" = set; then
  withval=$with_system_mysql_cppconn;
else
  with_system_mysql_cppconn="$with_system_libs"
fi



# Check whether --with-system-postgresql was given.
if test "${with_system_postgresql+set}" = set; then
  withval=$with_system_postgresql;
else
  with_system_postgresql="$with_system_libs"
fi



# Check whether --with-libpq-path was given.
if test "${with_libpq_path+set}" = set; then
  withval=$with_libpq_path;
fi



# Check whether --with-system-hsqldb was given.
if test "${with_system_hsqldb+set}" = set; then
  withval=$with_system_hsqldb;
else
  with_system_hsqldb="$with_system_jars"
fi



# Check whether --with-hsqldb-jar was given.
if test "${with_hsqldb_jar+set}" = set; then
  withval=$with_hsqldb_jar; HSQLDB_JAR=$withval
fi



# Check whether --with-system-beanshell was given.
if test "${with_system_beanshell+set}" = set; then
  withval=$with_system_beanshell;
else
  with_system_beanshell="$with_system_jars"
fi



# Check whether --with-beanshell-jar was given.
if test "${with_beanshell_jar+set}" = set; then
  withval=$with_beanshell_jar; BSH_JAR=$withval
fi



# Check whether --with-commons-codec-jar was given.
if test "${with_commons_codec_jar+set}" = set; then
  withval=$with_commons_codec_jar; COMMONS_CODEC_JAR=$withval
fi



# Check whether --with-commons-lang-jar was given.
if test "${with_commons_lang_jar+set}" = set; then
  withval=$with_commons_lang_jar; COMMONS_LANG_JAR=$withval
fi



# Check whether --with-commons-httpclient-jar was given.
if test "${with_commons_httpclient_jar+set}" = set; then
  withval=$with_commons_httpclient_jar; COMMONS_HTTPCLIENT_JAR=$withval
fi



# Check whether --with-commons-logging-jar was given.
if test "${with_commons_logging_jar+set}" = set; then
  withval=$with_commons_logging_jar; COMMONS_LOGGING_JAR=$withval
fi



# Check whether --with-system-servlet-api was given.
if test "${with_system_servlet_api+set}" = set; then
  withval=$with_system_servlet_api;
else
  with_system_servlet_api="$with_system_jars"
fi



# Check whether --with-servlet-api-jar was given.
if test "${with_servlet_api_jar+set}" = set; then
  withval=$with_servlet_api_jar; SERVLETAPI_JAR=$withval
fi



# Check whether --with-system-jfreereport was given.
if test "${with_system_jfreereport+set}" = set; then
  withval=$with_system_jfreereport;
else
  with_system_jfreereport="$with_system_jars"
fi



# Check whether --with-sac-jar was given.
if test "${with_sac_jar+set}" = set; then
  withval=$with_sac_jar; SAC_JAR=$withval
fi



# Check whether --with-libxml-jar was given.
if test "${with_libxml_jar+set}" = set; then
  withval=$with_libxml_jar; LIBXML_JAR=$withval
fi



# Check whether --with-flute-jar was given.
if test "${with_flute_jar+set}" = set; then
  withval=$with_flute_jar; FLUTE_JAR=$withval
fi



# Check whether --with-jfreereport-jar was given.
if test "${with_jfreereport_jar+set}" = set; then
  withval=$with_jfreereport_jar; JFREEREPORT_JAR=$withval
fi



# Check whether --with-liblayout-jar was given.
if test "${with_liblayout_jar+set}" = set; then
  withval=$with_liblayout_jar; LIBLAYOUT_JAR=$withval
fi



# Check whether --with-libloader-jar was given.
if test "${with_libloader_jar+set}" = set; then
  withval=$with_libloader_jar; LIBLOADER_JAR=$withval
fi



# Check whether --with-libloader-jar was given.
if test "${with_libloader_jar+set}" = set; then
  withval=$with_libloader_jar; LIBLOADER_JAR=$withval
fi



# Check whether --with-libformula-jar was given.
if test "${with_libformula_jar+set}" = set; then
  withval=$with_libformula_jar; LIBFORMULA_JAR=$withval
fi



# Check whether --with-librepository-jar was given.
if test "${with_librepository_jar+set}" = set; then
  withval=$with_librepository_jar; LIBREPOSITORY_JAR=$withval
fi



# Check whether --with-libfonts-jar was given.
if test "${with_libfonts_jar+set}" = set; then
  withval=$with_libfonts_jar; LIBFONTS_JAR=$withval
fi



# Check whether --with-libserializer-jar was given.
if test "${with_libserializer_jar+set}" = set; then
  withval=$with_libserializer_jar; LIBSERIALIZER_JAR=$withval
fi



# Check whether --with-libbase-jar was given.
if test "${with_libbase_jar+set}" = set; then
  withval=$with_libbase_jar; LIBBASE_JAR=$withval
fi



# Check whether --with-system-saxon was given.
if test "${with_system_saxon+set}" = set; then
  withval=$with_system_saxon;
else
  with_system_saxon="$with_system_jars"
fi



# Check whether --with-saxon-jar was given.
if test "${with_saxon_jar+set}" = set; then
  withval=$with_saxon_jar; SAXON_JAR=$withval
fi



# Check whether --with-system-odbc was given.
if test "${with_system_odbc+set}" = set; then
  withval=$with_system_odbc;
else
  with_system_odbc="$with_system_headers"
fi



# Check whether --with-system-sane was given.
if test "${with_system_sane+set}" = set; then
  withval=$with_system_sane;
else
  with_system_sane="$with_system_headers"
fi



# Check whether --with-system-xextensions-headers was given.
if test "${with_system_xextensions_headers+set}" = set; then
  withval=$with_system_xextensions_headers;
fi



# Check whether --with-system-mesa-headers was given.
if test "${with_system_mesa_headers+set}" = set; then
  withval=$with_system_mesa_headers;
else
  with_system_mesa_headers="$with_system_headers"
fi



# Check whether --with-system-curl was given.
if test "${with_system_curl+set}" = set; then
  withval=$with_system_curl;
else
  if test "$_os" = "Darwin"; then
    with_system_curl=yes
  else
    with_system_curl="$with_system_libs"
  fi
fi



# Check whether --with-system-boost was given.
if test "${with_system_boost+set}" = set; then
  withval=$with_system_boost;
else
  with_system_boost="$with_system_headers"
fi



# Check whether --with-system-mdds was given.
if test "${with_system_mdds+set}" = set; then
  withval=$with_system_mdds;
else
  with_system_mdds="$with_system_headers"
fi



# Check whether --with-system-vigra was given.
if test "${with_system_vigra+set}" = set; then
  withval=$with_system_vigra;
else
  with_system_vigra="$with_system_headers"
fi



# Check whether --with-system-neon was given.
if test "${with_system_neon+set}" = set; then
  withval=$with_system_neon;
else
  with_system_neon="$with_system_libs"
fi



# Check whether --with-system-hunspell was given.
if test "${with_system_hunspell+set}" = set; then
  withval=$with_system_hunspell;
else
  with_system_hunspell="$with_system_libs"
fi



# Check whether --with-system-mythes was given.
if test "${with_system_mythes+set}" = set; then
  withval=$with_system_mythes;
else
  with_system_mythes="$with_system_libs"
fi



# Check whether --with-system-altlinuxhyph was given.
if test "${with_system_altlinuxhyph+set}" = set; then
  withval=$with_system_altlinuxhyph;
else
  with_system_altlinuxhyph="$with_system_libs"
fi



# Check whether --with-system-lpsolve was given.
if test "${with_system_lpsolve+set}" = set; then
  withval=$with_system_lpsolve;
else
  with_system_lpsolve="$with_system_libs"
fi



# Check whether --with-system-libexttextcat was given.
if test "${with_system_libexttextcat+set}" = set; then
  withval=$with_system_libexttextcat;
else
  with_system_libexttextcat="$with_system_libs"
fi



# Check whether --with-system-cppunit was given.
if test "${with_system_cppunit+set}" = set; then
  withval=$with_system_cppunit;
else
  with_system_cppunit="$with_system_libs"
fi



# Check whether --with-system-redland was given.
if test "${with_system_redland+set}" = set; then
  withval=$with_system_redland;
else
  with_system_redland="$with_system_libs"
fi



# Check whether --with-system-mozilla was given.
if test "${with_system_mozilla+set}" = set; then
  withval=$with_system_mozilla; WITH_SYSTEM_MOZILLA=$withval
else
  WITH_SYSTEM_MOZILLA=no
fi



# Check whether --with-system-mozilla-headers was given.
if test "${with_system_mozilla_headers+set}" = set; then
  withval=$with_system_mozilla_headers;
else
  with_system_mozilla_headers="$with_system_headers"

fi



# Check whether --with-system-gettext was given.
if test "${with_system_gettext+set}" = set; then
  withval=$with_system_gettext;
else
  with_system_gettext="$with_system_libs"
fi



# Check whether --with-system-libpng was given.
if test "${with_system_libpng+set}" = set; then
  withval=$with_system_libpng;
else
  with_system_libpng="$with_system_libs"
fi



# Check whether --with-linker-hash-style was given.
if test "${with_linker_hash_style+set}" = set; then
  withval=$with_linker_hash_style;
fi



# Check whether --with-stlport was given.
if test "${with_stlport+set}" = set; then
  withval=$with_stlport; with_stlport=$withval
else
  with_stlport=auto
fi



# Check whether --with-jdk-home was given.
if test "${with_jdk_home+set}" = set; then
  withval=$with_jdk_home;
fi



# Check whether --with-gxx_include_path was given.
if test "${with_gxx_include_path+set}" = set; then
  withval=$with_gxx_include_path;
fi



# Check whether --with-help was given.
if test "${with_help+set}" = set; then
  withval=$with_help;
fi



# Check whether --with-java was given.
if test "${with_java+set}" = set; then
  withval=$with_java;  test -z "$with_java" -o "$with_java" = "yes" && with_java=java
else
   with_java=java

fi



# Check whether --with-java_target_version was given.
if test "${with_java_target_version+set}" = set; then
  withval=$with_java_target_version;
fi



# Check whether --with-jvm-path was given.
if test "${with_jvm_path+set}" = set; then
  withval=$with_jvm_path;
fi



# Check whether --with-ant-home was given.
if test "${with_ant_home+set}" = set; then
  withval=$with_ant_home;
fi



# Check whether --with-junit was given.
if test "${with_junit+set}" = set; then
  withval=$with_junit;
else
  with_junit=yes
fi



# Check whether --with-perl-home was given.
if test "${with_perl_home+set}" = set; then
  withval=$with_perl_home;
fi



# Check whether --with-cl-home was given.
if test "${with_cl_home+set}" = set; then
  withval=$with_cl_home;
fi



# Check whether --with-mspdb-path was given.
if test "${with_mspdb_path+set}" = set; then
  withval=$with_mspdb_path;
fi



# Check whether --with-midl-path was given.
if test "${with_midl_path+set}" = set; then
  withval=$with_midl_path;
fi



# Check whether --with-csc-path was given.
if test "${with_csc_path+set}" = set; then
  withval=$with_csc_path;
fi



# Check whether --with-dotnet-framework-home was given.
if test "${with_dotnet_framework_home+set}" = set; then
  withval=$with_dotnet_framework_home;
fi



# Check whether --with-windows-sdk-home was given.
if test "${with_windows_sdk_home+set}" = set; then
  withval=$with_windows_sdk_home;
fi



# Check whether --with-directx-home was given.
if test "${with_directx_home+set}" = set; then
  withval=$with_directx_home;
fi



# Check whether --with-mozilla-build was given.
if test "${with_mozilla_build+set}" = set; then
  withval=$with_mozilla_build; MOZILLABUILD=$withval
fi



# Check whether --with-local-solver was given.
if test "${with_local_solver+set}" = set; then
  withval=$with_local_solver;
fi



# Check whether --with-lang was given.
if test "${with_lang+set}" = set; then
  withval=$with_lang;
fi




# Check whether --with-branding was given.
if test "${with_branding+set}" = set; then
  withval=$with_branding;
fi



# Check whether --with-intro-bitmap was given.
if test "${with_intro_bitmap+set}" = set; then
  withval=$with_intro_bitmap;
fi



# Check whether --with-intro-progressbar-color was given.
if test "${with_intro_progressbar_color+set}" = set; then
  withval=$with_intro_progressbar_color;
fi



# Check whether --with-intro-progressbar-size was given.
if test "${with_intro_progressbar_size+set}" = set; then
  withval=$with_intro_progressbar_size;
fi



# Check whether --with-intro-progressbar-position was given.
if test "${with_intro_progressbar_position+set}" = set; then
  withval=$with_intro_progressbar_position;
fi



# Check whether --with-intro-progressbar-frame-color was given.
if test "${with_intro_progressbar_frame_color+set}" = set; then
  withval=$with_intro_progressbar_frame_color;
fi



# Check whether --with-about-bitmap was given.
if test "${with_about_bitmap+set}" = set; then
  withval=$with_about_bitmap;
fi



# Check whether --with-startcenter-left-bitmap was given.
if test "${with_startcenter_left_bitmap+set}" = set; then
  withval=$with_startcenter_left_bitmap;
fi



# Check whether --with-startcenter-right-bitmap was given.
if test "${with_startcenter_right_bitmap+set}" = set; then
  withval=$with_startcenter_right_bitmap;
fi



# Check whether --with-startcenter-rtl-left-bitmap was given.
if test "${with_startcenter_rtl_left_bitmap+set}" = set; then
  withval=$with_startcenter_rtl_left_bitmap;
fi



# Check whether --with-startcenter-rtl-right-bitmap was given.
if test "${with_startcenter_rtl_right_bitmap+set}" = set; then
  withval=$with_startcenter_rtl_right_bitmap;
fi



# Check whether --with-startcenter-space-bitmap was given.
if test "${with_startcenter_space_bitmap+set}" = set; then
  withval=$with_startcenter_space_bitmap;
fi



# Check whether --with-vendor was given.
if test "${with_vendor+set}" = set; then
  withval=$with_vendor;
fi



# Check whether --with-unix-wrapper was given.
if test "${with_unix_wrapper+set}" = set; then
  withval=$with_unix_wrapper;
fi



# Check whether --with-compat-oowrappers was given.
if test "${with_compat_oowrappers+set}" = set; then
  withval=$with_compat_oowrappers;
fi



# Check whether --with-asm-home was given.
if test "${with_asm_home+set}" = set; then
  withval=$with_asm_home;
fi



# Check whether --with-os-version was given.
if test "${with_os_version+set}" = set; then
  withval=$with_os_version;
fi



# Check whether --with-mingw-cross-compiler was given.
if test "${with_mingw_cross_compiler+set}" = set; then
  withval=$with_mingw_cross_compiler;
fi



# Check whether --with-build-version was given.
if test "${with_build_version+set}" = set; then
  withval=$with_build_version; with_build_version=$withval
fi



# Check whether --with-alloc was given.
if test "${with_alloc+set}" = set; then
  withval=$with_alloc;
fi



# Check whether --with-sun-templates was given.
if test "${with_sun_templates+set}" = set; then
  withval=$with_sun_templates;
fi



# Check whether --with-num-cpus was given.
if test "${with_num_cpus+set}" = set; then
  withval=$with_num_cpus;
fi



# Check whether --with-max-jobs was given.
if test "${with_max_jobs+set}" = set; then
  withval=$with_max_jobs;
fi




# Check whether --with-macosx-sdk was given.
if test "${with_macosx_sdk+set}" = set; then
  withval=$with_macosx_sdk;
fi



# Check whether --with-macosx-version-min-required was given.
if test "${with_macosx_version_min_required+set}" = set; then
  withval=$with_macosx_version_min_required;
fi



# Check whether --with-macosx-version-max-allowed was given.
if test "${with_macosx_version_max_allowed+set}" = set; then
  withval=$with_macosx_version_max_allowed;
fi



{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if test "${ac_cv_path_GREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if test "${ac_cv_path_EGREP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    ac_count=`expr $ac_count + 1`
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AWK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

# Extract the first word of "$AWK", so it can be a program name with args.
set dummy $AWK; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_AWK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $AWK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
AWK=$ac_cv_path_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test -z "$AWK"; then
    { { $as_echo "$as_me:$LINENO: error: install awk to run this script" >&5
$as_echo "$as_me: error: install awk to run this script" >&2;}
   { (exit 1); exit 1; }; }
fi

# Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_BASH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $BASH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
BASH=$ac_cv_path_BASH
if test -n "$BASH"; then
  { $as_echo "$as_me:$LINENO: result: $BASH" >&5
$as_echo "$BASH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test -z "$BASH"; then
    { { $as_echo "$as_me:$LINENO: error: bash not found in \$PATH" >&5
$as_echo "$as_me: error: bash not found in \$PATH" >&2;}
   { (exit 1); exit 1; }; }
fi


{ $as_echo "$as_me:$LINENO: checking for GNU or BSD tar" >&5
$as_echo_n "checking for GNU or BSD tar... " >&6; }
for a in $GNUTAR gtar gnutar tar /usr/sfw/bin/gtar; do
    $a --version 2> /dev/null | egrep "GNU|bsdtar"  2>&1 > /dev/null
    if test $? -eq 0;  then
        GNUTAR=$a
        break
    fi
done
{ $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
$as_echo "$GNUTAR" >&6; }
if test -z "$GNUTAR"; then
    { { $as_echo "$as_me:$LINENO: error: not found. install GNU or BSD tar." >&5
$as_echo "$as_me: error: not found. install GNU or BSD tar." >&2;}
   { (exit 1); exit 1; }; }
fi





if test $_os != iOS -a $_os != Android; then
    BUILD_TYPE="$BUILD_TYPE DESKTOP"
fi

if test "$build_os" = "cygwin" ; then
    { $as_echo "$as_me:$LINENO: checking for Cygwin gcc/g++" >&5
$as_echo_n "checking for Cygwin gcc/g++... " >&6; }
    if which gcc > /dev/null && which g++ > /dev/null ; then
        { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: Cygwin gcc and g++ are needed, please install them." >&5
$as_echo "$as_me: error: Cygwin gcc and g++ are needed, please install them." >&2;}
   { (exit 1); exit 1; }; }
    fi
fi



if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" \) ; then
    if test -z "$CC" ; then
        if test -z "$CXX" ; then
            # Extract the first word of "ccache", so it can be a program name with args.
set dummy ccache; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CCACHE+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $CCACHE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_CCACHE" && ac_cv_path_CCACHE="not found"
  ;;
esac
fi
CCACHE=$ac_cv_path_CCACHE
if test -n "$CCACHE"; then
  { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
$as_echo "$CCACHE" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


            if test "$CCACHE" = "not found" ; then
                CCACHE=""
            else
                CCACHE="ccache"
                # need to check for ccache version: otherwise prevents
                # caching of the results (like "-x objective-c++" for Mac)
                if test $_os = Darwin -o $_os = iOS; then
                    # check ccache version
                    { $as_echo "$as_me:$LINENO: checking whether version of ccache is suitable" >&5
$as_echo_n "checking whether version of ccache is suitable... " >&6; }
                    CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
                    CCACHE_NUMVER=`echo $CCACHE_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
                    if test "$CCACHE_VERSION" = "2.4_OOo" -o "$CCACHE_NUMVER" -ge "030100"; then
                        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                    else
                        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                        { $as_echo "$as_me:$LINENO: ccache version $CCACHE_VERSION not accepted. ccache will not be used." >&5
$as_echo "$as_me: ccache version $CCACHE_VERSION not accepted. ccache will not be used." >&6;}
                        CCACHE=""
                    fi
                fi
            fi
        else
            { $as_echo "$as_me:$LINENO: Automatic ccache detection ingored: CXX is pre-defined" >&5
$as_echo "$as_me: Automatic ccache detection ingored: CXX is pre-defined" >&6;}
            CCACHE=""
        fi
    else
        { $as_echo "$as_me:$LINENO: Automatic ccache detection ingored: CC is pre-defined" >&5
$as_echo "$as_me: Automatic ccache detection ingored: CC is pre-defined" >&6;}
        CCACHE=""
    fi
else
    CCACHE=""
fi

if test "$CCACHE" != "" ; then
    ccache_size_msg=$(ccache -s | tail -n 1 | sed 's/^[^0-9]*//' | sed -e 's/\.[0-9]*//')
    ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
    if test "$ccache_size" = "" ; then
        ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')
        if test "$ccache_size" = "" ; then
            ccache_size=0
        fi
        # we could not determine the size or it was less than 1GB -> disable auto-ccache
        if test $ccache_size -lt 1024 ; then
            CCACHE=""
            { $as_echo "$as_me:$LINENO: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection" >&5
$as_echo "$as_me: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection" >&2;}
            echo "ccache's cache size is less than 1GB using it is counter-producive: auto-ccache detection disabled" >> warn
        else
            # warn that ccache may be too small for debug build
            { $as_echo "$as_me:$LINENO: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&5
$as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&2;}
            echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
        fi
    else
        if test $ccache_size -lt 5  ; then
            #warn that ccache may be too small for debug build
            { $as_echo "$as_me:$LINENO: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&5
$as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&2;}
            echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
        fi
    fi
fi

GCC_HOME_SET="true"
{ $as_echo "$as_me:$LINENO: checking gcc home" >&5
$as_echo_n "checking gcc home... " >&6; }
if test -z "$with_gcc_home"; then
    if test "$enable_icecream" = "yes" ; then
        GCC_HOME="/opt/icecream"
    else
        GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
        GCC_HOME_SET="false"
    fi
else
    GCC_HOME="$with_gcc_home"
fi
{ $as_echo "$as_me:$LINENO: result: $GCC_HOME" >&5
$as_echo "$GCC_HOME" >&6; }


if test "$GCC_HOME_SET" = "true" ; then
    if test -z "$CC"; then
        CC="$GCC_HOME/bin/gcc"
    fi
    if test -z "$CXX"; then
        CXX="$GCC_HOME/bin/g++"
    fi
fi

if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }

# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi

{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
$as_echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
fi

ac_exeext=$ac_cv_exeext

# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
    fi
  fi
fi
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
fi

rm -f conftest$ac_cv_exeext
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_compiler_gnu=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if test "${ac_cv_prog_cc_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_g=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if test "${ac_cv_prog_cc_c89+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cc_c89=$ac_arg
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi

COMPATH=`dirname "$CC"`
if test "$COMPATH" = "." ; then
    for ac_prog in $CC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_COMPATH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $COMPATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_COMPATH="$COMPATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_COMPATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
COMPATH=$ac_cv_path_COMPATH
if test -n "$COMPATH"; then
  { $as_echo "$as_me:$LINENO: result: $COMPATH" >&5
$as_echo "$COMPATH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$COMPATH" && break
done

        COMPATH=`echo $COMPATH | $SED "s@/[^/:]*\\\$@@"`;
fi
COMPATH=`echo $COMPATH | $SED "s@/[Bb][Ii][Nn]\\\$@@"`;




if test "$_os" = "Darwin" ; then

    if test "$with_macosx_version_min_required" = "" ; then
        with_macosx_version_min_required="10.4"
    fi

    if test "$with_macosx_version_max_allowed" = "" ; then
        with_macosx_version_max_allowed="$with_macosx_version_min_required"
    fi

    if test "$with_macosx_sdk" = "" ; then
        with_macosx_sdk="$with_macosx_version_max_allowed"
    fi

    case "$with_macosx_sdk" in

    10.4)
        MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.4u.sdk"
        if test ! -d "$MACOSX_SDK_PATH"; then
          MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.4u.sdk"
        fi
        macosx_sdk_value="1040"
        ;;
    10.5)
        MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.5.sdk"
        if test ! -d "$MACOSX_SDK_PATH"; then
          MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.5.sdk"
        fi
        macosx_sdk_value="1050"
        { $as_echo "$as_me:$LINENO: WARNING: Building with a SDK > 10.4 is experimental" >&5
$as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
        echo "Building with a SDK > 10.4 is experimental" >> warn
        ;;
    10.6)
        MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.6.sdk"
        macosx_sdk_value="1060"
        { $as_echo "$as_me:$LINENO: WARNING: Building with a SDK > 10.4 is experimental" >&5
$as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
        echo "Building with a SDK > 10.4 is experimental" >> warn
        ;;
    10.7)
        MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.7.sdk"
        macosx_sdk_value="1070"
        { $as_echo "$as_me:$LINENO: WARNING: Building with SDK 10.7 is known to fail in vcl" >&5
$as_echo "$as_me: WARNING: Building with SDK 10.7 is known to fail in vcl" >&2;}
        echo "Building with SDK 10.7 is known to fail in vcl" >> warn
        ;;
    *)
        { { $as_echo "$as_me:$LINENO: error: $with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7" >&5
$as_echo "$as_me: error: $with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7" >&2;}
   { (exit 1); exit 1; }; }
        ;;
    esac
    { $as_echo "$as_me:$LINENO: checking the presence of the SDK $with_macosx_sdk" >&5
$as_echo_n "checking the presence of the SDK $with_macosx_sdk... " >&6; }
    if test -d "$MACOSX_SDK_PATH" ; then
        { $as_echo "$as_me:$LINENO: result: $MACOSX_SDK_PATH ok" >&5
$as_echo "$MACOSX_SDK_PATH ok" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: $MACOSX_SDK_PATH not found" >&5
$as_echo "$as_me: error: $MACOSX_SDK_PATH not found" >&2;}
   { (exit 1); exit 1; }; }
    fi
    MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required"

    case "$with_macosx_version_min_required" in

    10.4)
        MAC_OS_X_VERSION_MIN_REQUIRED="1040"
        ;;
    10.5)
        MAC_OS_X_VERSION_MIN_REQUIRED="1050"
        { $as_echo "$as_me:$LINENO: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
$as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
        echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
        if test -z "$save_CC" ; then
            CC="gcc-4.2 -m32"
            CXX="g++-4.2 -m32"
        fi
        ;;
    10.6)
        MAC_OS_X_VERSION_MIN_REQUIRED="1060"
        { $as_echo "$as_me:$LINENO: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
$as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
        echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
        if test -z "$save_CC" ; then
            CC="gcc-4.2 -m32"
            CXX="g++-4.2 -m32"
        fi
        ;;
    10.7)
        MAC_OS_X_VERSION_MIN_REQUIRED="1070"
        { $as_echo "$as_me:$LINENO: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
$as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
        echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
        if test -z "$save_CC" ; then
            CC="gcc-4.2 -m32"
            CXX="g++-4.2 -m32"
        fi
        ;;
    *)
        { { $as_echo "$as_me:$LINENO: error: with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" >&5
$as_echo "$as_me: error: with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" >&2;}
   { (exit 1); exit 1; }; }
        ;;
    esac

    case "$with_macosx_version_max_allowed" in

    10.4)
        MAC_OS_X_VERSION_MAX_ALLOWED="1040"
        ;;
    10.5)
        MAC_OS_X_VERSION_MAX_ALLOWED="1050"
        ;;
    10.6)
        MAC_OS_X_VERSION_MAX_ALLOWED="1060"
        ;;
    10.7)
        MAC_OS_X_VERSION_MAX_ALLOWED="1070"
        ;;
    *)
        { { $as_echo "$as_me:$LINENO: error: with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" >&5
$as_echo "$as_me: error: with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" >&2;}
   { (exit 1); exit 1; }; }
        ;;
    esac

    { $as_echo "$as_me:$LINENO: checking that macosx-version-min-required is coherent with macosx-version-max-allowed" >&5
$as_echo_n "checking that macosx-version-min-required is coherent with macosx-version-max-allowed... " >&6; }
    if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED ; then
        { { $as_echo "$as_me:$LINENO: error: the version minimumn required must be inferior or equal to the version maximum allowed" >&5
$as_echo "$as_me: error: the version minimumn required must be inferior or equal to the version maximum allowed" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking that macosx-version-max-allowed is coherent macos-with-sdk" >&5
$as_echo_n "checking that macosx-version-max-allowed is coherent macos-with-sdk... " >&6; }
    if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $macosx_sdk_value ; then
        { { $as_echo "$as_me:$LINENO: error: the version maximum allowed cannot be greater thatn the sdk level" >&5
$as_echo "$as_me: error: the version maximum allowed cannot be greater thatn the sdk level" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
    fi
    { $as_echo "$as_me:$LINENO: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&5
$as_echo "$as_me: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&6;}
    { $as_echo "$as_me:$LINENO: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&5
$as_echo "$as_me: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&6;}
fi





if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \) -a "$GCC" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking the GNU C compiler version" >&5
$as_echo_n "checking the GNU C compiler version... " >&6; }
    _gcc_version=`$CC -dumpversion`
    _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
    GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`

    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$GCCVER" -ge "040100" ; then
        if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0" ; then
            export CC="$GCC_HOME/bin/gcc-4.0"
            #  export CC to have it available in set_soenv -> config.guess
            GCCVER2=`$CC -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
            if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100" ; then
                GCCVER=$GCCVER2
            fi
        fi
        if test "$GCCVER" -ge "040100" ; then
            { { $as_echo "$as_me:$LINENO: error: You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" >&5
$as_echo "$as_me: error: You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" >&2;}
   { (exit 1); exit 1; }; }
        else
            { $as_echo "$as_me:$LINENO: result: implicitly using CC=$CC" >&5
$as_echo "implicitly using CC=$CC" >&6; }
        fi
    else
        { $as_echo "$as_me:$LINENO: result: checked (gcc $_gcc_version)" >&5
$as_echo "checked (gcc $_gcc_version)" >&6; }
    fi
fi


#
# prefix C with ccache if needed
#
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" ; then
    if test "$CCACHE" != "" ; then
        { $as_echo "$as_me:$LINENO: checking whether $CC is already ccached" >&5
$as_echo_n "checking whether $CC is already ccached... " >&6; }


        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        save_CFLAGS=$CFLAGS
        CFLAGS="$CFLAGS --ccache-skip -O2"

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  use_ccache=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	use_ccache=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test $use_ccache = yes ; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        else
            CC="$CCACHE $CC"
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi
        CFLAGS=$save_CFLAGS
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    fi

fi

HAVE_LD_BSYMBOLIC_FUNCTIONS=
if test "$GCC" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking for -Bsymbolic-functions linker support " >&5
$as_echo_n "checking for -Bsymbolic-functions linker support ... " >&6; }
    bsymbolic_functions_ldflags_save=$LDFLAGS
    LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>

int
main ()
{

printf ("hello world\n");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
        { $as_echo "$as_me:$LINENO: result: found " >&5
$as_echo "found " >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: not found " >&5
$as_echo "not found " >&6; }
    fi
    LDFLAGS=$bsymbolic_functions_ldflags_save
fi




if test "$cross_compiling" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking for BUILD platform configuration" >&5
$as_echo_n "checking for BUILD platform configuration... " >&6; }
    echo
    rm -rf CONF-FOR-BUILD Env.Build.sh
    mkdir CONF-FOR-BUILD
    tar cf - \
        Makefile.in \
        bin/repo-list.in \
        build_env.in \
        config.guess \
        configure \
        ooo.lst.in \
        oowintool \
        post_download.in \
        set_soenv.in \
        solenv/inc/langlist.mk \
        solenv/inc/postset.mk \
        desktop/scripts/soffice.sh.in \
    | (cd CONF-FOR-BUILD && tar xf -)
    (
    unset COM GUI GUIBASE OS CPU CPUNAME
    unset CC CXX SYSBASE CFLAGS
    unset PYTHON_CFLAGS PYTHON_LIBS
    unset AR NM OBJDUMP PKG_CONFIG RANLIB STRIP
    test -n "$CC_FOR_BUILD" && export CC="$CC_FOR_BUILD"
    test -n "$CXX_FOR_BUILD" && export CXX="$CXX_FOR_BUILD"
    test -n "$PKG_CONFIG_FOR_BUILD" && export PKG_CONFIG="$PKG_CONFIG_FOR_BUILD"
    cd CONF-FOR-BUILD
    sub_conf_opts=""
    test -n "$with_ant_home" && sub_conf_opts="$sub_conf_opts --with-ant-home=$with_ant_home"
    test $with_junit = no && sub_conf_opts="$sub_conf_opts --without-junit"
    test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
    ./configure \
        --disable-mozilla \
        --disable-build-mozilla \
        --disable-zenity \
        --with-num-cpus="$with_num_cpus" \
        --with-max-jobs="$with_max_jobs" \
        $sub_conf_opts \
        2>&1 | sed -e 's/^/    /'
    test -f ./Env.Host.sh 2>/dev/null || exit
    cp Env.Host.sh ../Env.Build.sh
    . ./Env.Host.sh
    for V in COM GUI GUIBASE OS CPU CPUNAME CC CXX GXX_INCLUDE_PATH MACOSX_DEPLOYMENT_TARGET INPATH OUTPATH \
             SYSTEM_LIBXSLT; do
        VV='$'$V
        VV=`eval "echo $VV"`
        if test -n "$VV"; then
            line=${V}_FOR_BUILD='${'${V}_FOR_BUILD:-$VV'}'
            echo "$line" >>build-config
        fi
    done

    for V in OUTDIR PATH SOLARINC SOLARLIB WORKDIR; do
        VV='$'$V
        VV=`eval "echo $VV"`
        VV=`echo $VV | sed -e 's,/CONF-FOR-BUILD,,g'`
        if test -n "$VV"; then
            line="${V}_FOR_BUILD='$VV'"
            echo "$line" >>build-config
        fi
    done
    )
    test -f CONF-FOR-BUILD/build-config || { { $as_echo "$as_me:$LINENO: error: Running configure script for BUILD system failed, see CONF-FOR-BUILD/config.log" >&5
$as_echo "$as_me: error: Running configure script for BUILD system failed, see CONF-FOR-BUILD/config.log" >&2;}
   { (exit 1); exit 1; }; }
    test -f Env.Build.sh || { { $as_echo "$as_me:$LINENO: error: A file called Env.Build.sh was supposed to have been copied here, but it isn't found" >&5
$as_echo "$as_me: error: A file called Env.Build.sh was supposed to have been copied here, but it isn't found" >&2;}
   { (exit 1); exit 1; }; }
    perl -pi -e 's,/CONF-FOR-BUILD,,g' Env.Build.sh
    eval `cat CONF-FOR-BUILD/build-config`
    { $as_echo "$as_me:$LINENO: result: checking for BUILD platform configuration... done" >&5
$as_echo "checking for BUILD platform configuration... done" >&6; }
    rm -rf CONF-FOR-BUILD
else
    CC_FOR_BUILD="$CC"
    CXX_FOR_BUILD="$CXX"
fi




















UPD="`echo 3.5 | sed "s/\.//"`0"
SOURCEVERSION="OOO$UPD"



{ $as_echo "$as_me:$LINENO: checking whether to enable crashdump feature" >&5
$as_echo_n "checking whether to enable crashdump feature... " >&6; }
if test "$enable_crashdump" = "yes"; then
    ENABLE_CRASHDUMP="TRUE"
    BUILD_TYPE="$BUILD_TYPE CRASHREP"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_CRASHDUMP=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



if test "$_os" = "WINNT"; then

        BUILD_TYPE="$BUILD_TYPE TWAIN"

        { $as_echo "$as_me:$LINENO: checking whether to build a 64-bit LibreOffice" >&5
$as_echo_n "checking whether to build a 64-bit LibreOffice... " >&6; }
    if test "z$enable_cl_x64" = "z" -o "$enable_cl_x64" = "no"; then
        CL_X64=""
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    else
        CL_X64="TRUE"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    fi


    { $as_echo "$as_me:$LINENO: checking whether to use DirectX" >&5
$as_echo_n "checking whether to use DirectX... " >&6; }
    if test "$enable_directx" = "yes" -o "$enable_directx" = ""; then
        ENABLE_DIRECTX="TRUE"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        ENABLE_DIRECTX=""
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


    { $as_echo "$as_me:$LINENO: checking whether to use ActiveX" >&5
$as_echo_n "checking whether to use ActiveX... " >&6; }
    if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
        DISABLE_ACTIVEX=""
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        DISABLE_ACTIVEX="TRUE"
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


    { $as_echo "$as_me:$LINENO: checking whether to use ATL" >&5
$as_echo_n "checking whether to use ATL... " >&6; }
    if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE"; then
        DISABLE_ATL=""
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    elif test "$enable_atl" = ""; then
        if test "$WITH_MINGW" = "yes"; then
            DISABLE_ATL="TRUE"
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        else
            DISABLE_ATL=""
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        fi
    else
        DISABLE_ATL="TRUE"
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

fi

{ $as_echo "$as_me:$LINENO: checking whether to turn warnings to errors" >&5
$as_echo_n "checking whether to turn warnings to errors... " >&6; }
if test -n "$enable_werror" && test "$enable_werror" != "no"; then
    ENABLE_WERROR="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_WERROR="FALSE"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to do a debug build" >&5
$as_echo_n "checking whether to do a debug build... " >&6; }
if test -n "$enable_debug" && test "$enable_debug" != "no"; then
    ENABLE_DEBUG="TRUE"
    enable_symbols="yes"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_DEBUG="FALSE"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to build with additional debug utilities" >&5
$as_echo_n "checking whether to build with additional debug utilities... " >&6; }
if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
    PROEXT=""
    PRODUCT=""

    # Compiling with MSVC using --enable-dbgutil (i.e. using the
    # debugging runtime, and defining _DEBUG when compiling) just
    # causes too many compilation errors. After having spent some
    # months slowly fixing them one by one, having reached sw, I give
    # up. Feel free to try again.
    if test "$_os" = WINNT -a "$WITH_MINGW" != yes; then
        { { $as_echo "$as_me:$LINENO: error: Sorry, --enable-dbgutil won't work with MSVC" >&5
$as_echo "$as_me: error: Sorry, --enable-dbgutil won't work with MSVC" >&2;}
   { (exit 1); exit 1; }; }
    fi

    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    # cppunit and graphite expose STL in public headers
    if test "$with_system_cppunit" = "yes"; then
        { { $as_echo "$as_me:$LINENO: error: --with-system-cppunit conflicts with DBG_UTIL build" >&5
$as_echo "$as_me: error: --with-system-cppunit conflicts with DBG_UTIL build" >&2;}
   { (exit 1); exit 1; }; }
    else
        with_system_cppunit=no
    fi
    if test "$with_system_graphite" = "yes"; then
        { { $as_echo "$as_me:$LINENO: error: --with-system-graphite conflicts with DBG_UTIL build" >&5
$as_echo "$as_me: error: --with-system-graphite conflicts with DBG_UTIL build" >&2;}
   { (exit 1); exit 1; }; }
    else
        with_system_graphite=no
    fi
    if test "$with_system_mysql_cppconn" = "yes"; then
        { { $as_echo "$as_me:$LINENO: error: --with-system-mysql-cppconn conflicts with DBG_UTIL build" >&5
$as_echo "$as_me: error: --with-system-mysql-cppconn conflicts with DBG_UTIL build" >&2;}
   { (exit 1); exit 1; }; }
    else
        with_system_mysql_cppconn=no
    fi
    if test $_os = WINNT -a \
            \( "$enable_mozilla" != no -o \
               "$enable_build_mozilla" != no \); then
        # We can't build against the Mozilla stuff if using _DEBUG, will get linking errors
        # See connectivity/drivers/mozab
        { $as_echo "$as_me:$LINENO: WARNING: Also disabling Mozilla stuff then" >&5
$as_echo "$as_me: WARNING: Also disabling Mozilla stuff then" >&2;}
        enable_mozilla=no
        enable_build_mozilla=no
    fi
else
    PRODUCT="full"
    PROEXT=".pro"
    { $as_echo "$as_me:$LINENO: result: no, full product build" >&5
$as_echo "no, full product build" >&6; }
fi



{ $as_echo "$as_me:$LINENO: checking whether to use linkoo for the smoketest installation" >&5
$as_echo_n "checking whether to use linkoo for the smoketest installation... " >&6; }
if test "$enable_linkoo" = "no"; then
    DISABLE_LINKOO="TRUE"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    DISABLE_LINKOO=
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi


# Set the ENABLE_LTO variable
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking whether to use link-time optimization" >&5
$as_echo_n "checking whether to use link-time optimization... " >&6; }
if test -n "$enable_lto" -a "$enable_lto" != "no"; then
    ENABLE_LTO="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_LTO=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to include symbols" >&5
$as_echo_n "checking whether to include symbols... " >&6; }
if test -n "$enable_symbols" -a "$enable_symbols" != "no"; then
    ENABLE_SYMBOLS="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_SYMBOLS=
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to strip the solver or not." >&5
$as_echo_n "checking whether to strip the solver or not.... " >&6; }
if test "z$enable_strip_solver" = "zno"; then
    DISABLE_STRIP="TRUE"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    if test -n "$ENABLE_SYMBOLS"; then
        DISABLE_STRIP="TRUE"
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    else
        DISABLE_STRIP=
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    fi
fi


if test "$test_cups" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking whether cups support is present" >&5
$as_echo_n "checking whether cups support is present... " >&6; }

{ $as_echo "$as_me:$LINENO: checking for cupsPrintFiles in -lcups" >&5
$as_echo_n "checking for cupsPrintFiles in -lcups... " >&6; }
if test "${ac_cv_lib_cups_cupsPrintFiles+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcups  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cupsPrintFiles ();
int
main ()
{
return cupsPrintFiles ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_cups_cupsPrintFiles=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_cups_cupsPrintFiles=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsPrintFiles" >&5
$as_echo "$ac_cv_lib_cups_cupsPrintFiles" >&6; }
if test "x$ac_cv_lib_cups_cupsPrintFiles" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCUPS 1
_ACEOF

  LIBS="-lcups $LIBS"

fi

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_stdc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_stdc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


if test "${ac_cv_header_cups_cups_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for cups/cups.h" >&5
$as_echo_n "checking for cups/cups.h... " >&6; }
if test "${ac_cv_header_cups_cups_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
$as_echo "$ac_cv_header_cups_cups_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
$as_echo_n "checking cups/cups.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <cups/cups.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
$as_echo_n "checking cups/cups.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <cups/cups.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: cups/cups.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: cups/cups.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: cups/cups.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: cups/cups.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for cups/cups.h" >&5
$as_echo_n "checking for cups/cups.h... " >&6; }
if test "${ac_cv_header_cups_cups_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_cups_cups_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
$as_echo "$ac_cv_header_cups_cups_h" >&6; }

fi
if test "x$ac_cv_header_cups_cups_h" = x""yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_CUPS_H 1
_ACEOF

fi


    if test "$ac_cv_lib_cups_cupsPrintFiles" != "yes" -a "$ac_cv_header_cups_cups_h" != "yes"; then
        { { $as_echo "$as_me:$LINENO: error: Could not find CUPS. Install libcupsys2-dev or cups???-devel." >&5
$as_echo "$as_me: error: Could not find CUPS. Install libcupsys2-dev or cups???-devel." >&2;}
   { (exit 1); exit 1; }; }
    fi
fi


# check for fontconfig support
{ $as_echo "$as_me:$LINENO: checking whether we need fontconfig" >&5
$as_echo_n "checking whether we need fontconfig... " >&6; }
if test "z$test_fontconfig" = "zyes"; then
    ENABLE_FONTCONFIG="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }


if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	else
		{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
		PKG_CONFIG=""
	fi

fi

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
$as_echo_n "checking for FONTCONFIG... " >&6; }

if test -n "$FONTCONFIG_CFLAGS"; then
    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$FONTCONFIG_LIBS"; then
    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.2.0" 2>&1`
        else
	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.2.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$FONTCONFIG_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (fontconfig >= 2.2.0) were not met:

$FONTCONFIG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (fontconfig >= 2.2.0) were not met:

$FONTCONFIG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    ENABLE_FONTCONFIG=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi




if test -z "$TARFILE_LOCATION"; then
    TARFILE_LOCATION="DEFAULT"
fi


{ $as_echo "$as_me:$LINENO: checking whether we want to fetch tarballs" >&5
$as_echo_n "checking whether we want to fetch tarballs... " >&6; }
if test "z$enable_fetch_external" != "zno" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    DO_FETCH_TARBALLS="YES"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    DO_FETCH_TARBALLS="NO"
fi



{ $as_echo "$as_me:$LINENO: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
$as_echo_n "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... " >&6; }
if test "$enable_binfilter" = "no"; then
    WITH_BINFILTER="NO"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    WITH_BINFILTER="YES"
    BUILD_TYPE="$BUILD_TYPE BINFILTER"
    GIT_REPO_NAMES="$GIT_REPO_NAMES binfilter"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to build help" >&5
$as_echo_n "checking whether to build help... " >&6; }
if test "$with_help" != "no" -a $_os != iOS -a $_os != Android; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    BUILD_TYPE="$BUILD_TYPE HELP"
    SCPDEFS="$SCPDEFS -DWITH_HELP"
    GIT_REPO_NAMES="$GIT_REPO_NAMES help"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

if test "$enable_ugly" = "yes"; then
    BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
    SCPDEFS="$SCPDEFS -DWITH_UGLY"
    ENABLE_UGLY=YES
else
    ENABLE_UGLY=NO
fi


{ $as_echo "$as_me:$LINENO: checking whether to use RPATH in shared libraries" >&5
$as_echo_n "checking whether to use RPATH in shared libraries... " >&6; }
if test "$enable_rpath" = "no"; then
    ENABLE_RPATH="no"
else
    ENABLE_RPATH="yes"
fi
{ $as_echo "$as_me:$LINENO: result: $ENABLE_RPATH" >&5
$as_echo "$ENABLE_RPATH" >&6; }


{ $as_echo "$as_me:$LINENO: checking whether to include MySpell dictionaries" >&5
$as_echo_n "checking whether to include MySpell dictionaries... " >&6; }
if test -z "$with_myspell_dicts" || test "$with_myspell_dicts" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_MYSPELL_DICTS=YES
    BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
    GIT_REPO_NAMES="$GIT_REPO_NAMES dictionaries"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_MYSPELL_DICTS=NO
fi


{ $as_echo "$as_me:$LINENO: checking whether to use dicts from external paths" >&5
$as_echo_n "checking whether to use dicts from external paths... " >&6; }
if test -n "$with_system_dicts" -a "$with_system_dicts" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    SYSTEM_DICTS=YES
    { $as_echo "$as_me:$LINENO: checking for spelling dictionary directory" >&5
$as_echo_n "checking for spelling dictionary directory... " >&6; }
    if test -n "$with_external_dict_dir"; then
        DICT_SYSTEM_DIR=file://$with_external_dict_dir
    else
        DICT_SYSTEM_DIR=file:///usr/share/hunspell
    fi
    { $as_echo "$as_me:$LINENO: result: $DICT_SYSTEM_DIR" >&5
$as_echo "$DICT_SYSTEM_DIR" >&6; }
    { $as_echo "$as_me:$LINENO: checking for hyphenation patterns directory" >&5
$as_echo_n "checking for hyphenation patterns directory... " >&6; }
    if test -n "$with_external_hyph_dir"; then
        HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
    else
        HYPH_SYSTEM_DIR=file:///usr/share/hyphen
    fi
    { $as_echo "$as_me:$LINENO: result: $HYPH_SYSTEM_DIR" >&5
$as_echo "$HYPH_SYSTEM_DIR" >&6; }
    { $as_echo "$as_me:$LINENO: checking for thesaurus directory" >&5
$as_echo_n "checking for thesaurus directory... " >&6; }
    if test -n "$with_external_thes_dir"; then
        THES_SYSTEM_DIR=file://$with_external_thes_dir
    else
        THES_SYSTEM_DIR=file:///usr/share/mythes
    fi
    { $as_echo "$as_me:$LINENO: result: $THES_SYSTEM_DIR" >&5
$as_echo "$THES_SYSTEM_DIR" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    SYSTEM_DICTS=NO
fi





{ $as_echo "$as_me:$LINENO: checking whether to enable pch feature" >&5
$as_echo_n "checking whether to enable pch feature... " >&6; }
{ $as_echo "$as_me:$LINENO: result: no, obsolete" >&5
$as_echo "no, obsolete" >&6; }

{ $as_echo "$as_me:$LINENO: checking for GNU make" >&5
$as_echo_n "checking for GNU make... " >&6; }

# try to use our own make if it is available and GNUMAKE was not already defined
if test -z "$GNUMAKE"; then
    if test -x "/opt/lo/bin/make"; then
        GNUMAKE="/opt/lo/bin/make"
    fi
fi

for a in "$MAKE" $GNUMAKE make gmake gnumake; do
    $a --version 2> /dev/null | grep GNU  2>&1 > /dev/null
    if test $? -eq 0;  then
        GNUMAKE=$a
        break
    fi
done
{ $as_echo "$as_me:$LINENO: result: $GNUMAKE" >&5
$as_echo "$GNUMAKE" >&6; }
if test -z "$GNUMAKE"; then
    { { $as_echo "$as_me:$LINENO: error: not found. install GNU make." >&5
$as_echo "$as_me: error: not found. install GNU make." >&2;}
   { (exit 1); exit 1; }; }
fi

{ $as_echo "$as_me:$LINENO: checking the GNU make version" >&5
$as_echo_n "checking the GNU make version... " >&6; }
_make_version=`$GNUMAKE --version | grep GNU | grep -v GPL | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
if test "$_make_longver" -ge "038200" ; then
    { $as_echo "$as_me:$LINENO: result: $GNUMAKE $_make_version" >&5
$as_echo "$GNUMAKE $_make_version" >&6; }

elif test "$_make_longver" -ge "038100" ; then
    { $as_echo "$as_me:$LINENO: result: $GNUMAKE $_make_version" >&5
$as_echo "$GNUMAKE $_make_version" >&6; }
    { $as_echo "$as_me:$LINENO: checking for GNU make bug 20033" >&5
$as_echo_n "checking for GNU make bug 20033... " >&6; }
    TESTGMAKEBUG20033=`mktemp -d`
    cat > $TESTGMAKEBUG20033/Makefile << EOF
A := \$(wildcard *.a)

.PHONY: all
all: \$(A:.a=.b)
	@echo survived bug20033. #dont kill these tabs, you will break the Makefile!!!!

.PHONY: setup
setup:
	@touch 1.a 2.a 3.a 4.a 5.a 6.a

define d1
@echo lala \$(1)
@sleep 1
endef

define d2
@echo tyty \$(1)
@sleep 1
endef

%.b : %.a
	\$(eval CHECKSUM := \$(word 1,\$(shell cat \$^ | sha1sum))) \$(if \$(wildcard \$(CACHEDIR)/\$(CHECKSUM)),\
	\$(call d1,\$(CHECKSUM)),\
	\$(call d2,\$(CHECKSUM)))
EOF
    if test -z "`(cd $TESTGMAKEBUG20033 && $GNUMAKE setup && $GNUMAKE -j)|grep survived`"; then
        no_parallelism_make="YES"
        { $as_echo "$as_me:$LINENO: result: yes, disable parallelism" >&5
$as_echo "yes, disable parallelism" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no, keep parallelism enabled" >&5
$as_echo "no, keep parallelism enabled" >&6; }
    fi
    rm -rf $TESTGMAKEBUG20033
else
    { { $as_echo "$as_me:$LINENO: error: failed ($GNUMAKE version >= 3.81 needed" >&5
$as_echo "$as_me: error: failed ($GNUMAKE version >= 3.81 needed" >&2;}
   { (exit 1); exit 1; }; }
fi


_make_ver_check=`$GNUMAKE --version | grep LibreOffice`;
STALE_MAKE=
make_warning=
if test "z$_make_ver_check" = "z"; then
   STALE_MAKE=TRUE
fi


if test "$_os" = "SunOS"; then
    if test "$CC" = "cc"; then
        for ac_prog in cc
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path__cc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $_cc in
  [\\/]* | ?:[\\/]*)
  ac_cv_path__cc="$_cc" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
_cc=$ac_cv_path__cc
if test -n "$_cc"; then
  { $as_echo "$as_me:$LINENO: result: $_cc" >&5
$as_echo "$_cc" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$_cc" && break
done

        COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
        { $as_echo "$as_me:$LINENO: checking the SunStudio C/C++ compiler version" >&5
$as_echo_n "checking the SunStudio C/C++ compiler version... " >&6; }
                _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | $SED -e 's/.* C //'`
        _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
        _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
        if test "$_sunstudio_major" != "5"; then
            { { $as_echo "$as_me:$LINENO: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&5
$as_echo "$as_me: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&2;}
   { (exit 1); exit 1; }; }
        else
            _sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
            if test "$_sunstudio_minor" = "false"; then
                { { $as_echo "$as_me:$LINENO: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&5
$as_echo "$as_me: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&2;}
   { (exit 1); exit 1; }; }
            else
                                { $as_echo "$as_me:$LINENO: result: checked" >&5
$as_echo "checked" >&6; }
            fi
        fi
    fi
fi

HAVE_LD_HASH_STYLE=FALSE
WITH_LINKER_HASH_STYLE=
{ $as_echo "$as_me:$LINENO: checking for --hash-style gcc linker support " >&5
$as_echo_n "checking for --hash-style gcc linker support ... " >&6; }
if test "$GCC" = "yes" ; then
    if test -z "$with_linker_hash_style" -o "$with_linker_hash_style" = "yes" ; then
        hash_styles="gnu sysv"
    elif test "$with_linker_hash_style" = "no" ; then
        hash_styles=
    else
        hash_styles="$with_linker_hash_style"
    fi

    for hash_style in $hash_styles ; do
        test "$HAVE_LD_HASH_STYLE" = "TRUE" && continue
        hash_style_ldflags_save=$LDFLAGS
        LDFLAGS="$LDFLAGS -Wl,--hash-style=$hash_style"

        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>

int
main ()
{

printf ("");

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
   if ./conftest$EXEEXT; then
                  HAVE_LD_HASH_STYLE=TRUE
                  WITH_LINKER_HASH_STYLE=$hash_style
              fi
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	HAVE_LD_HASH_STYLE=FALSE
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        LDFLAGS=$hash_style_ldflags_save
    done

    if test "$HAVE_LD_HASH_STYLE" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: result: $WITH_LINKER_HASH_STYLE " >&5
$as_echo "$WITH_LINKER_HASH_STYLE " >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no " >&5
$as_echo "no " >&6; }
    fi
    LDFLAGS=$hash_style_ldflags_save
else
    { $as_echo "$as_me:$LINENO: result: no " >&5
$as_echo "no " >&6; }
fi



if test -z "$with_perl_home"; then
    # Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PERL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


else
    test "$build_os" = "cygwin" && with_perl_home=`cygpath -u "$with_perl_home"`
    _perl_path="$with_perl_home/bin/perl"
    if test -x "$_perl_path"; then
        PERL=$_perl_path
    else
        { { $as_echo "$as_me:$LINENO: error: $_perl_path not found" >&5
$as_echo "$as_me: error: $_perl_path not found" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

if test "$PERL"; then
    { $as_echo "$as_me:$LINENO: checking the Perl version" >&5
$as_echo_n "checking the Perl version... " >&6; }
    ${PERL} -e "exit($]);"
    _perl_version=$?
    if test "$_perl_version" -lt 5; then
        { { $as_echo "$as_me:$LINENO: error: found Perl version \"$_perl_version\", use version 5 of Perl" >&5
$as_echo "$as_me: error: found Perl version \"$_perl_version\", use version 5 of Perl" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: checked (perl $_perl_version)" >&5
$as_echo "checked (perl $_perl_version)" >&6; }
else
    { { $as_echo "$as_me:$LINENO: error: Perl not found, install version 5 of Perl" >&5
$as_echo "$as_me: error: Perl not found, install version 5 of Perl" >&2;}
   { (exit 1); exit 1; }; }
fi



{ $as_echo "$as_me:$LINENO: checking for required Perl modules" >&5
$as_echo_n "checking for required Perl modules... " >&6; }
if `$PERL -e 'use Archive::Zip; use Cwd;'`; then
    { $as_echo "$as_me:$LINENO: result: all modules found" >&5
$as_echo "all modules found" >&6; }
else
    { { $as_echo "$as_me:$LINENO: error: Failed to find some modules" >&5
$as_echo "$as_me: error: Failed to find some modules" >&2;}
   { (exit 1); exit 1; }; }
fi

SHOWINCLUDES_PREFIX=
if test "$_os" = "WINNT"; then
    if test "$WITH_MINGW" != "yes"; then
        { $as_echo "$as_me:$LINENO: checking for a friendly Microsoft C/C++ compiler installation path" >&5
$as_echo_n "checking for a friendly Microsoft C/C++ compiler installation path... " >&6; }
        if test -z "$with_cl_home"; then
            vctest=`./oowintool --msvc-productdir`;
            if test "$CL_X64" = ""; then
                if test -x "$vctest/bin/cl.exe"; then
                    with_cl_home=$vctest;
                fi
            else
                if test -x "$vctest/bin/amd64/cl.exe"; then
                    with_cl_home=$vctest;
                fi
            fi
        else
            with_cl_home=`cygpath -u "$with_cl_home"`
        fi
        with_cl_home=`cygpath -d "$with_cl_home"`
        with_cl_home=`cygpath -u "$with_cl_home"`
        { $as_echo "$as_me:$LINENO: result: $with_cl_home" >&5
$as_echo "$with_cl_home" >&6; }

                                        if test -n "$with_mspdb_path";then
            with_mspdb_path=`cygpath -u "$with_mspdb_path"`
        fi
        if test -e "$with_mspdb_path/mspdb80.dll" -o -e "$with_mspdb_path/mspdb100.dll"; then
            MSPDB_PATH="$with_mspdb_path"
        fi
                if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
            MSPDB_PATH="$with_cl_home/../Common7/IDE"
        fi
                if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
            MSPDB_PATH="$with_cl_home/bin"
        fi
                if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb100.dll"; then
            MSPDB_PATH="$with_cl_home/../Common7/IDE"
        fi

        if test -z "$MSPDB_PATH";then
                        # Extract the first word of "mspdb80.dll", so it can be a program name with args.
set dummy mspdb80.dll; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MSPDB_PATH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MSPDB_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
MSPDB_PATH=$ac_cv_path_MSPDB_PATH
if test -n "$MSPDB_PATH"; then
  { $as_echo "$as_me:$LINENO: result: $MSPDB_PATH" >&5
$as_echo "$MSPDB_PATH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


            # Extract the first word of "mspdb100.dll", so it can be a program name with args.
set dummy mspdb100.dll; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MSPDB_PATH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MSPDB_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
MSPDB_PATH=$ac_cv_path_MSPDB_PATH
if test -n "$MSPDB_PATH"; then
  { $as_echo "$as_me:$LINENO: result: $MSPDB_PATH" >&5
$as_echo "$MSPDB_PATH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


            MSPDB_PATH=`dirname "$MSPDB_PATH"`
        fi

        if test -z "$MSPDB_PATH"; then
            { { $as_echo "$as_me:$LINENO: error: You need a mspdb80.dllor mspdb100.dll, make sure it is in the path or use --with-mspdb-path" >&5
$as_echo "$as_me: error: You need a mspdb80.dllor mspdb100.dll, make sure it is in the path or use --with-mspdb-path" >&2;}
   { (exit 1); exit 1; }; }
        fi
        MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
        MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
                PATH="$MSPDB_PATH:$PATH"

        { $as_echo "$as_me:$LINENO: checking the Microsoft C/C++ Compiler" >&5
$as_echo_n "checking the Microsoft C/C++ Compiler... " >&6; }
        if test -z "$CC"; then
            if test "$CL_X64" = ""; then
                if test -x "$with_cl_home/bin/cl.exe"; then
                    CC="$with_cl_home/bin/cl.exe"
                fi
            else
                if test -x "$with_cl_home/bin/amd64/cl.exe"; then
                    CC="$with_cl_home/bin/amd64/cl.exe"
                fi
            fi
            if test -z "$CC"; then
                # Extract the first word of "cl.exe", so it can be a program name with args.
set dummy cl.exe; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CC="$CC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
CC=$ac_cv_path_CC
if test -n "$CC"; then
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


            fi
            # This gives us a posix path with 8.3 filename restrictions
            CC=`cygpath -d "$CC"`
            CC=`cygpath -u "$CC"`
        fi

        if test -n "$CC"; then
            # Remove /cl.exe from CC case insensitive
            { $as_echo "$as_me:$LINENO: result: found ($CC)" >&5
$as_echo "found ($CC)" >&6; }
            if test "$CL_X64" = ""; then
                COMPATH=`echo $CC | $SED -e 's@\/[Bb][Ii][Nn]\/[cC][lL]\.[eE][xX][eE].*@@' -e 's@^.* @@'`
            else
                if test -n "$with_cl_home"; then
                    COMPATH=`echo $with_cl_home`
                fi
            fi
            export INCLUDE=`cygpath -d "$COMPATH/Include"`
                        { $as_echo "$as_me:$LINENO: checking the Version of Microsoft C/C++ Compiler" >&5
$as_echo_n "checking the Version of Microsoft C/C++ Compiler... " >&6; }
            # The following finds Microsoft, matches nn.nn.nnnn then pulls numbers out.
            CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
                            x = match( \\\$0, /..\\...\\...../ )
                            CCversion = substr( \\\$0, RSTART, RLENGTH)
                            tokencount = split (CCversion,vertoken,\".\")
                            for ( i = 1 ; i <= tokencount ; i++ ) {
                                printf (\"%04d\",vertoken[i] )
                            }
                            }"`
            if test "$CCNUMVER" -ge "001600000000"; then
                COMEX=13
                MSVSVER=2010
            elif test "$CCNUMVER" -ge "001500000000"; then
                COMEX=12
                MSVSVER=2008
            else
                { { $as_echo "$as_me:$LINENO: error: Compiler too old. Use Microsoft Visual Studio 2008 or 2010." >&5
$as_echo "$as_me: error: Compiler too old. Use Microsoft Visual Studio 2008 or 2010." >&2;}
   { (exit 1); exit 1; }; }
            fi
            { $as_echo "$as_me:$LINENO: result: found compiler version $CCNUMVER (MSVS $MSVSVER)." >&5
$as_echo "found compiler version $CCNUMVER (MSVS $MSVSVER)." >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." >&5
$as_echo "$as_me: error: Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." >&2;}
   { (exit 1); exit 1; }; }
        fi

                        { $as_echo "$as_me:$LINENO: checking the dependency generation prefix (cl.exe -showIncludes)" >&5
$as_echo_n "checking the dependency generation prefix (cl.exe -showIncludes)... " >&6; }
        echo "#include <stdlib.h>" > conftest.c
        SHOWINCLUDES_PREFIX=`$CC -c -showIncludes conftest.c 2>/dev/null | \
            grep 'stdlib\.h' | head -n1 | sed 's/ [[:alpha:]]:.*//'`
        rm -f conftest.c conftest.obj
        if test -z "$SHOWINCLUDES_PREFIX" ; then
            { { $as_echo "$as_me:$LINENO: error: cannot determine the -showIncludes prefix" >&5
$as_echo "$as_me: error: cannot determine the -showIncludes prefix" >&2;}
   { (exit 1); exit 1; }; }
        else
            { $as_echo "$as_me:$LINENO: result: \"$SHOWINCLUDES_PREFIX\"" >&5
$as_echo "\"$SHOWINCLUDES_PREFIX\"" >&6; }
        fi

        # Check for 64-bit (cross-)compiler to use to build the 64-bit
        # version of the Explorer extension (and maybe other small
        # bits, too) needed when installing a 32-bit LibreOffice on a
        # 64-bit OS. The 64-bit Explorer extension is a feature that
        # has been present since long in OOo. Don't confuse it with
        # building LibreOffice itself as 64-bit code, which is
        # unfished work and highly experimental.

        BUILD_X64=
        CC_X64_BINARY=
        LINK_X64_BINARY=
        LIBMGR_X64_BINARY=

        { $as_echo "$as_me:$LINENO: checking for a x64 compiler and libraries for 64bit ActiveX component" >&5
$as_echo_n "checking for a x64 compiler and libraries for 64bit ActiveX component... " >&6; }
        if test "$CL_X64" = "" -a -f "$with_cl_home/atlmfc/lib/amd64/atls.lib"; then
            # Prefer native x64 compiler to cross-compiler, in case we are running
            # the build on a 64-bit OS.
            if "$with_cl_home/bin/amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
                BUILD_X64=TRUE
                CC_X64_BINARY="$with_cl_home/bin/amd64/cl.exe"
                CXX_X64_BINARY="$with_cl_home/bin/amd64/cl.exe"
                LINK_X64_BINARY="$with_cl_home/bin/amd64/link.exe"
                LIBMGR_X64_BINARY="$with_cl_home/bin/amd64/lib.exe"
            elif "$with_cl_home/bin/x86_amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
                BUILD_X64=TRUE
                CC_X64_BINARY="$with_cl_home/bin/x86_amd64/cl.exe"
                CXX_X64_BINARY="$with_cl_home/bin/x86_amd64/cl.exe"
                LINK_X64_BINARY="$with_cl_home/bin/x86_amd64/link.exe"
                LIBMGR_X64_BINARY="$with_cl_home/bin/x86_amd64/lib.exe"
            fi
        fi
        if test "$BUILD_X64" = TRUE; then
            { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
        else
            { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
            { $as_echo "$as_me:$LINENO: WARNING: Installation set will not contain the 64-bit Explorer extension" >&5
$as_echo "$as_me: WARNING: Installation set will not contain the 64-bit Explorer extension" >&2;}
        fi


        # These are passed to the environment through set_soenv.in as usual, and then
        # used in set_wntx64.mk





    else
        { $as_echo "$as_me:$LINENO: checking the compiler is MinGW" >&5
$as_echo_n "checking the compiler is MinGW... " >&6; }
        MACHINE_PREFIX=`$CC -dumpmachine`
        if echo $MACHINE_PREFIX | grep -q mingw32; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: Compiler is not MinGW." >&5
$as_echo "$as_me: error: Compiler is not MinGW." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
fi




if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then


if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	else
		{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
		PKG_CONFIG=""
	fi

fi
fi

if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then

    # If you use CC=/path/to/compiler/foo-gcc or even CC="ccache
    # /path/to/compiler/foo-gcc" you need to set the AR etc env vars
    # explicitly. Or put /path/to/compiler in PATH yourself.

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_AR+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_AR="${ac_tool_prefix}ar"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_AR"; then
  ac_ct_AR=$AR
  # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_AR="ar"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_AR" = x; then
    AR=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
else
  AR="$ac_cv_prog_AR"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
set dummy ${ac_tool_prefix}nm; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_NM+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$NM"; then
  ac_cv_prog_NM="$NM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_NM="${ac_tool_prefix}nm"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
NM=$ac_cv_prog_NM
if test -n "$NM"; then
  { $as_echo "$as_me:$LINENO: result: $NM" >&5
$as_echo "$NM" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_NM"; then
  ac_ct_NM=$NM
  # Extract the first word of "nm", so it can be a program name with args.
set dummy nm; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_NM"; then
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_NM="nm"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_NM=$ac_cv_prog_ac_ct_NM
if test -n "$ac_ct_NM"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
$as_echo "$ac_ct_NM" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_NM" = x; then
    NM=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    NM=$ac_ct_NM
  fi
else
  NM="$ac_cv_prog_NM"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ac_tool_prefix}objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$OBJDUMP"; then
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
$as_echo "$OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_OBJDUMP"; then
  ac_ct_OBJDUMP=$OBJDUMP
  # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_OBJDUMP"; then
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
if test -n "$ac_ct_OBJDUMP"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
$as_echo "$ac_ct_OBJDUMP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_OBJDUMP" = x; then
    OBJDUMP=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    OBJDUMP=$ac_ct_OBJDUMP
  fi
else
  OBJDUMP="$ac_cv_prog_OBJDUMP"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

    if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

    if test "$_os" = "WINNT"; then
        if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$DLLTOOL"; then
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
$as_echo "$DLLTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_DLLTOOL"; then
  ac_ct_DLLTOOL=$DLLTOOL
  # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_DLLTOOL"; then
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
if test -n "$ac_ct_DLLTOOL"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
$as_echo "$ac_ct_DLLTOOL" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_DLLTOOL" = x; then
    DLLTOOL=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    DLLTOOL=$ac_ct_DLLTOOL
  fi
else
  DLLTOOL="$ac_cv_prog_DLLTOOL"
fi

        if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
set dummy ${ac_tool_prefix}windres; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_WINDRES+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$WINDRES"; then
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
WINDRES=$ac_cv_prog_WINDRES
if test -n "$WINDRES"; then
  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
$as_echo "$WINDRES" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_WINDRES"; then
  ac_ct_WINDRES=$WINDRES
  # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_WINDRES"; then
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_WINDRES="windres"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
if test -n "$ac_ct_WINDRES"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
$as_echo "$ac_ct_WINDRES" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_WINDRES" = x; then
    WINDRES=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    WINDRES=$ac_ct_WINDRES
  fi
else
  WINDRES="$ac_cv_prog_WINDRES"
fi

    fi
fi










if test $_os = Darwin; then
    { $as_echo "$as_me:$LINENO: checking for bogus pkg-config" >&5
$as_echo_n "checking for bogus pkg-config... " >&6; }
    if test -n "$PKG_CONFIG"; then
        if test "$PKG_CONFIG" = /usr/bin/pkg-config && ls -l /usr/bin/pkg-config | grep -q Mono.framework; then
            { $as_echo "$as_me:$LINENO: result: yes, from Mono" >&5
$as_echo "yes, from Mono" >&6; }
        else
            { $as_echo "$as_me:$LINENO: result: yes, from unknown origin" >&5
$as_echo "yes, from unknown origin" >&6; }
        fi
        { $as_echo "$as_me:$LINENO: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&5
$as_echo "$as_me: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&2;}
        echo "Having a $PKG_CONFIG might have unexpected consequences, please consider hiding it" >>warn
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi

if test "$build_os" = "cygwin"; then
        # Extract the first word of "midl.exe", so it can be a program name with args.
set dummy midl.exe; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MIDL_PATH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MIDL_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MIDL_PATH="$MIDL_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MIDL_PATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
MIDL_PATH=$ac_cv_path_MIDL_PATH
if test -n "$MIDL_PATH"; then
  { $as_echo "$as_me:$LINENO: result: $MIDL_PATH" >&5
$as_echo "$MIDL_PATH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    if test -n "$MIDL_PATH";then
        MIDL_PATH=`dirname "$MIDL_PATH"`
    fi
    if test -n "$with_midl_path";then
        with_midl_path=`cygpath -u "$with_midl_path"`
    fi
    if test -x "$with_midl_path/midl.exe"; then
        MIDL_PATH="$with_midl_path"
    fi
    if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
        MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
    fi
    if test -z "$MIDL_PATH" ; then
        vstest=`./oowintool --msvs-productdir`;
        if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
            MIDL_PATH="$vstest/Common7/Tools/Bin"
        fi
    fi
    if test -z "$MIDL_PATH" ; then
        winsdktest=`./oowintool --windows-sdk-home`
        if test -x "$winsdktest/Bin/midl.exe" ; then
            MIDL_PATH="$winsdktest/Bin"
        fi
    fi
    if test ! -x "$MIDL_PATH/midl.exe"; then
        { { $as_echo "$as_me:$LINENO: error: midl.exe not found. Make sure it's in PATH or use --with-midl-path" >&5
$as_echo "$as_me: error: midl.exe not found. Make sure it's in PATH or use --with-midl-path" >&2;}
   { (exit 1); exit 1; }; }
    fi
    # Convert to posix path with 8.3 filename restrictions ( No spaces )
    MIDL_PATH=`cygpath -d "$MIDL_PATH"`
    MIDL_PATH=`cygpath -u "$MIDL_PATH"`

        # Extract the first word of "csc.exe", so it can be a program name with args.
set dummy csc.exe; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CSC_PATH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $CSC_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CSC_PATH="$CSC_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CSC_PATH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
CSC_PATH=$ac_cv_path_CSC_PATH
if test -n "$CSC_PATH"; then
  { $as_echo "$as_me:$LINENO: result: $CSC_PATH" >&5
$as_echo "$CSC_PATH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    if test -n "$CSC_PATH";then
        CSC_PATH=`dirname "$CSC_PATH"`
    fi
    if test -n "$with_csc_path";then
        with_csc_path=`cygpath -u "$with_csc_path"`
    fi
    if test -x "$with_csc_path/csc.exe"; then
        CSC_PATH="$with_csc_path"
    else
       csctest=`./oowintool --csc-compilerdir`;
       if test -x "$csctest/csc.exe"; then
           CSC_PATH="$csctest"
       fi
    fi
    if test ! -x "$CSC_PATH/csc.exe"; then
        { { $as_echo "$as_me:$LINENO: error: csc.exe not found. Make sure it's in the path or use --with-csc-path" >&5
$as_echo "$as_me: error: csc.exe not found. Make sure it's in the path or use --with-csc-path" >&2;}
   { (exit 1); exit 1; }; }
    fi
    # Convert to posix path with 8.3 filename restrictions ( No spaces )
    CSC_PATH=`cygpath -d "$CSC_PATH"`
    CSC_PATH=`cygpath -u "$CSC_PATH"`

        { $as_echo "$as_me:$LINENO: checking .NET Framework" >&5
$as_echo_n "checking .NET Framework... " >&6; }
    if test -n "$with_dotnet_framework_home"; then
        with_dotnet_framework_home=`cygpath -u "$with_dotnet_framework_home"`
    fi
    if test -f "$with_dotnet_framework_home/lib/mscoree.lib"; then
        DOTNET_FRAMEWORK_HOME="$with_dotnet_framework_home"
    fi
    if test -z "$DOTNET_FRAMEWORK_HOME" ; then
        frametest=`./oowintool --dotnetsdk-dir`
        if test -f "$frametest/lib/mscoree.lib"; then
            DOTNET_FRAMEWORK_HOME="$frametest"
        else
            frametest=`./oowintool --windows-sdk-home`
            if test -f "$frametest/lib/mscoree.lib"; then
                DOTNET_FRAMEWORK_HOME="$frametest"
            fi
        fi
    fi
    if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib"; then
        { { $as_echo "$as_me:$LINENO: error: mscoree.lib (.NET Framework) not found. Make sure you use --with-dotnet-framework-home" >&5
$as_echo "$as_me: error: mscoree.lib (.NET Framework) not found. Make sure you use --with-dotnet-framework-home" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
    # Convert to posix path with 8.3 filename restrictions ( No spaces )
    DOTNET_FRAMEWORK_HOME=`cygpath -d "$DOTNET_FRAMEWORK_HOME"`
    DOTNET_FRAMEWORK_HOME=`cygpath -u "$DOTNET_FRAMEWORK_HOME"`



fi

if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if test "${ac_cv_header_stdc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_stdc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_stdc=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

fi


if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
$as_echo "$CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
$as_echo "$ac_ct_CXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# Provide some information about the compiler.
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
set X $ac_compile
ac_compiler=$2
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler --version >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -v >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compiler -V >&5") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_compiler_gnu=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_compiler_gnu=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
if test "${ac_cv_prog_cxx_g+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	CXXFLAGS=""
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_prog_cxx_g=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
$as_echo "$ac_cv_prog_cxx_g" >&6; }
if test "$ac_test_CXXFLAGS" = set; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    if test -n "$CC" -a -z "$CXX"; then
        CXX="$CC"
    fi
fi

if test "$GXX" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking the GNU C++ compiler version" >&5
$as_echo_n "checking the GNU C++ compiler version... " >&6; }

    _gpp_version=`$CXX -dumpversion`
    _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`

    if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$_gpp_majmin" -ge "401" ; then
        if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0" ; then
            export CXX="$GCC_HOME/bin/g++-4.0"
            _gpp_majmin_2=`$CXX -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
            if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401" ; then
                _gpp_majmin=$_gpp_majmin_2
            fi
        fi
        if test "$_gpp_majmin" -ge "401" ; then
            { { $as_echo "$as_me:$LINENO: error: You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" >&5
$as_echo "$as_me: error: You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" >&2;}
   { (exit 1); exit 1; }; }
        else
            { $as_echo "$as_me:$LINENO: result: implicitly using CXX=$CXX" >&5
$as_echo "implicitly using CXX=$CXX" >&6; }
        fi
    else
        { $as_echo "$as_me:$LINENO: result: checked (g++ $_gpp_version)" >&5
$as_echo "checked (g++ $_gpp_version)" >&6; }
    fi

    if test "$_gpp_majmin" = "304"; then
        { $as_echo "$as_me:$LINENO: checking whether $CXX has the enum bug" >&5
$as_echo_n "checking whether $CXX has the enum bug... " >&6; }
        if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

            extern "C" void abort (void);
            extern "C" void exit (int status);

            enum E { E0, E1, E2, E3, E4, E5 };

            void test (enum E e)
            {
                if (e == E2 || e == E3 || e == E1)
                    exit (1);
            }

            int main (void)
            {
                test (E4);
                test (E5);
                test (E0);
                return 0;
            }

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { { $as_echo "$as_me:$LINENO: error: your version of the GNU C++ compile has a bug which prevents LibreOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." >&5
$as_echo "$as_me: error: your version of the GNU C++ compile has a bug which prevents LibreOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." >&2;}
   { (exit 1); exit 1; }; }
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


    fi
fi

#
# prefx CXX with ccache if needed
#
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
    if test "$CCACHE" != "" ; then
        { $as_echo "$as_me:$LINENO: checking whether $CXX is already ccached" >&5
$as_echo_n "checking whether $CXX is already ccached... " >&6; }
        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        save_CXXFLAGS=$CXXFLAGS
        CXXFLAGS="$CXXFLAGS --ccache-skip -O2"

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  use_ccache=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	use_ccache=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
        if test $use_ccache = yes ; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        else
            CXX="$CCACHE $CXX"
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi
        CXXFLAGS=$save_CXXFLAGS
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    fi
fi


if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
$as_echo "$CXXCPP" >&6; }
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


                            if test "$_os" = "SunOS"; then
        CPP=$CXXCPP
    else
        ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi

rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # Broken: success on invalid input.
continue
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi

rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    fi
fi



if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then

    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if test "${ac_cv_sizeof_long+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_long=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (long))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (long))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (long))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_long=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if test "${ac_cv_sizeof_short+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_short=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (short)); }
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (short))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (short))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (short))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (short)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_short=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if test "${ac_cv_sizeof_int+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_int=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (int)); }
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (int))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (int))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (int))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (int)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_int=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if test "${ac_cv_sizeof_long_long+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_long_long=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (long long)); }
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (long long))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (long long))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (long long))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (long long)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of double" >&5
$as_echo_n "checking size of double... " >&6; }
if test "${ac_cv_sizeof_double+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_double=$ac_lo;;
'') if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_double=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (double)); }
static unsigned long int ulongval () { return (long int) (sizeof (double)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (double))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (double))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (double))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (double)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_double=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
$as_echo "$ac_cv_sizeof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:$LINENO: checking size of void*" >&5
$as_echo_n "checking size of void*... " >&6; }
if test "${ac_cv_sizeof_voidp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_voidp=$ac_lo;;
'') if test "$ac_cv_type_voidp" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (void*)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_voidp=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
static long int longval () { return (long int) (sizeof (void*)); }
static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) (sizeof (void*))) < 0)
    {
      long int i = longval ();
      if (i != ((long int) (sizeof (void*))))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) (sizeof (void*))))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_voidp=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_voidp" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute sizeof (void*)
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_sizeof_voidp=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
$as_echo "$ac_cv_sizeof_voidp" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
_ACEOF



    SIZEOF_SHORT=$ac_cv_sizeof_short
    SIZEOF_INT=$ac_cv_sizeof_int
    SIZEOF_LONG=$ac_cv_sizeof_long
    SIZEOF_LONGLONG=$ac_cv_sizeof_long_long
    SIZEOF_DOUBLE=$ac_cv_sizeof_double
    SIZEOF_POINTER=$ac_cv_sizeof_voidp




    # The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:$LINENO: checking alignment of short" >&5
$as_echo_n "checking alignment of short... " >&6; }
if test "${ac_cv_alignof_short+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_alignof_short=$ac_lo;;
'') if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of short
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_short=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ac__type_alignof_;
static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) offsetof (ac__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_alignof_short=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of short
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_short=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
$as_echo "$ac_cv_alignof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_SHORT $ac_cv_alignof_short
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:$LINENO: checking alignment of int" >&5
$as_echo_n "checking alignment of int... " >&6; }
if test "${ac_cv_alignof_int+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_alignof_int=$ac_lo;;
'') if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of int
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_int=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ac__type_alignof_;
static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) offsetof (ac__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_alignof_int=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of int
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_int=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
$as_echo "$ac_cv_alignof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_INT $ac_cv_alignof_int
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:$LINENO: checking alignment of long" >&5
$as_echo_n "checking alignment of long... " >&6; }
if test "${ac_cv_alignof_long+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_alignof_long=$ac_lo;;
'') if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of long
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_long=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ac__type_alignof_;
static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) offsetof (ac__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_alignof_long=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of long
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_long=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
$as_echo "$ac_cv_alignof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_LONG $ac_cv_alignof_long
_ACEOF


    # The cast to long int works around a bug in the HP C Compiler,
# see AC_CHECK_SIZEOF for more information.
{ $as_echo "$as_me:$LINENO: checking alignment of double" >&5
$as_echo_n "checking alignment of double... " >&6; }
if test "${ac_cv_alignof_double+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr $ac_mid + 1`
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_lo=$ac_mid; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_hi=`expr '(' $ac_mid ')' - 1`
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			ac_mid=`expr 2 '*' $ac_mid`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo= ac_hi=
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_hi=$ac_mid
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_lo=`expr '(' $ac_mid ')' + 1`
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_alignof_double=$ac_lo;;
'') if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of double
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_double=0
   fi ;;
esac
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stddef.h>

#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ac__type_alignof_;
static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (((long int) offsetof (ac__type_alignof_, y)) < 0)
    {
      long int i = longval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ((long int) offsetof (ac__type_alignof_, y)))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_alignof_double=`cat conftest.val`
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
if test "$ac_cv_type_double" = yes; then
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot compute alignment of double
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }; }
   else
     ac_cv_alignof_double=0
   fi
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.val
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
$as_echo "$ac_cv_alignof_double" >&6; }



cat >>confdefs.h <<_ACEOF
#define ALIGNOF_DOUBLE $ac_cv_alignof_double
_ACEOF



    ALIGNOF_SHORT=$ac_cv_alignof_short
    ALIGNOF_INT=$ac_cv_alignof_int
    ALIGNOF_LONG=$ac_cv_alignof_long
    ALIGNOF_DOUBLE=$ac_cv_alignof_double


 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if test "${ac_cv_c_bigendian+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then

	# Check for potential -arch flags.  It is not universal unless
	# there are some -arch flags.  Note that *ppc* also matches
	# ppc64.  This check is also rather less than ideal.
	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
	esac
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_bigendian=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_c_bigendian=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_c_bigendian=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_c_bigendian=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then
  # Try to guess by grepping values from an object file.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_bigendian=no
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_c_bigendian=yes
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


    fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF
;; #(
   no)
      ;; #(
   universal)

cat >>confdefs.h <<\_ACEOF
#define AC_APPLE_UNIVERSAL_BUILD 1
_ACEOF

     ;; #(
   *)
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
$as_echo "$as_me: error: unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   { (exit 1); exit 1; }; } ;;
 esac

    WORDS_BIGENDIAN=$ac_cv_c_bigendian

        # Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
if test "${ac_cv_sys_largefile_CC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_largefile_CC=' -n32'; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_file_offset_bits=no; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_file_offset_bits=64; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_file_offset_bits=unknown
  break
done
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF
;;
esac
rm -rf conftest*
  if test $ac_cv_sys_file_offset_bits = unknown; then
    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
if test "${ac_cv_sys_large_files+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_large_files=no; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_sys_large_files=1; break
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_large_files=unknown
  break
done
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
$as_echo "$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF
;;
esac
rm -rf conftest*
  fi
fi

    if test -n "$ac_cv_sys_file_offset_bits"; then
        LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
    fi
    if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
        LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
    fi
else
    # Hardcode for MSVC
    SIZEOF_SHORT=2
    SIZEOF_INT=4
    SIZEOF_LONG=4
    SIZEOF_LONGLONG=8
    if test "$CL_X64" = ""; then
        SIZEOF_POINTER=4
    else
        SIZEOF_POINTER=8
    fi
    ALIGNOF_SHORT=2
    ALIGNOF_INT=4
    ALIGNOF_LONG=4
    ALIGNOF_DOUBLE=8
    WORDS_BIGENDIAN=no
    LFS_CFLAGS=''
fi














if test "$cross_compiling" != "yes" -a "$enable_dbgutil" != "no" -a \
        -z "$VALGRIND_CFLAGS"; then
            prev_cppflags=$CPPFLAGS
    CPPFLAGS="-I/usr/include/valgrind"
    if test "${ac_cv_header_valgrind_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
$as_echo_n "checking for valgrind.h... " >&6; }
if test "${ac_cv_header_valgrind_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
$as_echo "$ac_cv_header_valgrind_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking valgrind.h usability" >&5
$as_echo_n "checking valgrind.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <valgrind.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking valgrind.h presence" >&5
$as_echo_n "checking valgrind.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <valgrind.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
$as_echo_n "checking for valgrind.h... " >&6; }
if test "${ac_cv_header_valgrind_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_valgrind_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
$as_echo "$ac_cv_header_valgrind_h" >&6; }

fi
if test "x$ac_cv_header_valgrind_h" = x""yes; then
  VALGRIND_CFLAGS=$CPPFLAGS
else
  unset ac_cv_header_valgrind_h
fi


    if test -z "$VALGRIND_CFLAGS"; then
        CPPFLAGS="-I/usr/local/include/valgrind"
        if test "${ac_cv_header_valgrind_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
$as_echo_n "checking for valgrind.h... " >&6; }
if test "${ac_cv_header_valgrind_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
$as_echo "$ac_cv_header_valgrind_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking valgrind.h usability" >&5
$as_echo_n "checking valgrind.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <valgrind.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking valgrind.h presence" >&5
$as_echo_n "checking valgrind.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <valgrind.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for valgrind.h" >&5
$as_echo_n "checking for valgrind.h... " >&6; }
if test "${ac_cv_header_valgrind_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_valgrind_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
$as_echo "$ac_cv_header_valgrind_h" >&6; }

fi
if test "x$ac_cv_header_valgrind_h" = x""yes; then
  VALGRIND_CFLAGS=$CPPFLAGS
fi


    fi
    if test -n "$VALGRIND_CFLAGS"; then
        CPPFLAGS=$VALGRIND_CFLAGS
        if test "${ac_cv_header_memcheck_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for memcheck.h" >&5
$as_echo_n "checking for memcheck.h... " >&6; }
if test "${ac_cv_header_memcheck_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_memcheck_h" >&5
$as_echo "$ac_cv_header_memcheck_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking memcheck.h usability" >&5
$as_echo_n "checking memcheck.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <memcheck.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking memcheck.h presence" >&5
$as_echo_n "checking memcheck.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <memcheck.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: memcheck.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: memcheck.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: memcheck.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: memcheck.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: memcheck.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: memcheck.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: memcheck.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: memcheck.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for memcheck.h" >&5
$as_echo_n "checking for memcheck.h... " >&6; }
if test "${ac_cv_header_memcheck_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_memcheck_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_memcheck_h" >&5
$as_echo "$ac_cv_header_memcheck_h" >&6; }

fi
if test "x$ac_cv_header_memcheck_h" = x""yes; then
  :
else
  VALGRIND_CFLAGS=""
fi


    fi
    CPPFLAGS=$prev_cppflags
fi


# Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
# often contains an i386 which is expanded as a macro.
if test "$GXX" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking for g++ include path" >&5
$as_echo_n "checking for g++ include path... " >&6; }
    if test -z "$with_gxx_include_path"; then
        with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
        if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
            with_gxx_include_path="/usr/include"
        fi
        if echo $with_gxx_include_path | grep -q linux; then
            # workaround for Mandriva - issue 100049
            with_gxx_include_path=`cd $with_gxx_include_path && pwd`
        fi
    fi
            if test -z "$with_gxx_include_path"; then
        with_gxx_include_path="NO_GXX_INCLUDE"
        { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $with_gxx_include_path" >&5
$as_echo "$with_gxx_include_path" >&6; }
    fi
else
    with_gxx_include_path="NO_GXX_INCLUDE"
fi
GXX_INCLUDE_PATH="$with_gxx_include_path"


if test "$WITH_MINGW" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking for MinGW include path" >&5
$as_echo_n "checking for MinGW include path... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
#include <stddef.h>
#include <bits/c++config.h>
_ACEOF
    _mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
    rm conftest.$ac_ext
    if test -z "$_mingw_lib_include_path"; then
        _mingw_lib_include_path="NO_LIB_INCLUDE"
        { $as_echo "$as_me:$LINENO: result: no MinGW include path" >&5
$as_echo "no MinGW include path" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: $_mingw_lib_include_path" >&5
$as_echo "$_mingw_lib_include_path" >&6; }
    fi
    MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"


    mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
    MINGW_CLIB_DIR=`dirname $mingw_crtbegin`

    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    { $as_echo "$as_me:$LINENO: checking for dynamic libgcc" >&5
$as_echo_n "checking for dynamic libgcc... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <iostream>
using namespace std;

int
main ()
{
 try { throw 42; } catch (int e) { cout << "Yep, " << e << endl; }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then

            MINGW_GCCDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libgcc' | $SED -e 's@.*DLL Name: @@'`
            if test -n "$MINGW_GCCDLL"; then
                MINGW_SHARED_GCCLIB=YES
                { $as_echo "$as_me:$LINENO: result:  $MINGW_GCCDLL" >&5
$as_echo " $MINGW_GCCDLL" >&6; }
            else
                MINGW_SHARED_GCCLIB=NO
                { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	 { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext

    { $as_echo "$as_me:$LINENO: checking for dynamic libstdc++" >&5
$as_echo_n "checking for dynamic libstdc++... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <iostream>
using namespace std;

int
main ()
{
 cout << "Hello there." << endl;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then

            MINGW_GXXDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libstdc++' | $SED -e 's@.*DLL Name: @@'`
            if test -n "$MINGW_GXXDLL"; then
                mingw_gxxdll_root=${MINGW_GXXDLL%.dll}
                mingw_gxxdll_root=${mingw_gxxdll_root#lib}
                MINGW_SHARED_LIBSTDCPP=-l$mingw_gxxdll_root
                MINGW_SHARED_GXXLIB=YES
                { $as_echo "$as_me:$LINENO: result: $MINGW_GXXDLL" >&5
$as_echo "$MINGW_GXXDLL" >&6; }
            else
                MINGW_SHARED_GXXLIB=NO
                { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            fi

else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	 { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu








fi

if test "$_os" = "SunOS"; then
        if test "$CC" = "cc"; then
    { $as_echo "$as_me:$LINENO: checking SunStudio C++ Compiler" >&5
$as_echo_n "checking SunStudio C++ Compiler... " >&6; }
        if test "$CXX" != "CC"; then
            { $as_echo "$as_me:$LINENO: WARNING: SunStudio C++ was not found" >&5
$as_echo "$as_me: WARNING: SunStudio C++ was not found" >&2;}
            echo "SunStudio C++ was not found" >> warn
        else
            { $as_echo "$as_me:$LINENO: result: checked" >&5
$as_echo "checked" >&6; }
        fi
    fi
fi

if test "$WITH_MINGW" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking exception type" >&5
$as_echo_n "checking exception type... " >&6; }
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <iostream>

        extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));


int
main ()
{
_Unwind_SjLj_RaiseException()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  exceptions_type="sjlj"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	exceptions_type="dwarf2"

fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    { $as_echo "$as_me:$LINENO: result: $exceptions_type" >&5
$as_echo "$exceptions_type" >&6; }
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi

EXCEPTIONS="$exceptions_type"


{ $as_echo "$as_me:$LINENO: checking Whether building STLPort library makes sense" >&5
$as_echo_n "checking Whether building STLPort library makes sense... " >&6; }
BUILD_STLPORT="no"
if test "$_os" = "Linux"; then
    case "$host_cpu" in
    i?86)
        case "$host_os" in
        k*bsd*-gnu*)
            BUILD_STLPORT="no"
            ;;
        *)
            BUILD_STLPORT="yes"
            ;;
        esac
        ;;
    *)
        BUILD_STLPORT="no"
        ;;
    esac
elif test "$_os" = "SunOS"; then
    BUILD_STLPORT="yes"
elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
    BUILD_STLPORT="yes"
elif test "$_os" = "FreeBSD"; then
    BUILD_STLPORT="yes"
fi
if test "$BUILD_STLPORT" = "yes" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking Whether STLPort library will be actually built" >&5
$as_echo_n "checking Whether STLPort library will be actually built... " >&6; }
if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
    with_stlport=$BUILD_STLPORT
fi
if test "$with_stlport" = "yes" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_STLPORT=YES
    SCPDEFS="$SCPDEFS -DWITH_STLPORT"
    BUILD_TYPE="$BUILD_TYPE STLPORT"
else
    WITH_STLPORT=NO
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



{ $as_echo "$as_me:$LINENO: checking whether $CXX supports thread safe statics" >&5
$as_echo_n "checking whether $CXX supports thread safe statics... " >&6; }
unset HAVE_THREADSAFE_STATICS
if test "$GCC" = "yes"; then
    save_CXXFLAGS=$CXXFLAGS
    CXXFLAGS="$CXXFLAGS -fthreadsafe-statics"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  HAVE_THREADSAFE_STATICS=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    CXXFLAGS=$save_CXXFLAGS
    if test "$HAVE_THREADSAFE_STATICS" = "TRUE"; then
                                                                                                                                                                                                                                                        if test "$_os" = "Darwin" -o "${GCCVER?}" -lt 040300; then
            unset HAVE_THREADSAFE_STATICS
            { $as_echo "$as_me:$LINENO: result: broken (i.e., no)" >&5
$as_echo "broken (i.e., no)" >&6; }
        else
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        fi
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: unknown (assuming no)" >&5
$as_echo "unknown (assuming no)" >&6; }
fi


if test "$GCC" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking whether $CC supports -fvisibility=hidden" >&5
$as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
    save_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
 return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
   HAVE_GCC_VISIBILITY_FEATURE=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    CFLAGS=$save_CFLAGS
    if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wno-long-double" >&5
$as_echo_n "checking whether $CC supports -Wno-long-double... " >&6; }
    save_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS -Werror -Wno-long-double"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
 return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
   HAVE_GCC_NO_LONG_DOUBLE=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    CFLAGS=$save_CFLAGS
    if test "$HAVE_GCC_NO_LONG_DOUBLE" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking whether $CC supports -mno-avx" >&5
$as_echo_n "checking whether $CC supports -mno-avx... " >&6; }
    save_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS -Werror -mno-avx"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
 return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
   HAVE_GCC_AVX=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    CFLAGS=$save_CFLAGS
    if test "$HAVE_GCC_AVX" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi

    { $as_echo "$as_me:$LINENO: checking whether $CC supports -std=c++0x without Language Defect 757" >&5
$as_echo_n "checking whether $CC supports -std=c++0x without Language Defect 757... " >&6; }
    save_CXXFLAGS=$CXXFLAGS
    CXXFLAGS="$CXXFLAGS -std=c++0x"
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stddef.h>

template <typename T, size_t S> char (&sal_n_array_size( T(&)[S] ))[S];

namespace
{
        struct b
        {
                int i;
                int j;
        };
}

int
main ()
{

struct a
{
        int i;
        int j;
};
a thinga[]={{0,0}, {1,1}};
b thingb[]={{0,0}, {1,1}};
size_t i = sizeof(sal_n_array_size(thinga));
size_t j = sizeof(sal_n_array_size(thingb));
return !(i != 0 && j != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  HAVE_CXX0X=TRUE
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    CXXFLAGS=$save_CXXFLAGS
    if test "$HAVE_CXX0X" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi





HAVE_GCC_VISIBILITY_BROKEN=
if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \) ; then

    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: checking if STL headers are visibility safe" >&5
$as_echo_n "checking if STL headers are visibility safe... " >&6; }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "visibility push" >/dev/null 2>&1; then
  stlvisok=yes
else
  stlvisok=no
fi
rm -f conftest*

        { $as_echo "$as_me:$LINENO: result: $stlvisok" >&5
$as_echo "$stlvisok" >&6; }
        if test "$stlvisok" = "no"; then
            { $as_echo "$as_me:$LINENO: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&5
$as_echo "$as_me: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&2;}
            echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
            unset HAVE_GCC_VISIBILITY_FEATURE
        fi
    fi

    if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
        sharedlink_ldflags_save=$LDFLAGS
        LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden -fpic -shared"

        { $as_echo "$as_me:$LINENO: checking if gcc is -fvisibility-inlines-hidden safe with STL headers" >&5
$as_echo_n "checking if gcc is -fvisibility-inlines-hidden safe with STL headers... " >&6; }
        cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sstream>
using namespace std;

int
main ()
{

istringstream strm( "test" ); return 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  $EGREP -q  unresolvable conftest.err;
            if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	gccvisok=no

fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
        { $as_echo "$as_me:$LINENO: result: $gccvisok" >&5
$as_echo "$gccvisok" >&6; }
        if test "$gccvisok" = "no"; then
            { $as_echo "$as_me:$LINENO: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&5
$as_echo "$as_me: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&2;}
            echo "Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >> warn
            HAVE_GCC_VISIBILITY_BROKEN="TRUE"
        fi

        LDFLAGS=$sharedlink_ldflags_save
    fi

    if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
        { $as_echo "$as_me:$LINENO: checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)" >&5
$as_echo_n "checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)... " >&6; }
        cat >visibility.cxx <<_ACEOF
#pragma GCC visibility push(hidden)
struct __attribute__ ((visibility ("default"))) TestStruct {
  static void Init();
};
__attribute__ ((visibility ("default"))) void TestFunc() {
  TestStruct::Init();
}
_ACEOF
        if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx 2>/dev/null > /dev/null; then
            gccvisbroken=yes
        else
            case "$host_cpu" in
            i?86|x86_64)
                if test "$_os" = "Darwin"; then
                    gccvisbroken=no
                else
                    if $EGREP -q '@PLT' visibility.s; then
                        gccvisbroken=no
                    else
                        gccvisbroken=yes
                    fi
                fi
                ;;
            *)
                gccvisbroken=no
                ;;
            esac
        fi
        rm -f visibility.s visibility.cxx

        { $as_echo "$as_me:$LINENO: result: $gccvisbroken" >&5
$as_echo "$gccvisbroken" >&6; }
        if test "$gccvisbroken" = "yes"; then
            { $as_echo "$as_me:$LINENO: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&5
$as_echo "$as_me: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&2;}
            echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
            unset HAVE_GCC_VISIBILITY_FEATURE
        fi
    fi

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi




{ $as_echo "$as_me:$LINENO: checking which memory allocator to use" >&5
$as_echo_n "checking which memory allocator to use... " >&6; }
if test "$with_alloc" = "system"; then
    { $as_echo "$as_me:$LINENO: result: system" >&5
$as_echo "system" >&6; }
    ALLOC="SYS_ALLOC";




for ac_func in malloc realloc calloc free
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi
if test "$with_alloc" = "tcmalloc"; then
    { $as_echo "$as_me:$LINENO: result: tcmalloc" >&5
$as_echo "tcmalloc" >&6; }
    if ! echo $host_cpu | grep -E 'i[3456]86' 2>/dev/null >/dev/null; then
        { { $as_echo "$as_me:$LINENO: error: tcmalloc only available/usable on ix86" >&5
$as_echo "$as_me: error: tcmalloc only available/usable on ix86" >&2;}
   { (exit 1); exit 1; }; }
    fi

{ $as_echo "$as_me:$LINENO: checking for malloc in -ltcmalloc" >&5
$as_echo_n "checking for malloc in -ltcmalloc... " >&6; }
if test "${ac_cv_lib_tcmalloc_malloc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ltcmalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char malloc ();
int
main ()
{
return malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_tcmalloc_malloc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_tcmalloc_malloc=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_malloc" >&5
$as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; }
if test "x$ac_cv_lib_tcmalloc_malloc" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBTCMALLOC 1
_ACEOF

  LIBS="-ltcmalloc $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: tcmalloc not found or functional. Install the Google Profiling Tools" >&5
$as_echo "$as_me: error: tcmalloc not found or functional. Install the Google Profiling Tools" >&2;}
   { (exit 1); exit 1; }; }
fi

    ALLOC="TCMALLOC";
fi
if test "$with_alloc" = "jemalloc"; then
    if test "$_os" != "FreeBSD" -o "$_os" != "NetBSD"; then
        { $as_echo "$as_me:$LINENO: result: jemalloc" >&5
$as_echo "jemalloc" >&6; }
        save_CFLAGS=$CFLAGS
        CFLAGS="$CFLAGS -pthread"

{ $as_echo "$as_me:$LINENO: checking for malloc in -ljemalloc" >&5
$as_echo_n "checking for malloc in -ljemalloc... " >&6; }
if test "${ac_cv_lib_jemalloc_malloc+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ljemalloc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char malloc ();
int
main ()
{
return malloc ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_jemalloc_malloc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_jemalloc_malloc=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jemalloc_malloc" >&5
$as_echo "$ac_cv_lib_jemalloc_malloc" >&6; }
if test "x$ac_cv_lib_jemalloc_malloc" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBJEMALLOC 1
_ACEOF

  LIBS="-ljemalloc $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: jemalloc not found or functional. Install the jemalloc allocator." >&5
$as_echo "$as_me: error: jemalloc not found or functional. Install the jemalloc allocator." >&2;}
   { (exit 1); exit 1; }; }
fi

        ALLOC="JEMALLOC";
        CFLAGS=$save_CFLAGS
    else
        { $as_echo "$as_me:$LINENO: result: system" >&5
$as_echo "system" >&6; }
        ALLOC="SYS_ALLOC";




for ac_func in malloc realloc calloc free
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    fi
fi
if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
fi

for ac_func in posix_fallocate
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 HAVE_POSIX_FALLOCATE=YES
else
  HAVE_POSIX_FALLOCATE=NO
fi
done





{ $as_echo "$as_me:$LINENO: checking whether to add custom build version" >&5
$as_echo_n "checking whether to add custom build version... " >&6; }
if test "z$with_build_version" != "z"; then
    BUILD_VER_STRING=$with_build_version
    { $as_echo "$as_me:$LINENO: result: yes, $BUILD_VER_STRING" >&5
$as_echo "yes, $BUILD_VER_STRING" >&6; }
else
    BUILD_VER_STRING=
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to build with Java support" >&5
$as_echo_n "checking whether to build with Java support... " >&6; }
if test "$with_java" != "no"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    SOLAR_JAVA="TRUE"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    SOLAR_JAVA=""
fi






if test "$_os" = "Linux" && test "$host_cpu" = "powerpc"; then
    # IBMs JDK needs this...
    JITC_PROCESSOR_TYPE=6
    export JITC_PROCESSOR_TYPE
    JITC_PROCESSOR_TYPE_EXPORT="export JITC_PROCESSOR_TYPE=$JITC_PROCESSOR_TYPE"
fi


if test $_os = "WINNT"; then
    WITH_VC_REDIST="TRUE"
fi


if test "$SOLAR_JAVA" != ""; then

    # Windows-specific tests
    if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
        if test "$CL_X64" != ""; then
            bitness="64-bit"
            otherbitness="32-bit"
        else
            bitness="32-bit"
            otherbitness="64-bit"
        fi

        if test -z "$with_jdk_home"; then

            # Unfortunately apparently no way to find, if needed, the 64-bit
            # JDK in the Registry from the 32-bit Perl oowintool

            _jdk_home=`./oowintool --jdk-home`
            if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then
                with_jdk_home="$_jdk_home"
                howfound="found by oowintool"
            else
                { { $as_echo "$as_me:$LINENO: error: No JDK found by oowintool, pass the --with-jdk-home option pointing to a $bitness JDK" >&5
$as_echo "$as_me: error: No JDK found by oowintool, pass the --with-jdk-home option pointing to a $bitness JDK" >&2;}
   { (exit 1); exit 1; }; }
            fi
        else
            test "$build_os" = "cygwin" && with_jdk_home=`cygpath -u "$with_jdk_home"`
            howfound="you passed"
        fi
    fi

    JAVA_HOME=; export JAVA_HOME
    if test -z "$with_jdk_home"; then
        # Extract the first word of "$with_java", so it can be a program name with args.
set dummy $with_java; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JAVAINTERPRETER+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $JAVAINTERPRETER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAINTERPRETER="$JAVAINTERPRETER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JAVAINTERPRETER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
JAVAINTERPRETER=$ac_cv_path_JAVAINTERPRETER
if test -n "$JAVAINTERPRETER"; then
  { $as_echo "$as_me:$LINENO: result: $JAVAINTERPRETER" >&5
$as_echo "$JAVAINTERPRETER" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    else
        _java_path="$with_jdk_home/bin/$with_java"
                if test -x "$_java_path"; then
            JAVAINTERPRETER=$_java_path
        else
            { { $as_echo "$as_me:$LINENO: error: $_java_path not found, pass --with-jdk-home" >&5
$as_echo "$as_me: error: $_java_path not found, pass --with-jdk-home" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
        # Check that the JDK found is correct architecture
        # Why is this necessary, we don't link with any library from the JDK I think,

        shortjdkhome=`cygpath -d "$with_jdk_home"`
        if test "$CL_X64" != "" -a -f "$with_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | grep -i 64-bit`" = "" >/dev/null; then
            { $as_echo "$as_me:$LINENO: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&5
$as_echo "$as_me: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&2;}
            { { $as_echo "$as_me:$LINENO: error: You should pass the --with-jdk-home option pointing to a 64-bit JDK" >&5
$as_echo "$as_me: error: You should pass the --with-jdk-home option pointing to a 64-bit JDK" >&2;}
   { (exit 1); exit 1; }; }
        elif test "$CL_X64" = "" -a -f "$_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | grep -i 64-bit`" != ""  >/dev/null; then
            { $as_echo "$as_me:$LINENO: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&5
$as_echo "$as_me: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&2;}
            { { $as_echo "$as_me:$LINENO: error: You should pass the --with-jdk-home option pointing to a (32-bit) JDK" >&5
$as_echo "$as_me: error: You should pass the --with-jdk-home option pointing to a (32-bit) JDK" >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test x`echo "$JAVAINTERPRETER" | grep -i '\.exe$'` = x; then
            JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
        fi
        JAVAINTERPRETER=`cygpath -d "$JAVAINTERPRETER"`
        JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
    elif test "$_os" = "Darwin"; then
                                { $as_echo "$as_me:$LINENO: checking whether to pass -d32 to Java interpreter" >&5
$as_echo_n "checking whether to pass -d32 to Java interpreter... " >&6; }
        if "$JAVAINTERPRETER" -d32 >&5 2>&5; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            JAVAIFLAGS=-d32
        else
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi
    fi
fi


# Note that JAVA_HOME as for now always means the *build* platform's
# JAVA_HOME. Whether all the complexity here actually is needed any
# more or not, no idea.

if test "$SOLAR_JAVA" != ""; then
    _gij_longver=0
    { $as_echo "$as_me:$LINENO: checking the installed JDK" >&5
$as_echo_n "checking the installed JDK... " >&6; }
    if test -n "$JAVAINTERPRETER"; then
                if test `$JAVAINTERPRETER -version 2>&1 | grep -c "Kaffe"` -gt 0; then
            { { $as_echo "$as_me:$LINENO: error: No valid check available. Please check the block for your desired java in configure.in" >&5
$as_echo "$as_me: error: No valid check available. Please check the block for your desired java in configure.in" >&2;}
   { (exit 1); exit 1; }; }
        elif test `$JAVAINTERPRETER --version 2>&1 | grep -c "GNU libgcj"` -gt 0; then
            JDK=gcj
            { $as_echo "$as_me:$LINENO: result: checked (gcj)" >&5
$as_echo "checked (gcj)" >&6; }
            _gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
            _gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`

        elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | grep -c "BEA"` -gt 0; then
            { { $as_echo "$as_me:$LINENO: error: No valid check available. Please check the block for your desired java in configure.in" >&5
$as_echo "$as_me: error: No valid check available. Please check the block for your desired java in configure.in" >&2;}
   { (exit 1); exit 1; }; }
        elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | grep -c "IBM"` -gt 0; then
            JDK=ibm

                        _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
            _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`

            if test "$_jdk_ver" -lt 10500; then
                { { $as_echo "$as_me:$LINENO: error: IBM JDK is too old, you need at least 1.5" >&5
$as_echo "$as_me: error: IBM JDK is too old, you need at least 1.5" >&2;}
   { (exit 1); exit 1; }; }
            fi

            { $as_echo "$as_me:$LINENO: result: checked (IBM JDK $_jdk)" >&5
$as_echo "checked (IBM JDK $_jdk)" >&6; }

            if test "$with_jdk_home" = ""; then
                { { $as_echo "$as_me:$LINENO: error: In order to successfully build LibreOffice using the IBM JDK,
you must use the \"--with-jdk-home\" configure option explicitly" >&5
$as_echo "$as_me: error: In order to successfully build LibreOffice using the IBM JDK,
you must use the \"--with-jdk-home\" configure option explicitly" >&2;}
   { (exit 1); exit 1; }; }
            fi

           JAVA_HOME=$with_jdk_home

        else
            JDK=sun

                        _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
            _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`

            if test "$_jdk_ver" -lt 10500; then
                { { $as_echo "$as_me:$LINENO: error: JDK is too old, you need at least 1.5" >&5
$as_echo "$as_me: error: JDK is too old, you need at least 1.5" >&2;}
   { (exit 1); exit 1; }; }
            fi
            { $as_echo "$as_me:$LINENO: result: checked (JDK $_jdk)" >&5
$as_echo "checked (JDK $_jdk)" >&6; }
            JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
            if test "$_os" = "WINNT"; then
                JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
            fi
        fi
    else
        { { $as_echo "$as_me:$LINENO: error: Java not found. You need at least jdk-1.5, or gcj-4" >&5
$as_echo "$as_me: error: Java not found. You need at least jdk-1.5, or gcj-4" >&2;}
   { (exit 1); exit 1; }; }
    fi
else
        JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
fi

_java_target_ver="1.5"
if test "$SOLAR_JAVA" != ""; then
    { $as_echo "$as_me:$LINENO: checking for target Java bytecode version" >&5
$as_echo_n "checking for target Java bytecode version... " >&6; }
    if test "$JDK" = "gcj" -o "$JDK" = "kaffe"; then
    { $as_echo "$as_me:$LINENO: result: default by $JDK" >&5
$as_echo "default by $JDK" >&6; }
    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no" ; then
        { $as_echo "$as_me:$LINENO: WARNING: Value defined by --with-java-target-version is ignored!" >&5
$as_echo "$as_me: WARNING: Value defined by --with-java-target-version is ignored!" >&2;}
    fi
    else
    if test -n "$with_java_target_version" -a "$with_java_target_version" != "no" ; then
        _java_target_ver="$with_java_target_version"
        { $as_echo "$as_me:$LINENO: result: $_java_target_ver" >&5
$as_echo "$_java_target_ver" >&6; }
    elif test $_jdk_ver -gt 10000 ; then
        _java_target_ver=`echo "$_jdk_ver" | $AWK '{ maj=substr($0,1,1); min=substr($0,2,2); print int(maj)"."int(min) }'`
        { $as_echo "$as_me:$LINENO: result: $_java_target_ver" >&5
$as_echo "$_java_target_ver" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: Unable to guess Java bytecode version from Java version!" >&5
$as_echo "$as_me: error: Unable to guess Java bytecode version from Java version!" >&2;}
   { (exit 1); exit 1; }; }
    fi
    fi

    if ! test -z "$_java_target_ver" -o \
        "$_java_target_ver" = "1.1" -o \
            "$_java_target_ver" = "1.2" -o \
        "$_java_target_ver" = "1.3" -o \
        "$_java_target_ver" = "1.4" -o \
        "$_java_target_ver" = "1.5" -o \
        "$_java_target_ver" = "1.6" -o \
        "$_java_target_ver" = "5" ; then
        { { $as_echo "$as_me:$LINENO: error: $_java_target_ver is not a supported Java bytecode version!" >&5
$as_echo "$as_me: error: $_java_target_ver is not a supported Java bytecode version!" >&2;}
   { (exit 1); exit 1; }; }
    fi

    JAVA_SOURCE_VER="$_java_target_ver"
    JAVA_TARGET_VER="$_java_target_ver"
fi

if test "$SOLAR_JAVA" != ""; then
    if test "$JDK" = "gcj"; then
        javacompiler=`echo $with_java | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
    else
        javacompiler="javac"
    fi
    if test -z "$with_jdk_home"; then
        # Extract the first word of "$javacompiler", so it can be a program name with args.
set dummy $javacompiler; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JAVACOMPILER+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $JAVACOMPILER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVACOMPILER="$JAVACOMPILER" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JAVACOMPILER="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
JAVACOMPILER=$ac_cv_path_JAVACOMPILER
if test -n "$JAVACOMPILER"; then
  { $as_echo "$as_me:$LINENO: result: $JAVACOMPILER" >&5
$as_echo "$JAVACOMPILER" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    else
        _javac_path="$with_jdk_home/bin/$javacompiler"
                if test -x "$_javac_path"; then
            JAVACOMPILER=$_javac_path
        fi
    fi
    if test -z "$JAVACOMPILER"; then
        { { $as_echo "$as_me:$LINENO: error: $javacompiler not found set with_jdk_home" >&5
$as_echo "$as_me: error: $javacompiler not found set with_jdk_home" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
        if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
            JAVACOMPILER="${JAVACOMPILER}.exe"
        fi
        JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
        JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
    fi

    if test `$JAVACOMPILER -version 2>&1 | grep -c "Eclipse Java Compiler"` -gt 0; then
        { $as_echo "$as_me:$LINENO: checking re-checking JDK" >&5
$as_echo_n "checking re-checking JDK... " >&6; }
        JDK=gcj
        { $as_echo "$as_me:$LINENO: result: checked (ecj)" >&5
$as_echo "checked (ecj)" >&6; }
        #TODO: what's to do here? some switch to do 1.5 compiling?
        JAVAFLAGS="-source 1.5 -target 1.5"
        _gij_longver="40200"
    fi
fi

JAVACISGCJ=""
if test "$SOLAR_JAVA" != ""; then
    if test `$JAVACOMPILER --version 2>&1 | grep -c "GCC"` -gt 0; then
        JAVACISGCJ="yes"
    fi
fi


JAVACISKAFFE=""
if test "$SOLAR_JAVA" != ""; then
    if test `$JAVACOMPILER -version 2>&1 | grep -c "Kaffe"` -gt 0; then
        JAVACISKAFFE="yes"
    fi
fi


if test "$SOLAR_JAVA" != ""; then
    if test -z "$with_jdk_home"; then
        # Extract the first word of "javadoc", so it can be a program name with args.
set dummy javadoc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JAVADOC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $JAVADOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
JAVADOC=$ac_cv_path_JAVADOC
if test -n "$JAVADOC"; then
  { $as_echo "$as_me:$LINENO: result: $JAVADOC" >&5
$as_echo "$JAVADOC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    else
        _javadoc_path="$with_jdk_home/bin/javadoc"
                if test -x "$_javadoc_path"; then
            JAVADOC=$_javadoc_path
        else
            # Extract the first word of "javadoc", so it can be a program name with args.
set dummy javadoc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_JAVADOC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $JAVADOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
JAVADOC=$ac_cv_path_JAVADOC
if test -n "$JAVADOC"; then
  { $as_echo "$as_me:$LINENO: result: $JAVADOC" >&5
$as_echo "$JAVADOC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        fi
    fi
    if test -z "$JAVADOC"; then
        { { $as_echo "$as_me:$LINENO: error: $_javadoc_path not found set with_jdk_home" >&5
$as_echo "$as_me: error: $_javadoc_path not found set with_jdk_home" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
        if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
            JAVADOC="${JAVADOC}.exe"
        fi
        JAVADOC=`cygpath -d "$JAVADOC"`
        JAVADOC=`cygpath -u "$JAVADOC"`
    fi
fi

if test "$SOLAR_JAVA" != ""; then
    # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
    if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
        if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
           # try to recover first by looking whether we have a alternatives
           # system as in Debian or newer SuSEs where following /usr/bin/javac
           # over /etc/alternatives/javac leads to the right bindir where we
           # just need to strip a bit away to get a valid JAVA_HOME
           JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
        elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
            # maybe only one level of symlink (e.g. on Mac)
            JAVA_HOME=$(readlink $JAVACOMPILER)
            if test "$(dirname $JAVA_HOME)" = "."; then
                # we've got no path to trim back
                JAVA_HOME=""
            fi
        else
            # else warn
            { $as_echo "$as_me:$LINENO: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&5
$as_echo "$as_me: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&5
$as_echo "$as_me: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&2;}
            echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
            echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
        fi
                if test "$JAVA_HOME" != "/usr"; then
            if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
                                JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
                                JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
            else
                JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
            fi
        fi
    fi
    # as we drop out of this, JAVA_HOME may have been set to the empty string by readlink

        if test -z "$JAVA_HOME"; then
        if test "x$with_jdk_home" = "x"; then
            cat > findhome.java <<_ACEOF
import java.io.File;

class findhome
{
    public static void main(String args[])
    {
        String jrelocation = System.getProperty("java.home");
        File jre = new File(jrelocation);
        System.out.println(jre.getParent());
    }
}
_ACEOF
            { $as_echo "$as_me:$LINENO: checking if javac works" >&5
$as_echo_n "checking if javac works... " >&6; }
            javac_cmd="$JAVACOMPILER findhome.java 1>&2"
            { (eval echo "$as_me:$LINENO: \"$javac_cmd\"") >&5
  (eval $javac_cmd) 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
            if test $? = 0 && test -f ./findhome.class ; then
                { $as_echo "$as_me:$LINENO: result: javac works" >&5
$as_echo "javac works" >&6; }
            else
                echo "configure: javac test failed" >&5
                cat findhome.java >&5
                { { $as_echo "$as_me:$LINENO: error: javac does not work - java projects will not build!" >&5
$as_echo "$as_me: error: javac does not work - java projects will not build!" >&2;}
   { (exit 1); exit 1; }; }
            fi
            { $as_echo "$as_me:$LINENO: checking if gij knows its java.home" >&5
$as_echo_n "checking if gij knows its java.home... " >&6; }
            JAVA_HOME=`$JAVAINTERPRETER findhome`
            if test $? = 0 && test "$JAVA_HOME" != "" ; then
                { $as_echo "$as_me:$LINENO: result: $JAVA_HOME" >&5
$as_echo "$JAVA_HOME" >&6; }
            else
                echo "configure: java test failed" >&5
                cat findhome.java >&5
                { { $as_echo "$as_me:$LINENO: error: gij does not know its java.home - use --with-jdk-home" >&5
$as_echo "$as_me: error: gij does not know its java.home - use --with-jdk-home" >&2;}
   { (exit 1); exit 1; }; }
            fi
            # clean-up after ourselves
            rm -f ./findhome.java ./findhome.class
        else
            JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$with_java,,p"`
        fi
    fi

        if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
        # now check if $JAVA_HOME is really valid
        if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
            if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
                JAVA_HOME_OK="NO"
            fi
        elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
            JAVA_HOME_OK="NO"
        fi
        if test "$JAVA_HOME_OK" = "NO"; then
            { $as_echo "$as_me:$LINENO: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&5
$as_echo "$as_me: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&5
$as_echo "$as_me: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&2;}
            { $as_echo "$as_me:$LINENO: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&5
$as_echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&2;}
            echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
            echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
            echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
        fi
    fi
fi

AWTLIB=

if test "$SOLAR_JAVA" != ""; then
    { $as_echo "$as_me:$LINENO: checking for jawt lib name" >&5
$as_echo_n "checking for jawt lib name... " >&6; }
    if test "$JDK" = "gcj"; then
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        CFLAGS="$CFLAGS -I$JAVA_HOME/include"
        LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
        exec 6>/dev/null # no output
        if test "${ac_cv_header_jni_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for jni.h" >&5
$as_echo_n "checking for jni.h... " >&6; }
if test "${ac_cv_header_jni_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
$as_echo "$ac_cv_header_jni_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking jni.h usability" >&5
$as_echo_n "checking jni.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <jni.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking jni.h presence" >&5
$as_echo_n "checking jni.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <jni.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: jni.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for jni.h" >&5
$as_echo_n "checking for jni.h... " >&6; }
if test "${ac_cv_header_jni_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_jni_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
$as_echo "$ac_cv_header_jni_h" >&6; }

fi
if test "x$ac_cv_header_jni_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" >&5
$as_echo "$as_me: error: jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" >&2;}
   { (exit 1); exit 1; }; }
fi


        { $as_echo "$as_me:$LINENO: checking for JAWT_GetAWT in -lgcjawt" >&5
$as_echo_n "checking for JAWT_GetAWT in -lgcjawt... " >&6; }
if test "${ac_cv_lib_gcjawt_JAWT_GetAWT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgcjawt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char JAWT_GetAWT ();
int
main ()
{
return JAWT_GetAWT ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_gcjawt_JAWT_GetAWT=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_gcjawt_JAWT_GetAWT=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcjawt_JAWT_GetAWT" >&5
$as_echo "$ac_cv_lib_gcjawt_JAWT_GetAWT" >&6; }
if test "x$ac_cv_lib_gcjawt_JAWT_GetAWT" = x""yes; then
   AWTLIB="-lgcjawt -lgcj"
fi

        exec 6>&1 # output on again
        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS
    fi
    # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
    # A workaround is to link also against libpmawt.so
    if test "$JDK" = "ibm" ; then
        save_CFLAGS=$CFLAGS
        save_LDFLAGS=$LDFLAGS
        save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
        CFLAGS="$CFLAGS -I$JAVA_HOME/include"
        LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
        LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
        export LD_LIBRARY_PATH
        exec 6>/dev/null # no output
        if test "${ac_cv_header_jni_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for jni.h" >&5
$as_echo_n "checking for jni.h... " >&6; }
if test "${ac_cv_header_jni_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
$as_echo "$ac_cv_header_jni_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking jni.h usability" >&5
$as_echo_n "checking jni.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <jni.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking jni.h presence" >&5
$as_echo_n "checking jni.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <jni.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: jni.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: jni.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for jni.h" >&5
$as_echo_n "checking for jni.h... " >&6; }
if test "${ac_cv_header_jni_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_jni_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
$as_echo "$ac_cv_header_jni_h" >&6; }

fi
if test "x$ac_cv_header_jni_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: jni.h could not be found." >&5
$as_echo "$as_me: error: jni.h could not be found." >&2;}
   { (exit 1); exit 1; }; }
fi


        { $as_echo "$as_me:$LINENO: checking for JAWT_GetAWT in -ljawt" >&5
$as_echo_n "checking for JAWT_GetAWT in -ljawt... " >&6; }
if test "${ac_cv_lib_jawt_JAWT_GetAWT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ljawt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char JAWT_GetAWT ();
int
main ()
{
return JAWT_GetAWT ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_jawt_JAWT_GetAWT=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_jawt_JAWT_GetAWT=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jawt_JAWT_GetAWT" >&5
$as_echo "$ac_cv_lib_jawt_JAWT_GetAWT" >&6; }
if test "x$ac_cv_lib_jawt_JAWT_GetAWT" = x""yes; then
   AWTLIB="-ljawt"
fi

        if test -z "$AWTLIB"; then
            LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
            { $as_echo "$as_me:$LINENO: checking for JAWT_GetAWT in -lmawt" >&5
$as_echo_n "checking for JAWT_GetAWT in -lmawt... " >&6; }
if test "${ac_cv_lib_mawt_JAWT_GetAWT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmawt  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char JAWT_GetAWT ();
int
main ()
{
return JAWT_GetAWT ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_mawt_JAWT_GetAWT=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_mawt_JAWT_GetAWT=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mawt_JAWT_GetAWT" >&5
$as_echo "$ac_cv_lib_mawt_JAWT_GetAWT" >&6; }
if test "x$ac_cv_lib_mawt_JAWT_GetAWT" = x""yes; then
   AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"
fi

        fi
        exec 6>&1 # output on again
        CFLAGS=$save_CFLAGS
        LDFLAGS=$save_LDFLAGS
        LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
    fi
    if test -z "$AWTLIB"; then
        AWTLIB=-ljawt
    fi
    { $as_echo "$as_me:$LINENO: result: $AWTLIB" >&5
$as_echo "$AWTLIB" >&6; }

fi













# Extract the first word of "dmake", so it can be a program name with args.
set dummy dmake; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DMAKE+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $DMAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DMAKE="$DMAKE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DMAKE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_DMAKE" && ac_cv_path_DMAKE="no"
  ;;
esac
fi
DMAKE=$ac_cv_path_DMAKE
if test -n "$DMAKE"; then
  { $as_echo "$as_me:$LINENO: result: $DMAKE" >&5
$as_echo "$DMAKE" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test "$DMAKE" = "no"; then
    BUILD_DMAKE=YES
    echo "dmake will be built on ./bootstrap"
else
    { $as_echo "$as_me:$LINENO: checking whether the found dmake is the right dmake" >&5
$as_echo_n "checking whether the found dmake is the right dmake... " >&6; }
    # we need to find out whether that dmake we found is "our" dmake
    # or the dmake from Sun's SunStudio Compiler which is something
    # different
    # This test _should_ work because the one accepts -V (ours) and one
    # (the other) not...
    $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
    if test $? -eq 0; then
        BUILD_DMAKE=NO
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        { $as_echo "$as_me:$LINENO: checking the dmake version" >&5
$as_echo_n "checking the dmake version... " >&6; }
        DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
        if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
            { $as_echo "$as_me:$LINENO: result: OK, >= 4.11" >&5
$as_echo "OK, >= 4.11" >&6; }
        elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
            test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
            { $as_echo "$as_me:$LINENO: result: OK, >= 4.11" >&5
$as_echo "OK, >= 4.11" >&6; }
        else
            { $as_echo "$as_me:$LINENO: result: too old. >= 4.11 is needed" >&5
$as_echo "too old. >= 4.11 is needed" >&6; }
            echo "A newer dmake will be built on ./bootstrap"
            BUILD_DMAKE=YES
        fi
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        echo "dmake will be built on ./bootstrap"
        BUILD_DMAKE=YES
    fi
fi


{ $as_echo "$as_me:$LINENO: checking whether to enable EPM for packing" >&5
$as_echo_n "checking whether to enable EPM for packing... " >&6; }
BUILD_EPM=NO
if test "$enable_epm" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                if test "$_os" != "WINNT"; then
        if test -n "$with_epm"; then
            EPM=$with_epm
        else
            # Extract the first word of "epm", so it can be a program name with args.
set dummy epm; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_EPM+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $EPM in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="no"
  ;;
esac
fi
EPM=$ac_cv_path_EPM
if test -n "$EPM"; then
  { $as_echo "$as_me:$LINENO: result: $EPM" >&5
$as_echo "$EPM" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        fi
        if test "$EPM" = "no" || test "$EPM" = "internal"; then
            echo "EPM will be built."
            BUILD_EPM=YES
            BUILD_TYPE="$BUILD_TYPE EPM"
        else
            # Gentoo has some epm which is something different...
            { $as_echo "$as_me:$LINENO: checking whether the found epm is the right epm" >&5
$as_echo_n "checking whether the found epm is the right epm... " >&6; }
            if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
                { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            else
                { { $as_echo "$as_me:$LINENO: error: no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" >&5
$as_echo "$as_me: error: no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" >&2;}
   { (exit 1); exit 1; }; }
            fi
            { $as_echo "$as_me:$LINENO: checking epm version" >&5
$as_echo_n "checking epm version... " >&6; }
            EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
            if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
               test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
                { $as_echo "$as_me:$LINENO: result: OK, >= 3.7" >&5
$as_echo "OK, >= 3.7" >&6; }
                BUILD_EPM=NO
                if test "$_os" = "Darwin"; then
                    { $as_echo "$as_me:$LINENO: checking which PackageMaker EPM thinks to use" >&5
$as_echo_n "checking which PackageMaker EPM thinks to use... " >&6; }
                    _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
                    if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
                        { { $as_echo "$as_me:$LINENO: error: $_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&5
$as_echo "$as_me: error: $_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&2;}
   { (exit 1); exit 1; }; }
                    elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
                        { $as_echo "$as_me:$LINENO: result: $_pm, ok" >&5
$as_echo "$_pm, ok" >&6; }
                    else # we never should get here, but go safe
                        { { $as_echo "$as_me:$LINENO: error: $_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&5
$as_echo "$as_me: error: $_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&2;}
   { (exit 1); exit 1; }; }
                    fi
                fi
            else
                { $as_echo "$as_me:$LINENO: result: too old. epm >= 3.7 is required." >&5
$as_echo "too old. epm >= 3.7 is required." >&6; }
                echo "EPM will be built."
                BUILD_EPM=YES
                BUILD_TYPE="$BUILD_TYPE EPM"
            fi
        fi
    fi

    # test which package format to use
    { $as_echo "$as_me:$LINENO: checking which package format to use" >&5
$as_echo_n "checking which package format to use... " >&6; }

    # defaults
    case "$_os" in
    Darwin)
        PKGFORMAT=dmg
        ;;
    SunOS)
        PKGFORMAT=pkg
        ;;
    Linux)
        # if building on Debian, default should be deb...
        if test -e /etc/debian_version; then
            PKGFORMAT=deb
        else
            PKGFORMAT=rpm
        fi
        ;;
    AIX)
        PKGFORMAT=rpm
        ;;
    OpenBSD|DragonFly)
        PKGFORMAT=portable
        ;;
    *BSD)
        PKGFORMAT=bsd
        ;;
    WINNT)
        PKGFORMAT=msi
        ;;
    # we never should get here since we check the arciecture/os at the beginning,
    # but go sure...
    *)
        { { $as_echo "$as_me:$LINENO: error: unknown system" >&5
$as_echo "$as_me: error: unknown system" >&2;}
   { (exit 1); exit 1; }; }
    esac
    if test -n "$with_package_format"; then
        for i in $with_package_format; do
            case "$i" in
            aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable | archive | dmg | installed | msi)
                ;;
            *)
                { { $as_echo "$as_me:$LINENO: error: unsupported format $i. Supported by EPM are:
aix - AIX software distribution
bsd - FreeBSD, NetBSD, or OpenBSD software distribution
deb - Debian software distribution
inst or tardist - IRIX software distribution
osx - MacOS X software distribution
pkg - Solaris software distribution
rpm - RedHat software distribution
setld - Tru64 (setld) software distribution
native - \"Native\" software distribution for the platform
portable - Portable software distribution
LibreOffice additionally supports:
archive - .tar.gz or .zip
dmg - Mac OS X .dmg
installed - installation tree
msi - Windows .msi
            " >&5
$as_echo "$as_me: error: unsupported format $i. Supported by EPM are:
aix - AIX software distribution
bsd - FreeBSD, NetBSD, or OpenBSD software distribution
deb - Debian software distribution
inst or tardist - IRIX software distribution
osx - MacOS X software distribution
pkg - Solaris software distribution
rpm - RedHat software distribution
setld - Tru64 (setld) software distribution
native - \"Native\" software distribution for the platform
portable - Portable software distribution
LibreOffice additionally supports:
archive - .tar.gz or .zip
dmg - Mac OS X .dmg
installed - installation tree
msi - Windows .msi
            " >&2;}
   { (exit 1); exit 1; }; }
                ;;
            esac
        done
        PKGFORMAT="$with_package_format"
    fi
    { $as_echo "$as_me:$LINENO: result: $PKGFORMAT" >&5
$as_echo "$PKGFORMAT" >&6; }
    if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
        { $as_echo "$as_me:$LINENO: checking for rpm" >&5
$as_echo_n "checking for rpm... " >&6; }
        for a in "$RPM" rpmbuild rpm; do
            $a --usage >/dev/null 2> /dev/null
            if test $? -eq 0; then
                RPM=$a
                break
            else
                $a --version >/dev/null 2> /dev/null
                if test $? -eq 0; then
                    RPM=$a
                    break
                fi
            fi
        done
        if test -z "$RPM" ; then
            { { $as_echo "$as_me:$LINENO: error: not found" >&5
$as_echo "$as_me: error: not found" >&2;}
   { (exit 1); exit 1; }; }
        elif "$RPM" --help 2>&1 | $EGREP buildroot >/dev/null; then
            RPM_PATH=`which $RPM`
            { $as_echo "$as_me:$LINENO: result: $RPM_PATH" >&5
$as_echo "$RPM_PATH" >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: cannot build packages. Try installing rpmbuild." >&5
$as_echo "$as_me: error: cannot build packages. Try installing rpmbuild." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
    if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
        # Extract the first word of "dpkg", so it can be a program name with args.
set dummy dpkg; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_DPKG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $DPKG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_DPKG" && ac_cv_path_DPKG="no"
  ;;
esac
fi
DPKG=$ac_cv_path_DPKG
if test -n "$DPKG"; then
  { $as_echo "$as_me:$LINENO: result: $DPKG" >&5
$as_echo "$DPKG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$DPKG" = "no"; then
            { { $as_echo "$as_me:$LINENO: error: dpkg needed for deb creation. Install dpkg." >&5
$as_echo "$as_me: error: dpkg needed for deb creation. Install dpkg." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
    if echo "PKGFORMAT" | $EGREP osx 2>&1 >/dev/null; then
        if test "$_os" = "Darwin"; then
            { $as_echo "$as_me:$LINENO: checking for PackageMaker availability" >&5
$as_echo_n "checking for PackageMaker availability... " >&6; }
            if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
                { { $as_echo "$as_me:$LINENO: error: not installed. Please install Apples Dev Tools" >&5
$as_echo "$as_me: error: not installed. Please install Apples Dev Tools" >&2;}
   { (exit 1); exit 1; }; }
            else
                { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
            fi
        else
            { { $as_echo "$as_me:$LINENO: error: PackageMaker needed to build OSX packages and you are not on OSX..." >&5
$as_echo "$as_me: error: PackageMaker needed to build OSX packages and you are not on OSX..." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
    if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
       echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
        if test "$EPM" != "no" && test "$EPM" != "internal"; then
            if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
                { $as_echo "$as_me:$LINENO: checking whether epm is patched for LibreOffice's needs" >&5
$as_echo_n "checking whether epm is patched for LibreOffice's needs... " >&6; }
                if grep "Patched for LibreOffice" $EPM >/dev/null 2>/dev/null; then
                    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
                else
                    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                    if echo "$PKGFORMAT" | grep -q rpm; then
                        _pt="rpm"
                        { $as_echo "$as_me:$LINENO: WARNING: the rpms will need to be installed with --nodeps" >&5
$as_echo "$as_me: WARNING: the rpms will need to be installed with --nodeps" >&2;}
                        echo "the rpms will need to be installed with --nodeps" >> warn
                    else
                        _pt="pkg"
                    fi
                    { $as_echo "$as_me:$LINENO: WARNING: the ${_pt}s will not be relocateable" >&5
$as_echo "$as_me: WARNING: the ${_pt}s will not be relocateable" >&2;}
                    echo "the ${_pt}s will not be relocateable" >> warn
                    { $as_echo "$as_me:$LINENO: WARNING: if you want to make sure installation without --nodeps and
                                 relocation will work, you need to patch your epm with the
                                 patch in epm/epm-3.7.patch or build with
                                 --with-epm=internal which will build a suitable epm" >&5
$as_echo "$as_me: WARNING: if you want to make sure installation without --nodeps and
                                 relocation will work, you need to patch your epm with the
                                 patch in epm/epm-3.7.patch or build with
                                 --with-epm=internal which will build a suitable epm" >&2;}
                fi
            fi
        fi
    fi
    if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
        # Extract the first word of "pkgmk", so it can be a program name with args.
set dummy pkgmk; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PKGMK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PKGMK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_PKGMK" && ac_cv_path_PKGMK="no"
  ;;
esac
fi
PKGMK=$ac_cv_path_PKGMK
if test -n "$PKGMK"; then
  { $as_echo "$as_me:$LINENO: result: $PKGMK" >&5
$as_echo "$PKGMK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$PKGMK" = "no"; then
            { { $as_echo "$as_me:$LINENO: error: pkgmk needed for Solaris pkg creation. Install it." >&5
$as_echo "$as_me: error: pkgmk needed for Solaris pkg creation. Install it." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi



else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    EPM=NO
    PKGFORMAT=native
fi




# Extract the first word of "gperf", so it can be a program name with args.
set dummy gperf; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GPERF+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $GPERF in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
GPERF=$ac_cv_path_GPERF
if test -n "$GPERF"; then
  { $as_echo "$as_me:$LINENO: result: $GPERF" >&5
$as_echo "$GPERF" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test -z "$GPERF"; then
    { { $as_echo "$as_me:$LINENO: error: gperf not found but needed. Install it." >&5
$as_echo "$as_me: error: gperf not found but needed. Install it." >&2;}
   { (exit 1); exit 1; }; }
fi
{ $as_echo "$as_me:$LINENO: checking gperf version" >&5
$as_echo_n "checking gperf version... " >&6; }
if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
    { $as_echo "$as_me:$LINENO: result: OK" >&5
$as_echo "OK" >&6; }
else
    { { $as_echo "$as_me:$LINENO: error: too old, you need at least 3.0.0" >&5
$as_echo "$as_me: error: too old, you need at least 3.0.0" >&2;}
   { (exit 1); exit 1; }; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to build the ODK" >&5
$as_echo_n "checking whether to build the ODK... " >&6; }
if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

    if test "$with_java" != "no"; then
        { $as_echo "$as_me:$LINENO: checking whether to build unowinreg.dll" >&5
$as_echo_n "checking whether to build unowinreg.dll... " >&6; }
        if test "$_os" = "WINNT" -a "z$enable_build_unowinreg" = "z" ; then
            # build on Win by default
            enable_build_unowinreg=yes
        fi
        if test "z$enable_build_unowinreg" = "z" -o "$enable_build_unowinreg" = "no"; then
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            BUILD_UNOWINREG=NO
        else
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            BUILD_UNOWINREG=YES
        fi
        if test "$_os" != "WINNT" -a "$BUILD_UNOWINREG" = "YES"; then
            if test -z "$with_mingw_cross_compiler"; then
                                for ac_prog in i386-mingw32msvc-g++ i586-pc-mingw32-g++ i686-pc-mingw32-g++ i686-w64-mingw32-g++
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MINGWCXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$MINGWCXX"; then
  ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MINGWCXX="$ac_prog"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
MINGWCXX=$ac_cv_prog_MINGWCXX
if test -n "$MINGWCXX"; then
  { $as_echo "$as_me:$LINENO: result: $MINGWCXX" >&5
$as_echo "$MINGWCXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$MINGWCXX" && break
done
test -n "$MINGWCXX" || MINGWCXX="false"

            elif test -x "$with_mingw_cross_compiler"; then
                 MINGWCXX="$with_mingw_cross_compiler"
            else
                if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}"$with_mingw_cross_compiler"", so it can be a program name with args.
set dummy ${ac_tool_prefix}"$with_mingw_cross_compiler"; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MINGWCXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$MINGWCXX"; then
  ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MINGWCXX="${ac_tool_prefix}"$with_mingw_cross_compiler""
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
MINGWCXX=$ac_cv_prog_MINGWCXX
if test -n "$MINGWCXX"; then
  { $as_echo "$as_me:$LINENO: result: $MINGWCXX" >&5
$as_echo "$MINGWCXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MINGWCXX"; then
  ac_ct_MINGWCXX=$MINGWCXX
  # Extract the first word of ""$with_mingw_cross_compiler"", so it can be a program name with args.
set dummy "$with_mingw_cross_compiler"; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_MINGWCXX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MINGWCXX"; then
  ac_cv_prog_ac_ct_MINGWCXX="$ac_ct_MINGWCXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MINGWCXX=""$with_mingw_cross_compiler""
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_MINGWCXX=$ac_cv_prog_ac_ct_MINGWCXX
if test -n "$ac_ct_MINGWCXX"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_MINGWCXX" >&5
$as_echo "$ac_ct_MINGWCXX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MINGWCXX" = x; then
    MINGWCXX="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MINGWCXX=$ac_ct_MINGWCXX
  fi
else
  MINGWCXX="$ac_cv_prog_MINGWCXX"
fi

            fi

            if test "$MINGWCXX" = "false"; then
                { { $as_echo "$as_me:$LINENO: error: MinGW32 C++ cross-compiler not found." >&5
$as_echo "$as_me: error: MinGW32 C++ cross-compiler not found." >&2;}
   { (exit 1); exit 1; }; }
            fi

            mingwstrip_test="`echo $MINGWCXX | $SED -e s/g++/strip/`"
            if test -x "$mingwstrip_test"; then
                MINGWSTRIP="$mingwstrip_test"
            else
                if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}"$mingwstrip_test"", so it can be a program name with args.
set dummy ${ac_tool_prefix}"$mingwstrip_test"; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_MINGWSTRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$MINGWSTRIP"; then
  ac_cv_prog_MINGWSTRIP="$MINGWSTRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_MINGWSTRIP="${ac_tool_prefix}"$mingwstrip_test""
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
MINGWSTRIP=$ac_cv_prog_MINGWSTRIP
if test -n "$MINGWSTRIP"; then
  { $as_echo "$as_me:$LINENO: result: $MINGWSTRIP" >&5
$as_echo "$MINGWSTRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_MINGWSTRIP"; then
  ac_ct_MINGWSTRIP=$MINGWSTRIP
  # Extract the first word of ""$mingwstrip_test"", so it can be a program name with args.
set dummy "$mingwstrip_test"; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_ac_ct_MINGWSTRIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_MINGWSTRIP"; then
  ac_cv_prog_ac_ct_MINGWSTRIP="$ac_ct_MINGWSTRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_prog_ac_ct_MINGWSTRIP=""$mingwstrip_test""
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

fi
fi
ac_ct_MINGWSTRIP=$ac_cv_prog_ac_ct_MINGWSTRIP
if test -n "$ac_ct_MINGWSTRIP"; then
  { $as_echo "$as_me:$LINENO: result: $ac_ct_MINGWSTRIP" >&5
$as_echo "$ac_ct_MINGWSTRIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_MINGWSTRIP" = x; then
    MINGWSTRIP="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    MINGWSTRIP=$ac_ct_MINGWSTRIP
  fi
else
  MINGWSTRIP="$ac_cv_prog_MINGWSTRIP"
fi

            fi

            if test "$MINGWSTRIP" = "false"; then
                { { $as_echo "$as_me:$LINENO: error: MinGW32 binutils not found." >&5
$as_echo "$as_me: error: MinGW32 binutils not found." >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    fi
    BUILD_TYPE="$BUILD_TYPE ODK"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    BUILD_UNOWINREG=NO
fi




{ $as_echo "$as_me:$LINENO: checking whether to provide libstdc++/libgcc_s in the installset" >&5
$as_echo_n "checking whether to provide libstdc++/libgcc_s in the installset... " >&6; }
if test "$with_system_stdlibs" != "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    SYSTEM_STDLIBS=YES
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    SYSTEM_STDLIBS=NO
fi


{ $as_echo "$as_me:$LINENO: checking which zlib to use" >&5
$as_echo_n "checking which zlib to use... " >&6; }
if test "$with_system_zlib" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_ZLIB=YES
    if test "${ac_cv_header_zlib_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
$as_echo_n "checking for zlib.h... " >&6; }
if test "${ac_cv_header_zlib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
$as_echo "$ac_cv_header_zlib_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
$as_echo_n "checking zlib.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <zlib.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
$as_echo_n "checking zlib.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <zlib.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
$as_echo_n "checking for zlib.h... " >&6; }
if test "${ac_cv_header_zlib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_zlib_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
$as_echo "$ac_cv_header_zlib_h" >&6; }

fi
if test "x$ac_cv_header_zlib_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: zlib.h not found. install zlib" >&5
$as_echo "$as_me: error: zlib.h not found. install zlib" >&2;}
   { (exit 1); exit 1; }; }
fi


    { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
$as_echo_n "checking for deflate in -lz... " >&6; }
if test "${ac_cv_lib_z_deflate+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char deflate ();
int
main ()
{
return deflate ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_z_deflate=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_z_deflate=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
$as_echo "$ac_cv_lib_z_deflate" >&6; }
if test "x$ac_cv_lib_z_deflate" = x""yes; then
   ZLIB=-lz
else
  { { $as_echo "$as_me:$LINENO: error: zlib not found or functional" >&5
$as_echo "$as_me: error: zlib not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_ZLIB=NO
    BUILD_TYPE="$BUILD_TYPE ZLIB"
fi


{ $as_echo "$as_me:$LINENO: checking which jpeg to use" >&5
$as_echo_n "checking which jpeg to use... " >&6; }
if test "$with_system_jpeg" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_JPEG=YES
    if test "${ac_cv_header_jpeglib_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
$as_echo_n "checking for jpeglib.h... " >&6; }
if test "${ac_cv_header_jpeglib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
$as_echo "$ac_cv_header_jpeglib_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
$as_echo_n "checking jpeglib.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <jpeglib.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
$as_echo_n "checking jpeglib.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <jpeglib.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
$as_echo_n "checking for jpeglib.h... " >&6; }
if test "${ac_cv_header_jpeglib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_jpeglib_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
$as_echo "$ac_cv_header_jpeglib_h" >&6; }

fi
if test "x$ac_cv_header_jpeglib_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: jpeg.h not found. install libjpeg" >&5
$as_echo "$as_me: error: jpeg.h not found. install libjpeg" >&2;}
   { (exit 1); exit 1; }; }
fi


    { $as_echo "$as_me:$LINENO: checking for jpeg_resync_to_restart in -ljpeg" >&5
$as_echo_n "checking for jpeg_resync_to_restart in -ljpeg... " >&6; }
if test "${ac_cv_lib_jpeg_jpeg_resync_to_restart+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ljpeg  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char jpeg_resync_to_restart ();
int
main ()
{
return jpeg_resync_to_restart ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_jpeg_jpeg_resync_to_restart=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_jpeg_jpeg_resync_to_restart=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_resync_to_restart" >&5
$as_echo "$ac_cv_lib_jpeg_jpeg_resync_to_restart" >&6; }
if test "x$ac_cv_lib_jpeg_jpeg_resync_to_restart" = x""yes; then
   JPEG3RDLIB=-ljpeg
else
  { $as_echo "$as_me:$LINENO: checking jpeg library not found or fuctional" >&5
$as_echo_n "checking jpeg library not found or fuctional... " >&6; }
fi

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_JPEG=NO
    BUILD_TYPE="$BUILD_TYPE JPEG"
fi


{ $as_echo "$as_me:$LINENO: checking which expat to use" >&5
$as_echo_n "checking which expat to use... " >&6; }
if test "$with_system_expat" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_EXPAT=YES
    if test "${ac_cv_header_expat_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for expat.h" >&5
$as_echo_n "checking for expat.h... " >&6; }
if test "${ac_cv_header_expat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
$as_echo "$ac_cv_header_expat_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking expat.h usability" >&5
$as_echo_n "checking expat.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <expat.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking expat.h presence" >&5
$as_echo_n "checking expat.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <expat.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for expat.h" >&5
$as_echo_n "checking for expat.h... " >&6; }
if test "${ac_cv_header_expat_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_expat_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
$as_echo "$ac_cv_header_expat_h" >&6; }

fi
if test "x$ac_cv_header_expat_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: expat.h not found. install expat" >&5
$as_echo "$as_me: error: expat.h not found. install expat" >&2;}
   { (exit 1); exit 1; }; }
fi



{ $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lexpat  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XML_ParserCreate ();
int
main ()
{
return XML_ParserCreate ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_expat_XML_ParserCreate=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_expat_XML_ParserCreate=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBEXPAT 1
_ACEOF

  LIBS="-lexpat $LIBS"

else
  { $as_echo "$as_me:$LINENO: result: expat library not found or functional." >&5
$as_echo "expat library not found or functional." >&6; }
fi

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libexpat-1.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_EXPAT=NO
    BUILD_TYPE="$BUILD_TYPE EXPAT"
fi


{ $as_echo "$as_me:$LINENO: checking which libvisio to use" >&5
$as_echo_n "checking which libvisio to use... " >&6; }
if test "$with_system_libvisio" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBVISIO=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for VISIO" >&5
$as_echo_n "checking for VISIO... " >&6; }

if test -n "$VISIO_CFLAGS"; then
    pkg_cv_VISIO_CFLAGS="$VISIO_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvisio-0.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libvisio-0.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_VISIO_CFLAGS=`$PKG_CONFIG --cflags "libvisio-0.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$VISIO_LIBS"; then
    pkg_cv_VISIO_LIBS="$VISIO_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvisio-0.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libvisio-0.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_VISIO_LIBS=`$PKG_CONFIG --libs "libvisio-0.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        VISIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvisio-0.0 " 2>&1`
        else
	        VISIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvisio-0.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$VISIO_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libvisio-0.0 ) were not met:

$VISIO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables VISIO_CFLAGS
and VISIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libvisio-0.0 ) were not met:

$VISIO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables VISIO_CFLAGS
and VISIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables VISIO_CFLAGS
and VISIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables VISIO_CFLAGS
and VISIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	VISIO_CFLAGS=$pkg_cv_VISIO_CFLAGS
	VISIO_LIBS=$pkg_cv_VISIO_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBVISIO=NO
    BUILD_TYPE="$BUILD_TYPE LIBVISIO"
fi




{ $as_echo "$as_me:$LINENO: checking which libcmis to use" >&5
$as_echo_n "checking which libcmis to use... " >&6; }
if test "$with_system_libcmis" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBCMIS=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBCMIS" >&5
$as_echo_n "checking for LIBCMIS... " >&6; }

if test -n "$LIBCMIS_CFLAGS"; then
    pkg_cv_LIBCMIS_CFLAGS="$LIBCMIS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcmis-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libcmis-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBCMIS_CFLAGS=`$PKG_CONFIG --cflags "libcmis-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBCMIS_LIBS"; then
    pkg_cv_LIBCMIS_LIBS="$LIBCMIS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcmis-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libcmis-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBCMIS_LIBS=`$PKG_CONFIG --libs "libcmis-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmis-0.2 " 2>&1`
        else
	        LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmis-0.2 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBCMIS_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libcmis-0.2 ) were not met:

$LIBCMIS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBCMIS_CFLAGS
and LIBCMIS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libcmis-0.2 ) were not met:

$LIBCMIS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBCMIS_CFLAGS
and LIBCMIS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBCMIS_CFLAGS
and LIBCMIS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBCMIS_CFLAGS
and LIBCMIS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBCMIS_CFLAGS=$pkg_cv_LIBCMIS_CFLAGS
	LIBCMIS_LIBS=$pkg_cv_LIBCMIS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBCMIS=NO
    BUILD_TYPE="$BUILD_TYPE LIBCMIS"
fi





{ $as_echo "$as_me:$LINENO: checking which libwpd to use" >&5
$as_echo_n "checking which libwpd to use... " >&6; }
if test "$with_system_libwpd" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBWPD=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for WPD" >&5
$as_echo_n "checking for WPD... " >&6; }

if test -n "$WPD_CFLAGS"; then
    pkg_cv_WPD_CFLAGS="$WPD_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpd-0.9 libwpd-stream-0.9 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwpd-0.9 libwpd-stream-0.9 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPD_CFLAGS=`$PKG_CONFIG --cflags "libwpd-0.9 libwpd-stream-0.9 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$WPD_LIBS"; then
    pkg_cv_WPD_LIBS="$WPD_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpd-0.9 libwpd-stream-0.9 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwpd-0.9 libwpd-stream-0.9 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPD_LIBS=`$PKG_CONFIG --libs "libwpd-0.9 libwpd-stream-0.9 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        WPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwpd-0.9 libwpd-stream-0.9 " 2>&1`
        else
	        WPD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwpd-0.9 libwpd-stream-0.9 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$WPD_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libwpd-0.9 libwpd-stream-0.9 ) were not met:

$WPD_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPD_CFLAGS
and WPD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libwpd-0.9 libwpd-stream-0.9 ) were not met:

$WPD_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPD_CFLAGS
and WPD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPD_CFLAGS
and WPD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPD_CFLAGS
and WPD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	WPD_CFLAGS=$pkg_cv_WPD_CFLAGS
	WPD_LIBS=$pkg_cv_WPD_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBWPD=NO
    BUILD_TYPE="$BUILD_TYPE LIBWPD"
fi




{ $as_echo "$as_me:$LINENO: checking which cppunit to use" >&5
$as_echo_n "checking which cppunit to use... " >&6; }
if test "$with_system_cppunit" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_CPPUNIT=YES
    # might work for earlier, too but go sure:

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for CPPUNIT" >&5
$as_echo_n "checking for CPPUNIT... " >&6; }

if test -n "$CPPUNIT_CFLAGS"; then
    pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "cppunit >= 1.12.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.12.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$CPPUNIT_LIBS"; then
    pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "cppunit >= 1.12.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= 1.12.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cppunit >= 1.12.0 " 2>&1`
        else
	        CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cppunit >= 1.12.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$CPPUNIT_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (cppunit >= 1.12.0 ) were not met:

$CPPUNIT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CPPUNIT_CFLAGS
and CPPUNIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (cppunit >= 1.12.0 ) were not met:

$CPPUNIT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CPPUNIT_CFLAGS
and CPPUNIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables CPPUNIT_CFLAGS
and CPPUNIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables CPPUNIT_CFLAGS
and CPPUNIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
	CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_CPPUNIT=NO
    BUILD_TYPE="$BUILD_TYPE CPPUNIT"
fi




if test  "$test_freetype" = "yes"; then
    { $as_echo "$as_me:$LINENO: checking whether freetype is available" >&5
$as_echo_n "checking whether freetype is available... " >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for FREETYPE" >&5
$as_echo_n "checking for FREETYPE... " >&6; }

if test -n "$FREETYPE_CFLAGS"; then
    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$FREETYPE_LIBS"; then
    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.0 " 2>&1`
        else
	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$FREETYPE_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (freetype2 >= 2.0 ) were not met:

$FREETYPE_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (freetype2 >= 2.0 ) were not met:

$FREETYPE_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
fi



{ $as_echo "$as_me:$LINENO: checking which libwps to use" >&5
$as_echo_n "checking which libwps to use... " >&6; }
if test "$with_system_libwps" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBWPS=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for WPS" >&5
$as_echo_n "checking for WPS... " >&6; }

if test -n "$WPS_CFLAGS"; then
    pkg_cv_WPS_CFLAGS="$WPS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwps-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwps-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPS_CFLAGS=`$PKG_CONFIG --cflags "libwps-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$WPS_LIBS"; then
    pkg_cv_WPS_LIBS="$WPS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwps-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwps-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPS_LIBS=`$PKG_CONFIG --libs "libwps-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        WPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwps-0.2 " 2>&1`
        else
	        WPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwps-0.2 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$WPS_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libwps-0.2 ) were not met:

$WPS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPS_CFLAGS
and WPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libwps-0.2 ) were not met:

$WPS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPS_CFLAGS
and WPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPS_CFLAGS
and WPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPS_CFLAGS
and WPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	WPS_CFLAGS=$pkg_cv_WPS_CFLAGS
	WPS_LIBS=$pkg_cv_WPS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBWPS=NO
    BUILD_TYPE="$BUILD_TYPE LIBWPS"
fi




{ $as_echo "$as_me:$LINENO: checking which libwpg to use" >&5
$as_echo_n "checking which libwpg to use... " >&6; }
if test "$with_system_libwpg" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBWPG=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for WPG" >&5
$as_echo_n "checking for WPG... " >&6; }

if test -n "$WPG_CFLAGS"; then
    pkg_cv_WPG_CFLAGS="$WPG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpg-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwpg-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPG_CFLAGS=`$PKG_CONFIG --cflags "libwpg-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$WPG_LIBS"; then
    pkg_cv_WPG_LIBS="$WPG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpg-0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "libwpg-0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_WPG_LIBS=`$PKG_CONFIG --libs "libwpg-0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        WPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwpg-0.2 " 2>&1`
        else
	        WPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwpg-0.2 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$WPG_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libwpg-0.2 ) were not met:

$WPG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPG_CFLAGS
and WPG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libwpg-0.2 ) were not met:

$WPG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables WPG_CFLAGS
and WPG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPG_CFLAGS
and WPG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables WPG_CFLAGS
and WPG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	WPG_CFLAGS=$pkg_cv_WPG_CFLAGS
	WPG_LIBS=$pkg_cv_WPG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBWPG=NO
    BUILD_TYPE="$BUILD_TYPE LIBWPG"
fi




if test  "$test_freetype" = "yes"; then
    save_CPPFLAGS="$CPPFLAGS"
    save_LDFLAGS="$LDFLAGS"
    save_LIBS="$LIBS"
    CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
    LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
    { $as_echo "$as_me:$LINENO: checking for FT_GlyphSlot_Embolden in -lfreetype" >&5
$as_echo_n "checking for FT_GlyphSlot_Embolden in -lfreetype... " >&6; }
if test "${ac_cv_lib_freetype_FT_GlyphSlot_Embolden+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfreetype  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char FT_GlyphSlot_Embolden ();
int
main ()
{
return FT_GlyphSlot_Embolden ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_freetype_FT_GlyphSlot_Embolden=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_freetype_FT_GlyphSlot_Embolden=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&5
$as_echo "$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&6; }
if test "x$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" = x""yes; then
  USE_FT_EMBOLDEN="YES"
else
  USE_FT_EMBOLDEN="NO"
fi

    LDFLAGS="$save_LDFLAGS"
    CPPFLAGS="$save_CPPFLAGS"
    LIBS="$save_LIBS"
fi


# ===================================================================
# Check for system libxslt
# to prevent incompatibilities between internal libxml2 and external libxslt,
# or vice versa, use with_system_libxml here
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking which libxslt to use" >&5
$as_echo_n "checking which libxslt to use... " >&6; }
if test "$with_system_libxml" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBXSLT=YES
    if test "$_os" = "Darwin"; then
                LIBXSLT_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
                LIBXSLT_LIBS="-lxslt -lxml2 -lz -lpthread -liconv -lm"
    else

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBXSLT" >&5
$as_echo_n "checking for LIBXSLT... " >&6; }

if test -n "$LIBXSLT_CFLAGS"; then
    pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxslt\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBXSLT_LIBS"; then
    pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxslt\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxslt" 2>&1`
        else
	        LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxslt" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBXSLT_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libxslt) were not met:

$LIBXSLT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXSLT_CFLAGS
and LIBXSLT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libxslt) were not met:

$LIBXSLT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXSLT_CFLAGS
and LIBXSLT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBXSLT_CFLAGS
and LIBXSLT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBXSLT_CFLAGS
and LIBXSLT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
	LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    fi

        # Extract the first word of "xsltproc", so it can be a program name with args.
set dummy xsltproc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XSLTPROC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  ;;
esac
fi
XSLTPROC=$ac_cv_path_XSLTPROC
if test -n "$XSLTPROC"; then
  { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
$as_echo "$XSLTPROC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "$XSLTPROC" = "no"; then
        { { $as_echo "$as_me:$LINENO: error: xsltproc is required" >&5
$as_echo "$as_me: error: xsltproc is required" >&2;}
   { (exit 1); exit 1; }; }
    fi

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libxslt-1.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBXSLT=NO
    BUILD_TYPE="$BUILD_TYPE LIBXSLT"

    if test "$cross_compiling" = "yes"; then
        # Extract the first word of "xsltproc", so it can be a program name with args.
set dummy xsltproc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_XSLTPROC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  ;;
esac
fi
XSLTPROC=$ac_cv_path_XSLTPROC
if test -n "$XSLTPROC"; then
  { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
$as_echo "$XSLTPROC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$XSLTPROC" = "no"; then
            { { $as_echo "$as_me:$LINENO: error: xsltproc is required" >&5
$as_echo "$as_me: error: xsltproc is required" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
fi





# ===================================================================
# Check for system libxml
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking which libxml to use" >&5
$as_echo_n "checking which libxml to use... " >&6; }
if test "$with_system_libxml" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBXML=YES
    if test "$_os" = "Darwin"; then
                LIBXML_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
                LIBXML_LIBS="-lxml2 -lz -lpthread -liconv -lm"
    elif test $_os = iOS; then
                usr=`echo '#include <stdlib.h>' | $CC -E -MD - | grep usr/include/stdlib.h | head -1 | sed -e 's,# 1 ",,' -e 's,/usr/include/.*,/usr,'`
        LIBXML_CFLAGS="-I$usr/include/libxml2"
        LIBXML_LIBS="-L$usr/lib -lxml2 -liconv"
    else

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBXML" >&5
$as_echo_n "checking for LIBXML... " >&6; }

if test -n "$LIBXML_CFLAGS"; then
    pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBXML_LIBS"; then
    pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.0" 2>&1`
        else
	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBXML_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.0) were not met:

$LIBXML_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libxml-2.0 >= 2.0) were not met:

$LIBXML_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
	LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    fi
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS zlib1.dll libxml2-2.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBXML=NO
    BUILD_TYPE="$BUILD_TYPE LIBXML2"
fi





{ $as_echo "$as_me:$LINENO: checking which Python to use" >&5
$as_echo_n "checking which Python to use... " >&6; }

case "$enable_python" in
no|disable)
    enable_python=no
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
    DISABLE_PYTHON=TRUE
    ;;
""|yes|auto)
    if test $build_os = cygwin; then
                                                        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        enable_python=internal
    elif test $_os = Darwin -a \( "$with_macosx_version_min_required" = 10.4 -o "$with_macosx_version_min_required" = 10.5 \); then
        { $as_echo "$as_me:$LINENO: result: internal, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&5
$as_echo "internal, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&6; }
        enable_python=internal
    else
        { $as_echo "$as_me:$LINENO: result: checking below" >&5
$as_echo "checking below" >&6; }
        enable_python=auto
    fi
    ;;
internal)
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    ;;
system)
    if test $_os = Darwin -a \( "$with_macosx_version_min_required" = 10.4 -o "$with_macosx_version_min_required" = 10.5 \); then
        { { $as_echo "$as_me:$LINENO: error: Cannot use \"system\" Python, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&5
$as_echo "$as_me: error: Cannot use \"system\" Python, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: system" >&5
$as_echo "system" >&6; }
    ;;
*)
    { { $as_echo "$as_me:$LINENO: error: Incorrect --enable-python option" >&5
$as_echo "$as_me: error: Incorrect --enable-python option" >&2;}
   { (exit 1); exit 1; }; }
    ;;
esac



if test $_os = WINNT -a "$WITH_MINGW" != yes -a $enable_python = system; then
    { { $as_echo "$as_me:$LINENO: error: Must use internal Python when building with MSVC" >&5
$as_echo "$as_me: error: Must use internal Python when building with MSVC" >&2;}
   { (exit 1); exit 1; }; }
fi

if test $enable_python != no; then
    BUILD_TYPE="$BUILD_TYPE PYUNO"
fi

if test "$cross_compiling" = yes; then
    if test $enable_python = auto; then
        enable_python=system
    fi
else
    if test $enable_python = system; then
        # This causes an error if no python command is found
        # Note that this takes the system python called just "python",
        # which isn't actually what we want on MacOSX when building
        # against the 10.6 SDK. But that shouldn't matter, we
        # select the correct python command manually below anyway.




        if test -n "$PYTHON"; then
      # If the user set $PYTHON, use it and don't search something else.
      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.6" >&5
$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
      prog="import sys, string
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
   ($PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { { $as_echo "$as_me:$LINENO: error: too old" >&5
$as_echo "$as_me: error: too old" >&2;}
   { (exit 1); exit 1; }; }
fi

      am_display_PYTHON=$PYTHON
    else
      # Otherwise, try each interpreter until we find one that satisfies
      # VERSION.
      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.6" >&5
$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
if test "${am_cv_pathless_PYTHON+set}" = set; then
  $as_echo_n "(cached) " >&6
else

	for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
	  test "$am_cv_pathless_PYTHON" = none && break
	  prog="import sys, string
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
  break
fi

	done
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
$as_echo "$am_cv_pathless_PYTHON" >&6; }
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
      if test "$am_cv_pathless_PYTHON" = none; then
	PYTHON=:
      else
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
set dummy $am_cv_pathless_PYTHON; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PYTHON+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PYTHON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PYTHON=$ac_cv_path_PYTHON
if test -n "$PYTHON"; then
  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
$as_echo "$PYTHON" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


      fi
      am_display_PYTHON=$am_cv_pathless_PYTHON
    fi


  if test "$PYTHON" = :; then
      { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
   { (exit 1); exit 1; }; }
  else


  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
if test "${am_cv_python_version+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
$as_echo "$am_cv_python_version" >&6; }
  PYTHON_VERSION=$am_cv_python_version



  PYTHON_PREFIX='${prefix}'

  PYTHON_EXEC_PREFIX='${exec_prefix}'



  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
if test "${am_cv_python_platform+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
$as_echo "$am_cv_python_platform" >&6; }
  PYTHON_PLATFORM=$am_cv_python_platform




                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
if test "${am_cv_python_pythondir+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
$as_echo "$am_cv_python_pythondir" >&6; }
  pythondir=$am_cv_python_pythondir



  pkgpythondir=\${pythondir}/$PACKAGE


            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
if test "${am_cv_python_pyexecdir+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
$as_echo "$am_cv_python_pyexecdir" >&6; }
  pyexecdir=$am_cv_python_pyexecdir



  pkgpyexecdir=\${pyexecdir}/$PACKAGE



  fi


    elif test $enable_python = auto; then




        if test -n "$PYTHON"; then
      # If the user set $PYTHON, use it and don't search something else.
      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.6" >&5
$as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
      prog="import sys, string
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
   ($PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { { $as_echo "$as_me:$LINENO: error: too old" >&5
$as_echo "$as_me: error: too old" >&2;}
   { (exit 1); exit 1; }; }
fi

      am_display_PYTHON=$PYTHON
    else
      # Otherwise, try each interpreter until we find one that satisfies
      # VERSION.
      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.6" >&5
$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
if test "${am_cv_pathless_PYTHON+set}" = set; then
  $as_echo_n "(cached) " >&6
else

	for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
	  test "$am_cv_pathless_PYTHON" = none && break
	  prog="import sys, string
# split strings by '.' and convert to numeric.  Append some zeros
# because we need at least 4 digits for the hex conversion.
minver = map(int, string.split('2.6', '.')) + [0, 0, 0]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
sys.exit(sys.hexversion < minverhex)"
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; then
  break
fi

	done
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
$as_echo "$am_cv_pathless_PYTHON" >&6; }
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
      if test "$am_cv_pathless_PYTHON" = none; then
	PYTHON=:
      else
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
set dummy $am_cv_pathless_PYTHON; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PYTHON+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PYTHON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PYTHON=$ac_cv_path_PYTHON
if test -n "$PYTHON"; then
  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
$as_echo "$PYTHON" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


      fi
      am_display_PYTHON=$am_cv_pathless_PYTHON
    fi


  if test "$PYTHON" = :; then
      :
  else


  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
if test "${am_cv_python_version+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
$as_echo "$am_cv_python_version" >&6; }
  PYTHON_VERSION=$am_cv_python_version



  PYTHON_PREFIX='${prefix}'

  PYTHON_EXEC_PREFIX='${exec_prefix}'



  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
if test "${am_cv_python_platform+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
$as_echo "$am_cv_python_platform" >&6; }
  PYTHON_PLATFORM=$am_cv_python_platform




                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
if test "${am_cv_python_pythondir+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
$as_echo "$am_cv_python_pythondir" >&6; }
  pythondir=$am_cv_python_pythondir



  pkgpythondir=\${pythondir}/$PACKAGE


            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
if test "${am_cv_python_pyexecdir+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
fi
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
$as_echo "$am_cv_python_pyexecdir" >&6; }
  pyexecdir=$am_cv_python_pyexecdir



  pkgpyexecdir=\${pyexecdir}/$PACKAGE



  fi



        if test "$PYTHON" = :; then
            enable_python=internal
        else
            enable_python=system
        fi
    fi
fi

if test $enable_python = system; then
    if test $_os = Darwin; then
        # We already have logic above to make sure the system Python
        # is used only when building against SDK 10.6 or newer.

        # Make sure we use the 2.6 Python when building against the
        # 10.6 SDK.
        case $with_macosx_sdk in
        10.6)
            python_version=2.6;;
        10.7)
            python_version=2.7;;
        *)
            # ???
            python_version=2.7;;
        esac
        PYTHON=python$python_version

        PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX${with_macosx_sdk}.sdk/System/Library/Frameworks/Python.framework/Versions/${python_version}/include/python${python_version}"
        PYTHON_LIBS="-framework Python"
    fi
    if test -n "$PYTHON_CFLAGS" -a -n "$PYTHON_LIBS"; then
        # Fallback: Accept these in the environment, or as set above
        # for MacOSX.
        :
    elif test "$cross_compiling" != yes; then
        python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
        python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
        python_libs=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'));"`
        python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"`
        if $PKG_CONFIG --exists python-$python_version; then
            PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`"
            PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version`"
        else
            PYTHON_CFLAGS="-I$python_include"
            PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
        fi
    elif test "$cross_compiling" = yes; then

        for python_sysroot in /usr/i686-w64-mingw32/sys-root/mingw ; do
            for python_version in 2.6 ; do
                if test -f ${python_sysroot}/include/python${python_version}/Python.h; then
                    PYTHON_CFLAGS="-I ${python_sysroot}/include/python$python_version"
                    PYTHON_LIBS="-L ${python_sysroot}lib -lpython$python_version $python_libs"
                    break
                fi
            done
            test -n "$PYTHON_CFLAGS" && break
        done
    fi
fi

case $enable_python in
system)
    SYSTEM_PYTHON=YES

        save_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
    if test "${ac_cv_header_Python_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
$as_echo_n "checking for Python.h... " >&6; }
if test "${ac_cv_header_Python_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
$as_echo "$ac_cv_header_Python_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
$as_echo_n "checking Python.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <Python.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
$as_echo_n "checking Python.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <Python.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
$as_echo_n "checking for Python.h... " >&6; }
if test "${ac_cv_header_Python_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_Python_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
$as_echo "$ac_cv_header_Python_h" >&6; }

fi
if test "x$ac_cv_header_Python_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: Python headers not found. You probably want to set both the PYTHON_CFLAGS and PYTHON_LIBS environment variables." >&5
$as_echo "$as_me: error: Python headers not found. You probably want to set both the PYTHON_CFLAGS and PYTHON_LIBS environment variables." >&2;}
   { (exit 1); exit 1; }; }
fi


    CPPFLAGS="$save_CPPFLAGS"

        ;;

internal)
    SYSTEM_PYTHON=NO
    BUILD_TYPE="$BUILD_TYPE PYTHON"
    # Embedded Python dies without Home set
    if test "z$HOME" = "z"; then
        export HOME="";
    fi
    # bz2 tarball and bzip2 is not standard
    if test -z "$BZIP2"; then
        # Extract the first word of "bzip2", so it can be a program name with args.
set dummy bzip2; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_BZIP2+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $BZIP2 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
BZIP2=$ac_cv_path_BZIP2
if test -n "$BZIP2"; then
  { $as_echo "$as_me:$LINENO: result: $BZIP2" >&5
$as_echo "$BZIP2" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$BZIP2"; then
            { { $as_echo "$as_me:$LINENO: error: the internal Python module has a .tar.bz2. You need bzip2" >&5
$as_echo "$as_me: error: the internal Python module has a .tar.bz2. You need bzip2" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
    ;;
no)
    SYSTEM_PYTHON=NO
    ;;
*)
    { { $as_echo "$as_me:$LINENO: error: Internal configure script error, invalid enable_python value \"$enable_python\"" >&5
$as_echo "$as_me: error: Internal configure script error, invalid enable_python value \"$enable_python\"" >&2;}
   { (exit 1); exit 1; }; }
    ;;
esac





{ $as_echo "$as_me:$LINENO: checking which db to use" >&5
$as_echo_n "checking which db to use... " >&6; }
if test "$with_system_db" = "yes"; then
    SYSTEM_DB=YES
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }

    db_header=
    for dbver in 5.3 5.1 5.0 5 4.8 4.7 4; do
        for dash in - ''; do
            as_ac_Header=`$as_echo "ac_cv_header_db$dash$dbver/db.h" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for db$dash$dbver/db.h" >&5
$as_echo_n "checking for db$dash$dbver/db.h... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking db$dash$dbver/db.h usability" >&5
$as_echo_n "checking db$dash$dbver/db.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <db$dash$dbver/db.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking db$dash$dbver/db.h presence" >&5
$as_echo_n "checking db$dash$dbver/db.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <db$dash$dbver/db.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db$dash$dbver/db.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: db$dash$dbver/db.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for db$dash$dbver/db.h" >&5
$as_echo_n "checking for db$dash$dbver/db.h... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
   db_header="db$dash$dbver/db.h"; break 2
fi


        done
    done

    if test -z "$db_header"; then
        if test "${ac_cv_header_db_db_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for db/db.h" >&5
$as_echo_n "checking for db/db.h... " >&6; }
if test "${ac_cv_header_db_db_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_db_h" >&5
$as_echo "$ac_cv_header_db_db_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking db/db.h usability" >&5
$as_echo_n "checking db/db.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <db/db.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking db/db.h presence" >&5
$as_echo_n "checking db/db.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <db/db.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: db/db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: db/db.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: db/db.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: db/db.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: db/db.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: db/db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: db/db.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db/db.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: db/db.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for db/db.h" >&5
$as_echo_n "checking for db/db.h... " >&6; }
if test "${ac_cv_header_db_db_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_db_db_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_db_h" >&5
$as_echo "$ac_cv_header_db_db_h" >&6; }

fi
if test "x$ac_cv_header_db_db_h" = x""yes; then
  db_header='db/db.h'; dbver=''
fi


    fi

    if test -z "$db_header"; then
       if test "${ac_cv_header_db_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for db.h" >&5
$as_echo_n "checking for db.h... " >&6; }
if test "${ac_cv_header_db_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
$as_echo "$ac_cv_header_db_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking db.h usability" >&5
$as_echo_n "checking db.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <db.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking db.h presence" >&5
$as_echo_n "checking db.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <db.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for db.h" >&5
$as_echo_n "checking for db.h... " >&6; }
if test "${ac_cv_header_db_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_db_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
$as_echo "$ac_cv_header_db_h" >&6; }

fi
if test "x$ac_cv_header_db_h" = x""yes; then
   db_header='db.h'; dbver=''
fi


    fi

    if test -z "$db_header"; then
        { { $as_echo "$as_me:$LINENO: error: db.h not found. Use the correct -I flag, or install the Berkeley db development package." >&5
$as_echo "$as_me: error: db.h not found. Use the correct -I flag, or install the Berkeley db development package." >&2;}
   { (exit 1); exit 1; }; }
    fi

    { $as_echo "$as_me:$LINENO: checking whether db is at least 4.1" >&5
$as_echo_n "checking whether db is at least 4.1... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$db_header>
int
main ()
{
int array[(DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))-1];
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ { $as_echo "$as_me:$LINENO: error: no. you need at least db 4.1" >&5
$as_echo "$as_me: error: no. you need at least db 4.1" >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    SYSTEM_DB_CFLAGS="-DSYSTEM_DB_HEADER='<$db_header>'"

    DB_LIB=
        if test "$_os" = "OpenBSD"; then
        dbver=''
    fi
    for dash in - ''; do
        as_ac_Lib=`$as_echo "ac_cv_lib_db$dash$dbver''_dbopen" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for dbopen in -ldb$dash$dbver" >&5
$as_echo_n "checking for dbopen in -ldb$dash$dbver... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldb$dash$dbver  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dbopen ();
int
main ()
{
return dbopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_Lib=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Lib=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
ac_res=`eval 'as_val=${'$as_ac_Lib'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Lib'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
   DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break
fi

        as_ac_Lib=`$as_echo "ac_cv_lib_db$dash$dbver''___db185_open" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for __db185_open in -ldb$dash$dbver" >&5
$as_echo_n "checking for __db185_open in -ldb$dash$dbver... " >&6; }
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldb$dash$dbver  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char __db185_open ();
int
main ()
{
return __db185_open ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_Lib=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Lib=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
ac_res=`eval 'as_val=${'$as_ac_Lib'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Lib'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
   DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break
fi

    done

    if test -z "$DB_LIB" ; then
        { { $as_echo "$as_me:$LINENO: error: db library not found. Use the correct -L flag,
or install the Berkeley db development package." >&5
$as_echo "$as_me: error: db library not found. Use the correct -L flag,
or install the Berkeley db development package." >&2;}
   { (exit 1); exit 1; }; }
    fi

    SCPDEFS="$SCPDEFS -DSYSTEM_DB"
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libdb-4.8.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_DB=NO
    BUILD_TYPE="$BUILD_TYPE BERKELEYDB"
fi





if test "$with_java" != "no"; then
{ $as_echo "$as_me:$LINENO: checking which lucene to use" >&5
$as_echo_n "checking which lucene to use... " >&6; }
if test "$with_system_lucene" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LUCENE=YES
    if test -z $LUCENE_CORE_JAR; then
         { $as_echo "$as_me:$LINENO: checking for /usr/share/java/lucene-core-2.3.jar" >&5
$as_echo_n "checking for /usr/share/java/lucene-core-2.3.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_lucene_core_2_3_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/lucene-core-2.3.jar"; then
  ac_cv_file__usr_share_java_lucene_core_2_3_jar=yes
else
  ac_cv_file__usr_share_java_lucene_core_2_3_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_lucene_core_2_3_jar" = x""yes; then
   LUCENE_CORE_JAR=/usr/share/java/lucene-core-2.3.jar
else

              { $as_echo "$as_me:$LINENO: checking for /usr/share/java/lucene-core.jar" >&5
$as_echo_n "checking for /usr/share/java/lucene-core.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_lucene_core_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/lucene-core.jar"; then
  ac_cv_file__usr_share_java_lucene_core_jar=yes
else
  ac_cv_file__usr_share_java_lucene_core_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_core_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_lucene_core_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_lucene_core_jar" = x""yes; then
   LUCENE_CORE_JAR=/usr/share/java/lucene-core.jar
else
   { $as_echo "$as_me:$LINENO: checking for /usr/share/java/lucene.jar" >&5
$as_echo_n "checking for /usr/share/java/lucene.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_lucene_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/lucene.jar"; then
  ac_cv_file__usr_share_java_lucene_jar=yes
else
  ac_cv_file__usr_share_java_lucene_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_lucene_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_lucene_jar" = x""yes; then
   LUCENE_CORE_JAR=/usr/share/java/lucene.jar
else
   { { $as_echo "$as_me:$LINENO: error: lucene-core.jar replacement not found" >&5
$as_echo "$as_me: error: lucene-core.jar replacement not found" >&2;}
   { (exit 1); exit 1; }; }

fi



fi



fi

    else
        as_ac_File=`$as_echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LUCENE_CORE_JAR" >&5
$as_echo_n "checking for $LUCENE_CORE_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LUCENE_CORE_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: lucene-core.jar not found." >&5
$as_echo "$as_me: error: lucene-core.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

    fi

    if test -z $LUCENE_ANALYZERS_JAR; then
        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/lucene-analyzers-2.3.jar" >&5
$as_echo_n "checking for /usr/share/java/lucene-analyzers-2.3.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/lucene-analyzers-2.3.jar"; then
  ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=yes
else
  ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" = x""yes; then
   LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-analyzers-2.3.jar
else

              { $as_echo "$as_me:$LINENO: checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar" >&5
$as_echo_n "checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/lucene-contrib/lucene-analyzers.jar"; then
  ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=yes
else
  ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" = x""yes; then
   LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-contrib/lucene-analyzers.jar
else
   { { $as_echo "$as_me:$LINENO: error: lucene-analyzers.jar replacement not found." >&5
$as_echo "$as_me: error: lucene-analyzers.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

    else
        as_ac_File=`$as_echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LUCENE_CORE_JAR" >&5
$as_echo_n "checking for $LUCENE_CORE_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LUCENE_CORE_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: lucene-analyzers.jar not found." >&5
$as_echo "$as_me: error: lucene-analyzers.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

    fi
    { $as_echo "$as_me:$LINENO: checking whether lucene is version 2.x" >&5
$as_echo_n "checking whether lucene is version 2.x... " >&6; }
    export LUCENE_CORE_JAR
    if $PERL -e 'use Archive::Zip;
            my $file = "$ENV{'LUCENE_CORE_JAR'}";
            my $zip = Archive::Zip->new( $file );
            my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
            if ( $mf =~ m/Specification-Version: 2.*/ ) {
                exit 0;
            } else {
                exit 1;
            }'; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, you need lucene 2" >&5
$as_echo "$as_me: error: no, you need lucene 2" >&2;}
   { (exit 1); exit 1; }; }
    fi

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LUCENE=NO
    BUILD_TYPE="$BUILD_TYPE LUCENE"
fi
fi




{ $as_echo "$as_me:$LINENO: checking whether to build the MySQL Connector extension" >&5
$as_echo_n "checking whether to build the MySQL Connector extension... " >&6; }
if test "x$enable_ext_mysql_connector" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_MYSQLC=YES
    BUILD_TYPE="$BUILD_TYPE MYSQLC"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_MYSQLC=NO
fi


if test "$ENABLE_MYSQLC" = "YES"; then

    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_MYSQLC"

                { $as_echo "$as_me:$LINENO: checking for MySQL prerequisites" >&5
$as_echo_n "checking for MySQL prerequisites... " >&6; }
    if test "$with_system_mysql" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: external MySQL" >&5
$as_echo "external MySQL" >&6; }
        SYSTEM_MYSQL=YES
        # Extract the first word of "mysql_config", so it can be a program name with args.
set dummy mysql_config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MYSQLCONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MYSQLCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG
if test -n "$MYSQLCONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $MYSQLCONFIG" >&5
$as_echo "$MYSQLCONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        { $as_echo "$as_me:$LINENO: checking MySQL version" >&5
$as_echo_n "checking MySQL version... " >&6; }
        MYSQL_VERSION=`$MYSQLCONFIG --version`
        MYSQL_MAJOR=`$MYSQLCONFIG --version | cut -d"." -f1`
        if test "$MYSQL_MAJOR" -ge "5"; then
            { $as_echo "$as_me:$LINENO: result: OK" >&5
$as_echo "OK" >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: too old, use 5.0.x or 5.1.x" >&5
$as_echo "$as_me: error: too old, use 5.0.x or 5.1.x" >&2;}
   { (exit 1); exit 1; }; }
        fi
        { $as_echo "$as_me:$LINENO: checking for MySQL Client library" >&5
$as_echo_n "checking for MySQL Client library... " >&6; }
        MYSQL_INC=`$MYSQLCONFIG --include`
        MYSQL_LIB=`$MYSQLCONFIG --libs`
        MYSQL_DEFINES=`$MYSQLCONFIG --cflags | $SED -e s,$MYSQL_INC,,`
        { $as_echo "$as_me:$LINENO: result: includes $MYSQL_INC, libraries $MYSQL_LIB" >&5
$as_echo "includes $MYSQL_INC, libraries $MYSQL_LIB" >&6; }
    else
        SYSTEM_MYSQL=NO
        if test -n "$with_libmysql_path"; then
            { $as_echo "$as_me:$LINENO: result: external Connector/C (libmysql)" >&5
$as_echo "external Connector/C (libmysql)" >&6; }
            LIBMYSQL=libmysql.so
            if test "$_os" = "Darwin"; then
                LIBMYSQL=libmysql.dylib
            elif test "$_os" = "WINNT"; then
                LIBMYSQL=libmysql.dll
            fi
            { $as_echo "$as_me:$LINENO: checking for $LIBMYSQL" >&5
$as_echo_n "checking for $LIBMYSQL... " >&6; }
            if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
                { $as_echo "$as_me:$LINENO: result: found." >&5
$as_echo "found." >&6; }
                LIBMYSQL_PATH=$with_libmysql_path
            else
                { { $as_echo "$as_me:$LINENO: error: not found. Please specify proper path in --with-libmysql-path." >&5
$as_echo "$as_me: error: not found. Please specify proper path in --with-libmysql-path." >&2;}
   { (exit 1); exit 1; }; }
            fi
        else
            { { $as_echo "$as_me:$LINENO: error: not given. Please specify either --with-system-mysql or --with-libmysql-path" >&5
$as_echo "$as_me: error: not given. Please specify either --with-system-mysql or --with-libmysql-path" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi






    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

                # FIXME!
    # who thought this too-generic cppconn dir was a good idea?
    { $as_echo "$as_me:$LINENO: checking MySQL Connector/C++" >&5
$as_echo_n "checking MySQL Connector/C++... " >&6; }
    if test "$with_system_mysql_cppconn" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        SYSTEM_MYSQL_CPPCONN=YES
        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

        if test "${ac_cv_header_mysql_driver_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mysql_driver.h" >&5
$as_echo_n "checking for mysql_driver.h... " >&6; }
if test "${ac_cv_header_mysql_driver_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_driver_h" >&5
$as_echo "$ac_cv_header_mysql_driver_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mysql_driver.h usability" >&5
$as_echo_n "checking mysql_driver.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <mysql_driver.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mysql_driver.h presence" >&5
$as_echo_n "checking mysql_driver.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mysql_driver.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mysql_driver.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mysql_driver.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mysql_driver.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mysql_driver.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for mysql_driver.h" >&5
$as_echo_n "checking for mysql_driver.h... " >&6; }
if test "${ac_cv_header_mysql_driver_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mysql_driver_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_driver_h" >&5
$as_echo "$ac_cv_header_mysql_driver_h" >&6; }

fi
if test "x$ac_cv_header_mysql_driver_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: mysql_driver.h not found. install MySQL C++ Connectivity" >&5
$as_echo "$as_me: error: mysql_driver.h not found. install MySQL C++ Connectivity" >&2;}
   { (exit 1); exit 1; }; }
fi



{ $as_echo "$as_me:$LINENO: checking for main in -lmysqlcppconn" >&5
$as_echo_n "checking for main in -lmysqlcppconn... " >&6; }
if test "${ac_cv_lib_mysqlcppconn_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmysqlcppconn  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_mysqlcppconn_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_mysqlcppconn_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlcppconn_main" >&5
$as_echo "$ac_cv_lib_mysqlcppconn_main" >&6; }
if test "x$ac_cv_lib_mysqlcppconn_main" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMYSQLCPPCONN 1
_ACEOF

  LIBS="-lmysqlcppconn $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: MySQL C++ Connectivity lib not found or functional" >&5
$as_echo "$as_me: error: MySQL C++ Connectivity lib not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

        { $as_echo "$as_me:$LINENO: checking version" >&5
$as_echo_n "checking version... " >&6; }
        if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <mysql_driver.h>

int main(int argc, char **argv) {
    sql::Driver *driver;
    driver = get_driver_instance();
    if (driver->getMajorVersion() > 1 || \
       (driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || \
       (driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6))
        return 0;
      else
        return 1;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: OK" >&5
$as_echo "OK" >&6; }
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { $as_echo "$as_me:$LINENO: error: not suitable, we need >= 1.0.6" >&5
$as_echo "$as_me: error: not suitable, we need >= 1.0.6" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



        ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        { $as_echo "$as_me:$LINENO: checking for mysqlcppconn module" >&5
$as_echo_n "checking for mysqlcppconn module... " >&6; }
        if test -d mysqlcppconn; then
            { $as_echo "$as_me:$LINENO: result: OK" >&5
$as_echo "OK" >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
$as_echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
   { (exit 1); exit 1; }; }
        fi
        BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
        SYSTEM_MYSQL_CPPCONN=NO
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


fi

if test "$with_java" != "no"; then
{ $as_echo "$as_me:$LINENO: checking which hsqldb to use" >&5
$as_echo_n "checking which hsqldb to use... " >&6; }
if test "$with_system_hsqldb" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_HSQLDB=YES
    if test -z $HSQLDB_JAR; then
        HSQLDB_JAR=/usr/share/java/hsqldb.jar
    fi
    as_ac_File=`$as_echo "ac_cv_file_$HSQLDB_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $HSQLDB_JAR" >&5
$as_echo_n "checking for $HSQLDB_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$HSQLDB_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: hsqldb.jar not found." >&5
$as_echo "$as_me: error: hsqldb.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

    { $as_echo "$as_me:$LINENO: checking whether hsqldb is 1.8.0.x" >&5
$as_echo_n "checking whether hsqldb is 1.8.0.x... " >&6; }
    export HSQLDB_JAR
    if $PERL -e 'use Archive::Zip;
            my $file = "$ENV{'HSQLDB_JAR'}";
            my $zip = Archive::Zip->new( $file );
            my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
            if ( $mf =~ m/Specification-Version: 1.8.*/ ) {
               push @l, split(/\n/, $mf);
               foreach my $line (@l) {
                  if ($line =~ m/Specification-Version:/) {
                      ($t, $version) = split (/:/,$line);
                      $version =~ s/^\s//;
                      ($a, $b, $c, $d) = split (/\./,$version);
                      if ($c == "0" && $d > "8")  {
                          exit 0;
                      } else {
                          exit 1;
                      }
                  }
               }
            } else {
                exit 1;
            }'; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, you need hsqldb >= 1.8.0.9 but < 1.8.1" >&5
$as_echo "$as_me: error: no, you need hsqldb >= 1.8.0.9 but < 1.8.1" >&2;}
   { (exit 1); exit 1; }; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_HSQLDB=NO
    BUILD_TYPE="$BUILD_TYPE HSQLDB"
fi


fi


if test "x$enable_postgresql_sdbc" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_POSTGRESQL_SDBC"
    { $as_echo "$as_me:$LINENO: checking PostgreSQL C interface" >&5
$as_echo_n "checking PostgreSQL C interface... " >&6; }
    if test "$with_system_postgresql" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: external PostgreSQL" >&5
$as_echo "external PostgreSQL" >&6; }
        SYSTEM_POSTGRESQL=YES
        if test "$_os" = Darwin; then
           supp_path=''
           for d in /Library/PostgreSQL/9.*/bin /sw/opt/postgresql/9.*/bin /opt/local/lib/postgresql9*/bin; do
            pg_supp_path="$PATH_SEPARATOR$d$pg_supp_path"
           done
        fi
        # Extract the first word of "pg_config", so it can be a program name with args.
set dummy pg_config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PGCONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PGCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$pg_supp_path
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PGCONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PGCONFIG=$ac_cv_path_PGCONFIG
if test -n "$PGCONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $PGCONFIG" >&5
$as_echo "$PGCONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$PGCONFIG"; then
           { { $as_echo "$as_me:$LINENO: error: pg_config needed; set PGCONFIG if not in PATH" >&5
$as_echo "$as_me: error: pg_config needed; set PGCONFIG if not in PATH" >&2;}
   { (exit 1); exit 1; }; }
        fi
        POSTGRESQL_INC=-I$(${PGCONFIG} --includedir)
        POSTGRESQL_LIB="-L$(${PGCONFIG} --libdir)"
    else
        if test -n "$with_libpq_path"; then
            SYSTEM_POSTGRESQL=YES
            { $as_echo "$as_me:$LINENO: result: external libpq" >&5
$as_echo "external libpq" >&6; }
            POSTGRESQL_LIB="-L${with_libpq_path}/lib/"
            POSTGRESQL_INC=-I"${with_libpq_path}/include/"
        else
            SYSTEM_POSTGRESQL=NO
            { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
            POSTGRESQL_LIB=""
            POSTGRESQL_INC="%OVERRIDE_ME%"
            BUILD_TYPE="$BUILD_TYPE POSTGRESQL"
        fi
    fi
    if test "${SYSTEM_POSTGRESQL}" = "YES"; then
        { $as_echo "$as_me:$LINENO: checking system PostgreSQL prerequisites" >&5
$as_echo "$as_me: checking system PostgreSQL prerequisites" >&6;}
        save_CFLAGS=$CFLAGS
        save_CPPFLAGS=$CPPFLAGS
        save_LIBS=$LIBS
        CPPFLAGS="${CPPFLAGS} ${POSTGRESQL_INC}"
        LIBS="${LIBS} ${POSTGRESQL_LIB}"
        if test "${ac_cv_header_libpq_fe_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
$as_echo_n "checking for libpq-fe.h... " >&6; }
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
$as_echo "$ac_cv_header_libpq_fe_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
$as_echo_n "checking libpq-fe.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <libpq-fe.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
$as_echo_n "checking libpq-fe.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <libpq-fe.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: libpq-fe.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: libpq-fe.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
$as_echo_n "checking for libpq-fe.h... " >&6; }
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_libpq_fe_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
$as_echo "$ac_cv_header_libpq_fe_h" >&6; }

fi
if test "x$ac_cv_header_libpq_fe_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libpq-fe.h is needed" >&5
$as_echo "$as_me: error: libpq-fe.h is needed" >&2;}
   { (exit 1); exit 1; }; }
fi



{ $as_echo "$as_me:$LINENO: checking for PQconnectdbParams in -lpq" >&5
$as_echo_n "checking for PQconnectdbParams in -lpq... " >&6; }
if test "${ac_cv_lib_pq_PQconnectdbParams+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lpq  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char PQconnectdbParams ();
int
main ()
{
return PQconnectdbParams ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_pq_PQconnectdbParams=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_pq_PQconnectdbParams=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdbParams" >&5
$as_echo "$ac_cv_lib_pq_PQconnectdbParams" >&6; }
if test "x$ac_cv_lib_pq_PQconnectdbParams" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPQ 1
_ACEOF

  LIBS="-lpq $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: libpq not found or too old. Need >= 9.0" >&5
$as_echo "$as_me: error: libpq not found or too old. Need >= 9.0" >&2;}
   { (exit 1); exit 1; }; }
fi

        CFLAGS=$save_CFLAGS
        CPPFLAGS=$save_CPPFLAGS
        LIBS=$save_LIBS
    fi
    BUILD_POSTGRESQL_SDBC=YES
fi





if test "$with_java" != "no"; then
{ $as_echo "$as_me:$LINENO: checking which beanshell to use" >&5
$as_echo_n "checking which beanshell to use... " >&6; }
if test "$with_system_beanshell" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_BSH=YES
    if test -z $BSH_JAR; then
        BSH_JAR=/usr/share/java/bsh.jar
    fi
    as_ac_File=`$as_echo "ac_cv_file_$BSH_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $BSH_JAR" >&5
$as_echo_n "checking for $BSH_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$BSH_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: bsh.jar not found." >&5
$as_echo "$as_me: error: bsh.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_BSH=NO
    BUILD_TYPE="$BUILD_TYPE BSH"
fi
fi




if test "$with_java" != "no"; then
{ $as_echo "$as_me:$LINENO: checking which saxon to use" >&5
$as_echo_n "checking which saxon to use... " >&6; }
if test "$with_system_saxon" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_SAXON=YES
    if test -z $SAXON_JAR; then
        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/saxon9.jar" >&5
$as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/saxon9.jar"; then
  ac_cv_file__usr_share_java_saxon9_jar=yes
else
  ac_cv_file__usr_share_java_saxon9_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_saxon9_jar" = x""yes; then
   SAXON_JAR=/usr/share/java/saxon9.jar
else

              { $as_echo "$as_me:$LINENO: checking for /usr/share/java/saxon.jar" >&5
$as_echo_n "checking for /usr/share/java/saxon.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_saxon_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/saxon.jar"; then
  ac_cv_file__usr_share_java_saxon_jar=yes
else
  ac_cv_file__usr_share_java_saxon_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_saxon_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_saxon_jar" = x""yes; then
   SAXON_JAR=/usr/share/java/saxon.jar
else
   { $as_echo "$as_me:$LINENO: checking for /usr/share/java/saxon9.jar" >&5
$as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/saxon9.jar"; then
  ac_cv_file__usr_share_java_saxon9_jar=yes
else
  ac_cv_file__usr_share_java_saxon9_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_saxon9_jar" = x""yes; then
   SAXON_JAR=/usr/share/java/saxon9.jar
else
   { { $as_echo "$as_me:$LINENO: error: saxon.jar replacement not found" >&5
$as_echo "$as_me: error: saxon.jar replacement not found" >&2;}
   { (exit 1); exit 1; }; }

fi



fi



fi

    else
        as_ac_File=`$as_echo "ac_cv_file_$SAXON_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $SAXON_JAR" >&5
$as_echo_n "checking for $SAXON_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$SAXON_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: saxon.jar replacement not found." >&5
$as_echo "$as_me: error: saxon.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }
fi

    fi
    if test -n "$SERIALIZER_JAR"; then
        as_ac_File=`$as_echo "ac_cv_file_$SERIALIZER_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $SERIALIZER_JAR" >&5
$as_echo_n "checking for $SERIALIZER_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$SERIALIZER_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: serializer.jar not found." >&5
$as_echo "$as_me: error: serializer.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi


    fi


    { $as_echo "$as_me:$LINENO: checking if saxon works" >&5
$as_echo_n "checking if saxon works... " >&6; }
    cat > saxontest.java <<_ACEOF
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import java.io.*;

import net.sf.saxon.FeatureKeys;

class saxontest {
    public static void main(String[] args) {
      System.setProperty("javax.xml.transform.TransformerFactory",
        "net.sf.saxon.TransformerFactoryImpl");
      try {
        TransformerFactory tfactory = TransformerFactory.newInstance();
    // some external saxons (Debian, Ubuntu, ...) have this disabled
    // per default
    tfactory.setAttribute(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, new Boolean(true));
        System.out.println("TransformerFactory is" +
          tfactory.getClass().getName());
        Transformer transformer = tfactory.newTransformer(
          new StreamSource(new File(args[0])));
      } catch(Exception e){
        e.printStackTrace(System.err);
        System.exit(-1);
      }
      System.exit(0);
    }
}

_ACEOF

    cat > saxontest.xsl<<_ACEOF
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="/">
  <xsl:value-of select="math:sqrt(1)" xmlns:math="java:java.lang.Math"/>
 </xsl:template>
</xsl:stylesheet>

_ACEOF

    javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
    { (eval echo "$as_me:$LINENO: \"$javac_cmd\"") >&5
  (eval $javac_cmd) 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
    if test $? = 0 && test -f ./saxontest.class ; then
        java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
        { (eval echo "$as_me:$LINENO: \"$java_cmd\"") >&5
  (eval $java_cmd) 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        if test $? = 0; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        else
            cat saxontest.java >&5
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
            { { $as_echo "$as_me:$LINENO: error: Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb" >&5
$as_echo "$as_me: error: Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb" >&2;}
   { (exit 1); exit 1; }; }
        fi
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        cat saxontest.java >&5
        { { $as_echo "$as_me:$LINENO: error: saxontest could not be compiled, non-functional saxon jar" >&5
$as_echo "$as_me: error: saxontest could not be compiled, non-functional saxon jar" >&2;}
   { (exit 1); exit 1; }; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_SAXON=NO
    NEED_SAXON=TRUE
fi
fi



if test -n "$NEED_SAXON"; then
    BUILD_TYPE="$BUILD_TYPE SAXON"
fi

# ===================================================================
# Check whether to build stax
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking whether building the stax is required" >&5
$as_echo_n "checking whether building the stax is required... " >&6; }
BUILD_STAX=NO
if test -z "$SOLAR_JAVA"; then
    { $as_echo "$as_me:$LINENO: result: no (java disabled)" >&5
$as_echo "no (java disabled)" >&6; }
elif test "$SYSTEM_SAXON" = "YES"; then
    { $as_echo "$as_me:$LINENO: result: no (already provided by system saxon)" >&5
$as_echo "no (already provided by system saxon)" >&6; }
elif test -f "./stax/download/jsr173_1.0_api.jar"; then
    { $as_echo "$as_me:$LINENO: result: no (will use the prebuilt stax/download/jsr173_1.0_api.jar)" >&5
$as_echo "no (will use the prebuilt stax/download/jsr173_1.0_api.jar)" >&6; }
else
    BUILD_STAX=YES
    { $as_echo "$as_me:$LINENO: result: yes (no system saxon and no prebuilt copy)" >&5
$as_echo "yes (no system saxon and no prebuilt copy)" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking which libcurl to use" >&5
$as_echo_n "checking which libcurl to use... " >&6; }
if test "$with_system_curl" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_CURL=YES

    curl_version=""
    if test "$cross_compiling" = "yes"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for CURL" >&5
$as_echo_n "checking for CURL... " >&6; }

if test -n "$CURL_CFLAGS"; then
    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$CURL_LIBS"; then
    pkg_cv_CURL_LIBS="$CURL_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
  ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
        else
	        CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$CURL_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                :
elif test $pkg_failed = untried; then
	:
else
	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
	CURL_LIBS=$pkg_cv_CURL_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        if test -n "$CURL_PKG_ERRORS"; then
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        else
            curl_version=`$PKG_CONFIG --modversion libcurl`
        fi
    fi
    if test -z "$curl_version"; then
        # Extract the first word of "curl-config", so it can be a program name with args.
set dummy curl-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_CURLCONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $CURLCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CURLCONFIG="$CURLCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_CURLCONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
CURLCONFIG=$ac_cv_path_CURLCONFIG
if test -n "$CURLCONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $CURLCONFIG" >&5
$as_echo "$CURLCONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$CURLCONFIG"; then
            { { $as_echo "$as_me:$LINENO: error: install the libcurl development package" >&5
$as_echo "$as_me: error: install the libcurl development package" >&2;}
   { (exit 1); exit 1; }; }
        fi
        CURL_LIBS=`$CURLCONFIG --libs`
        CURL_CFLAGS=`$CURLCONFIG --cflags`
        curl_version=`$CURLCONFIG --version | $SED -e 's/^libcurl //'`
    fi

    { $as_echo "$as_me:$LINENO: checking whether libcurl is >= 7.13.1" >&5
$as_echo_n "checking whether libcurl is >= 7.13.1... " >&6; }

    case $curl_version in
            7.13.1|7.1[4-9].*|7.[2-9]?.*|7.???.*|[8-9].*|[1-9][0-9].*)
        { $as_echo "$as_me:$LINENO: result: yes, you have $curl_version" >&5
$as_echo "yes, you have $curl_version" >&6; }
        ;;
    *)
        { { $as_echo "$as_me:$LINENO: error: no, you have $curl_version" >&5
$as_echo "$as_me: error: no, you have $curl_version" >&2;}
   { (exit 1); exit 1; }; }
        ;;
    esac

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libintl-8.dll libidn-11.dll libnspr4.dll nssutil3.dll libplc4.dll libplds4.dll nss3.dll ssl3.dll libgpg-error-0.dll libgcrypt-11.dll libssh2-1.dll libcurl-4.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_CURL=NO
    BUILD_TYPE="$BUILD_TYPE CURL"
fi




{ $as_echo "$as_me:$LINENO: checking which boost to use" >&5
$as_echo_n "checking which boost to use... " >&6; }
if test "$with_system_boost" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_BOOST=YES
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
$as_echo_n "checking for boost/shared_ptr.hpp... " >&6; }
if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
$as_echo "$ac_cv_header_boost_shared_ptr_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
$as_echo_n "checking boost/shared_ptr.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <boost/shared_ptr.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
$as_echo_n "checking boost/shared_ptr.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <boost/shared_ptr.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
$as_echo_n "checking for boost/shared_ptr.hpp... " >&6; }
if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
$as_echo "$ac_cv_header_boost_shared_ptr_hpp" >&6; }

fi
if test "x$ac_cv_header_boost_shared_ptr_hpp" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: boost/shared_ptr.hpp not found. install boost" >&5
$as_echo "$as_me: error: boost/shared_ptr.hpp not found. install boost" >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for boost/spirit/include/classic_core.hpp" >&5
$as_echo_n "checking for boost/spirit/include/classic_core.hpp... " >&6; }
if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_include_classic_core_hpp" >&5
$as_echo "$ac_cv_header_boost_spirit_include_classic_core_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking boost/spirit/include/classic_core.hpp usability" >&5
$as_echo_n "checking boost/spirit/include/classic_core.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <boost/spirit/include/classic_core.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking boost/spirit/include/classic_core.hpp presence" >&5
$as_echo_n "checking boost/spirit/include/classic_core.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <boost/spirit/include/classic_core.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for boost/spirit/include/classic_core.hpp" >&5
$as_echo_n "checking for boost/spirit/include/classic_core.hpp... " >&6; }
if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_boost_spirit_include_classic_core_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_include_classic_core_hpp" >&5
$as_echo "$ac_cv_header_boost_spirit_include_classic_core_hpp" >&6; }

fi
if test "x$ac_cv_header_boost_spirit_include_classic_core_hpp" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" >&5
$as_echo "$as_me: error: boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "${ac_cv_header_boost_function_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for boost/function.hpp" >&5
$as_echo_n "checking for boost/function.hpp... " >&6; }
if test "${ac_cv_header_boost_function_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_function_hpp" >&5
$as_echo "$ac_cv_header_boost_function_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking boost/function.hpp usability" >&5
$as_echo_n "checking boost/function.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <boost/function.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking boost/function.hpp presence" >&5
$as_echo_n "checking boost/function.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <boost/function.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: boost/function.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: boost/function.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/function.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: boost/function.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for boost/function.hpp" >&5
$as_echo_n "checking for boost/function.hpp... " >&6; }
if test "${ac_cv_header_boost_function_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_boost_function_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_function_hpp" >&5
$as_echo "$ac_cv_header_boost_function_hpp" >&6; }

fi
if test "x$ac_cv_header_boost_function_hpp" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: boost/function.hpp not found. install boost" >&5
$as_echo "$as_me: error: boost/function.hpp not found. install boost" >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "${ac_cv_header_boost_unordered_map_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for boost/unordered_map.hpp" >&5
$as_echo_n "checking for boost/unordered_map.hpp... " >&6; }
if test "${ac_cv_header_boost_unordered_map_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_unordered_map_hpp" >&5
$as_echo "$ac_cv_header_boost_unordered_map_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking boost/unordered_map.hpp usability" >&5
$as_echo_n "checking boost/unordered_map.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <boost/unordered_map.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking boost/unordered_map.hpp presence" >&5
$as_echo_n "checking boost/unordered_map.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <boost/unordered_map.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for boost/unordered_map.hpp" >&5
$as_echo_n "checking for boost/unordered_map.hpp... " >&6; }
if test "${ac_cv_header_boost_unordered_map_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_boost_unordered_map_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_boost_unordered_map_hpp" >&5
$as_echo "$ac_cv_header_boost_unordered_map_hpp" >&6; }

fi
if test "x$ac_cv_header_boost_unordered_map_hpp" = x""yes; then
  HAVE_BOOST_UNORDERED_MAP=TRUE
else
  { $as_echo "$as_me:$LINENO: WARNING: boost/unordered_map.hpp not found" >&5
$as_echo "$as_me: WARNING: boost/unordered_map.hpp not found" >&2;}
fi



    save_CXXFLAGS=$CXXFLAGS
    CXXFLAGS="$CXXFLAGS -fno-exceptions"
    { $as_echo "$as_me:$LINENO: checking whether boost/function.hpp compiles with -fno-exceptions" >&5
$as_echo_n "checking whether boost/function.hpp compiles with -fno-exceptions... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <boost/function.hpp>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_cxx_boost_no_exceptions_broken=no
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_cxx_boost_no_exceptions_broken=yes
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

    if test "$ac_cv_cxx_boost_no_exceptions_broken" = "yes"; then
        { { $as_echo "$as_me:$LINENO: error: no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" >&5
$as_echo "$as_me: error: no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    fi
    CXXFLAGS=$save_CXXFLAGS
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    BUILD_TYPE="$BUILD_TYPE BOOST"
    SYSTEM_BOOST=NO
    HAVE_BOOST_UNORDERED_MAP=TRUE
fi



{ $as_echo "$as_me:$LINENO: checking which mdds to use" >&5
$as_echo_n "checking which mdds to use... " >&6; }
if test "$with_system_mdds" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_MDDS=YES

                { $as_echo "$as_me:$LINENO: checking which hash container mdds shall use" >&5
$as_echo_n "checking which hash container mdds shall use... " >&6; }
    if test "x$HAVE_CXX0X" = "xTRUE"; then
        MDDS_CPPFLAGS="-std=c++0x"
        { $as_echo "$as_me:$LINENO: result: std::unordered_map" >&5
$as_echo "std::unordered_map" >&6; }
    else
        MDDS_CPPFLAGS="-DMDDS_HASH_CONTAINER_BOOST"
        { $as_echo "$as_me:$LINENO: result: boost::unordered_map" >&5
$as_echo "boost::unordered_map" >&6; }
    fi

    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    save_CPPFLAGS="$CPPFLAGS"
    CPPFLAGS="$CPPFLAGS $MDDS_CPPFLAGS"
    if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mdds/flat_segment_tree.hpp" >&5
$as_echo_n "checking for mdds/flat_segment_tree.hpp... " >&6; }
if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mdds_flat_segment_tree_hpp" >&5
$as_echo "$ac_cv_header_mdds_flat_segment_tree_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mdds/flat_segment_tree.hpp usability" >&5
$as_echo_n "checking mdds/flat_segment_tree.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <mdds/flat_segment_tree.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mdds/flat_segment_tree.hpp presence" >&5
$as_echo_n "checking mdds/flat_segment_tree.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mdds/flat_segment_tree.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for mdds/flat_segment_tree.hpp" >&5
$as_echo_n "checking for mdds/flat_segment_tree.hpp... " >&6; }
if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mdds_flat_segment_tree_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mdds_flat_segment_tree_hpp" >&5
$as_echo "$ac_cv_header_mdds_flat_segment_tree_hpp" >&6; }

fi
if test "x$ac_cv_header_mdds_flat_segment_tree_hpp" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: mdds/flat_segment_tree.hpp not found. install mdds" >&5
$as_echo "$as_me: error: mdds/flat_segment_tree.hpp not found. install mdds" >&2;}
   { (exit 1); exit 1; }; }
fi


    if test "${ac_cv_header_mdds_mixed_type_matrix_hpp+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mdds/mixed_type_matrix.hpp" >&5
$as_echo_n "checking for mdds/mixed_type_matrix.hpp... " >&6; }
if test "${ac_cv_header_mdds_mixed_type_matrix_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mdds_mixed_type_matrix_hpp" >&5
$as_echo "$ac_cv_header_mdds_mixed_type_matrix_hpp" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mdds/mixed_type_matrix.hpp usability" >&5
$as_echo_n "checking mdds/mixed_type_matrix.hpp usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <mdds/mixed_type_matrix.hpp>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mdds/mixed_type_matrix.hpp presence" >&5
$as_echo_n "checking mdds/mixed_type_matrix.hpp presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mdds/mixed_type_matrix.hpp>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mdds/mixed_type_matrix.hpp: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mdds/mixed_type_matrix.hpp: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for mdds/mixed_type_matrix.hpp" >&5
$as_echo_n "checking for mdds/mixed_type_matrix.hpp... " >&6; }
if test "${ac_cv_header_mdds_mixed_type_matrix_hpp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mdds_mixed_type_matrix_hpp=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mdds_mixed_type_matrix_hpp" >&5
$as_echo "$ac_cv_header_mdds_mixed_type_matrix_hpp" >&6; }

fi
if test "x$ac_cv_header_mdds_mixed_type_matrix_hpp" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: mdds/mixed_type_matrix.hpp not found. install mdds >= 0.4.0" >&5
$as_echo "$as_me: error: mdds/mixed_type_matrix.hpp not found. install mdds >= 0.4.0" >&2;}
   { (exit 1); exit 1; }; }
fi


    CPPFLAGS="$save_CPPFLAGS"
    save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS="$CXXFLAGS $MDDS_CPPFLAGS"
    { $as_echo "$as_me:$LINENO: checking for correct signature of ::mdds::flat_segment_tree" >&5
$as_echo_n "checking for correct signature of ::mdds::flat_segment_tree... " >&6; }
    if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mdds/flat_segment_tree.hpp>

    int main(int argc, char **argv) {
        ::mdds::flat_segment_tree<long, short> db(0, 100, 0);
        short val;
        if (!db.search(5, val).second)
            return 1;
        return 0;
    }

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_cxx_mdds_flat_segment_tree_correct=yes
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_cxx_mdds_flat_segment_tree_correct=no
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



    if test "$ac_cv_cxx_mdds_flat_segment_tree_correct" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, install mdds >= 0.5.0" >&5
$as_echo "$as_me: error: no, install mdds >= 0.5.0" >&2;}
   { (exit 1); exit 1; }; }
    fi
    CXXFLAGS=$save_CXXFLAGS
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    BUILD_TYPE="$BUILD_TYPE MDDS"
    SYSTEM_MDDS=NO

                { $as_echo "$as_me:$LINENO: checking which hash container mdds shall use" >&5
$as_echo_n "checking which hash container mdds shall use... " >&6; }
    MDDS_CPPFLAGS="-DMDDS_HASH_CONTAINER_BOOST"
    { $as_echo "$as_me:$LINENO: result: boost::unordered_map" >&5
$as_echo "boost::unordered_map" >&6; }
fi



{ $as_echo "$as_me:$LINENO: checking which vigra to use" >&5
$as_echo_n "checking which vigra to use... " >&6; }
if test "$with_system_vigra" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_VIGRA=YES
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for vigra/copyimage.hxx" >&5
$as_echo_n "checking for vigra/copyimage.hxx... " >&6; }
if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vigra_copyimage_hxx" >&5
$as_echo "$ac_cv_header_vigra_copyimage_hxx" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking vigra/copyimage.hxx usability" >&5
$as_echo_n "checking vigra/copyimage.hxx usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <vigra/copyimage.hxx>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking vigra/copyimage.hxx presence" >&5
$as_echo_n "checking vigra/copyimage.hxx presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <vigra/copyimage.hxx>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: vigra/copyimage.hxx: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for vigra/copyimage.hxx" >&5
$as_echo_n "checking for vigra/copyimage.hxx... " >&6; }
if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_vigra_copyimage_hxx=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_vigra_copyimage_hxx" >&5
$as_echo "$ac_cv_header_vigra_copyimage_hxx" >&6; }

fi
if test "x$ac_cv_header_vigra_copyimage_hxx" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: vigra/copyimage.hxx not found. install vigra" >&5
$as_echo "$as_me: error: vigra/copyimage.hxx not found. install vigra" >&2;}
   { (exit 1); exit 1; }; }
fi


    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    BUILD_TYPE="$BUILD_TYPE VIGRA"
    SYSTEM_VIGRA=NO
fi


{ $as_echo "$as_me:$LINENO: checking which odbc headers to use" >&5
$as_echo_n "checking which odbc headers to use... " >&6; }
if test "$with_system_odbc" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_ODBC_HEADERS=YES

    if test "${ac_cv_header_sqlext_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for sqlext.h" >&5
$as_echo_n "checking for sqlext.h... " >&6; }
if test "${ac_cv_header_sqlext_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlext_h" >&5
$as_echo "$ac_cv_header_sqlext_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sqlext.h usability" >&5
$as_echo_n "checking sqlext.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <sqlext.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sqlext.h presence" >&5
$as_echo_n "checking sqlext.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sqlext.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sqlext.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sqlext.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sqlext.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sqlext.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sqlext.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sqlext.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sqlext.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sqlext.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sqlext.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for sqlext.h" >&5
$as_echo_n "checking for sqlext.h... " >&6; }
if test "${ac_cv_header_sqlext_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sqlext_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlext_h" >&5
$as_echo "$ac_cv_header_sqlext_h" >&6; }

fi
if test "x$ac_cv_header_sqlext_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: odbc not found. install odbc" >&5
$as_echo "$as_me: error: odbc not found. install odbc" >&2;}
   { (exit 1); exit 1; }; }
fi


else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_ODBC_HEADERS=NO
    BUILD_TYPE="$BUILD_TYPE UNIXODBC"
fi


{ $as_echo "$as_me:$LINENO: checking whether to enable build of Mozilla" >&5
$as_echo_n "checking whether to enable build of Mozilla... " >&6; }
if test "$enable_mozilla" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_MOZILLA=NO
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_MOZILLA=YES
fi


{ $as_echo "$as_me:$LINENO: checking whether to build Mozilla addressbook connectivity" >&5
$as_echo_n "checking whether to build Mozilla addressbook connectivity... " >&6; }
if test "$enable_mozilla" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
elif test "$with_system_mozilla" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: no, not possible with system-mozilla" >&5
$as_echo "no, not possible with system-mozilla" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking whether to build XML Security support" >&5
$as_echo_n "checking whether to build XML Security support... " >&6; }
if test "$enable_xmlsec" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_XMLSEC=
else
    ENABLE_XMLSEC="YES"
    BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to build LDAP configuration backend" >&5
$as_echo_n "checking whether to build LDAP configuration backend... " >&6; }
if test "$enable_ldap" != "no"; then
    WITH_OPENLDAP=NO
    WITH_LDAP=NO
    if test "$with_openldap" = "yes"; then
        WITH_LDAP=YES
        { $as_echo "$as_me:$LINENO: result: OpenLDAP" >&5
$as_echo "OpenLDAP" >&6; }
        WITH_OPENLDAP=YES

for ac_header in ldap.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }

fi
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { { $as_echo "$as_me:$LINENO: error: ldap.h not found. install openldap libs" >&5
$as_echo "$as_me: error: ldap.h not found. install openldap libs" >&2;}
   { (exit 1); exit 1; }; }
fi

done


{ $as_echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
$as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lldap  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ldap_simple_bind_s ();
int
main ()
{
return ldap_simple_bind_s ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ldap_ldap_simple_bind_s=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ldap_ldap_simple_bind_s=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
$as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLDAP 1
_ACEOF

  LIBS="-lldap $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: openldap lib not found or functional" >&5
$as_echo "$as_me: error: openldap lib not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi


{ $as_echo "$as_me:$LINENO: checking for ldap_set_option in -lldap" >&5
$as_echo_n "checking for ldap_set_option in -lldap... " >&6; }
if test "${ac_cv_lib_ldap_ldap_set_option+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lldap  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char ldap_set_option ();
int
main ()
{
return ldap_set_option ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ldap_ldap_set_option=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ldap_ldap_set_option=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_set_option" >&5
$as_echo "$ac_cv_lib_ldap_ldap_set_option" >&6; }
if test "x$ac_cv_lib_ldap_ldap_set_option" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLDAP 1
_ACEOF

  LIBS="-lldap $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: openldap lib not found or functional" >&5
$as_echo "$as_me: error: openldap lib not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

    elif test "$enable_mozilla" != "no"; then
        { $as_echo "$as_me:$LINENO: result: Mozilla" >&5
$as_echo "Mozilla" >&6; }
        WITH_LDAP=YES
        WITH_OPENLDAP=NO
    else
        { $as_echo "$as_me:$LINENO: result: no. Either Mozilla or OpenLDAP required" >&5
$as_echo "no. Either Mozilla or OpenLDAP required" >&6; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_LDAP=NO
fi



{ $as_echo "$as_me:$LINENO: checking which Mozilla to use" >&5
$as_echo_n "checking which Mozilla to use... " >&6; }
if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_MOZILLA=YES
    { $as_echo "$as_me:$LINENO: checking which Mozilla flavour to use" >&5
$as_echo_n "checking which Mozilla flavour to use... " >&6; }
    if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then
        MOZ_FLAVOUR=libxul
    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then
        MOZ_FLAVOUR=xulrunner
    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then
        MOZ_FLAVOUR=seamonkey
    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "iceape"; then
        MOZ_FLAVOUR=iceape
    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then
        MOZ_FLAVOUR=firefox
    elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then
        MOZ_FLAVOUR=mozilla
    else
        MOZ_FLAVOUR=libxul
    fi
    tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'`
    { $as_echo "$as_me:$LINENO: result: $tmp" >&5
$as_echo "$tmp" >&6; }

    if test "$MOZ_FLAVOUR" != "libxul"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZILLAXPCOM" >&5
$as_echo_n "checking for MOZILLAXPCOM... " >&6; }

if test -n "$MOZILLAXPCOM_CFLAGS"; then
    pkg_cv_MOZILLAXPCOM_CFLAGS="$MOZILLAXPCOM_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$MOZ_FLAVOUR-xpcom\"") >&5
  ($PKG_CONFIG --exists --print-errors "$MOZ_FLAVOUR-xpcom") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-xpcom" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZILLAXPCOM_LIBS"; then
    pkg_cv_MOZILLAXPCOM_LIBS="$MOZILLAXPCOM_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$MOZ_FLAVOUR-xpcom\"") >&5
  ($PKG_CONFIG --exists --print-errors "$MOZ_FLAVOUR-xpcom") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-xpcom" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$MOZ_FLAVOUR-xpcom" 2>&1`
        else
	        MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$MOZ_FLAVOUR-xpcom" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZILLAXPCOM_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                HASXPCOM=""
elif test $pkg_failed = untried; then
	HASXPCOM=""
else
	MOZILLAXPCOM_CFLAGS=$pkg_cv_MOZILLAXPCOM_CFLAGS
	MOZILLAXPCOM_LIBS=$pkg_cv_MOZILLAXPCOM_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	HASXPCOM="TRUE"
fi
        MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom`
        MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom`
    fi

    if test -z "$HASXPCOM"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZILLAXPCOM" >&5
$as_echo_n "checking for MOZILLAXPCOM... " >&6; }

if test -n "$MOZILLAXPCOM_CFLAGS"; then
    pkg_cv_MOZILLAXPCOM_CFLAGS="$MOZILLAXPCOM_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxul \"") >&5
  ($PKG_CONFIG --exists --print-errors "libxul ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "libxul " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZILLAXPCOM_LIBS"; then
    pkg_cv_MOZILLAXPCOM_LIBS="$MOZILLAXPCOM_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxul \"") >&5
  ($PKG_CONFIG --exists --print-errors "libxul ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "libxul " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul " 2>&1`
        else
	        MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZILLAXPCOM_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libxul ) were not met:

$MOZILLAXPCOM_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libxul ) were not met:

$MOZILLAXPCOM_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	MOZILLAXPCOM_CFLAGS=$pkg_cv_MOZILLAXPCOM_CFLAGS
	MOZILLAXPCOM_LIBS=$pkg_cv_MOZILLAXPCOM_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        MOZ_INC=`$PKG_CONFIG --variable=includedir libxul`
        MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul`
        if ! test -e "$MOZ_LIB/libxul.so"; then
            MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul`
            if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then
                MOZ_LIB="$MOZ_LIB/sdk/lib"
            fi
        fi
    fi

    MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
    if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then
        { $as_echo "$as_me:$LINENO: checking whether $tmp was compiled with --enable-ldap" >&5
$as_echo_n "checking whether $tmp was compiled with --enable-ldap... " >&6; }
        if test -d "$MOZ_INC/ldap"; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            MOZ_LDAP_CFLAGS="-I$MOZ_INC"
        else
            { { $as_echo "$as_me:$LINENO: error: no.
Could not find LDAP header include files in $MOZ_INC/ldap.
Please recompile $tmp with --enable-ldap or use --with-openldap." >&5
$as_echo "$as_me: error: no.
Could not find LDAP header include files in $MOZ_INC/ldap.
Please recompile $tmp with --enable-ldap or use --with-openldap." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    #e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges
    #the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul
    if test "$MOZ_FLAVOUR" = "libxul"; then
        MOZ_FLAVOUR="mozilla"
    fi

elif test "$enable_mozilla" = "no"; then
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
    WITH_MOZILLA=NO
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_MOZILLA=NO
    BUILD_TYPE="$BUILD_TYPE MOZ"
if test -z "$with_mozilla_version"; then
    MOZILLA_VERSION=
else
    { $as_echo "$as_me:$LINENO: checking which Mozilla version to build" >&5
$as_echo_n "checking which Mozilla version to build... " >&6; }
    MOZILLA_VERSION=$with_mozilla_version
    enable_build_mozilla=1
    { $as_echo "$as_me:$LINENO: result: $MOZILLA_VERSION" >&5
$as_echo "$MOZILLA_VERSION" >&6; }
fi



{ $as_echo "$as_me:$LINENO: checking for toolkit Mozilla should use" >&5
$as_echo_n "checking for toolkit Mozilla should use... " >&6; }
if test -z "$with_mozilla_toolkit"; then
    if test "$_os" != "WINNT" ; then
        if test "$_os" = "Darwin" ; then
            MOZILLA_TOOLKIT=mac
            { $as_echo "$as_me:$LINENO: result: mac" >&5
$as_echo "mac" >&6; }
        else
            MOZILLA_TOOLKIT=gtk2
            { $as_echo "$as_me:$LINENO: result: gtk2" >&5
$as_echo "gtk2" >&6; }
        fi
    fi
else
    MOZILLA_TOOLKIT=$with_mozilla_toolkit
    enable_build_mozilla=1
    { $as_echo "$as_me:$LINENO: result: $MOZILLA_TOOLKIT" >&5
$as_echo "$MOZILLA_TOOLKIT" >&6; }
fi



# default to enabling build mozilla
if test "$enable_build_mozilla" != "no"; then
    enable_build_mozilla=yes
else
    enable_build_mozilla=
fi

{ $as_echo "$as_me:$LINENO: checking whether to build Mozilla/SeaMonkey" >&5
$as_echo_n "checking whether to build Mozilla/SeaMonkey... " >&6; }
if test -n "$enable_build_mozilla"; then
    BUILD_MOZAB="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    BUILD_MOZAB=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

if test "$BUILD_MOZAB" = "TRUE"; then
    if test "$_os" = "WINNT"; then
        if test "$WITH_MINGW" != "yes"; then
            # compiling with MSVC. Only supported platform here is MSVS2005 at the moment.
            if test "$MSVSVER" != "2005"; then
                { { $as_echo "$as_me:$LINENO: error: Building SeaMonkey is supported with Microsoft Visual Studio 2005 only." >&5
$as_echo "$as_me: error: Building SeaMonkey is supported with Microsoft Visual Studio 2005 only." >&2;}
   { (exit 1); exit 1; }; }
            fi
        else
            { $as_echo "$as_me:$LINENO: WARNING: Building SeaMonkey with MinGW is not tested, and likely to break." >&5
$as_echo "$as_me: WARNING: Building SeaMonkey with MinGW is not tested, and likely to break." >&2;}
            echo "Building SeaMonkey with MinGW is not tested, and likely to break." >> warn
        fi
    fi

    if test -z "$MOZILLA_VERSION"; then
        MOZILLA_VERSION=1.1.14
    fi
    MOZILLA_SOURCE_VERSION="seamonkey-${MOZILLA_VERSION}.source"
    MOZILLA_FETCH_FILE=`grep $MOZILLA_SOURCE_VERSION ooo.lst.in`
    { $as_echo "$as_me:$LINENO: checking for Mozilla sources" >&5
$as_echo_n "checking for Mozilla sources... " >&6; }
    if test -z "$MOZILLA_FETCH_FILE"; then
        { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
        HAVE_MOZILLA_TARBALL=n
    else
        { $as_echo "$as_me:$LINENO: checking for $MOZILLA_FETCH_FILE" >&5
$as_echo_n "checking for $MOZILLA_FETCH_FILE... " >&6; }
        if test ! -e "$TARFILE_LOCATION/$MOZILLA_FETCH_FILE"; then
            if test -z "$DO_FETCH"; then
                { $as_echo "$as_me:$LINENO: result: will be fetched" >&5
$as_echo "will be fetched" >&6; }
                HAVE_MOZILLA_TARBALL=y
            else
                { $as_echo "$as_me:$LINENO: result: not found" >&5
$as_echo "not found" >&6; }
                HAVE_MOZILLA_TARBALL=n
            fi
        else
            { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
            HAVE_MOZILLA_TARBALL=y
        fi
    fi
    if test "$HAVE_MOZILLA_TARBALL" != "y"; then
        { { $as_echo "$as_me:$LINENO: error: Mozilla/SeaMonkey source archive not found.
Use \"./download\" to download." >&5
$as_echo "$as_me: error: Mozilla/SeaMonkey source archive not found.
Use \"./download\" to download." >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test "$_os" = "WINNT"; then
        { $as_echo "$as_me:$LINENO: checking for moztools binaries" >&5
$as_echo_n "checking for moztools binaries... " >&6; }
        if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip" ; then
            { { $as_echo "$as_me:$LINENO: error: The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
(from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" >&5
$as_echo "$as_me: error: The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
(from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" >&2;}
   { (exit 1); exit 1; }; }
        else
            { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
        fi
    elif test "$_os" = "Darwin"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZLIBREQ" >&5
$as_echo_n "checking for MOZLIBREQ... " >&6; }

if test -n "$MOZLIBREQ_CFLAGS"; then
    pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.6.3\"") >&5
  ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.6.3") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.6.3" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZLIBREQ_LIBS"; then
    pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.6.3\"") >&5
  ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.6.3") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.6.3" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libIDL-2.0 >= 0.6.3" 2>&1`
        else
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libIDL-2.0 >= 0.6.3" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZLIBREQ_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MOZIDL=""
elif test $pkg_failed = untried; then
	MOZIDL=""
else
	MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
	MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MOZIDL="TRUE"
fi
        if test -z "$MOZIDL"; then
            { { $as_echo "$as_me:$LINENO: error: libIDL 0.6.3 or newer is needed to build Mozilla with Mac toolkit." >&5
$as_echo "$as_me: error: libIDL 0.6.3 or newer is needed to build Mozilla with Mac toolkit." >&2;}
   { (exit 1); exit 1; }; }
        fi
    else
        # Generic Unix/Linux section
        if test "$MOZILLA_TOOLKIT" = "gtk2"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZLIBREQ" >&5
$as_echo_n "checking for MOZLIBREQ... " >&6; }

if test -n "$MOZLIBREQ_CFLAGS"; then
    pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZLIBREQ_LIBS"; then
    pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
        else
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZLIBREQ_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MOZGTK=""
elif test $pkg_failed = untried; then
	MOZGTK=""
else
	MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
	MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MOZGTK="TRUE"
fi
            if test -z "$MOZGTK"; then
                { { $as_echo "$as_me:$LINENO: error: GTK2 is needed to build Mozilla." >&5
$as_echo "$as_me: error: GTK2 is needed to build Mozilla." >&2;}
   { (exit 1); exit 1; }; }
            fi

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZLIBREQ" >&5
$as_echo_n "checking for MOZLIBREQ... " >&6; }

if test -n "$MOZLIBREQ_CFLAGS"; then
    pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.8.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.8.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZLIBREQ_LIBS"; then
    pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.8.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.8.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.8.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libIDL-2.0 >= 0.8.0" 2>&1`
        else
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libIDL-2.0 >= 0.8.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZLIBREQ_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MOZIDL=""
elif test $pkg_failed = untried; then
	MOZIDL=""
else
	MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
	MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MOZIDL="TRUE"
fi
            if test -z "$MOZIDL"; then
                { { $as_echo "$as_me:$LINENO: error: libIDL >= 0.8.0 is needed when using GTK2 to build Mozilla." >&5
$as_echo "$as_me: error: libIDL >= 0.8.0 is needed when using GTK2 to build Mozilla." >&2;}
   { (exit 1); exit 1; }; }
            fi
        else

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZLIBREQ" >&5
$as_echo_n "checking for MOZLIBREQ... " >&6; }

if test -n "$MOZLIBREQ_CFLAGS"; then
    pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.2.3\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.2.3") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.2.3" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZLIBREQ_LIBS"; then
    pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.2.3\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.2.3") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.2.3" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+ >= 1.2.3" 2>&1`
        else
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+ >= 1.2.3" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZLIBREQ_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MOZGTK=""
elif test $pkg_failed = untried; then
	MOZGTK=""
else
	MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
	MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MOZGTK="TRUE"
fi
            if test -z "$MOZGTK"; then
                { { $as_echo "$as_me:$LINENO: error: GTK+ 1.2 is needed when not using GTK2 to build Mozilla." >&5
$as_echo "$as_me: error: GTK+ 1.2 is needed when not using GTK2 to build Mozilla." >&2;}
   { (exit 1); exit 1; }; }
            fi

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZLIBREQ" >&5
$as_echo_n "checking for MOZLIBREQ... " >&6; }

if test -n "$MOZLIBREQ_CFLAGS"; then
    pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libidl >= 0.6.3 libidl <= 0.6.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "libidl >= 0.6.3 libidl <= 0.6.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libidl >= 0.6.3 libidl <= 0.6.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZLIBREQ_LIBS"; then
    pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libidl >= 0.6.3 libidl <= 0.6.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "libidl >= 0.6.3 libidl <= 0.6.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libidl >= 0.6.3 libidl <= 0.6.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libidl >= 0.6.3 libidl <= 0.6.8" 2>&1`
        else
	        MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libidl >= 0.6.3 libidl <= 0.6.8" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZLIBREQ_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MOZIDL=""
elif test $pkg_failed = untried; then
	MOZIDL=""
else
	MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
	MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MOZIDL="TRUE"
fi
            if test -z "$MOZIDL"; then
                { { $as_echo "$as_me:$LINENO: error: libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build Mozilla." >&5
$as_echo "$as_me: error: libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build Mozilla." >&2;}
   { (exit 1); exit 1; }; }
            fi
        fi
    fi
fi



fi








if test "x$enable_xmlsec" != "xno" -o "x$enable_mozilla" != "xno"; then
{ $as_echo "$as_me:$LINENO: checking which NSS to use" >&5
$as_echo_n "checking which NSS to use... " >&6; }
if test "$with_system_nss" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_NSS="YES"

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for NSS" >&5
$as_echo_n "checking for NSS... " >&6; }

if test -n "$NSS_CFLAGS"; then
    pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$NSS_LIBS"; then
    pkg_cv_NSS_LIBS="$NSS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss >= 3.9.3 nspr >= 4.8" 2>&1`
        else
	        NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss >= 3.9.3 nspr >= 4.8" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$NSS_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (nss >= 3.9.3 nspr >= 4.8) were not met:

$NSS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NSS_CFLAGS
and NSS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (nss >= 3.9.3 nspr >= 4.8) were not met:

$NSS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NSS_CFLAGS
and NSS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables NSS_CFLAGS
and NSS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables NSS_CFLAGS
and NSS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
	NSS_LIBS=$pkg_cv_NSS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    SYSTEM_NSS="NO"
    BUILD_TYPE="$BUILD_TYPE NSS"
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    if test "$build_os" = "cygwin"; then
        { $as_echo "$as_me:$LINENO: checking for Mozilla build tooling. Required for nss and/or mozilla" >&5
$as_echo_n "checking for Mozilla build tooling. Required for nss and/or mozilla... " >&6; }
        if test -z "$MOZILLABUILD" ; then
            { { $as_echo "$as_me:$LINENO: error: Mozilla build tooling not found.
Use the --with-mozilla-build option after installing the tools obtained
from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" >&5
$as_echo "$as_me: error: Mozilla build tooling not found.
Use the --with-mozilla-build option after installing the tools obtained
from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" >&2;}
   { (exit 1); exit 1; }; }
        else
            if test \( "$WITH_MINGW" = "yes" \) ; then
                if test ! -d "$MOZILLABUILD" ; then
                    { { $as_echo "$as_me:$LINENO: error: Mozilla build tooling incomplete!" >&5
$as_echo "$as_me: error: Mozilla build tooling incomplete!" >&2;}
   { (exit 1); exit 1; }; }
                else
                    { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
                fi
            else
                if test ! -d "$MOZILLABUILD/moztools" \
                        -o ! -d "$MOZILLABUILD/msys" ; then
                    { { $as_echo "$as_me:$LINENO: error: Mozilla build tooling incomplete!" >&5
$as_echo "$as_me: error: Mozilla build tooling incomplete!" >&2;}
   { (exit 1); exit 1; }; }
                else
                    { $as_echo "$as_me:$LINENO: result: ok" >&5
$as_echo "ok" >&6; }
                fi
            fi
        fi
    fi
fi # system nss
fi # enable xmlsec || enable mozilla




HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=
{ $as_echo "$as_me:$LINENO: checking which mozilla headers to use" >&5
$as_echo_n "checking which mozilla headers to use... " >&6; }
if test "$with_system_mozilla_headers" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_MOZILLA_HEADERS=YES
    # First try npapi-sdk:

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZILLA_HEADERS" >&5
$as_echo_n "checking for MOZILLA_HEADERS... " >&6; }

if test -n "$MOZILLA_HEADERS_CFLAGS"; then
    pkg_cv_MOZILLA_HEADERS_CFLAGS="$MOZILLA_HEADERS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"npapi-sdk\"") >&5
  ($PKG_CONFIG --exists --print-errors "npapi-sdk") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLA_HEADERS_CFLAGS=`$PKG_CONFIG --cflags "npapi-sdk" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZILLA_HEADERS_LIBS"; then
    pkg_cv_MOZILLA_HEADERS_LIBS="$MOZILLA_HEADERS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"npapi-sdk\"") >&5
  ($PKG_CONFIG --exists --print-errors "npapi-sdk") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLA_HEADERS_LIBS=`$PKG_CONFIG --libs "npapi-sdk" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "npapi-sdk" 2>&1`
        else
	        MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --print-errors "npapi-sdk" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZILLA_HEADERS_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                LOCATED=no
elif test $pkg_failed = untried; then
	LOCATED=no
else
	MOZILLA_HEADERS_CFLAGS=$pkg_cv_MOZILLA_HEADERS_CFLAGS
	MOZILLA_HEADERS_LIBS=$pkg_cv_MOZILLA_HEADERS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	LOCATED=yes
fi
    # Then go with libxul:
    if test "x$LOCATED" != "xyes"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MOZILLA_HEADERS" >&5
$as_echo_n "checking for MOZILLA_HEADERS... " >&6; }

if test -n "$MOZILLA_HEADERS_CFLAGS"; then
    pkg_cv_MOZILLA_HEADERS_CFLAGS="$MOZILLA_HEADERS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxul\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxul") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLA_HEADERS_CFLAGS=`$PKG_CONFIG --cflags "libxul" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MOZILLA_HEADERS_LIBS"; then
    pkg_cv_MOZILLA_HEADERS_LIBS="$MOZILLA_HEADERS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxul\"") >&5
  ($PKG_CONFIG --exists --print-errors "libxul") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MOZILLA_HEADERS_LIBS=`$PKG_CONFIG --libs "libxul" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul" 2>&1`
        else
	        MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MOZILLA_HEADERS_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                LOCATED=no
elif test $pkg_failed = untried; then
	LOCATED=no
else
	MOZILLA_HEADERS_CFLAGS=$pkg_cv_MOZILLA_HEADERS_CFLAGS
	MOZILLA_HEADERS_LIBS=$pkg_cv_MOZILLA_HEADERS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	LOCATED=yes
fi
    fi
    # if still not found bail out
    if test "x$LOCATED" != "xyes"; then
        { { $as_echo "$as_me:$LINENO: error: npapi.h header file not found" >&5
$as_echo "$as_me: error: npapi.h header file not found" >&2;}
   { (exit 1); exit 1; }; }
    fi

    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    save_CFLAGS=$CFLAGS
    CFLAGS="$CFLAGS $MOZILLA_HEADERS_CFLAGS"
    { $as_echo "$as_me:$LINENO: checking for NPP_GetMIMEDescription return type" >&5
$as_echo_n "checking for NPP_GetMIMEDescription return type... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

            #define XP_UNIX
            #include <npapi.h>
            const char* NPP_GetMIMEDescription(void) { return "foo"; }

_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: const char*" >&5
$as_echo "const char*" >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


        { $as_echo "$as_me:$LINENO: result: char*" >&5
$as_echo "char*" >&6; }
        HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=TRUE

fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    CFLAGS=$save_CFLAGS
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_MOZILLA_HEADERS=NO
fi




{ $as_echo "$as_me:$LINENO: checking which sane header to use" >&5
$as_echo_n "checking which sane header to use... " >&6; }
if test "$with_system_sane" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_SANE_HEADER=YES
    if test "${ac_cv_header_sane_sane_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for sane/sane.h" >&5
$as_echo_n "checking for sane/sane.h... " >&6; }
if test "${ac_cv_header_sane_sane_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
$as_echo "$ac_cv_header_sane_sane_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
$as_echo_n "checking sane/sane.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <sane/sane.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
$as_echo_n "checking sane/sane.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <sane/sane.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: sane/sane.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: sane/sane.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for sane/sane.h" >&5
$as_echo_n "checking for sane/sane.h... " >&6; }
if test "${ac_cv_header_sane_sane_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_sane_sane_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
$as_echo "$ac_cv_header_sane_sane_h" >&6; }

fi
if test "x$ac_cv_header_sane_sane_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: sane not found. install sane" >&5
$as_echo "$as_me: error: sane not found. install sane" >&2;}
   { (exit 1); exit 1; }; }
fi


else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_SANE_HEADER=NO
    BUILD_TYPE="$BUILD_TYPE SANE"
fi


SYSTEM_GENBRK=
SYSTEM_GENCCODE=
SYSTEM_GENCMN=
ICU_MAJOR=
ICU_MINOR=
ICU_MICRO=
ICU_RECLASSIFIED_CLOSE_PARENTHESIS=
ICU_RECLASSIFIED_PREPEND_SET_EMPTY=
{ $as_echo "$as_me:$LINENO: checking which icu to use" >&5
$as_echo_n "checking which icu to use... " >&6; }
if test "$with_system_icu" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_ICU=YES
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    { $as_echo "$as_me:$LINENO: checking for unicode/rbbi.h" >&5
$as_echo_n "checking for unicode/rbbi.h... " >&6; }
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
unicode/rbbi.h
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  { $as_echo "$as_me:$LINENO: result: checked." >&5
$as_echo "checked." >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  { { $as_echo "$as_me:$LINENO: error: icu headers not found." >&5
$as_echo "$as_me: error: icu headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.err conftest.$ac_ext
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


    ICUPATH="$PATH"
    if test "$WITH_MINGW" = "yes" ; then
        ICUPATH="/usr/i686-w64-mingw32/sys-root/mingw/bin:$ICUPATH"
    fi
    # Extract the first word of "icu-config", so it can be a program name with args.
set dummy icu-config; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ICUCONFIG+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ICUCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ICUCONFIG="$ICUCONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $ICUPATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ICUCONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ICUCONFIG=$ac_cv_path_ICUCONFIG
if test -n "$ICUCONFIG"; then
  { $as_echo "$as_me:$LINENO: result: $ICUCONFIG" >&5
$as_echo "$ICUCONFIG" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



    { $as_echo "$as_me:$LINENO: checking ICU version" >&5
$as_echo_n "checking ICU version... " >&6; }
    ICU_VERSION=`$ICUCONFIG --noverify --version 2>/dev/null || $ICUCONFIG --version`
    ICU_MAJOR=`echo $ICU_VERSION | cut -d"." -f1`
    ICU_MINOR=`echo $ICU_VERSION | cut -d"." -f2`
    ICU_MICRO=`echo $ICU_VERSION | cut -d"." -f3`

    if test "$ICU_MAJOR" -ge "4"; then
        { $as_echo "$as_me:$LINENO: result: OK, $ICU_VERSION" >&5
$as_echo "OK, $ICU_VERSION" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: not suitable, only >= 4.0 supported currently" >&5
$as_echo "$as_me: error: not suitable, only >= 4.0 supported currently" >&2;}
   { (exit 1); exit 1; }; }
    fi

    if test "$cross_compiling" != "yes"; then
        # using the system icu tools can lead to version confusion, use the
        # ones from the build environment when cross-compiling
        # Extract the first word of "genbrk", so it can be a program name with args.
set dummy genbrk; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SYSTEM_GENBRK+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $SYSTEM_GENBRK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SYSTEM_GENBRK="$SYSTEM_GENBRK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/sbin:/sbin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SYSTEM_GENBRK="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
SYSTEM_GENBRK=$ac_cv_path_SYSTEM_GENBRK
if test -n "$SYSTEM_GENBRK"; then
  { $as_echo "$as_me:$LINENO: result: $SYSTEM_GENBRK" >&5
$as_echo "$SYSTEM_GENBRK" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$SYSTEM_GENBRK"; then
            { { $as_echo "$as_me:$LINENO: error: \'genbrk\' not found in \$PATH, install the icu development tool \'genbrk\'" >&5
$as_echo "$as_me: error: \'genbrk\' not found in \$PATH, install the icu development tool \'genbrk\'" >&2;}
   { (exit 1); exit 1; }; }
        fi
        # Extract the first word of "genccode", so it can be a program name with args.
set dummy genccode; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SYSTEM_GENCCODE+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $SYSTEM_GENCCODE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SYSTEM_GENCCODE="$SYSTEM_GENCCODE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SYSTEM_GENCCODE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
SYSTEM_GENCCODE=$ac_cv_path_SYSTEM_GENCCODE
if test -n "$SYSTEM_GENCCODE"; then
  { $as_echo "$as_me:$LINENO: result: $SYSTEM_GENCCODE" >&5
$as_echo "$SYSTEM_GENCCODE" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$SYSTEM_GENCCODE"; then
            { { $as_echo "$as_me:$LINENO: error: \'genccode\' not found in \$PATH, install the icu development tool \'genccode\'" >&5
$as_echo "$as_me: error: \'genccode\' not found in \$PATH, install the icu development tool \'genccode\'" >&2;}
   { (exit 1); exit 1; }; }
        fi
        # Extract the first word of "gencmn", so it can be a program name with args.
set dummy gencmn; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_SYSTEM_GENCMN+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $SYSTEM_GENCMN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SYSTEM_GENCMN="$SYSTEM_GENCMN" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_SYSTEM_GENCMN="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
SYSTEM_GENCMN=$ac_cv_path_SYSTEM_GENCMN
if test -n "$SYSTEM_GENCMN"; then
  { $as_echo "$as_me:$LINENO: result: $SYSTEM_GENCMN" >&5
$as_echo "$SYSTEM_GENCMN" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$SYSTEM_GENCMN"; then
            { { $as_echo "$as_me:$LINENO: error: \'gencmn\' not found in \$PATH, install the icu development tool \'gencmn\'" >&5
$as_echo "$as_me: error: \'gencmn\' not found in \$PATH, install the icu development tool \'gencmn\'" >&2;}
   { (exit 1); exit 1; }; }
        fi
        if test "$ICU_MAJOR" -ge "5" -o "$ICU_MAJOR" = "4" -a "$ICU_MINOR" -ge "4"; then
            ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
        fi
        if test "$ICU_MAJOR" -ge "5" -o "$ICU_MAJOR" = "4" -a "$ICU_MINOR" -ge "9"; then
            ICU_RECLASSIFIED_PREPEND_SET_EMPTY="YES"
        fi
    fi

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS icui18n$ICU_MAJOR$ICU_MINOR.dll icuuc$ICU_MAJOR$ICU_MINOR.dll icudata$ICU_MAJOR$ICU_MINOR.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_ICU="NO"
    ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
    # ICU_RECLASSIFIED_PREPEND_SET_EMPTY not applied for our internal ICU 4.4.2
    BUILD_TYPE="$BUILD_TYPE ICU"
fi











{ $as_echo "$as_me:$LINENO: checking whether to enable graphite support" >&5
$as_echo_n "checking whether to enable graphite support... " >&6; }
if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_GRAPHITE="TRUE"
    { $as_echo "$as_me:$LINENO: checking which graphite to use" >&5
$as_echo_n "checking which graphite to use... " >&6; }
    if test "$with_system_graphite" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        SYSTEM_GRAPHITE=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GRAPHITE" >&5
$as_echo_n "checking for GRAPHITE... " >&6; }

if test -n "$GRAPHITE_CFLAGS"; then
    pkg_cv_GRAPHITE_CFLAGS="$GRAPHITE_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3 \"") >&5
  ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GRAPHITE_CFLAGS=`$PKG_CONFIG --cflags "graphite2 >= 0.9.3 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GRAPHITE_LIBS"; then
    pkg_cv_GRAPHITE_LIBS="$GRAPHITE_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3 \"") >&5
  ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GRAPHITE_LIBS=`$PKG_CONFIG --libs "graphite2 >= 0.9.3 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "graphite2 >= 0.9.3 " 2>&1`
        else
	        GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "graphite2 >= 0.9.3 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GRAPHITE_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (graphite2 >= 0.9.3 ) were not met:

$GRAPHITE_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GRAPHITE_CFLAGS
and GRAPHITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (graphite2 >= 0.9.3 ) were not met:

$GRAPHITE_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GRAPHITE_CFLAGS
and GRAPHITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GRAPHITE_CFLAGS
and GRAPHITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GRAPHITE_CFLAGS
and GRAPHITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GRAPHITE_CFLAGS=$pkg_cv_GRAPHITE_CFLAGS
	GRAPHITE_LIBS=$pkg_cv_GRAPHITE_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libgraphite2.dll"
    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        SYSTEM_GRAPHITE=NO
        BUILD_TYPE="$BUILD_TYPE GRAPHITE"
    fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi





{ $as_echo "$as_me:$LINENO: checking whether to use system SampleICC" >&5
$as_echo_n "checking whether to use system SampleICC... " >&6; }
if test "$with_system_sampleicc" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    SYSTEM_SAMPLEICC=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for SAMPLEICC" >&5
$as_echo_n "checking for SAMPLEICC... " >&6; }

if test -n "$SAMPLEICC_CFLAGS"; then
    pkg_cv_SAMPLEICC_CFLAGS="$SAMPLEICC_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sampleicc\"") >&5
  ($PKG_CONFIG --exists --print-errors "sampleicc") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_SAMPLEICC_CFLAGS=`$PKG_CONFIG --cflags "sampleicc" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$SAMPLEICC_LIBS"; then
    pkg_cv_SAMPLEICC_LIBS="$SAMPLEICC_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sampleicc\"") >&5
  ($PKG_CONFIG --exists --print-errors "sampleicc") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_SAMPLEICC_LIBS=`$PKG_CONFIG --libs "sampleicc" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        SAMPLEICC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sampleicc" 2>&1`
        else
	        SAMPLEICC_PKG_ERRORS=`$PKG_CONFIG --print-errors "sampleicc" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$SAMPLEICC_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (sampleicc) were not met:

$SAMPLEICC_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SAMPLEICC_CFLAGS
and SAMPLEICC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (sampleicc) were not met:

$SAMPLEICC_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SAMPLEICC_CFLAGS
and SAMPLEICC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables SAMPLEICC_CFLAGS
and SAMPLEICC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables SAMPLEICC_CFLAGS
and SAMPLEICC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	SAMPLEICC_CFLAGS=$pkg_cv_SAMPLEICC_CFLAGS
	SAMPLEICC_LIBS=$pkg_cv_SAMPLEICC_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    SYSTEM_SAMPLEICC=NO
fi





if test  "$_os" = "Darwin"; then
    if test "x$with_x" = "xyes"; then
        { { $as_echo "$as_me:$LINENO: error: X11 build is no longer supported on MacOSX, please use the native aqua build" >&5
$as_echo "$as_me: error: X11 build is no longer supported on MacOSX, please use the native aqua build" >&2;}
   { (exit 1); exit 1; }; }
    else
        { $as_echo "$as_me:$LINENO: checking for /System/Library/Frameworks/AppKit.framework" >&5
$as_echo_n "checking for /System/Library/Frameworks/AppKit.framework... " >&6; }
        if test -d "/System/Library/Frameworks/AppKit.framework/"; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            x_includes="no_x_includes"
            x_libraries="no_x_libraries"
                        enable_gtk=no
        else
            { { $as_echo "$as_me:$LINENO: error: No AppKit.framewrok found" >&5
$as_echo "$as_me: error: No AppKit.framewrok found" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
fi

if test $_os = iOS -o $_os = Android; then
    enable_gtk=no
fi

{ $as_echo "$as_me:$LINENO: checking wether to build nsplugin extension" >&5
$as_echo_n "checking wether to build nsplugin extension... " >&6; }
ENABLE_NSPLUGIN=NO
if test "$enable_nsplugin" != "no"; then
    if test "$enable_gtk" != "no"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ENABLE_NSPLUGIN=YES
    else
        { $as_echo "$as_me:$LINENO: result: no, disabled gtk2" >&5
$as_echo "no, disabled gtk2" >&6; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test "$_os" = "Darwin" -a "x$x_includes" = "xno_x_includes"; then
        :
elif test "$_os" != "WINNT" -a "$_os" != "Android" -a "$_os" != "iOS"; then
    { $as_echo "$as_me:$LINENO: checking for X" >&5
$as_echo_n "checking for X... " >&6; }


# Check whether --with-x was given.
if test "${with_x+set}" = set; then
  withval=$with_x;
fi

# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
  # The user explicitly disabled X.
  have_x=disabled
else
  case $x_includes,$x_libraries in #(
    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
   { (exit 1); exit 1; }; };; #(
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  # One or both of the vars are not set, and there is no cached value.
ac_x_includes=no ac_x_libraries=no
rm -f -r conftest.dir
if mkdir conftest.dir; then
  cd conftest.dir
  cat >Imakefile <<'_ACEOF'
incroot:
	@echo incroot='${INCROOT}'
usrlibdir:
	@echo usrlibdir='${USRLIBDIR}'
libdir:
	@echo libdir='${LIBDIR}'
_ACEOF
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    for ac_var in incroot usrlibdir libdir; do
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
    done
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    for ac_extension in a so sl dylib la dll; do
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
	ac_im_usrlibdir=$ac_im_libdir; break
      fi
    done
    # Screen out bogus values from the imake configuration.  They are
    # bogus both because they are the default anyway, and because
    # using them would break gcc on systems where it needs fixed includes.
    case $ac_im_incroot in
	/usr/include) ac_x_includes= ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
    esac
    case $ac_im_usrlibdir in
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
    esac
  fi
  cd ..
  rm -f -r conftest.dir
fi

# Standard set of common directories for X headers.
# Check X11 before X11Rn because it is often a symlink to the current release.
ac_x_header_dirs='
/usr/X11/include
/usr/X11R6/include
/usr/X11R5/include
/usr/X11R4/include

/usr/include/X11
/usr/include/X11R6
/usr/include/X11R5
/usr/include/X11R4

/usr/local/X11/include
/usr/local/X11R6/include
/usr/local/X11R5/include
/usr/local/X11R4/include

/usr/local/include/X11
/usr/local/include/X11R6
/usr/local/include/X11R5
/usr/local/include/X11R4

/usr/X386/include
/usr/x386/include
/usr/XFree86/include/X11

/usr/include
/usr/local/include
/usr/unsupported/include
/usr/athena/include
/usr/local/x11r5/include
/usr/lpp/Xamples/include

/usr/openwin/include
/usr/openwin/share/include'

if test "$ac_x_includes" = no; then
  # Guess where to find include files, by looking for Xlib.h.
  # First, try using that file with no special directory specified.
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xlib.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  # We can compile using X headers with no special include directory.
ac_x_includes=
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  for ac_dir in $ac_x_header_dirs; do
  if test -r "$ac_dir/X11/Xlib.h"; then
    ac_x_includes=$ac_dir
    break
  fi
done
fi

rm -f conftest.err conftest.$ac_ext
fi # $ac_x_includes = no

if test "$ac_x_libraries" = no; then
  # Check for the libraries.
  # See if we find them without any special options.
  # Don't add to $LIBS permanently.
  ac_save_LIBS=$LIBS
  LIBS="-lX11 $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Xlib.h>
int
main ()
{
XrmInitialize ()
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	LIBS=$ac_save_LIBS
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do
  # Don't even attempt the hair of trying to link an X program!
  for ac_extension in a so sl dylib la dll; do
    if test -r "$ac_dir/libX11.$ac_extension"; then
      ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi # $ac_x_libraries = no

case $ac_x_includes,$ac_x_libraries in #(
  no,* | *,no | *\'*)
    # Didn't find X, or a directory has "'" in its name.
    ac_cv_have_x="have_x=no";; #(
  *)
    # Record where we found X for the cache.
    ac_cv_have_x="have_x=yes\
	ac_x_includes='$ac_x_includes'\
	ac_x_libraries='$ac_x_libraries'"
esac
fi
;; #(
    *) have_x=yes;;
  esac
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
$as_echo "$have_x" >&6; }
  no_x=yes
else
  # If each of the values was on the command line, it overrides each guess.
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  # Update the cache value to reflect the command line values.
  ac_cv_have_x="have_x=yes\
	ac_x_includes='$x_includes'\
	ac_x_libraries='$x_libraries'"
  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
fi

    if test "$no_x" = yes; then
  # Not all programs may use this symbol, but it does not hurt to define it.

cat >>confdefs.h <<\_ACEOF
#define X_DISPLAY_MISSING 1
_ACEOF

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
  if test -n "$x_includes"; then
    X_CFLAGS="$X_CFLAGS -I$x_includes"
  fi

  # It would also be nice to do this for all -L options, not just this one.
  if test -n "$x_libraries"; then
    X_LIBS="$X_LIBS -L$x_libraries"
    # For Solaris; some versions of Sun CC require a space after -R and
    # others require no space.  Words are not sufficient . . . .
    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    ac_xsave_c_werror_flag=$ac_c_werror_flag
    ac_c_werror_flag=yes
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
       X_LIBS="$X_LIBS -R$x_libraries"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	LIBS="$ac_xsave_LIBS -R $x_libraries"
       cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	  X_LIBS="$X_LIBS -R $x_libraries"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
$as_echo "neither works" >&6; }
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    ac_c_werror_flag=$ac_xsave_c_werror_flag
    LIBS=$ac_xsave_LIBS
  fi

  # Check for system-dependent libraries X programs must link with.
  # Do this before checking for the system-independent R6 libraries
  # (-lICE), since we may need -lsocket or whatever for X linking.

  if test "$ISC" = yes; then
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  else
    # Martyn Johnson says this is needed for Ultrix, if the X
    # libraries were built with DECnet support.  And Karl Berry says
    # the Alpha needs dnet_stub (dnet does not exist).
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  :
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dnet_dnet_ntoa=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dnet_dnet_ntoa=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi

    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dnet_ntoa ();
int
main ()
{
return dnet_ntoa ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dnet_stub_dnet_ntoa=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi

    fi
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
    LIBS="$ac_xsave_LIBS"

    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
    # to get the SysV transport functions.
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
    # needs -lnsl.
    # The nsl library prevents programs from opening the X display
    # on Irix 5.2, according to T.E. Dickey.
    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
$as_echo_n "checking for gethostbyname... " >&6; }
if test "${ac_cv_func_gethostbyname+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define gethostbyname innocuous_gethostbyname

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef gethostbyname

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_gethostbyname || defined __stub___gethostbyname
choke me
#endif

int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_gethostbyname=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_gethostbyname=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
$as_echo "$ac_cv_func_gethostbyname" >&6; }

    if test $ac_cv_func_gethostbyname = no; then
      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_nsl_gethostbyname=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_nsl_gethostbyname=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi

      if test $ac_cv_lib_nsl_gethostbyname = no; then
	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_bsd_gethostbyname=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_bsd_gethostbyname=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi

      fi
    fi

    # lieder@skyler.mavd.honeywell.com says without -lsocket,
    # socket/setsockopt and other routines are undefined under SCO ODT
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
    # on later versions), says Simon Leinen: it contains gethostby*
    # variants that don't use the name server (or something).  -lsocket
    # must be given before -lnsl if both are needed.  We assume that
    # if connect needs -lnsl, so does gethostbyname.
    { $as_echo "$as_me:$LINENO: checking for connect" >&5
$as_echo_n "checking for connect... " >&6; }
if test "${ac_cv_func_connect+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define connect innocuous_connect

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char connect (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef connect

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_connect || defined __stub___connect
choke me
#endif

int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_connect=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_connect=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
$as_echo "$ac_cv_func_connect" >&6; }

    if test $ac_cv_func_connect = no; then
      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
$as_echo_n "checking for connect in -lsocket... " >&6; }
if test "${ac_cv_lib_socket_connect+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char connect ();
int
main ()
{
return connect ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_socket_connect=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_socket_connect=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
$as_echo "$ac_cv_lib_socket_connect" >&6; }
if test "x$ac_cv_lib_socket_connect" = x""yes; then
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi

    fi

    # Guillermo Gomez says -lposix is necessary on A/UX.
    { $as_echo "$as_me:$LINENO: checking for remove" >&5
$as_echo_n "checking for remove... " >&6; }
if test "${ac_cv_func_remove+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define remove innocuous_remove

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char remove (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef remove

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_remove || defined __stub___remove
choke me
#endif

int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_remove=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_remove=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
$as_echo "$ac_cv_func_remove" >&6; }

    if test $ac_cv_func_remove = no; then
      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
$as_echo_n "checking for remove in -lposix... " >&6; }
if test "${ac_cv_lib_posix_remove+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char remove ();
int
main ()
{
return remove ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_posix_remove=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_posix_remove=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
$as_echo "$ac_cv_lib_posix_remove" >&6; }
if test "x$ac_cv_lib_posix_remove" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
$as_echo_n "checking for shmat... " >&6; }
if test "${ac_cv_func_shmat+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define shmat innocuous_shmat

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shmat (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef shmat

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_shmat || defined __stub___shmat
choke me
#endif

int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_func_shmat=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_func_shmat=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
$as_echo "$ac_cv_func_shmat" >&6; }

    if test $ac_cv_func_shmat = no; then
      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
$as_echo_n "checking for shmat in -lipc... " >&6; }
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char shmat ();
int
main ()
{
return shmat ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ipc_shmat=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ipc_shmat=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi

    fi
  fi

  # Check for libraries that X11R6 Xt/Xaw programs need.
  ac_save_LDFLAGS=$LDFLAGS
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  # check for ICE first), but we must link in the order -lSM -lICE or
  # we get undefined symbols.  So assume we have SM if we have ICE.
  # These have to be linked with before -lX11, unlike the other
  # libraries we check for below, so use a different variable.
  # John Interrante, Karl Berry
  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char IceConnectionNumber ();
int
main ()
{
return IceConnectionNumber ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_ICE_IceConnectionNumber=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_ICE_IceConnectionNumber=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi

  LDFLAGS=$ac_save_LDFLAGS

fi

    CPPFLAGS="$CPPFLAGS $X_CFLAGS"

    if test "x$x_includes" = "x"; then
        x_includes="default_x_includes"
    fi
    if test "x$x_libraries" = "x"; then
        x_libraries="default_x_libraries"
    fi
        if test -z "$x_libraries"; then
        { { $as_echo "$as_me:$LINENO: error: No X libraries found" >&5
$as_echo "$as_me: error: No X libraries found" >&2;}
   { (exit 1); exit 1; }; } # Exit
    fi
    if test -z "$x_includes"; then
        { { $as_echo "$as_me:$LINENO: error: No X includes found" >&5
$as_echo "$as_me: error: No X includes found" >&2;}
   { (exit 1); exit 1; }; } # Exit
    fi
    CFLAGS="$CFLAGS $X_CFLAGS"
    LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
    { $as_echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lX11  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XOpenDisplay ();
int
main ()
{
return XOpenDisplay ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_X11_XOpenDisplay=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_X11_XOpenDisplay=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then
  x_libs="-lX11 $X_EXTRA_LIBS"
else
  { { $as_echo "$as_me:$LINENO: error: X Development libraries not found" >&5
$as_echo "$as_me: error: X Development libraries not found" >&2;}
   { (exit 1); exit 1; }; }
fi

        { $as_echo "$as_me:$LINENO: checking for XauDisposeAuth in -lXau" >&5
$as_echo_n "checking for XauDisposeAuth in -lXau... " >&6; }
if test "${ac_cv_lib_Xau_XauDisposeAuth+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXau  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XauDisposeAuth ();
int
main ()
{
return XauDisposeAuth ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_Xau_XauDisposeAuth=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_Xau_XauDisposeAuth=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauDisposeAuth" >&5
$as_echo "$ac_cv_lib_Xau_XauDisposeAuth" >&6; }
if test "x$ac_cv_lib_Xau_XauDisposeAuth" = x""yes; then
  XAU_LIBS="-lXau"
fi

else
    x_includes="no_x_includes"
    x_libraries="no_x_libraries"
fi
if test -z "$x_includes"; then
    x_includes="no_x_includes"
fi
if test -z "$x_libraries"; then
    x_libraries="no_x_libraries"
fi
if test "$x_includes" = "default_x_includes"; then
    XINC="/usr/include"
else
    XINC="$x_includes"
fi

if test "$x_libraries" = "default_x_libraries"; then
    XLIB=`$PKG_CONFIG --variable=libdir x11`
    if test "x$XLIB" = x; then
        XLIB="/usr/lib"
    fi
else
    XLIB="$x_libraries"
fi



if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$_os" != "Android" -a "$_os" != "iOS"; then

for ac_header in X11/Composite.h
do
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/Intrinsic.h>

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  eval "$as_ac_Header=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_Header=no"
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

else
  { { $as_echo "$as_me:$LINENO: error: Xt headers not found" >&5
$as_echo "$as_me: error: Xt headers not found" >&2;}
   { (exit 1); exit 1; }; }
fi

done

fi

{ $as_echo "$as_me:$LINENO: checking whether to use internal X11 extensions headers" >&5
$as_echo_n "checking whether to use internal X11 extensions headers... " >&6; }
if test "$with_system_xextensions_headers" != "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    BUILD_TYPE="$BUILD_TYPE X11_EXTENSIONS"
fi

{ $as_echo "$as_me:$LINENO: checking whether to use Xrender" >&5
$as_echo_n "checking whether to use Xrender... " >&6; }
if test "$test_xrender" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

{ $as_echo "$as_me:$LINENO: checking for XRenderQueryVersion in -lXrender" >&5
$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
if test "${ac_cv_lib_Xrender_XRenderQueryVersion+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXrender  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XRenderQueryVersion ();
int
main ()
{
return XRenderQueryVersion ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_Xrender_XRenderQueryVersion=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_Xrender_XRenderQueryVersion=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXRENDER 1
_ACEOF

  LIBS="-lXrender $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: libXrender not found or functional" >&5
$as_echo "$as_me: error: libXrender not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

    { $as_echo "$as_me:$LINENO: checking which Xrender headers to use" >&5
$as_echo_n "checking which Xrender headers to use... " >&6; }
    if test "$with_system_xextensions_headers" != "no"; then
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrender.h" >&5
$as_echo_n "checking for X11/extensions/Xrender.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrender_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xrender_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xrender.h usability" >&5
$as_echo_n "checking X11/extensions/Xrender.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <X11/extensions/Xrender.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xrender.h presence" >&5
$as_echo_n "checking X11/extensions/Xrender.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/extensions/Xrender.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrender.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrender.h" >&5
$as_echo_n "checking for X11/extensions/Xrender.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_X11_extensions_Xrender_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrender_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xrender_h" >&6; }

fi
if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: Xrender not found. install X" >&5
$as_echo "$as_me: error: Xrender not found. install X" >&2;}
   { (exit 1); exit 1; }; }
fi


    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    fi
fi

{ $as_echo "$as_me:$LINENO: checking whether to enable RandR support" >&5
$as_echo_n "checking whether to enable RandR support... " >&6; }
if test "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \) ; then
    if test -z "$enable_randr_link" -o "$enable_randr_link" = "no"; then
        XRANDR_DLOPEN="TRUE"
        { $as_echo "$as_me:$LINENO: result: configured to dlopen libXrandr at runtime" >&5
$as_echo "configured to dlopen libXrandr at runtime" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        XRANDR_DLOPEN="FALSE"

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for XRANDR" >&5
$as_echo_n "checking for XRANDR... " >&6; }

if test -n "$XRANDR_CFLAGS"; then
    pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\"") >&5
  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$XRANDR_LIBS"; then
    pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\"") >&5
  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.2" 2>&1`
        else
	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.2" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$XRANDR_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                ENABLE_RANDR=""
elif test $pkg_failed = untried; then
	ENABLE_RANDR=""
else
	XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
	XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	ENABLE_RANDR="TRUE"
fi
        if test "$ENABLE_RANDR" != "TRUE"; then
            if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h usability" >&5
$as_echo_n "checking X11/extensions/Xrandr.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <X11/extensions/Xrandr.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h presence" >&5
$as_echo_n "checking X11/extensions/Xrandr.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/extensions/Xrandr.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
$as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_X11_extensions_Xrandr_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }

fi
if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?" >&5
$as_echo "$as_me: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?" >&2;}
   { (exit 1); exit 1; }; }
fi


            XRANDR_CFLAGS=" "

{ $as_echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXrandr  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XRRQueryExtension ();
int
main ()
{
return XRRQueryExtension ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_Xrandr_XRRQueryExtension=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_Xrandr_XRRQueryExtension=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXRANDR 1
_ACEOF

  LIBS="-lXrandr $LIBS"

else
   { { $as_echo "$as_me:$LINENO: error: libXrandr not found or functional" >&5
$as_echo "$as_me: error: libXrandr not found or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

            XRANDR_LIBS="-lXrandr "
            ENABLE_RANDR="TRUE"
        fi
    fi
else
    ENABLE_RANDR=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi





{ $as_echo "$as_me:$LINENO: checking whether to use neon" >&5
$as_echo_n "checking whether to use neon... " >&6; }
if test "$enable_neon" = "no"; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    DISABLE_NEON=TRUE

else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
{ $as_echo "$as_me:$LINENO: checking which neon to use" >&5
$as_echo_n "checking which neon to use... " >&6; }
if test "$with_system_neon" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for NEON" >&5
$as_echo_n "checking for NEON... " >&6; }

if test -n "$NEON_CFLAGS"; then
    pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.26.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$NEON_LIBS"; then
    pkg_cv_NEON_LIBS="$NEON_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.26.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "neon >= 0.26.0" 2>&1`
        else
	        NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "neon >= 0.26.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$NEON_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                { { $as_echo "$as_me:$LINENO: error: you need neon >= 0.26.x for system-neon" >&5
$as_echo "$as_me: error: you need neon >= 0.26.x for system-neon" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: you need neon >= 0.26.x for system-neon" >&5
$as_echo "$as_me: error: you need neon >= 0.26.x for system-neon" >&2;}
   { (exit 1); exit 1; }; }
else
	NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
	NEON_LIBS=$pkg_cv_NEON_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    NEON_VERSION="`$PKG_CONFIG --modversion neon | $SED 's/\.//g'`"
    NEON_CFLAGS="$NEON_CFLAGS -DSYSTEM_NEON -DUSE_DAV_LOCKS=1"
    SYSTEM_NEON=YES
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libtasn1-3.dll libgnutls-26.dll libneon-27.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_NEON=NO
    NEON_LIBS=-lneon
    NEON_CFLAGS=
    BUILD_TYPE="$BUILD_TYPE NEON"
fi




fi

if test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \
        "$_os" = "DragonFly" && test "$with_system_openssl" != "no"; then
    with_system_openssl=yes
fi
{ $as_echo "$as_me:$LINENO: checking which libssl to use" >&5
$as_echo_n "checking which libssl to use... " >&6; }
if test "$with_system_openssl" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    # Mac OS builds should get out without extra stuff is the Mac porters'
    # wish. And pkg-config is although Xcode ships a .pc for openssl
    if test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \
            "$_os" = "DragonFly"; then
        OPENSSL_CFLAGS=
        OPENSSL_LIBS="-lssl -lcrypto"
    else

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for OPENSSL" >&5
$as_echo_n "checking for OPENSSL... " >&6; }

if test -n "$OPENSSL_CFLAGS"; then
    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl \"") >&5
  ($PKG_CONFIG --exists --print-errors "openssl ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$OPENSSL_LIBS"; then
    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openssl \"") >&5
  ($PKG_CONFIG --exists --print-errors "openssl ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl " 2>&1`
        else
	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$OPENSSL_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (openssl ) were not met:

$OPENSSL_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (openssl ) were not met:

$OPENSSL_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    fi
    SYSTEM_OPENSSL=YES
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libssl-8.dll libcrypto-8.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_OPENSSL=NO
    BUILD_TYPE="$BUILD_TYPE OPENSSL"
fi




{ $as_echo "$as_me:$LINENO: checking which redland library to use" >&5
$as_echo_n "checking which redland library to use... " >&6; }
if test "$with_system_redland" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_REDLAND=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for REDLAND" >&5
$as_echo_n "checking for REDLAND... " >&6; }

if test -n "$REDLAND_CFLAGS"; then
    pkg_cv_REDLAND_CFLAGS="$REDLAND_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_REDLAND_CFLAGS=`$PKG_CONFIG --cflags "redland >= 1.0.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$REDLAND_LIBS"; then
    pkg_cv_REDLAND_LIBS="$REDLAND_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8\"") >&5
  ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_REDLAND_LIBS=`$PKG_CONFIG --libs "redland >= 1.0.8" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        REDLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "redland >= 1.0.8" 2>&1`
        else
	        REDLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors "redland >= 1.0.8" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$REDLAND_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (redland >= 1.0.8) were not met:

$REDLAND_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables REDLAND_CFLAGS
and REDLAND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (redland >= 1.0.8) were not met:

$REDLAND_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables REDLAND_CFLAGS
and REDLAND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables REDLAND_CFLAGS
and REDLAND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables REDLAND_CFLAGS
and REDLAND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	REDLAND_CFLAGS=$pkg_cv_REDLAND_CFLAGS
	REDLAND_LIBS=$pkg_cv_REDLAND_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libraptor-1.dll librasqal-2.dll libsqlite3-0.dll librdf-0.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    BUILD_TYPE="$BUILD_TYPE REDLAND"
    SYSTEM_REDLAND=NO
fi




{ $as_echo "$as_me:$LINENO: checking which libhunspell to use" >&5
$as_echo_n "checking which libhunspell to use... " >&6; }
if test "$with_system_hunspell" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_HUNSPELL=YES
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for HUNSPELL" >&5
$as_echo_n "checking for HUNSPELL... " >&6; }

if test -n "$HUNSPELL_CFLAGS"; then
    pkg_cv_HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hunspell\"") >&5
  ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$HUNSPELL_LIBS"; then
    pkg_cv_HUNSPELL_LIBS="$HUNSPELL_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hunspell\"") >&5
  ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hunspell" 2>&1`
        else
	        HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hunspell" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$HUNSPELL_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                HUNSPELL_PC=""
elif test $pkg_failed = untried; then
	HUNSPELL_PC=""
else
	HUNSPELL_CFLAGS=$pkg_cv_HUNSPELL_CFLAGS
	HUNSPELL_LIBS=$pkg_cv_HUNSPELL_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	HUNSPELL_PC="TRUE"
fi
    if test "$HUNSPELL_PC" != "TRUE"; then
        if test "${ac_cv_header_hunspell_hxx+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for hunspell.hxx" >&5
$as_echo_n "checking for hunspell.hxx... " >&6; }
if test "${ac_cv_header_hunspell_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hxx" >&5
$as_echo "$ac_cv_header_hunspell_hxx" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking hunspell.hxx usability" >&5
$as_echo_n "checking hunspell.hxx usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <hunspell.hxx>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking hunspell.hxx presence" >&5
$as_echo_n "checking hunspell.hxx presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hunspell.hxx>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: hunspell.hxx:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: hunspell.hxx:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell.hxx: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: hunspell.hxx: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for hunspell.hxx" >&5
$as_echo_n "checking for hunspell.hxx... " >&6; }
if test "${ac_cv_header_hunspell_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_hunspell_hxx=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hxx" >&5
$as_echo "$ac_cv_header_hunspell_hxx" >&6; }

fi
if test "x$ac_cv_header_hunspell_hxx" = x""yes; then
  :
else

            if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for hunspell/hunspell.hxx" >&5
$as_echo_n "checking for hunspell/hunspell.hxx... " >&6; }
if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hunspell_hxx" >&5
$as_echo "$ac_cv_header_hunspell_hunspell_hxx" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking hunspell/hunspell.hxx usability" >&5
$as_echo_n "checking hunspell/hunspell.hxx usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <hunspell/hunspell.hxx>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking hunspell/hunspell.hxx presence" >&5
$as_echo_n "checking hunspell/hunspell.hxx presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hunspell/hunspell.hxx>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: hunspell/hunspell.hxx: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for hunspell/hunspell.hxx" >&5
$as_echo_n "checking for hunspell/hunspell.hxx... " >&6; }
if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_hunspell_hunspell_hxx=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hunspell_hxx" >&5
$as_echo "$ac_cv_header_hunspell_hunspell_hxx" >&6; }

fi
if test "x$ac_cv_header_hunspell_hunspell_hxx" = x""yes; then
   HUNSPELL_CFLAGS=-I/usr/include/hunspell
else
  { { $as_echo "$as_me:$LINENO: error: hunspell headers not found." >&5
$as_echo "$as_me: error: hunspell headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi



fi



{ $as_echo "$as_me:$LINENO: checking for main in -lhunspell" >&5
$as_echo_n "checking for main in -lhunspell... " >&6; }
if test "${ac_cv_lib_hunspell_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhunspell  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_hunspell_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_hunspell_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hunspell_main" >&5
$as_echo "$ac_cv_lib_hunspell_main" >&6; }
if test "x$ac_cv_lib_hunspell_main" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBHUNSPELL 1
_ACEOF

  LIBS="-lhunspell $LIBS"

else
   { { $as_echo "$as_me:$LINENO: error: hunspell library not found." >&5
$as_echo "$as_me: error: hunspell library not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        HUNSPELL_LIBS=-lhunspell
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libhunspell-1.3-0.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_HUNSPELL=NO
    BUILD_TYPE="$BUILD_TYPE HUNSPELL"
fi




{ $as_echo "$as_me:$LINENO: checking which altlinuxhyph to use" >&5
$as_echo_n "checking which altlinuxhyph to use... " >&6; }
if test "$with_system_altlinuxhyph" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_HYPH=YES
    if test "${ac_cv_header_hyphen_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for hyphen.h" >&5
$as_echo_n "checking for hyphen.h... " >&6; }
if test "${ac_cv_header_hyphen_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hyphen_h" >&5
$as_echo "$ac_cv_header_hyphen_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking hyphen.h usability" >&5
$as_echo_n "checking hyphen.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <hyphen.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking hyphen.h presence" >&5
$as_echo_n "checking hyphen.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hyphen.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: hyphen.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: hyphen.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: hyphen.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: hyphen.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: hyphen.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: hyphen.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: hyphen.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: hyphen.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: hyphen.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for hyphen.h" >&5
$as_echo_n "checking for hyphen.h... " >&6; }
if test "${ac_cv_header_hyphen_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_hyphen_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_hyphen_h" >&5
$as_echo "$ac_cv_header_hyphen_h" >&6; }

fi
if test "x$ac_cv_header_hyphen_h" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: altlinuxhyph headers not found." >&5
$as_echo "$as_me: error: altlinuxhyph headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi


    { $as_echo "$as_me:$LINENO: checking for struct _HyphenDict.cset" >&5
$as_echo_n "checking for struct _HyphenDict.cset... " >&6; }
if test "${ac_cv_member_struct__HyphenDict_cset+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hyphen.h>

int
main ()
{
static struct _HyphenDict ac_aggr;
if (ac_aggr.cset)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_member_struct__HyphenDict_cset=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <hyphen.h>

int
main ()
{
static struct _HyphenDict ac_aggr;
if (sizeof ac_aggr.cset)
return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_member_struct__HyphenDict_cset=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_member_struct__HyphenDict_cset=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct__HyphenDict_cset" >&5
$as_echo "$ac_cv_member_struct__HyphenDict_cset" >&6; }
if test "x$ac_cv_member_struct__HyphenDict_cset" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: no. You are sure you have altlinuyhyph headers?" >&5
$as_echo "$as_me: error: no. You are sure you have altlinuyhyph headers?" >&2;}
   { (exit 1); exit 1; }; }
fi

    { $as_echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhyphen" >&5
$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyphen... " >&6; }
if test "${ac_cv_lib_hyphen_hnj_hyphen_hyphenate2+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhyphen  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hnj_hyphen_hyphenate2 ();
int
main ()
{
return hnj_hyphen_hyphenate2 ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&5
$as_echo "$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&6; }
if test "x$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" = x""yes; then
  HYPHEN_LIB=-lhyphen
else
   { { $as_echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
$as_echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
   { (exit 1); exit 1; }; }
fi

    if test -z "$HYPHEN_LIB"; then
        { $as_echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhyph" >&5
$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyph... " >&6; }
if test "${ac_cv_lib_hyph_hnj_hyphen_hyphenate2+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhyph  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hnj_hyphen_hyphenate2 ();
int
main ()
{
return hnj_hyphen_hyphenate2 ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_hyph_hnj_hyphen_hyphenate2=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_hyph_hnj_hyphen_hyphenate2=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&5
$as_echo "$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&6; }
if test "x$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" = x""yes; then
  HYPHEN_LIB=-lhyph
else
   { { $as_echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
$as_echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
   { (exit 1); exit 1; }; }
fi

    fi
    if test -z "$HYPHEN_LIB"; then
        { $as_echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhnj" >&5
$as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhnj... " >&6; }
if test "${ac_cv_lib_hnj_hnj_hyphen_hyphenate2+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lhnj  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char hnj_hyphen_hyphenate2 ();
int
main ()
{
return hnj_hyphen_hyphenate2 ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_hnj_hnj_hyphen_hyphenate2=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_hnj_hnj_hyphen_hyphenate2=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&5
$as_echo "$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&6; }
if test "x$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" = x""yes; then
  HYPHEN_LIB=-lhnj
else
   { { $as_echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
$as_echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
   { (exit 1); exit 1; }; }
fi

    fi
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libhyphen-0.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_HYPH=NO
    BUILD_TYPE="$BUILD_TYPE HYPHEN"
fi



{ $as_echo "$as_me:$LINENO: checking which mythes to use" >&5
$as_echo_n "checking which mythes to use... " >&6; }
if test "$with_system_mythes" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_MYTHES=YES
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for MYTHES" >&5
$as_echo_n "checking for MYTHES... " >&6; }

if test -n "$MYTHES_CFLAGS"; then
    pkg_cv_MYTHES_CFLAGS="$MYTHES_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mythes\"") >&5
  ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MYTHES_CFLAGS=`$PKG_CONFIG --cflags "mythes" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$MYTHES_LIBS"; then
    pkg_cv_MYTHES_LIBS="$MYTHES_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mythes\"") >&5
  ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_MYTHES_LIBS=`$PKG_CONFIG --libs "mythes" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        MYTHES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mythes" 2>&1`
        else
	        MYTHES_PKG_ERRORS=`$PKG_CONFIG --print-errors "mythes" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$MYTHES_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                MYTHES_PKGCONFIG=no
elif test $pkg_failed = untried; then
	MYTHES_PKGCONFIG=no
else
	MYTHES_CFLAGS=$pkg_cv_MYTHES_CFLAGS
	MYTHES_LIBS=$pkg_cv_MYTHES_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	MYTHES_PKGCONFIG=yes
fi
    if test "$MYTHES_PKGCONFIG" = "no"; then
        if test "${ac_cv_header_mythes_hxx+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for mythes.hxx" >&5
$as_echo_n "checking for mythes.hxx... " >&6; }
if test "${ac_cv_header_mythes_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mythes_hxx" >&5
$as_echo "$ac_cv_header_mythes_hxx" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking mythes.hxx usability" >&5
$as_echo_n "checking mythes.hxx usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <mythes.hxx>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking mythes.hxx presence" >&5
$as_echo_n "checking mythes.hxx presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <mythes.hxx>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: mythes.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: mythes.hxx: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: mythes.hxx: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: mythes.hxx:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: mythes.hxx: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: mythes.hxx:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: mythes.hxx: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: mythes.hxx: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: mythes.hxx: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for mythes.hxx" >&5
$as_echo_n "checking for mythes.hxx... " >&6; }
if test "${ac_cv_header_mythes_hxx+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_mythes_hxx=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mythes_hxx" >&5
$as_echo "$ac_cv_header_mythes_hxx" >&6; }

fi
if test "x$ac_cv_header_mythes_hxx" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: mythes.hxx headers not found." >&5
$as_echo "$as_me: error: mythes.hxx headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi



{ $as_echo "$as_me:$LINENO: checking for main in -lmythes-1.2" >&5
$as_echo_n "checking for main in -lmythes-1.2... " >&6; }
if test "${ac_cv_lib_mythes_1_2_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmythes-1.2  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_mythes_1_2_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_mythes_1_2_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mythes_1_2_main" >&5
$as_echo "$ac_cv_lib_mythes_1_2_main" >&6; }
if test "x$ac_cv_lib_mythes_1_2_main" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBMYTHES_1_2 1
_ACEOF

  LIBS="-lmythes-1.2 $LIBS"

else
   MYTHES_FOUND=no
fi

    if test "$MYTHES_FOUND" = "no"; then
        { $as_echo "$as_me:$LINENO: checking for main in -lmythes" >&5
$as_echo_n "checking for main in -lmythes... " >&6; }
if test "${ac_cv_lib_mythes_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmythes  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_mythes_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_mythes_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mythes_main" >&5
$as_echo "$ac_cv_lib_mythes_main" >&6; }
if test "x$ac_cv_lib_mythes_main" = x""yes; then
  MYTHES_FOUND=yes
else
   MYTHES_FOUND=no
fi

    fi
    if test "$MYTHES_FOUND" = "no"; then
        { { $as_echo "$as_me:$LINENO: error: mythes library not found!." >&5
$as_echo "$as_me: error: mythes library not found!." >&2;}
   { (exit 1); exit 1; }; }
    fi
    fi
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libmythes-1.2-0.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_MYTHES=NO
    BUILD_TYPE="$BUILD_TYPE MYTHES"
fi




{ $as_echo "$as_me:$LINENO: checking which lpsolve to use" >&5
$as_echo_n "checking which lpsolve to use... " >&6; }
if test "$with_system_lpsolve" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LPSOLVE=YES
    if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for lpsolve/lp_lib.h" >&5
$as_echo_n "checking for lpsolve/lp_lib.h... " >&6; }
if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lpsolve_lp_lib_h" >&5
$as_echo "$ac_cv_header_lpsolve_lp_lib_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking lpsolve/lp_lib.h usability" >&5
$as_echo_n "checking lpsolve/lp_lib.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <lpsolve/lp_lib.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking lpsolve/lp_lib.h presence" >&5
$as_echo_n "checking lpsolve/lp_lib.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <lpsolve/lp_lib.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: lpsolve/lp_lib.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for lpsolve/lp_lib.h" >&5
$as_echo_n "checking for lpsolve/lp_lib.h... " >&6; }
if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_lpsolve_lp_lib_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lpsolve_lp_lib_h" >&5
$as_echo "$ac_cv_header_lpsolve_lp_lib_h" >&6; }

fi
if test "x$ac_cv_header_lpsolve_lp_lib_h" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: lpsolve headers not found." >&5
$as_echo "$as_me: error: lpsolve headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi


    # some systems need this. Like Ubuntu....

{ $as_echo "$as_me:$LINENO: checking for floor in -lm" >&5
$as_echo_n "checking for floor in -lm... " >&6; }
if test "${ac_cv_lib_m_floor+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char floor ();
int
main ()
{
return floor ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_m_floor=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_m_floor=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
$as_echo "$ac_cv_lib_m_floor" >&6; }
if test "x$ac_cv_lib_m_floor" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBM 1
_ACEOF

  LIBS="-lm $LIBS"

fi


{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_dl_dlopen=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_dl_dlopen=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF

  LIBS="-ldl $LIBS"

fi


{ $as_echo "$as_me:$LINENO: checking for make_lp in -llpsolve55" >&5
$as_echo_n "checking for make_lp in -llpsolve55... " >&6; }
if test "${ac_cv_lib_lpsolve55_make_lp+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llpsolve55  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char make_lp ();
int
main ()
{
return make_lp ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_lpsolve55_make_lp=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_lpsolve55_make_lp=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lpsolve55_make_lp" >&5
$as_echo "$ac_cv_lib_lpsolve55_make_lp" >&6; }
if test "x$ac_cv_lib_lpsolve55_make_lp" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLPSOLVE55 1
_ACEOF

  LIBS="-llpsolve55 $LIBS"

else
   { { $as_echo "$as_me:$LINENO: error: lpsolve library not found or too old." >&5
$as_echo "$as_me: error: lpsolve library not found or too old." >&2;}
   { (exit 1); exit 1; }; }
fi

    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS lpsolve55.dll"
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LPSOLVE=NO
    BUILD_TYPE="$BUILD_TYPE LPSOLVE"
fi


{ $as_echo "$as_me:$LINENO: checking which libexttextcat to use" >&5
$as_echo_n "checking which libexttextcat to use... " >&6; }
if test "$with_system_libexttextcat" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
    SYSTEM_LIBEXTTEXTCAT=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBEXTTEXTCAT" >&5
$as_echo_n "checking for LIBEXTTEXTCAT... " >&6; }

if test -n "$LIBEXTTEXTCAT_CFLAGS"; then
    pkg_cv_LIBEXTTEXTCAT_CFLAGS="$LIBEXTTEXTCAT_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.1.1\"") >&5
  ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.1.1") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBEXTTEXTCAT_CFLAGS=`$PKG_CONFIG --cflags "libexttextcat >= 3.1.1" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBEXTTEXTCAT_LIBS"; then
    pkg_cv_LIBEXTTEXTCAT_LIBS="$LIBEXTTEXTCAT_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.1.1\"") >&5
  ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.1.1") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBEXTTEXTCAT_LIBS=`$PKG_CONFIG --libs "libexttextcat >= 3.1.1" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libexttextcat >= 3.1.1" 2>&1`
        else
	        LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libexttextcat >= 3.1.1" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBEXTTEXTCAT_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libexttextcat >= 3.1.1) were not met:

$LIBEXTTEXTCAT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (libexttextcat >= 3.1.1) were not met:

$LIBEXTTEXTCAT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBEXTTEXTCAT_CFLAGS=$pkg_cv_LIBEXTTEXTCAT_CFLAGS
	LIBEXTTEXTCAT_LIBS=$pkg_cv_LIBEXTTEXTCAT_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    SYSTEM_LIBEXTTEXTCAT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libexttextcat`
else
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    SYSTEM_LIBEXTTEXTCAT=NO
    BUILD_TYPE="$BUILD_TYPE LIBEXTTEXTCAT"
fi





if test "$_os" = "Linux"; then
    { $as_echo "$as_me:$LINENO: checking whether libc is >= 2.1.1" >&5
$as_echo_n "checking whether libc is >= 2.1.1... " >&6; }
    exec 6>/dev/null # no output
    { $as_echo "$as_me:$LINENO: checking for gnu_get_libc_version in -lc" >&5
$as_echo_n "checking for gnu_get_libc_version in -lc... " >&6; }
if test "${ac_cv_lib_c_gnu_get_libc_version+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lc  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gnu_get_libc_version ();
int
main ()
{
return gnu_get_libc_version ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_c_gnu_get_libc_version=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_c_gnu_get_libc_version=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gnu_get_libc_version" >&5
$as_echo "$ac_cv_lib_c_gnu_get_libc_version" >&6; }
if test "x$ac_cv_lib_c_gnu_get_libc_version" = x""yes; then
  HAVE_LIBC=yes; export HAVE_LIBC
fi

    exec 6>&1 # output on again
    if test "$HAVE_LIBC"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, upgrade libc" >&5
$as_echo "$as_me: error: no, upgrade libc" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

if test "$_os" != "WINNT"; then

for ac_func in getopt
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 HAVE_GETOPT=YES
else
  HAVE_GETOPT=NO
fi
done


for ac_func in readdir_r
do
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
$as_echo_n "checking for $ac_func... " >&6; }
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $ac_func innocuous_$ac_func

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $ac_func

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $ac_func ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
#endif

int
main ()
{
return $ac_func ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  eval "$as_ac_var=yes"
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	eval "$as_ac_var=no"
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
fi
ac_res=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_var'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
 HAVE_READDIR_R=YES
else
  HAVE_READDIR_R=NO
fi
done

    if test "$HAVE_GETOPT" = "YES" -a "$HAVE_READDIR_R" = "YES"; then
        SYSTEM_LIBC=YES
    fi
else
    HAVE_GETOPT=NO
    HAVE_READDIR_R=NO
    SYSTEM_LIBC=YES
fi




if test "$_os" = "WINNT"; then
    { $as_echo "$as_me:$LINENO: checking for Windows SDK" >&5
$as_echo_n "checking for Windows SDK... " >&6; }
    if test "$build_os" = "cygwin"; then
        if test -z "$with_windows_sdk_home"; then
            # This first line will detect a February 2003 Microsoft Platform SDK
            WINDOWS_SDK_HOME=`./oowintool --windows-sdk-home`
            # But there might be also an April 2005 PSDK, unfortunately MS changed
            # the registry entry. (we prefer the old version!?)
            if test -z "$WINDOWS_SDK_HOME"; then
                WINDOWS_SDK_HOME=`cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install\ Dir 2> /dev/null | tr '\000' '\n' | head -n 1`
            fi
            # normalize if found
            if test -n "$WINDOWS_SDK_HOME"; then
                WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK_HOME"`
                WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
            fi
        else
            WINDOWS_SDK_HOME=`cygpath -u "$with_windows_sdk_home"`
        fi
    fi
    if test -n "$WINDOWS_SDK_HOME"; then
        # Remove a possible trailing backslash
        WINDOWS_SDK_HOME=`echo $WINDOWS_SDK_HOME | $SED 's/\/$//'`
        # Problem with current PSDK (iz 49865)
        # (What "current" does that mean?)
        if test -f "$WINDOWS_SDK_HOME/Lib/libcp.lib"; then
            { { $as_echo "$as_me:$LINENO: error:
Some modules do not build correctly with MS Platform SDK - April 2005
Edition if the library ($WINDOWS_SDK_HOME/Lib/libcp.lib) is found.
Remove/rename/backup that file and restart configure. Details about this
problem can be found in issue 49856." >&5
$as_echo "$as_me: error:
Some modules do not build correctly with MS Platform SDK - April 2005
Edition if the library ($WINDOWS_SDK_HOME/Lib/libcp.lib) is found.
Remove/rename/backup that file and restart configure. Details about this
problem can be found in issue 49856." >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test -f "$WINDOWS_SDK_HOME/Include/adoint.h" \
             -a -f "$WINDOWS_SDK_HOME/Include/SqlUcode.h" \
             -a -f "$WINDOWS_SDK_HOME/Include/usp10.h"; then
            HAVE_PSDK_H="yes"
        else
            HAVE_PSDK_H="no"
        fi
        if test -f "$WINDOWS_SDK_HOME/lib/user32.lib"; then
            HAVE_PSDK_LIB="yes"
        else
            HAVE_PSDK_LIB="no"
        fi

        if test "$HAVE_PSDK_H" = "no" -o "$HAVE_PSDK_LIB" = "no"; then
            { { $as_echo "$as_me:$LINENO: error: Some (all?) Windows SDK files not found, please check if all needed parts of
the  Windows SDK are installed." >&5
$as_echo "$as_me: error: Some (all?) Windows SDK files not found, please check if all needed parts of
the  Windows SDK are installed." >&2;}
   { (exit 1); exit 1; }; }
        fi

        if test ! -x "$WINDOWS_SDK_HOME/bin/msiinfo.exe" \
             -o ! -x "$WINDOWS_SDK_HOME/bin/msidb.exe" \
             -o ! -x "$WINDOWS_SDK_HOME/bin/uuidgen.exe" \
             -o ! -x "$WINDOWS_SDK_HOME/bin/msitran.exe" ; then
            { { $as_echo "$as_me:$LINENO: error: Some (all) files of the Windows Installer SDK are missing, please install." >&5
$as_echo "$as_me: error: Some (all) files of the Windows Installer SDK are missing, please install." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    if test -z "$WINDOWS_SDK_HOME"; then
        { $as_echo "$as_me:$LINENO: result: no, hoping the necessary headers and libraries will be found anyway" >&5
$as_echo "no, hoping the necessary headers and libraries will be found anyway" >&6; }
    elif echo $WINDOWS_SDK_HOME | grep "v6.1" >/dev/null 2>/dev/null; then
        { $as_echo "$as_me:$LINENO: result: found Windows SDK 6.1 ($WINDOWS_SDK_HOME)" >&5
$as_echo "found Windows SDK 6.1 ($WINDOWS_SDK_HOME)" >&6; }
    elif echo $WINDOWS_SDK_HOME | grep "v6.0" >/dev/null 2>/dev/null; then
        { $as_echo "$as_me:$LINENO: result: found Windows SDK 6.0 ($WINDOWS_SDK_HOME)" >&5
$as_echo "found Windows SDK 6.0 ($WINDOWS_SDK_HOME)" >&6; }
    elif echo $WINDOWS_SDK_HOME | grep "v7" >/dev/null 2>/dev/null; then
        { $as_echo "$as_me:$LINENO: result: found Windows SDK 7 ($WINDOWS_SDK_HOME)" >&5
$as_echo "found Windows SDK 7 ($WINDOWS_SDK_HOME)" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: Found legacy Windows Platform SDK ($WINDOWS_SDK_HOME)" >&5
$as_echo "$as_me: error: Found legacy Windows Platform SDK ($WINDOWS_SDK_HOME)" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi


if test -n "$ENABLE_DIRECTX" -a "$_os" = "WINNT"; then
    { $as_echo "$as_me:$LINENO: checking for DirectX SDK" >&5
$as_echo_n "checking for DirectX SDK... " >&6; }
    if test "$build_os" = "cygwin"; then
        if test -z "$with_directx_home"; then
                        if test -n "$DXSDK_DIR"; then
                DIRECTXSDK_HOME=`cygpath -d "$DXSDK_DIR"`
                DIRECTXSDK_HOME=`cygpath -u "$DIRECTXSDK_HOME"`
            fi
            # At this point $DIRECTXSDK_HOME might still be undefined. This will lead to
            # the "DirectX SDK not found" error later
        else
            DIRECTXSDK_HOME=`cygpath -u "$with_directx_home"`
        fi
        # Remove a possible trailing backslash
        DIRECTXSDK_HOME=`echo $DIRECTXSDK_HOME | $SED 's/\/$//'`
    elif test -n "$with_directx_home"; then
        DIRECTXSDK_HOME="$with_directx_home"
    fi

    if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" -o -f "$DIRECTXSDK_HOME/Include/d3d9.h" ; then
        HAVE_DIRECTXSDK_H="yes"
    else
        HAVE_DIRECTXSDK_H="no"
    fi

    # MS changed the location of the libraries with Dec 2004 DirectX SDK
    if test -d "$DIRECTXSDK_HOME/lib/x86" ; then
        DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib/x86"
    else
        DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib"
    fi

    if test -f "$DIRECTXSDK_LIB/ddraw.lib" -o -f "$DIRECTXSDK_LIB/d3d9.lib" ; then
        HAVE_DIRECTXSDK_LIB="yes"
    else
        HAVE_DIRECTXSDK_LIB="no"
    fi

    if test "$HAVE_DIRECTXSDK_H" = "yes" -a "$HAVE_DIRECTXSDK_LIB" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
    else
        { $as_echo "$as_me:$LINENO: result: no, hoping the necessary headers and libraries will be found anyway" >&5
$as_echo "no, hoping the necessary headers and libraries will be found anyway" >&6; }
    fi
fi



# Extract the first word of "bison", so it can be a program name with args.
set dummy bison; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_BISON+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $BISON in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
BISON=$ac_cv_path_BISON
if test -n "$BISON"; then
  { $as_echo "$as_me:$LINENO: result: $BISON" >&5
$as_echo "$BISON" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


ANCIENT_BISON="NO"
if test -z "$BISON"; then
    { { $as_echo "$as_me:$LINENO: error: no bison found in \$PATH, install it" >&5
$as_echo "$as_me: error: no bison found in \$PATH, install it" >&2;}
   { (exit 1); exit 1; }; }
else
    { $as_echo "$as_me:$LINENO: checking the bison version" >&5
$as_echo_n "checking the bison version... " >&6; }
    _bison_version=`$BISON --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
    _bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
    # Accept newer than 1.875 or older(equal) than 1.75
    if test "$_bison_longver" -ge 1875 -o "$_bison_longver" -le 1075; then
        if test "$_bison_version" = "1.875" ; then
            { $as_echo "$as_me:$LINENO: WARNING: suspect ($BISON $_bison_version)" >&5
$as_echo "$as_me: WARNING: suspect ($BISON $_bison_version)" >&2;}
            echo "Suspect ($BISON $_bison_version) suggest upgrade" >> warn
        else
            { $as_echo "$as_me:$LINENO: result: checked ($BISON $_bison_version)" >&5
$as_echo "checked ($BISON $_bison_version)" >&6; }
        fi
    else
        { { $as_echo "$as_me:$LINENO: error: failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))" >&5
$as_echo "$as_me: error: failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test "$_bison_longver" -lt 2000; then
        ANCIENT_BISON="YES"
    fi
fi


# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_FLEX+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $FLEX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
FLEX=$ac_cv_path_FLEX
if test -n "$FLEX"; then
  { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
$as_echo "$FLEX" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test -z "$FLEX"; then
    { { $as_echo "$as_me:$LINENO: error: no flex found in \$PATH, install it" >&5
$as_echo "$as_me: error: no flex found in \$PATH, install it" >&2;}
   { (exit 1); exit 1; }; }
fi
# Extract the first word of "patch", so it can be a program name with args.
set dummy patch; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_PATCH+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $PATCH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
PATCH=$ac_cv_path_PATCH
if test -n "$PATCH"; then
  { $as_echo "$as_me:$LINENO: result: $PATCH" >&5
$as_echo "$PATCH" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


if test -z "$PATCH"; then
    { { $as_echo "$as_me:$LINENO: error: \\"patch\\" not found in \$PATH, install it" >&5
$as_echo "$as_me: error: \\"patch\\" not found in \$PATH, install it" >&2;}
   { (exit 1); exit 1; }; }
fi

if test "$_os" = "SunOS" -o "$_os" = "FreeBSD" -o "$_os" = "Darwin"; then
    if test -z "$with_gnu_patch"; then
        GNUPATCH=$PATCH
    else
        if test -x "$with_gnu_patch"; then
            GNUPATCH=$with_gnu_patch
        else
            { { $as_echo "$as_me:$LINENO: error: --with-gnu-patch did not point to an executable" >&5
$as_echo "$as_me: error: --with-gnu-patch did not point to an executable" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    { $as_echo "$as_me:$LINENO: checking whether $GNUPATCH is GNU patch" >&5
$as_echo_n "checking whether $GNUPATCH is GNU patch... " >&6; }
    if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" >&5
$as_echo "$as_me: error: no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi


if test -z "$with_gnu_cp"; then
    # check the place where the good stuff is hidden on Solaris...
    if test -x /usr/gnu/bin/cp; then
        GNUCP=/usr/gnu/bin/cp
    else
        for ac_prog in gnucp cp
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_GNUCP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $GNUCP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GNUCP="$GNUCP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_GNUCP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
GNUCP=$ac_cv_path_GNUCP
if test -n "$GNUCP"; then
  { $as_echo "$as_me:$LINENO: result: $GNUCP" >&5
$as_echo "$GNUCP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$GNUCP" && break
done

    fi
    if test -z $GNUCP; then
        { { $as_echo "$as_me:$LINENO: error: Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" >&5
$as_echo "$as_me: error: Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" >&2;}
   { (exit 1); exit 1; }; }
    fi
else
    if test -x "$with_gnu_cp"; then
        GNUCP=$with_gnu_cp
    else
        { { $as_echo "$as_me:$LINENO: error: --with-gnu-cp did not point to an executable" >&5
$as_echo "$as_me: error: --with-gnu-cp did not point to an executable" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

{ $as_echo "$as_me:$LINENO: checking whether $GNUCP is GNU cp from coreutils with preserve= support" >&5
$as_echo_n "checking whether $GNUCP is GNU cp from coreutils with preserve= support... " >&6; }
if $GNUCP --version 2>/dev/null | grep "coreutils" >/dev/null 2>/dev/null; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
elif $GNUCP --version 2>/dev/null | grep "GNU fileutils" >/dev/null 2>/dev/null; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$build_os" in
    darwin*|netbsd*|openbsd*|freebsd*|dragonfly*|aix*)
        GNUCP=''
        { $as_echo "$as_me:$LINENO: result: no gnucp found - using the system's cp command" >&5
$as_echo "no gnucp found - using the system's cp command" >&6; }
        ;;
    *)
        { { $as_echo "$as_me:$LINENO: error: no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" >&5
$as_echo "$as_me: error: no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" >&2;}
   { (exit 1); exit 1; }; }
        ;;
    esac
fi




ML_EXE=""
if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
    if test "$CL_X64" = ""; then
        assembler=ml.exe
        assembler_bin=bin
    else
        assembler=ml64.exe
        assembler_bin=bin/amd64
    fi
    if test -n "$with_asm_home"; then
        with_asm_home=`cygpath -u "$with_asm_home"`
    fi
    if test -x "$with_asm_home/$assembler"; then
        { $as_echo "$as_me:$LINENO: checking $assembler assembler path" >&5
$as_echo_n "checking $assembler assembler path... " >&6; }
        { $as_echo "$as_me:$LINENO: result: $with_asm_home/$assembler" >&5
$as_echo "$with_asm_home/$assembler" >&6; }
        ML_EXE="$with_asm_home/$assembler"
    else
        # Extract the first word of "$assembler", so it can be a program name with args.
set dummy $assembler; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ML_EXE+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ML_EXE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ML_EXE="$ML_EXE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ML_EXE="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ML_EXE=$ac_cv_path_ML_EXE
if test -n "$ML_EXE"; then
  { $as_echo "$as_me:$LINENO: result: $ML_EXE" >&5
$as_echo "$ML_EXE" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test -z "$ML_EXE"; then
            { $as_echo "$as_me:$LINENO: checking $with_cl_home/$assembler_bin/$assembler" >&5
$as_echo_n "checking $with_cl_home/$assembler_bin/$assembler... " >&6; }
            if test -x "$with_cl_home/$assembler_bin/$assembler"; then
                with_asm_home=$with_cl_home/$assembler_bin
                { $as_echo "$as_me:$LINENO: result: found" >&5
$as_echo "found" >&6; }
                ML_EXE="$with_cl_home/$assembler_bin/$assembler"
            else
                { { $as_echo "$as_me:$LINENO: error: Configure did not find $assembler assembler." >&5
$as_echo "$as_me: error: Configure did not find $assembler assembler." >&2;}
   { (exit 1); exit 1; }; }
            fi
        else
            with_asm_home="ASM_IN_PATH"
            ML_EXE="$assembler"
        fi
    fi
else
    with_asm_home="NO_ASM_HOME"
fi
ASM_HOME="$with_asm_home"



# Extract the first word of "zip", so it can be a program name with args.
set dummy zip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ZIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ZIP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ZIP=$ac_cv_path_ZIP
if test -n "$ZIP"; then
  { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
$as_echo "$ZIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


test -z "$ZIP" && { { $as_echo "$as_me:$LINENO: error: zip is required" >&5
$as_echo "$as_me: error: zip is required" >&2;}
   { (exit 1); exit 1; }; }
if ! "$ZIP" --filesync < /dev/null 2>/dev/null > /dev/null; then
    { { $as_echo "$as_me:$LINENO: error: Zip version 3.0 or newer is required to build, please install or use --with-zip-home" >&5
$as_echo "$as_me: error: Zip version 3.0 or newer is required to build, please install or use --with-zip-home" >&2;}
   { (exit 1); exit 1; }; }
fi

# Extract the first word of "unzip", so it can be a program name with args.
set dummy unzip; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_UNZIP+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $UNZIP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
UNZIP=$ac_cv_path_UNZIP
if test -n "$UNZIP"; then
  { $as_echo "$as_me:$LINENO: result: $UNZIP" >&5
$as_echo "$UNZIP" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


test -z "$UNZIP" && { { $as_echo "$as_me:$LINENO: error: unzip is required" >&5
$as_echo "$as_me: error: unzip is required" >&2;}
   { (exit 1); exit 1; }; }

if test $build_os = cygwin; then
    if test -n "`$ZIP -h | grep -i WinNT`" ; then
        { { $as_echo "$as_me:$LINENO: error: $ZIP is not the required Cygwin version of Info-ZIP's zip.exe." >&5
$as_echo "$as_me: error: $ZIP is not the required Cygwin version of Info-ZIP's zip.exe." >&2;}
   { (exit 1); exit 1; }; }
    fi
fi

R=""
GTK3_CFLAGS=""
GTK3_LIBS=""
ENABLE_GTK3=""
if test "x$enable_gtk3" = "xyes"; then
    if test "$with_system_cairo" != yes; then
        echo "System cairo required for gtk3 support, please use --with-system-cairo"
    fi

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GTK3" >&5
$as_echo_n "checking for GTK3... " >&6; }

if test -n "$GTK3_CFLAGS"; then
    pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GTK3_LIBS"; then
    pkg_cv_GTK3_LIBS="$GTK3_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo" 2>&1`
        else
	        GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 cairo" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GTK3_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                ENABLE_GTK3=""
elif test $pkg_failed = untried; then
	ENABLE_GTK3=""
else
	GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
	GTK3_LIBS=$pkg_cv_GTK3_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	ENABLE_GTK3="TRUE"
fi
    if test "x$ENABLE_GTK3" = "xTRUE"; then
        R="gtk3"
    else
        { { $as_echo "$as_me:$LINENO: error: gtk3 libraries of the correct versions, not found" >&5
$as_echo "$as_me: error: gtk3 libraries of the correct versions, not found" >&2;}
   { (exit 1); exit 1; }; }
    fi
fi




{ $as_echo "$as_me:$LINENO: checking which VCLplugs shall be built" >&5
$as_echo_n "checking which VCLplugs shall be built... " >&6; }
ENABLE_GTK=""
if test "x$enable_gtk" = "xyes"; then
    ENABLE_GTK="TRUE"
    R="gtk $R"
fi


ENABLE_KDE=""
if test "x$enable_kde" = "xyes"; then
    ENABLE_KDE="TRUE"
    R="$R kde"
fi


ENABLE_KDE4=""
if test "x$enable_kde4" = "xyes"; then
    ENABLE_KDE4="TRUE"
    R="$R kde4"
fi


if test -z "$R"; then
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: $R" >&5
$as_echo "$R" >&6; }
fi


ENABLE_GCONF=""
{ $as_echo "$as_me:$LINENO: checking whether to enable GConf support" >&5
$as_echo_n "checking whether to enable GConf support... " >&6; }
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gconf" = "yes"; then
    ENABLE_GCONF="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GCONF" >&5
$as_echo_n "checking for GCONF... " >&6; }

if test -n "$GCONF_CFLAGS"; then
    pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 ORBit-2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gconf-2.0 ORBit-2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 ORBit-2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GCONF_LIBS"; then
    pkg_cv_GCONF_LIBS="$GCONF_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 ORBit-2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gconf-2.0 ORBit-2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 ORBit-2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0 ORBit-2.0 " 2>&1`
        else
	        GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0 ORBit-2.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GCONF_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gconf-2.0 ORBit-2.0 ) were not met:

$GCONF_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GCONF_CFLAGS
and GCONF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (gconf-2.0 ORBit-2.0 ) were not met:

$GCONF_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GCONF_CFLAGS
and GCONF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GCONF_CFLAGS
and GCONF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GCONF_CFLAGS
and GCONF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
	GCONF_LIBS=$pkg_cv_GCONF_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



ENABLE_GNOMEVFS=""
{ $as_echo "$as_me:$LINENO: checking whether to enable GNOME VFS support" >&5
$as_echo_n "checking whether to enable GNOME VFS support... " >&6; }
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gnome_vfs" = "yes" -a "$enable_gconf" = "yes"; then
    ENABLE_GNOMEVFS="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
$as_echo_n "checking for GNOMEVFS... " >&6; }

if test -n "$GNOMEVFS_CFLAGS"; then
    pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.6.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.6.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GNOMEVFS_LIBS"; then
    pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.6.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.6.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnome-vfs-2.0 >= 2.6.0 " 2>&1`
        else
	        GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnome-vfs-2.0 >= 2.6.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GNOMEVFS_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gnome-vfs-2.0 >= 2.6.0 ) were not met:

$GNOMEVFS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (gnome-vfs-2.0 >= 2.6.0 ) were not met:

$GNOMEVFS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
and GNOMEVFS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
	GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



GTK_CFLAGS=""
GTK_LIBS=""
ENABLE_SYSTRAY_GTK=""
ENABLE_DBUS=""
DBUS_CFLAGS=""
DBUS_LIBS=""
if test  "$test_gtk" = "yes"; then

    if test "$ENABLE_GTK" = "TRUE" ; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GTK" >&5
$as_echo_n "checking for GTK... " >&6; }

if test -n "$GTK_CFLAGS"; then
    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GTK_LIBS"; then
    pkg_cv_GTK_LIBS="$GTK_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>&1`
        else
	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GTK_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                { { $as_echo "$as_me:$LINENO: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
else
	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
	GTK_LIBS=$pkg_cv_GTK_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GTHREAD" >&5
$as_echo_n "checking for GTHREAD... " >&6; }

if test -n "$GTHREAD_CFLAGS"; then
    pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GTHREAD_LIBS"; then
    pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0" 2>&1`
        else
	        GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GTHREAD_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                { { $as_echo "$as_me:$LINENO: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
else
	GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
	GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        BUILD_TYPE="$BUILD_TYPE GTK"

        if test "x$enable_systray" = "xyes"; then

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GTK210" >&5
$as_echo_n "checking for GTK210... " >&6; }

if test -n "$GTK210_CFLAGS"; then
    pkg_cv_GTK210_CFLAGS="$GTK210_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK210_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GTK210_LIBS"; then
    pkg_cv_GTK210_LIBS="$GTK210_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK210_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GTK210_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
        else
	        GTK210_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GTK210_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                 ENABLE_SYSTRAY_GTK=""
elif test $pkg_failed = untried; then
	 ENABLE_SYSTRAY_GTK=""
else
	GTK210_CFLAGS=$pkg_cv_GTK210_CFLAGS
	GTK210_LIBS=$pkg_cv_GTK210_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	 ENABLE_SYSTRAY_GTK="TRUE"
fi
        fi

        { $as_echo "$as_me:$LINENO: checking whether to enable Gtk print dialog support" >&5
$as_echo_n "checking whether to enable Gtk print dialog support... " >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GTK_PRINT" >&5
$as_echo_n "checking for GTK_PRINT... " >&6; }

if test -n "$GTK_PRINT_CFLAGS"; then
    pkg_cv_GTK_PRINT_CFLAGS="$GTK_PRINT_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK_PRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GTK_PRINT_LIBS"; then
    pkg_cv_GTK_PRINT_LIBS="$GTK_PRINT_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GTK_PRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GTK_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-unix-print-2.0 >= 2.10.0" 2>&1`
        else
	        GTK_PRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-unix-print-2.0 >= 2.10.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GTK_PRINT_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                ENABLE_GTK_PRINT=""
elif test $pkg_failed = untried; then
	ENABLE_GTK_PRINT=""
else
	GTK_PRINT_CFLAGS=$pkg_cv_GTK_PRINT_CFLAGS
	GTK_PRINT_LIBS=$pkg_cv_GTK_PRINT_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	ENABLE_GTK_PRINT="TRUE"
fi

        { $as_echo "$as_me:$LINENO: checking whether to enable DBUS support" >&5
$as_echo_n "checking whether to enable DBUS support... " >&6; }
        if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_dbus" = "yes"; then
            ENABLE_DBUS="TRUE"
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
$as_echo_n "checking for DBUS... " >&6; }

if test -n "$DBUS_CFLAGS"; then
    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70 \"") >&5
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.70 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$DBUS_LIBS"; then
    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70 \"") >&5
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.70 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1 >= 0.70 " 2>&1`
        else
	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1 >= 0.70 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$DBUS_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.70 ) were not met:

$DBUS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.70 ) were not met:

$DBUS_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
	DBUS_LIBS=$pkg_cv_DBUS_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        else
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi

        { $as_echo "$as_me:$LINENO: checking whether to enable GIO support" >&5
$as_echo_n "checking whether to enable GIO support... " >&6; }
        if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
            if test "$ENABLE_GNOMEVFS" = "TRUE" ; then
                { { $as_echo "$as_me:$LINENO: error: please use --enable-gio only together with --disable-gnome-vfs." >&5
$as_echo "$as_me: error: please use --enable-gio only together with --disable-gnome-vfs." >&2;}
   { (exit 1); exit 1; }; }
            fi
            ENABLE_GIO="TRUE"
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GIO" >&5
$as_echo_n "checking for GIO... " >&6; }

if test -n "$GIO_CFLAGS"; then
    pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gio-2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GIO_LIBS"; then
    pkg_cv_GIO_LIBS="$GIO_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gio-2.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gio-2.0 " 2>&1`
        else
	        GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "gio-2.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GIO_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gio-2.0 ) were not met:

$GIO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GIO_CFLAGS
and GIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (gio-2.0 ) were not met:

$GIO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GIO_CFLAGS
and GIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GIO_CFLAGS
and GIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GIO_CFLAGS
and GIO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
	GIO_LIBS=$pkg_cv_GIO_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
        else
            { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        fi
    fi
fi














pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
$as_echo_n "checking for LIBPNG... " >&6; }

if test -n "$LIBPNG_CFLAGS"; then
    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBPNG_LIBS"; then
    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
        else
	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBPNG_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                ENABLE_QUICKSTART_LIBPNG=""
elif test $pkg_failed = untried; then
	ENABLE_QUICKSTART_LIBPNG=""
else
	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	ENABLE_QUICKSTART_LIBPNG="TRUE"
fi



{ $as_echo "$as_me:$LINENO: checking whether to enable libpng linking in quickstarter" >&5
$as_echo_n "checking whether to enable libpng linking in quickstarter... " >&6; }
if test "x$enable_unix_qstart_libpng" != "xno"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_QUICKSTART_LIBPNG=""
fi


SPLIT_APP_MODULES=""
if test "$enable_split_app_modules" = "yes"; then
    SPLIT_APP_MODULES="YES"
fi


SPLIT_OPT_FEATURES=""
if test "$enable_split_opt_features" = "yes"; then
    SPLIT_OPT_FEATURES="YES"
fi


ENABLE_CAIRO_CANVAS="FALSE"
if test "$enable_cairo_canvas" = "yes" ; then
   ENABLE_CAIRO_CANVAS="TRUE"
fi



ENABLE_GSTREAMER=""

if test  "$build_gstreamer" = "yes"; then

    { $as_echo "$as_me:$LINENO: checking whether to enable the GStreamer avmedia backend" >&5
$as_echo_n "checking whether to enable the GStreamer avmedia backend... " >&6; }
    if test "x$enable_gstreamer" != "xno" ; then
        ENABLE_GSTREAMER="TRUE"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GSTREAMER" >&5
$as_echo_n "checking for GSTREAMER... " >&6; }

if test -n "$GSTREAMER_CFLAGS"; then
    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-plugins-base-0.10 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GSTREAMER_LIBS"; then
    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-plugins-base-0.10 \"") >&5
  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>&1`
        else
	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GSTREAMER_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gstreamer-0.10 gstreamer-plugins-base-0.10 ) were not met:

$GSTREAMER_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GSTREAMER_CFLAGS
and GSTREAMER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (gstreamer-0.10 gstreamer-plugins-base-0.10 ) were not met:

$GSTREAMER_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GSTREAMER_CFLAGS
and GSTREAMER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GSTREAMER_CFLAGS
and GSTREAMER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GSTREAMER_CFLAGS
and GSTREAMER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi




{ $as_echo "$as_me:$LINENO: checking whether to build the OpenGL Transitions component" >&5
$as_echo_n "checking whether to build the OpenGL Transitions component... " >&6; }
ENABLE_OPENGL=

if test "$_os" = "Darwin" ; then
    # We use frameworks on Mac OS X, no need for detail checks
    ENABLE_OPENGL=TRUE
    SYSTEM_MESA_HEADERS=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    if test "x$enable_opengl" != "xno" ; then
        if test "$_os" != "WINNT"; then
            save_LDFLAGS=$LDFLAGS
            LDFLAGS="$LDFLAGS -lm"
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

{ $as_echo "$as_me:$LINENO: checking for main in -lGL" >&5
$as_echo_n "checking for main in -lGL... " >&6; }
if test "${ac_cv_lib_GL_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lGL  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_GL_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_GL_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
$as_echo "$ac_cv_lib_GL_main" >&6; }
if test "x$ac_cv_lib_GL_main" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGL 1
_ACEOF

  LIBS="-lGL $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: libGL not installed or functional" >&5
$as_echo "$as_me: error: libGL not installed or functional" >&2;}
   { (exit 1); exit 1; }; }
fi


{ $as_echo "$as_me:$LINENO: checking for main in -lGLU" >&5
$as_echo_n "checking for main in -lGLU... " >&6; }
if test "${ac_cv_lib_GLU_main+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lGLU  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
return main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_GLU_main=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_GLU_main=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
$as_echo "$ac_cv_lib_GLU_main" >&6; }
if test "x$ac_cv_lib_GLU_main" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBGLU 1
_ACEOF

  LIBS="-lGLU $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: libGLU not installed or functional" >&5
$as_echo "$as_me: error: libGLU not installed or functional" >&2;}
   { (exit 1); exit 1; }; }
fi

            ENABLE_OPENGL=TRUE
            LDFLAGS=$save_LDFLAGS

                                                { $as_echo "$as_me:$LINENO: checking which Mesa headers to use" >&5
$as_echo_n "checking which Mesa headers to use... " >&6; }
            if test "$with_system_mesa_headers" = "yes"; then
                { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
                SYSTEM_MESA_HEADERS=YES
                ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

                { $as_echo "$as_me:$LINENO: checking for GL/glxext.h" >&5
$as_echo_n "checking for GL/glxext.h... " >&6; }
if test "${ac_cv_header_GL_glxext_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <GL/glx.h>

#include <GL/glxext.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_cv_header_GL_glxext_h=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_header_GL_glxext_h=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glxext_h" >&5
$as_echo "$ac_cv_header_GL_glxext_h" >&6; }
if test "x$ac_cv_header_GL_glxext_h" = x""yes; then
  :
else
   { { $as_echo "$as_me:$LINENO: error: mesa headers not found." >&5
$as_echo "$as_me: error: mesa headers not found." >&2;}
   { (exit 1); exit 1; }; }
fi


                { $as_echo "$as_me:$LINENO: checking whether GL/glxext.h defines PFNGLXBINDTEXIMAGEEXTPROC" >&5
$as_echo_n "checking whether GL/glxext.h defines PFNGLXBINDTEXIMAGEEXTPROC... " >&6; }
                cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <GL/glxext.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "PFNGLXBINDTEXIMAGEEXTPROC" >/dev/null 2>&1; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  { { $as_echo "$as_me:$LINENO: error: no" >&5
$as_echo "$as_me: error: no" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f conftest*

                ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

            else
                { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
                SYSTEM_MESA_HEADERS=NO
                BUILD_TYPE="$BUILD_TYPE MESA"
            fi
        else
            { $as_echo "$as_me:$LINENO: result: not on Windows" >&5
$as_echo "not on Windows" >&6; }
        fi
    else
       { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi




# presenter minimizer extension?
{ $as_echo "$as_me:$LINENO: checking whether to build the Presentation Minimizer extension" >&5
$as_echo_n "checking whether to build the Presentation Minimizer extension... " >&6; }
if test "x$enable_ext_presenter_minimizer" != "xno" -a "x$enable_extension_integration" != "xno"; then
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
   ENABLE_MINIMIZER=YES
else
   { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
   ENABLE_MINIMIZER=NO
   SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MINIMIZER"
fi


# presenter console extension?
{ $as_echo "$as_me:$LINENO: checking whether to build the Presenter Console extension" >&5
$as_echo_n "checking whether to build the Presenter Console extension... " >&6; }
if test "x$enable_ext_presenter_console" != "xno" -a "x$enable_extension_integration" != "xno"; then
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
   ENABLE_PRESENTER_SCREEN=YES
else
   { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
   ENABLE_PRESENTER_SCREEN=NO
   SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_PRESENTER_SCREEN"
fi


# pdf import extension?
{ $as_echo "$as_me:$LINENO: checking whether to build the PDF Import extension" >&5
$as_echo_n "checking whether to build the PDF Import extension... " >&6; }
if test "x$enable_ext_pdfimport" != "xno" -a "x$enable_extension_integration" != "xno"; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
  ENABLE_PDFIMPORT=YES

        { $as_echo "$as_me:$LINENO: checking which pdf backend to use" >&5
$as_echo_n "checking which pdf backend to use... " >&6; }
  if test "$with_system_poppler" = "yes"; then
      { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
      SYSTEM_POPPLER=YES

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for POPPLER" >&5
$as_echo_n "checking for POPPLER... " >&6; }

if test -n "$POPPLER_CFLAGS"; then
    pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.8.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "poppler >= 0.8.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.8.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$POPPLER_LIBS"; then
    pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.8.0 \"") >&5
  ($PKG_CONFIG --exists --print-errors "poppler >= 0.8.0 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.8.0 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "poppler >= 0.8.0 " 2>&1`
        else
	        POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "poppler >= 0.8.0 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$POPPLER_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (poppler >= 0.8.0 ) were not met:

$POPPLER_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POPPLER_CFLAGS
and POPPLER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (poppler >= 0.8.0 ) were not met:

$POPPLER_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POPPLER_CFLAGS
and POPPLER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables POPPLER_CFLAGS
and POPPLER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables POPPLER_CFLAGS
and POPPLER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
	POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
      ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

      save_CXXFLAGS=$CXXFLAGS
      save_CPPFLAGS=$CPPFLAGS
      CXXFLAGS="$CXXFLAGS $POPPLER_CFLAGS"
      CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
      if test "${ac_cv_header_cpp_poppler_version_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for cpp/poppler-version.h" >&5
$as_echo_n "checking for cpp/poppler-version.h... " >&6; }
if test "${ac_cv_header_cpp_poppler_version_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cpp_poppler_version_h" >&5
$as_echo "$ac_cv_header_cpp_poppler_version_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking cpp/poppler-version.h usability" >&5
$as_echo_n "checking cpp/poppler-version.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <cpp/poppler-version.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking cpp/poppler-version.h presence" >&5
$as_echo_n "checking cpp/poppler-version.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <cpp/poppler-version.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: cpp/poppler-version.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: cpp/poppler-version.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for cpp/poppler-version.h" >&5
$as_echo_n "checking for cpp/poppler-version.h... " >&6; }
if test "${ac_cv_header_cpp_poppler_version_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_cpp_poppler_version_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cpp_poppler_version_h" >&5
$as_echo "$ac_cv_header_cpp_poppler_version_h" >&6; }

fi
if test "x$ac_cv_header_cpp_poppler_version_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: cpp/poppler-version.h not found. Install poppler" >&5
$as_echo "$as_me: error: cpp/poppler-version.h not found. Install poppler" >&2;}
   { (exit 1); exit 1; }; }
fi


      CXXFLAGS=$save_CXXFLAGS
      CPPFLAGS=$save_CPPFLAGS
      ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

  else
      { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
      SYSTEM_POPPLER=NO
      BUILD_TYPE="$BUILD_TYPE XPDF"
  fi
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
  ENABLE_PDFIMPORT=NO
  SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_PDFIMPORT"
fi






if test "$ENABLE_PRESENTER_SCREEN" = "YES" -o "$ENABLE_MINIMIZER" = "YES" -o "$ENABLE_PDFIMPORT" = "YES"; then
   { $as_echo "$as_me:$LINENO: checking for sdext module" >&5
$as_echo_n "checking for sdext module... " >&6; }
   BUILD_TYPE="$BUILD_TYPE SDEXT"
fi

{ $as_echo "$as_me:$LINENO: checking whether to build the Wiki Publisher extension" >&5
$as_echo_n "checking whether to build the Wiki Publisher extension... " >&6; }
if test "x$enable_ext_wiki_publisher" = "xyes" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
  { $as_echo "$as_me:$LINENO: checking for swext module" >&5
$as_echo_n "checking for swext module... " >&6; }
  ENABLE_MEDIAWIKI=YES
  BUILD_TYPE="$BUILD_TYPE SWEXT"
  if test  "x$with_java" = "xno"; then
    { { $as_echo "$as_me:$LINENO: error: Wiki Publisher requires Java! Enable Java if you want to build it." >&5
$as_echo "$as_me: error: Wiki Publisher requires Java! Enable Java if you want to build it." >&2;}
   { (exit 1); exit 1; }; }
  fi
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
  ENABLE_MEDIAWIKI=NO
  SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MEDIAWIKI"
fi


if test "$ENABLE_MEDIAWIKI" = "YES"; then
    { $as_echo "$as_me:$LINENO: checking which Servlet API Jar to use" >&5
$as_echo_n "checking which Servlet API Jar to use... " >&6; }
    if test "$with_system_servlet_api" = "yes"; then
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        SYSTEM_SERVLETAPI=YES
        if test -z "$SERVLETAPI_JAR"; then
            SERVLETAPI_JAR=/usr/share/java/servlet-api.jar
        fi
        as_ac_File=`$as_echo "ac_cv_file_$SERVLETAPI_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $SERVLETAPI_JAR" >&5
$as_echo_n "checking for $SERVLETAPI_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$SERVLETAPI_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: servlet-api.jar not found." >&5
$as_echo "$as_me: error: servlet-api.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        SYSTEM_SERVLETAPI=NO
        BUILD_TYPE="$BUILD_TYPE TOMCAT"
    fi
fi



{ $as_echo "$as_me:$LINENO: checking whether to build the Report Builder extension" >&5
$as_echo_n "checking whether to build the Report Builder extension... " >&6; }
if test "$enable_ext_report_builder" != "no" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_REPORTBUILDER=YES
    { $as_echo "$as_me:$LINENO: checking for reportbuilder module" >&5
$as_echo_n "checking for reportbuilder module... " >&6; }
    { $as_echo "$as_me:$LINENO: checking which jfreereport libs to use" >&5
$as_echo_n "checking which jfreereport libs to use... " >&6; }
    if test "$with_system_jfreereport" = "yes"; then
        SYSTEM_JFREEREPORT=YES
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        if test -z $SAC_JAR; then
            SAC_JAR=/usr/share/java/sac.jar
        fi
        as_ac_File=`$as_echo "ac_cv_file_$SAC_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $SAC_JAR" >&5
$as_echo_n "checking for $SAC_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$SAC_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: sac.jar not found." >&5
$as_echo "$as_me: error: sac.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi


        if test -z $LIBXML_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libxml-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libxml-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libxml_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libxml-1.0.0.jar"; then
  ac_cv_file__usr_share_java_libxml_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_libxml_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libxml_1_0_0_jar" = x""yes; then
   LIBXML_JAR=/usr/share/java/libxml-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libxml.jar" >&5
$as_echo_n "checking for /usr/share/java/libxml.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libxml_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libxml.jar"; then
  ac_cv_file__usr_share_java_libxml_jar=yes
else
  ac_cv_file__usr_share_java_libxml_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libxml_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libxml_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libxml_jar" = x""yes; then
   LIBXML_JAR=/usr/share/java/libxml.jar
else
  { { $as_echo "$as_me:$LINENO: error: libxml.jar replacement not found." >&5
$as_echo "$as_me: error: libxml.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBXML_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBXML_JAR" >&5
$as_echo_n "checking for $LIBXML_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBXML_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libxml.jar not found." >&5
$as_echo "$as_me: error: libxml.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $FLUTE_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/flute-1.3.0.jar" >&5
$as_echo_n "checking for /usr/share/java/flute-1.3.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_flute_1_3_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/flute-1.3.0.jar"; then
  ac_cv_file__usr_share_java_flute_1_3_0_jar=yes
else
  ac_cv_file__usr_share_java_flute_1_3_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flute_1_3_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_flute_1_3_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_flute_1_3_0_jar" = x""yes; then
   FLUTE_JAR=/usr/share/java/flute-1.3.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/flute.jar" >&5
$as_echo_n "checking for /usr/share/java/flute.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_flute_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/flute.jar"; then
  ac_cv_file__usr_share_java_flute_jar=yes
else
  ac_cv_file__usr_share_java_flute_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flute_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_flute_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_flute_jar" = x""yes; then
   FLUTE_JAR=/usr/share/java/flute.jar
else
   { { $as_echo "$as_me:$LINENO: error: flute-1.3.0.jar replacement not found." >&5
$as_echo "$as_me: error: flute-1.3.0.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$FLUTE_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $FLUTE_JAR" >&5
$as_echo_n "checking for $FLUTE_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$FLUTE_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: flute-1.3.0.jar not found." >&5
$as_echo "$as_me: error: flute-1.3.0.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $JFREEREPORT_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/flow-engine-0.9.2.jar" >&5
$as_echo_n "checking for /usr/share/java/flow-engine-0.9.2.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_flow_engine_0_9_2_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/flow-engine-0.9.2.jar"; then
  ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=yes
else
  ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" = x""yes; then
   JFREEREPORT_JAR=/usr/share/java/flow-engine-0.9.2.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/flow-engine.jar" >&5
$as_echo_n "checking for /usr/share/java/flow-engine.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_flow_engine_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/flow-engine.jar"; then
  ac_cv_file__usr_share_java_flow_engine_jar=yes
else
  ac_cv_file__usr_share_java_flow_engine_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flow_engine_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_flow_engine_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_flow_engine_jar" = x""yes; then
   JFREEREPORT_JAR=/usr/share/java/flow-engine.jar
else
  { { $as_echo "$as_me:$LINENO: error: jfreereport.jar replacement not found." >&5
$as_echo "$as_me: error: jfreereport.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$JFREEREPORT_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $JFREEREPORT_JAR" >&5
$as_echo_n "checking for $JFREEREPORT_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$JFREEREPORT_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: jfreereport.jar not found." >&5
$as_echo "$as_me: error: jfreereport.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBLAYOUT_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/liblayout-0.2.9.jar" >&5
$as_echo_n "checking for /usr/share/java/liblayout-0.2.9.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_liblayout_0_2_9_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/liblayout-0.2.9.jar"; then
  ac_cv_file__usr_share_java_liblayout_0_2_9_jar=yes
else
  ac_cv_file__usr_share_java_liblayout_0_2_9_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_liblayout_0_2_9_jar" = x""yes; then
   LIBLAYOUT_JAR=/usr/share/java/liblayout-0.2.9.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/liblayout.jar" >&5
$as_echo_n "checking for /usr/share/java/liblayout.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_liblayout_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/liblayout.jar"; then
  ac_cv_file__usr_share_java_liblayout_jar=yes
else
  ac_cv_file__usr_share_java_liblayout_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_liblayout_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_liblayout_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_liblayout_jar" = x""yes; then
   LIBLAYOUT_JAR=/usr/share/java/liblayout.jar
else
  { { $as_echo "$as_me:$LINENO: error: liblayout.jar replacement not found." >&5
$as_echo "$as_me: error: liblayout.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBLAYOUT_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBLAYOUT_JAR" >&5
$as_echo_n "checking for $LIBLAYOUT_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBLAYOUT_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: liblayout.jar not found." >&5
$as_echo "$as_me: error: liblayout.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBLOADER_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libloader-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libloader-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libloader_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libloader-1.0.0.jar"; then
  ac_cv_file__usr_share_java_libloader_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_libloader_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libloader_1_0_0_jar" = x""yes; then
   LIBLOADER_JAR=/usr/share/java/libloader-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libloader.jar" >&5
$as_echo_n "checking for /usr/share/java/libloader.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libloader_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libloader.jar"; then
  ac_cv_file__usr_share_java_libloader_jar=yes
else
  ac_cv_file__usr_share_java_libloader_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libloader_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libloader_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libloader_jar" = x""yes; then
   LIBLOADER_JAR=/usr/share/java/libloader.jar
else
  { { $as_echo "$as_me:$LINENO: error: libloader.jar replacement not found." >&5
$as_echo "$as_me: error: libloader.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBLOADER_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBLOADER_JAR" >&5
$as_echo_n "checking for $LIBLOADER_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBLOADER_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libloader.jar not found." >&5
$as_echo "$as_me: error: libloader.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBFORMULA_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libformula-0.2.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libformula-0.2.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libformula_0_2_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libformula-0.2.0.jar"; then
  ac_cv_file__usr_share_java_libformula_0_2_0_jar=yes
else
  ac_cv_file__usr_share_java_libformula_0_2_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libformula_0_2_0_jar" = x""yes; then
   LIBFORMULA_JAR=/usr/share/java/libformula-0.2.0.jar
else

                     { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libformula.jar" >&5
$as_echo_n "checking for /usr/share/java/libformula.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libformula_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libformula.jar"; then
  ac_cv_file__usr_share_java_libformula_jar=yes
else
  ac_cv_file__usr_share_java_libformula_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libformula_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libformula_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libformula_jar" = x""yes; then
   LIBFORMULA_JAR=/usr/share/java/libformula.jar
else
  { { $as_echo "$as_me:$LINENO: error: libformula.jar replacement not found." >&5
$as_echo "$as_me: error: libformula.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBFORMULA_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBFORMULA_JAR" >&5
$as_echo_n "checking for $LIBFORMULA_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBFORMULA_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libformula.jar not found." >&5
$as_echo "$as_me: error: libformula.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBREPOSITORY_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/librepository-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/librepository-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_librepository_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/librepository-1.0.0.jar"; then
  ac_cv_file__usr_share_java_librepository_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_librepository_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_librepository_1_0_0_jar" = x""yes; then
   LIBREPOSITORY_JAR=/usr/share/java/librepository-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/librepository.jar" >&5
$as_echo_n "checking for /usr/share/java/librepository.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_librepository_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/librepository.jar"; then
  ac_cv_file__usr_share_java_librepository_jar=yes
else
  ac_cv_file__usr_share_java_librepository_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_librepository_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_librepository_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_librepository_jar" = x""yes; then
   LIBREPOSITORY_JAR=/usr/share/java/librepository.jar
else
  { { $as_echo "$as_me:$LINENO: error: librepository.jar replacement not found." >&5
$as_echo "$as_me: error: librepository.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBREPOSITORY_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBREPOSITORY_JAR" >&5
$as_echo_n "checking for $LIBREPOSITORY_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBREPOSITORY_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: librepository.jar not found." >&5
$as_echo "$as_me: error: librepository.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBFONTS_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libfonts-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libfonts-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libfonts_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libfonts-1.0.0.jar"; then
  ac_cv_file__usr_share_java_libfonts_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_libfonts_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libfonts_1_0_0_jar" = x""yes; then
   LIBFONTS_JAR=/usr/share/java/libfonts-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libfonts.jar" >&5
$as_echo_n "checking for /usr/share/java/libfonts.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libfonts_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libfonts.jar"; then
  ac_cv_file__usr_share_java_libfonts_jar=yes
else
  ac_cv_file__usr_share_java_libfonts_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libfonts_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libfonts_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libfonts_jar" = x""yes; then
   LIBFONTS_JAR=/usr/share/java/libfonts.jar
else
  { { $as_echo "$as_me:$LINENO: error: libfonts.jar replacement not found." >&5
$as_echo "$as_me: error: libfonts.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBFONTS_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBFONTS_JAR" >&5
$as_echo_n "checking for $LIBFONTS_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBFONTS_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libfonts.jar not found." >&5
$as_echo "$as_me: error: libfonts.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

        if test -z $LIBSERIALIZER_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libserializer-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libserializer-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libserializer_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libserializer-1.0.0.jar"; then
  ac_cv_file__usr_share_java_libserializer_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_libserializer_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libserializer_1_0_0_jar" = x""yes; then
   LIBSERIALIZER_JAR=/usr/share/java/libserializer-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libserializer.jar" >&5
$as_echo_n "checking for /usr/share/java/libserializer.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libserializer_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libserializer.jar"; then
  ac_cv_file__usr_share_java_libserializer_jar=yes
else
  ac_cv_file__usr_share_java_libserializer_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libserializer_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libserializer_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libserializer_jar" = x""yes; then
   LIBSERIALIZER_JAR=/usr/share/java/libserializer.jar
else
  { { $as_echo "$as_me:$LINENO: error: libserializer.jar replacement not found." >&5
$as_echo "$as_me: error: libserializer.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBSERIALIZER_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBSERIALIZER_JAR" >&5
$as_echo_n "checking for $LIBSERIALIZER_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBSERIALIZER_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libserializer.jar not found." >&5
$as_echo "$as_me: error: libserializer.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi


        if test -z $LIBBASE_JAR; then
            { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libbase-1.0.0.jar" >&5
$as_echo_n "checking for /usr/share/java/libbase-1.0.0.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libbase_1_0_0_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libbase-1.0.0.jar"; then
  ac_cv_file__usr_share_java_libbase_1_0_0_jar=yes
else
  ac_cv_file__usr_share_java_libbase_1_0_0_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libbase_1_0_0_jar" = x""yes; then
   LIBBASE_JAR=/usr/share/java/libbase-1.0.0.jar
else

                    { $as_echo "$as_me:$LINENO: checking for /usr/share/java/libbase.jar" >&5
$as_echo_n "checking for /usr/share/java/libbase.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_libbase_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/libbase.jar"; then
  ac_cv_file__usr_share_java_libbase_jar=yes
else
  ac_cv_file__usr_share_java_libbase_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libbase_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_libbase_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_libbase_jar" = x""yes; then
   LIBBASE_JAR=/usr/share/java/libbase.jar
else
  { { $as_echo "$as_me:$LINENO: error: libbase.jar replacement not found." >&5
$as_echo "$as_me: error: libbase.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

        else
            as_ac_File=`$as_echo "ac_cv_file_$LIBBASE_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $LIBBASE_JAR" >&5
$as_echo_n "checking for $LIBBASE_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$LIBBASE_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: libbase.jar not found." >&5
$as_echo "$as_me: error: libbase.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

        fi

    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        { $as_echo "$as_me:$LINENO: checking for jfreereport module" >&5
$as_echo_n "checking for jfreereport module... " >&6; }
        SYSTEM_JFREEREPORT=NO
        BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
    fi
    BUILD_TYPE="$BUILD_TYPE REPORTBUILDER"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_REPORTBUILDER=NO
    SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_REPORTDESIGN"
    SYSTEM_JFREEREPORT=NO
fi














# this has to be here because both the Wiki Publisher and the SRB use
# commons-logging
if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
    { $as_echo "$as_me:$LINENO: checking which Apache commons-* libs to use" >&5
$as_echo_n "checking which Apache commons-* libs to use... " >&6; }
    if test "$with_system_apache_commons" = "yes"; then
        SYSTEM_APACHE_COMMONS=YES
        { $as_echo "$as_me:$LINENO: result: external" >&5
$as_echo "external" >&6; }
        if test "$ENABLE_MEDIAWIKI" = "YES"; then
            if test -z $COMMONS_CODEC_JAR; then
                { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-codec-1.3.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-codec-1.3.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_codec_1_3_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-codec-1.3.jar"; then
  ac_cv_file__usr_share_java_commons_codec_1_3_jar=yes
else
  ac_cv_file__usr_share_java_commons_codec_1_3_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_codec_1_3_jar" = x""yes; then
   COMMONS_CODEC_JAR=/usr/share/java/commons-codec-1.3.jar
else

                        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-codec.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-codec.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_codec_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-codec.jar"; then
  ac_cv_file__usr_share_java_commons_codec_jar=yes
else
  ac_cv_file__usr_share_java_commons_codec_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_codec_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_codec_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_codec_jar" = x""yes; then
   COMMONS_CODEC_JAR=/usr/share/java/commons-codec.jar
else
  { { $as_echo "$as_me:$LINENO: error: commons-codec.jar replacement not found." >&5
$as_echo "$as_me: error: commons-codec.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

            else
                as_ac_File=`$as_echo "ac_cv_file_$COMMONS_CODEC_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $COMMONS_CODEC_JAR" >&5
$as_echo_n "checking for $COMMONS_CODEC_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$COMMONS_CODEC_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: commons-codec.jar not found." >&5
$as_echo "$as_me: error: commons-codec.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

            fi

            if test -z $COMMONS_LANG_JAR; then
                { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-lang-2.3.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-lang-2.3.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_lang_2_3_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-lang-2.3.jar"; then
  ac_cv_file__usr_share_java_commons_lang_2_3_jar=yes
else
  ac_cv_file__usr_share_java_commons_lang_2_3_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_lang_2_3_jar" = x""yes; then
   COMMONS_LANG_JAR=/usr/share/java/commons-lang-2.3.jar
else

                        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-lang.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-lang.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_lang_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-lang.jar"; then
  ac_cv_file__usr_share_java_commons_lang_jar=yes
else
  ac_cv_file__usr_share_java_commons_lang_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_lang_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_lang_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_lang_jar" = x""yes; then
   COMMONS_LANG_JAR=/usr/share/java/commons-lang.jar
else
  { { $as_echo "$as_me:$LINENO: error: commons-lang.jar replacement not found." >&5
$as_echo "$as_me: error: commons-lang.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

            else
                as_ac_File=`$as_echo "ac_cv_file_$COMMONS_LANG_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $COMMONS_LANG_JAR" >&5
$as_echo_n "checking for $COMMONS_LANG_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$COMMONS_LANG_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: commons-lang.jar not found." >&5
$as_echo "$as_me: error: commons-lang.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

            fi

            if test -z $COMMONS_HTTPCLIENT_JAR; then
                { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-httpclient-3.1.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-httpclient-3.1.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_httpclient_3_1_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-httpclient-3.1.jar"; then
  ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=yes
else
  ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" = x""yes; then
   COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient-3.1.jar
else

                        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-httpclient.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-httpclient.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_httpclient_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-httpclient.jar"; then
  ac_cv_file__usr_share_java_commons_httpclient_jar=yes
else
  ac_cv_file__usr_share_java_commons_httpclient_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_httpclient_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_httpclient_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_httpclient_jar" = x""yes; then
   COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient.jar
else
  { { $as_echo "$as_me:$LINENO: error: commons-httpclient.jar replacement not found." >&5
$as_echo "$as_me: error: commons-httpclient.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

            else
                as_ac_File=`$as_echo "ac_cv_file_$COMMONS_HTTPCLIENT_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $COMMONS_HTTPCLIENT_JAR" >&5
$as_echo_n "checking for $COMMONS_HTTPCLIENT_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$COMMONS_HTTPCLIENT_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: commons-httpclient.jar not found." >&5
$as_echo "$as_me: error: commons-httpclient.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

            fi
        fi
        if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
            if test -z $COMMONS_LOGGING_JAR; then
                { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-logging-1.1.1.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-logging-1.1.1.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_logging_1_1_1_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-logging-1.1.1.jar"; then
  ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=yes
else
  ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" = x""yes; then
   COMMONS_LOGGING_JAR=/usr/share/java/commons-logging-1.1.1.jar
else

                        { $as_echo "$as_me:$LINENO: checking for /usr/share/java/commons-logging.jar" >&5
$as_echo_n "checking for /usr/share/java/commons-logging.jar... " >&6; }
if test "${ac_cv_file__usr_share_java_commons_logging_jar+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "/usr/share/java/commons-logging.jar"; then
  ac_cv_file__usr_share_java_commons_logging_jar=yes
else
  ac_cv_file__usr_share_java_commons_logging_jar=no
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_logging_jar" >&5
$as_echo "$ac_cv_file__usr_share_java_commons_logging_jar" >&6; }
if test "x$ac_cv_file__usr_share_java_commons_logging_jar" = x""yes; then
   COMMONS_LOGGING_JAR=/usr/share/java/commons-logging.jar
else
  { { $as_echo "$as_me:$LINENO: error: commons-logging.jar replacement not found." >&5
$as_echo "$as_me: error: commons-logging.jar replacement not found." >&2;}
   { (exit 1); exit 1; }; }

fi



fi

            else
                as_ac_File=`$as_echo "ac_cv_file_$COMMONS_LOGGING_JAR" | $as_tr_sh`
{ $as_echo "$as_me:$LINENO: checking for $COMMONS_LOGGING_JAR" >&5
$as_echo_n "checking for $COMMONS_LOGGING_JAR... " >&6; }
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
  $as_echo_n "(cached) " >&6
else
  test "$cross_compiling" = yes &&
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
   { (exit 1); exit 1; }; }
if test -r "$COMMONS_LOGGING_JAR"; then
  eval "$as_ac_File=yes"
else
  eval "$as_ac_File=no"
fi
fi
ac_res=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
as_val=`eval 'as_val=${'$as_ac_File'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: commons-logging.jar not found." >&5
$as_echo "$as_me: error: commons-logging.jar not found." >&2;}
   { (exit 1); exit 1; }; }
fi

            fi
        fi
    else
        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        SYSTEM_APACHE_COMMONS=NO
        BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS TOMCAT"
    fi
fi






# scripting provider for BeanShell extension?
{ $as_echo "$as_me:$LINENO: checking whether to build extension for support of scripts in BeanShell" >&5
$as_echo_n "checking whether to build extension for support of scripts in BeanShell... " >&6; }
if test "x$enable_ext_scripting_beanshell" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
   ENABLE_SCRIPTING_BEANSHELL=YES
else
   { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
   ENABLE_SCRIPTING_BEANSHELL=NO
   SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_BEANSHELL"
fi


# scripting provider for JavaScript extension?
{ $as_echo "$as_me:$LINENO: checking whether to build extension for support of scripts in JavaScript" >&5
$as_echo_n "checking whether to build extension for support of scripts in JavaScript... " >&6; }
if test "x$enable_ext_scripting_javascript" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
   { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
   ENABLE_SCRIPTING_JAVASCRIPT=YES
else
   { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
   ENABLE_SCRIPTING_JAVASCRIPT=NO
   SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT"
fi


if test $enable_python = no; then
    ENABLE_SCRIPTING_PYTHON=NO
else
    ENABLE_SCRIPTING_PYTHON=YES
fi


supports_multilib=
case "$host_cpu" in
x86_64 | powerpc64 | s390x)
    if test "$SIZEOF_LONG" = "8"; then
        supports_multilib="yes"
    fi
    ;;
*)
    ;;
esac


KDE_CFLAGS=""
KDE_LIBS=""
if test "$_os" != "OpenBSD"; then
    MOC="moc"
fi
if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
        if test -z "$supports_multilib" ; then
        qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include /usr/local/include/X11/qt3 $x_includes"
        qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
    else
        qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include /usr/local/include/X11/qt3 $x_includes"
        qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
    fi
    if test -n "$QTDIR" ; then
        qt_incdirs="$QTDIR/include $qt_incdirs"
        if test -z "$supports_multilib" ; then
            qt_libdirs="$QTDIR/lib $qt_libdirs"
        else
            qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
        fi
    fi
    if test -z "$supports_multilib" ; then
        kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
        kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
    else
        kde_incdirs="/usr/lib64/kde/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
        kde_libdirs="/usr/lib64/kde/lib64 /usr/local/kde/lib64 /usr/kde/lib64 /usr/lib64/kde /usr/lib64/kde3 /usr/X11R6/lib64 /usr/local/lib64 /opt/kde3/lib64 /opt/kde/lib64 /usr/X11R6/kde/lib64 /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib64 $x_libraries"
    fi
    if test -n "$KDEDIR" ; then
        kde_incdirs="$KDEDIR/include $kde_incdirs"
        if test -z "$supports_multilib" ; then
            kde_libdirs="$KDEDIR/lib $kde_libdirs"
        else
            kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
        fi
    fi

        qt_test_include="qstyle.h"
    kde_test_include="kapp.h"

    if test "$_os" != "OpenBSD"; then
        qt_test_library="libqt-mt.so"
        kde_test_library="libDCOP.so"
    else
        qt_test_library="libqt-mt.so*"
        kde_test_library="libDCOP.so*"
    fi

        { $as_echo "$as_me:$LINENO: checking for Qt3 headers" >&5
$as_echo_n "checking for Qt3 headers... " >&6; }
    qt_incdir="no"
    for kde_check in $qt_incdirs ; do
        if test -r "$kde_check/$qt_test_include" ; then
            qt_incdir="$kde_check"
            break
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $qt_incdir" >&5
$as_echo "$qt_incdir" >&6; }
    if test "x$qt_incdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: Qt3 headers not found.  Please specify the root of
your Qt3 installation by exporting QTDIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt3 headers not found.  Please specify the root of
your Qt3 installation by exporting QTDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        { $as_echo "$as_me:$LINENO: checking for Qt3 libraries" >&5
$as_echo_n "checking for Qt3 libraries... " >&6; }
    qt_libdir="no"
    for qt_check in $qt_libdirs ; do
        if test -r "`ls $qt_check/$qt_test_library 2>/dev/null | head -1`" ; then
            qt_libdir="$qt_check"
            break
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $qt_libdir" >&5
$as_echo "$qt_libdir" >&6; }
    if test "x$qt_libdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: Qt3 libraries not found.  Please specify the root of
your Qt3 installation by exporting QTDIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt3 libraries not found.  Please specify the root of
your Qt3 installation by exporting QTDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        # Extract the first word of "moc", so it can be a program name with args.
set dummy moc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MOC+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="`dirname $qt_libdir`/bin:$QTDIR/bin:$PATH "
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
  ;;
esac
fi
MOC=$ac_cv_path_MOC
if test -n "$MOC"; then
  { $as_echo "$as_me:$LINENO: result: $MOC" >&5
$as_echo "$MOC" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    if test "$MOC" = "no" ; then
        { { $as_echo "$as_me:$LINENO: error: Qt3 Meta Object Compiler not found.  Please specify
the root of your Qt3 installation by exporting QTDIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt3 Meta Object Compiler not found.  Please specify
the root of your Qt3 installation by exporting QTDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        { $as_echo "$as_me:$LINENO: checking for KDE3 headers" >&5
$as_echo_n "checking for KDE3 headers... " >&6; }
    kde_incdir="no"
    for kde_check in $kde_incdirs ; do
        if test -r "$kde_check/$kde_test_include" ; then
            kde_incdir="$kde_check"
            break
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $kde_incdir" >&5
$as_echo "$kde_incdir" >&6; }
    if test "x$kde_incdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: KDE3 headers not found.  Please specify the root of
your KDE3 installation by exporting KDEDIR before running \"configure\"." >&5
$as_echo "$as_me: error: KDE3 headers not found.  Please specify the root of
your KDE3 installation by exporting KDEDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        { $as_echo "$as_me:$LINENO: checking for KDE3 libraries" >&5
$as_echo_n "checking for KDE3 libraries... " >&6; }
    kde_libdir="no"
    for kde_check in $kde_libdirs ; do
        if test -r "`ls $kde_check/$kde_test_library 2>/dev/null | head -1`" ; then
            kde_libdir="$kde_check"
            break
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $kde_libdir" >&5
$as_echo "$kde_libdir" >&6; }
    if test "x$kde_libdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: KDE3 libraries not found.  Please specify the root of
your KDE3 installation by exporting KDEDIR before running \"configure\"." >&5
$as_echo "$as_me: error: KDE3 libraries not found.  Please specify the root of
your KDE3 installation by exporting KDEDIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        KDE_CFLAGS="-I$qt_incdir -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
    KDE_LIBS="-L$kde_libdir -L$qt_libdir -lkdeui -lkdecore -lqt-mt"
fi





KDE4_CFLAGS=""
KDE4_LIBS=""
QMAKE4="qmake"
MOC4="moc"
KDE_GLIB_CFLAGS=""
KDE_GLIB_LIBS=""
KDE_HAVE_GLIB=""
if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
    qt_incdirs="$QT4INC /usr/include/qt4 /usr/include $x_includes"
    qt_libdirs="$QT4LIB /usr/lib/qt4 /usr/lib $x_libraries"

    kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
    kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"

    if test -n "$supports_multilib" ; then
        qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
        kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4 /usr/lib64/kde4/devel"
    fi

    if test -n "$QTDIR" ; then
        qt_incdirs="$QTDIR/include $qt_incdirs"
        if test -z "$supports_multilib" ; then
            qt_libdirs="$QTDIR/lib $qt_libdirs"
        else
            qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
        fi
    fi
    if test -n "$QT4DIR" ; then
        qt_incdirs="$QT4DIR/include $qt_incdirs"
        if test -z "$supports_multilib" ; then
            qt_libdirs="$QT4DIR/lib $qt_libdirs"
        else
            qt_libdirs="$QT4DIR/lib64 $QT4DIR/lib $qt_libdirs"
        fi
    fi

    if test -n "$KDEDIR" ; then
        kde_incdirs="$KDEDIR/include $kde_incdirs"
        if test -z "$supports_multilib" ; then
            kde_libdirs="$KDEDIR/lib $kde_libdirs"
        else
            kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
        fi
    fi
    if test -n "$KDE4DIR" ; then
        kde_incdirs="$KDE4DIR/include $KDE4DIR/include/kde4 $kde_incdirs"
        if test -z "$supports_multilib" ; then
            kde_libdirs="$KDE4DIR/lib $kde_libdirs"
        else
            kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
        fi
    fi

    qt_test_include="Qt/qobject.h"
    qt_test_library="libQtCore.so"
    kde_test_include="kwindowsystem.h"
    kde_test_library="libsolid.so"

    { $as_echo "$as_me:$LINENO: checking for Qt4 headers" >&5
$as_echo_n "checking for Qt4 headers... " >&6; }
    qt_header_dir="no"
    for inc_dir in $qt_incdirs ; do
        if test -r "$inc_dir/$qt_test_include" ; then
            qt_header_dir="$inc_dir"
            break
        fi
    done

    { $as_echo "$as_me:$LINENO: result: $qt_header_dir" >&5
$as_echo "$qt_header_dir" >&6; }
    if test "x$qt_header_dir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: Qt4 headers not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt4 headers not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        # Extract the first word of "qmake-qt4", so it can be a program name with args.
set dummy qmake-qt4; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_QMAKEQT4+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $QMAKEQT4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="no"
  ;;
esac
fi
QMAKEQT4=$ac_cv_path_QMAKEQT4
if test -n "$QMAKEQT4"; then
  { $as_echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
$as_echo "$QMAKEQT4" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    QMAKE4="$QMAKEQT4"
    if test "$QMAKE4" = "no" ; then
        # Extract the first word of "qmake", so it can be a program name with args.
set dummy qmake; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_QMAKE4+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $QMAKE4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_QMAKE4="$QMAKE4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_QMAKE4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_QMAKE4" && ac_cv_path_QMAKE4="no"
  ;;
esac
fi
QMAKE4=$ac_cv_path_QMAKE4
if test -n "$QMAKE4"; then
  { $as_echo "$as_me:$LINENO: result: $QMAKE4" >&5
$as_echo "$QMAKE4" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$QMAKE4" = "no" ; then
            { { $as_echo "$as_me:$LINENO: error: Qmake not found.  Please specify
the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qmake not found.  Please specify
the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

    qt_libdirs="`$QMAKE4 -query QT_INSTALL_LIBS` $qt_libdirs"
    { $as_echo "$as_me:$LINENO: checking for Qt4 libraries" >&5
$as_echo_n "checking for Qt4 libraries... " >&6; }
    qt_lib_dir="no"
    for lib_dir in $qt_libdirs ; do
        if test -r "$lib_dir/$qt_test_library" ; then
            qt_lib_dir="$lib_dir"
            PKG_CONFIG_PATH="$qt_lib_dir"/pkgconfig:$PKG_CONFIG_PATH
            break
        fi
    done

    { $as_echo "$as_me:$LINENO: result: $qt_lib_dir" >&5
$as_echo "$qt_lib_dir" >&6; }

    if test "x$qt_lib_dir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: Qt4 libraries not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt4 libraries not found.  Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi


    # Extract the first word of "moc-qt4", so it can be a program name with args.
set dummy moc-qt4; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MOCQT4+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MOCQT4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MOCQT4="$MOCQT4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MOCQT4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MOCQT4" && ac_cv_path_MOCQT4="no"
  ;;
esac
fi
MOCQT4=$ac_cv_path_MOCQT4
if test -n "$MOCQT4"; then
  { $as_echo "$as_me:$LINENO: result: $MOCQT4" >&5
$as_echo "$MOCQT4" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


    MOC4="$MOCQT4"
    if test "$MOC4" = "no" ; then
        # Extract the first word of "moc", so it can be a program name with args.
set dummy moc; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_MOC4+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $MOC4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MOC4="$MOC4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_MOC4="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  test -z "$ac_cv_path_MOC4" && ac_cv_path_MOC4="no"
  ;;
esac
fi
MOC4=$ac_cv_path_MOC4
if test -n "$MOC4"; then
  { $as_echo "$as_me:$LINENO: result: $MOC4" >&5
$as_echo "$MOC4" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


        if test "$MOC4" = "no" ; then
            { { $as_echo "$as_me:$LINENO: error: Qt Meta Object Compiler not found.  Please specify
the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: Qt Meta Object Compiler not found.  Please specify
the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi

        { $as_echo "$as_me:$LINENO: checking for KDE4 headers" >&5
$as_echo_n "checking for KDE4 headers... " >&6; }
    kde_incdir="no"
    for kde_check in $kde_incdirs ; do
        if test -r "$kde_check/$kde_test_include" ; then
            kde_incdir="$kde_check"
            break
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $kde_incdir" >&5
$as_echo "$kde_incdir" >&6; }
    if test "x$kde_incdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: KDE4 headers not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: KDE4 headers not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

        { $as_echo "$as_me:$LINENO: checking for KDE4 libraries" >&5
$as_echo_n "checking for KDE4 libraries... " >&6; }
    kde_libdir="no"
    for kde_check in $kde_libdirs ; do
        if test -r "$kde_check/$kde_test_library" ; then
            kde_libdir="$kde_check"
            break
        fi
    done

    { $as_echo "$as_me:$LINENO: result: $kde_libdir" >&5
$as_echo "$kde_libdir" >&6; }
    if test "x$kde_libdir" = "xno" ; then
        { { $as_echo "$as_me:$LINENO: error: KDE4 libraries not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&5
$as_echo "$as_me: error: KDE4 libraries not found.  Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&2;}
   { (exit 1); exit 1; }; }
    fi

    KDE4_CFLAGS="`pkg-config --cflags QtCore` `pkg-config --cflags QtGui` -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
    KDE4_LIBS="-L$kde_libdir -L$qt_lib_dir -lkdeui -lkdecore -lQtCore -lQtGui"

    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    save_CXXFLAGS=$CXXFLAGS
    CXXFLAGS="$CXXFLAGS $KDE4_CFLAGS"
    { $as_echo "$as_me:$LINENO: checking whether KDE is >= 4.2" >&5
$as_echo_n "checking whether KDE is >= 4.2... " >&6; }
       if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <kdeversion.h>

int main(int argc, char **argv) {
       if (KDE_VERSION_MAJOR == 4 && KDE_VERSION_MINOR >= 2) return 0;
       else return 1;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { $as_echo "$as_me:$LINENO: error: KDE version too old" >&5
$as_echo "$as_me: error: KDE version too old" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


    CXXFLAGS=$save_CXXFLAGS
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


   # Glib is needed for properly handling Qt event loop with Qt's Glib integration enabled

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for KDE_GLIB" >&5
$as_echo_n "checking for KDE_GLIB... " >&6; }

if test -n "$KDE_GLIB_CFLAGS"; then
    pkg_cv_KDE_GLIB_CFLAGS="$KDE_GLIB_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\"") >&5
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_KDE_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$KDE_GLIB_LIBS"; then
    pkg_cv_KDE_GLIB_LIBS="$KDE_GLIB_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\"") >&5
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_KDE_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        KDE_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.4" 2>&1`
        else
	        KDE_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.4" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$KDE_GLIB_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                { $as_echo "$as_me:$LINENO: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&5
$as_echo "$as_me: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&2;}
elif test $pkg_failed = untried; then
	{ $as_echo "$as_me:$LINENO: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&5
$as_echo "$as_me: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&2;}
else
	KDE_GLIB_CFLAGS=$pkg_cv_KDE_GLIB_CFLAGS
	KDE_GLIB_LIBS=$pkg_cv_KDE_GLIB_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	KDE_HAVE_GLIB=1
fi
fi







{ $as_echo "$as_me:$LINENO: checking whether to enable the lockdown pieces" >&5
$as_echo_n "checking whether to enable the lockdown pieces... " >&6; }
ENABLE_LOCKDOWN=""
if test -n "$enable_lockdown" && test "$enable_lockdown" != "no"; then
    ENABLE_LOCKDOWN=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to enable evolution 2 support" >&5
$as_echo_n "checking whether to enable evolution 2 support... " >&6; }
if test "$enable_evolution2" = "yes" -o "$enable_evolution2" = "TRUE"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for GOBJECT" >&5
$as_echo_n "checking for GOBJECT... " >&6; }

if test -n "$GOBJECT_CFLAGS"; then
    pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$GOBJECT_LIBS"; then
    pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\"") >&5
  ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0" 2>&1`
        else
	        GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$GOBJECT_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (gobject-2.0) were not met:

$GOBJECT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GOBJECT_CFLAGS
and GOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (gobject-2.0) were not met:

$GOBJECT_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GOBJECT_CFLAGS
and GOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GOBJECT_CFLAGS
and GOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GOBJECT_CFLAGS
and GOBJECT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
	GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    ENABLE_EVOAB2="TRUE"
else
    ENABLE_EVOAB2=""
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi




{ $as_echo "$as_me:$LINENO: checking whether to enable KDE address book support" >&5
$as_echo_n "checking whether to enable KDE address book support... " >&6; }
if test "$enable_kdeab" = "yes" && test "$enable_kde" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

    save_CXXFLAGS=$CXXFLAGS
    CXXFLAGS="$CXXFLAGS $KDE_CFLAGS"
    { $as_echo "$as_me:$LINENO: checking whether KDE is between 3.2 and 3.6" >&5
$as_echo_n "checking whether KDE is between 3.2 and 3.6... " >&6; }
       if test "$cross_compiling" = yes; then
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
$as_echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <kdeversion.h>

int main(int argc, char **argv) {
       if (KDE_VERSION_MAJOR == 3 && 2 <= KDE_VERSION_MINOR && KDE_VERSION_MINOR <= 6) return 0;
       else return 1;
}

_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { $as_echo "$as_me:$LINENO: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" >&5
$as_echo "$as_me: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" >&2;}
   { (exit 1); exit 1; }; }
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi


    CXXFLAGS=$save_CXXFLAGS
    ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

    ENABLE_KAB=TRUE
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_KAB=
fi


{ $as_echo "$as_me:$LINENO: checking whether to include MathMLDTD" >&5
$as_echo_n "checking whether to include MathMLDTD... " >&6; }
if test -n "$enable_mathmldtd"; then
    if test "$enable_mathmldtd" = "no"; then
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
    else
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        BUILD_TYPE="$BUILD_TYPE MATHMLDTD"
    fi
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
fi

{ $as_echo "$as_me:$LINENO: checking which themes to include" >&5
$as_echo_n "checking which themes to include... " >&6; }
# if none given, use all available themes
if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
    with_theme="default crystal hicontrast oxygen tango"
fi

WITH_THEMES=""
for theme in $with_theme; do
    case $theme in
        default|crystal|hicontrast|oxygen|tango|human) : ;;
        *) { { $as_echo "$as_me:$LINENO: error: Unknown value for --with-theme: $theme" >&5
$as_echo "$as_me: error: Unknown value for --with-theme: $theme" >&2;}
   { (exit 1); exit 1; }; } ;;
    esac
    WITH_THEMES="$WITH_THEMES $theme"
    SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[:lower:]' '[:upper:]'`"
done
{ $as_echo "$as_me:$LINENO: result: $WITH_THEMES" >&5
$as_echo "$WITH_THEMES" >&6; }


{ $as_echo "$as_me:$LINENO: checking for helppack integration" >&5
$as_echo_n "checking for helppack integration... " >&6; }
if test "z$with_helppack_integration" = "zno" ; then
    WITH_HELPPACK_INTEGRATION=NO
    { $as_echo "$as_me:$LINENO: result: no integration" >&5
$as_echo "no integration" >&6; }
else
    WITH_HELPPACK_INTEGRATION=YES
    SCPDEFS="$SCPDEFS -DWITH_HELPPACK_INTEGRATION"
    { $as_echo "$as_me:$LINENO: result: integration" >&5
$as_echo "integration" >&6; }
fi


###############################################################################
# Extensions checking
###############################################################################
{ $as_echo "$as_me:$LINENO: checking for extensions integration" >&5
$as_echo_n "checking for extensions integration... " >&6; }
if test "x$enable_extension_integration" != "xno"; then
    WITH_EXTENSION_INTEGRATION=YES
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_INTEGRATION"
    { $as_echo "$as_me:$LINENO: result: yes, use integration" >&5
$as_echo "yes, use integration" >&6; }
else
    WITH_EXTENSION_INTEGRATION=NO
    { $as_echo "$as_me:$LINENO: result: no, do not integrate" >&5
$as_echo "no, do not integrate" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Watch Window extension integration" >&5
$as_echo_n "checking for Watch Window extension integration... " >&6; }
WATCH_WINDOW_EXTENSION_PACK=
if test "x$enable_ext_watch_window" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_WATCH_WINDOW"
    WATCH_WINDOW_EXTENSION_PACK="23bd75552206dfcd8fd4e29137dcac84-WatchWindow_1.2.0.0.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for SmART Gallery (Diagram) extension integration" >&5
$as_echo_n "checking for SmART Gallery (Diagram) extension integration... " >&6; }
DIAGRAM_EXTENSION_PACK=
if test "x$enable_ext_diagram" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_DIAGRAM"
    DIAGRAM_EXTENSION_PACK="8d74685d41f8bffe8c3e71fe8deac09d-SmART_0.9.5.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Validator extension integration" >&5
$as_echo_n "checking for Validator extension integration... " >&6; }
VALIDATOR_EXTENSION_PACK=
if test "x$enable_ext_validator" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_VALIDATOR"
    VALIDATOR_EXTENSION_PACK="bbdd5639ada63e3130761daaecae1a10-Validator_1.1.0.0.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Barcode extension integration" >&5
$as_echo_n "checking for Barcode extension integration... " >&6; }
BARCODE_EXTENSION_PACK=
if test "x$enable_ext_barcode" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_BARCODE"
    BARCODE_EXTENSION_PACK="3ed18025a766f1e955707b969c8113a5-Barcode_1.3.5.0.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for ConvertTextToNumber extension integration" >&5
$as_echo_n "checking for ConvertTextToNumber extension integration... " >&6; }
CT2N_EXTENSION_PACK=
if test "x$enable_ext_ct2n" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    BUILD_TYPE="$BUILD_TYPE CT2N"
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_CT2N"
    CT2N_EXTENSION_PACK="451ccf439a36a568653b024534669971-ConvertTextToNumber_1.3.2.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Numbertext extension integration" >&5
$as_echo_n "checking for Numbertext extension integration... " >&6; }
NUMBERTEXT_EXTENSION_PACK=
if test "x$enable_ext_numbertext" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NUMBERTEXT"
    NUMBERTEXT_EXTENSION_PACK="b8cbca7b3363e6ca2d02bc0ba2b63904-numbertext_0.9.4.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Hungarian Cross-reference Toolbar extension integration" >&5
$as_echo_n "checking for Hungarian Cross-reference Toolbar extension integration... " >&6; }
HUNART_EXTENSION_PACK=
if test "x$enable_ext_hunart" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_HUNART"
    HUNART_EXTENSION_PACK="b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Typography Toolbar extension integration" >&5
$as_echo_n "checking for Typography Toolbar extension integration... " >&6; }
TYPO_EXTENSION_PACK=
if test "x$enable_ext_typo" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_TYPO"
    TYPO_EXTENSION_PACK="9d60b6cfa3ef1926848710bbcd11115b-typo_0.4.2.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for Google Docs extension integration" >&5
$as_echo_n "checking for Google Docs extension integration... " >&6; }
GOOGLE_DOCS_EXTENSION_PACK=
if test "x$enable_ext_google_docs" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_GOOGLE_DOCS"
    GOOGLE_DOCS_EXTENSION_PACK="cea0f63d5985ba4fcbd882031df44346-gdocs_3.0.0_modified.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for NLPSolver extension integration" >&5
$as_echo_n "checking for NLPSolver extension integration... " >&6; }
if test "x$enable_ext_nlpsolver" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
    BUILD_TYPE="$BUILD_TYPE NLPSOLVER"
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NLPSOLVER"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking for LanguageTool extension integration" >&5
$as_echo_n "checking for LanguageTool extension integration... " >&6; }
if test "x$enable_ext_languagetool" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    BUILD_TYPE="$BUILD_TYPE LANGUAGETOOL"
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_LANGUAGETOOL"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking for oooblogger extension integration" >&5
$as_echo_n "checking for oooblogger extension integration... " >&6; }
OOOBLOGGER_EXTENSION_PACK=
if test "x$enable_ext_oooblogger" = "xyes" -a "x$enable_extension_integration" != "xno"; then
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_OOOBLOGGER"
    OOOBLOGGER_EXTENSION_PACK="b7b2d0e04e142f26dd96119c80757d1f-oooblogger_0.1.oxt"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi

###############################################################################

{ $as_echo "$as_me:$LINENO: checking for Sun Professional Template Pack integration (only supported languages displayed)" >&5
$as_echo_n "checking for Sun Professional Template Pack integration (only supported languages displayed)... " >&6; }
if test "z$with_sun_templates" = "z" -o "z$with_sun_templates" = "zno" ; then
    SUNTEMPLATES_LANG=""
    { $as_echo "$as_me:$LINENO: result: no integration" >&5
$as_echo "no integration" >&6; }
else
    SCPDEFS="$SCPDEFS -DWITH_EXTENSION_SUN_TEMPLATE_PACK"
    sun_supported_langs="en-US de it fr es hu"
    if test "z$with_sun_templates" = "zyes" ; then
        wanted_sun_templates="$sun_supported_langs"
    else
        # check whether the langs are supported by Sun
        wanted_sun_templates=
        for lang in $with_sun_templates ; do
            if test -n "`echo $sun_supported_langs | grep "$lang"`" ; then
                wanted_sun_templates="$wanted_sun_templates $lang"
            fi
        done
    fi
    SUNTEMPLATES_LANG=
    SUNTEMPLATES_DE_PACK=
    SUNTEMPLATES_EN_US_PACK=
    SUNTEMPLATES_ES_PACK=
    SUNTEMPLATES_FR_PACK=
    SUNTEMPLATES_HU_PACK=
    SUNTEMPLATES_IT_PACK=
    # check whether the langs are requested at all
    for lang in $wanted_sun_templates ; do
    if test "$with_lang" = "ALL" -o -n "`echo $with_lang | grep "$lang"`" ; then
        SUNTEMPLATES_LANG="$SUNTEMPLATES_LANG $lang"
        case $lang in
        "de") SUNTEMPLATES_DE_PACK="53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt";;
        "en-US") SUNTEMPLATES_EN_US_PACK="472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt";;
        "es") SUNTEMPLATES_ES_PACK="4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt";;
        "fr") SUNTEMPLATES_FR_PACK="a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt";;
        "hu") SUNTEMPLATES_HU_PACK="09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt";;
        "it") SUNTEMPLATES_IT_PACK="b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt";;
        esac
    fi
    done
    { $as_echo "$as_me:$LINENO: result: $SUNTEMPLATES_LANG" >&5
$as_echo "$SUNTEMPLATES_LANG" >&6; }
fi








{ $as_echo "$as_me:$LINENO: checking whether to include third-party fonts" >&5
$as_echo_n "checking whether to include third-party fonts... " >&6; }
if test "$with_fonts" != "no" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_FONTS=YES
    BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_FONTS=NO
    SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
fi


{ $as_echo "$as_me:$LINENO: checking whether to include Agfa Monotype fonts" >&5
$as_echo_n "checking whether to include Agfa Monotype fonts... " >&6; }
if test "$with_agfa_monotype_fonts" = "yes" ; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_AGFA_MONOTYPE_FONTS=YES
    SCPDEFS="$SCPDEFS -DWITH_AGFA_MONOTYPE_FONTS"
    BUILD_TYPE="$BUILD_TYPE AGFA_MONOTYPE_FONTS"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_AGFA_MONOTYPE_FONTS=NO
fi


{ $as_echo "$as_me:$LINENO: checking whether to include PPDs" >&5
$as_echo_n "checking whether to include PPDs... " >&6; }
if test "$with_ppds" != "no"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITHOUT_PPDS=YES
    SCPDEFS="$SCPDEFS -DWITHOUT_PPDS"
fi


{ $as_echo "$as_me:$LINENO: checking whether to include AFMs" >&5
$as_echo_n "checking whether to include AFMs... " >&6; }
if test "$with_afms" != "no"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    BUILD_TYPE="$BUILD_TYPE AFMS"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITHOUT_AFMS=YES
    SCPDEFS="$SCPDEFS -DWITHOUT_AFMS"
fi


{ $as_echo "$as_me:$LINENO: checking whether to include extra galleries" >&5
$as_echo_n "checking whether to include extra galleries... " >&6; }
if test "z$enable_extra_gallery" = "z" -o "z$enable_extra_gallery" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_EXTRA_GALLERY=NO
    OOOP_GALLERY_PACK=""
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_EXTRA_GALLERY=YES
    BUILD_TYPE="$BUILD_TYPE EXTRA_GALLERY"
    SCPDEFS="$SCPDEFS -DWITH_EXTRA_GALLERY"
    OOOP_GALLERY_PACK="af9314c5972d95a5d6da23ffad818f68-OOOP-gallery-pack-2.8.0.0.zip"
fi



{ $as_echo "$as_me:$LINENO: checking whether to include extra templates" >&5
$as_echo_n "checking whether to include extra templates... " >&6; }
if test "z$enable_extra_template" = "z" -o "z$enable_extra_template" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_EXTRA_TEMPLATE=NO
    OOOP_TEMPLATES_PACK=""
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_EXTRA_TEMPLATE=YES
    BUILD_TYPE="$BUILD_TYPE EXTRA_TEMPLATE"
    SCPDEFS="$SCPDEFS -DWITH_EXTRA_TEMPLATE"
    OOOP_TEMPLATES_PACK="1be202fbbbc13f10592a98f70a4a87fb-OOOP-templates-pack-2.9.0.0.zip"
fi



{ $as_echo "$as_me:$LINENO: checking whether to include extra samples" >&5
$as_echo_n "checking whether to include extra samples... " >&6; }
if test "z$enable_extra_sample" = "z" -o "z$enable_extra_sample" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_EXTRA_SAMPLE=NO
    OOOP_SAMPLES_PACK=""
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_EXTRA_SAMPLE=YES
    BUILD_TYPE="$BUILD_TYPE EXTRA_SAMPLE"
    SCPDEFS="$SCPDEFS -DWITH_EXTRA_SAMPLE"
    OOOP_SAMPLES_PACK="a6bccacf44914969e6e7b2f8faf4132c-OOOP-samples-pack-2.7.0.0.zip"
fi



{ $as_echo "$as_me:$LINENO: checking whether to include extra fonts" >&5
$as_echo_n "checking whether to include extra fonts... " >&6; }
if test "z$enable_extra_font" = "z" -o "z$enable_extra_font" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    WITH_EXTRA_FONT=NO
    OOOP_FONTS_PACK=""
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    WITH_EXTRA_FONT=YES
    BUILD_TYPE="$BUILD_TYPE EXTRA_FONT"
    SCPDEFS="$SCPDEFS -DWITH_EXTRA_FONT"
    OOOP_FONTS_PACK="a10aa597411643326e27d7fc128af12d-OOOP-fonts-pack-2.9.0.0.zip"
fi



{ $as_echo "$as_me:$LINENO: checking whether to download OxygenOffice branding and set custom settings" >&5
$as_echo_n "checking whether to download OxygenOffice branding and set custom settings... " >&6; }
if test "z$enable_oxygenoffice" = "z" -o "z$enable_oxygenoffice" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_OXYGENOFFICE=NO
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_OXYGENOFFICE=YES
    OXYGENOFFICE_PACK="18bf204479ff641d99a88cd71f6f25f7-oxygenoffice-001.zip"
    BUILD_TYPE="$BUILD_TYPE OXYGENOFFICE"
fi



{ $as_echo "$as_me:$LINENO: checking whether to build global menu support" >&5
$as_echo_n "checking whether to build global menu support... " >&6; }
if test "z$enable_lomenubar" = "z" -o "z$enable_lomenubar" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_LOMENUBAR="FALSE"
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for DBUSMENUGTK" >&5
$as_echo_n "checking for DBUSMENUGTK... " >&6; }

if test -n "$DBUSMENUGTK_CFLAGS"; then
    pkg_cv_DBUSMENUGTK_CFLAGS="$DBUSMENUGTK_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbusmenu-gtk-0.4\"") >&5
  ($PKG_CONFIG --exists --print-errors "dbusmenu-gtk-0.4") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_DBUSMENUGTK_CFLAGS=`$PKG_CONFIG --cflags "dbusmenu-gtk-0.4" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$DBUSMENUGTK_LIBS"; then
    pkg_cv_DBUSMENUGTK_LIBS="$DBUSMENUGTK_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbusmenu-gtk-0.4\"") >&5
  ($PKG_CONFIG --exists --print-errors "dbusmenu-gtk-0.4") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_DBUSMENUGTK_LIBS=`$PKG_CONFIG --libs "dbusmenu-gtk-0.4" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbusmenu-gtk-0.4" 2>&1`
        else
	        DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbusmenu-gtk-0.4" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$DBUSMENUGTK_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                { { $as_echo "$as_me:$LINENO: error: requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" >&5
$as_echo "$as_me: error: requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" >&2;}
   { (exit 1); exit 1; }; }
else
	DBUSMENUGTK_CFLAGS=$pkg_cv_DBUSMENUGTK_CFLAGS
	DBUSMENUGTK_LIBS=$pkg_cv_DBUSMENUGTK_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    ENABLE_LOMENUBAR="TRUE"
fi


{ $as_echo "$as_me:$LINENO: checking whether to enable online update" >&5
$as_echo_n "checking whether to enable online update... " >&6; }
ENABLE_ONLINE_UPDATE=
if test "z$enable_online_update" = "z" ; then
    if test "$_os" = "WINNT" -o "$_os" = "Darwin" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ENABLE_ONLINE_UPDATE="TRUE"
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
else
    if test "z$enable_online_update" = "zyes" ; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ENABLE_ONLINE_UPDATE="TRUE"
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi


{ $as_echo "$as_me:$LINENO: checking whether build target is Release Build" >&5
$as_echo_n "checking whether build target is Release Build... " >&6; }
if test "z$enable_release_build" = "z" -o "z$enable_release_build" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_RELEASE_BUILD="FALSE"
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_RELEASE_BUILD="TRUE"
fi


{ $as_echo "$as_me:$LINENO: checking whether to create MSI with LIMITUI=1 (silent install)" >&5
$as_echo_n "checking whether to create MSI with LIMITUI=1 (silent install)... " >&6; }
if test "z$enable_silent_msi" = "z" -o "z$enable_silent_msi" = "zno" ; then
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    ENABLE_SILENT_MSI="FALSE"
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    ENABLE_SILENT_MSI="TRUE"
    SCPDEFS="$SCPDEFS -DENABLE_SILENT_MSI"
fi


if test "$_os" = "WINNT"; then
    { $as_echo "$as_me:$LINENO: checking whether to enable ActiveX embedding of LibreOffice components" >&5
$as_echo_n "checking whether to enable ActiveX embedding of LibreOffice components... " >&6; }
    if test "$enable_activex_component" = "yes" -o "$enable_activex_component" = "TRUE" -o "$enable_activex_component" = ""; then
        ENABLE_ACTIVEX_COMPONENT="TRUE"
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        SCPDEFS="$SCPDEFS -DWITH_ACTIVEX_COMPONENT"
    else
        ENABLE_ACTIVEX_COMPONENT=""
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi


fi

{ $as_echo "$as_me:$LINENO: checking whether and how to use Xinerama" >&5
$as_echo_n "checking whether and how to use Xinerama... " >&6; }
if test "$_os" = "Darwin"; then
    USE_XINERAMA=YES
    XINERAMA_LINK=dynamic
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
elif test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
    if test "$x_libraries" = "default_x_libraries"; then
        XINERAMALIB=`$PKG_CONFIG --variable=libdir xinerama`
        if test "x$XINERAMALIB" = x; then
           XINERAMALIB="/usr/lib"
        fi
    else
        XINERAMALIB="$x_libraries"
    fi
    if test -e "$XINERAMALIB/libXinerama.so" -a -e "$XINERAMALIB/libXinerama.a"; then
        # we have both versions, let the user decide but use the dynamic one
        # per default
        USE_XINERAMA=YES
        if test -z "$with_static_xinerama" -o -n "$with_system_libs"; then
            XINERAMA_LINK=dynamic
        else
            XINERAMA_LINK=static
        fi
    elif test -e "$XINERAMALIB/libXinerama.so" -a ! -e "$XINERAMALIB/libXinerama.a"; then
        # we have only the dynamic version
        USE_XINERAMA=YES
        XINERAMA_LINK=dynamic
    elif test -e "$XINERAMALIB/libXinerama.a"; then
        # static version
        if echo $host_cpu | grep -E 'i[3456]86' 2>/dev/null >/dev/null; then
            USE_XINERAMA=YES
            XINERAMA_LINK=static
        else
            USE_XINERAMA=NO
            XINERAMA_LINK=none
        fi
    else
        # no Xinerama
        USE_XINERAMA=NO
        XINERAMA_LINK=none
    fi
    if test "$USE_XINERAMA" = "YES"; then
        { $as_echo "$as_me:$LINENO: result: yes, with $XINERAMA_LINK linking" >&5
$as_echo "yes, with $XINERAMA_LINK linking" >&6; }
        if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
  { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
$as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
  $as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xinerama.h usability" >&5
$as_echo_n "checking X11/extensions/Xinerama.h usability... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <X11/extensions/Xinerama.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:$LINENO: checking X11/extensions/Xinerama.h presence" >&5
$as_echo_n "checking X11/extensions/Xinerama.h presence... " >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/extensions/Xinerama.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: X11/extensions/Xinerama.h: in the future, the compiler will take precedence" >&2;}

    ;;
esac
{ $as_echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
$as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_cv_header_X11_extensions_Xinerama_h=$ac_header_preproc
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
$as_echo "$ac_cv_header_X11_extensions_Xinerama_h" >&6; }

fi
if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then
  :
else
  { { $as_echo "$as_me:$LINENO: error: Xinerama header not found." >&5
$as_echo "$as_me: error: Xinerama header not found." >&2;}
   { (exit 1); exit 1; }; }
fi


        XEXTLIBS=`$PKG_CONFIG --variable=libs xext`
        if test "x$XEXTLIB" = x; then
           XEXTLIBS="-L$XLIB -L$XINERAMALIB -lXext"
        fi
        XINERAMA_EXTRA_LIBS="$XEXTLIBS"
        if test "$_os" = "FreeBSD"; then
            XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -lXt"
        fi
        if test "$_os" = "Linux"; then
            XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -ldl"
        fi

{ $as_echo "$as_me:$LINENO: checking for XineramaIsActive in -lXinerama" >&5
$as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
if test "${ac_cv_lib_Xinerama_XineramaIsActive+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lXinerama $XINERAMA_EXTRA_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char XineramaIsActive ();
int
main ()
{
return XineramaIsActive ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_Xinerama_XineramaIsActive=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_Xinerama_XineramaIsActive=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
$as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = x""yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBXINERAMA 1
_ACEOF

  LIBS="-lXinerama $LIBS"

else
  { { $as_echo "$as_me:$LINENO: error: Xinerama not functional?" >&5
$as_echo "$as_me: error: Xinerama not functional?" >&2;}
   { (exit 1); exit 1; }; }
fi

    else
        { $as_echo "$as_me:$LINENO: result: no, libXinerama not found or wrong architecture." >&5
$as_echo "no, libXinerama not found or wrong architecture." >&6; }
    fi
else
    USE_XINERAMA=NO
    XINERAMA_LINK=none
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi





ENABLE_LIBRSVG=""
LIBRSVG_CFLAGS=""
LIBRSVG_LIBS=""

{ $as_echo "$as_me:$LINENO: checking what librsvg to use" >&5
$as_echo_n "checking what librsvg to use... " >&6; }

case "$enable_librsvg" in
no|disable)
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
    enable_librsvg=no
    ;;

""|yes|auto)
    if test $build_os = cygwin -o \
           $_os = Darwin; then
                        { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
        enable_librsvg=internal
    elif test  $_os = iOS -o $_os = Android; then
        { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
        enable_librsvg=no
    else
        if test "$with_system_libs" = yes; then
            { $as_echo "$as_me:$LINENO: result: system" >&5
$as_echo "system" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBRSVG" >&5
$as_echo_n "checking for LIBRSVG... " >&6; }

if test -n "$LIBRSVG_CFLAGS"; then
    pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBRSVG_LIBS"; then
    pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        else
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBRSVG_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (librsvg-2.0 >= 2.14) were not met:

$LIBRSVG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (librsvg-2.0 >= 2.14) were not met:

$LIBRSVG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
	LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
            enable_librsvg=system
        elif test "$with_system_libs" = no; then
            { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
            enable_librsvg=internal
        else
            { $as_echo "$as_me:$LINENO: result: checking further" >&5
$as_echo "checking further" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBRSVG" >&5
$as_echo_n "checking for LIBRSVG... " >&6; }

if test -n "$LIBRSVG_CFLAGS"; then
    pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBRSVG_LIBS"; then
    pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        else
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBRSVG_PKG_ERRORS" >&5

	{ $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
                :
elif test $pkg_failed = untried; then
	:
else
	LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
	LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
            if test -z "$LIBRSVG_PKG_ERRORS"; then
                enable_librsvg=system
            else
                enable_librsvg=internal
            fi
        fi
    fi
    ;;

internal)
    { $as_echo "$as_me:$LINENO: result: internal" >&5
$as_echo "internal" >&6; }
    ;;

system)
    if test $_os = WINNT -a "$WITH_MINGW" != yes; then
        { { $as_echo "$as_me:$LINENO: error: Must use internal librsvg when building with MSVC" >&5
$as_echo "$as_me: error: Must use internal librsvg when building with MSVC" >&2;}
   { (exit 1); exit 1; }; }
    fi
    { $as_echo "$as_me:$LINENO: result: system" >&5
$as_echo "system" >&6; }

pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for LIBRSVG" >&5
$as_echo_n "checking for LIBRSVG... " >&6; }

if test -n "$LIBRSVG_CFLAGS"; then
    pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBRSVG_LIBS"; then
    pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\"") >&5
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        else
	        LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBRSVG_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (librsvg-2.0 >= 2.14) were not met:

$LIBRSVG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (librsvg-2.0 >= 2.14) were not met:

$LIBRSVG_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBRSVG_CFLAGS
and LIBRSVG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
	LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi
    ;;

*)
    { { $as_echo "$as_me:$LINENO: error: Incorrect --enable-librsvg option" >&5
$as_echo "$as_me: error: Incorrect --enable-librsvg option" >&2;}
   { (exit 1); exit 1; }; }
    ;;
esac

case $enable_librsvg in
system)
    ENABLE_LIBRSVG=SYSTEM
    SYSTEM_LIBRSVG=YES
    ;;

internal)
    ENABLE_LIBRSVG=INTERNAL
    SYSTEM_LIBRSVG=NO
    BUILD_TYPE="$BUILD_TYPE LIBRSVG"
    ;;

no)
    ENABLE_LIBRSVG=NO
    SYSTEM_LIBRSVG=NO
    ;;

*)
    { { $as_echo "$as_me:$LINENO: error: Internal configure script error, invalid enable_librsvg value \"$enable_librsvg\"" >&5
$as_echo "$as_me: error: Internal configure script error, invalid enable_librsvg value \"$enable_librsvg\"" >&2;}
   { (exit 1); exit 1; }; }
    ;;
esac








SYSTEM_CAIRO=""

{ $as_echo "$as_me:$LINENO: checking whether to use the system cairo" >&5
$as_echo_n "checking whether to use the system cairo... " >&6; }

if test "$with_system_cairo" = "yes"; then
    SYSTEM_CAIRO=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }


pkg_failed=no
{ $as_echo "$as_me:$LINENO: checking for CAIRO" >&5
$as_echo_n "checking for CAIRO... " >&6; }

if test -n "$CAIRO_CFLAGS"; then
    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "cairo >= 1.0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$CAIRO_LIBS"; then
    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.0.2 \"") >&5
  ($PKG_CONFIG --exists --print-errors "cairo >= 1.0.2 ") 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.0.2 " 2>/dev/null`
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= 1.0.2 " 2>&1`
        else
	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= 1.0.2 " 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$CAIRO_PKG_ERRORS" >&5

	{ { $as_echo "$as_me:$LINENO: error: Package requirements (cairo >= 1.0.2 ) were not met:

$CAIRO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAIRO_CFLAGS
and CAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
$as_echo "$as_me: error: Package requirements (cairo >= 1.0.2 ) were not met:

$CAIRO_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAIRO_CFLAGS
and CAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&2;}
   { (exit 1); exit 1; }; }
elif test $pkg_failed = untried; then
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables CAIRO_CFLAGS
and CAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&5
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables CAIRO_CFLAGS
and CAIRO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }; }
else
	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
	:
fi

    if test "$test_xrender" = "yes"; then
        if test "$with_system_xextensions_headers" != "no"; then
            { $as_echo "$as_me:$LINENO: checking whether Xrender.h defines PictStandardA8" >&5
$as_echo_n "checking whether Xrender.h defines PictStandardA8... " >&6; }
            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

            cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <X11/extensions/Xrender.h>
int
main ()
{

#ifdef PictStandardA8
#else
      return fail;
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	{ { $as_echo "$as_me:$LINENO: error: no, X headers too old." >&5
$as_echo "$as_me: error: no, X headers too old." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

            ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

        fi
    fi
    MINGW_EXTERNAL_DLLS="$MINGW_EXTERNAL_DLLS libfontconfig-1.dll libfreetype-6.dll libpixman-1-0.dll libpng15-15.dll libcairo-2.dll"
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }

    if test $_os = Android; then
                        :
    elif test $_os = WINNT; then
                        if test "$ENABLE_LIBRSVG" != NO -o -z "$ENABLE_DIRECTX"; then
            BUILD_TYPE="$BUILD_TYPE CAIRO"
        fi
    else
        BUILD_TYPE="$BUILD_TYPE CAIRO"
    fi
fi







{ $as_echo "$as_me:$LINENO: checking whether to use the system gdk-pixbuf" >&5
$as_echo_n "checking whether to use the system gdk-pixbuf... " >&6; }


if test "$SYSTEM_LIBRSVG" = YES; then
    SYSTEM_GDKPIXBUF=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_GDKPIXBUF=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_GDKPIXBUF=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system GLib" >&5
$as_echo_n "checking whether to use the system GLib... " >&6; }


if test "$SYSTEM_LIBRSVG" = YES; then
    SYSTEM_GLIB=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_GLIB=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_GLIB=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system gettext runtime" >&5
$as_echo_n "checking whether to use the system gettext runtime... " >&6; }

if test "$with_system_gettext" = yes; then
    SYSTEM_GETTEXT=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_GETTEXT=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_GETTEXT=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system libcroco" >&5
$as_echo_n "checking whether to use the system libcroco... " >&6; }


if test "$SYSTEM_LIBRSVG" = YES; then
    SYSTEM_LIBCROCO=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_LIBCROCO=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_LIBCROCO=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system pango" >&5
$as_echo_n "checking whether to use the system pango... " >&6; }


if test "$SYSTEM_LIBRSVG" = YES; then
    SYSTEM_PANGO=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_PANGO=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_PANGO=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system libgsf" >&5
$as_echo_n "checking whether to use the system libgsf... " >&6; }


if test "$SYSTEM_LIBRSVG" = YES; then
    SYSTEM_LIBGSF=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_LIBGSF=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_LIBGSF=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system libpng" >&5
$as_echo_n "checking whether to use the system libpng... " >&6; }


if test "$with_system_libpng" = yes; then
    SYSTEM_LIBPNG=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_LIBPNG=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_LIBPNG=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi



{ $as_echo "$as_me:$LINENO: checking whether to use the system libjpeg" >&5
$as_echo_n "checking whether to use the system libjpeg... " >&6; }

if test "$SYSTEM_JPEG" == "YES"; then
    SYSTEM_LIBJPEG=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    case "$_os" in
    WINNT|Darwin|iOS|Android)
        SYSTEM_LIBJPEG=NO
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        ;;
    *)
        SYSTEM_LIBJPEG=YES
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        ;;
    esac
fi


if test "$SOLAR_JAVA" != ""; then
    { $as_echo "$as_me:$LINENO: checking whether to use specific JVM search path at runtime" >&5
$as_echo_n "checking whether to use specific JVM search path at runtime... " >&6; }
    if test -n "$with_jvm_path" && test "$with_jvm_path" != "no"; then
        { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
        if ! test -d "$with_jvm_path"; then
            { { $as_echo "$as_me:$LINENO: error: \"$with_jvm_path\" not a directory" >&5
$as_echo "$as_me: error: \"$with_jvm_path\" not a directory" >&2;}
   { (exit 1); exit 1; }; }
        fi
        if ! test -d "$with_jvm_path"jvm; then
            { { $as_echo "$as_me:$LINENO: error: \"$with_jvm_path\"jvm not found, point with_jvm_path to \/path/to/\jvm" >&5
$as_echo "$as_me: error: \"$with_jvm_path\"jvm not found, point with_jvm_path to \/path/to/\jvm" >&2;}
   { (exit 1); exit 1; }; }
        fi
        JVM_ONE_PATH_CHECK="$with_jvm_path"

    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
    fi
fi


if test "$SOLAR_JAVA" != ""; then
    ANT_HOME=; export ANT_HOME
    WITH_ANT_HOME=; export WITH_ANT_HOME
    if test -z "$with_ant_home"; then
        for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ANT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ANT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ANT=$ac_cv_path_ANT
if test -n "$ANT"; then
  { $as_echo "$as_me:$LINENO: result: $ANT" >&5
$as_echo "$ANT" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ANT" && break
done

    else
        if test "$_os" = "WINNT"; then
            with_ant_home=`cygpath -u "$with_ant_home"`
        fi
        for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ANT+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ANT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$with_ant_home/bin:$PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ANT=$ac_cv_path_ANT
if test -n "$ANT"; then
  { $as_echo "$as_me:$LINENO: result: $ANT" >&5
$as_echo "$ANT" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ANT" && break
done

        WITH_ANT_HOME=$with_ant_home
        ANT_HOME=$with_ant_home
    fi

    if test -z "$ANT"; then
        { { $as_echo "$as_me:$LINENO: error: Ant not found - Make sure it's in the path or use --with-ant-home" >&5
$as_echo "$as_me: error: Ant not found - Make sure it's in the path or use --with-ant-home" >&2;}
   { (exit 1); exit 1; }; }
    else
        # resolve relative or absolute symlink
        while test -h "$ANT"; do
            a_cwd=`pwd`
            a_basename=`basename "$ANT"`
            a_script=`ls -l "$ANT" | $SED "s/.*${a_basename} -> //g"`
            cd "`dirname "$ANT"`"
            cd "`dirname "$a_script"`"
            ANT="`pwd`"/"`basename "$a_script"`"
            cd "$a_cwd"
        done

        { $as_echo "$as_me:$LINENO: checking if $ANT works" >&5
$as_echo_n "checking if $ANT works... " >&6; }
        cat > conftest.java << EOF
        public class conftest {
            int testmethod(int a, int b) {
                    return a + b;
            }
        }
EOF

        cat > conftest.xml << EOF
        <project name="conftest" default="conftest">
        <target name="conftest">
            <javac srcdir="." includes="conftest.java">
            </javac>
        </target>
        </project>
EOF

        oldJAVA_HOME=$JAVA_HOME
        if test "$JAVACISGCJ" = "yes"; then
            JAVA_HOME=; export JAVA_HOME
            ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
        else
            ant_cmd="$ANT -buildfile conftest.xml 1>&2"
        fi
        { (eval echo "$as_me:$LINENO: \"$ant_cmd\"") >&5
  (eval $ant_cmd) 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        if test $? = 0 && test -f ./conftest.class ; then
            { $as_echo "$as_me:$LINENO: result: Ant works" >&5
$as_echo "Ant works" >&6; }
            if test -z "$WITH_ANT_HOME"; then
                ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
                if test -z "$ANT_HOME"; then
                    ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"`
                fi
            else
                ANT_HOME="$WITH_ANT_HOME"
            fi
        else
            echo "configure: Ant test failed" >&5
            cat conftest.java >&5
            cat conftest.xml >&5
            { $as_echo "$as_me:$LINENO: WARNING: Ant does not work - Some Java projects will not build!" >&5
$as_echo "$as_me: WARNING: Ant does not work - Some Java projects will not build!" >&2;}
            ANT_HOME=""
            echo "Ant does not work - Some Java projects will not build!" >>warn
        fi
        JAVA_HOME=$oldJAVA_HOME
        rm -f conftest* core core.* *.core
    fi
    if test -z "$ANT_HOME"; then
        ANT_HOME="NO_ANT_HOME"
    fi


        if test "$ANT_HOME" != "NO_ANT_HOME"; then
        { $as_echo "$as_me:$LINENO: checking Ant lib directory" >&5
$as_echo_n "checking Ant lib directory... " >&6; }
        if test -f $ANT_HOME/lib/ant.jar; then
            ANT_LIB="$ANT_HOME/lib"
        else
            if test -f $ANT_HOME/ant.jar; then
                ANT_LIB="$ANT_HOME"
            else
                if test -f /usr/share/java/ant.jar; then
                    ANT_LIB=/usr/share/java
                else
                    if test -f /usr/share/ant-core/lib/ant.jar; then
                        ANT_LIB=/usr/share/ant-core/lib
                    else
                        if test -f $ANT_HOME/lib/ant/ant.jar; then
                            ANT_LIB="$ANT_HOME/lib/ant"
                        else
                            if test -f /usr/share/lib/ant/ant.jar; then
                                ANT_LIB=/usr/share/lib/ant
                            else
                                { { $as_echo "$as_me:$LINENO: error: Ant libraries not found!" >&5
$as_echo "$as_me: error: Ant libraries not found!" >&2;}
   { (exit 1); exit 1; }; }
                            fi
                        fi
                    fi
                fi
            fi
        fi
        { $as_echo "$as_me:$LINENO: result: Ant lib directory found." >&5
$as_echo "Ant lib directory found." >&6; }
    fi


    ant_minver=1.6.0
    ant_minminor1=`echo $ant_minver | cut -d"." -f2`

    { $as_echo "$as_me:$LINENO: checking whether Ant is >= $ant_minver" >&5
$as_echo_n "checking whether Ant is >= $ant_minver... " >&6; }
    ant_version=`$ANT -version | $AWK '{ print $4; }'`
    ant_version_major=`echo $ant_version | cut -d. -f1`
    ant_version_minor=`echo $ant_version | cut -d. -f2`
    echo "configure: ant_version $ant_version " >&5
    echo "configure: ant_version_major $ant_version_major " >&5
    echo "configure: ant_version_minor $ant_version_minor " >&5
    if test "$ant_version_major" -ge "2"; then
        { $as_echo "$as_me:$LINENO: result: yes, $ant_version" >&5
$as_echo "yes, $ant_version" >&6; }
    elif test "$ant_version_major" = "1" && test "$ant_version_minor" -ge "$ant_minminor1"; then
        { $as_echo "$as_me:$LINENO: result: yes, $ant_version" >&5
$as_echo "yes, $ant_version" >&6; }
    else
        { { $as_echo "$as_me:$LINENO: error: no, you need at least Ant >= $ant_minver" >&5
$as_echo "$as_me: error: no, you need at least Ant >= $ant_minver" >&2;}
   { (exit 1); exit 1; }; }
    fi

    if test "$ENABLE_MEDIAWIKI" = "YES"; then
        { $as_echo "$as_me:$LINENO: checking whether Ant supports mapper type=\"regexp\"" >&5
$as_echo_n "checking whether Ant supports mapper type=\"regexp\"... " >&6; }
        rm -rf confdir
        mkdir confdir
        cat > conftest.java << EOF
            public class conftest {
                int testmethod(int a, int b) {
                    return a + b;
                }
            }
EOF

        cat > conftest.xml << EOF
            <project name="conftest" default="conftest">
            <target name="conftest" depends="copytest">
                <javac srcdir="." includes="conftest.java">
                </javac>
            </target>
            <target name="copytest">
                 <copy todir="confdir">
                 <fileset dir="confdir" includes="**/*.abc" casesensitive="yes"/>
                 <filterset/>
                 <mapper type="regexp" from="^(.*/\\)foo(/\\.*)" to="\1baa\2"/>
                 </copy>
            </target>
            </project>
EOF

        if test "$JAVACISGCJ" = "yes"; then
            JAVA_HOME=; export JAVA_HOME
            ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
        else
            ant_cmd="$ANT -buildfile conftest.xml 1>&2"
        fi
        { (eval echo "$as_me:$LINENO: \"$ant_cmd\"") >&5
  (eval $ant_cmd) 2>&5
  ac_status=$?
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        if test $? = 0 && test -f ./conftest.class ; then
            { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
            rm -rf confdir
        else
            echo "configure: Ant test failed" >&5
            cat conftest.java >&5
            cat conftest.xml >&5
            rm -rf confdir
            { { $as_echo "$as_me:$LINENO: error: no. Did you install ant-apache-regexp?" >&5
$as_echo "$as_me: error: no. Did you install ant-apache-regexp?" >&2;}
   { (exit 1); exit 1; }; }
        fi
    fi
    rm -f conftest* core core.* *.core
fi

OOO_JUNIT_JAR=
if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then
    { $as_echo "$as_me:$LINENO: checking for JUnit 4" >&5
$as_echo_n "checking for JUnit 4... " >&6; }
    if test "$with_junit" = "yes"; then
        if test -e /usr/share/java/junit4.jar; then
            OOO_JUNIT_JAR=/usr/share/java/junit4.jar
        else
           if test -e /usr/share/lib/java/junit.jar; then
              OOO_JUNIT_JAR=/usr/share/lib/java/junit.jar
           else
              OOO_JUNIT_JAR=/usr/share/java/junit.jar
           fi
        fi
    else
        OOO_JUNIT_JAR=$with_junit
    fi
    if test "$_os" = "WINNT"; then
        OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
    fi
    "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
        grep org/junit/Before.class > /dev/null 2>&5
    if test $? -eq 0; then
        # check if either class-path entry is available for hamcrest or
        # it's bundled
        if "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" |$GREP -q hamcrest || \
            "$UNZIP" -c "$OOO_JUNIT_JAR" META-INF/MANIFEST.MF |$GREP 'Class-Path:' | $GREP -q 'hamcrest'; then
            { $as_echo "$as_me:$LINENO: result: $OOO_JUNIT_JAR" >&5
$as_echo "$OOO_JUNIT_JAR" >&6; }
        else
            { { $as_echo "$as_me:$LINENO: error: your junit jar neither sets a classpath nor includes hamcrest; please
provide a full junit jar or use --without-junit" >&5
$as_echo "$as_me: error: your junit jar neither sets a classpath nor includes hamcrest; please
provide a full junit jar or use --without-junit" >&2;}
   { (exit 1); exit 1; }; }
        fi
    else
        { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
        { { $as_echo "$as_me:$LINENO: error: cannot find JUnit 4 jar; please install one in the default
location (/usr/share/java), specify its pathname via
--with-junit=..., or disable it via --without-junit" >&5
$as_echo "$as_me: error: cannot find JUnit 4 jar; please install one in the default
location (/usr/share/java), specify its pathname via
--with-junit=..., or disable it via --without-junit" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test $OOO_JUNIT_JAR != ""; then
	BUILD_TYPE="$BUILD_TYPE QADEVOOO"
    fi
fi


{ $as_echo "$as_me:$LINENO: checking for product version" >&5
$as_echo_n "checking for product version... " >&6; }
PRODUCTVERSION=3.5
{ $as_echo "$as_me:$LINENO: result: $PRODUCTVERSION" >&5
$as_echo "$PRODUCTVERSION" >&6; }


{ $as_echo "$as_me:$LINENO: checking which languages to be built" >&5
$as_echo_n "checking which languages to be built... " >&6; }
# get list of all languages
# generate shell variable from completelangiso= from solenv/inc/langlist.mk
# the sed command does the following:
#   + if a line ends with a backslash, append the next line to it
#   + adds " on the beginning of the value (after =)
#   + adds " at the end of the value
#   + removes en-US; we want to put it on the beginning
#   + prints just the section starting with 'completelangiso=' and ending with the " at the end of line
eval $(sed -e :a -e '/\\$/N; s/\\\n//; ta' -n -e 's/=/="/;s/\([^\\]\)$/\1"/;s/en-US//;/^completelangiso/p' solenv/inc/langlist.mk)
ALL_LANGS="en-US $completelangiso"
# check the configured localizations
WITH_LANG="$with_lang"
if test -z "$WITH_LANG"; then
    { $as_echo "$as_me:$LINENO: result: en-US" >&5
$as_echo "en-US" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: $WITH_LANG" >&5
$as_echo "$WITH_LANG" >&6; }
    GIT_REPO_NAMES="$GIT_REPO_NAMES translations"
fi
# check that the list is valid
for lang in $WITH_LANG ; do
    test "$lang" = "ALL" && continue;
    # need to check for the exact string, so add space before and after the list of all languages
    for vl in $ALL_LANGS ; do
        if test "$vl" = "$lang" ; then
           break;
        fi
    done
    if test "$vl" != "$lang" ; then
        { { $as_echo "$as_me:$LINENO: error: invalid language: $lang; supported languages are: $ALL_LANGS" >&5
$as_echo "$as_me: error: invalid language: $lang; supported languages are: $ALL_LANGS" >&2;}
   { (exit 1); exit 1; }; }
    fi
done
# list with substituted ALL
WITH_LANG_LIST=`echo $WITH_LANG | sed "s/ALL/$ALL_LANGS/"`
# this variable is used only by bin/distro-install-* helper scripts
# they need a real list of languages
test -z "$WITH_LANG_LIST" && WITH_LANG_LIST="en-US"





if test -n "${GIT_LINK_SRC}"; then
    for repo in ${GIT_REPO_NAMES}; do
        if ! test -d "${GIT_LINK_SRC}"/${repo}; then
            { { $as_echo "$as_me:$LINENO: error: linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}" >&5
$as_echo "$as_me: error: linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}" >&2;}
   { (exit 1); exit 1; }; }
        fi
    done
fi


{ $as_echo "$as_me:$LINENO: checking for custom 'intro' progress bar color" >&5
$as_echo_n "checking for custom 'intro' progress bar color... " >&6; }
PROGRESSBARCOLOR=
if test -z "$with_intro_progressbar_color" ; then
   PROGRESSBARCOLOR="126,170,23"
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   PROGRESSBARCOLOR="$with_intro_progressbar_color"
   { $as_echo "$as_me:$LINENO: result: $PROGRESSBARCOLOR" >&5
$as_echo "$PROGRESSBARCOLOR" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for custom 'intro' progress bar size" >&5
$as_echo_n "checking for custom 'intro' progress bar size... " >&6; }
PROGRESSSIZE=
if test -z "$with_intro_progressbar_size" ; then
   PROGRESSSIZE="319,10"
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   PROGRESSSIZE="$with_intro_progressbar_size"
   { $as_echo "$as_me:$LINENO: result: $PROGRESSSIZE" >&5
$as_echo "$PROGRESSSIZE" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for custom 'intro' progress bar position" >&5
$as_echo_n "checking for custom 'intro' progress bar position... " >&6; }
PROGRESSPOSITION=
if test -z "$with_intro_progressbar_position" ; then
   PROGRESSPOSITION="164,225"
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   PROGRESSPOSITION="$with_intro_progressbar_position"
   { $as_echo "$as_me:$LINENO: result: $PROGRESSPOSITION" >&5
$as_echo "$PROGRESSPOSITION" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for custom 'intro' progress bar frame color" >&5
$as_echo_n "checking for custom 'intro' progress bar frame color... " >&6; }
PROGRESSFRAMECOLOR=
if test -z "$with_intro_progressbar_frame_color" ; then
   PROGRESSFRAMECOLOR="207,208,211"
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   PROGRESSFRAMECOLOR="$with_intro_progressbar_frame_color"
   { $as_echo "$as_me:$LINENO: result: $PROGRESSFRAMECOLOR" >&5
$as_echo "$PROGRESSFRAMECOLOR" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for alternative branding images directory" >&5
$as_echo_n "checking for alternative branding images directory... " >&6; }
INTRO_BITMAP=
ABOUT_BITMAP=
STARTCENTER_LEFT_BITMAP=
STARTCENTER_RIGHT_BITMAP=
STARTCENTER_RTL_LEFT_BITMAP=
STARTCENTER_RTL_RIGHT_BITMAP=
STARTCENTER_SPACE_BITMAP=
if test -z "$with_branding" -o "$with_branding" = "no" ; then
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
    INTRO_BITMAP="$with_branding/intro.png"
    ABOUT_BITMAP="$with_branding/about.png"
    STARTCENTER_LEFT_BITMAP="$with_branding/backing_left.png"
    STARTCENTER_RIGHT_BITMAP="$with_branding/backing_right.png"
    STARTCENTER_RTL_LEFT_BITMAP="$with_branding/backing_rtl_left.png"
    STARTCENTER_RTL_RIGHT_BITMAP="$with_branding/backing_rtl_right.png"
    STARTCENTER_SPACE_BITMAP="$with_branding/backing_space.png"
    for i in $INTRO_BITMAP \
             $ABOUT_BITMAP \
             $STARTCENTER_LEFT_BITMAP \
             $STARTCENTER_RIGHT_BITMAP \
             $STARTCENTER_RTL_LEFT_BITMAP \
             $STARTCENTER_RTL_RIGHT_BITMAP \
             $STARTCENTER_SPACE_BITMAP; do
        if test ! -f $i; then
            { $as_echo "$as_me:$LINENO: WARNING: Required file $i does not exist!" >&5
$as_echo "$as_me: WARNING: Required file $i does not exist!" >&2;}
        fi
    done
    { $as_echo "$as_me:$LINENO: result: $with_branding" >&5
$as_echo "$with_branding" >&6; }
fi

{ $as_echo "$as_me:$LINENO: checking for yet another 'intro' bitmap" >&5
$as_echo_n "checking for yet another 'intro' bitmap... " >&6; }
if test -z "$with_intro_bitmap" -o "$with_intro_bitmap" = "no" ; then
    if test "$with_intro_bitmap" = "no" ; then
        INTRO_BITMAP=
    fi
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
    case "$with_intro_bitmap" in
    *.png) INTRO_BITMAP="$with_intro_bitmap" ;;
    *)     { $as_echo "$as_me:$LINENO: WARNING: Intro bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Intro bitmap should be a .png file!" >&2;} ;;
    esac
    { $as_echo "$as_me:$LINENO: result: $INTRO_BITMAP" >&5
$as_echo "$INTRO_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'about' bitmap" >&5
$as_echo_n "checking for yet another 'about' bitmap... " >&6; }
if test -z "$with_about_bitmap" -o "$with_about_bitmap" = "no" ; then
    if test "$with_about_bitmap" = "no" ; then
        ABOUT_BITMAP=
    fi
    { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_about_bitmap" in
   *.png) ABOUT_BITMAP="$with_about_bitmap" ;;
   *)     { $as_echo "$as_me:$LINENO: WARNING: About bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: About bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $ABOUT_BITMAP" >&5
$as_echo "$ABOUT_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'start center left' bitmap" >&5
$as_echo_n "checking for yet another 'start center left' bitmap... " >&6; }
if test -z "$with_startcenter_left_bitmap" -o "$with_startcenter_left_bitmap" = "no" ; then
   if test "$with_startcenter_left_bitmap" = "no" ; then
      STARTCENTER_LEFT_BITMAP=
   fi
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_startcenter_left_bitmap" in
      *.png) STARTCENTER_LEFT_BITMAP="$with_startcenter_left_bitmap" ;;
      *)     { $as_echo "$as_me:$LINENO: WARNING: Startcenter left bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Startcenter left bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $STARTCENTER_LEFT_BITMAP" >&5
$as_echo "$STARTCENTER_LEFT_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'start center right' bitmap" >&5
$as_echo_n "checking for yet another 'start center right' bitmap... " >&6; }
if test -z "$with_startcenter_right_bitmap" -o "$with_startcenter_right_bitmap" = "no" ; then
   if test "$with_startcenter_right_bitmap" = "no" ; then
      STARTCENTER_RIGHT_BITMAP=
   fi
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_startcenter_right_bitmap" in
      *.png) STARTCENTER_RIGHT_BITMAP="$with_startcenter_right_bitmap" ;;
      *)     { $as_echo "$as_me:$LINENO: WARNING: Startcenter right bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Startcenter right bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $STARTCENTER_RIGHT_BITMAP" >&5
$as_echo "$STARTCENTER_RIGHT_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'start center rtl left' bitmap" >&5
$as_echo_n "checking for yet another 'start center rtl left' bitmap... " >&6; }
if test -z "$with_startcenter_rtl_left_bitmap" -o "$with_startcenter_rtl_left_bitmap" = "no" ; then
   if test "$with_startcenter_rtl_left_bitmap" = "no" ; then
      STARTCENTER_RTL_LEFT_BITMAP=
   fi
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_startcenter_rtl_left_bitmap" in
      *.png) STARTCENTER_RTL_LEFT_BITMAP="$with_startcenter_rtl_left_bitmap" ;;
      *)     { $as_echo "$as_me:$LINENO: WARNING: Startcenter rtl left bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Startcenter rtl left bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $STARTCENTER_RTL_LEFT_BITMAP" >&5
$as_echo "$STARTCENTER_RTL_LEFT_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'start center rtl right' bitmap" >&5
$as_echo_n "checking for yet another 'start center rtl right' bitmap... " >&6; }
if test -z "$with_startcenter_rtl_right_bitmap" -o "$with_startcenter_rtl_right_bitmap" = "no" ; then
   if test "$with_startcenter_rtl_right_bitmap" = "no" ; then
      STARTCENTER_RTL_RIGHT_BITMAP=
   fi
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_startcenter_rtl_right_bitmap" in
      *.png) STARTCENTER_RTL_RIGHT_BITMAP="$with_startcenter_rtl_right_bitmap" ;;
      *)     { $as_echo "$as_me:$LINENO: WARNING: Startcenter rtl right bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Startcenter rtl right bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $STARTCENTER_RTL_RIGHT_BITMAP" >&5
$as_echo "$STARTCENTER_RTL_RIGHT_BITMAP" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for yet another 'start center space' bitmap" >&5
$as_echo_n "checking for yet another 'start center space' bitmap... " >&6; }
if test -z "$with_startcenter_space_bitmap" -o "$with_startcenter_space_bitmap" = "no" ; then
   if test "$with_startcenter_space_bitmap" = "no" ; then
      STARTCENTER_SPACE_BITMAP=
   fi
   { $as_echo "$as_me:$LINENO: result: none" >&5
$as_echo "none" >&6; }
else
   case "$with_startcenter_space_bitmap" in
      *.png) STARTCENTER_SPACE_BITMAP="$with_startcenter_space_bitmap" ;;
      *)     { $as_echo "$as_me:$LINENO: WARNING: Startcenter left bitmap should be a .png file!" >&5
$as_echo "$as_me: WARNING: Startcenter left bitmap should be a .png file!" >&2;} ;;
   esac
   { $as_echo "$as_me:$LINENO: result: $STARTCENTER_SPACE_BITMAP" >&5
$as_echo "$STARTCENTER_SPACE_BITMAP" >&6; }
fi


OOO_VENDOR=
{ $as_echo "$as_me:$LINENO: checking for vendor" >&5
$as_echo_n "checking for vendor... " >&6; }
if test -z "$with_vendor" -o "$with_vendor" = "no" ; then
    { $as_echo "$as_me:$LINENO: result: not set" >&5
$as_echo "not set" >&6; }
else
    OOO_VENDOR="$with_vendor"
    { $as_echo "$as_me:$LINENO: result: $OOO_VENDOR" >&5
$as_echo "$OOO_VENDOR" >&6; }
fi


UNIXWRAPPERNAME=
{ $as_echo "$as_me:$LINENO: checking for UNIX wrapper name" >&5
$as_echo_n "checking for UNIX wrapper name... " >&6; }
if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no"  -o "$with_unix_wrapper" = "yes" ; then
    { $as_echo "$as_me:$LINENO: result: not set" >&5
$as_echo "not set" >&6; }
else
    UNIXWRAPPERNAME="$with_unix_wrapper"
    { $as_echo "$as_me:$LINENO: result: $UNIXWRAPPERNAME" >&5
$as_echo "$UNIXWRAPPERNAME" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to install the compat oo* wrappers" >&5
$as_echo_n "checking whether to install the compat oo* wrappers... " >&6; }
if test "$with_compat_oowrappers" = "yes" ; then
    WITH_COMPAT_OOWRAPPERS=YES
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    WITH_COMPAT_OOWRAPPERS=
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for product name" >&5
$as_echo_n "checking for product name... " >&6; }
PRODUCTNAME=LibreOffice
{ $as_echo "$as_me:$LINENO: result: $PRODUCTNAME" >&5
$as_echo "$PRODUCTNAME" >&6; }


INSTALLDIRNAME=`echo LibreOffice | tr '[:upper:]' '[:lower:]'`
{ $as_echo "$as_me:$LINENO: checking for install dirname" >&5
$as_echo_n "checking for install dirname... " >&6; }
if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes" ; then
   INSTALLDIRNAME="$with_install_dirname"
fi
{ $as_echo "$as_me:$LINENO: result: $INSTALLDIRNAME" >&5
$as_echo "$INSTALLDIRNAME" >&6; }


{ $as_echo "$as_me:$LINENO: checking for prefix" >&5
$as_echo_n "checking for prefix... " >&6; }
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
PREFIXDIR="$prefix"
{ $as_echo "$as_me:$LINENO: result: $PREFIXDIR" >&5
$as_echo "$PREFIXDIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking for libdir" >&5
$as_echo_n "checking for libdir... " >&6; }
LIBDIR=$(eval echo $(eval echo $libdir))
{ $as_echo "$as_me:$LINENO: result: $LIBDIR" >&5
$as_echo "$LIBDIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking for data dir" >&5
$as_echo_n "checking for data dir... " >&6; }
DATADIR=$(eval echo $(eval echo $datadir))
{ $as_echo "$as_me:$LINENO: result: $DATADIR" >&5
$as_echo "$DATADIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking for man dir" >&5
$as_echo_n "checking for man dir... " >&6; }
MANDIR=$(eval echo $(eval echo $mandir))
{ $as_echo "$as_me:$LINENO: result: $MANDIR" >&5
$as_echo "$MANDIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking for doc dir" >&5
$as_echo_n "checking for doc dir... " >&6; }
DOCDIR=$(eval echo $(eval echo $docdir))
{ $as_echo "$as_me:$LINENO: result: $DOCDIR" >&5
$as_echo "$DOCDIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking for install dir" >&5
$as_echo_n "checking for install dir... " >&6; }
INSTALLDIR="$LIBDIR/$INSTALLDIRNAME"
{ $as_echo "$as_me:$LINENO: result: $INSTALLDIR" >&5
$as_echo "$INSTALLDIR" >&6; }


{ $as_echo "$as_me:$LINENO: checking whether to statically link to Gtk" >&5
$as_echo_n "checking whether to statically link to Gtk... " >&6; }
if test -n "$enable_static_gtk" && test "$enable_static_gtk" != "no"; then
    ENABLE_STATIC_GTK="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    ENABLE_STATIC_GTK="FALSE"
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


# ===================================================================
# De- or increase default verbosity of build process
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking build verbosity" >&5
$as_echo_n "checking build verbosity... " >&6; }
if test -n "$enable_verbose"; then
    if test "$enable_verbose" = "yes"; then
        VERBOSE="TRUE"
        { $as_echo "$as_me:$LINENO: result: high" >&5
$as_echo "high" >&6; }
    fi
    if test "$enable_verbose" = "no"; then
        VERBOSE="FALSE"
        { $as_echo "$as_me:$LINENO: result: low" >&5
$as_echo "low" >&6; }
    fi
else
    { $as_echo "$as_me:$LINENO: result: not set" >&5
$as_echo "not set" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking whether to use zenity during build" >&5
$as_echo_n "checking whether to use zenity during build... " >&6; }
if test "$enable_zenity" = "yes"; then
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
    for ac_prog in zenity
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_path_ZNTY+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  case $ZNTY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ZNTY="$ZNTY" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
    ac_cv_path_ZNTY="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
IFS=$as_save_IFS

  ;;
esac
fi
ZNTY=$ac_cv_path_ZNTY
if test -n "$ZNTY"; then
  { $as_echo "$as_me:$LINENO: result: $ZNTY" >&5
$as_echo "$ZNTY" >&6; }
else
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ZNTY" && break
done

    if test -z "$ZNTY"; then
        ENABLE_ZENITY=FALSE
    else
        ENABLE_ZENITY=TRUE
    fi
else
    ENABLE_ZENITY=FALSE
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi



{ $as_echo "$as_me:$LINENO: checking whether to enable dependency tracking" >&5
$as_echo_n "checking whether to enable dependency tracking... " >&6; }
if test "$enable_dependency_tracking" = "no"; then
    nodep=TRUE
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for number of processors to use" >&5
$as_echo_n "checking for number of processors to use... " >&6; }
if test -n "$with_num_cpus"; then
    BUILD_NCPUS=$with_num_cpus
else
    case `uname -s` in

    Darwin|FreeBSD|NetBSD|OpenBSD)
        BUILD_NCPUS=`sysctl -n hw.ncpu`
        ;;

    Linux)
	BUILD_NCPUS=`getconf _NPROCESSORS_ONLN`
	;;
    # what else than above does profit here *and* has /proc?
    *)
        BUILD_NCPUS=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
        ;;
    esac

    # If we hit the catch-all case, but /proc/cpuinfo doesn't exist or has an
    # unexpected format, 'wc -l' will have returned 0.
    if test "$BUILD_NCPUS" -eq 0; then
        BUILD_NCPUS=1
    fi
fi
{ $as_echo "$as_me:$LINENO: result: $BUILD_NCPUS" >&5
$as_echo "$BUILD_NCPUS" >&6; }


# ===================================================================
# Creating bigger shared library to link against
# ===================================================================
{ $as_echo "$as_me:$LINENO: checking whether to create a big library for better performance" >&5
$as_echo_n "checking whether to create a big library for better performance... " >&6; }
MERGELIBS=
if test "$enable_mergelibs" = "yes"; then
    MERGELIBS="TRUE"
    { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
else
    { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
fi


{ $as_echo "$as_me:$LINENO: checking for maximum of jobs per processor" >&5
$as_echo_n "checking for maximum of jobs per processor... " >&6; }
BUILD_MAX_JOBS="1"
if test "z$with_max_jobs" != "z"; then
    BUILD_MAX_JOBS="$with_max_jobs"
else
    if test "$enable_icecream" = "yes" ; then
        BUILD_MAX_JOBS="10"
    fi
fi
{ $as_echo "$as_me:$LINENO: result: $BUILD_MAX_JOBS" >&5
$as_echo "$BUILD_MAX_JOBS" >&6; }


# =====================================================================
# determine the parallelism for gnu make
# =====================================================================
{ $as_echo "$as_me:$LINENO: checking for maximum parallelism for gmake" >&5
$as_echo_n "checking for maximum parallelism for gmake... " >&6; }
if test $BUILD_MAX_JOBS -gt $BUILD_NCPUS ; then
    GMAKE_PARALLELISM="$BUILD_MAX_JOBS"
else
    GMAKE_PARALLELISM="$BUILD_NCPUS"
fi
GMAKE_MODULE_PARALLELISM="$BUILD_MAX_JOBS"
if test "$no_parallelism_make" = "YES" ; then
    if test -z "$with_num_cpus"; then
        GMAKE_PARALLELISM="1";
        if test $GMAKE_MODULE_PARALLELISM -gt 1 ; then
            { $as_echo "$as_me:$LINENO: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&5
$as_echo "$as_me: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&2;}
            if test -z "$with_num_cpus"; then
                echo "gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >> warn
            fi
            GMAKE_MODULE_PARALLELISM="1"
        fi
    else
        GMAKE_PARALLELISM="$BUILD_NCPUS";
        echo "make 3.81 is prone to crashes with parallelism > 1. Since --with-num-cpus was explicitly given, it is honored, but do not complain when make segfault on you." >> warn
    fi
fi

# GMAKE_PARALLELISM is used in tail_build
# GMAKE_MODULE_PARALLELISM is used when building individual gbuildified module
{ $as_echo "$as_me:$LINENO: result: per module:$GMAKE_MODULE_PARALLELISM, for tail_build:$GMAKE_PARALLELISM" >&5
$as_echo "per module:$GMAKE_MODULE_PARALLELISM, for tail_build:$GMAKE_PARALLELISM" >&6; }



echo "setting up the build environment variables..."

if test -z "$COMPATH"; then
    { { $as_echo "$as_me:$LINENO: error: No compiler found." >&5
$as_echo "$as_me: error: No compiler found." >&2;}
   { (exit 1); exit 1; }; }
fi


{ $as_echo "$as_me:$LINENO: checking solver path" >&5
$as_echo_n "checking solver path... " >&6; }
if test -z "$with_local_solver"; then
    LOCAL_SOLVER="DEFAULT"
    { $as_echo "$as_me:$LINENO: result: default" >&5
$as_echo "default" >&6; }
else
    LOCAL_SOLVER=$with_local_solver
    { $as_echo "$as_me:$LINENO: result: $with_local_solver" >&5
$as_echo "$with_local_solver" >&6; }
fi




if test "$WITH_MINGW" != "yes" ; then
    MINGW_EXTERNAL_DLLS=
else
    mingw_dlldir=`$CC -print-sysroot`/mingw/bin
    for DLL in $MINGW_EXTERNAL_DLLS ; do
        { $as_echo "$as_me:$LINENO: checking for $DLL" >&5
$as_echo_n "checking for $DLL... " >&6; }
        if ! test -f "$mingw_dlldir/$DLL" ; then
            { { $as_echo "$as_me:$LINENO: error: Could not find $DLL, install the appropriate mingw32-<package>, not only mingw32-<package>-devel." >&5
$as_echo "$as_me: error: Could not find $DLL, install the appropriate mingw32-<package>, not only mingw32-<package>-devel." >&2;}
   { (exit 1); exit 1; }; }
        fi
        { $as_echo "$as_me:$LINENO: result: $mingw_dlldir/$DLL" >&5
$as_echo "$mingw_dlldir/$DLL" >&6; }
    done
fi


# make sure config.guess is +x; we execute config.guess, so it has to be so;
chmod +x ./config.guess

echo "setting up the post_download check script"
autoconf post_download.in > post_download
chmod +x post_download

# Generate a configuration timestamp we can use for deps
if test -f set_soenv; then
    mv -f set_soenv set_soenv.last
else
    echo > set_soenv.last
fi

ac_config_files="$ac_config_files ooo.lst set_soenv bin/repo-list desktop/scripts/soffice.sh build_env"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) $as_unset $ac_var ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes (double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \).
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    test "x$cache_file" != "x/dev/null" &&
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
    cat confcache >$cache_file
  else
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
#
# If the first sed substitution is executed (which looks for macros that
# take arguments), then branch to the quote section.  Otherwise,
# look for a macro that doesn't take arguments.
ac_script='
:mline
/\\$/{
 N
 s,\\\n,,
 b mline
}
t clear
:clear
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
t quote
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
t quote
b any
:quote
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
s/\[/\\&/g
s/\]/\\&/g
s/\$/$$/g
H
:any
${
	g
	s/^\n//
	s/\n/ /g
	p
}
'
DEFS=`sed -n "$ac_script" confdefs.h`


ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs




: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi

# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# CDPATH.
$as_unset CDPATH



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}


if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -p'
  fi
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
	test -d "$1/.";
      else
	case $1 in
	-*)set "./$1";;
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1

# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by LibreOffice $as_me 3.5, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac



cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTION]... [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE

Configuration files:
$config_files

Report bugs to <bug-autoconf@gnu.org>."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
LibreOffice config.status 3.5
configured by $0, generated by GNU Autoconf 2.63,
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

Copyright (C) 2008 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h |  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { $as_echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "ooo.lst") CONFIG_FILES="$CONFIG_FILES ooo.lst" ;;
    "set_soenv") CONFIG_FILES="$CONFIG_FILES set_soenv" ;;
    "bin/repo-list") CONFIG_FILES="$CONFIG_FILES bin/repo-list" ;;
    "desktop/scripts/soffice.sh") CONFIG_FILES="$CONFIG_FILES desktop/scripts/soffice.sh" ;;
    "build_env") CONFIG_FILES="$CONFIG_FILES build_env" ;;

  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr='
'
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
   { (exit 1); exit 1; }; }
_ACEOF

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"


eval set X "  :F $CONFIG_FILES      "
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      ac_file_inputs="$ac_file_inputs '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin" \
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; } ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=

ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
    s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}

  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out" && rm -f "$tmp/out";;
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  esac \
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
$as_echo "$as_me: error: could not create $ac_file" >&2;}
   { (exit 1); exit 1; }; }
 ;;



  esac

done # for ac_tag


{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


# make sure this is executable
chmod +x desktop/scripts/soffice.sh

# touch the config timestamp file set_soenv.stamp
if test ! -f set_soenv.stamp; then
    echo > set_soenv.stamp
elif diff set_soenv set_soenv.last >/dev/null 2>&1; then
    echo "Configuration unchanged - avoiding scp2 stamp update"
else
    echo > set_soenv.stamp
fi

chmod +x set_soenv

./set_soenv

