links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 7e88b0b69768bcfaea93891038213c58e02956e7
Parent: 44208ea2066a491576f749f03a06d85e8e0b2518
Author: opask
Date:   Sat,  7 Jul 2018 20:24:23 -0600

add build script, remove autoconf

Diffstat:
AMakefile | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dacconfig.h | 227-------------------------------------------------------------------------------
Daclocal.m4 | 228-------------------------------------------------------------------------------
Dconfig-vms.h | 1064-------------------------------------------------------------------------------
Dconfig.guess | 976-------------------------------------------------------------------------------
Aconfig.h | 692+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dconfig.h.in | 1078-------------------------------------------------------------------------------
Aconfig.mk | 14++++++++++++++
Dconfig.sub | 958-------------------------------------------------------------------------------
Dconfigure | 11267-------------------------------------------------------------------------------
Dconfigure.in | 1396-------------------------------------------------------------------------------
Dmk-dos | 40----------------------------------------
Dmk-dos83.cmd | 4----
Dmk-release-os2 | 37-------------------------------------
Dmk-release-win | 60------------------------------------------------------------
Dmkinstalldirs | 38--------------------------------------
Dpkg-config.m4 | 57---------------------------------------------------------
Drebuild | 151------------------------------------------------------------------------------
18 files changed, 780 insertions(+), 17581 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,74 @@ +include config.mk + +SRC = \ + af_unix.c\ + auth.c\ + bfu.c\ + block.c\ + bookmark.c\ + cache.c\ + charsets.c\ + compress.c\ + connect.c\ + cookies.c\ + data.c\ + default.c\ + dns.c\ + drivers.c\ + error.c\ + file.c\ + finger.c\ + fn_impl.c\ + ftp.c\ + html.c\ + html_gr.c\ + html_r.c\ + html_tbl.c\ + http.c\ + https.c\ + img.c\ + jsint.c\ + kbd.c\ + language.c\ + listedit.c\ + lru.c\ + mailto.c\ + main.c\ + memory.c\ + menu.c\ + objreq.c\ + os_dep.c\ + sched.c\ + select.c\ + session.c\ + string.c\ + suffix.c\ + terminal.c\ + types.c\ + url.c\ + view.c +OBJ = $(SRC:.c=.o) + +XSRC = \ + dip.c\ + dither.c\ + font_inc.c\ + gif.c\ + imgcache.c\ + jpeg.c\ + png.c\ + view_gr.c\ + x.c\ + xbm.c +XOBJ = $(XSRC:.c=.o) + +all: linksg + +links: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +linksg: $(OBJ) $(XOBJ) + $(CC) -o links $(OBJ) $(XOBJ) $(LDFLAGS) + +clean: + rm -f *.o links linksg diff --git a/acconfig.h b/acconfig.h @@ -1,227 +0,0 @@ - -@BOTTOM@ - -/* */ -#undef VERSION - -/* */ -#undef HAVE_OPENMP - -/* */ -#undef HAVE_LONG_LONG - -/* */ -#undef HAVE_POINTER_COMPARISON_BUG - -/* */ -#undef HAVE_MAXINT_CONVERSION_BUG - -/* */ -#undef HAVE_STDLIB_H_X - -/* */ -#undef HAVE_SOCKLEN_T - -/* */ -#undef HAVE_VOLATILE - -/* */ -#undef HAVE_RESTRICT - -/* */ -#undef HAVE___RESTRICT - -/* */ -#undef HAVE_ERRNO - -/* */ -#undef C_BIG_ENDIAN - -/* */ -#undef C_LITTLE_ENDIAN - -/* */ -#undef RENAME_OVER_EXISTING_FILES - -/* */ -#undef HAVE_STRLEN - -/* */ -#undef HAVE_STRCPY - -/* */ -#undef HAVE_STRNCPY - -/* */ -#undef HAVE_STRCHR - -/* */ -#undef HAVE_STRRCHR - -/* */ -#undef HAVE_STRCMP - -/* */ -#undef HAVE_STRNCMP - -/* */ -#undef HAVE_STRCSPN - -/* */ -#undef HAVE_STRSPN - -/* */ -#undef HAVE_STRSTR - -/* */ -#undef HAVE_MEMCMP - -/* */ -#undef HAVE_MEMCHR - -/* */ -#undef HAVE_MEMCPY - -/* */ -#undef HAVE_MEMMOVE - -/* */ -#undef HAVE_MEMSET - -/* */ -#undef HAVE_MEMMEM - -/* */ -#undef HAVE_STRERROR - -/* */ -#undef HAVE_SIGFILLSET - -/* */ -#undef HAVE_SIGSETJMP - -/* */ -#undef HAVE___BUILTIN_ADD_OVERFLOW - -/* */ -#undef HAVE___BUILTIN_CLZ - -/* */ -#undef DEBUGLEVEL - -/* */ -#undef HAVE_CLOCK_GETTIME - -/* */ -#undef HAVE_GETHOSTBYNAME - -/* */ -#undef HAVE_GETHOSTBYNAME_BUG - -/* */ -#undef SUPPORT_IPV6 - -/* */ -#undef SUPPORT_IPV6_SCOPE - -/* */ -#undef HAVE_POW - -/* */ -#undef HAVE_POWF - -/* */ -#undef JS - -/* */ -#undef CHCEME_FLEXI_LIBU - -/* */ -#undef HAVE_PCRE - -/* */ -#undef HAVE_REGEX - -/* */ -#undef ENABLE_UTF8 - -/* */ -#undef HAVE_BEGINTHREAD - -/* */ -#undef HAVE_PTHREADS - -/* */ -#undef X2 - -/* */ -#undef HAVE_XSETLOCALE - -/* */ -#undef HAVE_SSL - -/* */ -#undef HAVE_OPENSSL - -/* */ -#undef HAVE_NSS - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_1 - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_2 - -/* */ -#undef HAVE_ZLIB - -/* */ -#undef HAVE_BROTLI - -/* */ -#undef HAVE_BZIP2 - -/* */ -#undef HAVE_LZMA - -/* */ -#undef HAVE_LZIP - -/* */ -#undef G - -/* */ -#undef GRDRV_SVGALIB - -/* */ -#undef GRDRV_FB - -/* */ -#undef GRDRV_DIRECTFB - -/* */ -#undef GRDRV_X - -/* */ -#undef GRDRV_SDL - -/* */ -#undef GRDRV_PMSHELL - -/* */ -#undef GRDRV_ATHEOS - -/* */ -#undef GRDRV_GRX - -/* Jpeg by Clock */ -#undef HAVE_JPEG - -/* Tiff by Brain */ -#undef HAVE_TIFF - -/* SVG */ -#undef HAVE_SVG - -/* Gpm_Event has wdx and wdy */ -#undef HAVE_WDX_WDY diff --git a/aclocal.m4 b/aclocal.m4 @@ -1,228 +0,0 @@ -dnl aclocal.m4 generated automatically by aclocal 1.4-p6 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -VERSION=[$2] -AC_SUBST(VERSION) -dnl test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi -ifelse([$3],, -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) -AC_REQUIRE([AM_SANITY_CHECK]) -AC_REQUIRE([AC_ARG_PROGRAM]) -dnl FIXME This is truly gross. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) -AC_REQUIRE([AC_PROG_MAKE_SET])]) - -# Copyright 2002 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.4-p6])]) - -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "[$]2" = conftestfile - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) - -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) -dnl The program must properly implement --version. -AC_DEFUN([AM_MISSING_PROG], -[AC_MSG_CHECKING(for working $2) -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) -else - $1="$3/missing $2" - AC_MSG_RESULT(missing) -fi -AC_SUBST($1)]) - -# Like AC_CONFIG_HEADER, but automatically create stamp file. - -AC_DEFUN([AM_CONFIG_HEADER], -[AC_PREREQ([2.12]) -AC_CONFIG_HEADER([$1]) -dnl When config.status generates a header, we must update the stamp-h file. -dnl This file resides in the same directory as the config header -dnl that is generated. We must strip everything past the first ":", -dnl and everything past the last "/". -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, -<<am_indx=1 -for am_file in <<$1>>; do - case " <<$>>CONFIG_HEADERS " in - *" <<$>>am_file "*<<)>> - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx - ;; - esac - am_indx=`expr "<<$>>am_indx" + 1` -done<<>>dnl>>) -changequote([,]))]) - - -dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) -dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page -dnl also defines GSTUFF_PKG_ERRORS on error -AC_DEFUN(PKG_CHECK_MODULES, [ - succeeded=no - - if test -z "$PKG_CONFIG"; then - AC_PATH_PROG(PKG_CONFIG, pkg-config, no) - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - AC_MSG_CHECKING(for $2) - - if $PKG_CONFIG --exists "$2" ; then - AC_MSG_RESULT(yes) - succeeded=yes - - AC_MSG_CHECKING($1_CFLAGS) - $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` - AC_MSG_RESULT($$1_CFLAGS) - - AC_MSG_CHECKING($1_LIBS) - $1_LIBS=`$PKG_CONFIG --libs "$2"` - AC_MSG_RESULT($$1_LIBS) - else - $1_CFLAGS="" - $1_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` - ifelse([$4], ,echo $$1_PKG_ERRORS,) - fi - - AC_SUBST($1_CFLAGS) - AC_SUBST($1_LIBS) - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - ifelse([$3], , :, [$3]) - else - ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) - fi -]) - - - -# Define a conditional. - -AC_DEFUN([AM_CONDITIONAL], -[AC_SUBST($1_TRUE) -AC_SUBST($1_FALSE) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi]) - diff --git a/config-vms.h b/config-vms.h @@ -1,1064 +0,0 @@ -/* config.h. Generated automatically by configure. */ -/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */ - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ - -/* Define to the type of elements in the array set by `getgroups'. - Usually this is either `int' or `gid_t'. */ -/* #undef GETGROUPS_T */ - -/* Define if the `getloadavg' function needs to be run setuid or setgid. */ -/* #undef GETLOADAVG_PRIVILEGED */ - -/* Define if the `getpgrp' function takes no argument. */ -/* #undef GETPGRP_VOID */ - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if you have the strftime function. */ -#define HAVE_STRFTIME 1 - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H 1 - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ - -/* Define to `int' if <sys/types.h> doesn't define. */ -/* #undef pid_t */ - -/* Define as the return type of signal handlers (int or void). */ -#define RETSIGTYPE void - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -/* #undef size_t */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define if you can safely include both <sys/time.h> and <time.h>. */ -#define TIME_WITH_SYS_TIME 1 - -/* Define if your <sys/time.h> declares struct tm. */ -/* #undef TM_IN_SYS_TIME */ - -/* The number of bytes in a unsigned. */ -#define SIZEOF_UNSIGNED 4 - -/* The number of bytes in a unsigned long. */ -#define SIZEOF_UNSIGNED_LONG 4 - -/* The number of bytes in a unsigned long long. */ -#define SIZEOF_UNSIGNED_LONG_LONG 8 - -/* The number of bytes in a unsigned short. */ -#define SIZEOF_UNSIGNED_SHORT 2 - -/* Define if you have the ASN1_STRING_get0_data function. */ -/* #undef HAVE_ASN1_STRING_GET0_DATA */ - -/* Define if you have the ASN1_STRING_to_UTF8 function. */ -/* #undef HAVE_ASN1_STRING_TO_UTF8 */ - -/* Define if you have the DirectFBInit function. */ -/* #undef HAVE_DIRECTFBINIT */ - -/* Define if you have the Gpm_GetLibVersion function. */ -/* #undef HAVE_GPM_GETLIBVERSION */ - -/* Define if you have the MouOpen function. */ -/* #undef HAVE_MOUOPEN */ - -/* Define if you have the OPENSSL_cleanup function. */ -/* #undef HAVE_OPENSSL_CLEANUP */ - -/* Define if you have the OPENSSL_init_ssl function. */ -/* #undef HAVE_OPENSSL_INIT_SSL */ - -/* Define if you have the RAND_add function. */ -/* #undef HAVE_RAND_ADD */ - -/* Define if you have the RAND_egd function. */ -/* #undef HAVE_RAND_EGD */ - -/* Define if you have the RAND_file_name function. */ -/* #undef HAVE_RAND_FILE_NAME */ - -/* Define if you have the RAND_load_file function. */ -/* #undef HAVE_RAND_LOAD_FILE */ - -/* Define if you have the RAND_write_file function. */ -/* #undef HAVE_RAND_WRITE_FILE */ - -/* Define if you have the SSL_SESSION_is_resumable function. */ -/* #undef HAVE_SSL_SESSION_IS_RESUMABLE */ - -/* Define if you have the SSL_get1_session function. */ -/* #undef HAVE_SSL_GET1_SESSION */ - -/* Define if you have the SSL_load_error_strings function. */ -/* #undef HAVE_SSL_LOAD_ERROR_STRINGS */ - -/* Define if you have the X509_check_host function. */ -/* #undef HAVE_X509_CHECK_HOST */ - -/* Define if you have the X509_check_ip function. */ -/* #undef HAVE_X509_CHECK_IP */ - -/* Define if you have the XCloseIM function. */ -/* #undef HAVE_XCLOSEIM */ - -/* Define if you have the XCreateIC function. */ -/* #undef HAVE_XCREATEIC */ - -/* Define if you have the XDestroyIC function. */ -/* #undef HAVE_XDESTROYIC */ - -/* Define if you have the XOpenDisplay function. */ -/* #undef HAVE_XOPENDISPLAY */ - -/* Define if you have the XOpenIM function. */ -/* #undef HAVE_XOPENIM */ - -/* Define if you have the XSupportsLocale function. */ -/* #undef HAVE_XSUPPORTSLOCALE */ - -/* Define if you have the XmbTextListToTextProperty function. */ -/* #undef HAVE_XMBTEXTLISTTOTEXTPROPERTY */ - -/* Define if you have the Xutf8LookupString function. */ -/* #undef HAVE_XUTF8LOOKUPSTRING */ - -/* Define if you have the XwcLookupString function. */ -/* #undef HAVE_XWCLOOKUPSTRING */ - -/* Define if you have the __strtoll function. */ -/* #undef HAVE___STRTOLL */ - -/* Define if you have the _heapmin function. */ -/* #undef HAVE__HEAPMIN */ - -/* Define if you have the _read_kbd function. */ -/* #undef HAVE__READ_KBD */ - -/* Define if you have the _ucreate function. */ -/* #undef HAVE__UCREATE */ - -/* Define if you have the _udefault function. */ -/* #undef HAVE__UDEFAULT */ - -/* Define if you have the _udestroy function. */ -/* #undef HAVE__UDESTROY */ - -/* Define if you have the _uopen function. */ -/* #undef HAVE__UOPEN */ - -/* Define if you have the bcmp function. */ -#define HAVE_BCMP 1 - -/* Define if you have the bcopy function. */ -#define HAVE_BCOPY 1 - -/* Define if you have the bzero function. */ -#define HAVE_BZERO 1 - -/* Define if you have the calloc function. */ -#define HAVE_CALLOC 1 - -/* Define if you have the cfmakeraw function. */ -/* #undef HAVE_CFMAKERAW */ - -/* Define if you have the chmod function. */ -#define HAVE_CHMOD 1 - -/* Define if you have the clock_gettime function. */ -/* #undef HAVE_CLOCK_GETTIME */ - -/* Define if you have the cygwin_conv_path function. */ -/* #undef HAVE_CYGWIN_CONV_PATH */ - -/* Define if you have the cygwin_conv_to_full_win32_path function. */ -/* #undef HAVE_CYGWIN_CONV_TO_FULL_WIN32_PATH */ - -/* Define if you have the dirfd function. */ -/* #undef HAVE_DIRFD */ - -/* Define if you have the event_base_free function. */ -/* #undef HAVE_EVENT_BASE_FREE */ - -/* Define if you have the event_base_get_method function. */ -/* #undef HAVE_EVENT_BASE_GET_METHOD */ - -/* Define if you have the event_base_new function. */ -/* #undef HAVE_EVENT_BASE_NEW */ - -/* Define if you have the event_base_set function. */ -/* #undef HAVE_EVENT_BASE_SET */ - -/* Define if you have the event_config_set_flag function. */ -/* #undef HAVE_EVENT_CONFIG_SET_FLAG */ - -/* Define if you have the event_get_method function. */ -/* #undef HAVE_EVENT_GET_METHOD */ - -/* Define if you have the event_get_struct_event_size function. */ -/* #undef HAVE_EVENT_GET_STRUCT_EVENT_SIZE */ - -/* Define if you have the event_get_version function. */ -/* #undef HAVE_EVENT_GET_VERSION */ - -/* Define if you have the event_reinit function. */ -/* #undef HAVE_EVENT_REINIT */ - -/* Define if you have the fallocate function. */ -/* #undef HAVE_FALLOCATE */ - -/* Define if you have the freeaddrinfo function. */ -#define HAVE_FREEADDRINFO 1 - -/* Define if you have the gai_strerror function. */ -#define HAVE_GAI_STRERROR 1 - -/* Define if you have the getaddrinfo function. */ -#define HAVE_GETADDRINFO 1 - -/* Define if you have the getcwd function. */ -#define HAVE_GETCWD 1 - -/* Define if you have the getgrgid function. */ -#define HAVE_GETGRGID 1 - -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE 1 - -/* Define if you have the getpid function. */ -#define HAVE_GETPID 1 - -/* Define if you have the getpwuid function. */ -#define HAVE_GETPWUID 1 - -/* Define if you have the getrlimit function. */ -/* #undef HAVE_GETRLIMIT */ - -/* Define if you have the gettimeofday function. */ -#define HAVE_GETTIMEOFDAY 1 - -/* Define if you have the herror function. */ -#define HAVE_HERROR 1 - -/* Define if you have the inet_ntop function. */ -#define HAVE_INET_NTOP 1 - -/* Define if you have the inet_pton function. */ -#define HAVE_INET_PTON 1 - -/* Define if you have the kqueue function. */ -/* #undef HAVE_KQUEUE */ - -/* Define if you have the malloc_trim function. */ -/* #undef HAVE_MALLOC_TRIM */ - -/* Define if you have the mallopt function. */ -/* #undef HAVE_MALLOPT */ - -/* Define if you have the memchr function. */ -#define HAVE_MEMCHR 1 - -/* Define if you have the memcmp function. */ -#define HAVE_MEMCMP 1 - -/* Define if you have the memcpy function. */ -#define HAVE_MEMCPY 1 - -/* Define if you have the memmem function. */ -/* #undef HAVE_MEMMEM */ - -/* Define if you have the memmove function. */ -#define HAVE_MEMMOVE 1 - -/* Define if you have the memset function. */ -#define HAVE_MEMSET 1 - -/* Define if you have the mktime function. */ -#define HAVE_MKTIME 1 - -/* Define if you have the nl_langinfo function. */ -#define HAVE_NL_LANGINFO 1 - -/* Define if you have the png_create_info_struct function. */ -/* #undef HAVE_PNG_CREATE_INFO_STRUCT */ - -/* Define if you have the png_get_bit_depth function. */ -/* #undef HAVE_PNG_GET_BIT_DEPTH */ - -/* Define if you have the png_get_color_type function. */ -/* #undef HAVE_PNG_GET_COLOR_TYPE */ - -/* Define if you have the png_get_gAMA function. */ -/* #undef HAVE_PNG_GET_GAMA */ - -/* Define if you have the png_get_image_height function. */ -/* #undef HAVE_PNG_GET_IMAGE_HEIGHT */ - -/* Define if you have the png_get_image_width function. */ -/* #undef HAVE_PNG_GET_IMAGE_WIDTH */ - -/* Define if you have the png_get_libpng_ver function. */ -/* #undef HAVE_PNG_GET_LIBPNG_VER */ - -/* Define if you have the png_get_sRGB function. */ -/* #undef HAVE_PNG_GET_SRGB */ - -/* Define if you have the png_get_valid function. */ -/* #undef HAVE_PNG_GET_VALID */ - -/* Define if you have the png_set_rgb_to_gray function. */ -/* #undef HAVE_PNG_SET_RGB_TO_GRAY */ - -/* Define if you have the png_set_strip_alpha function. */ -/* #undef HAVE_PNG_SET_STRIP_ALPHA */ - -/* Define if you have the poll function. */ -/* #undef HAVE_POLL */ - -/* Define if you have the popen function. */ -#define HAVE_POPEN 1 - -/* Define if you have the posix_fallocate function. */ -/* #undef HAVE_POSIX_FALLOCATE */ - -/* Define if you have the pthread_sigmask function. */ -/* #undef HAVE_PTHREAD_SIGMASK */ - -/* Define if you have the raise function. */ -#define HAVE_RAISE 1 - -/* Define if you have the resume_thread function. */ -/* #undef HAVE_RESUME_THREAD */ - -/* Define if you have the rsvg_handle_render_cairo function. */ -/* #undef HAVE_RSVG_HANDLE_RENDER_CAIRO */ - -/* Define if you have the select function. */ -#define HAVE_SELECT 1 - -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE 1 - -/* Define if you have the setpgid function. */ -#define HAVE_SETPGID 1 - -/* Define if you have the setrlimit function. */ -/* #undef HAVE_SETRLIMIT */ - -/* Define if you have the setsid function. */ -/* #undef HAVE_SETSID */ - -/* Define if you have the sigaction function. */ -#define HAVE_SIGACTION 1 - -/* Define if you have the sigblock function. */ -#define HAVE_SIGBLOCK 1 - -/* Define if you have the sigdelset function. */ -#define HAVE_SIGDELSET 1 - -/* Define if you have the sigprocmask function. */ -#define HAVE_SIGPROCMASK 1 - -/* Define if you have the sigsetmask function. */ -#define HAVE_SIGSETMASK 1 - -/* Define if you have the snprintf function. */ -#define HAVE_SNPRINTF 1 - -/* Define if you have the spawn_thread function. */ -/* #undef HAVE_SPAWN_THREAD */ - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR 1 - -/* Define if you have the strcmp function. */ -#define HAVE_STRCMP 1 - -/* Define if you have the strcpy function. */ -#define HAVE_STRCPY 1 - -/* Define if you have the strcspn function. */ -#define HAVE_STRCSPN 1 - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP 1 - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strlen function. */ -#define HAVE_STRLEN 1 - -/* Define if you have the strmode function. */ -/* #undef HAVE_STRMODE */ - -/* Define if you have the strncmp function. */ -#define HAVE_STRNCMP 1 - -/* Define if you have the strncpy function. */ -#define HAVE_STRNCPY 1 - -/* Define if you have the strptime function. */ -#define HAVE_STRPTIME 1 - -/* Define if you have the strrchr function. */ -#define HAVE_STRRCHR 1 - -/* Define if you have the strspn function. */ -#define HAVE_STRSPN 1 - -/* Define if you have the strstr function. */ -#define HAVE_STRSTR 1 - -/* Define if you have the strtod function. */ -#define HAVE_STRTOD 1 - -/* Define if you have the strtoimax function. */ -/* #undef HAVE_STRTOIMAX */ - -/* Define if you have the strtol function. */ -#define HAVE_STRTOL 1 - -/* Define if you have the strtoll function. */ -#define HAVE_STRTOLL 1 - -/* Define if you have the strtoq function. */ -#define HAVE_STRTOQ 1 - -/* Define if you have the strtoul function. */ -#define HAVE_STRTOUL 1 - -/* Define if you have the tdelete function. */ -/* #undef HAVE_TDELETE */ - -/* Define if you have the tempnam function. */ -#define HAVE_TEMPNAM 1 - -/* Define if you have the tfind function. */ -/* #undef HAVE_TFIND */ - -/* Define if you have the tsearch function. */ -/* #undef HAVE_TSEARCH */ - -/* Define if you have the uname function. */ -#define HAVE_UNAME 1 - -/* Define if you have the unixpath2win function. */ -/* #undef HAVE_UNIXPATH2WIN */ - -/* Define if you have the utime function. */ -#define HAVE_UTIME 1 - -/* Define if you have the utimes function. */ -#define HAVE_UTIMES 1 - -/* Define if you have the uwin_path function. */ -/* #undef HAVE_UWIN_PATH */ - -/* Define if you have the winpath2unix function. */ -/* #undef HAVE_WINPATH2UNIX */ - -/* Define if you have the <X11/X.h> header file. */ -/* #undef HAVE_X11_X_H */ - -/* Define if you have the <X11/Xatom.h> header file. */ -/* #undef HAVE_X11_XATOM_H */ - -/* Define if you have the <X11/Xlib.h> header file. */ -/* #undef HAVE_X11_XLIB_H */ - -/* Define if you have the <X11/Xlocale.h> header file. */ -/* #undef HAVE_X11_XLOCALE_H */ - -/* Define if you have the <X11/Xutil.h> header file. */ -/* #undef HAVE_X11_XUTIL_H */ - -/* Define if you have the <X11/keysymdef.h> header file. */ -/* #undef HAVE_X11_KEYSYMDEF_H */ - -/* Define if you have the <alloca.h> header file. */ -/* #undef HAVE_ALLOCA_H */ - -/* Define if you have the <arpa/inet.h> header file. */ -#define HAVE_ARPA_INET_H 1 - -/* Define if you have the <atheos/threads.h> header file. */ -/* #undef HAVE_ATHEOS_THREADS_H */ - -/* Define if you have the <brotli/decode.h> header file. */ -/* #undef HAVE_BROTLI_DECODE_H */ - -/* Define if you have the <bsd/string.h> header file. */ -/* #undef HAVE_BSD_STRING_H */ - -/* Define if you have the <bzlib.h> header file. */ -/* #undef HAVE_BZLIB_H */ - -/* Define if you have the <cairo.h> header file. */ -/* #undef HAVE_CAIRO_H */ - -/* Define if you have the <cygwin/process.h> header file. */ -/* #undef HAVE_CYGWIN_PROCESS_H */ - -/* Define if you have the <cygwin/version.h> header file. */ -/* #undef HAVE_CYGWIN_VERSION_H */ - -/* Define if you have the <directfb.h> header file. */ -/* #undef HAVE_DIRECTFB_H */ - -/* Define if you have the <dirent.h> header file. */ -#define HAVE_DIRENT_H 1 - -/* Define if you have the <ev-event.h> header file. */ -/* #undef HAVE_EV_EVENT_H */ - -/* Define if you have the <event.h> header file. */ -/* #undef HAVE_EVENT_H */ - -/* Define if you have the <fcntl.h> header file. */ -#define HAVE_FCNTL_H 1 - -/* Define if you have the <gpm.h> header file. */ -/* #undef HAVE_GPM_H */ - -/* Define if you have the <grp.h> header file. */ -#define HAVE_GRP_H 1 - -/* Define if you have the <grx20.h> header file. */ -/* #undef HAVE_GRX20_H */ - -/* Define if you have the <gui/bitmap.h> header file. */ -/* #undef HAVE_GUI_BITMAP_H */ - -/* Define if you have the <gui/desktop.h> header file. */ -/* #undef HAVE_GUI_DESKTOP_H */ - -/* Define if you have the <gui/view.h> header file. */ -/* #undef HAVE_GUI_VIEW_H */ - -/* Define if you have the <gui/window.h> header file. */ -/* #undef HAVE_GUI_WINDOW_H */ - -/* Define if you have the <ieee.h> header file. */ -/* #undef HAVE_IEEE_H */ - -/* Define if you have the <interix/interix.h> header file. */ -/* #undef HAVE_INTERIX_INTERIX_H */ - -/* Define if you have the <inttypes.h> header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define if you have the <io.h> header file. */ -/* #undef HAVE_IO_H */ - -/* Define if you have the <jpeglib.h> header file. */ -/* #undef HAVE_JPEGLIB_H */ - -/* Define if you have the <langinfo.h> header file. */ -#define HAVE_LANGINFO_H 1 - -/* Define if you have the <libpng/png.h> header file. */ -/* #undef HAVE_LIBPNG_PNG_H */ - -/* Define if you have the <librsvg/librsvg-features.h> header file. */ -/* #undef HAVE_LIBRSVG_LIBRSVG_FEATURES_H */ - -/* Define if you have the <librsvg/rsvg-cairo.h> header file. */ -/* #undef HAVE_LIBRSVG_RSVG_CAIRO_H */ - -/* Define if you have the <librsvg/rsvg.h> header file. */ -/* #undef HAVE_LIBRSVG_RSVG_H */ - -/* Define if you have the <limits.h> header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the <linux/falloc.h> header file. */ -/* #undef HAVE_LINUX_FALLOC_H */ - -/* Define if you have the <linux/fb.h> header file. */ -/* #undef HAVE_LINUX_FB_H */ - -/* Define if you have the <linux/kd.h> header file. */ -/* #undef HAVE_LINUX_KD_H */ - -/* Define if you have the <linux/vt.h> header file. */ -/* #undef HAVE_LINUX_VT_H */ - -/* Define if you have the <locale.h> header file. */ -#define HAVE_LOCALE_H 1 - -/* Define if you have the <lzlib.h> header file. */ -/* #undef HAVE_LZLIB_H */ - -/* Define if you have the <lzma.h> header file. */ -/* #undef HAVE_LZMA_H */ - -/* Define if you have the <malloc.h> header file. */ -/* #undef HAVE_MALLOC_H */ - -/* Define if you have the <math.h> header file. */ -#define HAVE_MATH_H 1 - -/* Define if you have the <ndir.h> header file. */ -/* #undef HAVE_NDIR_H */ - -/* Define if you have the <net/socket.h> header file. */ -#define HAVE_NET_SOCKET_H 1 - -/* Define if you have the <netinet/in_system.h> header file. */ -/* #undef HAVE_NETINET_IN_SYSTEM_H */ - -/* Define if you have the <netinet/in_systm.h> header file. */ -/* #undef HAVE_NETINET_IN_SYSTM_H */ - -/* Define if you have the <netinet/ip.h> header file. */ -/* #undef HAVE_NETINET_IP_H */ - -/* Define if you have the <openssl/x509v3.h> header file. */ -#define HAVE_OPENSSL_X509V3_H 1 - -/* Define if you have the <png.h> header file. */ -/* #undef HAVE_PNG_H */ - -/* Define if you have the <poll.h> header file. */ -/* #undef HAVE_POLL_H */ - -/* Define if you have the <process.h> header file. */ -/* #undef HAVE_PROCESS_H */ - -/* Define if you have the <pwd.h> header file. */ -#define HAVE_PWD_H 1 - -/* Define if you have the <search.h> header file. */ -/* #undef HAVE_SEARCH_H */ - -/* Define if you have the <setjmp.h> header file. */ -#define HAVE_SETJMP_H 1 - -/* Define if you have the <sgtty.h> header file. */ -/* #undef HAVE_SGTTY_H */ - -/* Define if you have the <stdarg.h> header file. */ -#define HAVE_STDARG_H 1 - -/* Define if you have the <string.h> header file. */ -#define HAVE_STRING_H 1 - -/* Define if you have the <strings.h> header file. */ -#define HAVE_STRINGS_H 1 - -/* Define if you have the <sys/cygwin.h> header file. */ -/* #undef HAVE_SYS_CYGWIN_H */ - -/* Define if you have the <sys/dir.h> header file. */ -/* #undef HAVE_SYS_DIR_H */ - -/* Define if you have the <sys/file.h> header file. */ -#define HAVE_SYS_FILE_H 1 - -/* Define if you have the <sys/fmutex.h> header file. */ -/* #undef HAVE_SYS_FMUTEX_H */ - -/* Define if you have the <sys/ioctl.h> header file. */ -#define HAVE_SYS_IOCTL_H 1 - -/* Define if you have the <sys/mman.h> header file. */ -/* #undef HAVE_SYS_MMAN_H */ - -/* Define if you have the <sys/ndir.h> header file. */ -/* #undef HAVE_SYS_NDIR_H */ - -/* Define if you have the <sys/resource.h> header file. */ -#define HAVE_SYS_RESOURCE_H 1 - -/* Define if you have the <sys/select.h> header file. */ -/* #undef HAVE_SYS_SELECT_H */ - -/* Define if you have the <sys/time.h> header file. */ -#define HAVE_SYS_TIME_H 1 - -/* Define if you have the <sys/un.h> header file. */ -/* #undef HAVE_SYS_UN_H */ - -/* Define if you have the <sys/utsname.h> header file. */ -#define HAVE_SYS_UTSNAME_H 1 - -/* Define if you have the <termios.h> header file. */ -/* #undef HAVE_TERMIOS_H */ - -/* Define if you have the <tiffio.h> header file. */ -/* #undef HAVE_TIFFIO_H */ - -/* Define if you have the <time.h> header file. */ -#define HAVE_TIME_H 1 - -/* Define if you have the <umalloc.h> header file. */ -/* #undef HAVE_UMALLOC_H */ - -/* Define if you have the <unistd.h> header file. */ -#define HAVE_UNISTD_H 1 - -/* Define if you have the <unixlib.h> header file. */ -#define HAVE_UNIXLIB_H 1 - -/* Define if you have the <util/application.h> header file. */ -/* #undef HAVE_UTIL_APPLICATION_H */ - -/* Define if you have the <util/locker.h> header file. */ -/* #undef HAVE_UTIL_LOCKER_H */ - -/* Define if you have the <utime.h> header file. */ -#define HAVE_UTIME_H 1 - -/* Define if you have the <uwin.h> header file. */ -/* #undef HAVE_UWIN_H */ - -/* Define if you have the <values.h> header file. */ -/* #undef HAVE_VALUES_H */ - -/* Define if you have the <windowsx.h> header file. */ -/* #undef HAVE_WINDOWSX_H */ - -/* Define if you have the <zlib.h> header file. */ -/* #undef HAVE_ZLIB_H */ - -/* Define if you have the Xau library (-lXau). */ -/* #undef HAVE_LIBXAU */ - -/* Define if you have the Xdmcp library (-lXdmcp). */ -/* #undef HAVE_LIBXDMCP */ - -/* Define if you have the atheos library (-latheos). */ -/* #undef HAVE_LIBATHEOS */ - -/* Define if you have the brotlidec library (-lbrotlidec). */ -/* #undef HAVE_LIBBROTLIDEC */ - -/* Define if you have the bsd library (-lbsd). */ -/* #undef HAVE_LIBBSD */ - -/* Define if you have the bz2 library (-lbz2). */ -/* #undef HAVE_LIBBZ2 */ - -/* Define if you have the dl library (-ldl). */ -/* #undef HAVE_LIBDL */ - -/* Define if you have the ev library (-lev). */ -/* #undef HAVE_LIBEV */ - -/* Define if you have the event library (-levent). */ -/* #undef HAVE_LIBEVENT */ - -/* Define if you have the fontconfig library (-lfontconfig). */ -/* #undef HAVE_LIBFONTCONFIG */ - -/* Define if you have the gpm library (-lgpm). */ -/* #undef HAVE_LIBGPM */ - -/* Define if you have the grx20 library (-lgrx20). */ -/* #undef HAVE_LIBGRX20 */ - -/* Define if you have the jbig library (-ljbig). */ -/* #undef HAVE_LIBJBIG */ - -/* Define if you have the jpeg library (-ljpeg). */ -/* #undef HAVE_LIBJPEG */ - -/* Define if you have the lz library (-llz). */ -/* #undef HAVE_LIBLZ */ - -/* Define if you have the lzma library (-llzma). */ -/* #undef HAVE_LIBLZMA */ - -/* Define if you have the m library (-lm). */ -/* #undef HAVE_LIBM */ - -/* Define if you have the network library (-lnetwork). */ -/* #undef HAVE_LIBNETWORK */ - -/* Define if you have the nsl library (-lnsl). */ -/* #undef HAVE_LIBNSL */ - -/* Define if you have the png library (-lpng). */ -/* #undef HAVE_LIBPNG */ - -/* Define if you have the pthread library (-lpthread). */ -/* #undef HAVE_LIBPTHREAD */ - -/* Define if you have the rsvg-2 library (-lrsvg-2). */ -/* #undef HAVE_LIBRSVG_2 */ - -/* Define if you have the rt library (-lrt). */ -/* #undef HAVE_LIBRT */ - -/* Define if you have the socket library (-lsocket). */ -/* #undef HAVE_LIBSOCKET */ - -/* Define if you have the stdc++ library (-lstdc++). */ -/* #undef HAVE_LIBSTDC__ */ - -/* Define if you have the syllable library (-lsyllable). */ -/* #undef HAVE_LIBSYLLABLE */ - -/* Define if you have the tiff library (-ltiff). */ -/* #undef HAVE_LIBTIFF */ - -/* Define if you have the watt library (-lwatt). */ -/* #undef HAVE_LIBWATT */ - -/* Define if you have the x86 library (-lx86). */ -/* #undef HAVE_LIBX86 */ - -/* Define if you have the xcb library (-lxcb). */ -/* #undef HAVE_LIBXCB */ - -/* Define if you have the xcb-xlib library (-lxcb-xlib). */ -/* #undef HAVE_LIBXCB_XLIB */ - -/* Define if you have the z library (-lz). */ -/* #undef HAVE_LIBZ */ - -/* Name of package */ -#define PACKAGE "links" - -/* Version number of package */ -#define VERSION "2.16" - - -/* */ -#define VERSION "2.16" - -/* */ -/* #undef HAVE_OPENMP */ - -/* */ -#define HAVE_LONG_LONG 1 - -/* */ -/* #undef HAVE_POINTER_COMPARISON_BUG */ - -/* */ -/* #undef HAVE_MAXINT_CONVERSION_BUG */ - -/* */ -#define HAVE_STDLIB_H_X 1 - -/* */ -/* #undef HAVE_SOCKLEN_T */ - -/* */ -#define HAVE_VOLATILE 1 - -/* */ -/* #undef HAVE_RESTRICT */ - -/* */ -/* #undef HAVE___RESTRICT */ - -/* */ -#define HAVE_ERRNO 1 - -/* */ -/* #undef C_BIG_ENDIAN */ - -/* */ -#define C_LITTLE_ENDIAN 1 - -/* */ -#define RENAME_OVER_EXISTING_FILES 1 - -/* */ -#define HAVE_STRLEN 1 - -/* */ -#define HAVE_STRCPY 1 - -/* */ -#define HAVE_STRCHR 1 - -/* */ -#define HAVE_STRRCHR 1 - -/* */ -#define HAVE_STRCMP 1 - -/* */ -#define HAVE_STRNCMP 1 - -/* */ -#define HAVE_STRCSPN 1 - -/* */ -#define HAVE_STRSPN 1 - -/* */ -#define HAVE_STRSTR 1 - -/* */ -#define HAVE_MEMCMP 1 - -/* */ -#define HAVE_MEMCHR 1 - -/* */ -#define HAVE_MEMCPY 1 - -/* */ -#define HAVE_MEMMOVE 1 - -/* */ -#define HAVE_MEMSET 1 - -/* */ -/* #undef HAVE_MEMMEM */ - -/* */ -#define HAVE_STRERROR 1 - -/* */ -#define HAVE_SIGFILLSET 1 - -/* */ -#define HAVE_SIGSETJMP 1 - -/* */ -/* #undef HAVE___BUILTIN_ADD_OVERFLOW */ - -/* */ -/* #undef HAVE___BUILTIN_CLZ */ - -/* */ -#define DEBUGLEVEL 0 - -/* */ -/* #undef HAVE_CLOCK_GETTIME */ - -/* */ -#define HAVE_GETHOSTBYNAME 1 - -/* */ -/* #undef HAVE_GETHOSTBYNAME_BUG */ - -/* */ -#define SUPPORT_IPV6 1 - -/* */ -#define SUPPORT_IPV6_SCOPE 1 - -/* */ -/* #undef HAVE_POW */ - -/* */ -/* #undef HAVE_POWF */ - -/* */ -/* #undef JS */ - -/* */ -/* #undef CHCEME_FLEXI_LIBU */ - -/* */ -/* #undef HAVE_PCRE */ - -/* */ -/* #undef HAVE_REGEX */ - -/* */ -#define ENABLE_UTF8 1 - -/* */ -/* #undef HAVE_BEGINTHREAD */ - -/* */ -/* #undef HAVE_PTHREADS */ - -/* */ -/* #undef X2 */ - -/* */ -/* #undef HAVE_XSETLOCALE */ - -/* */ -/* #undef HAVE_SSL */ - -/* */ -/* #undef HAVE_OPENSSL */ - -/* */ -/* #undef HAVE_NSS */ - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_1 - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_2 - -/* */ -/* #undef HAVE_ZLIB */ - -/* */ -/* #undef HAVE_BROTLI */ - -/* */ -/* #undef HAVE_BZIP2 */ - -/* */ -/* #undef HAVE_LZMA */ - -/* */ -/* #undef HAVE_LZIP */ - -/* */ -/* #undef G */ - -/* */ -/* #undef GRDRV_SVGALIB */ - -/* */ -/* #undef GRDRV_FB */ - -/* */ -/* #undef GRDRV_DIRECTFB */ - -/* */ -/* #undef GRDRV_X */ - -/* */ -/* #undef GRDRV_SDL */ - -/* */ -/* #undef GRDRV_PMSHELL */ - -/* */ -/* #undef GRDRV_ATHEOS */ - -/* */ -/* #undef GRDRV_GRX */ - -/* Jpeg by Clock */ -/* #undef HAVE_JPEG */ - -/* Tiff by Brain */ -/* #undef HAVE_TIFF */ - -/* SVG */ -/* #undef HAVE_SVG */ - -/* Gpm_Event has wdx and wdy */ -/* #undef HAVE_WDX_WDY */ diff --git a/config.guess b/config.guess @@ -1,976 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. -# -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Written by Per Bothner <bothner@cygnus.com>. -# The master version of this file is at the FSF in /home/gd/gnu/lib. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit system type (host/target name). -# -# Only a few systems have been added to this list; please add others -# (but try to keep the structure clean). -# - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -dummy=dummy-$$ -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:OS/2:*:*) - echo "i386-pc-os2_emx" - exit 0;; - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - cat <<EOF >$dummy.s - .globl main - .ent main -main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - ${CC-cc} $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-cbm-sysv4 - exit 0;; - amiga:NetBSD:*:*) - echo m68k-cbm-netbsd${UNAME_RELEASE} - exit 0 ;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - arm32:NetBSD:*:*) - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - SR2?01:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - atari*:NetBSD:*:*) - echo m68k-atari-netbsd${UNAME_RELEASE} - exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:NetBSD:*:*) - echo m68k-sun-netbsd${UNAME_RELEASE} - exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:NetBSD:*:*) - echo m68k-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - macppc:NetBSD:*:*) - echo powerpc-apple-netbsd${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - sed 's/^ //' << EOF >$dummy.c - int main (argc, argv) int argc; char **argv; { - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - ${CC-cc} $dummy.c -o $dummy \ - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - sed 's/^ //' << EOF >$dummy.c - #include <sys/systemcfg.h> - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:4) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=4.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 ) - sed 's/^ //' << EOF >$dummy.c - #include <stdlib.h> - #include <unistd.h> - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (${CC-cc} $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` - rm -f $dummy.c $dummy - esac - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - sed 's/^ //' << EOF >$dummy.c - #include <unistd.h> - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i?86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY*T3E:*:*:*) - echo t3e-cray-unicosmk${UNAME_RELEASE} - exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; - F300:UNIX_System_V:*:*) - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - F301:UNIX_System_V:*:*) - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` - exit 0 ;; - hp3[0-9][05]:NetBSD:*:*) - echo m68k-hp-netbsd${UNAME_RELEASE} - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | i?86:BSD/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; - *:NetBSD:*:*) - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - *:Linux:*:*) - # uname on the ARM produces all sorts of strangeness, and we need to - # filter it out. - case "$UNAME_MACHINE" in - arm* | sa110*) UNAME_MACHINE="arm" ;; - esac - - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. - ld_help_string=`ld --help 2>&1` - ld_supported_emulations=`echo $ld_help_string \ - | sed -ne '/supported emulations:/!d - s/[ ][ ]*/ /g - s/.*supported emulations: *// - s/ .*// - p'` - case "$ld_supported_emulations" in - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; - esac - - if test "${UNAME_MACHINE}" = "alpha" ; then - sed 's/^ //' <<EOF >$dummy.s - .globl main - .ent main - main: - .frame \$30,0,\$26,0 - .prologue 0 - .long 0x47e03d80 # implver $0 - lda \$2,259 - .long 0x47e20c21 # amask $2,$1 - srl \$1,8,\$2 - sll \$2,2,\$2 - sll \$0,3,\$0 - addl \$1,\$0,\$0 - addl \$2,\$0,\$0 - ret \$31,(\$26),1 - .end main -EOF - LIBC="" - ${CC-cc} $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy - case "$?" in - 7) - UNAME_MACHINE="alpha" - ;; - 15) - UNAME_MACHINE="alphaev5" - ;; - 14) - UNAME_MACHINE="alphaev56" - ;; - 10) - UNAME_MACHINE="alphapca56" - ;; - 16) - UNAME_MACHINE="alphaev6" - ;; - esac - - objdump --private-headers $dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 - elif test "${UNAME_MACHINE}" = "mips" ; then - cat >$dummy.c <<EOF -main(argc, argv) - int argc; - char *argv[]; -{ -#ifdef __MIPSEB__ - printf ("%s-unknown-linux-gnu\n", argv[1]); -#endif -#ifdef __MIPSEL__ - printf ("%sel-unknown-linux-gnu\n", argv[1]); -#endif - return 0; -} -EOF - ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - else - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; - esac - # Determine whether the default compiler is a.out or elf - cat >$dummy.c <<EOF -#include <features.h> -main(argc, argv) - int argc; - char *argv[]; -{ -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} -EOF - ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - fi ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) - echo i386-sequent-sysv4 - exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL - elif /bin/uname -X 2>/dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - i?86:UnixWare:*:*) - if /bin/uname -X 2>/dev/null >/dev/null ; then - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - fi - echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} - exit 0 ;; - pc:*:*:*) - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - i?86:LynxOS:2.*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says <Richard.M.Bartel@ccMail.Census.GOV> - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes <hewes@openmarket.com>. - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:*:6*) - echo mips-sony-newsos6 - exit 0 ;; - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -cat >$dummy.c <<EOF -#ifdef _SEQUENT_ -# include <sys/types.h> -# include <sys/utsname.h> -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include <sys/param.h> - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -#if !defined (ultrix) - printf ("vax-dec-bsd\n"); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 -rm -f $dummy.c $dummy - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -#echo '(Unable to guess system type)' 1>&2 - -exit 1 diff --git a/config.h b/config.h @@ -0,0 +1,692 @@ +/* Define if you have the strftime function. */ +#define HAVE_STRFTIME 1 + +/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both <sys/time.h> and <time.h>. */ +#define TIME_WITH_SYS_TIME 1 + +/* The number of bytes in a unsigned. */ +#define SIZEOF_UNSIGNED 4 + +/* The number of bytes in a unsigned long. */ +#define SIZEOF_UNSIGNED_LONG 8 + +/* The number of bytes in a unsigned long long. */ +#define SIZEOF_UNSIGNED_LONG_LONG 8 + +/* The number of bytes in a unsigned short. */ +#define SIZEOF_UNSIGNED_SHORT 2 + +/* Define if you have the ASN1_STRING_get0_data function. */ +/* #define HAVE_ASN1_STRING_GET0_DATA 1 */ + +/* Define if you have the ASN1_STRING_to_UTF8 function. */ +#define HAVE_ASN1_STRING_TO_UTF8 1 + +/* Define if you have the OPENSSL_init_ssl function. */ +/* #define HAVE_OPENSSL_INIT_SSL 1 */ + +/* Define if you have the RAND_add function. */ +#define HAVE_RAND_ADD 1 + +/* Define if you have the RAND_file_name function. */ +#define HAVE_RAND_FILE_NAME 1 + +/* Define if you have the RAND_load_file function. */ +#define HAVE_RAND_LOAD_FILE 1 + +/* Define if you have the RAND_write_file function. */ +#define HAVE_RAND_WRITE_FILE 1 + +/* Define if you have the SSL_get1_session function. */ +#define HAVE_SSL_GET1_SESSION 1 + +/* Define if you have the SSL_load_error_strings function. */ +#define HAVE_SSL_LOAD_ERROR_STRINGS 1 + +/* Define if you have the X509_check_host function. */ +#define HAVE_X509_CHECK_HOST 1 + +/* Define if you have the X509_check_ip function. */ +#define HAVE_X509_CHECK_IP 1 + +/* Define if you have the XCloseIM function. */ +#define HAVE_XCLOSEIM 1 + +/* Define if you have the XCreateIC function. */ +#define HAVE_XCREATEIC 1 + +/* Define if you have the XDestroyIC function. */ +#define HAVE_XDESTROYIC 1 + +/* Define if you have the XOpenDisplay function. */ +#define HAVE_XOPENDISPLAY 1 + +/* Define if you have the XOpenIM function. */ +#define HAVE_XOPENIM 1 + +/* Define if you have the XSupportsLocale function. */ +#define HAVE_XSUPPORTSLOCALE 1 + +/* Define if you have the XmbTextListToTextProperty function. */ +#define HAVE_XMBTEXTLISTTOTEXTPROPERTY 1 + +/* Define if you have the Xutf8LookupString function. */ +#define HAVE_XUTF8LOOKUPSTRING 1 + +/* Define if you have the XwcLookupString function. */ +#define HAVE_XWCLOOKUPSTRING 1 + +/* Define if you have the bcmp function. */ +#define HAVE_BCMP 1 + +/* Define if you have the bcopy function. */ +#define HAVE_BCOPY 1 + +/* Define if you have the bzero function. */ +#define HAVE_BZERO 1 + +/* Define if you have the calloc function. */ +#define HAVE_CALLOC 1 + +/* Define if you have the cfmakeraw function. */ +#define HAVE_CFMAKERAW 1 + +/* Define if you have the chmod function. */ +#define HAVE_CHMOD 1 + +/* Define if you have the clock_gettime function. */ +#define HAVE_CLOCK_GETTIME 1 + +/* Define if you have the dirfd function. */ +#define HAVE_DIRFD 1 + +/* Define if you have the event_base_free function. */ +#define HAVE_EVENT_BASE_FREE 1 + +/* Define if you have the event_base_get_method function. */ +#define HAVE_EVENT_BASE_GET_METHOD 1 + +/* Define if you have the event_base_new function. */ +#define HAVE_EVENT_BASE_NEW 1 + +/* Define if you have the event_base_set function. */ +#define HAVE_EVENT_BASE_SET 1 + +/* Define if you have the event_get_method function. */ +#define HAVE_EVENT_GET_METHOD 1 + +/* Define if you have the event_get_version function. */ +#define HAVE_EVENT_GET_VERSION 1 + +/* Define if you have the event_reinit function. */ +#define HAVE_EVENT_REINIT 1 + +/* Define if you have the freeaddrinfo function. */ +#define HAVE_FREEADDRINFO 1 + +/* Define if you have the gai_strerror function. */ +#define HAVE_GAI_STRERROR 1 + +/* Define if you have the getaddrinfo function. */ +#define HAVE_GETADDRINFO 1 + +/* Define if you have the getcwd function. */ +#define HAVE_GETCWD 1 + +/* Define if you have the getgrgid function. */ +#define HAVE_GETGRGID 1 + +/* Define if you have the getpagesize function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define if you have the getpid function. */ +#define HAVE_GETPID 1 + +/* Define if you have the getpwuid function. */ +#define HAVE_GETPWUID 1 + +/* Define if you have the getrlimit function. */ +#define HAVE_GETRLIMIT 1 + +/* Define if you have the gettimeofday function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define if you have the herror function. */ +#define HAVE_HERROR 1 + +/* Define if you have the inet_ntop function. */ +#define HAVE_INET_NTOP 1 + +/* Define if you have the inet_pton function. */ +#define HAVE_INET_PTON 1 + +/* Define if you have the kqueue function. */ +#define HAVE_KQUEUE 1 + +/* Define if you have the memchr function. */ +#define HAVE_MEMCHR 1 + +/* Define if you have the memcmp function. */ +#define HAVE_MEMCMP 1 + +/* Define if you have the memcpy function. */ +#define HAVE_MEMCPY 1 + +/* Define if you have the memmem function. */ +#define HAVE_MEMMEM 1 + +/* Define if you have the memmove function. */ +#define HAVE_MEMMOVE 1 + +/* Define if you have the memset function. */ +#define HAVE_MEMSET 1 + +/* Define if you have the mktime function. */ +#define HAVE_MKTIME 1 + +/* Define if you have the nl_langinfo function. */ +#define HAVE_NL_LANGINFO 1 + +/* Define if you have the png_create_info_struct function. */ +#define HAVE_PNG_CREATE_INFO_STRUCT 1 + +/* Define if you have the png_get_bit_depth function. */ +#define HAVE_PNG_GET_BIT_DEPTH 1 + +/* Define if you have the png_get_color_type function. */ +#define HAVE_PNG_GET_COLOR_TYPE 1 + +/* Define if you have the png_get_gAMA function. */ +#define HAVE_PNG_GET_GAMA 1 + +/* Define if you have the png_get_image_height function. */ +#define HAVE_PNG_GET_IMAGE_HEIGHT 1 + +/* Define if you have the png_get_image_width function. */ +#define HAVE_PNG_GET_IMAGE_WIDTH 1 + +/* Define if you have the png_get_libpng_ver function. */ +#define HAVE_PNG_GET_LIBPNG_VER 1 + +/* Define if you have the png_get_sRGB function. */ +#define HAVE_PNG_GET_SRGB 1 + +/* Define if you have the png_get_valid function. */ +#define HAVE_PNG_GET_VALID 1 + +/* Define if you have the png_set_rgb_to_gray function. */ +#define HAVE_PNG_SET_RGB_TO_GRAY 1 + +/* Define if you have the png_set_strip_alpha function. */ +#define HAVE_PNG_SET_STRIP_ALPHA 1 + +/* Define if you have the poll function. */ +#define HAVE_POLL 1 + +/* Define if you have the popen function. */ +#define HAVE_POPEN 1 + +/* Define if you have the pthread_sigmask function. */ +#define HAVE_PTHREAD_SIGMASK 1 + +/* Define if you have the raise function. */ +#define HAVE_RAISE 1 + +/* Define if you have the select function. */ +#define HAVE_SELECT 1 + +/* Define if you have the setlocale function. */ +#define HAVE_SETLOCALE 1 + +/* Define if you have the setpgid function. */ +#define HAVE_SETPGID 1 + +/* Define if you have the setrlimit function. */ +#define HAVE_SETRLIMIT 1 + +/* Define if you have the setsid function. */ +#define HAVE_SETSID 1 + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigblock function. */ +#define HAVE_SIGBLOCK 1 + +/* Define if you have the sigdelset function. */ +#define HAVE_SIGDELSET 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the snprintf function. */ +#define HAVE_SNPRINTF 1 + +/* Define if you have the strchr function. */ +#define HAVE_STRCHR 1 + +/* Define if you have the strcmp function. */ +#define HAVE_STRCMP 1 + +/* Define if you have the strcpy function. */ +#define HAVE_STRCPY 1 + +/* Define if you have the strcspn function. */ +#define HAVE_STRCSPN 1 + +/* Define if you have the strdup function. */ +#define HAVE_STRDUP 1 + +/* Define if you have the strerror function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the strlen function. */ +#define HAVE_STRLEN 1 + +/* Define if you have the strncmp function. */ +#define HAVE_STRNCMP 1 + +/* Define if you have the strptime function. */ +#define HAVE_STRPTIME 1 + +/* Define if you have the strrchr function. */ +#define HAVE_STRRCHR 1 + +/* Define if you have the strspn function. */ +#define HAVE_STRSPN 1 + +/* Define if you have the strstr function. */ +#define HAVE_STRSTR 1 + +/* Define if you have the strtod function. */ +#define HAVE_STRTOD 1 + +/* Define if you have the strtoimax function. */ +#define HAVE_STRTOIMAX 1 + +/* Define if you have the strtol function. */ +#define HAVE_STRTOL 1 + +/* Define if you have the strtoll function. */ +#define HAVE_STRTOLL 1 + +/* Define if you have the strtoq function. */ +#define HAVE_STRTOQ 1 + +/* Define if you have the strtoul function. */ +#define HAVE_STRTOUL 1 + +/* Define if you have the tdelete function. */ +#define HAVE_TDELETE 1 + +/* Define if you have the tempnam function. */ +#define HAVE_TEMPNAM 1 + +/* Define if you have the tfind function. */ +#define HAVE_TFIND 1 + +/* Define if you have the tsearch function. */ +#define HAVE_TSEARCH 1 + +/* Define if you have the uname function. */ +#define HAVE_UNAME 1 + +/* Define if you have the utime function. */ +#define HAVE_UTIME 1 + +/* Define if you have the utimes function. */ +#define HAVE_UTIMES 1 + +/* Define if you have the <X11/X.h> header file. */ +#define HAVE_X11_X_H 1 + +/* Define if you have the <X11/Xatom.h> header file. */ +#define HAVE_X11_XATOM_H 1 + +/* Define if you have the <X11/Xlib.h> header file. */ +#define HAVE_X11_XLIB_H 1 + +/* Define if you have the <X11/Xlocale.h> header file. */ +#define HAVE_X11_XLOCALE_H 1 + +/* Define if you have the <X11/Xutil.h> header file. */ +#define HAVE_X11_XUTIL_H 1 + +/* Define if you have the <X11/keysymdef.h> header file. */ +#define HAVE_X11_KEYSYMDEF_H 1 + +/* Define if you have the <arpa/inet.h> header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define if you have the <dirent.h> header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the <event.h> header file. */ +#define HAVE_EVENT_H 1 + +/* Define if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the <grp.h> header file. */ +#define HAVE_GRP_H 1 + +/* Define if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define if you have the <langinfo.h> header file. */ +#define HAVE_LANGINFO_H 1 + +/* Define if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +#if defined(__linux__) +/* Define if you have the <linux/falloc.h> header file. */ +#define HAVE_LINUX_FALLOC_H 1 + +/* Define if you have the <linux/fb.h> header file. */ +#define HAVE_LINUX_FB_H 1 + +/* Define if you have the <linux/kd.h> header file. */ +#define HAVE_LINUX_KD_H 1 + +/* Define if you have the <linux/vt.h> header file. */ +#define HAVE_LINUX_VT_H 1 +#endif + +/* Define if you have the <locale.h> header file. */ +#define HAVE_LOCALE_H 1 + +/* Define if you have the <math.h> header file. */ +#define HAVE_MATH_H 1 + +/* Define if you have the <netinet/in_systm.h> header file. */ +#define HAVE_NETINET_IN_SYSTM_H 1 + +/* Define if you have the <netinet/ip.h> header file. */ +#define HAVE_NETINET_IP_H 1 + +/* Define if you have the <openssl/x509v3.h> header file. */ +#define HAVE_OPENSSL_X509V3_H 1 + +/* Define if you have the <png.h> header file. */ +/*#define HAVE_PNG_H 1*/ + +/* Define if you have the <poll.h> header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have the <pwd.h> header file. */ +#define HAVE_PWD_H 1 + +/* Define if you have the <search.h> header file. */ +#define HAVE_SEARCH_H 1 + +/* Define if you have the <setjmp.h> header file. */ +#define HAVE_SETJMP_H 1 + +/* Define if you have the <stdarg.h> header file. */ +#define HAVE_STDARG_H 1 + +/* Define if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the <sys/file.h> header file. */ +#define HAVE_SYS_FILE_H 1 + +/* Define if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define if you have the <sys/resource.h> header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define if you have the <sys/select.h> header file. */ +#define HAVE_SYS_SELECT_H 1 + +/* Define if you have the <sys/time.h> header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define if you have the <sys/un.h> header file. */ +#define HAVE_SYS_UN_H 1 + +/* Define if you have the <sys/utsname.h> header file. */ +#define HAVE_SYS_UTSNAME_H 1 + +/* Define if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if you have the <time.h> header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the <utime.h> header file. */ +#define HAVE_UTIME_H 1 + +/* Define if you have the <zlib.h> header file. */ +#define HAVE_ZLIB_H 1 + +/* Define if you have the event library (-levent). */ +#define HAVE_LIBEVENT 1 + +/* Define if you have the m library (-lm). */ +#define HAVE_LIBM 1 + +/* Define if you have the pthread library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define if you have the z library (-lz). */ +#define HAVE_LIBZ 1 + +/* Name of package */ +#define PACKAGE "links" + +/* Version number of package */ +#define VERSION "2.15" + +/* */ +#define VERSION "2.15" + +/* */ +#define HAVE_LONG_LONG 1 + +/* */ +#define HAVE_STDLIB_H_X 1 + +/* */ +#define HAVE_SOCKLEN_T 1 + +/* */ +#define HAVE_VOLATILE 1 + +/* */ +#define HAVE___RESTRICT 1 + +/* */ +#define HAVE_ERRNO 1 + +/* */ +#define C_LITTLE_ENDIAN 1 + +/* */ +#define RENAME_OVER_EXISTING_FILES 1 + +/* */ +#define HAVE_STRLEN 1 + +/* */ +#define HAVE_STRCPY 1 + +/* */ +#define HAVE_STRCHR 1 + +/* */ +#define HAVE_STRRCHR 1 + +/* */ +#define HAVE_STRCMP 1 + +/* */ +#define HAVE_STRNCMP 1 + +/* */ +#define HAVE_STRCSPN 1 + +/* */ +#define HAVE_STRSPN 1 + +/* */ +#define HAVE_STRSTR 1 + +/* */ +#define HAVE_MEMCMP 1 + +/* */ +#define HAVE_MEMCHR 1 + +/* */ +#define HAVE_MEMCPY 1 + +/* */ +#define HAVE_MEMMOVE 1 + +/* */ +#define HAVE_MEMSET 1 + +/* */ +#define HAVE_MEMMEM 1 + +/* */ +#define HAVE_STRERROR 1 + +/* */ +#define HAVE_SIGFILLSET 1 + +/* */ +#define HAVE_SIGSETJMP 1 + +/* */ +#define HAVE___BUILTIN_CLZ 1 + +/* */ +#define DEBUGLEVEL 0 + +/* */ +#define HAVE_CLOCK_GETTIME 1 + +/* */ +#define HAVE_GETHOSTBYNAME 1 + +/* */ +#define SUPPORT_IPV6 1 + +/* */ +#define SUPPORT_IPV6_SCOPE 1 + +/* */ +#define HAVE_POW 1 + +/* */ +#define HAVE_POWF 1 + +/* */ +#undef JS + +/* */ +#define ENABLE_UTF8 1 + +/* */ +#define HAVE_XSETLOCALE 1 + +/* */ +#define HAVE_SSL 1 + +/* */ +#define HAVE_OPENSSL 1 + +/* */ +#define HAVE_CRYPTO_SET_MEM_FUNCTIONS_1 1 + +/* */ +#define HAVE_ZLIB 1 + +/* Tiff by Brain */ +#undef HAVE_TIFF + +/* SVG */ +/* #undef HAVE_SVG */ +#undef HAVE_SVG + +/* Gpm_Event has wdx and wdy */ +/* #undef HAVE_WDX_WDY */ + +#define DISABLE_SMB 1 +#define HAVE_GETHOSTBYNAME 1 +#define SUPPORT_IPV6 1 + +#define NO_ASYNC_LOOKUP 1 +#define DONT_USE_AF_UNIX 1 + +#undef HAVE_GETHOSTBYNAME_BUG +#undef EXTERNAL_LOOKUP + +#undef __CYGWIN__ +#undef HAVE_ATHEOS_THREADS_H +#undef INTERIX +#undef OS2 +#undef OS2_ADVANCED_HEAP +#undef OPENVMS +#undef BEOS +#undef JS +#undef SPAD +#undef DOS +#undef DOS_FS +#undef DOS_FS_8_3 +#undef GRDRV_FB +#undef GRDRV_SDL +#undef GRDRV_DIRECTFB +#undef GRDRV_SVGALIB +#undef GRDRV_ATHEOS +#undef GRDRV_SVGALIB +#undef GRDRV_PMSHELL +#undef __DJGPP +#undef VMS_DEBUGLEVEL +#undef __VAX +#undef HAVE_BROTLI +#undef HAVE_BZIP2 +#undef HAVE_LZMA +#undef HAVE_LZIP +#undef WIN +#undef HAVE_CYGWIN_CONV_PATH +#undef __ICC +#undef HAVE_OPENMP +#undef FLOOD_MEMORY +#undef OPENVMS_64BIT +#undef GRDRV_GRX +#undef GRDRV_VIRTUAL_DEVICES +#undef USE_GPM +#undef HAVE_BUILTIN_SSL_CERTIFICATES +#undef USE_WIN32_HEAP +#undef LEAK_DEBUG +#undef OOPS +#undef RISCOS diff --git a/config.h.in b/config.h.in @@ -1,1078 +0,0 @@ -/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */ - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define to the type of elements in the array set by `getgroups'. - Usually this is either `int' or `gid_t'. */ -#undef GETGROUPS_T - -/* Define if the `getloadavg' function needs to be run setuid or setgid. */ -#undef GETLOADAVG_PRIVILEGED - -/* Define if the `getpgrp' function takes no argument. */ -#undef GETPGRP_VOID - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the strftime function. */ -#undef HAVE_STRFTIME - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define as __inline if that's what the C compiler calls it. */ -#undef inline - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef pid_t - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define if you can safely include both <sys/time.h> and <time.h>. */ -#undef TIME_WITH_SYS_TIME - -/* Define if your <sys/time.h> declares struct tm. */ -#undef TM_IN_SYS_TIME - -/* The number of bytes in a unsigned. */ -#undef SIZEOF_UNSIGNED - -/* The number of bytes in a unsigned long. */ -#undef SIZEOF_UNSIGNED_LONG - -/* The number of bytes in a unsigned long long. */ -#undef SIZEOF_UNSIGNED_LONG_LONG - -/* The number of bytes in a unsigned short. */ -#undef SIZEOF_UNSIGNED_SHORT - -/* Define if you have the ASN1_STRING_get0_data function. */ -#undef HAVE_ASN1_STRING_GET0_DATA - -/* Define if you have the ASN1_STRING_to_UTF8 function. */ -#undef HAVE_ASN1_STRING_TO_UTF8 - -/* Define if you have the DirectFBInit function. */ -#undef HAVE_DIRECTFBINIT - -/* Define if you have the Gpm_GetLibVersion function. */ -#undef HAVE_GPM_GETLIBVERSION - -/* Define if you have the MouOpen function. */ -#undef HAVE_MOUOPEN - -/* Define if you have the OPENSSL_cleanup function. */ -#undef HAVE_OPENSSL_CLEANUP - -/* Define if you have the OPENSSL_init_ssl function. */ -#undef HAVE_OPENSSL_INIT_SSL - -/* Define if you have the RAND_add function. */ -#undef HAVE_RAND_ADD - -/* Define if you have the RAND_egd function. */ -#undef HAVE_RAND_EGD - -/* Define if you have the RAND_file_name function. */ -#undef HAVE_RAND_FILE_NAME - -/* Define if you have the RAND_load_file function. */ -#undef HAVE_RAND_LOAD_FILE - -/* Define if you have the RAND_write_file function. */ -#undef HAVE_RAND_WRITE_FILE - -/* Define if you have the SSL_SESSION_is_resumable function. */ -#undef HAVE_SSL_SESSION_IS_RESUMABLE - -/* Define if you have the SSL_get1_session function. */ -#undef HAVE_SSL_GET1_SESSION - -/* Define if you have the SSL_load_error_strings function. */ -#undef HAVE_SSL_LOAD_ERROR_STRINGS - -/* Define if you have the X509_check_host function. */ -#undef HAVE_X509_CHECK_HOST - -/* Define if you have the X509_check_ip function. */ -#undef HAVE_X509_CHECK_IP - -/* Define if you have the XCloseIM function. */ -#undef HAVE_XCLOSEIM - -/* Define if you have the XCreateIC function. */ -#undef HAVE_XCREATEIC - -/* Define if you have the XDestroyIC function. */ -#undef HAVE_XDESTROYIC - -/* Define if you have the XOpenDisplay function. */ -#undef HAVE_XOPENDISPLAY - -/* Define if you have the XOpenIM function. */ -#undef HAVE_XOPENIM - -/* Define if you have the XSupportsLocale function. */ -#undef HAVE_XSUPPORTSLOCALE - -/* Define if you have the XmbTextListToTextProperty function. */ -#undef HAVE_XMBTEXTLISTTOTEXTPROPERTY - -/* Define if you have the Xutf8LookupString function. */ -#undef HAVE_XUTF8LOOKUPSTRING - -/* Define if you have the XwcLookupString function. */ -#undef HAVE_XWCLOOKUPSTRING - -/* Define if you have the __strtoll function. */ -#undef HAVE___STRTOLL - -/* Define if you have the _heapmin function. */ -#undef HAVE__HEAPMIN - -/* Define if you have the _read_kbd function. */ -#undef HAVE__READ_KBD - -/* Define if you have the _ucreate function. */ -#undef HAVE__UCREATE - -/* Define if you have the _udefault function. */ -#undef HAVE__UDEFAULT - -/* Define if you have the _udestroy function. */ -#undef HAVE__UDESTROY - -/* Define if you have the _uopen function. */ -#undef HAVE__UOPEN - -/* Define if you have the bcmp function. */ -#undef HAVE_BCMP - -/* Define if you have the bcopy function. */ -#undef HAVE_BCOPY - -/* Define if you have the bzero function. */ -#undef HAVE_BZERO - -/* Define if you have the calloc function. */ -#undef HAVE_CALLOC - -/* Define if you have the cfmakeraw function. */ -#undef HAVE_CFMAKERAW - -/* Define if you have the chmod function. */ -#undef HAVE_CHMOD - -/* Define if you have the clock_gettime function. */ -#undef HAVE_CLOCK_GETTIME - -/* Define if you have the cygwin_conv_path function. */ -#undef HAVE_CYGWIN_CONV_PATH - -/* Define if you have the cygwin_conv_to_full_win32_path function. */ -#undef HAVE_CYGWIN_CONV_TO_FULL_WIN32_PATH - -/* Define if you have the dirfd function. */ -#undef HAVE_DIRFD - -/* Define if you have the event_base_free function. */ -#undef HAVE_EVENT_BASE_FREE - -/* Define if you have the event_base_get_method function. */ -#undef HAVE_EVENT_BASE_GET_METHOD - -/* Define if you have the event_base_new function. */ -#undef HAVE_EVENT_BASE_NEW - -/* Define if you have the event_base_set function. */ -#undef HAVE_EVENT_BASE_SET - -/* Define if you have the event_config_set_flag function. */ -#undef HAVE_EVENT_CONFIG_SET_FLAG - -/* Define if you have the event_get_method function. */ -#undef HAVE_EVENT_GET_METHOD - -/* Define if you have the event_get_struct_event_size function. */ -#undef HAVE_EVENT_GET_STRUCT_EVENT_SIZE - -/* Define if you have the event_get_version function. */ -#undef HAVE_EVENT_GET_VERSION - -/* Define if you have the event_reinit function. */ -#undef HAVE_EVENT_REINIT - -/* Define if you have the fallocate function. */ -#undef HAVE_FALLOCATE - -/* Define if you have the freeaddrinfo function. */ -#undef HAVE_FREEADDRINFO - -/* Define if you have the gai_strerror function. */ -#undef HAVE_GAI_STRERROR - -/* Define if you have the getaddrinfo function. */ -#undef HAVE_GETADDRINFO - -/* Define if you have the getcwd function. */ -#undef HAVE_GETCWD - -/* Define if you have the getgrgid function. */ -#undef HAVE_GETGRGID - -/* Define if you have the getpagesize function. */ -#undef HAVE_GETPAGESIZE - -/* Define if you have the getpid function. */ -#undef HAVE_GETPID - -/* Define if you have the getpwuid function. */ -#undef HAVE_GETPWUID - -/* Define if you have the getrlimit function. */ -#undef HAVE_GETRLIMIT - -/* Define if you have the gettimeofday function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define if you have the herror function. */ -#undef HAVE_HERROR - -/* Define if you have the inet_ntop function. */ -#undef HAVE_INET_NTOP - -/* Define if you have the inet_pton function. */ -#undef HAVE_INET_PTON - -/* Define if you have the kqueue function. */ -#undef HAVE_KQUEUE - -/* Define if you have the malloc_trim function. */ -#undef HAVE_MALLOC_TRIM - -/* Define if you have the mallopt function. */ -#undef HAVE_MALLOPT - -/* Define if you have the memchr function. */ -#undef HAVE_MEMCHR - -/* Define if you have the memcmp function. */ -#undef HAVE_MEMCMP - -/* Define if you have the memcpy function. */ -#undef HAVE_MEMCPY - -/* Define if you have the memmem function. */ -#undef HAVE_MEMMEM - -/* Define if you have the memmove function. */ -#undef HAVE_MEMMOVE - -/* Define if you have the memset function. */ -#undef HAVE_MEMSET - -/* Define if you have the mktime function. */ -#undef HAVE_MKTIME - -/* Define if you have the nl_langinfo function. */ -#undef HAVE_NL_LANGINFO - -/* Define if you have the png_create_info_struct function. */ -#undef HAVE_PNG_CREATE_INFO_STRUCT - -/* Define if you have the png_get_bit_depth function. */ -#undef HAVE_PNG_GET_BIT_DEPTH - -/* Define if you have the png_get_color_type function. */ -#undef HAVE_PNG_GET_COLOR_TYPE - -/* Define if you have the png_get_gAMA function. */ -#undef HAVE_PNG_GET_GAMA - -/* Define if you have the png_get_image_height function. */ -#undef HAVE_PNG_GET_IMAGE_HEIGHT - -/* Define if you have the png_get_image_width function. */ -#undef HAVE_PNG_GET_IMAGE_WIDTH - -/* Define if you have the png_get_libpng_ver function. */ -#undef HAVE_PNG_GET_LIBPNG_VER - -/* Define if you have the png_get_sRGB function. */ -#undef HAVE_PNG_GET_SRGB - -/* Define if you have the png_get_valid function. */ -#undef HAVE_PNG_GET_VALID - -/* Define if you have the png_set_rgb_to_gray function. */ -#undef HAVE_PNG_SET_RGB_TO_GRAY - -/* Define if you have the png_set_strip_alpha function. */ -#undef HAVE_PNG_SET_STRIP_ALPHA - -/* Define if you have the poll function. */ -#undef HAVE_POLL - -/* Define if you have the popen function. */ -#undef HAVE_POPEN - -/* Define if you have the posix_fallocate function. */ -#undef HAVE_POSIX_FALLOCATE - -/* Define if you have the pthread_sigmask function. */ -#undef HAVE_PTHREAD_SIGMASK - -/* Define if you have the raise function. */ -#undef HAVE_RAISE - -/* Define if you have the regcomp function. */ -#undef HAVE_REGCOMP - -/* Define if you have the resume_thread function. */ -#undef HAVE_RESUME_THREAD - -/* Define if you have the rsvg_handle_render_cairo function. */ -#undef HAVE_RSVG_HANDLE_RENDER_CAIRO - -/* Define if you have the select function. */ -#undef HAVE_SELECT - -/* Define if you have the setlocale function. */ -#undef HAVE_SETLOCALE - -/* Define if you have the setpgid function. */ -#undef HAVE_SETPGID - -/* Define if you have the setrlimit function. */ -#undef HAVE_SETRLIMIT - -/* Define if you have the setsid function. */ -#undef HAVE_SETSID - -/* Define if you have the sigaction function. */ -#undef HAVE_SIGACTION - -/* Define if you have the sigblock function. */ -#undef HAVE_SIGBLOCK - -/* Define if you have the sigdelset function. */ -#undef HAVE_SIGDELSET - -/* Define if you have the sigprocmask function. */ -#undef HAVE_SIGPROCMASK - -/* Define if you have the sigsetmask function. */ -#undef HAVE_SIGSETMASK - -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the spawn_thread function. */ -#undef HAVE_SPAWN_THREAD - -/* Define if you have the strchr function. */ -#undef HAVE_STRCHR - -/* Define if you have the strcmp function. */ -#undef HAVE_STRCMP - -/* Define if you have the strcpy function. */ -#undef HAVE_STRCPY - -/* Define if you have the strcspn function. */ -#undef HAVE_STRCSPN - -/* Define if you have the strdup function. */ -#undef HAVE_STRDUP - -/* Define if you have the strerror function. */ -#undef HAVE_STRERROR - -/* Define if you have the strlen function. */ -#undef HAVE_STRLEN - -/* Define if you have the strmode function. */ -#undef HAVE_STRMODE - -/* Define if you have the strncmp function. */ -#undef HAVE_STRNCMP - -/* Define if you have the strncpy function. */ -#undef HAVE_STRNCPY - -/* Define if you have the strptime function. */ -#undef HAVE_STRPTIME - -/* Define if you have the strrchr function. */ -#undef HAVE_STRRCHR - -/* Define if you have the strspn function. */ -#undef HAVE_STRSPN - -/* Define if you have the strstr function. */ -#undef HAVE_STRSTR - -/* Define if you have the strtod function. */ -#undef HAVE_STRTOD - -/* Define if you have the strtoimax function. */ -#undef HAVE_STRTOIMAX - -/* Define if you have the strtol function. */ -#undef HAVE_STRTOL - -/* Define if you have the strtoll function. */ -#undef HAVE_STRTOLL - -/* Define if you have the strtoq function. */ -#undef HAVE_STRTOQ - -/* Define if you have the strtoul function. */ -#undef HAVE_STRTOUL - -/* Define if you have the tdelete function. */ -#undef HAVE_TDELETE - -/* Define if you have the tempnam function. */ -#undef HAVE_TEMPNAM - -/* Define if you have the tfind function. */ -#undef HAVE_TFIND - -/* Define if you have the tsearch function. */ -#undef HAVE_TSEARCH - -/* Define if you have the uname function. */ -#undef HAVE_UNAME - -/* Define if you have the unixpath2win function. */ -#undef HAVE_UNIXPATH2WIN - -/* Define if you have the utime function. */ -#undef HAVE_UTIME - -/* Define if you have the utimes function. */ -#undef HAVE_UTIMES - -/* Define if you have the uwin_path function. */ -#undef HAVE_UWIN_PATH - -/* Define if you have the winpath2unix function. */ -#undef HAVE_WINPATH2UNIX - -/* Define if you have the <X11/X.h> header file. */ -#undef HAVE_X11_X_H - -/* Define if you have the <X11/Xatom.h> header file. */ -#undef HAVE_X11_XATOM_H - -/* Define if you have the <X11/Xlib.h> header file. */ -#undef HAVE_X11_XLIB_H - -/* Define if you have the <X11/Xlocale.h> header file. */ -#undef HAVE_X11_XLOCALE_H - -/* Define if you have the <X11/Xutil.h> header file. */ -#undef HAVE_X11_XUTIL_H - -/* Define if you have the <X11/keysymdef.h> header file. */ -#undef HAVE_X11_KEYSYMDEF_H - -/* Define if you have the <alloca.h> header file. */ -#undef HAVE_ALLOCA_H - -/* Define if you have the <arpa/inet.h> header file. */ -#undef HAVE_ARPA_INET_H - -/* Define if you have the <atheos/threads.h> header file. */ -#undef HAVE_ATHEOS_THREADS_H - -/* Define if you have the <brotli/decode.h> header file. */ -#undef HAVE_BROTLI_DECODE_H - -/* Define if you have the <bsd/string.h> header file. */ -#undef HAVE_BSD_STRING_H - -/* Define if you have the <bzlib.h> header file. */ -#undef HAVE_BZLIB_H - -/* Define if you have the <cairo.h> header file. */ -#undef HAVE_CAIRO_H - -/* Define if you have the <cygwin/process.h> header file. */ -#undef HAVE_CYGWIN_PROCESS_H - -/* Define if you have the <cygwin/version.h> header file. */ -#undef HAVE_CYGWIN_VERSION_H - -/* Define if you have the <directfb.h> header file. */ -#undef HAVE_DIRECTFB_H - -/* Define if you have the <dirent.h> header file. */ -#undef HAVE_DIRENT_H - -/* Define if you have the <ev-event.h> header file. */ -#undef HAVE_EV_EVENT_H - -/* Define if you have the <event.h> header file. */ -#undef HAVE_EVENT_H - -/* Define if you have the <fcntl.h> header file. */ -#undef HAVE_FCNTL_H - -/* Define if you have the <gpm.h> header file. */ -#undef HAVE_GPM_H - -/* Define if you have the <grp.h> header file. */ -#undef HAVE_GRP_H - -/* Define if you have the <grx20.h> header file. */ -#undef HAVE_GRX20_H - -/* Define if you have the <gui/bitmap.h> header file. */ -#undef HAVE_GUI_BITMAP_H - -/* Define if you have the <gui/desktop.h> header file. */ -#undef HAVE_GUI_DESKTOP_H - -/* Define if you have the <gui/view.h> header file. */ -#undef HAVE_GUI_VIEW_H - -/* Define if you have the <gui/window.h> header file. */ -#undef HAVE_GUI_WINDOW_H - -/* Define if you have the <ieee.h> header file. */ -#undef HAVE_IEEE_H - -/* Define if you have the <interix/interix.h> header file. */ -#undef HAVE_INTERIX_INTERIX_H - -/* Define if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define if you have the <io.h> header file. */ -#undef HAVE_IO_H - -/* Define if you have the <jpeglib.h> header file. */ -#undef HAVE_JPEGLIB_H - -/* Define if you have the <langinfo.h> header file. */ -#undef HAVE_LANGINFO_H - -/* Define if you have the <libpng/png.h> header file. */ -#undef HAVE_LIBPNG_PNG_H - -/* Define if you have the <librsvg/librsvg-features.h> header file. */ -#undef HAVE_LIBRSVG_LIBRSVG_FEATURES_H - -/* Define if you have the <librsvg/rsvg-cairo.h> header file. */ -#undef HAVE_LIBRSVG_RSVG_CAIRO_H - -/* Define if you have the <librsvg/rsvg.h> header file. */ -#undef HAVE_LIBRSVG_RSVG_H - -/* Define if you have the <limits.h> header file. */ -#undef HAVE_LIMITS_H - -/* Define if you have the <linux/falloc.h> header file. */ -#undef HAVE_LINUX_FALLOC_H - -/* Define if you have the <linux/fb.h> header file. */ -#undef HAVE_LINUX_FB_H - -/* Define if you have the <linux/kd.h> header file. */ -#undef HAVE_LINUX_KD_H - -/* Define if you have the <linux/vt.h> header file. */ -#undef HAVE_LINUX_VT_H - -/* Define if you have the <locale.h> header file. */ -#undef HAVE_LOCALE_H - -/* Define if you have the <lzlib.h> header file. */ -#undef HAVE_LZLIB_H - -/* Define if you have the <lzma.h> header file. */ -#undef HAVE_LZMA_H - -/* Define if you have the <malloc.h> header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the <math.h> header file. */ -#undef HAVE_MATH_H - -/* Define if you have the <ndir.h> header file. */ -#undef HAVE_NDIR_H - -/* Define if you have the <net/socket.h> header file. */ -#undef HAVE_NET_SOCKET_H - -/* Define if you have the <netinet/in_system.h> header file. */ -#undef HAVE_NETINET_IN_SYSTEM_H - -/* Define if you have the <netinet/in_systm.h> header file. */ -#undef HAVE_NETINET_IN_SYSTM_H - -/* Define if you have the <netinet/ip.h> header file. */ -#undef HAVE_NETINET_IP_H - -/* Define if you have the <openssl/x509v3.h> header file. */ -#undef HAVE_OPENSSL_X509V3_H - -/* Define if you have the <pcre.h> header file. */ -#undef HAVE_PCRE_H - -/* Define if you have the <png.h> header file. */ -#undef HAVE_PNG_H - -/* Define if you have the <poll.h> header file. */ -#undef HAVE_POLL_H - -/* Define if you have the <process.h> header file. */ -#undef HAVE_PROCESS_H - -/* Define if you have the <pwd.h> header file. */ -#undef HAVE_PWD_H - -/* Define if you have the <regex.h> header file. */ -#undef HAVE_REGEX_H - -/* Define if you have the <search.h> header file. */ -#undef HAVE_SEARCH_H - -/* Define if you have the <setjmp.h> header file. */ -#undef HAVE_SETJMP_H - -/* Define if you have the <sgtty.h> header file. */ -#undef HAVE_SGTTY_H - -/* Define if you have the <stdarg.h> header file. */ -#undef HAVE_STDARG_H - -/* Define if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define if you have the <sys/cygwin.h> header file. */ -#undef HAVE_SYS_CYGWIN_H - -/* Define if you have the <sys/dir.h> header file. */ -#undef HAVE_SYS_DIR_H - -/* Define if you have the <sys/file.h> header file. */ -#undef HAVE_SYS_FILE_H - -/* Define if you have the <sys/fmutex.h> header file. */ -#undef HAVE_SYS_FMUTEX_H - -/* Define if you have the <sys/ioctl.h> header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define if you have the <sys/mman.h> header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define if you have the <sys/ndir.h> header file. */ -#undef HAVE_SYS_NDIR_H - -/* Define if you have the <sys/resource.h> header file. */ -#undef HAVE_SYS_RESOURCE_H - -/* Define if you have the <sys/select.h> header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define if you have the <sys/time.h> header file. */ -#undef HAVE_SYS_TIME_H - -/* Define if you have the <sys/un.h> header file. */ -#undef HAVE_SYS_UN_H - -/* Define if you have the <sys/utsname.h> header file. */ -#undef HAVE_SYS_UTSNAME_H - -/* Define if you have the <termios.h> header file. */ -#undef HAVE_TERMIOS_H - -/* Define if you have the <tiffio.h> header file. */ -#undef HAVE_TIFFIO_H - -/* Define if you have the <time.h> header file. */ -#undef HAVE_TIME_H - -/* Define if you have the <umalloc.h> header file. */ -#undef HAVE_UMALLOC_H - -/* Define if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define if you have the <unixlib.h> header file. */ -#undef HAVE_UNIXLIB_H - -/* Define if you have the <util/application.h> header file. */ -#undef HAVE_UTIL_APPLICATION_H - -/* Define if you have the <util/locker.h> header file. */ -#undef HAVE_UTIL_LOCKER_H - -/* Define if you have the <utime.h> header file. */ -#undef HAVE_UTIME_H - -/* Define if you have the <uwin.h> header file. */ -#undef HAVE_UWIN_H - -/* Define if you have the <values.h> header file. */ -#undef HAVE_VALUES_H - -/* Define if you have the <windowsx.h> header file. */ -#undef HAVE_WINDOWSX_H - -/* Define if you have the <zlib.h> header file. */ -#undef HAVE_ZLIB_H - -/* Define if you have the Xau library (-lXau). */ -#undef HAVE_LIBXAU - -/* Define if you have the Xdmcp library (-lXdmcp). */ -#undef HAVE_LIBXDMCP - -/* Define if you have the atheos library (-latheos). */ -#undef HAVE_LIBATHEOS - -/* Define if you have the brotlidec library (-lbrotlidec). */ -#undef HAVE_LIBBROTLIDEC - -/* Define if you have the bsd library (-lbsd). */ -#undef HAVE_LIBBSD - -/* Define if you have the bz2 library (-lbz2). */ -#undef HAVE_LIBBZ2 - -/* Define if you have the dl library (-ldl). */ -#undef HAVE_LIBDL - -/* Define if you have the ev library (-lev). */ -#undef HAVE_LIBEV - -/* Define if you have the event library (-levent). */ -#undef HAVE_LIBEVENT - -/* Define if you have the fontconfig library (-lfontconfig). */ -#undef HAVE_LIBFONTCONFIG - -/* Define if you have the gpm library (-lgpm). */ -#undef HAVE_LIBGPM - -/* Define if you have the grx20 library (-lgrx20). */ -#undef HAVE_LIBGRX20 - -/* Define if you have the jbig library (-ljbig). */ -#undef HAVE_LIBJBIG - -/* Define if you have the jpeg library (-ljpeg). */ -#undef HAVE_LIBJPEG - -/* Define if you have the lz library (-llz). */ -#undef HAVE_LIBLZ - -/* Define if you have the lzma library (-llzma). */ -#undef HAVE_LIBLZMA - -/* Define if you have the m library (-lm). */ -#undef HAVE_LIBM - -/* Define if you have the network library (-lnetwork). */ -#undef HAVE_LIBNETWORK - -/* Define if you have the nsl library (-lnsl). */ -#undef HAVE_LIBNSL - -/* Define if you have the pcre library (-lpcre). */ -#undef HAVE_LIBPCRE - -/* Define if you have the png library (-lpng). */ -#undef HAVE_LIBPNG - -/* Define if you have the pthread library (-lpthread). */ -#undef HAVE_LIBPTHREAD - -/* Define if you have the rsvg-2 library (-lrsvg-2). */ -#undef HAVE_LIBRSVG_2 - -/* Define if you have the rt library (-lrt). */ -#undef HAVE_LIBRT - -/* Define if you have the socket library (-lsocket). */ -#undef HAVE_LIBSOCKET - -/* Define if you have the stdc++ library (-lstdc++). */ -#undef HAVE_LIBSTDC__ - -/* Define if you have the syllable library (-lsyllable). */ -#undef HAVE_LIBSYLLABLE - -/* Define if you have the tiff library (-ltiff). */ -#undef HAVE_LIBTIFF - -/* Define if you have the watt library (-lwatt). */ -#undef HAVE_LIBWATT - -/* Define if you have the x86 library (-lx86). */ -#undef HAVE_LIBX86 - -/* Define if you have the xcb library (-lxcb). */ -#undef HAVE_LIBXCB - -/* Define if you have the xcb-xlib library (-lxcb-xlib). */ -#undef HAVE_LIBXCB_XLIB - -/* Define if you have the z library (-lz). */ -#undef HAVE_LIBZ - -/* Name of package */ -#undef PACKAGE - -/* Version number of package */ -#undef VERSION - - -/* */ -#undef VERSION - -/* */ -#undef HAVE_OPENMP - -/* */ -#undef HAVE_LONG_LONG - -/* */ -#undef HAVE_POINTER_COMPARISON_BUG - -/* */ -#undef HAVE_MAXINT_CONVERSION_BUG - -/* */ -#undef HAVE_STDLIB_H_X - -/* */ -#undef HAVE_SOCKLEN_T - -/* */ -#undef HAVE_VOLATILE - -/* */ -#undef HAVE_RESTRICT - -/* */ -#undef HAVE___RESTRICT - -/* */ -#undef HAVE_ERRNO - -/* */ -#undef C_BIG_ENDIAN - -/* */ -#undef C_LITTLE_ENDIAN - -/* */ -#undef RENAME_OVER_EXISTING_FILES - -/* */ -#undef HAVE_STRLEN - -/* */ -#undef HAVE_STRCPY - -/* */ -#undef HAVE_STRNCPY - -/* */ -#undef HAVE_STRCHR - -/* */ -#undef HAVE_STRRCHR - -/* */ -#undef HAVE_STRCMP - -/* */ -#undef HAVE_STRNCMP - -/* */ -#undef HAVE_STRCSPN - -/* */ -#undef HAVE_STRSPN - -/* */ -#undef HAVE_STRSTR - -/* */ -#undef HAVE_MEMCMP - -/* */ -#undef HAVE_MEMCHR - -/* */ -#undef HAVE_MEMCPY - -/* */ -#undef HAVE_MEMMOVE - -/* */ -#undef HAVE_MEMSET - -/* */ -#undef HAVE_MEMMEM - -/* */ -#undef HAVE_STRERROR - -/* */ -#undef HAVE_SIGFILLSET - -/* */ -#undef HAVE_SIGSETJMP - -/* */ -#undef HAVE___BUILTIN_ADD_OVERFLOW - -/* */ -#undef HAVE___BUILTIN_CLZ - -/* */ -#undef DEBUGLEVEL - -/* */ -#undef HAVE_CLOCK_GETTIME - -/* */ -#undef HAVE_GETHOSTBYNAME - -/* */ -#undef HAVE_GETHOSTBYNAME_BUG - -/* */ -#undef SUPPORT_IPV6 - -/* */ -#undef SUPPORT_IPV6_SCOPE - -/* */ -#undef HAVE_POW - -/* */ -#undef HAVE_POWF - -/* */ -#undef JS - -/* */ -#undef CHCEME_FLEXI_LIBU - -/* */ -#undef HAVE_PCRE - -/* */ -#undef HAVE_REGEX - -/* */ -#undef ENABLE_UTF8 - -/* */ -#undef HAVE_BEGINTHREAD - -/* */ -#undef HAVE_PTHREADS - -/* */ -#undef X2 - -/* */ -#undef HAVE_XSETLOCALE - -/* */ -#undef HAVE_SSL - -/* */ -#undef HAVE_OPENSSL - -/* */ -#undef HAVE_NSS - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_1 - -/* */ -#undef HAVE_CRYPTO_SET_MEM_FUNCTIONS_2 - -/* */ -#undef HAVE_ZLIB - -/* */ -#undef HAVE_BROTLI - -/* */ -#undef HAVE_BZIP2 - -/* */ -#undef HAVE_LZMA - -/* */ -#undef HAVE_LZIP - -/* */ -#undef G - -/* */ -#undef GRDRV_SVGALIB - -/* */ -#undef GRDRV_FB - -/* */ -#undef GRDRV_DIRECTFB - -/* */ -#undef GRDRV_X - -/* */ -#undef GRDRV_SDL - -/* */ -#undef GRDRV_PMSHELL - -/* */ -#undef GRDRV_ATHEOS - -/* */ -#undef GRDRV_GRX - -/* Jpeg by Clock */ -#undef HAVE_JPEG - -/* Tiff by Brain */ -#undef HAVE_TIFF - -/* SVG */ -#undef HAVE_SVG - -/* Gpm_Event has wdx and wdy */ -#undef HAVE_WDX_WDY diff --git a/config.mk b/config.mk @@ -0,0 +1,14 @@ +PREFIX = / +MANPREFIX = $(PREFIX)/share/man + +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +INCS = -I. -I/usr/include -I$(X11INC) +LIBS = -L$(X11LIB) -L/usr/lib -lX11 -levent -lpng -ljpeg -lcrypto -lssl -lz + +CFLAGS = -O2 -include config.h \ + -DG=1 -DGRDRV_X \ + -DHAVE_JPEG=1 -DHAVE_LIBJPEG=1 -DHAVE_JPEGLIB_H=1 \ + -DHAVE_PNG_H=1 -DHAVE_LIBPNG=1 -DHAVE_LIBPNG_PNG_H=1 +LDFLAGS = $(LIBS) $(INCS) diff --git a/config.sub b/config.sub @@ -1,958 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script, version 1.1. -# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -if [ x$1 = x ] -then - echo Configuration name missing. 1>&2 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 - echo "or $0 ALIAS" 1>&2 - echo where ALIAS is a recognized configuration type. 1>&2 - exit 1 -fi - -# First pass through any local machine types. -case $1 in - *local*) - echo $1 - exit 0 - ;; - *) - ;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - linux-gnu*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple) - os= - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ - | mipstx39 | mipstx39el \ - | sparc | sparclet | sparclite | sparc64 | v850) - basic_machine=$basic_machine-unknown - ;; - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i[34567]86) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ - | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mipstx39-* | mipstx39el-* \ - | f301-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-cbm - ;; - amigaos | amigados) - basic_machine=m68k-cbm - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-cbm - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | ymp) - basic_machine=ymp-cray - os=-unicos - ;; - cray2) - basic_machine=cray2-cray - os=-unicos - ;; - [ctj]90-cray) - basic_machine=c90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - os=-mvs - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i[34567]86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i[34567]86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i[34567]86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - miniframe) - basic_machine=m68000-convergent - ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - np1) - basic_machine=np1-gould - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | nexen) - basic_machine=i586-pc - ;; - pentiumpro | p6 | k6 | 6x86) - basic_machine=i686-pc - ;; - pentiumii | pentium2) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | nexen-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | k6-* | 6x86-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=rs6000-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - xmp) - basic_machine=xmp-cray - os=-unicos - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sparc) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - -os2_emx) - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \ - | -openstep*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -ctix* | -uts*) - os=-sysv - ;; - -ns2 ) - os=-nextstep2 - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -xenix) - os=-xenix - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-semi) - os=-aout - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f301-fujitsu) - os=-uxpv - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -hpux*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -vxsim* | -vxworks*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os diff --git a/configure b/configure @@ -1,11267 +0,0 @@ -#! /bin/sh -LANG= -LC_ALL= - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-debuglevel set internal checking level - -1 - recover from segmentation faults - 0 - no checks (fastest) - 1 - check memory leaks - 2 - check memory leaks, red zone - 3 - check memory leaks, red zone, pattern filling" -ac_help="$ac_help - --enable-graphics use graphics" -ac_help="$ac_help - --disable-utf8 disable UTF-8 terminal (saves memory)" -ac_help="$ac_help - --without-getaddrinfo compile without getaddrinfo function" -ac_help="$ac_help - --without-ipv6 compile without ipv6" -ac_help="$ac_help - --without-libevent compile without libevent" -ac_help="$ac_help - --without-gpm compile without gpm mouse" -ac_help="$ac_help - --with-ssl(=directory) enable SSL support - --with-ssl=nss enable SSL support through NSS OpenSSL emulation" -ac_help="$ac_help - --disable-ssl-pkgconfig don't use pkgconfig when searching for openssl" -ac_help="$ac_help - --without-zlib compile without zlib compression" -ac_help="$ac_help - --without-brotli compile without brotli compression" -ac_help="$ac_help - --without-bzip2 compile without bzip2 compression" -ac_help="$ac_help - --without-lzma compile without lzma compression" -ac_help="$ac_help - --without-lzip compile without lzip compression" -ac_help="$ac_help - --without-openmp compile without OpenMP" -ac_help="$ac_help - --without-svgalib compile without svgalib graphics driver" -ac_help="$ac_help - --without-x compile without X Window System graphics driver" -ac_help="$ac_help - --without-fb compile without Linux Framebuffer graphics driver" -ac_help="$ac_help - --without-directfb compile without DirectFB graphics driver" -ac_help="$ac_help - --without-pmshell compile without PMShell graphics driver" -ac_help="$ac_help - --without-windows compile without Windows graphics driver" -ac_help="$ac_help - --without-atheos compile without Atheos graphics driver" -ac_help="$ac_help - --without-grx compile without DOS GRX graphics driver" -ac_help="$ac_help - --with-x use the X Window System" -ac_help="$ac_help - --disable-png-pkgconfig don't use pkgconfig when searching for libpng" -ac_help="$ac_help - --without-libjpeg compile without JPEG support" -ac_help="$ac_help - --without-libtiff compile without TIFF support" -ac_help="$ac_help - --without-librsvg compile without SVG support" -ac_help="$ac_help - --disable-svg-pkgconfig don't use pkgconfig when searching for librsvg" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -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 ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$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" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$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) - # 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 << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$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" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - 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) - 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" ;; - - -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 ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=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" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=main.c - -# 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 its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - 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 - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -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 - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -am__api_version="1.4" -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:626: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:679: checking whether build environment is sane" >&5 -# Just in case -sleep 1 -echo timestamp > conftestfile -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) -then - # Ok. - : -else - { echo "configure: error: newly created file is older than distributed files! -Check your system clock" 1>&2; exit 1; } -fi -rm -f conftest* -echo "$ac_t""yes" 1>&6 -if test "$program_transform_name" = s,x,x,; then - program_transform_name= -else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed -s,\\,\\\\,g; s,\$,$$,g -EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed -fi -test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - -# sed with no file args requires a program. -test "$program_transform_name" = "" && program_transform_name="s,x,x," - -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:736: checking whether ${MAKE-make} sets \${MAKE}" >&5 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftestmake <<\EOF -all: - @echo 'ac_maketemp="${MAKE}"' -EOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftestmake -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= -else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - - -PACKAGE=links - -VERSION=2.16 - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } -fi -cat >> confdefs.h <<EOF -#define PACKAGE "$PACKAGE" -EOF - -cat >> confdefs.h <<EOF -#define VERSION "$VERSION" -EOF - - - -missing_dir=`cd $ac_aux_dir && pwd` -echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 -echo "configure:782: checking for working aclocal-${am__api_version}" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal-${am__api_version} - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:795: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 -echo "configure:808: checking for working automake-${am__api_version}" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake-${am__api_version} - echo "$ac_t""found" 1>&6 -else - AUTOMAKE="$missing_dir/missing automake-${am__api_version}" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:821: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi - -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:834: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -ACLOCAL="./missing aclocal" -AUTOCONF="./missing autoconf" -AUTOMAKE="./missing automake" -AUTOHEADER="./missing autoheader" - -export CC -export CPPFLAGS -export CFLAGS -export LDFLAGS -export LIBS - - - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:866: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -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 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:896: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_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 $# -gt 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 - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # Extract the first word of "cl", so it can be a program name with args. -set dummy cl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:947: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -cat > conftest.$ac_ext << EOF - -#line 990 "configure" -#include "confdefs.h" - -main(){return(0);} -EOF -if { (eval echo configure:995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1026: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1054: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&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 - - - -image_formats="GIF PNG XBM" - -static_link=0 -if test -n "`echo "$CC" "$LDFLAGS" "$CFLAGS" "$LIBS" | grep 'static\>'`"; then - static_link=1 -fi - -if test -n "`uname|grep -i bsd`"; then - CPPFLAGS="$CPPFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib" -fi - -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1100: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext <<EOF -#line 1115 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext <<EOF -#line 1132 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext <<EOF -#line 1149 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1180: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1185 "configure" -#include "confdefs.h" -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext <<EOF -#line 1210 "configure" -#include "confdefs.h" -#include <string.h> -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - rm -rf conftest* - 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 <<EOF -#line 1228 "configure" -#include "confdefs.h" -#include <stdlib.h> -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - 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 <<EOF -#line 1249 "configure" -#include "confdefs.h" -#include <ctype.h> -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#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)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -if test $ac_cv_prog_gcc = yes; then - echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:1285: checking whether ${CC-cc} needs -traditional" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_pattern="Autoconf.*'x'" - cat > conftest.$ac_ext <<EOF -#line 1291 "configure" -#include "confdefs.h" -#include <sgtty.h> -Autoconf TIOCGETP -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "$ac_pattern" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_prog_gcc_traditional=yes -else - rm -rf conftest* - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat > conftest.$ac_ext <<EOF -#line 1309 "configure" -#include "confdefs.h" -#include <termio.h> -Autoconf TCGETA -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "$ac_pattern" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - - fi -fi - -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - - - -echo $ac_n "checking for EMX""... $ac_c" 1>&6 -echo "configure:1333: checking for EMX" >&5 -if eval "test \"`echo '$''{'ac_cv_have_emx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1338 "configure" -#include "confdefs.h" - -int main() { -#ifndef __EMX__ - kill me! - #endif -; return 0; } -EOF -if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_emx=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_emx=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_emx" 1>&6 -test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`" -test "$ac_cv_have_emx" = yes && test "$static_link" = 0 && LDFLAGS="$LDFLAGS -Zcrtdll" - -echo $ac_n "checking for OpenWatcom""... $ac_c" 1>&6 -echo "configure:1365: checking for OpenWatcom" >&5 -if eval "test \"`echo '$''{'ac_cv_have_watcom'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1370 "configure" -#include "confdefs.h" - -int main() { -#ifndef __WATCOMC__ - kill me! - #endif -; return 0; } -EOF -if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_watcom=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_watcom=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_watcom" 1>&6 -test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no - -echo $ac_n "checking for DJGPP""... $ac_c" 1>&6 -echo "configure:1396: checking for DJGPP" >&5 -if eval "test \"`echo '$''{'ac_cv_have_djgpp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1401 "configure" -#include "confdefs.h" - -int main() { -#ifndef __DJGPP - kill me! - #endif -; return 0; } -EOF -if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_djgpp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_djgpp=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_djgpp" 1>&6 - -if test "$ac_cv_have_djgpp" = yes; then - static_link=1 - test -n "$DJDIR" && test -d "$DJDIR/net/watt/inc" && CPPFLAGS="-I$DJDIR/net/watt/inc $CPPFLAGS" - test -n "$DJDIR" && test -d "$DJDIR/net/watt/lib" && LDFLAGS="-L$DJDIR/net/watt/lib $LDFLAGS" -fi - -echo $ac_n "checking for volatile""... $ac_c" 1>&6 -echo "configure:1432: checking for volatile" >&5 -if eval "test \"`echo '$''{'ac_cv_have_volatile'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1437 "configure" -#include "confdefs.h" - -int main() { - - volatile int a = 0; - return a; - -; return 0; } -EOF -if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_volatile=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_volatile=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_volatile" 1>&6 -if test "$ac_cv_have_volatile" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_VOLATILE 1 -EOF - -fi - -echo $ac_n "checking for restrict""... $ac_c" 1>&6 -echo "configure:1469: checking for restrict" >&5 -if eval "test \"`echo '$''{'ac_cv_have_restrict'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1474 "configure" -#include "confdefs.h" - - static void f(int * restrict a, int * restrict b) - { - } - -int main() { - - int a, b; - f(&a, &b); - return 0; - -; return 0; } -EOF -if { (eval echo configure:1489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_restrict=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_restrict=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_restrict" 1>&6 -if test "$ac_cv_have_restrict" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_RESTRICT 1 -EOF - -fi - -echo $ac_n "checking for __restrict""... $ac_c" 1>&6 -echo "configure:1511: checking for __restrict" >&5 -if eval "test \"`echo '$''{'ac_cv_have___restrict'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1516 "configure" -#include "confdefs.h" - - static void f(int * __restrict a, int * __restrict b) - { - } - -int main() { - - int a, b; - f(&a, &b); - return 0; - -; return 0; } -EOF -if { (eval echo configure:1531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have___restrict=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have___restrict=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have___restrict" 1>&6 -if test "$ac_cv_have___restrict" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___RESTRICT 1 -EOF - -fi - -echo $ac_n "checking for long long""... $ac_c" 1>&6 -echo "configure:1553: checking for long long" >&5 -if eval "test \"`echo '$''{'ac_cv_have_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1558 "configure" -#include "confdefs.h" - -int main() { -unsigned long long a; -; return 0; } -EOF -if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_long_long=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_long_long=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_long_long" 1>&6 -test "$ac_cv_have_long_long" = yes && cat >> confdefs.h <<\EOF -#define HAVE_LONG_LONG 1 -EOF - - -echo $ac_n "checking for pointer comparison bug""... $ac_c" 1>&6 -echo "configure:1585: checking for pointer comparison bug" >&5 -if eval "test \"`echo '$''{'ac_cv_pointer_comparison_bug'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - if test -n "`echo "$CC"|grep ^tcc`"; then - ac_cv_pointer_comparison_bug=yes - else - ac_cv_pointer_comparison_bug=no - fi - -else - cat > conftest.$ac_ext <<EOF -#line 1598 "configure" -#include "confdefs.h" - - int main() - { - void *p = (void *)-1L; - return p != (void *)-1L; - } - -EOF -if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_pointer_comparison_bug=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_pointer_comparison_bug=yes -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_pointer_comparison_bug" 1>&6 -test "$ac_cv_pointer_comparison_bug" = yes && cat >> confdefs.h <<\EOF -#define HAVE_POINTER_COMPARISON_BUG 1 -EOF - - -if test "$ac_cv_have_long_long" = yes -a "$ac_cv_have_volatile" = yes; then - echo $ac_n "checking for maxint conversion bug""... $ac_c" 1>&6 -echo "configure:1631: checking for maxint conversion bug" >&5 -if eval "test \"`echo '$''{'ac_cv_maxint_conversion_bug'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP-UX; then - ac_cv_maxint_conversion_bug=yes - else - ac_cv_maxint_conversion_bug=no - fi - -else - cat > conftest.$ac_ext <<EOF -#line 1644 "configure" -#include "confdefs.h" - - int main() - { - volatile long long q = 0x7FFFFFEF; - return q < 0; - } - -EOF -if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_maxint_conversion_bug=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_maxint_conversion_bug=yes -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_maxint_conversion_bug" 1>&6 - test "$ac_cv_maxint_conversion_bug" = yes && cat >> confdefs.h <<\EOF -#define HAVE_MAXINT_CONVERSION_BUG 1 -EOF - -fi - - -echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6 -echo "configure:1678: checking for stdlib.h" >&5 -if eval "test \"`echo '$''{'ac_cv_have_stdlib_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1683 "configure" -#include "confdefs.h" -#include <stdlib.h> -int main() { - -; return 0; } -EOF -if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_stdlib_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_stdlib_h=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_stdlib_h" 1>&6 -if test "$ac_cv_have_stdlib_h" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STDLIB_H_X 1 -EOF - -fi - - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:1717: checking for $ac_hdr that defines DIR" >&5 -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1722 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <$ac_hdr> -int main() { -DIR *dirp = 0; -; return 0; } -EOF -if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - ac_header_dirent=$ac_hdr; break -else - echo "$ac_t""no" 1>&6 -fi -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:1755: checking for opendir in -ldir" >&5 -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldir $LIBS" -cat > conftest.$ac_ext <<EOF -#line 1763 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir(); - -int main() { -opendir() -; return 0; } -EOF -if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -ldir" -else - echo "$ac_t""no" 1>&6 -fi - -else -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:1796: checking for opendir in -lx" >&5 -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lx $LIBS" -cat > conftest.$ac_ext <<EOF -#line 1804 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir(); - -int main() { -opendir() -; return 0; } -EOF -if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -lx" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:1838: checking for sys/wait.h that is POSIX.1 compatible" >&5 -if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1843 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <sys/wait.h> -#ifndef WEXITSTATUS -#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) -#endif -#ifndef WIFEXITED -#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif -int main() { -int s; -wait (&s); -s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; -; return 0; } -EOF -if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_sys_wait_h=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_wait_h=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 -if test $ac_cv_header_sys_wait_h = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SYS_WAIT_H 1 -EOF - -fi - -for ac_hdr in alloca.h arpa/inet.h bsd/string.h cygwin/process.h cygwin/version.h fcntl.h grp.h ieee.h interix/interix.h inttypes.h io.h langinfo.h limits.h linux/falloc.h locale.h malloc.h math.h net/socket.h netinet/in_system.h netinet/in_systm.h netinet/ip.h poll.h process.h pwd.h search.h setjmp.h sgtty.h stdarg.h string.h strings.h sys/cygwin.h sys/file.h sys/fmutex.h sys/ioctl.h sys/resource.h sys/select.h sys/time.h sys/un.h sys/utsname.h termios.h time.h umalloc.h unistd.h unixlib.h utime.h uwin.h values.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1883: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1888 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - -if test "$ac_cv_header_stdarg_h" != yes; then - { echo "configure: error: stdarg.h not present" 1>&2; exit 1; } -fi - -echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1925: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1930 "configure" -#include "confdefs.h" - -int main() { - -/* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; -/* SunOS 4.1.1 cc rejects this. */ -char const *const *ccp; -char **p; -/* NEC SVR4.0.2 mips cc rejects this. */ -struct point {int x, y;}; -static struct point const zero = {0,0}; -/* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in an arm - of an if-expression whose if-part is not a constant expression */ -const char *g = "string"; -ccp = &g + (g ? g-g : 0); -/* HPUX 7.0 cc rejects these. */ -++ccp; -p = (char**) ccp; -ccp = (char const *const *) p; -{ /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; -} -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; -} -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; -} -{ /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} - -; return 0; } -EOF -if { (eval echo configure:1979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_c_const" 1>&6 -if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF -#define const -EOF - -fi - -echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:2000: checking for inline" >&5 -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat > conftest.$ac_ext <<EOF -#line 2007 "configure" -#include "confdefs.h" - -int main() { -} $ac_kw foo() { -; return 0; } -EOF -if { (eval echo configure:2014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_inline=$ac_kw; break -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* -done - -fi - -echo "$ac_t""$ac_cv_c_inline" 1>&6 -case "$ac_cv_c_inline" in - inline | yes) ;; - no) cat >> confdefs.h <<\EOF -#define inline -EOF - ;; - *) cat >> confdefs.h <<EOF -#define inline $ac_cv_c_inline -EOF - ;; -esac - -echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:2040: checking for size_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2045 "configure" -#include "confdefs.h" -#include <sys/types.h> -#if STDC_HEADERS -#include <stdlib.h> -#include <stddef.h> -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_size_t=yes -else - rm -rf conftest* - ac_cv_type_size_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_size_t" 1>&6 -if test $ac_cv_type_size_t = no; then - cat >> confdefs.h <<\EOF -#define size_t unsigned -EOF - -fi - -echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:2073: checking for pid_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2078 "configure" -#include "confdefs.h" -#include <sys/types.h> -#if STDC_HEADERS -#include <stdlib.h> -#include <stddef.h> -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_pid_t=yes -else - rm -rf conftest* - ac_cv_type_pid_t=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_pid_t" 1>&6 -if test $ac_cv_type_pid_t = no; then - cat >> confdefs.h <<\EOF -#define pid_t int -EOF - -fi - -echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:2106: checking for socklen_t" >&5 -if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2111 "configure" -#include "confdefs.h" - - #include <sys/types.h> - #include <sys/socket.h> - -int main() { - - socklen_t a = 0; - return a; - -; return 0; } -EOF -if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_socklen_t=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_socklen_t=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_socklen_t" 1>&6 -if test "$ac_cv_have_socklen_t" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SOCKLEN_T 1 -EOF - -fi -echo $ac_n "checking for errno""... $ac_c" 1>&6 -echo "configure:2145: checking for errno" >&5 -if eval "test \"`echo '$''{'ac_cv_have_errno'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2150 "configure" -#include "confdefs.h" - - #include <errno.h> - -int main() { - - errno = 0; - return errno; - -; return 0; } -EOF -if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_errno=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_errno=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_errno" 1>&6 -if test "$ac_cv_have_errno" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ERRNO 1 -EOF - -fi - -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:2184: checking whether time.h and sys/time.h may both be included" >&5 -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2189 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <sys/time.h> -#include <time.h> -int main() { -struct tm *tp; -; return 0; } -EOF -if { (eval echo configure:2198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_time=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_time=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_header_time" 1>&6 -if test $ac_cv_header_time = yes; then - cat >> confdefs.h <<\EOF -#define TIME_WITH_SYS_TIME 1 -EOF - -fi - -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:2219: checking whether struct tm is in sys/time.h or time.h" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2224 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <time.h> -int main() { -struct tm *tp; tp->tm_sec; -; return 0; } -EOF -if { (eval echo configure:2232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_tm=time.h -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_tm=sys/time.h -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_struct_tm" 1>&6 -if test $ac_cv_struct_tm = sys/time.h; then - cat >> confdefs.h <<\EOF -#define TM_IN_SYS_TIME 1 -EOF - -fi - - -if test "$ac_cv_have_emx" = yes; then - default_short=2 - default_int=4 - default_long=4 - default_long_long=8 -else - default_short=0 - default_int=0 - default_long=0 - default_long_long=0 -fi - -echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6 -echo "configure:2266: checking size of unsigned short" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_unsigned_short="$default_short" -else - cat > conftest.$ac_ext <<EOF -#line 2274 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <sys/types.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned short)); - exit(0); -} -EOF -if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_short=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_short=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6 -cat >> confdefs.h <<EOF -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short -EOF - - -echo $ac_n "checking size of unsigned""... $ac_c" 1>&6 -echo "configure:2306: checking size of unsigned" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_unsigned="$default_int" -else - cat > conftest.$ac_ext <<EOF -#line 2314 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <sys/types.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned)); - exit(0); -} -EOF -if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned" 1>&6 -cat >> confdefs.h <<EOF -#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned -EOF - - -echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6 -echo "configure:2346: checking size of unsigned long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_unsigned_long="$default_long" -else - cat > conftest.$ac_ext <<EOF -#line 2354 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <sys/types.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long)); - exit(0); -} -EOF -if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6 -cat >> confdefs.h <<EOF -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long -EOF - - -if test "$ac_cv_have_long_long" = yes; then - echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6 -echo "configure:2387: checking size of unsigned long long" >&5 -if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_unsigned_long_long="$default_long_long" -else - cat > conftest.$ac_ext <<EOF -#line 2395 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <sys/types.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(unsigned long long)); - exit(0); -} -EOF -if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_sizeof_unsigned_long_long=`cat conftestval` -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_unsigned_long_long=0 -fi -rm -fr conftest* -fi - -fi -echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6 -cat >> confdefs.h <<EOF -#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long -EOF - - -fi -if test "$ac_cv_sizeof_unsigned" -ne 0 && test "$ac_cv_sizeof_unsigned" -lt 4; then - { echo "configure: error: integer must have at least 32 bits" 1>&2; exit 1; } -fi -echo $ac_n "checking for big endian""... $ac_c" 1>&6 -echo "configure:2431: checking for big endian" >&5 -if eval "test \"`echo '$''{'ac_cv_big_endian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_big_endian=no -else - cat > conftest.$ac_ext <<EOF -#line 2439 "configure" -#include "confdefs.h" - - long l; - char *c = (char *)&l; - int main() - { - l = 0x12345678L; - return !(c[sizeof(long) - 1] == 0x78 && c[sizeof(long) - 2] == 0x56 && c[sizeof(long) - 3] == 0x34 && c[sizeof(long) - 4] == 0x12); - } - -EOF -if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_big_endian=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_big_endian=no -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_big_endian" 1>&6 -echo $ac_n "checking for little endian""... $ac_c" 1>&6 -echo "configure:2468: checking for little endian" >&5 -if eval "test \"`echo '$''{'ac_cv_little_endian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_little_endian="$ac_cv_have_emx" -else - cat > conftest.$ac_ext <<EOF -#line 2476 "configure" -#include "confdefs.h" - - long l; - char *c = (char *)&l; - int main() - { - l = 0x12345678L; - return !(c[0] == 0x78 && c[1] == 0x56 && c[2] == 0x34 && c[3] == 0x12); - } - -EOF -if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_little_endian=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_little_endian=no -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_little_endian" 1>&6 - -if test "$ac_cv_big_endian" = yes; then - cat >> confdefs.h <<\EOF -#define C_BIG_ENDIAN 1 -EOF - -else if test "$ac_cv_little_endian" = yes; then - cat >> confdefs.h <<\EOF -#define C_LITTLE_ENDIAN 1 -EOF - -fi -fi - -echo $ac_n "checking if rename can replace existing files""... $ac_c" 1>&6 -echo "configure:2519: checking if rename can replace existing files" >&5 -if eval "test \"`echo '$''{'ac_cv_rename_over_existing_files'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_rename_over_existing_files=no -else - cat > conftest.$ac_ext <<EOF -#line 2527 "configure" -#include "confdefs.h" - - #include <fcntl.h> - #include <stdio.h> - #include <unistd.h> - - int main() - { - int ret; - close(creat("conftest.rename1", 0600)); - close(creat("conftest.rename2", 0600)); - ret = rename("conftest.rename1", "conftest.rename2"); - unlink("conftest.rename1"); - unlink("conftest.rename2"); - return !!ret; - } - -EOF -if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_rename_over_existing_files=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_rename_over_existing_files=no -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_rename_over_existing_files" 1>&6 - -if test "$ac_cv_rename_over_existing_files" = yes; then - cat >> confdefs.h <<\EOF -#define RENAME_OVER_EXISTING_FILES 1 -EOF - -fi - -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2571: checking return type of signal handlers" >&5 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2576 "configure" -#include "confdefs.h" -#include <sys/types.h> -#include <signal.h> -#ifdef signal -#undef signal -#endif -#ifdef __cplusplus -extern "C" void (*signal (int, void (*)(int)))(int); -#else -void (*signal ()) (); -#endif - -int main() { -int i; -; return 0; } -EOF -if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_signal=void -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_signal=int -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_type_signal" 1>&6 -cat >> confdefs.h <<EOF -#define RETSIGTYPE $ac_cv_type_signal -EOF - - -echo $ac_n "checking for strftime""... $ac_c" 1>&6 -echo "configure:2612: checking for strftime" >&5 -if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2617 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char strftime(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char strftime(); - -int main() { - -/* 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_strftime) || defined (__stub___strftime) -choke me -#else -strftime(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_strftime=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_strftime=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_STRFTIME 1 -EOF - -else - echo "$ac_t""no" 1>&6 -# strftime is in -lintl on SCO UNIX. -echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 -echo "configure:2662: checking for strftime in -lintl" >&5 -ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lintl $LIBS" -cat > conftest.$ac_ext <<EOF -#line 2670 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char strftime(); - -int main() { -strftime() -; return 0; } -EOF -if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_STRFTIME 1 -EOF - -LIBS="-lintl $LIBS" -else - echo "$ac_t""no" 1>&6 -fi - -fi - -echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:2708: checking for vprintf" >&5 -if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2713 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char vprintf(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char vprintf(); - -int main() { - -/* 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_vprintf) || defined (__stub___vprintf) -choke me -#else -vprintf(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_vprintf=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_vprintf=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_VPRINTF 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - -if test "$ac_cv_func_vprintf" != yes; then -echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:2760: checking for _doprnt" >&5 -if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2765 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char _doprnt(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char _doprnt(); - -int main() { - -/* 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__doprnt) || defined (__stub____doprnt) -choke me -#else -_doprnt(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func__doprnt=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func__doprnt=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define HAVE_DOPRNT 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - -fi - -for ac_func in bcmp bcopy bzero calloc cfmakeraw chmod cygwin_conv_path cygwin_conv_to_full_win32_path dirfd fallocate getcwd getgrgid getpagesize getpid getpwuid getrlimit gettimeofday kqueue malloc_trim mallopt mktime nl_langinfo poll popen posix_fallocate raise select setlocale setpgid setrlimit setsid sigaction sigblock sigdelset sigprocmask sigsetmask snprintf strdup strmode strptime strtod strtoimax strtol strtoll strtoq strtoul tdelete tempnam tfind tsearch uname unixpath2win utime utimes uwin_path winpath2unix _heapmin _ucreate _udefault _udestroy _uopen __strtoll -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2815: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2820 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - - -for ac_func in strlen -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2872: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2877 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strlen""... $ac_c" 1>&6 -echo "configure:2925: checking for strlen" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strlen'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2930 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strlen(""); return 0; -; return 0; } -EOF -if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strlen=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strlen=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strlen" 1>&6 -if test "$ac_cv_have_strlen" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRLEN 1 -EOF - -fi - -for ac_func in strcpy -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2961: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 2966 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strcpy""... $ac_c" 1>&6 -echo "configure:3014: checking for strcpy" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strcpy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3019 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; strcpy(a, ""); return 0; -; return 0; } -EOF -if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strcpy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strcpy=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strcpy" 1>&6 -if test "$ac_cv_have_strcpy" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRCPY 1 -EOF - -fi - -for ac_func in strncpy -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3050: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3055 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strncpy""... $ac_c" 1>&6 -echo "configure:3103: checking for strncpy" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strncpy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3108 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; strncpy(a, "", 1); return 0; -; return 0; } -EOF -if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strncpy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strncpy=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strncpy" 1>&6 -if test "$ac_cv_have_strncpy" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRNCPY 1 -EOF - -fi - -for ac_func in strchr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3139: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3144 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strchr""... $ac_c" 1>&6 -echo "configure:3192: checking for strchr" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strchr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3197 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strchr("", 0); return 0; -; return 0; } -EOF -if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strchr=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strchr=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strchr" 1>&6 -if test "$ac_cv_have_strchr" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRCHR 1 -EOF - -fi - -for ac_func in strrchr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3228: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3233 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strrchr""... $ac_c" 1>&6 -echo "configure:3281: checking for strrchr" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strrchr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3286 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strrchr("", 0); return 0; -; return 0; } -EOF -if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strrchr=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strrchr=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strrchr" 1>&6 -if test "$ac_cv_have_strrchr" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRRCHR 1 -EOF - -fi - -for ac_func in strcmp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3317: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3322 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strcmp""... $ac_c" 1>&6 -echo "configure:3370: checking for strcmp" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strcmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3375 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strcmp("", ""); return 0; -; return 0; } -EOF -if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strcmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strcmp=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strcmp" 1>&6 -if test "$ac_cv_have_strcmp" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRCMP 1 -EOF - -fi - -for ac_func in strncmp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3406: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3411 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strncmp""... $ac_c" 1>&6 -echo "configure:3459: checking for strncmp" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strncmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3464 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strncmp("", "", 1); return 0; -; return 0; } -EOF -if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strncmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strncmp=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strncmp" 1>&6 -if test "$ac_cv_have_strncmp" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRNCMP 1 -EOF - -fi - -for ac_func in strcspn -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3495: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3500 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strcspn""... $ac_c" 1>&6 -echo "configure:3548: checking for strcspn" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strcspn'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3553 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strcspn("", ""); return 0; -; return 0; } -EOF -if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strcspn=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strcspn=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strcspn" 1>&6 -if test "$ac_cv_have_strcspn" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRCSPN 1 -EOF - -fi - -for ac_func in strspn -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3584: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3589 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strspn""... $ac_c" 1>&6 -echo "configure:3637: checking for strspn" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strspn'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3642 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strspn("", ""); return 0; -; return 0; } -EOF -if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strspn=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strspn=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strspn" 1>&6 -if test "$ac_cv_have_strspn" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRSPN 1 -EOF - -fi - -for ac_func in strstr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3673: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3678 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strstr""... $ac_c" 1>&6 -echo "configure:3726: checking for strstr" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strstr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3731 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -strstr("", ""); return 0; -; return 0; } -EOF -if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strstr=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strstr=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strstr" 1>&6 -if test "$ac_cv_have_strstr" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRSTR 1 -EOF - -fi - -for ac_func in memchr -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3762: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3767 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memchr""... $ac_c" 1>&6 -echo "configure:3815: checking for memchr" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memchr'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3820 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; memchr(a, 0, 1); return 0; -; return 0; } -EOF -if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memchr=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memchr=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memchr" 1>&6 -if test "$ac_cv_have_memchr" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMCHR 1 -EOF - -fi - -for ac_func in memcmp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3851: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3856 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memcmp""... $ac_c" 1>&6 -echo "configure:3904: checking for memcmp" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memcmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3909 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; memcmp(a, a, 1); return 0; -; return 0; } -EOF -if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memcmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memcmp=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memcmp" 1>&6 -if test "$ac_cv_have_memcmp" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMCMP 1 -EOF - -fi - -for ac_func in memcpy -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3940: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3945 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memcpy""... $ac_c" 1>&6 -echo "configure:3993: checking for memcpy" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memcpy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 3998 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; memcpy(a, a, 1); return 0; -; return 0; } -EOF -if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memcpy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memcpy=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memcpy" 1>&6 -if test "$ac_cv_have_memcpy" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMCPY 1 -EOF - -fi - -for ac_func in memmove -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4029: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4034 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memmove""... $ac_c" 1>&6 -echo "configure:4082: checking for memmove" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memmove'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4087 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; memmove(a, a, 1); return 0; -; return 0; } -EOF -if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memmove=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memmove=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memmove" 1>&6 -if test "$ac_cv_have_memmove" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMMOVE 1 -EOF - -fi - -for ac_func in memset -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4118: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4123 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memset""... $ac_c" 1>&6 -echo "configure:4171: checking for memset" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memset'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4176 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char a[1]; memset(a, 0, 1); return 0; -; return 0; } -EOF -if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memset=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memset=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memset" 1>&6 -if test "$ac_cv_have_memset" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMSET 1 -EOF - -fi - -for ac_func in memmem -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4207: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4212 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for memmem""... $ac_c" 1>&6 -echo "configure:4260: checking for memmem" >&5 -if eval "test \"`echo '$''{'ac_cv_have_memmem'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4265 "configure" -#include "confdefs.h" -#define _GNU_SOURCE -#include <string.h> -int main() { -memmem("", 0, "", 0); return 0; -; return 0; } -EOF -if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_memmem=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_memmem=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_memmem" 1>&6 -if test "$ac_cv_have_memmem" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MEMMEM 1 -EOF - -fi - -for ac_func in strerror -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4297: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4302 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for strerror""... $ac_c" 1>&6 -echo "configure:4350: checking for strerror" >&5 -if eval "test \"`echo '$''{'ac_cv_have_strerror'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4355 "configure" -#include "confdefs.h" -#include <string.h> -int main() { -char *c = strerror(1); return 0; -; return 0; } -EOF -if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_strerror=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_strerror=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_strerror" 1>&6 -if test "$ac_cv_have_strerror" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_STRERROR 1 -EOF - -fi - -echo $ac_n "checking for sigfillset""... $ac_c" 1>&6 -echo "configure:4384: checking for sigfillset" >&5 -if eval "test \"`echo '$''{'ac_cv_have_sigfillset'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4389 "configure" -#include "confdefs.h" -#include <signal.h> -int main() { -sigset_t set; sigfillset(&set); -; return 0; } -EOF -if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_sigfillset=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_sigfillset=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_sigfillset" 1>&6 -if test "$ac_cv_have_sigfillset" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGFILLSET 1 -EOF - -fi - -echo $ac_n "checking for sigsetjmp/siglongjmp""... $ac_c" 1>&6 -echo "configure:4418: checking for sigsetjmp/siglongjmp" >&5 -if eval "test \"`echo '$''{'ac_cv_have_sigsetjmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4423 "configure" -#include "confdefs.h" -#include <setjmp.h> -int main() { -sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2); -; return 0; } -EOF -if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_sigsetjmp=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_sigsetjmp=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_sigsetjmp" 1>&6 -if test "$ac_cv_have_sigsetjmp" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SIGSETJMP 1 -EOF - -fi - -echo $ac_n "checking for __builtin_add_overflow""... $ac_c" 1>&6 -echo "configure:4452: checking for __builtin_add_overflow" >&5 -if eval "test \"`echo '$''{'ac_cv_have___builtin_add_overflow'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4457 "configure" -#include "confdefs.h" - -int main() { -volatile int a = 1, b = 2; int c; return __builtin_add_overflow(a, b, &c); -; return 0; } -EOF -if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have___builtin_add_overflow=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have___builtin_add_overflow=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have___builtin_add_overflow" 1>&6 -if test "$ac_cv_have___builtin_add_overflow" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_ADD_OVERFLOW 1 -EOF - -fi - -echo $ac_n "checking for __builtin_clz""... $ac_c" 1>&6 -echo "configure:4486: checking for __builtin_clz" >&5 -if eval "test \"`echo '$''{'ac_cv_have___builtin_clz'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4491 "configure" -#include "confdefs.h" - -int main() { -volatile unsigned a = 1; return __builtin_clz(a); -; return 0; } -EOF -if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have___builtin_clz=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have___builtin_clz=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have___builtin_clz" 1>&6 -if test "$ac_cv_have___builtin_clz" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_CLZ 1 -EOF - -fi - - -if test "$ac_cv_func_select" != yes; then - { echo "configure: error: select function not present" 1>&2; exit 1; } -fi - -if test "$ac_cv_func_strmode" != yes; then - echo $ac_n "checking for strmode in -lbsd""... $ac_c" 1>&6 -echo "configure:4526: checking for strmode in -lbsd" >&5 -ac_lib_var=`echo bsd'_'strmode | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lbsd $LIBS" -cat > conftest.$ac_ext <<EOF -#line 4534 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char strmode(); - -int main() { -strmode() -; return 0; } -EOF -if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lbsd $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -echo $ac_n "checking for requested debug level""... $ac_c" 1>&6 -echo "configure:4576: checking for requested debug level" >&5 -# Check whether --enable-debuglevel or --disable-debuglevel was given. -if test "${enable_debuglevel+set}" = set; then - enableval="$enable_debuglevel" - cf_debuglevel="$enableval" -else - cf_debuglevel=0 -fi - -if test "$cf_debuglevel" = no; then cf_debuglevel=0; fi -if test "$cf_debuglevel" = yes; then cf_debuglevel=2; fi -echo "$ac_t""$cf_debuglevel" 1>&6 -if test "$cf_debuglevel" != -1 && test "$cf_debuglevel" != 0 && test "$cf_debuglevel" != 1 && test "$cf_debuglevel" != 2 && test "$cf_debuglevel" != 3; then - { echo "configure: error: Invalid debuglevel specified" 1>&2; exit 1; } -fi -cat >> confdefs.h <<EOF -#define DEBUGLEVEL $cf_debuglevel -EOF - - -echo $ac_n "checking if you want to enable javascript""... $ac_c" 1>&6 -echo "configure:4597: checking if you want to enable javascript" >&5 -cf_use_javascript=no -# Check whether --enable-javascript or --disable-javascript was given. -if test "${enable_javascript+set}" = set; then - enableval="$enable_javascript" - cf_use_javascript="$enableval" -fi - -echo "$ac_t""$cf_use_javascript" 1>&6 -if test "$cf_use_javascript" = yes; then - cat >> confdefs.h <<\EOF -#define JS 1 -EOF - - echo $ac_n "checking if you want to link with system libfl""... $ac_c" 1>&6 -echo "configure:4612: checking if you want to link with system libfl" >&5 - cf_use_libfl=no - # Check whether --with-libfl or --without-libfl was given. -if test "${with_libfl+set}" = set; then - withval="$with_libfl" - cf_use_libfl="$withval" -fi - - echo "$ac_t""$cf_use_libfl" 1>&6 - if test "$cf_use_libfl" != no; then - LIBS="$LIBS -lfl" - else - cat >> confdefs.h <<\EOF -#define CHCEME_FLEXI_LIBU 1 -EOF - - fi - - reg_exp_mode="NONE" - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4638: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for libpcre""... $ac_c" 1>&6 -echo "configure:4682: checking for libpcre" >&5 - - if $PKG_CONFIG --exists "libpcre" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking LIBPCRE_CFLAGS""... $ac_c" 1>&6 -echo "configure:4689: checking LIBPCRE_CFLAGS" >&5 - LIBPCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre"` - echo "$ac_t""$LIBPCRE_CFLAGS" 1>&6 - - echo $ac_n "checking LIBPCRE_LIBS""... $ac_c" 1>&6 -echo "configure:4694: checking LIBPCRE_LIBS" >&5 - LIBPCRE_LIBS=`$PKG_CONFIG --libs "libpcre"` - echo "$ac_t""$LIBPCRE_LIBS" 1>&6 - else - LIBPCRE_CFLAGS="" - LIBPCRE_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - LIBPCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_libpcre=yes - else - pkgconfig_libpcre=no - fi - - if test "$pkgconfig_libpcre" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPCRE_CFLAGS" - LIBS="$LIBPCRE_LIBS $LIBS" - fi - echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6 -echo "configure:4725: checking for pcre_compile in -lpcre" >&5 -ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpcre $LIBS" -cat > conftest.$ac_ext <<EOF -#line 4733 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char pcre_compile(); - -int main() { -pcre_compile() -; return 0; } -EOF -if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo pcre | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lpcre $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - for ac_hdr in pcre.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4775: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4780 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_lib_pcre_pcre_compile" = yes && test "$ac_cv_header_pcre_h" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_PCRE 1 -EOF - - reg_exp_mode="PCRE" - else - for ac_func in regcomp -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4821: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4826 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - for ac_hdr in regex.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4877: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4882 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_func_regcomp" = yes && test "$ac_cv_header_regex_h" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_REGEX 1 -EOF - - reg_exp_mode="LIBC" - fi - fi - echo $ac_n "checking for fmod in -lm""... $ac_c" 1>&6 -echo "configure:4922: checking for fmod in -lm" >&5 -ac_lib_var=`echo m'_'fmod | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext <<EOF -#line 4930 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char fmod(); - -int main() { -fmod() -; return 0; } -EOF -if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lm $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - -fi - -cf_use_graphics=no -echo $ac_n "checking if you want to use graphics""... $ac_c" 1>&6 -echo "configure:4972: checking if you want to use graphics" >&5 -# Check whether --enable-graphics or --disable-graphics was given. -if test "${enable_graphics+set}" = set; then - enableval="$enable_graphics" - cf_use_graphics="$enableval" -fi - -echo "$ac_t""$cf_use_graphics" 1>&6 - -echo $ac_n "checking if you want to enable UTF-8 terminal""... $ac_c" 1>&6 -echo "configure:4982: checking if you want to enable UTF-8 terminal" >&5 -cf_enable_utf8=yes -# Check whether --enable-utf8 or --disable-utf8 was given. -if test "${enable_utf8+set}" = set; then - enableval="$enable_utf8" - cf_enable_utf8="$enableval" -fi - -test "$ac_cv_have_emx" = yes && cf_enable_utf8=no -test "$ac_cv_have_djgpp" = yes && cf_enable_utf8=no -echo "$ac_t""$cf_enable_utf8" 1>&6 - -if test "$cf_enable_utf8" != no; then - cat >> confdefs.h <<\EOF -#define ENABLE_UTF8 1 -EOF - -fi - - - -for ac_func in clock_gettime -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5006: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5011 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -if test $ac_cv_func_clock_gettime = no; then - echo $ac_n "checking for clock_gettime in -lrt""... $ac_c" 1>&6 -echo "configure:5060: checking for clock_gettime in -lrt" >&5 -ac_lib_var=`echo rt'_'clock_gettime | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lrt $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5068 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char clock_gettime(); - -int main() { -clock_gettime() -; return 0; } -EOF -if { (eval echo configure:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lrt $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test $ac_cv_lib_rt_clock_gettime = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_CLOCK_GETTIME 1 -EOF - - fi -fi - -echo $ac_n "checking for socket""... $ac_c" 1>&6 -echo "configure:5115: checking for socket" >&5 -if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5120 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char socket(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char socket(); - -int main() { - -/* 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_socket) || defined (__stub___socket) -choke me -#else -socket(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_socket=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_socket=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cf_result=yes -else - echo "$ac_t""no" 1>&6 -cf_result=no -fi - -if test "$cf_result" = no; then - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:5165: checking for socket in -lsocket" >&5 -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5173 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char socket(); - -int main() { -socket() -; return 0; } -EOF -if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lsocket $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_socket_socket" = no; then - echo $ac_n "checking for socket in -lnetwork""... $ac_c" 1>&6 -echo "configure:5213: checking for socket in -lnetwork" >&5 -ac_lib_var=`echo network'_'socket | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lnetwork $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5221 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char socket(); - -int main() { -socket() -; return 0; } -EOF -if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo network | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lnetwork $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_network_socket" = no; then - echo $ac_n "checking for socket in -lwatt""... $ac_c" 1>&6 -echo "configure:5261: checking for socket in -lwatt" >&5 -ac_lib_var=`echo watt'_'socket | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lwatt $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5269 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char socket(); - -int main() { -socket() -; return 0; } -EOF -if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo watt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lwatt $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_watt_socket" = no; then - { echo "configure: error: socket function not present" 1>&2; exit 1; } - fi - fi - fi -fi -echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 -echo "configure:5314: checking for setsockopt" >&5 -if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5319 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char setsockopt(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char setsockopt(); - -int main() { - -/* 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_setsockopt) || defined (__stub___setsockopt) -choke me -#else -setsockopt(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_setsockopt=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_setsockopt=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cf_result=yes -else - echo "$ac_t""no" 1>&6 -cf_result=no -fi - -if test "$cf_result" = no; then - echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 -echo "configure:5364: checking for setsockopt in -lsocket" >&5 -ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5372 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char setsockopt(); - -int main() { -setsockopt() -; return 0; } -EOF -if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lsocket $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - -fi - -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:5413: checking for gethostbyname" >&5 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5418 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char gethostbyname(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { - -/* 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 -#else -gethostbyname(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_gethostbyname=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_gethostbyname=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cf_result=yes -else - echo "$ac_t""no" 1>&6 -cf_result=no -fi - -if test "$cf_result" = no; then - echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 -echo "configure:5463: checking for gethostbyname in -lsocket" >&5 -ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5471 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { -gethostbyname() -; return 0; } -EOF -if { (eval echo configure:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lsocket $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - cf_result="$ac_cv_lib_socket_gethostbyname" - if test "$ac_cv_lib_socket_gethostbyname" = no; then - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:5512: checking for gethostbyname in -lnsl" >&5 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lnsl $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5520 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gethostbyname(); - -int main() { -gethostbyname() -; return 0; } -EOF -if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lnsl $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - cf_result="$ac_cv_lib_nsl_gethostbyname" - fi -fi -test "$cf_result" = yes && cat >> confdefs.h <<\EOF -#define HAVE_GETHOSTBYNAME 1 -EOF - - -if test "$cf_result" = yes && test "$ac_cv_have_watcom" = yes -o "`uname -s`" = SunOS; then - echo $ac_n "checking for flawed gethostbyname""... $ac_c" 1>&6 -echo "configure:5568: checking for flawed gethostbyname" >&5 -if eval "test \"`echo '$''{'ac_cv_gethostbyname_bug'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test "$cross_compiling" = yes; then - ac_cv_gethostbyname_bug="$ac_cv_have_watcom" -else - cat > conftest.$ac_ext <<EOF -#line 5576 "configure" -#include "confdefs.h" - - #include <netdb.h> - int main() - { - return !gethostbyname("www.gnu.org"); - } - -EOF -if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_gethostbyname_bug=no -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_gethostbyname_bug=yes -fi -rm -fr conftest* -fi - - -fi - -echo "$ac_t""$ac_cv_gethostbyname_bug" 1>&6 - test "$ac_cv_gethostbyname_bug" = yes && cat >> confdefs.h <<\EOF -#define HAVE_GETHOSTBYNAME_BUG 1 -EOF - -fi - -# Check whether --with-getaddrinfo or --without-getaddrinfo was given. -if test "${with_getaddrinfo+set}" = set; then - withval="$with_getaddrinfo" - if test "$withval" = no; then disable_getaddrinfo=yes; else disable_getaddrinfo=no; fi -fi - - -if test "$disable_getaddrinfo" != yes; then - for ac_func in getaddrinfo freeaddrinfo gai_strerror -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5619: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5624 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_func_getaddrinfo" = yes -a "$ac_cv_func_freeaddrinfo" = yes; then - cf_have_getaddrinfo=yes - else - cf_have_getaddrinfo=no - fi -else - cf_have_getaddrinfo=no -fi - -for ac_func in inet_ntop inet_pton herror -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5683: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5688 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - -# Check whether --with-ipv6 or --without-ipv6 was given. -if test "${with_ipv6+set}" = set; then - withval="$with_ipv6" - if test "$withval" = no; then disable_ipv6=yes; else disable_ipv6=no; fi -fi - - -echo $ac_n "checking for ipv6""... $ac_c" 1>&6 -echo "configure:5744: checking for ipv6" >&5 -if eval "test \"`echo '$''{'ac_cv_have_ipv6'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5749 "configure" -#include "confdefs.h" - - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> - -int main() { - - struct sockaddr_in6 sin6; - sin6.sin6_family = AF_INET6; - -; return 0; } -EOF -if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_ipv6=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_ipv6=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_ipv6" 1>&6 -if test "$disable_ipv6" != yes -a "$ac_cv_have_ipv6" = yes -a "$cf_have_getaddrinfo" = yes; then - cf_have_ipv6=yes - cat >> confdefs.h <<\EOF -#define SUPPORT_IPV6 1 -EOF - -else - cf_have_ipv6=no -fi -echo $ac_n "checking for sockaddr_in6.sin6_scope_id""... $ac_c" 1>&6 -echo "configure:5787: checking for sockaddr_in6.sin6_scope_id" >&5 -if eval "test \"`echo '$''{'ac_cv_have_sin6_scope_id'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5792 "configure" -#include "confdefs.h" - - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> - -int main() { - - struct sockaddr_in6 sin6; - sin6.sin6_scope_id = 0; - -; return 0; } -EOF -if { (eval echo configure:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_sin6_scope_id=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_sin6_scope_id=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_sin6_scope_id" 1>&6 -test "$ac_cv_have_sin6_scope_id" = yes && cat >> confdefs.h <<\EOF -#define SUPPORT_IPV6_SCOPE 1 -EOF - - -# Check whether --with-libevent or --without-libevent was given. -if test "${with_libevent+set}" = set; then - withval="$with_libevent" - if test "$withval" = no; then disable_libevent=yes; else disable_libevent=no; fi -fi - - -cf_have_libevent=no -if test "$disable_libevent" != yes; then - for ac_hdr in event.h ev-event.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5838: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5843 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_header_event_h" = yes; then - echo $ac_n "checking for event_loop in -levent""... $ac_c" 1>&6 -echo "configure:5876: checking for event_loop in -levent" >&5 -ac_lib_var=`echo event'_'event_loop | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-levent $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5884 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char event_loop(); - -int main() { -event_loop() -; return 0; } -EOF -if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo event | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-levent $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_event_event_loop" = yes; then - cf_have_libevent=libevent - fi - fi - if test "$cf_have_libevent" = no; then - if test "$ac_cv_header_event_h" = yes -o "$ac_cv_header_ev_event_h" = yes; then - echo $ac_n "checking for event_loop in -lev""... $ac_c" 1>&6 -echo "configure:5929: checking for event_loop in -lev" >&5 -ac_lib_var=`echo ev'_'event_loop | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lev $LIBS" -cat > conftest.$ac_ext <<EOF -#line 5937 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char event_loop(); - -int main() { -event_loop() -; return 0; } -EOF -if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo ev | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lev $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_ev_event_loop" = yes; then - cf_have_libevent=libev - fi - fi - fi -fi -if test "$cf_have_libevent" != no; then - for ac_func in event_base_set event_get_version event_get_method event_base_free event_base_new event_reinit event_base_get_method event_config_set_flag event_get_struct_event_size -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5985: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 5990 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -fi - -if test "$cf_use_graphics" != no; then - echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 -echo "configure:6041: checking for pow in -lm" >&5 -ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext <<EOF -#line 6049 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char pow(); - -int main() { -pow() -; return 0; } -EOF -if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lm $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_m_pow" = no; then - echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:6089: checking for main in -lm" >&5 -ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext <<EOF -#line 6097 "configure" -#include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lm $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - echo $ac_n "checking for pow""... $ac_c" 1>&6 -echo "configure:6133: checking for pow" >&5 -if eval "test \"`echo '$''{'ac_cv_have_pow'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6138 "configure" -#include "confdefs.h" -#include <math.h> -int main() { -pow(1.1, 2.2); return 0; -; return 0; } -EOF -if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_pow=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_pow=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_pow" 1>&6 - if test "$ac_cv_have_pow" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_POW 1 -EOF - - fi - echo $ac_n "checking for powf""... $ac_c" 1>&6 -echo "configure:6166: checking for powf" >&5 -if eval "test \"`echo '$''{'ac_cv_have_powf'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6171 "configure" -#include "confdefs.h" -#include <math.h> -int main() { -powf(1.1, 2.2); return 0; -; return 0; } -EOF -if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_powf=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_powf=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_powf" 1>&6 - if test "$ac_cv_have_powf" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_POWF 1 -EOF - - fi - if test "$ac_cv_have_pow" != yes -a "$ac_cv_have_powf" != yes; then - { echo "configure: error: pow and powf functions not present" 1>&2; exit 1; } - fi -fi - -# Check whether --with-gpm or --without-gpm was given. -if test "${with_gpm+set}" = set; then - withval="$with_gpm" - if test "$withval" = no; then disable_gpm=yes; else disable_gpm=no; fi -fi - - -if test "$disable_gpm" != yes -a "$ac_cv_have_djgpp" != yes; then - for ac_hdr in gpm.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6215: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6220 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 -echo "configure:6252: checking for Gpm_Open in -lgpm" >&5 -ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lgpm $LIBS" -cat > conftest.$ac_ext <<EOF -#line 6260 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char Gpm_Open(); - -int main() { -Gpm_Open() -; return 0; } -EOF -if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lgpm $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - for ac_func in Gpm_GetLibVersion -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6301: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6306 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_lib_gpm_Gpm_Open" = yes && test "$ac_cv_header_gpm_h" = yes; then - cf_have_gpm=yes - echo $ac_n "checking for Gpm_Event wdx and wdy""... $ac_c" 1>&6 -echo "configure:6356: checking for Gpm_Event wdx and wdy" >&5 -if eval "test \"`echo '$''{'ac_cv_have_wdx_wdy'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6361 "configure" -#include "confdefs.h" -#include <gpm.h> -int main() { -Gpm_Event e; e.wdx = 1; e.wdy = 2; return e.wdx + e.wdy -; return 0; } -EOF -if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_have_wdx_wdy=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_wdx_wdy=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_wdx_wdy" 1>&6 - if test "$ac_cv_have_wdx_wdy" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_WDX_WDY 1 -EOF - - fi - else - cf_have_gpm=no - fi -else - cf_have_gpm=no -fi - -echo $ac_n "checking for OS/2 threads""... $ac_c" 1>&6 -echo "configure:6396: checking for OS/2 threads" >&5 -if eval "test \"`echo '$''{'ac_cv_have_beginthread'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - CFLAGS_X="$CFLAGS" - CFLAGS="$CFLAGS -Zmt" - cat > conftest.$ac_ext <<EOF -#line 6403 "configure" -#include "confdefs.h" -#include <stdlib.h> -int main() { -_beginthread(NULL, NULL, 0, NULL) -; return 0; } -EOF -if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_beginthread=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_beginthread=no -fi -rm -f conftest* - CFLAGS="$CFLAGS_X" - -fi - -echo "$ac_t""$ac_cv_have_beginthread" 1>&6 -if test "$ac_cv_have_beginthread" = yes; then - CFLAGS="$CFLAGS -Zmt" - cat >> confdefs.h <<\EOF -#define HAVE_BEGINTHREAD 1 -EOF - -fi -for ac_hdr in atheos/threads.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6436: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6441 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -for ac_func in spawn_thread resume_thread -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6475: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6480 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - -for ac_func in MouOpen _read_kbd -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6531: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 6536 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - -echo $ac_n "checking for XFree for OS/2""... $ac_c" 1>&6 -echo "configure:6584: checking for XFree for OS/2" >&5 -if eval "test \"`echo '$''{'ac_cv_have_x2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - ac_cv_have_x2=no - if test -n "$X11ROOT"; then - CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include" - LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc" - cat > conftest.$ac_ext <<EOF -#line 6595 "configure" -#include "confdefs.h" -#include <pty.h> -int main() { -struct winsize win;ptioctl(1, TIOCGWINSZ, &win) -; return 0; } -EOF -if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_x2=xf86_gcc -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_x2=no -fi -rm -f conftest* - if test "$ac_cv_have_x2" = no; then - LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86" - cat > conftest.$ac_ext <<EOF -#line 6615 "configure" -#include "confdefs.h" -#include <pty.h> -int main() { -struct winsize win;ptioctl(1, TIOCGWINSZ, &win) -; return 0; } -EOF -if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_x2=xf86 -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_x2=no -fi -rm -f conftest* - fi - fi - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - -fi - -echo "$ac_t""$ac_cv_have_x2" 1>&6 -if test "$ac_cv_have_x2" != no; then - CPPFLAGS="$CPPFLAGS -I$X11ROOT/XFree86/include" - LIBS="$LIBS -L$X11ROOT/XFree86/lib -l$ac_cv_have_x2" - cat >> confdefs.h <<\EOF -#define X2 1 -EOF - -fi - -cf_result=no -#ifdef HAVE_SSL -ssld=yes -withval= -# Check whether --with-ssl or --without-ssl was given. -if test "${with_ssl+set}" = set; then - withval="$with_ssl" - if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi -fi - -# Check whether --enable-ssl-pkgconfig or --disable-ssl-pkgconfig was given. -if test "${enable_ssl_pkgconfig+set}" = set; then - enableval="$enable_ssl_pkgconfig" - cf_openssl_pkgconfig="$enableval" -else - cf_openssl_pkgconfig=yes -fi - -if test -z "$disable_ssl"; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - if test "$static_link" != 0; then - echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:6672: checking for dlopen in -ldl" >&5 -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldl $LIBS" -cat > conftest.$ac_ext <<EOF -#line 6680 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char dlopen(); - -int main() { -dlopen() -; return 0; } -EOF -if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-ldl $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 -echo "configure:6719: checking for inflate in -lz" >&5 -ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lz $LIBS" -cat > conftest.$ac_ext <<EOF -#line 6727 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char inflate(); - -int main() { -inflate() -; return 0; } -EOF -if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lz $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - CPPFLAGS_XX="$CPPFLAGS" - LIBS_XX="$LIBS" - if test "$cf_result" = no && test "$ssld" = yes -o "$ssld" = openssl; then - if test "$cf_openssl_pkgconfig" = no; then - pkgconfig_openssl=no - else - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:6779: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for openssl""... $ac_c" 1>&6 -echo "configure:6823: checking for openssl" >&5 - - if $PKG_CONFIG --exists "openssl" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking OPENSSL_CFLAGS""... $ac_c" 1>&6 -echo "configure:6830: checking OPENSSL_CFLAGS" >&5 - OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"` - echo "$ac_t""$OPENSSL_CFLAGS" 1>&6 - - echo $ac_n "checking OPENSSL_LIBS""... $ac_c" 1>&6 -echo "configure:6835: checking OPENSSL_LIBS" >&5 - OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl"` - echo "$ac_t""$OPENSSL_LIBS" 1>&6 - else - OPENSSL_CFLAGS="" - OPENSSL_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_openssl=yes - else - pkgconfig_openssl=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_openssl" = no; then - echo "$ac_t""no" 1>&6 - fi - fi - if test "$pkgconfig_openssl" = yes; then - echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 -echo "configure:6867: checking for OpenSSL" >&5 - CPPFLAGS="$CPPFLAGS_XX $OPENSSL_CFLAGS" - LIBS="$OPENSSL_LIBS $LIBS_XX" - cat > conftest.$ac_ext <<EOF -#line 6871 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <openssl/ssl.h> -int main() { -SSL_CTX_new((void *)0) -; return 0; } -EOF -if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - cf_result=openssl -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cf_result=no -fi -rm -f conftest* - echo "$ac_t""$cf_result" 1>&6 - fi - fi - - if test "$cf_result" = no && test "$ssld" != nss; then - echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 -echo "configure:6895: checking for OpenSSL" >&5 - if test "$ssld" = yes -o "$ssld" = openssl; then - ssld=". /usr /usr/local /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl" - fi - for ssldir in $ssld; do - if test "$cf_result" = no; then - if test ! -z "$ssldir" && test "$ssldir" != /usr && test "$ssldir" != .; then - LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_XX" - CPPFLAGS="$CPPFLAGS_XX -I$ssldir/include" - else - LIBS="-lssl -lcrypto $LIBS_XX" - CPPFLAGS="$CPPFLAGS_XX" - fi - cat > conftest.$ac_ext <<EOF -#line 6909 "configure" -#include "confdefs.h" -#include <stdio.h> -#include <openssl/ssl.h> -int main() { -SSL_CTX_new((void *)0) -; return 0; } -EOF -if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - cf_result=openssl -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cf_result=no -fi -rm -f conftest* - fi - done - echo "$ac_t""$cf_result" 1>&6 - fi - - if test "$cf_result" = no && test "$ssld" = yes -o "$ssld" = nss; then - if test "$cf_openssl_pkgconfig" = no; then - pkgconfig_nss=no - else - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:6943: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for nss""... $ac_c" 1>&6 -echo "configure:6987: checking for nss" >&5 - - if $PKG_CONFIG --exists "nss" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking NSS_CFLAGS""... $ac_c" 1>&6 -echo "configure:6994: checking NSS_CFLAGS" >&5 - NSS_CFLAGS=`$PKG_CONFIG --cflags "nss"` - echo "$ac_t""$NSS_CFLAGS" 1>&6 - - echo $ac_n "checking NSS_LIBS""... $ac_c" 1>&6 -echo "configure:6999: checking NSS_LIBS" >&5 - NSS_LIBS=`$PKG_CONFIG --libs "nss"` - echo "$ac_t""$NSS_LIBS" 1>&6 - else - NSS_CFLAGS="" - NSS_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_nss=yes - else - pkgconfig_nss=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_nss" = no; then - echo "$ac_t""no" 1>&6 - fi - fi - if test "$pkgconfig_nss" = no; then - NSS_CFLAGS="" - NSS_LIBS="" - fi - CPPFLAGS="$CPPFLAGS_X $NSS_CFLAGS" - LIBS="-lnss_compat_ossl $NSS_LIBS $LIBS_X" - echo $ac_n "checking for NSS-compat-ossl""... $ac_c" 1>&6 -echo "configure:7036: checking for NSS-compat-ossl" >&5 - cat > conftest.$ac_ext <<EOF -#line 7038 "configure" -#include "confdefs.h" -#include <nss_compat_ossl/nss_compat_ossl.h> -int main() { -SSL_CTX_new((void *)0) -; return 0; } -EOF -if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - cf_result=nss -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cf_result=no -fi -rm -f conftest* - echo "$ac_t""$cf_result" 1>&6 - fi - - if test "$cf_result" = no; then - if test -n "$withval" -a "$withval" != no; then - { echo "configure: error: "OpenSSL not found"" 1>&2; exit 1; } - fi - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - else - cat >> confdefs.h <<\EOF -#define HAVE_SSL 1 -EOF - - if test "$cf_result" = openssl; then - cat >> confdefs.h <<\EOF -#define HAVE_OPENSSL 1 -EOF - - for ac_hdr in openssl/x509v3.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7078: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7083 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - fi - if test "$cf_result" = nss; then - cat >> confdefs.h <<\EOF -#define HAVE_NSS 1 -EOF - - fi - for ac_func in ASN1_STRING_get0_data ASN1_STRING_to_UTF8 OPENSSL_cleanup OPENSSL_init_ssl RAND_add RAND_egd RAND_file_name RAND_load_file RAND_write_file SSL_SESSION_is_resumable SSL_get1_session SSL_load_error_strings X509_check_host X509_check_ip -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7124: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7129 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for CRYPTO_set_mem_functions without file/line""... $ac_c" 1>&6 -echo "configure:7177: checking for CRYPTO_set_mem_functions without file/line" >&5 -if eval "test \"`echo '$''{'ac_cv_have_crypto_set_mem_functions_1'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7182 "configure" -#include "confdefs.h" -#include <openssl/crypto.h> - static int csmf(void *(*m)(size_t), void *(*r)(void *, size_t), void (*f)(void *)) { return 0; } - -int main() { -return (int)(CRYPTO_set_mem_functions - csmf); -; return 0; } -EOF -if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_crypto_set_mem_functions_1=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_crypto_set_mem_functions_1=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_crypto_set_mem_functions_1" 1>&6 - if test "$ac_cv_have_crypto_set_mem_functions_1" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_CRYPTO_SET_MEM_FUNCTIONS_1 1 -EOF - - fi - echo $ac_n "checking for CRYPTO_set_mem_functions with file/line""... $ac_c" 1>&6 -echo "configure:7212: checking for CRYPTO_set_mem_functions with file/line" >&5 -if eval "test \"`echo '$''{'ac_cv_have_crypto_set_mem_functions_2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7217 "configure" -#include "confdefs.h" -#include <openssl/crypto.h> - static int csmf(void *(*m)(size_t, const char *, int), void *(*r)(void *, size_t, const char *, int), void (*f)(void *, const char *, int)) { return 0; } - -int main() { -return (int)(CRYPTO_set_mem_functions - csmf); -; return 0; } -EOF -if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_crypto_set_mem_functions_2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_crypto_set_mem_functions_2=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_crypto_set_mem_functions_2" 1>&6 - if test "$ac_cv_have_crypto_set_mem_functions_2" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_CRYPTO_SET_MEM_FUNCTIONS_2 1 -EOF - - fi - fi -fi -#endif -cf_have_ssl=$cf_result - -# Check whether --with-zlib or --without-zlib was given. -if test "${with_zlib+set}" = set; then - withval="$with_zlib" - if test "$withval" = no; then disable_zlib=yes; else disable_zlib=no; fi -fi - -# Check whether --with-brotli or --without-brotli was given. -if test "${with_brotli+set}" = set; then - withval="$with_brotli" - if test "$withval" = no; then disable_brotli=yes; else disable_brotli=no; fi -fi - -# Check whether --with-bzip2 or --without-bzip2 was given. -if test "${with_bzip2+set}" = set; then - withval="$with_bzip2" - if test "$withval" = no; then disable_bzip2=yes; else disable_bzip2=no; fi -fi - -# Check whether --with-lzma or --without-lzma was given. -if test "${with_lzma+set}" = set; then - withval="$with_lzma" - if test "$withval" = no; then disable_lzma=yes; else disable_lzma=no; fi -fi - -# Check whether --with-lzip or --without-lzip was given. -if test "${with_lzip+set}" = set; then - withval="$with_lzip" - if test "$withval" = no; then disable_lzip=yes; else disable_lzip=no; fi -fi - -compression="" - -if test "$disable_zlib" != yes; then - for ac_hdr in zlib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7288: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7293 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 -echo "configure:7325: checking for inflate in -lz" >&5 -ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lz $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7333 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char inflate(); - -int main() { -inflate() -; return 0; } -EOF -if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lz $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_zlib_h" = yes && test "$ac_cv_lib_z_inflate" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_ZLIB 1 -EOF - - compression="$compression ZLIB" - fi -fi - -if test "$disable_brotli" != yes; then - for ac_hdr in brotli/decode.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7385: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7390 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for BrotliDecoderDecompressStream in -lbrotlidec""... $ac_c" 1>&6 -echo "configure:7422: checking for BrotliDecoderDecompressStream in -lbrotlidec" >&5 -ac_lib_var=`echo brotlidec'_'BrotliDecoderDecompressStream | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lbrotlidec $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7430 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char BrotliDecoderDecompressStream(); - -int main() { -BrotliDecoderDecompressStream() -; return 0; } -EOF -if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo brotlidec | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lbrotlidec $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_brotli_decode_h" = yes && test "$ac_cv_lib_brotlidec_BrotliDecoderDecompressStream" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BROTLI 1 -EOF - - compression="$compression BROTLI" - fi -fi - -if test "$disable_bzip2" != yes; then - for ac_hdr in bzlib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7482: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7487 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for BZ2_bzDecompress in -lbz2""... $ac_c" 1>&6 -echo "configure:7519: checking for BZ2_bzDecompress in -lbz2" >&5 -ac_lib_var=`echo bz2'_'BZ2_bzDecompress | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lbz2 $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7527 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char BZ2_bzDecompress(); - -int main() { -BZ2_bzDecompress() -; return 0; } -EOF -if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lbz2 $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_bzlib_h" = yes && test "$ac_cv_lib_bz2_BZ2_bzDecompress" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_BZIP2 1 -EOF - - compression="$compression BZIP2" - fi -fi - -if test "$disable_lzma" != yes; then - for ac_hdr in lzma.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7579: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7584 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for lzma_auto_decoder in -llzma""... $ac_c" 1>&6 -echo "configure:7616: checking for lzma_auto_decoder in -llzma" >&5 -ac_lib_var=`echo lzma'_'lzma_auto_decoder | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-llzma $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7624 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char lzma_auto_decoder(); - -int main() { -lzma_auto_decoder() -; return 0; } -EOF -if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo lzma | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-llzma $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_lzma_h" = yes && test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LZMA 1 -EOF - - compression="$compression LZMA" - fi -fi - -if test "$disable_lzip" != yes; then - for ac_hdr in lzlib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7676: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7681 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for LZ_decompress_open in -llz""... $ac_c" 1>&6 -echo "configure:7713: checking for LZ_decompress_open in -llz" >&5 -ac_lib_var=`echo lz'_'LZ_decompress_open | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-llz $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7721 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char LZ_decompress_open(); - -int main() { -LZ_decompress_open() -; return 0; } -EOF -if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo lz | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-llz $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_lzlib_h" = yes && test "$ac_cv_lib_lz_LZ_decompress_open" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LZIP 1 -EOF - - compression="$compression LZIP" - fi -fi - - -cf_have_atheos=no - -if test "$cf_use_graphics" != no; then - cat >> confdefs.h <<\EOF -#define G 1 -EOF - - -# Check whether --with-openmp or --without-openmp was given. -if test "${with_openmp+set}" = set; then - withval="$with_openmp" - if test "$withval" = no; then disable_openmp=yes; else disable_openmp=no; fi -fi - -cf_have_openmp=no -if test "$disable_openmp" != yes; then - echo $ac_n "checking for OpenMP""... $ac_c" 1>&6 -echo "configure:7786: checking for OpenMP" >&5 -if eval "test \"`echo '$''{'ac_cv_have_openmp'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_cv_have_openmp=no - for openmp_cflags in "" -fopenmp -openmp -fopenmp=libgomp -mp -xopenmp -omp -qsmp=omp "-mp -lstdc++"; do - CFLAGS_X="$CFLAGS" - CFLAGS="$CFLAGS $openmp_cflags" - cat > conftest.$ac_ext <<EOF -#line 7795 "configure" -#include "confdefs.h" -#include <omp.h> -int main() { - - int enabled = 1; - int i = 1; - int j = 3; - omp_set_dynamic(0); - i += omp_get_max_threads(); - omp_set_num_threads(4); -#pragma omp parallel default(none) firstprivate(i) shared(j) if (enabled) - { - int n; - i += omp_get_num_threads() + omp_get_thread_num(); -#pragma omp for nowait - for (n = 0; n < 10; n++) - i += j / i; - } - -; return 0; } -EOF -if { (eval echo configure:7817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_openmp="$openmp_cflags" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 -fi -rm -f conftest* - CFLAGS="$CFLAGS_X" - if test "$ac_cv_have_openmp" != no; then - break - fi - done - -fi - -echo "$ac_t""$ac_cv_have_openmp" 1>&6 - if test "$ac_cv_have_openmp" != no; then - CFLAGS="$CFLAGS $ac_cv_have_openmp" - cf_have_openmp=yes - cat >> confdefs.h <<\EOF -#define HAVE_OPENMP 1 -EOF - - fi -fi - -# Check whether --with-svgalib or --without-svgalib was given. -if test "${with_svgalib+set}" = set; then - withval="$with_svgalib" - if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi -fi - -# Check whether --with-x or --without-x was given. -if test "${with_x+set}" = set; then - withval="$with_x" - if test "$withval" = no; then disable_x=yes; else disable_x=no; fi -fi - -# Check whether --with-fb or --without-fb was given. -if test "${with_fb+set}" = set; then - withval="$with_fb" - if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi -fi - -# Check whether --with-directfb or --without-directfb was given. -if test "${with_directfb+set}" = set; then - withval="$with_directfb" - if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi -fi - -# Check whether --with-pmshell or --without-pmshell was given. -if test "${with_pmshell+set}" = set; then - withval="$with_pmshell" - if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi -fi - -# Check whether --with-windows or --without-windows was given. -if test "${with_windows+set}" = set; then - withval="$with_windows" - if test "$withval" = no; then disable_windows=yes; else disable_windows=no; fi -fi - -# Check whether --with-atheos or --without-atheos was given. -if test "${with_atheos+set}" = set; then - withval="$with_atheos" - if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi -fi - -# Check whether --with-grx or --without-grx was given. -if test "${with_grx+set}" = set; then - withval="$with_grx" - if test "$withval" = no; then disable_grx=yes; else disable_grx; fi -fi - - - drivers="" - -if test "$disable_svgalib" != yes; then - LIBS_X="$LIBS" - if test "$static_link" != 0; then - echo $ac_n "checking for LRMI_init in -lx86""... $ac_c" 1>&6 -echo "configure:7899: checking for LRMI_init in -lx86" >&5 -ac_lib_var=`echo x86'_'LRMI_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lx86 $LIBS" -cat > conftest.$ac_ext <<EOF -#line 7907 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char LRMI_init(); - -int main() { -LRMI_init() -; return 0; } -EOF -if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo x86 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lx86 $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - LIBS="-lvga $LIBS" - echo $ac_n "checking for svgalib""... $ac_c" 1>&6 -echo "configure:7948: checking for svgalib" >&5 -if eval "test \"`echo '$''{'ac_cv_have_svgalib'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7953 "configure" -#include "confdefs.h" -#include <vga.h> -int main() { -vga_setmode(0) -; return 0; } -EOF -if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_svgalib=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_svgalib=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_svgalib" 1>&6 - - if test "$ac_cv_have_svgalib" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_SVGALIB 1 -EOF - - drivers="$drivers SVGALIB" - else - LIBS="$LIBS_X" - fi -fi - -if test "$disable_fb" != yes; then - for ac_hdr in linux/fb.h linux/kd.h linux/vt.h sys/mman.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7991: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 7996 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_header_linux_fb_h" = yes && test "$ac_cv_header_linux_kd_h" = yes && test "$ac_cv_header_linux_vt_h" = yes && test "$ac_cv_header_sys_mman_h" = yes && test "$ac_cv_header_sys_ioctl_h" = yes && test "$cf_have_gpm" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_FB 1 -EOF - - drivers="$drivers FB" - fi -fi - -if test "$disable_directfb" != yes; then - # Extract the first word of "directfb-config", so it can be a program name with args. -set dummy directfb-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:8040: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_DIRECTFB_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$DIRECTFB_CONFIG" in - /*) - ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_DIRECTFB_CONFIG="$DIRECTFB_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_DIRECTFB_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_DIRECTFB_CONFIG" && ac_cv_path_DIRECTFB_CONFIG="no" - ;; -esac -fi -DIRECTFB_CONFIG="$ac_cv_path_DIRECTFB_CONFIG" -if test -n "$DIRECTFB_CONFIG"; then - echo "$ac_t""$DIRECTFB_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test "$DIRECTFB_CONFIG" != "no"; then - echo $ac_n "checking for DirectFB >= 0.9.17""... $ac_c" 1>&6 -echo "configure:8075: checking for DirectFB >= 0.9.17" >&5 - directfb_version=`$DIRECTFB_CONFIG --version` - if expr $directfb_version \>= 0.9.17 >/dev/null; then - echo "$ac_t""yes" 1>&6 - - DIRECTFB_CFLAGS="`$DIRECTFB_CONFIG --cflags`" - DIRECTFB_LIBS="`$DIRECTFB_CONFIG --libs`" - pkgconfig_directfb=yes - else - echo "$ac_t""no" 1>&6 - pkgconfig_directfb=no - fi - else - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:8095: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for directfb""... $ac_c" 1>&6 -echo "configure:8139: checking for directfb" >&5 - - if $PKG_CONFIG --exists "directfb" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking DIRECTFB_CFLAGS""... $ac_c" 1>&6 -echo "configure:8146: checking DIRECTFB_CFLAGS" >&5 - DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb"` - echo "$ac_t""$DIRECTFB_CFLAGS" 1>&6 - - echo $ac_n "checking DIRECTFB_LIBS""... $ac_c" 1>&6 -echo "configure:8151: checking DIRECTFB_LIBS" >&5 - DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb"` - echo "$ac_t""$DIRECTFB_LIBS" 1>&6 - else - DIRECTFB_CFLAGS="" - DIRECTFB_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_directfb=yes - else - pkgconfig_directfb=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_directfb" = no; then - echo "$ac_t""no" 1>&6 - fi - fi - - if test "$pkgconfig_directfb" = "yes"; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - - CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" - LIBS="$DIRECTFB_LIBS $LIBS" - - for ac_hdr in directfb.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8193: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8198 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - for ac_func in DirectFBInit -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8232: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8237 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - - if test "$ac_cv_header_directfb_h" = yes && test "$ac_cv_func_DirectFBInit" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_DIRECTFB 1 -EOF - - drivers="$drivers DIRECTFB" - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi - fi -fi - -if test "$disable_x" != yes; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - - # If we find X, set shell vars x_includes and x_libraries to the -# paths, otherwise set no_x=yes. -# Uses ac_ vars as temps to allow command line to override cache and checks. -# --without-x overrides everything else, but does not touch the cache. -echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:8307: checking for X" >&5 - -# Check whether --with-x or --without-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 - if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then - # Both variables are already set. - have_x=yes - else -if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&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 -fr conftestdir -if mkdir conftestdir; then - cd conftestdir - # Make sure to not put "make" in the Imakefile rules, since we grep it out. - cat > Imakefile <<'EOF' -acfindx: - @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' -EOF - if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl; 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) ;; - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; - esac - case "$ac_im_usrlibdir" in - /usr/lib | /lib) ;; - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; - esac - fi - cd .. - rm -fr conftestdir -fi - -if test "$ac_x_includes" = NO; then - # Guess where to find include files, by looking for this one X11 .h file. - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h - - # First, try using that file with no special directory specified. -cat > conftest.$ac_ext <<EOF -#line 8369 "configure" -#include "confdefs.h" -#include <$x_direct_test_include> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - # We can compile using X headers with no special include directory. -ac_x_includes= -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - # Look for the header file in a standard set of common directories. -# Check X11 before X11Rn because it is often a symlink to the current release. - for ac_dir in \ - /usr/X11/include \ - /usr/X11R7/include \ - /usr/X11R6/include \ - /usr/X11R5/include \ - /usr/X11R4/include \ - \ - /usr/include/X11 \ - /usr/include/X11R7 \ - /usr/include/X11R6 \ - /usr/include/X11R5 \ - /usr/include/X11R4 \ - \ - /usr/local/X11/include \ - /usr/local/X11R7/include \ - /usr/local/X11R6/include \ - /usr/local/X11R5/include \ - /usr/local/X11R4/include \ - \ - /usr/local/include/X11 \ - /usr/local/include/X11R7 \ - /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 \ - ; \ - do - if test -r "$ac_dir/$x_direct_test_include"; then - ac_x_includes=$ac_dir - break - fi - done -fi -rm -f conftest* -fi # $ac_x_includes = NO - -if test "$ac_x_libraries" = NO; then - # Check for the libraries. - - test -z "$x_direct_test_library" && x_direct_test_library=Xt - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc - - # See if we find them without any special options. - # Don't add to $LIBS permanently. - ac_save_LIBS="$LIBS" - LIBS="-l$x_direct_test_library $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8443 "configure" -#include "confdefs.h" - -int main() { -${x_direct_test_function}() -; return 0; } -EOF -if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - LIBS="$ac_save_LIBS" -# We can link X programs with no special library path. -ac_x_libraries= -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - LIBS="$ac_save_LIBS" -# First see if replacing the include by lib works. -# Check X11 before X11Rn because it is often a symlink to the current release. -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ - /usr/X11/lib \ - /usr/X11R7/lib \ - /usr/X11R6/lib \ - /usr/X11R5/lib \ - /usr/X11R4/lib \ - \ - /usr/lib/X11 \ - /usr/lib/X11R7 \ - /usr/lib/X11R6 \ - /usr/lib/X11R5 \ - /usr/lib/X11R4 \ - \ - /usr/local/X11/lib \ - /usr/local/X11R7/lib \ - /usr/local/X11R6/lib \ - /usr/local/X11R5/lib \ - /usr/local/X11R4/lib \ - \ - /usr/local/lib/X11 \ - /usr/local/lib/X11R7 \ - /usr/local/lib/X11R6 \ - /usr/local/lib/X11R5 \ - /usr/local/lib/X11R4 \ - \ - /usr/X386/lib \ - /usr/x386/lib \ - /usr/XFree86/lib/X11 \ - \ - /usr/lib \ - /usr/local/lib \ - /usr/unsupported/lib \ - /usr/athena/lib \ - /usr/local/x11r5/lib \ - /usr/lpp/Xamples/lib \ - /lib/usr/lib/X11 \ - \ - /usr/openwin/lib \ - /usr/openwin/share/lib \ - ; \ -do - for ac_extension in a so sl; do - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then - ac_x_libraries=$ac_dir - break 2 - fi - done -done -fi -rm -f conftest* -fi # $ac_x_libraries = NO - -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then - # Didn't find X anywhere. Cache the known absence of X. - ac_cv_have_x="have_x=no" -else - # 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" -fi -fi - fi - eval "$ac_cv_have_x" -fi # $with_x != no - -if test "$have_x" != yes; then - echo "$ac_t""$have_x" 1>&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" - echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 -fi - - - if test "$static_link" != 0; then - echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:8539: checking for pthread_create in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpthread $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8547 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char pthread_create(); - -int main() { -pthread_create() -; return 0; } -EOF -if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lpthread $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:8586: checking for dlopen in -ldl" >&5 -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldl $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8594 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char dlopen(); - -int main() { -dlopen() -; return 0; } -EOF -if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-ldl $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for XdmcpWrap in -lXdmcp""... $ac_c" 1>&6 -echo "configure:8633: checking for XdmcpWrap in -lXdmcp" >&5 -ac_lib_var=`echo Xdmcp'_'XdmcpWrap | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lXdmcp $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8641 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char XdmcpWrap(); - -int main() { -XdmcpWrap() -; return 0; } -EOF -if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lXdmcp $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for XauGetBestAuthByAddr in -lXau""... $ac_c" 1>&6 -echo "configure:8680: checking for XauGetBestAuthByAddr in -lXau" >&5 -ac_lib_var=`echo Xau'_'XauGetBestAuthByAddr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lXau $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8688 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char XauGetBestAuthByAddr(); - -int main() { -XauGetBestAuthByAddr() -; return 0; } -EOF -if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lXau $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for xcb_connect in -lxcb""... $ac_c" 1>&6 -echo "configure:8727: checking for xcb_connect in -lxcb" >&5 -ac_lib_var=`echo xcb'_'xcb_connect | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lxcb $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8735 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char xcb_connect(); - -int main() { -xcb_connect() -; return 0; } -EOF -if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo xcb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lxcb $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for xcb_get_request_sent in -lxcb-xlib""... $ac_c" 1>&6 -echo "configure:8774: checking for xcb_get_request_sent in -lxcb-xlib" >&5 -ac_lib_var=`echo xcb-xlib'_'xcb_get_request_sent | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lxcb-xlib $LIBS" -cat > conftest.$ac_ext <<EOF -#line 8782 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char xcb_get_request_sent(); - -int main() { -xcb_get_request_sent() -; return 0; } -EOF -if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo xcb-xlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lxcb-xlib $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - - LIBS="-lX11 $LIBS" - if test "$have_x" = yes; then - test -n "$x_libraries" && LIBS="-L$x_libraries $LIBS" - test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes" - fi - - for ac_hdr in X11/Xlib.h X11/X.h X11/Xutil.h X11/Xatom.h X11/Xlocale.h X11/keysymdef.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8832: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8837 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - - for ac_func in XOpenDisplay XOpenIM XCloseIM XCreateIC XDestroyIC XwcLookupString Xutf8LookupString XSupportsLocale XmbTextListToTextProperty -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8872: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8877 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - - echo $ac_n "checking for Xsetlocale""... $ac_c" 1>&6 -echo "configure:8926: checking for Xsetlocale" >&5 -if eval "test \"`echo '$''{'ac_cv_have_Xsetlocale'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8931 "configure" -#include "confdefs.h" -#include <X11/Xlocale.h> -int main() { -setlocale(0, NULL); return 0; -; return 0; } -EOF -if { (eval echo configure:8938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_Xsetlocale=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_Xsetlocale=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_Xsetlocale" 1>&6 - if test "$ac_cv_have_Xsetlocale" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_XSETLOCALE 1 -EOF - - fi - - - if test "$have_x" = yes -o "$ac_cv_have_x2" != no && test "$ac_cv_func_XOpenDisplay" = yes && test "$ac_cv_header_X11_Xlib_h" = yes && test "$ac_cv_header_X11_X_h" = yes && test "$ac_cv_header_X11_Xutil_h" = yes && test "$ac_cv_header_X11_Xatom_h" = yes && test "$ac_cv_header_X11_keysymdef_h" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_X 1 -EOF - - drivers="$drivers X" - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi -fi - - -if test "$disable_pmshell" != yes && test "$ac_cv_header_sys_fmutex_h" = yes && test "$ac_cv_have_beginthread" = yes; then - echo $ac_n "checking for pmshell""... $ac_c" 1>&6 -echo "configure:8975: checking for pmshell" >&5 -if eval "test \"`echo '$''{'ac_cv_have_pmshell'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 8980 "configure" -#include "confdefs.h" -#define INCL_WIN - #define INCL_GPI - #include <os2.h> - #include <sys/fmutex.h> -int main() { -_fmutex mutex; - WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0), - GpiSetPel(NULLHANDLE, NULL) -; return 0; } -EOF -if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_pmshell=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_pmshell=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_pmshell" 1>&6 - - if test "$ac_cv_have_pmshell" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_PMSHELL 1 -EOF - - drivers="$drivers PMSHELL" - fi -fi - -if test "$disable_windows" != yes; then - LIBS_X="$LIBS" - for ac_hdr in windowsx.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9022: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9027 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for ReleaseDC""... $ac_c" 1>&6 -echo "configure:9059: checking for ReleaseDC" >&5 -if eval "test \"`echo '$''{'ac_cv_have_windows11'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9064 "configure" -#include "confdefs.h" - - #include <windows.h> - #include <pthread.h> -int main() { -ReleaseDC(NULL, NULL) -; return 0; } -EOF -if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_windows11=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_windows11=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_windows11" 1>&6 - if test "$ac_cv_have_windows11" = no; then - LIBS="-luser32 $LIBS" - echo $ac_n "checking for ReleaseDC in -luser32""... $ac_c" 1>&6 -echo "configure:9090: checking for ReleaseDC in -luser32" >&5 -if eval "test \"`echo '$''{'ac_cv_have_windows12'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9095 "configure" -#include "confdefs.h" - - #include <windows.h> - #include <pthread.h> -int main() { -ReleaseDC(NULL, NULL) -; return 0; } -EOF -if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_windows12=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_windows12=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_windows12" 1>&6 - fi - echo $ac_n "checking for GdiFlush""... $ac_c" 1>&6 -echo "configure:9120: checking for GdiFlush" >&5 -if eval "test \"`echo '$''{'ac_cv_have_windows21'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9125 "configure" -#include "confdefs.h" - - #include <windows.h> - #include <pthread.h> -int main() { -GdiFlush() -; return 0; } -EOF -if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_windows21=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_windows21=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_windows21" 1>&6 - if test "$ac_cv_have_windows21" = no; then - LIBS="-lgdi32 $LIBS" - echo $ac_n "checking for GdiFlush in -lgdi32""... $ac_c" 1>&6 -echo "configure:9151: checking for GdiFlush in -lgdi32" >&5 -if eval "test \"`echo '$''{'ac_cv_have_windows22'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9156 "configure" -#include "confdefs.h" - - #include <windows.h> - #include <pthread.h> -int main() { -GdiFlush() -; return 0; } -EOF -if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_have_windows22=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_have_windows22=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_have_windows22" 1>&6 - fi - if test "$ac_cv_have_windows11" = yes -o "$ac_cv_have_windows12" = yes && - test "$ac_cv_have_windows21" = yes -o "$ac_cv_have_windows22" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_PMSHELL 1 -EOF - - drivers="$drivers WINDOWS" - else - LIBS="$LIBS_X" - fi -fi - -if test "$disable_atheos" != yes; then - old_ext="$ac_ext" - ac_ext=cpp - for ac_hdr in gui/view.h gui/window.h gui/desktop.h gui/bitmap.h util/locker.h util/application.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9199: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9204 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - ac_ext="$old_ext" - - if test "$ac_cv_header_atheos_threads_h" = yes && - test "$ac_cv_header_gui_view_h" = yes && - test "$ac_cv_header_gui_window_h" = yes && - test "$ac_cv_header_gui_desktop_h" = yes && - test "$ac_cv_header_gui_bitmap_h" = yes && - test "$ac_cv_header_util_locker_h" = yes && - test "$ac_cv_header_util_application_h" = yes; then - echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 -echo "configure:9245: checking for main in -lstdc++" >&5 -ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lstdc++ $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9253 "configure" -#include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lstdc++ $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - echo $ac_n "checking for main in -latheos""... $ac_c" 1>&6 -echo "configure:9288: checking for main in -latheos" >&5 -ac_lib_var=`echo atheos'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-latheos $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9296 "configure" -#include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo atheos | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-latheos $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_atheos_main" = no; then - echo $ac_n "checking for main in -lsyllable""... $ac_c" 1>&6 -echo "configure:9332: checking for main in -lsyllable" >&5 -ac_lib_var=`echo syllable'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsyllable $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9340 "configure" -#include "confdefs.h" - -int main() { -main() -; return 0; } -EOF -if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo syllable | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lsyllable $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - if test "$ac_cv_lib_atheos_main" = yes -o "$ac_cv_lib_syllable_main" = yes; then - for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9381: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CXX="$ac_cv_prog_CXX" -if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CXX" && break -done -test -n "$CXX" || CXX="gcc" - - -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:9413: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 - -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - -cat > conftest.$ac_ext << EOF - -#line 9424 "configure" -#include "confdefs.h" - -int main(){return(0);} -EOF -if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cxx_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cxx_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 -if test $ac_cv_prog_cxx_works = no; then - { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:9455: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 -cross_compiling=$ac_cv_prog_cxx_cross - -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:9460: checking whether we are using GNU C++" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.C <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gxx" 1>&6 - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:9488: checking whether ${CXX-g++} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&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 - - cat >> confdefs.h <<\EOF -#define GRDRV_ATHEOS 1 -EOF - - drivers="$drivers ATHEOS" - cf_have_atheos=yes - fi - fi -fi - -if test "$disable_grx" != yes -a "$ac_cv_have_djgpp" = yes; then - LIBS_X="$LIBS" - for ac_hdr in grx20.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9535: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9540 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for GrSetMode in -lgrx20""... $ac_c" 1>&6 -echo "configure:9572: checking for GrSetMode in -lgrx20" >&5 -ac_lib_var=`echo grx20'_'GrSetMode | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lgrx20 $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9580 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char GrSetMode(); - -int main() { -GrSetMode() -; return 0; } -EOF -if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo grx20 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lgrx20 $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_grx20_h" = yes && - test "$ac_cv_lib_grx20_GrSetMode" = yes; then - cat >> confdefs.h <<\EOF -#define GRDRV_GRX 1 -EOF - - drivers="$drivers GRX" - else - LIBS="$LIBS_X" - fi -fi - - # Check whether --enable-png-pkgconfig or --disable-png-pkgconfig was given. -if test "${enable_png_pkgconfig+set}" = set; then - enableval="$enable_png_pkgconfig" - cf_libpng_pkgconfig="$enableval" -else - cf_libpng_pkgconfig=yes -fi - - - if test "$static_link" != 0; then - echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 -echo "configure:9641: checking for inflate in -lz" >&5 -ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lz $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9649 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char inflate(); - -int main() { -inflate() -; return 0; } -EOF -if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lz $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - if test "$cf_libpng_pkgconfig" != no; then - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9696: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for libpng >= 1.0.0""... $ac_c" 1>&6 -echo "configure:9740: checking for libpng >= 1.0.0" >&5 - - if $PKG_CONFIG --exists "libpng >= 1.0.0" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking LIBPNG_CFLAGS""... $ac_c" 1>&6 -echo "configure:9747: checking LIBPNG_CFLAGS" >&5 - LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0"` - echo "$ac_t""$LIBPNG_CFLAGS" 1>&6 - - echo $ac_n "checking LIBPNG_LIBS""... $ac_c" 1>&6 -echo "configure:9752: checking LIBPNG_LIBS" >&5 - LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0"` - echo "$ac_t""$LIBPNG_LIBS" 1>&6 - else - LIBPNG_CFLAGS="" - LIBPNG_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.0.0"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_libpng=yes - else - pkgconfig_libpng=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng" = no; then - echo "$ac_t""no" 1>&6 - fi - if test "$pkgconfig_libpng" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPNG_CFLAGS" - LIBS="$LIBPNG_LIBS $LIBS" - else - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:9792: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for libpng12""... $ac_c" 1>&6 -echo "configure:9836: checking for libpng12" >&5 - - if $PKG_CONFIG --exists "libpng12" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking LIBPNG12_CFLAGS""... $ac_c" 1>&6 -echo "configure:9843: checking LIBPNG12_CFLAGS" >&5 - LIBPNG12_CFLAGS=`$PKG_CONFIG --cflags "libpng12"` - echo "$ac_t""$LIBPNG12_CFLAGS" 1>&6 - - echo $ac_n "checking LIBPNG12_LIBS""... $ac_c" 1>&6 -echo "configure:9848: checking LIBPNG12_LIBS" >&5 - LIBPNG12_LIBS=`$PKG_CONFIG --libs "libpng12"` - echo "$ac_t""$LIBPNG12_LIBS" 1>&6 - else - LIBPNG12_CFLAGS="" - LIBPNG12_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - LIBPNG12_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng12"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_libpng12=yes - else - pkgconfig_libpng12=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng12" = no; then - echo "$ac_t""no" 1>&6 - fi - if test "$pkgconfig_libpng12" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPNG12_CFLAGS" - LIBS="$LIBPNG12_LIBS $LIBS" - fi - fi - fi - for ac_hdr in png.h libpng/png.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9887: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9892 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - for ac_func in png_create_info_struct -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9926: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 9931 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_func_png_create_info_struct" != yes; then - echo $ac_n "checking for png_create_info_struct in -lpng""... $ac_c" 1>&6 -echo "configure:9980: checking for png_create_info_struct in -lpng" >&5 -ac_lib_var=`echo png'_'png_create_info_struct | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpng $LIBS" -cat > conftest.$ac_ext <<EOF -#line 9988 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char png_create_info_struct(); - -int main() { -png_create_info_struct() -; return 0; } -EOF -if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lpng $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then - { echo "configure: error: You need libpng to compile Links in graphics mode" 1>&2; exit 1; } - fi - - for ac_func in png_set_rgb_to_gray png_get_libpng_ver png_get_image_width png_get_image_height png_get_gAMA png_get_color_type png_get_bit_depth png_set_strip_alpha png_get_valid png_get_sRGB -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10034: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10039 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_func_png_get_image_width" != yes || - test "$ac_cv_func_png_get_image_height" != yes || - test "$ac_cv_func_png_get_gAMA" != yes || - test "$ac_cv_func_png_get_color_type" != yes || - test "$ac_cv_func_png_get_bit_depth" != yes || - test "$ac_cv_func_png_set_strip_alpha" != yes || - test "$ac_cv_func_png_get_valid" != yes || - test "$ac_cv_func_png_get_sRGB" != yes; then - { echo "configure: error: Your libpng is too old" 1>&2; exit 1; } - fi - - # Check whether --with-libjpeg or --without-libjpeg was given. -if test "${with_libjpeg+set}" = set; then - withval="$with_libjpeg" - if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi -fi - - cf_have_jpeg=no - if test "$disable_jpeg" != yes; then - for ac_hdr in jpeglib.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10109: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10114 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 -echo "configure:10146: checking for jpeg_destroy_decompress in -ljpeg" >&5 -ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ljpeg $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10154 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char jpeg_destroy_decompress(); - -int main() { -jpeg_destroy_decompress() -; return 0; } -EOF -if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-ljpeg $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_JPEG 1 -EOF - - cf_have_jpeg=yes - image_formats="$image_formats JPEG" - fi - fi - - # Check whether --with-libtiff or --without-libtiff was given. -if test "${with_libtiff+set}" = set; then - withval="$with_libtiff" - if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi -fi - - cf_have_tiff=no - if test "$disable_tiff" != yes; then - if test "$static_link" != 0; then - echo $ac_n "checking for jbg_enc_init in -ljbig""... $ac_c" 1>&6 -echo "configure:10212: checking for jbg_enc_init in -ljbig" >&5 -ac_lib_var=`echo jbig'_'jbg_enc_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ljbig $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10220 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char jbg_enc_init(); - -int main() { -jbg_enc_init() -; return 0; } -EOF -if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo jbig | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-ljbig $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - for ac_hdr in tiffio.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10263: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10268 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 -echo "configure:10300: checking for TIFFClientOpen in -ltiff" >&5 -ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ltiff $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10308 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char TIFFClientOpen(); - -int main() { -TIFFClientOpen() -; return 0; } -EOF -if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo tiff | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-ltiff $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_header_tiffio_h" = yes && test "$ac_cv_lib_tiff_TIFFClientOpen" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_TIFF 1 -EOF - - cf_have_tiff=yes - image_formats="$image_formats TIFF" - fi - fi - - # Check whether --with-librsvg or --without-librsvg was given. -if test "${with_librsvg+set}" = set; then - withval="$with_librsvg" - if test "$withval" = no; then disable_svg=yes; else disable_svg=no; fi -fi - - cf_have_svg=no - if test "$disable_svg" != yes; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - # Check whether --enable-svg-pkgconfig or --disable-svg-pkgconfig was given. -if test "${enable_svg_pkgconfig+set}" = set; then - enableval="$enable_svg_pkgconfig" - cf_librsvg_pkgconfig="$enableval" -else - cf_librsvg_pkgconfig=yes -fi - - if test "$cf_librsvg_pkgconfig" != no; then - - succeeded=no - - if test -z "$PKG_CONFIG"; then - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:10382: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - echo $ac_n "checking for librsvg-2.0 >= 2.0.0 cairo""... $ac_c" 1>&6 -echo "configure:10426: checking for librsvg-2.0 >= 2.0.0 cairo" >&5 - - if $PKG_CONFIG --exists "librsvg-2.0 >= 2.0.0 cairo" ; then - echo "$ac_t""yes" 1>&6 - succeeded=yes - - echo $ac_n "checking LIBRSVG_CFLAGS""... $ac_c" 1>&6 -echo "configure:10433: checking LIBRSVG_CFLAGS" >&5 - LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.0.0 cairo"` - echo "$ac_t""$LIBRSVG_CFLAGS" 1>&6 - - echo $ac_n "checking LIBRSVG_LIBS""... $ac_c" 1>&6 -echo "configure:10438: checking LIBRSVG_LIBS" >&5 - LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.0.0 cairo"` - echo "$ac_t""$LIBRSVG_LIBS" 1>&6 - else - LIBRSVG_CFLAGS="" - LIBRSVG_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librsvg-2.0 >= 2.0.0 cairo"` - - fi - - - - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - pkgconfig_librsvg=yes - else - pkgconfig_librsvg=no - fi - - if test "$PKG_CONFIG" != no -a "$pkgconfig_librsvg" = no; then - echo "$ac_t""no" 1>&6 - fi - if test "$pkgconfig_librsvg" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBRSVG_CFLAGS" - LIBS="$LIBRSVG_LIBS $LIBS" - fi - fi - - for ac_hdr in cairo.h librsvg/rsvg.h librsvg/rsvg-cairo.h librsvg/librsvg-features.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10477: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10482 "configure" -#include "confdefs.h" -#include <$ac_hdr> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <<EOF -#define $ac_tr_hdr 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - for ac_func in rsvg_handle_render_cairo -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10516: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10521 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - if test "$ac_cv_func_rsvg_handle_render_cairo" != yes; then - echo $ac_n "checking for rsvg_handle_render_cairo in -lrsvg-2""... $ac_c" 1>&6 -echo "configure:10570: checking for rsvg_handle_render_cairo in -lrsvg-2" >&5 -ac_lib_var=`echo rsvg-2'_'rsvg_handle_render_cairo | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lrsvg-2 $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10578 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char rsvg_handle_render_cairo(); - -int main() { -rsvg_handle_render_cairo() -; return 0; } -EOF -if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo rsvg-2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lrsvg-2 $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - fi - if test "$ac_cv_header_cairo_h" = yes -a "$ac_cv_header_librsvg_rsvg_h" = yes && test "$ac_cv_func_rsvg_handle_render_cairo" = yes -o "$ac_cv_lib_rsvg_2_rsvg_handle_render_cairo" = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_SVG 1 -EOF - - cf_have_svg=yes - image_formats="$image_formats SVG" - echo $ac_n "checking for FcConfigAppFontAddDir in -lfontconfig""... $ac_c" 1>&6 -echo "configure:10625: checking for FcConfigAppFontAddDir in -lfontconfig" >&5 -ac_lib_var=`echo fontconfig'_'FcConfigAppFontAddDir | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lfontconfig $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10633 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char FcConfigAppFontAddDir(); - -int main() { -FcConfigAppFontAddDir() -; return 0; } -EOF -if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo fontconfig | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lfontconfig $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi - fi - - - if test -z "$drivers" && test "$cf_use_graphics" != no; then - { echo "configure: error: No graphics drivers found." 1>&2; exit 1; } - fi -fi - - - - -if test "$cf_use_javascript" = yes; then - JAVASCRIPT_TRUE= - JAVASCRIPT_FALSE='#' -else - JAVASCRIPT_TRUE='#' - JAVASCRIPT_FALSE= -fi - - - -if test "$cf_have_atheos" = yes; then - ATHEOS_GR_TRUE= - ATHEOS_GR_FALSE='#' -else - ATHEOS_GR_TRUE='#' - ATHEOS_GR_FALSE= -fi - -test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe" - -for ac_func in pthread_sigmask -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10709: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 10714 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ -#include <assert.h> -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* 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 -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <<EOF -#define $ac_tr_func 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi -done - - -if test "$ac_cv_func_pthread_sigmask" = yes; then - echo $ac_n "checking for pthread_sigmask in -lpthread""... $ac_c" 1>&6 -echo "configure:10764: checking for pthread_sigmask in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_sigmask | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lpthread $LIBS" -cat > conftest.$ac_ext <<EOF -#line 10772 "configure" -#include "confdefs.h" -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char pthread_sigmask(); - -int main() { -pthread_sigmask() -; return 0; } -EOF -if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <<EOF -#define $ac_tr_lib 1 -EOF - - LIBS="-lpthread $LIBS" - -else - echo "$ac_t""no" 1>&6 -fi - -fi - -trap '' 1 2 15 -cat > confcache <<\EOF -# 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. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# 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. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -DEFS=-DHAVE_CONFIG_H - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@PACKAGE@%$PACKAGE%g -s%@VERSION@%$VERSION%g -s%@ACLOCAL@%$ACLOCAL%g -s%@AUTOCONF@%$AUTOCONF%g -s%@AUTOMAKE@%$AUTOMAKE%g -s%@AUTOHEADER@%$AUTOHEADER%g -s%@MAKEINFO@%$MAKEINFO%g -s%@SET_MAKE@%$SET_MAKE%g -s%@CC@%$CC%g -s%@CPP@%$CPP%g -s%@PKG_CONFIG@%$PKG_CONFIG%g -s%@LIBPCRE_CFLAGS@%$LIBPCRE_CFLAGS%g -s%@LIBPCRE_LIBS@%$LIBPCRE_LIBS%g -s%@OPENSSL_CFLAGS@%$OPENSSL_CFLAGS%g -s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g -s%@NSS_CFLAGS@%$NSS_CFLAGS%g -s%@NSS_LIBS@%$NSS_LIBS%g -s%@DIRECTFB_CONFIG@%$DIRECTFB_CONFIG%g -s%@DIRECTFB_CFLAGS@%$DIRECTFB_CFLAGS%g -s%@DIRECTFB_LIBS@%$DIRECTFB_LIBS%g -s%@CXX@%$CXX%g -s%@LIBPNG_CFLAGS@%$LIBPNG_CFLAGS%g -s%@LIBPNG_LIBS@%$LIBPNG_LIBS%g -s%@LIBPNG12_CFLAGS@%$LIBPNG12_CFLAGS%g -s%@LIBPNG12_LIBS@%$LIBPNG12_LIBS%g -s%@LIBRSVG_CFLAGS@%$LIBRSVG_CFLAGS%g -s%@LIBRSVG_LIBS@%$LIBRSVG_LIBS%g -s%@JAVASCRIPT_TRUE@%$JAVASCRIPT_TRUE%g -s%@JAVASCRIPT_FALSE@%$JAVASCRIPT_FALSE%g -s%@ATHEOS_GR_TRUE@%$ATHEOS_GR_TRUE%g -s%@ATHEOS_GR_FALSE@%$ATHEOS_GR_FALSE%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' -ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='$%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -cat >> $CONFIG_STATUS <<EOF - CONFIG_HEADERS="config.h" -EOF -cat >> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in - -EOF - -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -cat > conftest.hdr <<\EOF -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp -EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% -EOF - -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. - -rm -f conftest.tail -while : -do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS - echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals -done -rm -f conftest.vals - -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h - else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - fi - rm -f $ac_file - mv conftest.h $ac_file - fi -fi; done - -EOF -cat >> $CONFIG_STATUS <<EOF - - -EOF -cat >> $CONFIG_STATUS <<\EOF -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - -echo "---------------------------------------------------------" -echo "Configuration results:" -echo "" -echo "Event handler: `echo $cf_have_libevent|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -if test "$cf_have_ipv6" = yes; then - echo "IPv6: YES" -else - echo "IPv6: NO" -fi -compression="`echo "$compression"|sed 's/^ //'`" -if test -z "$compression"; then compression="NO"; fi -echo "Supported compression: $compression" -echo "SSL support: `echo $cf_have_ssl|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -if test "$cf_use_javascript" = yes; then - echo "Javascript enabled: YES" - echo "Regular expressions: $reg_exp_mode" -fi -if test "$cf_enable_utf8" != no; then - echo "UTF-8 terminal: YES" -else - echo "UTF-8 terminal: NO" -fi -if test "$cf_have_gpm" = yes; then - echo "GPM support: YES" -else - echo "GPM support: NO" -fi -if test "$ac_cv_have_emx" = yes; then - if test "$ac_cv_have_x2" != no; then - echo "xterm for OS/2 support: YES" - else - echo "xterm for OS/2 support: NO" - fi -fi -if test "$cf_use_graphics" != no; then - echo "Graphics enabled: YES" - echo "Graphics drivers: `echo "$drivers"|sed 's/^ //'`" - echo "Image formats: $image_formats" - echo "OpenMP: `echo $cf_have_openmp|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -else echo "Graphics enabled: NO"; fi -echo "---------------------------------------------------------" -if test "$cf_have_ssl" = "nss"; then - echo "!!! WARNING !!! NSS encryption library doesn't verify" - echo "certificates and it can cause lockup of the whole browser" - echo "if the server is not responding." - echo "It is recommended to use OpenSSL instead." - echo "---------------------------------------------------------" -fi -if test -n "`echo "$drivers"|grep -w X`" -a "$ac_cv_header_interix_interix_h" = yes; then - echo "!!! WARNING !!! Xwindow in Interix is unreliable and it" - echo "may cause browser lockup." - echo "It is recommended to use Cygwin instead." - echo "---------------------------------------------------------" -fi -if test -n "`echo "$drivers"|grep -w WINDOWS`" -a "$ac_cv_func_uwin_path" = yes; then - echo "!!! WARNING !!! Windows driver in UWIN is buggy." - echo "It is recommended to use Cygwin instead." - echo "---------------------------------------------------------" -fi - - - diff --git a/configure.in b/configure.in @@ -1,1396 +0,0 @@ -# configure.in -# (c) 2002 Mikulas Patocka, Karel 'Clock' Kulhavy, Petr 'Brain' Kulhavy, -# Martin 'PerM' Pergel -# This file is a part of the Links program, released under GPL. - -AC_INIT(main.c) - -AM_INIT_AUTOMAKE(links, 2.16) - -ACLOCAL="./missing aclocal" -AUTOCONF="./missing autoconf" -AUTOMAKE="./missing automake" -AUTOHEADER="./missing autoheader" - -export CC -export CPPFLAGS -export CFLAGS -export LDFLAGS -export LIBS - -AM_CONFIG_HEADER(config.h) - -dnl Checks for programs. -AC_PROG_CC - -dnl AC_PROG_CXX -dnl AC_PROG_AWK -dnl AM_PROG_LEX -dnl AC_PROG_YACC - -image_formats="GIF PNG XBM" - -static_link=0 -if test -n "`echo "$CC" "$LDFLAGS" "$CFLAGS" "$LIBS" | grep 'static\>'`"; then - static_link=1 -fi - -if test -n "`uname|grep -i bsd`"; then - CPPFLAGS="$CPPFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib" -fi - -AC_HEADER_STDC -AC_PROG_GCC_TRADITIONAL - -dnl Check for libraries - -AC_CACHE_CHECK([for EMX], ac_cv_have_emx, - AC_TRY_COMPILE(, [#ifndef __EMX__ - kill me! - #endif ], ac_cv_have_emx=yes, ac_cv_have_emx=no) -) -test "$ac_cv_have_emx" = yes && LDFLAGS="`echo "$LDFLAGS" | sed "s/-Zexe//g" | sed "s/-Zbin-files//g"`" -test "$ac_cv_have_emx" = yes && test "$static_link" = 0 && LDFLAGS="$LDFLAGS -Zcrtdll" - -AC_CACHE_CHECK([for OpenWatcom], ac_cv_have_watcom, - AC_TRY_COMPILE(, [#ifndef __WATCOMC__ - kill me! - #endif ], ac_cv_have_watcom=yes, ac_cv_have_watcom=no) -) -test "$ac_cv_have_watcom" = yes && ac_cv_lib_dir_opendir=no - -AC_CACHE_CHECK([for DJGPP], ac_cv_have_djgpp, - AC_TRY_COMPILE(, [#ifndef __DJGPP - kill me! - #endif ], ac_cv_have_djgpp=yes, ac_cv_have_djgpp=no) -) - -if test "$ac_cv_have_djgpp" = yes; then - static_link=1 - test -n "$DJDIR" && test -d "$DJDIR/net/watt/inc" && CPPFLAGS="-I$DJDIR/net/watt/inc $CPPFLAGS" - test -n "$DJDIR" && test -d "$DJDIR/net/watt/lib" && LDFLAGS="-L$DJDIR/net/watt/lib $LDFLAGS" -fi - -AC_CACHE_CHECK([for volatile], ac_cv_have_volatile, - AC_TRY_COMPILE([], [ - volatile int a = 0; - return a; - ], ac_cv_have_volatile=yes, ac_cv_have_volatile=no) -) -if test "$ac_cv_have_volatile" = yes; then - AC_DEFINE(HAVE_VOLATILE) -fi - -AC_CACHE_CHECK([for restrict], ac_cv_have_restrict, - AC_TRY_COMPILE([ - static void f(int * restrict a, int * restrict b) - { - } - ], [ - int a, b; - f(&a, &b); - return 0; - ], ac_cv_have_restrict=yes, ac_cv_have_restrict=no) -) -if test "$ac_cv_have_restrict" = yes; then - AC_DEFINE(HAVE_RESTRICT) -fi - -AC_CACHE_CHECK([for __restrict], ac_cv_have___restrict, - AC_TRY_COMPILE([ - static void f(int * __restrict a, int * __restrict b) - { - } - ], [ - int a, b; - f(&a, &b); - return 0; - ], ac_cv_have___restrict=yes, ac_cv_have___restrict=no) -) -if test "$ac_cv_have___restrict" = yes; then - AC_DEFINE(HAVE___RESTRICT) -fi - -AC_CACHE_CHECK([for long long], ac_cv_have_long_long, - AC_TRY_COMPILE(, [unsigned long long a; ], ac_cv_have_long_long=yes, ac_cv_have_long_long=no) -) -test "$ac_cv_have_long_long" = yes && AC_DEFINE(HAVE_LONG_LONG) - -AC_CACHE_CHECK([for pointer comparison bug], ac_cv_pointer_comparison_bug, - AC_TRY_RUN([ - int main() - { - void *p = (void *)-1L; - return p != (void *)-1L; - } - ], ac_cv_pointer_comparison_bug=no, ac_cv_pointer_comparison_bug=yes, - [if test -n "`echo "$CC"|grep ^tcc`"; then - ac_cv_pointer_comparison_bug=yes - else - ac_cv_pointer_comparison_bug=no - fi] - ) -) -test "$ac_cv_pointer_comparison_bug" = yes && AC_DEFINE(HAVE_POINTER_COMPARISON_BUG) - -if test "$ac_cv_have_long_long" = yes -a "$ac_cv_have_volatile" = yes; then - AC_CACHE_CHECK([for maxint conversion bug], ac_cv_maxint_conversion_bug, - AC_TRY_RUN([ - int main() - { - volatile long long q = 0x7FFFFFEF; - return q < 0; - } - ], ac_cv_maxint_conversion_bug=no, ac_cv_maxint_conversion_bug=yes, - [if test -n "`echo "$CC"|grep ^cc`" -a "`uname -s`" = HP-UX; then - ac_cv_maxint_conversion_bug=yes - else - ac_cv_maxint_conversion_bug=no - fi] - ) - ) - test "$ac_cv_maxint_conversion_bug" = yes && AC_DEFINE(HAVE_MAXINT_CONVERSION_BUG) -fi - -dnl AC_CACHE_CHECK([for _FILE_OFFSET_BITS 64], ac_cv_have_file_offset_bits, -dnl AC_TRY_COMPILE([ -dnl #define _FILE_OFFSET_BITS 64 -dnl #include <stdio.h> -dnl ], [ -dnl return 0; -dnl ], ac_cv_have_file_offset_bits=yes, ac_cv_have_file_offset_bits=no) -dnl ) -dnl test "$ac_cv_have_file_offset_bits" = yes && AC_DEFINE(HAVE_FILE_OFFSET_BITS) - -dnl note: HAVE_STDLIB_H clashes with defines in jpeglib.h, -dnl so we must use a different name -AC_CACHE_CHECK([for stdlib.h], ac_cv_have_stdlib_h, - AC_TRY_COMPILE([#include <stdlib.h>],[], - ac_cv_have_stdlib_h=yes, ac_cv_have_stdlib_h=no) -) -if test "$ac_cv_have_stdlib_h" = yes; then - AC_DEFINE(HAVE_STDLIB_H_X) -fi - - -dnl Checks for header files. -AC_HEADER_DIRENT -AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(alloca.h arpa/inet.h bsd/string.h cygwin/process.h cygwin/version.h fcntl.h grp.h ieee.h interix/interix.h inttypes.h io.h langinfo.h limits.h linux/falloc.h locale.h malloc.h math.h net/socket.h netinet/in_system.h netinet/in_systm.h netinet/ip.h poll.h process.h pwd.h search.h setjmp.h sgtty.h stdarg.h string.h strings.h sys/cygwin.h sys/file.h sys/fmutex.h sys/ioctl.h sys/resource.h sys/select.h sys/time.h sys/un.h sys/utsname.h termios.h time.h umalloc.h unistd.h unixlib.h utime.h uwin.h values.h) - -if test "$ac_cv_header_stdarg_h" != yes; then - AC_ERROR([stdarg.h not present]) -fi - -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_C_INLINE -AC_TYPE_SIZE_T -AC_TYPE_PID_T -AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, - AC_TRY_COMPILE([ - #include <sys/types.h> - #include <sys/socket.h> - ], [ - socklen_t a = 0; - return a; - ], ac_cv_have_socklen_t=yes, ac_cv_have_socklen_t=no) -) -if test "$ac_cv_have_socklen_t" = yes; then - AC_DEFINE(HAVE_SOCKLEN_T) -fi -AC_CACHE_CHECK([for errno], ac_cv_have_errno, - AC_TRY_COMPILE([ - #include <errno.h> - ], [ - errno = 0; - return errno; - ], ac_cv_have_errno=yes, ac_cv_have_errno=no) -) -if test "$ac_cv_have_errno" = yes; then - AC_DEFINE(HAVE_ERRNO) -fi - -AC_HEADER_TIME -AC_STRUCT_TM - -if test "$ac_cv_have_emx" = yes; then - default_short=2 - default_int=4 - default_long=4 - default_long_long=8 -else - default_short=0 - default_int=0 - default_long=0 - default_long_long=0 -fi - -dnl Check for compiler type sizes -dnl AC_CHECK_SIZEOF(short, "$default_short") -AC_CHECK_SIZEOF(unsigned short, "$default_short") -dnl AC_CHECK_SIZEOF(int, "$default_int") -AC_CHECK_SIZEOF(unsigned, "$default_int") -dnl AC_CHECK_SIZEOF(long, "$default_long") -AC_CHECK_SIZEOF(unsigned long, "$default_long") -if test "$ac_cv_have_long_long" = yes; then -dnl AC_CHECK_SIZEOF(long long, "$default_long_long") - AC_CHECK_SIZEOF(unsigned long long, "$default_long_long") -fi -if test "$ac_cv_sizeof_unsigned" -ne 0 && test "$ac_cv_sizeof_unsigned" -lt 4; then - AC_ERROR([integer must have at least 32 bits]) -fi -AC_CACHE_CHECK([for big endian], ac_cv_big_endian, - AC_TRY_RUN([ - long l; - char *c = (char *)&l; - int main() - { - l = 0x12345678L; - return !(c[[sizeof(long) - 1]] == 0x78 && c[[sizeof(long) - 2]] == 0x56 && c[[sizeof(long) - 3]] == 0x34 && c[[sizeof(long) - 4]] == 0x12); - } - ], ac_cv_big_endian=yes, ac_cv_big_endian=no, ac_cv_big_endian=no) -) -AC_CACHE_CHECK([for little endian], ac_cv_little_endian, - AC_TRY_RUN([ - long l; - char *c = (char *)&l; - int main() - { - l = 0x12345678L; - return !(c[[0]] == 0x78 && c[[1]] == 0x56 && c[[2]] == 0x34 && c[[3]] == 0x12); - } - ], ac_cv_little_endian=yes, ac_cv_little_endian=no, ac_cv_little_endian="$ac_cv_have_emx") -) - -if test "$ac_cv_big_endian" = yes; then - AC_DEFINE(C_BIG_ENDIAN) -else if test "$ac_cv_little_endian" = yes; then - AC_DEFINE(C_LITTLE_ENDIAN) -fi -fi - -AC_CACHE_CHECK([if rename can replace existing files], ac_cv_rename_over_existing_files, - AC_TRY_RUN([ - #include <fcntl.h> - #include <stdio.h> - #include <unistd.h> - - int main() - { - int ret; - close(creat("conftest.rename1", 0600)); - close(creat("conftest.rename2", 0600)); - ret = rename("conftest.rename1", "conftest.rename2"); - unlink("conftest.rename1"); - unlink("conftest.rename2"); - return !!ret; - } - ], ac_cv_rename_over_existing_files=yes, ac_cv_rename_over_existing_files=no, ac_cv_rename_over_existing_files=no) -) - -if test "$ac_cv_rename_over_existing_files" = yes; then - AC_DEFINE(RENAME_OVER_EXISTING_FILES) -fi - -dnl Checks for library functions. -AC_TYPE_SIGNAL -AC_FUNC_STRFTIME -AC_FUNC_VPRINTF -AC_HAVE_FUNCS(bcmp bcopy bzero calloc cfmakeraw chmod cygwin_conv_path cygwin_conv_to_full_win32_path dirfd fallocate getcwd getgrgid getpagesize getpid getpwuid getrlimit gettimeofday kqueue malloc_trim mallopt mktime nl_langinfo poll popen posix_fallocate raise select setlocale setpgid setrlimit setsid sigaction sigblock sigdelset sigprocmask sigsetmask snprintf strdup strmode strptime strtod strtoimax strtol strtoll strtoq strtoul tdelete tempnam tfind tsearch uname unixpath2win utime utimes uwin_path winpath2unix _heapmin _ucreate _udefault _udestroy _uopen __strtoll) - - -AC_HAVE_FUNCS(strlen) -AC_CACHE_CHECK([for strlen], ac_cv_have_strlen, - AC_TRY_LINK([#include <string.h>], [strlen(""); return 0;], ac_cv_have_strlen=yes, ac_cv_have_strlen=no) -) -if test "$ac_cv_have_strlen" = yes; then - AC_DEFINE(HAVE_STRLEN) -fi - -AC_HAVE_FUNCS(strcpy) -AC_CACHE_CHECK([for strcpy], ac_cv_have_strcpy, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; strcpy(a, ""); return 0;], ac_cv_have_strcpy=yes, ac_cv_have_strcpy=no) -) -if test "$ac_cv_have_strcpy" = yes; then - AC_DEFINE(HAVE_STRCPY) -fi - -AC_HAVE_FUNCS(strncpy) -AC_CACHE_CHECK([for strncpy], ac_cv_have_strncpy, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; strncpy(a, "", 1); return 0;], ac_cv_have_strncpy=yes, ac_cv_have_strncpy=no) -) -if test "$ac_cv_have_strncpy" = yes; then - AC_DEFINE(HAVE_STRNCPY) -fi - -AC_HAVE_FUNCS(strchr) -AC_CACHE_CHECK([for strchr], ac_cv_have_strchr, - AC_TRY_LINK([#include <string.h>], [strchr("", 0); return 0;], ac_cv_have_strchr=yes, ac_cv_have_strchr=no) -) -if test "$ac_cv_have_strchr" = yes; then - AC_DEFINE(HAVE_STRCHR) -fi - -AC_HAVE_FUNCS(strrchr) -AC_CACHE_CHECK([for strrchr], ac_cv_have_strrchr, - AC_TRY_LINK([#include <string.h>], [strrchr("", 0); return 0;], ac_cv_have_strrchr=yes, ac_cv_have_strrchr=no) -) -if test "$ac_cv_have_strrchr" = yes; then - AC_DEFINE(HAVE_STRRCHR) -fi - -AC_HAVE_FUNCS(strcmp) -AC_CACHE_CHECK([for strcmp], ac_cv_have_strcmp, - AC_TRY_LINK([#include <string.h>], [strcmp("", ""); return 0;], ac_cv_have_strcmp=yes, ac_cv_have_strcmp=no) -) -if test "$ac_cv_have_strcmp" = yes; then - AC_DEFINE(HAVE_STRCMP) -fi - -AC_HAVE_FUNCS(strncmp) -AC_CACHE_CHECK([for strncmp], ac_cv_have_strncmp, - AC_TRY_LINK([#include <string.h>], [strncmp("", "", 1); return 0;], ac_cv_have_strncmp=yes, ac_cv_have_strncmp=no) -) -if test "$ac_cv_have_strncmp" = yes; then - AC_DEFINE(HAVE_STRNCMP) -fi - -AC_HAVE_FUNCS(strcspn) -AC_CACHE_CHECK([for strcspn], ac_cv_have_strcspn, - AC_TRY_LINK([#include <string.h>], [strcspn("", ""); return 0;], ac_cv_have_strcspn=yes, ac_cv_have_strcspn=no) -) -if test "$ac_cv_have_strcspn" = yes; then - AC_DEFINE(HAVE_STRCSPN) -fi - -AC_HAVE_FUNCS(strspn) -AC_CACHE_CHECK([for strspn], ac_cv_have_strspn, - AC_TRY_LINK([#include <string.h>], [strspn("", ""); return 0;], ac_cv_have_strspn=yes, ac_cv_have_strspn=no) -) -if test "$ac_cv_have_strspn" = yes; then - AC_DEFINE(HAVE_STRSPN) -fi - -AC_HAVE_FUNCS(strstr) -AC_CACHE_CHECK([for strstr], ac_cv_have_strstr, - AC_TRY_LINK([#include <string.h>], [strstr("", ""); return 0;], ac_cv_have_strstr=yes, ac_cv_have_strstr=no) -) -if test "$ac_cv_have_strstr" = yes; then - AC_DEFINE(HAVE_STRSTR) -fi - -AC_HAVE_FUNCS(memchr) -AC_CACHE_CHECK([for memchr], ac_cv_have_memchr, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; memchr(a, 0, 1); return 0;], ac_cv_have_memchr=yes, ac_cv_have_memchr=no) -) -if test "$ac_cv_have_memchr" = yes; then - AC_DEFINE(HAVE_MEMCHR) -fi - -AC_HAVE_FUNCS(memcmp) -AC_CACHE_CHECK([for memcmp], ac_cv_have_memcmp, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; memcmp(a, a, 1); return 0;], ac_cv_have_memcmp=yes, ac_cv_have_memcmp=no) -) -if test "$ac_cv_have_memcmp" = yes; then - AC_DEFINE(HAVE_MEMCMP) -fi - -AC_HAVE_FUNCS(memcpy) -AC_CACHE_CHECK([for memcpy], ac_cv_have_memcpy, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; memcpy(a, a, 1); return 0;], ac_cv_have_memcpy=yes, ac_cv_have_memcpy=no) -) -if test "$ac_cv_have_memcpy" = yes; then - AC_DEFINE(HAVE_MEMCPY) -fi - -AC_HAVE_FUNCS(memmove) -AC_CACHE_CHECK([for memmove], ac_cv_have_memmove, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; memmove(a, a, 1); return 0;], ac_cv_have_memmove=yes, ac_cv_have_memmove=no) -) -if test "$ac_cv_have_memmove" = yes; then - AC_DEFINE(HAVE_MEMMOVE) -fi - -AC_HAVE_FUNCS(memset) -AC_CACHE_CHECK([for memset], ac_cv_have_memset, - AC_TRY_LINK([#include <string.h>], [char a[[1]]; memset(a, 0, 1); return 0;], ac_cv_have_memset=yes, ac_cv_have_memset=no) -) -if test "$ac_cv_have_memset" = yes; then - AC_DEFINE(HAVE_MEMSET) -fi - -AC_HAVE_FUNCS(memmem) -AC_CACHE_CHECK([for memmem], ac_cv_have_memmem, - AC_TRY_LINK([#define _GNU_SOURCE -#include <string.h>], [memmem("", 0, "", 0); return 0;], ac_cv_have_memmem=yes, ac_cv_have_memmem=no) -) -if test "$ac_cv_have_memmem" = yes; then - AC_DEFINE(HAVE_MEMMEM) -fi - -AC_HAVE_FUNCS(strerror) -AC_CACHE_CHECK([for strerror], ac_cv_have_strerror, - AC_TRY_LINK([#include <string.h>], [char *c = strerror(1); return 0;], ac_cv_have_strerror=yes, ac_cv_have_strerror=no) -) -if test "$ac_cv_have_strerror" = yes; then - AC_DEFINE(HAVE_STRERROR) -fi - -AC_CACHE_CHECK([for sigfillset], ac_cv_have_sigfillset, - AC_TRY_LINK([#include <signal.h>], [sigset_t set; sigfillset(&set);], ac_cv_have_sigfillset=yes, ac_cv_have_sigfillset=no) -) -if test "$ac_cv_have_sigfillset" = yes; then - AC_DEFINE(HAVE_SIGFILLSET) -fi - -AC_CACHE_CHECK([for sigsetjmp/siglongjmp], ac_cv_have_sigsetjmp, - AC_TRY_LINK([#include <setjmp.h>], [sigjmp_buf env;sigsetjmp(env, 1);siglongjmp(env, 2);], ac_cv_have_sigsetjmp=yes, ac_cv_have_sigsetjmp=no) -) -if test "$ac_cv_have_sigsetjmp" = yes; then - AC_DEFINE(HAVE_SIGSETJMP) -fi - -AC_CACHE_CHECK([for __builtin_add_overflow], ac_cv_have___builtin_add_overflow, - AC_TRY_LINK([], [volatile int a = 1, b = 2; int c; return __builtin_add_overflow(a, b, &c);], ac_cv_have___builtin_add_overflow=yes, ac_cv_have___builtin_add_overflow=no) -) -if test "$ac_cv_have___builtin_add_overflow" = yes; then - AC_DEFINE(HAVE___BUILTIN_ADD_OVERFLOW) -fi - -AC_CACHE_CHECK([for __builtin_clz], ac_cv_have___builtin_clz, - AC_TRY_LINK([], [volatile unsigned a = 1; return __builtin_clz(a);], ac_cv_have___builtin_clz=yes, ac_cv_have___builtin_clz=no) -) -if test "$ac_cv_have___builtin_clz" = yes; then - AC_DEFINE(HAVE___BUILTIN_CLZ) -fi - - -if test "$ac_cv_func_select" != yes; then - AC_ERROR([select function not present]) -fi - -if test "$ac_cv_func_strmode" != yes; then - AC_CHECK_LIB(bsd, strmode) -fi - -dnl User option - -AC_MSG_CHECKING([for requested debug level]) -AC_ARG_ENABLE(debuglevel, [ --enable-debuglevel set internal checking level - -1 - recover from segmentation faults - 0 - no checks (fastest) - 1 - check memory leaks - 2 - check memory leaks, red zone - 3 - check memory leaks, red zone, pattern filling], cf_debuglevel="$enableval", cf_debuglevel=0) -if test "$cf_debuglevel" = no; then cf_debuglevel=0; fi -if test "$cf_debuglevel" = yes; then cf_debuglevel=2; fi -AC_MSG_RESULT($cf_debuglevel) -if test "$cf_debuglevel" != -1 && test "$cf_debuglevel" != 0 && test "$cf_debuglevel" != 1 && test "$cf_debuglevel" != 2 && test "$cf_debuglevel" != 3; then - AC_ERROR([Invalid debuglevel specified]) -fi -AC_DEFINE_UNQUOTED(DEBUGLEVEL, $cf_debuglevel) - -AC_MSG_CHECKING([if you want to enable javascript]) -cf_use_javascript=no -AC_ARG_ENABLE(javascript, [ --enable-javascript DELETE1], cf_use_javascript="$enableval") -AC_MSG_RESULT($cf_use_javascript) -if test "$cf_use_javascript" = yes; then - AC_DEFINE(JS) - AC_MSG_CHECKING([if you want to link with system libfl]) - cf_use_libfl=no - AC_ARG_WITH(libfl, [ --with-libfl DELETE2], cf_use_libfl="$withval") - AC_MSG_RESULT($cf_use_libfl) - if test "$cf_use_libfl" != no; then - LIBS="$LIBS -lfl" - else - AC_DEFINE(CHCEME_FLEXI_LIBU) - fi - - reg_exp_mode="NONE" - PKG_CHECK_MODULES(LIBPCRE, libpcre, pkgconfig_libpcre=yes, pkgconfig_libpcre=no) - if test "$pkgconfig_libpcre" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPCRE_CFLAGS" - LIBS="$LIBPCRE_LIBS $LIBS" - fi - AC_CHECK_LIB(pcre, pcre_compile) - AC_CHECK_HEADERS(pcre.h) - if test "$ac_cv_lib_pcre_pcre_compile" = yes && test "$ac_cv_header_pcre_h" = yes; then - AC_DEFINE(HAVE_PCRE) - reg_exp_mode="PCRE" - else - AC_HAVE_FUNCS(regcomp) - AC_CHECK_HEADERS(regex.h) - if test "$ac_cv_func_regcomp" = yes && test "$ac_cv_header_regex_h" = yes; then - AC_DEFINE(HAVE_REGEX) - reg_exp_mode="LIBC" - fi - fi - AC_CHECK_LIB(m, fmod) -fi - -cf_use_graphics=no -AC_MSG_CHECKING([if you want to use graphics]) -AC_ARG_ENABLE(graphics, [ --enable-graphics use graphics], cf_use_graphics="$enableval" ) -AC_MSG_RESULT($cf_use_graphics) - -AC_MSG_CHECKING([if you want to enable UTF-8 terminal]) -cf_enable_utf8=yes -AC_ARG_ENABLE(utf8, [ --disable-utf8 disable UTF-8 terminal (saves memory)], cf_enable_utf8="$enableval" ) -test "$ac_cv_have_emx" = yes && cf_enable_utf8=no -test "$ac_cv_have_djgpp" = yes && cf_enable_utf8=no -AC_MSG_RESULT($cf_enable_utf8) - -if test "$cf_enable_utf8" != no; then - AC_DEFINE(ENABLE_UTF8) -fi - - -dnl Checks for libraries. - -AC_HAVE_FUNCS(clock_gettime) -if test $ac_cv_func_clock_gettime = no; then - AC_CHECK_LIB(rt, clock_gettime) - if test $ac_cv_lib_rt_clock_gettime = yes; then - AC_DEFINE(HAVE_CLOCK_GETTIME) - fi -fi - -AC_CHECK_FUNC(socket, cf_result=yes, cf_result=no) -if test "$cf_result" = no; then - AC_CHECK_LIB(socket, socket) - if test "$ac_cv_lib_socket_socket" = no; then - AC_CHECK_LIB(network, socket) - if test "$ac_cv_lib_network_socket" = no; then - AC_CHECK_LIB(watt, socket) - if test "$ac_cv_lib_watt_socket" = no; then - AC_ERROR([socket function not present]) - fi - fi - fi -fi -AC_CHECK_FUNC(setsockopt, cf_result=yes, cf_result=no) -if test "$cf_result" = no; then - AC_CHECK_LIB(socket, setsockopt) -fi - -AC_CHECK_FUNC(gethostbyname, cf_result=yes, cf_result=no) -if test "$cf_result" = no; then - AC_CHECK_LIB(socket, gethostbyname) - cf_result="$ac_cv_lib_socket_gethostbyname" - if test "$ac_cv_lib_socket_gethostbyname" = no; then - AC_CHECK_LIB(nsl, gethostbyname) - cf_result="$ac_cv_lib_nsl_gethostbyname" - fi -fi -test "$cf_result" = yes && AC_DEFINE(HAVE_GETHOSTBYNAME) - -if test "$cf_result" = yes && test "$ac_cv_have_watcom" = yes -o "`uname -s`" = SunOS; then - AC_CACHE_CHECK([for flawed gethostbyname], ac_cv_gethostbyname_bug, - AC_TRY_RUN([ - #include <netdb.h> - int main() - { - return !gethostbyname("www.gnu.org"); - } - ], ac_cv_gethostbyname_bug=no, ac_cv_gethostbyname_bug=yes, ac_cv_gethostbyname_bug="$ac_cv_have_watcom") - ) - test "$ac_cv_gethostbyname_bug" = yes && AC_DEFINE(HAVE_GETHOSTBYNAME_BUG) -fi - -AC_ARG_WITH(getaddrinfo, [ --without-getaddrinfo compile without getaddrinfo function],[if test "$withval" = no; then disable_getaddrinfo=yes; else disable_getaddrinfo=no; fi]) - -if test "$disable_getaddrinfo" != yes; then - AC_HAVE_FUNCS(getaddrinfo freeaddrinfo gai_strerror) - if test "$ac_cv_func_getaddrinfo" = yes -a "$ac_cv_func_freeaddrinfo" = yes; then - cf_have_getaddrinfo=yes - else - cf_have_getaddrinfo=no - fi -else - cf_have_getaddrinfo=no -fi - -AC_HAVE_FUNCS(inet_ntop inet_pton herror) - -AC_ARG_WITH(ipv6, [ --without-ipv6 compile without ipv6],[if test "$withval" = no; then disable_ipv6=yes; else disable_ipv6=no; fi]) - -AC_CACHE_CHECK([for ipv6], ac_cv_have_ipv6, - AC_TRY_COMPILE([ - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> - ], [ - struct sockaddr_in6 sin6; - sin6.sin6_family = AF_INET6; - ], ac_cv_have_ipv6=yes, ac_cv_have_ipv6=no) -) -if test "$disable_ipv6" != yes -a "$ac_cv_have_ipv6" = yes -a "$cf_have_getaddrinfo" = yes; then - cf_have_ipv6=yes - AC_DEFINE(SUPPORT_IPV6) -else - cf_have_ipv6=no -fi -AC_CACHE_CHECK([for sockaddr_in6.sin6_scope_id], ac_cv_have_sin6_scope_id, - AC_TRY_COMPILE([ - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> - ], [ - struct sockaddr_in6 sin6; - sin6.sin6_scope_id = 0; - ], ac_cv_have_sin6_scope_id=yes, ac_cv_have_sin6_scope_id=no) -) -test "$ac_cv_have_sin6_scope_id" = yes && AC_DEFINE(SUPPORT_IPV6_SCOPE) - -AC_ARG_WITH(libevent, [ --without-libevent compile without libevent],[if test "$withval" = no; then disable_libevent=yes; else disable_libevent=no; fi]) - -cf_have_libevent=no -if test "$disable_libevent" != yes; then - AC_CHECK_HEADERS(event.h ev-event.h) - if test "$ac_cv_header_event_h" = yes; then - AC_CHECK_LIB(event, event_loop) - if test "$ac_cv_lib_event_event_loop" = yes; then - cf_have_libevent=libevent - fi - fi - if test "$cf_have_libevent" = no; then - if test "$ac_cv_header_event_h" = yes -o "$ac_cv_header_ev_event_h" = yes; then - AC_CHECK_LIB(ev, event_loop) - if test "$ac_cv_lib_ev_event_loop" = yes; then - cf_have_libevent=libev - fi - fi - fi -fi -if test "$cf_have_libevent" != no; then - AC_HAVE_FUNCS(event_base_set event_get_version event_get_method event_base_free event_base_new event_reinit event_base_get_method event_config_set_flag event_get_struct_event_size) -fi - -if test "$cf_use_graphics" != no; then - AC_CHECK_LIB(m, pow) - if test "$ac_cv_lib_m_pow" = no; then - AC_CHECK_LIB(m, main) - fi - AC_CACHE_CHECK([for pow], ac_cv_have_pow, - AC_TRY_LINK([#include <math.h>], [pow(1.1, 2.2); return 0;], ac_cv_have_pow=yes, ac_cv_have_pow=no) - ) - if test "$ac_cv_have_pow" = yes; then - AC_DEFINE(HAVE_POW) - fi - AC_CACHE_CHECK([for powf], ac_cv_have_powf, - AC_TRY_LINK([#include <math.h>], [powf(1.1, 2.2); return 0;], ac_cv_have_powf=yes, ac_cv_have_powf=no) - ) - if test "$ac_cv_have_powf" = yes; then - AC_DEFINE(HAVE_POWF) - fi - if test "$ac_cv_have_pow" != yes -a "$ac_cv_have_powf" != yes; then - AC_ERROR([pow and powf functions not present]) - fi -fi - -AC_ARG_WITH(gpm, [ --without-gpm compile without gpm mouse],[if test "$withval" = no; then disable_gpm=yes; else disable_gpm=no; fi]) - -if test "$disable_gpm" != yes -a "$ac_cv_have_djgpp" != yes; then - AC_CHECK_HEADERS(gpm.h) - AC_CHECK_LIB(gpm, Gpm_Open) - AC_HAVE_FUNCS(Gpm_GetLibVersion) - if test "$ac_cv_lib_gpm_Gpm_Open" = yes && test "$ac_cv_header_gpm_h" = yes; then - cf_have_gpm=yes - AC_CACHE_CHECK([for Gpm_Event wdx and wdy], ac_cv_have_wdx_wdy, - AC_TRY_COMPILE([#include <gpm.h>], [Gpm_Event e; e.wdx = 1; e.wdy = 2; return e.wdx + e.wdy], ac_cv_have_wdx_wdy=yes, ac_cv_have_wdx_wdy=no) - ) - if test "$ac_cv_have_wdx_wdy" = yes; then - AC_DEFINE(HAVE_WDX_WDY) - fi - else - cf_have_gpm=no - fi -else - cf_have_gpm=no -fi - -AC_CACHE_CHECK([for OS/2 threads], ac_cv_have_beginthread, - CFLAGS_X="$CFLAGS" - CFLAGS="$CFLAGS -Zmt" - AC_TRY_LINK([#include <stdlib.h>], [_beginthread(NULL, NULL, 0, NULL)], ac_cv_have_beginthread=yes, ac_cv_have_beginthread=no) - CFLAGS="$CFLAGS_X" -) -if test "$ac_cv_have_beginthread" = yes; then - CFLAGS="$CFLAGS -Zmt" - AC_DEFINE(HAVE_BEGINTHREAD) -fi -AC_CHECK_HEADERS(atheos/threads.h) -AC_HAVE_FUNCS(spawn_thread resume_thread) - -AC_HAVE_FUNCS(MouOpen _read_kbd) -AC_CACHE_CHECK([for XFree for OS/2], ac_cv_have_x2, - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - ac_cv_have_x2=no - if test -n "$X11ROOT"; then - CPPFLAGS="$CPPFLAGS_X -I$X11ROOT/XFree86/include" - LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86_gcc" - AC_TRY_LINK([#include <pty.h>], [struct winsize win;ptioctl(1, TIOCGWINSZ, &win)], ac_cv_have_x2=xf86_gcc, ac_cv_have_x2=no) - if test "$ac_cv_have_x2" = no; then - LIBS="$LIBS_X -L$X11ROOT/XFree86/lib -lxf86" - AC_TRY_LINK([#include <pty.h>], [struct winsize win;ptioctl(1, TIOCGWINSZ, &win)], ac_cv_have_x2=xf86, ac_cv_have_x2=no) - fi - fi - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" -) -if test "$ac_cv_have_x2" != no; then - CPPFLAGS="$CPPFLAGS -I$X11ROOT/XFree86/include" - LIBS="$LIBS -L$X11ROOT/XFree86/lib -l$ac_cv_have_x2" - AC_DEFINE(X2) -fi - -cf_result=no -#ifdef HAVE_SSL -ssld=yes -withval= -AC_ARG_WITH(ssl, [ --with-ssl(=directory) enable SSL support - --with-ssl=nss enable SSL support through NSS OpenSSL emulation], [if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi]) -AC_ARG_ENABLE(ssl-pkgconfig, [ --disable-ssl-pkgconfig don't use pkgconfig when searching for openssl], cf_openssl_pkgconfig="$enableval", cf_openssl_pkgconfig=yes) -if test -z "$disable_ssl"; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - if test "$static_link" != 0; then - AC_CHECK_LIB(dl, dlopen) - AC_CHECK_LIB(z, inflate) - fi - CPPFLAGS_XX="$CPPFLAGS" - LIBS_XX="$LIBS" - if test "$cf_result" = no && test "$ssld" = yes -o "$ssld" = openssl; then - if test "$cf_openssl_pkgconfig" = no; then - pkgconfig_openssl=no - else - PKG_CHECK_MODULES(OPENSSL, openssl, pkgconfig_openssl=yes, pkgconfig_openssl=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_openssl" = no; then - AC_MSG_RESULT(no) - fi - fi - if test "$pkgconfig_openssl" = yes; then - AC_MSG_CHECKING([for OpenSSL]) - CPPFLAGS="$CPPFLAGS_XX $OPENSSL_CFLAGS" - LIBS="$OPENSSL_LIBS $LIBS_XX" - AC_TRY_LINK([#include <stdio.h> -#include <openssl/ssl.h>], [SSL_CTX_new((void *)0)], cf_result=openssl, cf_result=no) - AC_MSG_RESULT($cf_result) - fi - fi - - if test "$cf_result" = no && test "$ssld" != nss; then - AC_MSG_CHECKING([for OpenSSL]) - if test "$ssld" = yes -o "$ssld" = openssl; then - ssld=". /usr /usr/local /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl" - fi - for ssldir in $ssld; do - if test "$cf_result" = no; then - if test ! -z "$ssldir" && test "$ssldir" != /usr && test "$ssldir" != .; then - LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_XX" - CPPFLAGS="$CPPFLAGS_XX -I$ssldir/include" - else - LIBS="-lssl -lcrypto $LIBS_XX" - CPPFLAGS="$CPPFLAGS_XX" - fi - AC_TRY_LINK([#include <stdio.h> -#include <openssl/ssl.h>], [SSL_CTX_new((void *)0)], cf_result=openssl, cf_result=no) - fi - done - AC_MSG_RESULT($cf_result) - fi - - if test "$cf_result" = no && test "$ssld" = yes -o "$ssld" = nss; then - if test "$cf_openssl_pkgconfig" = no; then - pkgconfig_nss=no - else - PKG_CHECK_MODULES(NSS, nss, pkgconfig_nss=yes, pkgconfig_nss=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_nss" = no; then - AC_MSG_RESULT(no) - fi - fi - if test "$pkgconfig_nss" = no; then - NSS_CFLAGS="" - NSS_LIBS="" - fi - CPPFLAGS="$CPPFLAGS_X $NSS_CFLAGS" - LIBS="-lnss_compat_ossl $NSS_LIBS $LIBS_X" - AC_MSG_CHECKING([for NSS-compat-ossl]) - AC_TRY_LINK([#include <nss_compat_ossl/nss_compat_ossl.h>], [SSL_CTX_new((void *)0)], cf_result=nss, cf_result=no) - AC_MSG_RESULT($cf_result) - fi - - if test "$cf_result" = no; then - if test -n "$withval" -a "$withval" != no; then - AC_MSG_ERROR("OpenSSL not found") - fi - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - else - AC_DEFINE(HAVE_SSL) - if test "$cf_result" = openssl; then - AC_DEFINE(HAVE_OPENSSL) - AC_CHECK_HEADERS(openssl/x509v3.h) - fi - if test "$cf_result" = nss; then - AC_DEFINE(HAVE_NSS) - fi - AC_HAVE_FUNCS(ASN1_STRING_get0_data ASN1_STRING_to_UTF8 OPENSSL_cleanup OPENSSL_init_ssl RAND_add RAND_egd RAND_file_name RAND_load_file RAND_write_file SSL_SESSION_is_resumable SSL_get1_session SSL_load_error_strings X509_check_host X509_check_ip) - AC_CACHE_CHECK([for CRYPTO_set_mem_functions without file/line], ac_cv_have_crypto_set_mem_functions_1, - AC_TRY_LINK([#include <openssl/crypto.h> - static int csmf(void *(*m)(size_t), void *(*r)(void *, size_t), void (*f)(void *)) { return 0; } - ], [return (int)(CRYPTO_set_mem_functions - csmf);], ac_cv_have_crypto_set_mem_functions_1=yes, ac_cv_have_crypto_set_mem_functions_1=no) - ) - if test "$ac_cv_have_crypto_set_mem_functions_1" = yes; then - AC_DEFINE(HAVE_CRYPTO_SET_MEM_FUNCTIONS_1) - fi - AC_CACHE_CHECK([for CRYPTO_set_mem_functions with file/line], ac_cv_have_crypto_set_mem_functions_2, - AC_TRY_LINK([#include <openssl/crypto.h> - static int csmf(void *(*m)(size_t, const char *, int), void *(*r)(void *, size_t, const char *, int), void (*f)(void *, const char *, int)) { return 0; } - ], [return (int)(CRYPTO_set_mem_functions - csmf);], ac_cv_have_crypto_set_mem_functions_2=yes, ac_cv_have_crypto_set_mem_functions_2=no) - ) - if test "$ac_cv_have_crypto_set_mem_functions_2" = yes; then - AC_DEFINE(HAVE_CRYPTO_SET_MEM_FUNCTIONS_2) - fi - fi -fi -#endif -cf_have_ssl=$cf_result - -AC_ARG_WITH(zlib, [ --without-zlib compile without zlib compression],[if test "$withval" = no; then disable_zlib=yes; else disable_zlib=no; fi]) -AC_ARG_WITH(brotli, [ --without-brotli compile without brotli compression],[if test "$withval" = no; then disable_brotli=yes; else disable_brotli=no; fi]) -AC_ARG_WITH(bzip2, [ --without-bzip2 compile without bzip2 compression],[if test "$withval" = no; then disable_bzip2=yes; else disable_bzip2=no; fi]) -AC_ARG_WITH(lzma, [ --without-lzma compile without lzma compression],[if test "$withval" = no; then disable_lzma=yes; else disable_lzma=no; fi]) -AC_ARG_WITH(lzip, [ --without-lzip compile without lzip compression],[if test "$withval" = no; then disable_lzip=yes; else disable_lzip=no; fi]) -compression="" - -if test "$disable_zlib" != yes; then - AC_CHECK_HEADERS(zlib.h) - AC_CHECK_LIB(z, inflate) - if test "$ac_cv_header_zlib_h" = yes && test "$ac_cv_lib_z_inflate" = yes; then - AC_DEFINE(HAVE_ZLIB) - compression="$compression ZLIB" - fi -fi - -if test "$disable_brotli" != yes; then - AC_CHECK_HEADERS(brotli/decode.h) - AC_CHECK_LIB(brotlidec, BrotliDecoderDecompressStream) - if test "$ac_cv_header_brotli_decode_h" = yes && test "$ac_cv_lib_brotlidec_BrotliDecoderDecompressStream" = yes; then - AC_DEFINE(HAVE_BROTLI) - compression="$compression BROTLI" - fi -fi - -if test "$disable_bzip2" != yes; then - AC_CHECK_HEADERS(bzlib.h) - AC_CHECK_LIB(bz2, BZ2_bzDecompress) - if test "$ac_cv_header_bzlib_h" = yes && test "$ac_cv_lib_bz2_BZ2_bzDecompress" = yes; then - AC_DEFINE(HAVE_BZIP2) - compression="$compression BZIP2" - fi -fi - -if test "$disable_lzma" != yes; then - AC_CHECK_HEADERS(lzma.h) - AC_CHECK_LIB(lzma, lzma_auto_decoder) - if test "$ac_cv_header_lzma_h" = yes && test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then - AC_DEFINE(HAVE_LZMA) - compression="$compression LZMA" - fi -fi - -if test "$disable_lzip" != yes; then - AC_CHECK_HEADERS(lzlib.h) - AC_CHECK_LIB(lz, LZ_decompress_open) - if test "$ac_cv_header_lzlib_h" = yes && test "$ac_cv_lib_lz_LZ_decompress_open" = yes; then - AC_DEFINE(HAVE_LZIP) - compression="$compression LZIP" - fi -fi - - -cf_have_atheos=no - -if test "$cf_use_graphics" != no; then - AC_DEFINE(G) - -AC_ARG_WITH(openmp, [ --without-openmp compile without OpenMP],[if test "$withval" = no; then disable_openmp=yes; else disable_openmp=no; fi]) -cf_have_openmp=no -if test "$disable_openmp" != yes; then - AC_CACHE_CHECK([for OpenMP], ac_cv_have_openmp, - ac_cv_have_openmp=no - for openmp_cflags in "" -fopenmp -openmp -fopenmp=libgomp -mp -xopenmp -omp -qsmp=omp "-mp -lstdc++"; do - CFLAGS_X="$CFLAGS" - CFLAGS="$CFLAGS $openmp_cflags" - AC_TRY_LINK([#include <omp.h>], [ - int enabled = 1; - int i = 1; - int j = 3; - omp_set_dynamic(0); - i += omp_get_max_threads(); - omp_set_num_threads(4); -#pragma omp parallel default(none) firstprivate(i) shared(j) if (enabled) - { - int n; - i += omp_get_num_threads() + omp_get_thread_num(); -#pragma omp for nowait - for (n = 0; n < 10; n++) - i += j / i; - } - ], ac_cv_have_openmp="$openmp_cflags") - CFLAGS="$CFLAGS_X" - if test "$ac_cv_have_openmp" != no; then - break - fi - done - ) - if test "$ac_cv_have_openmp" != no; then - CFLAGS="$CFLAGS $ac_cv_have_openmp" - cf_have_openmp=yes - AC_DEFINE(HAVE_OPENMP) - fi -fi - -AC_ARG_WITH(svgalib, [ --without-svgalib compile without svgalib graphics driver],[if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi]) -AC_ARG_WITH(x, [ --without-x compile without X Window System graphics driver],[if test "$withval" = no; then disable_x=yes; else disable_x=no; fi]) -AC_ARG_WITH(fb, [ --without-fb compile without Linux Framebuffer graphics driver],[if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi]) -AC_ARG_WITH(directfb, [ --without-directfb compile without DirectFB graphics driver],[if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi]) -dnl AC_ARG_WITH(sdl, [ --without-sdl compile without SDL graphics driver],[if test "$withval" = no; then disable_sdl=yes; else disable_sdl=no; fi]) -AC_ARG_WITH(pmshell, [ --without-pmshell compile without PMShell graphics driver],[if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi]) -AC_ARG_WITH(windows, [ --without-windows compile without Windows graphics driver],[if test "$withval" = no; then disable_windows=yes; else disable_windows=no; fi]) -AC_ARG_WITH(atheos, [ --without-atheos compile without Atheos graphics driver],[if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi]) -AC_ARG_WITH(grx, [ --without-grx compile without DOS GRX graphics driver],[if test "$withval" = no; then disable_grx=yes; else disable_grx; fi]) - - drivers="" - -if test "$disable_svgalib" != yes; then - LIBS_X="$LIBS" - if test "$static_link" != 0; then - AC_CHECK_LIB(x86, LRMI_init) - fi - LIBS="-lvga $LIBS" - AC_CACHE_CHECK([for svgalib], ac_cv_have_svgalib, - AC_TRY_LINK([#include <vga.h>], [vga_setmode(0)], ac_cv_have_svgalib=yes, ac_cv_have_svgalib=no) - ) - - if test "$ac_cv_have_svgalib" = yes; then - AC_DEFINE(GRDRV_SVGALIB) - drivers="$drivers SVGALIB" - else - LIBS="$LIBS_X" - fi -fi - -if test "$disable_fb" != yes; then - AC_CHECK_HEADERS(linux/fb.h linux/kd.h linux/vt.h sys/mman.h) - if test "$ac_cv_header_linux_fb_h" = yes && test "$ac_cv_header_linux_kd_h" = yes && test "$ac_cv_header_linux_vt_h" = yes && test "$ac_cv_header_sys_mman_h" = yes && test "$ac_cv_header_sys_ioctl_h" = yes && test "$cf_have_gpm" = yes; then - AC_DEFINE(GRDRV_FB) - drivers="$drivers FB" - fi -fi - -if test "$disable_directfb" != yes; then - AC_PATH_PROG(DIRECTFB_CONFIG, directfb-config, no) - if test "$DIRECTFB_CONFIG" != "no"; then - AC_MSG_CHECKING(for DirectFB >= 0.9.17) - directfb_version=`$DIRECTFB_CONFIG --version` - if expr $directfb_version \>= 0.9.17 >/dev/null; then - AC_MSG_RESULT(yes) - - DIRECTFB_CFLAGS="`$DIRECTFB_CONFIG --cflags`" - DIRECTFB_LIBS="`$DIRECTFB_CONFIG --libs`" - pkgconfig_directfb=yes - else - AC_MSG_RESULT(no) - pkgconfig_directfb=no - fi - else - PKG_CHECK_MODULES(DIRECTFB, directfb, pkgconfig_directfb=yes, pkgconfig_directfb=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_directfb" = no; then - AC_MSG_RESULT(no) - fi - fi - - if test "$pkgconfig_directfb" = "yes"; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - - CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" - LIBS="$DIRECTFB_LIBS $LIBS" - - AC_CHECK_HEADERS(directfb.h) - AC_HAVE_FUNCS(DirectFBInit) - - if test "$ac_cv_header_directfb_h" = yes && test "$ac_cv_func_DirectFBInit" = yes; then - AC_DEFINE(GRDRV_DIRECTFB) - drivers="$drivers DIRECTFB" - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi - fi -fi - -if test "$disable_x" != yes; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - - AC_PATH_X - - if test "$static_link" != 0; then - AC_CHECK_LIB(pthread, pthread_create) - AC_CHECK_LIB(dl, dlopen) - AC_CHECK_LIB(Xdmcp, XdmcpWrap) - AC_CHECK_LIB(Xau, XauGetBestAuthByAddr) - AC_CHECK_LIB(xcb, xcb_connect) - AC_CHECK_LIB(xcb-xlib, xcb_get_request_sent) - fi - - LIBS="-lX11 $LIBS" - if test "$have_x" = yes; then - test -n "$x_libraries" && LIBS="-L$x_libraries $LIBS" - test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes" - fi - - AC_CHECK_HEADERS(X11/Xlib.h X11/X.h X11/Xutil.h X11/Xatom.h X11/Xlocale.h X11/keysymdef.h) - - AC_HAVE_FUNCS(XOpenDisplay XOpenIM XCloseIM XCreateIC XDestroyIC XwcLookupString Xutf8LookupString XSupportsLocale XmbTextListToTextProperty) - - AC_CACHE_CHECK([for Xsetlocale], ac_cv_have_Xsetlocale, - AC_TRY_LINK([#include <X11/Xlocale.h>], [setlocale(0, NULL); return 0;], ac_cv_have_Xsetlocale=yes, ac_cv_have_Xsetlocale=no) - ) - if test "$ac_cv_have_Xsetlocale" = yes; then - AC_DEFINE(HAVE_XSETLOCALE) - fi - - - if test "$have_x" = yes -o "$ac_cv_have_x2" != no && test "$ac_cv_func_XOpenDisplay" = yes && test "$ac_cv_header_X11_Xlib_h" = yes && test "$ac_cv_header_X11_X_h" = yes && test "$ac_cv_header_X11_Xutil_h" = yes && test "$ac_cv_header_X11_Xatom_h" = yes && test "$ac_cv_header_X11_keysymdef_h" = yes; then - AC_DEFINE(GRDRV_X) - drivers="$drivers X" - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi -fi - -dnl if test "$disable_sdl" != yes; then -dnl AC_PATH_PROG(SDL_CONFIG, sdl-config, no) -dnl if test "$SDL_CONFIG" != "no"; then -dnl AC_MSG_CHECKING(for SDL >= 1.2.0) -dnl sdl_version="`$SDL_CONFIG --version`" -dnl if expr "$sdl_version" \>= 1.2.0 >/dev/null; then -dnl AC_MSG_RESULT(yes) -dnl SDL_CFLAGS="`$SDL_CONFIG --cflags`" -dnl SDL_LIBS="`$SDL_CONFIG --libs`" -dnl AC_DEFINE(GRDRV_SDL) -dnl drivers="$drivers SDL" -dnl CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" -dnl AC_CHECK_LIB(Xext, XextAddDisplay) -dnl LIBS="$SDL_LIBS $LIBS" -dnl else -dnl AC_MSG_RESULT(no) -dnl fi -dnl fi -dnl fi - -if test "$disable_pmshell" != yes && test "$ac_cv_header_sys_fmutex_h" = yes && test "$ac_cv_have_beginthread" = yes; then - AC_CACHE_CHECK([for pmshell], ac_cv_have_pmshell, - AC_TRY_LINK([#define INCL_WIN - #define INCL_GPI - #include <os2.h> - #include <sys/fmutex.h>], - [_fmutex mutex; - WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0), - GpiSetPel(NULLHANDLE, NULL)], - ac_cv_have_pmshell=yes, ac_cv_have_pmshell=no) - ) - - if test "$ac_cv_have_pmshell" = yes; then - AC_DEFINE(GRDRV_PMSHELL) - drivers="$drivers PMSHELL" - fi -fi - -if test "$disable_windows" != yes; then - LIBS_X="$LIBS" - AC_CHECK_HEADERS(windowsx.h) - AC_CACHE_CHECK([for ReleaseDC], ac_cv_have_windows11, - AC_TRY_LINK([ - #include <windows.h> - #include <pthread.h>], - [ReleaseDC(NULL, NULL)], - ac_cv_have_windows11=yes, ac_cv_have_windows11=no) - ) - if test "$ac_cv_have_windows11" = no; then - LIBS="-luser32 $LIBS" - AC_CACHE_CHECK([for ReleaseDC in -luser32], ac_cv_have_windows12, - AC_TRY_LINK([ - #include <windows.h> - #include <pthread.h>], - [ReleaseDC(NULL, NULL)], - ac_cv_have_windows12=yes, ac_cv_have_windows12=no) - ) - fi - AC_CACHE_CHECK([for GdiFlush], ac_cv_have_windows21, - AC_TRY_LINK([ - #include <windows.h> - #include <pthread.h>], - [GdiFlush()], - ac_cv_have_windows21=yes, ac_cv_have_windows21=no) - ) - if test "$ac_cv_have_windows21" = no; then - LIBS="-lgdi32 $LIBS" - AC_CACHE_CHECK([for GdiFlush in -lgdi32], ac_cv_have_windows22, - AC_TRY_LINK([ - #include <windows.h> - #include <pthread.h>], - [GdiFlush()], - ac_cv_have_windows22=yes, ac_cv_have_windows22=no) - ) - fi - if test "$ac_cv_have_windows11" = yes -o "$ac_cv_have_windows12" = yes && - test "$ac_cv_have_windows21" = yes -o "$ac_cv_have_windows22" = yes; then - AC_DEFINE(GRDRV_PMSHELL) - drivers="$drivers WINDOWS" - else - LIBS="$LIBS_X" - fi -fi - -if test "$disable_atheos" != yes; then - old_ext="$ac_ext" - ac_ext=cpp - AC_CHECK_HEADERS(gui/view.h gui/window.h gui/desktop.h gui/bitmap.h util/locker.h util/application.h) - ac_ext="$old_ext" - - if test "$ac_cv_header_atheos_threads_h" = yes && - test "$ac_cv_header_gui_view_h" = yes && - test "$ac_cv_header_gui_window_h" = yes && - test "$ac_cv_header_gui_desktop_h" = yes && - test "$ac_cv_header_gui_bitmap_h" = yes && - test "$ac_cv_header_util_locker_h" = yes && - test "$ac_cv_header_util_application_h" = yes; then - AC_CHECK_LIB(stdc++, main) - AC_CHECK_LIB(atheos, main) - if test "$ac_cv_lib_atheos_main" = no; then - AC_CHECK_LIB(syllable, main) - fi - if test "$ac_cv_lib_atheos_main" = yes -o "$ac_cv_lib_syllable_main" = yes; then - AC_PROG_CXX - AC_DEFINE(GRDRV_ATHEOS) - drivers="$drivers ATHEOS" - cf_have_atheos=yes - fi - fi -fi - -if test "$disable_grx" != yes -a "$ac_cv_have_djgpp" = yes; then - LIBS_X="$LIBS" - AC_CHECK_HEADERS(grx20.h) - AC_CHECK_LIB(grx20, GrSetMode) - if test "$ac_cv_header_grx20_h" = yes && - test "$ac_cv_lib_grx20_GrSetMode" = yes; then - AC_DEFINE(GRDRV_GRX) - drivers="$drivers GRX" - else - LIBS="$LIBS_X" - fi -fi - - AC_ARG_ENABLE(png-pkgconfig, [ --disable-png-pkgconfig don't use pkgconfig when searching for libpng], cf_libpng_pkgconfig="$enableval", cf_libpng_pkgconfig=yes) - - if test "$static_link" != 0; then - AC_CHECK_LIB(z, inflate) - fi - if test "$cf_libpng_pkgconfig" != no; then - PKG_CHECK_MODULES(LIBPNG, libpng >= 1.0.0, pkgconfig_libpng=yes, pkgconfig_libpng=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng" = no; then - AC_MSG_RESULT(no) - fi - if test "$pkgconfig_libpng" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPNG_CFLAGS" - LIBS="$LIBPNG_LIBS $LIBS" - else - PKG_CHECK_MODULES(LIBPNG12, libpng12, pkgconfig_libpng12=yes, pkgconfig_libpng12=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_libpng12" = no; then - AC_MSG_RESULT(no) - fi - if test "$pkgconfig_libpng12" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBPNG12_CFLAGS" - LIBS="$LIBPNG12_LIBS $LIBS" - fi - fi - fi - AC_CHECK_HEADERS(png.h libpng/png.h) - AC_HAVE_FUNCS(png_create_info_struct) - if test "$ac_cv_func_png_create_info_struct" != yes; then - AC_CHECK_LIB(png, png_create_info_struct) - fi - if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then - AC_ERROR([You need libpng to compile Links in graphics mode]) - fi - - AC_HAVE_FUNCS(png_set_rgb_to_gray png_get_libpng_ver png_get_image_width png_get_image_height png_get_gAMA png_get_color_type png_get_bit_depth png_set_strip_alpha png_get_valid png_get_sRGB) - if test "$ac_cv_func_png_get_image_width" != yes || - test "$ac_cv_func_png_get_image_height" != yes || - test "$ac_cv_func_png_get_gAMA" != yes || - test "$ac_cv_func_png_get_color_type" != yes || - test "$ac_cv_func_png_get_bit_depth" != yes || - test "$ac_cv_func_png_set_strip_alpha" != yes || - test "$ac_cv_func_png_get_valid" != yes || - test "$ac_cv_func_png_get_sRGB" != yes; then - AC_ERROR([Your libpng is too old]) - fi - - AC_ARG_WITH(libjpeg, [ --without-libjpeg compile without JPEG support],[if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi]) - cf_have_jpeg=no - if test "$disable_jpeg" != yes; then - AC_CHECK_HEADERS(jpeglib.h) - AC_CHECK_LIB(jpeg, jpeg_destroy_decompress) - if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then - AC_DEFINE(HAVE_JPEG) - cf_have_jpeg=yes - image_formats="$image_formats JPEG" - fi - fi - - AC_ARG_WITH(libtiff, [ --without-libtiff compile without TIFF support],[if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi]) - cf_have_tiff=no - if test "$disable_tiff" != yes; then - if test "$static_link" != 0; then - AC_CHECK_LIB(jbig, jbg_enc_init) - fi - AC_CHECK_HEADERS(tiffio.h) - AC_CHECK_LIB(tiff, TIFFClientOpen) - if test "$ac_cv_header_tiffio_h" = yes && test "$ac_cv_lib_tiff_TIFFClientOpen" = yes; then - AC_DEFINE(HAVE_TIFF) - cf_have_tiff=yes - image_formats="$image_formats TIFF" - fi - fi - - AC_ARG_WITH(librsvg, [ --without-librsvg compile without SVG support],[if test "$withval" = no; then disable_svg=yes; else disable_svg=no; fi]) - cf_have_svg=no - if test "$disable_svg" != yes; then - CPPFLAGS_X="$CPPFLAGS" - LIBS_X="$LIBS" - AC_ARG_ENABLE(svg-pkgconfig, [ --disable-svg-pkgconfig don't use pkgconfig when searching for librsvg], cf_librsvg_pkgconfig="$enableval", cf_librsvg_pkgconfig=yes) - if test "$cf_librsvg_pkgconfig" != no; then - PKG_CHECK_MODULES(LIBRSVG, librsvg-2.0 >= 2.0.0 cairo, pkgconfig_librsvg=yes, pkgconfig_librsvg=no) - if test "$PKG_CONFIG" != no -a "$pkgconfig_librsvg" = no; then - AC_MSG_RESULT(no) - fi - if test "$pkgconfig_librsvg" = "yes"; then - CPPFLAGS="$CPPFLAGS $LIBRSVG_CFLAGS" - LIBS="$LIBRSVG_LIBS $LIBS" - fi - fi - - AC_CHECK_HEADERS(cairo.h librsvg/rsvg.h librsvg/rsvg-cairo.h librsvg/librsvg-features.h) - AC_HAVE_FUNCS(rsvg_handle_render_cairo) - if test "$ac_cv_func_rsvg_handle_render_cairo" != yes; then - AC_CHECK_LIB(rsvg-2, rsvg_handle_render_cairo) - fi - if test "$ac_cv_header_cairo_h" = yes -a "$ac_cv_header_librsvg_rsvg_h" = yes && test "$ac_cv_func_rsvg_handle_render_cairo" = yes -o "$ac_cv_lib_rsvg_2_rsvg_handle_render_cairo" = yes; then - AC_DEFINE(HAVE_SVG) - cf_have_svg=yes - image_formats="$image_formats SVG" - AC_CHECK_LIB(fontconfig, FcConfigAppFontAddDir) - else - CPPFLAGS="$CPPFLAGS_X" - LIBS="$LIBS_X" - fi - fi - - - if test -z "$drivers" && test "$cf_use_graphics" != no; then - AC_MSG_ERROR([No graphics drivers found.]) -dnl else -dnl AC_MSG_RESULT([The following graphics drivers are available:$drivers]) - fi -fi - - -AM_CONDITIONAL(JAVASCRIPT, test "$cf_use_javascript" = yes) - -AM_CONDITIONAL(ATHEOS_GR, test "$cf_have_atheos" = yes) - -test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe" - -AC_HAVE_FUNCS(pthread_sigmask) - -if test "$ac_cv_func_pthread_sigmask" = yes; then - AC_CHECK_LIB(pthread, pthread_sigmask) -fi - -AC_OUTPUT(Makefile) - -echo "---------------------------------------------------------" -echo "Configuration results:" -echo "" -echo "Event handler: `echo $cf_have_libevent|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -if test "$cf_have_ipv6" = yes; then - echo "IPv6: YES" -else - echo "IPv6: NO" -fi -compression="`echo "$compression"|sed 's/^ //'`" -if test -z "$compression"; then compression="NO"; fi -echo "Supported compression: $compression" -echo "SSL support: `echo $cf_have_ssl|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -if test "$cf_use_javascript" = yes; then - echo "Javascript enabled: YES" - echo "Regular expressions: $reg_exp_mode" -fi -if test "$cf_enable_utf8" != no; then - echo "UTF-8 terminal: YES" -else - echo "UTF-8 terminal: NO" -fi -if test "$cf_have_gpm" = yes; then - echo "GPM support: YES" -else - echo "GPM support: NO" -fi -if test "$ac_cv_have_emx" = yes; then - if test "$ac_cv_have_x2" != no; then - echo "xterm for OS/2 support: YES" - else - echo "xterm for OS/2 support: NO" - fi -fi -if test "$cf_use_graphics" != no; then - echo "Graphics enabled: YES" - echo "Graphics drivers: `echo "$drivers"|sed 's/^ //'`" - echo "Image formats: $image_formats" - echo "OpenMP: `echo $cf_have_openmp|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" -else echo "Graphics enabled: NO"; fi -echo "---------------------------------------------------------" -if test "$cf_have_ssl" = "nss"; then - echo "!!! WARNING !!! NSS encryption library doesn't verify" - echo "certificates and it can cause lockup of the whole browser" - echo "if the server is not responding." - echo "It is recommended to use OpenSSL instead." - echo "---------------------------------------------------------" -fi -if test -n "`echo "$drivers"|grep -w X`" -a "$ac_cv_header_interix_interix_h" = yes; then - echo "!!! WARNING !!! Xwindow in Interix is unreliable and it" - echo "may cause browser lockup." - echo "It is recommended to use Cygwin instead." - echo "---------------------------------------------------------" -fi -if test -n "`echo "$drivers"|grep -w WINDOWS`" -a "$ac_cv_func_uwin_path" = yes; then - echo "!!! WARNING !!! Windows driver in UWIN is buggy." - echo "It is recommended to use Cygwin instead." - echo "---------------------------------------------------------" -fi - - -dnl mv Makefile Makefile.tmp -dnl grep -v DEPS_MAGIC Makefile.tmp >Makefile -dnl rm Makefile.tmp - diff --git a/mk-dos b/mk-dos @@ -1,40 +0,0 @@ -#!/bin/sh -if [ "$1" = dbg ]; then - CFLAGS="-fgnu89-inline -O0 -g -Wall" - export CFLAGS - ./configure --enable-debuglevel --enable-graphics -elif [ "$1" = lite ]; then - CFLAGS="-fgnu89-inline -march=i386 -Os -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" - export CFLAGS - ./configure --disable-graphics --without-lzma --without-lzip --without-brotli -else - CFLAGS="-fgnu89-inline -march=i386 -mtune=pentium -O2 -fomit-frame-pointer -frename-registers -fweb -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" - export CFLAGS - ./configure --enable-graphics -fi -ed config.status <<EOF -/outfile -/esac -a - if [ "\$ac_file_in" = "config.h.in" ]; then ac_file_in=config.h-i; fi -. -/outfile -/esac -a - if [ "\$ac_file_in" = "config.h.in" ]; then ac_file_in=config.h-i; fi -. -wq -EOF -./config.status -ed Makefile <<EOF -/^Makefile: -s/:.*/:/ -.+1,.+2d -/^config\.h: -s/:.*/:/ -.+1,.+4c - -. -wq -EOF -make diff --git a/mk-dos83.cmd b/mk-dos83.cmd @@ -1,4 +0,0 @@ -copy configure configur -copy configure.in configur.in -copy config.h.in config.h-i -copy install-sh install.sh diff --git a/mk-release-os2 b/mk-release-os2 @@ -1,37 +0,0 @@ -#!/bin/sh -set -e -WARPIN="d:\prg\WarpIN" -DLLPATH="d:\prg\emx\dll" -DLLS="bz2.dll cryptssl.dll jpeg.dll lzma.dll png.dll open_ssl.dll z.dll" -FILES="AUTHORS BRAILLE COPYING KEYS README links.crt links.exe linksos2.ico" -CC="gcc.exe" -export CC -CFLAGS="-O3 -fomit-frame-pointer -march=i386 -mcpu=pentium -Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" -export CFLAGS -rc -r linksos2.rc linksos2.res -LIBS=linksos2.res -export LIBS -if [ ! -f Makefile -o ! -f config.h ]; then - bash ./configure --enable-graphics --without-x --disable-utf8 --disable-debuglevel -fi -make -emxbind -a links.exe -h192 -#cp links.exe links-g.exe -#emxbind -ep links-g.exe - -for i in $DLLS; do - cp "$DLLPATH\\$i" . -done -cp BRAILLE_HOWTO BRAILLE -cp certs\\links.crt links.crt - -rm -f links.wpi -cmd /c set BEGINLIBPATH="$WARPIN" \& "$WARPIN\wic.exe" -a links.wpi 1 $FILES $DLLS -s links.wis - -rm -rf links links.zip -mkdir links -cp $FILES $DLLS links -mv links/linksos2.ico links/links.ico -pkzip /Add /Recurse /Path /NoExtended links.zip links\\ -rm -rf links -rm $DLLS BRAILLE diff --git a/mk-release-win b/mk-release-win @@ -1,60 +0,0 @@ -#!/bin/sh -set -e -cp ../links-current/links*.nsi ../links-current/certs/links.crt ../links-current/COPYING ../links-current/BRAILLE_HOWTO ../links-current/KEYS ../links-current/README . -cp ../links-current/linkswin.ico links.ico -unix2dos COPYING BRAILLE_HOWTO KEYS README -CC=gcc -export CC -if [ -n "$NO_LTO" ]; then - LTO_ARGS="" -else - if $CC -v 2>&1|grep -q '4\.5'; then - LTO_ARGS="-flto -fwhole-program" - else - LTO_ARGS="-flto=12 -fwhole-program" - fi -fi -if [ "`uname -m`" != x86_64 ]; then - ARCH_CFLAGS="-O2 -march=pentium4 -mtune=generic" -else - ARCH_CFLAGS="-O2 -mtune=generic" -fi -CFLAGS="$ARCH_CFLAGS $LTO_ARGS -shared-libgcc -Wall -W -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes" -export CFLAGS -windres -O coff ../links-current/linkswin.rc linkswin.res -LIBS=../linkswin.res -export LIBS - -LDFLAGS="" -export LDFLAGS -mkdir -p links-text -cd links-text -if [ ! -f config.h -o ! -f Makefile ]; then - ../../links-current/configure --enable-utf8 --disable-graphics --without-x --enable-debuglevel=0 -fi -make -j12 -cp links.exe .. -cd .. - -LDFLAGS="" -export LDFLAGS -mkdir -p links-graphics -cd links-graphics -if [ ! -f config.h -o ! -f Makefile ]; then - CPPFLAGS="-DUSE_WIN32_HEAP" - export CPPFLAGS - ../../links-current/configure --disable-utf8 --enable-graphics --without-x --enable-debuglevel=0 -fi -make -j12 LDFLAGS="-mwindows" -cp links.exe ../links-g.exe -cd .. - -mkdir -p dll -cp /bin/cygwin1.dll dll -strip links.exe links-g.exe dll/cygwin1.dll - -if [ "`uname -m`" != x86_64 ]; then - /cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensis.exe links.nsi -else - /cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensis.exe links64.nsi -fi diff --git a/mkinstalldirs b/mkinstalldirs @@ -1,38 +0,0 @@ -#! /bin/sh -# mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman <friedman@prep.ai.mit.edu> -# Created: 1993-05-16 -# Public domain - -errstatus=0 - -for file -do - set fnord `echo "$file" | sed -ne 's,//,/,g;s,^/,:,;s,:/,::,;s,/, ,g;s,::,:/,;s,^:,/,;p'` - shift - - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case "$pathcomp" in - -* ) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - fi - fi - - pathcomp="$pathcomp/" - done -done - -exit $errstatus - -# mkinstalldirs ends here diff --git a/pkg-config.m4 b/pkg-config.m4 @@ -1,57 +0,0 @@ - -dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) -dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page -dnl also defines GSTUFF_PKG_ERRORS on error -AC_DEFUN(PKG_CHECK_MODULES, [ - succeeded=no - - if test -z "$PKG_CONFIG"; then - AC_PATH_PROG(PKG_CONFIG, pkg-config, no) - fi - - if test "$PKG_CONFIG" = "no" ; then - echo "*** The pkg-config script could not be found. Make sure it is" - echo "*** in your path, or set the PKG_CONFIG environment variable" - echo "*** to the full path to pkg-config." - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." - else - PKG_CONFIG_MIN_VERSION=0.9.0 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then - AC_MSG_CHECKING(for $2) - - if $PKG_CONFIG --exists "$2" ; then - AC_MSG_RESULT(yes) - succeeded=yes - - AC_MSG_CHECKING($1_CFLAGS) - $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` - AC_MSG_RESULT($$1_CFLAGS) - - AC_MSG_CHECKING($1_LIBS) - $1_LIBS=`$PKG_CONFIG --libs "$2"` - AC_MSG_RESULT($$1_LIBS) - else - $1_CFLAGS="" - $1_LIBS="" - ## If we have a custom action on failure, don't print errors, but - ## do set a variable so people can do so. - $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` - ifelse([$4], ,echo $$1_PKG_ERRORS,) - fi - - AC_SUBST($1_CFLAGS) - AC_SUBST($1_LIBS) - else - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." - echo "*** See http://www.freedesktop.org/software/pkgconfig" - fi - fi - - if test $succeeded = yes; then - ifelse([$3], , :, [$3]) - else - ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) - fi -]) - - diff --git a/rebuild b/rebuild @@ -1,151 +0,0 @@ -#!/bin/sh -# rebuild -# (c) 2002 Karel 'Clock' Kulhavy, Mikulas Patocka, Petr 'Brain' Kulhavy -# This file is a part of the Links program, released under GPL. - -make=make -if which gmake 2>/dev/null >/dev/null && gmake --version | grep -i "GNU Make" >/dev/null; then - echo Found GNU Make under gmake. Going to use gmake instead of make. - make=gmake -fi - -if which automake-1.4 2>/dev/null >/dev/null; then - automake="automake-1.4" -else - automake="automake" -fi - -if which aclocal-1.4 2>/dev/null >/dev/null; then - aclocal="aclocal-1.4" - if [ -d /usr/share/aclocal-1.4/ ]; then - aclocal="$aclocal --acdir=/usr/share/aclocal-1.4/" - fi -else - aclocal="aclocal" -fi - -if which autoconf2.13 2>/dev/null >/dev/null; then - autoconf="autoconf2.13" -elif which autoconf-2.13 2>/dev/null >/dev/null; then - autoconf="autoconf-2.13" -else - autoconf="autoconf" -fi - -if which autoheader2.13 2>/dev/null >/dev/null; then - autoheader="autoheader2.13" -elif which autoheader-2.13 2>/dev/null >/dev/null; then - autoheader="autoheader-2.13" -else - autoheader="autoheader" -fi - -if [ "$1" = reconf ]; then - if ! which pkg-config 2>/dev/null >/dev/null; then - echo Warning: You don\'t have pkg-config. The PKG_CHECK_MODULES macro will probably fail. >&2 - fi - - if ! which $autoconf 2>/dev/null >/dev/null; then - echo You don\'t have autoconf. Wiping out. >&2 - exit 1 - fi - - if ! $autoconf --version | grep -i "GNU Autoconf" >/dev/null; then - echo This looks like autoconf installed on OpenBSD. >&2 - if ! AUTOCONF_VERSION=2.13 $autoconf --version 2>/dev/null >/dev/null - then - echo Autoconf 2.13 is not found. This script needs at most autoconf 2.13. \ - Trying with some other \(random\) autoconf. >&2 - exit 1 - path=`echo "$PATH" | tr -s ':' '\n'` - alt=`find $path -name 'autoconf*' -and ! -name autoconf | head -n 1` - if [ -z "$alt" ] - then - echo Cannot find the real autoconf >&2 - exit 1 - fi - export AUTOCONF_VERSION=`echo $alt | sed -e 's/^.*autoconf-//g'` - echo Found $alt. Setting AUTOCONF_VERSION to $AUTOCONF_VERSION.>&2 - else - echo Found Autoconf 2.13. It should work. >&2 - export AUTOCONF_VERSION=2.13 - fi - fi - - if ! $automake --version | grep -i "GNU automake" >/dev/null - then - echo This looks like automake installed on OpenBSD. >&2 - export AUTOMAKE_VERSION=1.4 - if ! $automake --version 2>/dev/null >/dev/null - then - echo Automake 1.4 is needed. Wiping out. >&2 - exit 1 - fi - echo Found Automake 1.4. It should work. >&2 - fi -fi - -do_reconf=false - -rm -f config.h Makefile config.cache && -if [ "$1" = reconf ]; then - do_reconf=true - shift - echo NEPOUZIVAT pokud nebylo zmeneno configure.in nebo Makefile.am !!! && - echo DO NOT use unless configure.in or Makefile.am has been changed !!! && - echo rebuild reconf se NESMI prerusit protoze pak by pri nasledujicim commitu byly commitnuty spatne dependence a pri kompilaci by tise vznikaly zahadne neodladitelne chyby!!! && - echo rebuild reconf MUST NOT be interrupted because after the following commit bad dependencies would be commited and during compilation, mysterious and undebuggable bugs would originate!!! && - echo Timto mistoprisezne prohlasuji ze toto skutecne nastalo a ze proces neprerusim. && - echo I hereby affirm that this really has happened and I won\'t break the process. && - read kecy && - if [ "$kecy" = "ano" -o "$kecy" = "Ano" -o "$kecy" = "yes" -o "$kecy" = "Yes" ]; then - echo Zodpovednost prijata. && - echo Responsibility accepted. && - rm -rf .deps missing depcomp aclocal.m4 && - $autoheader && - rm -f autoh* && - $aclocal -I . && - $automake --add-missing && - sed 's%sed '\''s/\\\.am\$/\.in/'\''%sed '\''s/\\\.[aA][mM]\$/\.in/'\''%' <missing >missing.tmp && - mv -f missing.tmp missing && - chmod a+x missing && - $autoconf && - ed configure <<EOS -1a -LANG= -LC_ALL= -. -/DELETE1/-1,/DELETE1/d -/DELETE2/-1,/DELETE2/d -w -q -EOS - - else - exit - fi -fi && -if [ "$1" = reconf_aby_to_brain_nepouzival ]; then - echo "Mikulasi, vyser si voko!" && - exit -fi && -#cd Unicode;./gen; cd .. -#cd intl; ./synclang; cd .. -export CFLAGS="-Wall -g -O2 -pipe -ansi -U__STRICT_ANSI__ -fno-common $CFLAGS" && -#export CFLAGS="-Wall -g -O2 -pipe" -export CXXFLAGS="$CXXFLAGS -Wall -g -O2 -pipe" && -./configure --enable-graphics --enable-debuglevel=2 "$@" && -$make clean && -$make && -if $do_reconf; then - $autoheader && - $automake --add-missing --include-deps --build-dir=. --srcdir-name=. --output-dir=. && - sed 's%sed '\''s/\\\.am\$/\.in/'\''%sed '\''s/\\\.[aA][mM]\$/\.in/'\''%' <missing >missing.tmp && - mv -f missing.tmp missing && - chmod a+x missing && - sed -n '{h;s/X11R6/X11R7/p;x;p;}' <configure >configure.tmp && - mv -f configure.tmp configure && - chmod a+x configure && - ./configure --enable-graphics --enable-debuglevel=2 "$@" - if [ $? != 0 ]; then echo CONFIGURE FAILED; exit 1; fi -fi