SOURCES: vile-nolibs.patch - up for 9.6
aredridel
aredridel at pld-linux.org
Sun Dec 30 04:59:23 CET 2007
Author: aredridel Date: Sun Dec 30 03:59:23 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- up for 9.6
---- Files affected:
SOURCES:
vile-nolibs.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/vile-nolibs.patch
diff -u SOURCES/vile-nolibs.patch:1.1 SOURCES/vile-nolibs.patch:1.2
--- SOURCES/vile-nolibs.patch:1.1 Sun Aug 17 14:49:56 2003
+++ SOURCES/vile-nolibs.patch Sun Dec 30 04:59:17 2007
@@ -1,13 +1,3648 @@
---- vile-9.4/aclocal.m4.orig 2003-05-24 17:05:47.000000000 +0200
-+++ vile-9.4/aclocal.m4 2003-08-17 11:55:53.847344176 +0200
-@@ -2605,8 +2605,8 @@
- ]) ]) ]) ]) ])
- ;;
- *)
-- AC_CHECK_LIB(socket,socket)
-- AC_CHECK_LIB(nsl,gethostname)
-+ AC_SEARCH_LIBS(socket,socket)
-+ AC_SEARCH_LIBS(gethostname,nsl)
- ;;
- esac
-
+diff -Nur vile-9.6.orig/aclocal.m4.orig vile-9.6.nolibs/aclocal.m4.orig
+--- vile-9.6.orig/aclocal.m4.orig 1969-12-31 17:00:00.000000000 -0700
++++ vile-9.6.nolibs/aclocal.m4.orig 2007-12-17 17:45:19.000000000 -0700
+@@ -0,0 +1,3644 @@
++dnl vile's local definitions for autoconf.
++dnl
++dnl $Header$
++dnl
++dnl ---------------------------------------------------------------------------
++dnl ---------------------------------------------------------------------------
++dnl AM_LANGINFO_CODESET version: 3 updated: 2002/10/27 23:21:42
++dnl -------------------
++dnl Inserted as requested by gettext 0.10.40
++dnl File from /usr/share/aclocal
++dnl codeset.m4
++dnl ====================
++dnl serial AM1
++dnl
++dnl From Bruno Haible.
++AC_DEFUN([AM_LANGINFO_CODESET],
++[
++ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
++ [AC_TRY_LINK([#include <langinfo.h>],
++ [char* cs = nl_langinfo(CODESET);],
++ am_cv_langinfo_codeset=yes,
++ am_cv_langinfo_codeset=no)
++ ])
++ if test $am_cv_langinfo_codeset = yes; then
++ AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
++ [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
++ fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_AC_PREREQ version: 2 updated: 1997/09/06 13:24:56
++dnl ------------
++dnl Conditionally generate script according to whether we're using the release
++dnl version of autoconf, or a patched version (using the ternary component as
++dnl the patch-version).
++define(CF_AC_PREREQ,
++[CF_PREREQ_COMPARE(
++AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)),
++AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), [$1], [$2], [$3])])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ADD_CFLAGS version: 7 updated: 2004/04/25 17:48:30
++dnl -------------
++dnl Copy non-preprocessor flags to $CFLAGS, preprocessor flags to $CPPFLAGS
++dnl The second parameter if given makes this macro verbose.
++dnl
++dnl Put any preprocessor definitions that use quoted strings in $EXTRA_CPPFLAGS,
++dnl to simplify use of $CPPFLAGS in compiler checks, etc., that are easily
++dnl confused by the quotes (which require backslashes to keep them usable).
++AC_DEFUN([CF_ADD_CFLAGS],
++[
++cf_fix_cppflags=no
++cf_new_cflags=
++cf_new_cppflags=
++cf_new_extra_cppflags=
++
++for cf_add_cflags in $1
++do
++case $cf_fix_cppflags in
++no)
++ case $cf_add_cflags in #(vi
++ -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
++ case $cf_add_cflags in
++ -D*)
++ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[[^=]]*='\''\"[[^"]]*//'`
++
++ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
++ && test -z "${cf_tst_cflags}" \
++ && cf_fix_cppflags=yes
++
++ if test $cf_fix_cppflags = yes ; then
++ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
++ continue
++ elif test "${cf_tst_cflags}" = "\"'" ; then
++ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
++ continue
++ fi
++ ;;
++ esac
++ case "$CPPFLAGS" in
++ *$cf_add_cflags) #(vi
++ ;;
++ *) #(vi
++ cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
++ ;;
++ esac
++ ;;
++ *)
++ cf_new_cflags="$cf_new_cflags $cf_add_cflags"
++ ;;
++ esac
++ ;;
++yes)
++ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
++
++ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[[^"]]*"'\''//'`
++
++ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
++ && test -z "${cf_tst_cflags}" \
++ && cf_fix_cppflags=no
++ ;;
++esac
++done
++
++if test -n "$cf_new_cflags" ; then
++ ifelse($2,,,[CF_VERBOSE(add to \$CFLAGS $cf_new_cflags)])
++ CFLAGS="$CFLAGS $cf_new_cflags"
++fi
++
++if test -n "$cf_new_cppflags" ; then
++ ifelse($2,,,[CF_VERBOSE(add to \$CPPFLAGS $cf_new_cppflags)])
++ CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
++fi
++
++if test -n "$cf_new_extra_cppflags" ; then
++ ifelse($2,,,[CF_VERBOSE(add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags)])
++ EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
++fi
++
++AC_SUBST(EXTRA_CPPFLAGS)
++
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ADD_INCDIR version: 8 updated: 2007/07/30 19:22:58
++dnl -------------
++dnl Add an include-directory to $CPPFLAGS. Don't add /usr/include, since it's
++dnl redundant. We don't normally need to add -I/usr/local/include for gcc,
++dnl but old versions (and some misinstalled ones) need that. To make things
++dnl worse, gcc 3.x may give error messages if -I/usr/local/include is added to
++dnl the include-path).
++AC_DEFUN([CF_ADD_INCDIR],
++[
++if test -n "$1" ; then
++ for cf_add_incdir in $1
++ do
++ while test $cf_add_incdir != /usr/include
++ do
++ if test -d $cf_add_incdir
++ then
++ cf_have_incdir=no
++ if test -n "$CFLAGS$CPPFLAGS" ; then
++ # a loop is needed to ensure we can add subdirs of existing dirs
++ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
++ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
++ cf_have_incdir=yes; break
++ fi
++ done
++ fi
++
++ if test "$cf_have_incdir" = no ; then
++ if test "$cf_add_incdir" = /usr/local/include ; then
++ if test "$GCC" = yes
++ then
++ cf_save_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
++ AC_TRY_COMPILE([#include <stdio.h>],
++ [printf("Hello")],
++ [],
++ [cf_have_incdir=yes])
++ CPPFLAGS=$cf_save_CPPFLAGS
++ fi
++ fi
++ fi
++
++ if test "$cf_have_incdir" = no ; then
++ AC_VERBOSE(adding $cf_add_incdir to include-path)
++ ifelse($2,,CPPFLAGS,$2)="-I$cf_add_incdir $ifelse($2,,CPPFLAGS,[$]$2)"
++
++ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
++ test "$cf_top_incdir" = "$cf_add_incdir" && break
++ cf_add_incdir="$cf_top_incdir"
++ else
++ break
++ fi
++ fi
++ done
++ done
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ADD_LIBDIR version: 5 updated: 2007/07/30 19:12:03
++dnl -------------
++dnl Adds to the library-path
++dnl
++dnl Some machines have trouble with multiple -L options.
++dnl
++dnl $1 is the (list of) directory(s) to add
++dnl $2 is the optional name of the variable to update (default LDFLAGS)
++dnl
++AC_DEFUN([CF_ADD_LIBDIR],
++[
++if test -n "$1" ; then
++ for cf_add_libdir in $1
++ do
++ if test $cf_add_libdir = /usr/lib ; then
++ :
++ elif test -d $cf_add_libdir
++ then
++ cf_have_libdir=no
++ if test -n "$LDFLAGS$LIBS" ; then
++ # a loop is needed to ensure we can add subdirs of existing dirs
++ for cf_test_libdir in $LDFLAGS $LIBS ; do
++ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
++ cf_have_libdir=yes; break
++ fi
++ done
++ fi
++ if test "$cf_have_libdir" = no ; then
++ AC_VERBOSE(adding $cf_add_libdir to library-path)
++ ifelse($2,,LDFLAGS,$2)="-L$cf_add_libdir $ifelse($2,,LDFLAGS,[$]$2)"
++ fi
++ fi
++ done
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ADD_SUBDIR_PATH version: 2 updated: 2007/07/29 10:12:59
++dnl ------------------
++dnl Append to a search-list for a nonstandard header/lib-file
++dnl $1 = the variable to return as result
++dnl $2 = the package name
++dnl $3 = the subdirectory, e.g., bin, include or lib
++dnl $4 = the directory under which we will test for subdirectories
++dnl $5 = a directory that we do not want $4 to match
++AC_DEFUN([CF_ADD_SUBDIR_PATH],
++[
++test "$4" != "$5" && \
++test -d "$4" && \
++ifelse([$5],NONE,,[(test $5 = NONE || test -d $5) &&]) {
++ test -n "$verbose" && echo " ... testing for $3-directories under $4"
++ test -d $4/$3 && $1="[$]$1 $4/$3"
++ test -d $4/$3/$2 && $1="[$]$1 $4/$3/$2"
++ test -d $4/$3/$2/$3 && $1="[$]$1 $4/$3/$2/$3"
++ test -d $4/$2/$3 && $1="[$]$1 $4/$2/$3"
++ test -d $4/$2/$3/$2 && $1="[$]$1 $4/$2/$3/$2"
++}
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
++dnl ----------------
++dnl This is adapted from the macros 'fp_PROG_CC_STDC' and 'fp_C_PROTOTYPES'
++dnl in the sharutils 4.2 distribution.
++AC_DEFUN([CF_ANSI_CC_CHECK],
++[
++AC_CACHE_CHECK(for ${CC-cc} option to accept ANSI C, cf_cv_ansi_cc,[
++cf_cv_ansi_cc=no
++cf_save_CFLAGS="$CFLAGS"
++cf_save_CPPFLAGS="$CPPFLAGS"
++# Don't try gcc -ansi; that turns off useful extensions and
++# breaks some systems' header files.
++# AIX -qlanglvl=ansi
++# Ultrix and OSF/1 -std1
++# HP-UX -Aa -D_HPUX_SOURCE
++# SVR4 -Xc
++# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
++for cf_arg in "-DCC_HAS_PROTOS" \
++ "" \
++ -qlanglvl=ansi \
++ -std1 \
++ -Ae \
++ "-Aa -D_HPUX_SOURCE" \
++ -Xc
++do
++ CF_ADD_CFLAGS($cf_arg)
++ AC_TRY_COMPILE(
++[
++#ifndef CC_HAS_PROTOS
++#if !defined(__STDC__) || (__STDC__ != 1)
++choke me
++#endif
++#endif
++],[
++ int test (int i, double x);
++ struct s1 {int (*f) (int a);};
++ struct s2 {int (*f) (double a);};],
++ [cf_cv_ansi_cc="$cf_arg"; break])
++done
++CFLAGS="$cf_save_CFLAGS"
++CPPFLAGS="$cf_save_CPPFLAGS"
++])
++
++if test "$cf_cv_ansi_cc" != "no"; then
++if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
++ CF_ADD_CFLAGS($cf_cv_ansi_cc)
++else
++ AC_DEFINE(CC_HAS_PROTOS)
++fi
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ANSI_CC_REQD version: 3 updated: 1997/09/06 13:40:44
++dnl ---------------
++dnl For programs that must use an ANSI compiler, obtain compiler options that
++dnl will make it recognize prototypes. We'll do preprocessor checks in other
++dnl macros, since tools such as unproto can fake prototypes, but only part of
++dnl the preprocessor.
++AC_DEFUN([CF_ANSI_CC_REQD],
++[AC_REQUIRE([CF_ANSI_CC_CHECK])
++if test "$cf_cv_ansi_cc" = "no"; then
++ AC_ERROR(
++[Your compiler does not appear to recognize prototypes.
++You have the following choices:
++ a. adjust your compiler options
++ b. get an up-to-date compiler
++ c. use a wrapper such as unproto])
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ARG_DISABLE version: 3 updated: 1999/03/30 17:24:31
++dnl --------------
++dnl Allow user to disable a normally-on option.
++AC_DEFUN([CF_ARG_DISABLE],
++[CF_ARG_OPTION($1,[$2],[$3],[$4],yes)])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ARG_ENABLE version: 3 updated: 1999/03/30 17:24:31
++dnl -------------
++dnl Allow user to enable a normally-off option.
++AC_DEFUN([CF_ARG_ENABLE],
++[CF_ARG_OPTION($1,[$2],[$3],[$4],no)])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_ARG_OPTION version: 3 updated: 1997/10/18 14:42:41
++dnl -------------
++dnl Restricted form of AC_ARG_ENABLE that ensures user doesn't give bogus
++dnl values.
++dnl
++dnl Parameters:
++dnl $1 = option name
++dnl $2 = help-string
++dnl $3 = action to perform if option is not default
++dnl $4 = action if perform if option is default
++dnl $5 = default option value (either 'yes' or 'no')
++AC_DEFUN([CF_ARG_OPTION],
++[AC_ARG_ENABLE($1,[$2],[test "$enableval" != ifelse($5,no,yes,no) && enableval=ifelse($5,no,no,yes)
++ if test "$enableval" != "$5" ; then
++ifelse($3,,[ :]dnl
++,[ $3]) ifelse($4,,,[
++ else
++ $4])
++ fi],[enableval=$5 ifelse($4,,,[
++ $4
++])dnl
++ ])])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CC_INIT_UNIONS version: 2 updated: 1998/07/01 22:16:27
++dnl -----------------
++dnl Check if the C compiler supports initialization of unions.
++AC_DEFUN([CF_CC_INIT_UNIONS],[
++AC_CACHE_CHECK(if we can initialize unions,
++cf_cv_init_unions,[
++ AC_TRY_COMPILE([],
++ [static struct foo {int x; union {double a; int b; } bar; } c = {0,{1.0}}],
++ [cf_cv_init_unions=yes],
++ [cf_cv_init_unions=no])
++ ])
++test $cf_cv_init_unions = no && AC_DEFINE(CC_CANNOT_INIT_UNIONS)
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHAR_DEVICE version: 3 updated: 2002/10/07 22:10:29
++dnl --------------
++dnl Check for existence of the given character-device
++AC_DEFUN([CF_CHAR_DEVICE],
++[
++AC_MSG_CHECKING(for /dev/tty)
++if test -c $1 ; then
++ cf_result=yes
++else
++ cf_result=no
++fi
++AC_MSG_RESULT($cf_result)
++if test "$cf_result" = yes ; then
++ cf_result=`echo $1 | sed -e s%/%_%g`
++ CF_UPPER(cf_result,$cf_result)
++ AC_DEFINE_UNQUOTED(HAVE$cf_result)
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHECK_CACHE version: 10 updated: 2004/05/23 13:03:31
++dnl --------------
++dnl Check if we're accidentally using a cache from a different machine.
++dnl Derive the system name, as a check for reusing the autoconf cache.
++dnl
++dnl If we've packaged config.guess and config.sub, run that (since it does a
++dnl better job than uname). Normally we'll use AC_CANONICAL_HOST, but allow
++dnl an extra parameter that we may override, e.g., for AC_CANONICAL_SYSTEM
++dnl which is useful in cross-compiles.
++dnl
++dnl Note: we would use $ac_config_sub, but that is one of the places where
++dnl autoconf 2.5x broke compatibility with autoconf 2.13
++AC_DEFUN([CF_CHECK_CACHE],
++[
++if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
++ ifelse([$1],,[AC_CANONICAL_HOST],[$1])
++ system_name="$host_os"
++else
++ system_name="`(uname -s -r) 2>/dev/null`"
++ if test -z "$system_name" ; then
++ system_name="`(hostname) 2>/dev/null`"
++ fi
++fi
++test -n "$system_name" && AC_DEFINE_UNQUOTED(SYSTEM_NAME,"$system_name")
++AC_CACHE_VAL(cf_cv_system_name,[cf_cv_system_name="$system_name"])
++
++test -z "$system_name" && system_name="$cf_cv_system_name"
++test -n "$cf_cv_system_name" && AC_MSG_RESULT(Configuring for $cf_cv_system_name)
++
++if test ".$system_name" != ".$cf_cv_system_name" ; then
++ AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name))
++ AC_ERROR("Please remove config.cache and try again.")
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHECK_CFLAGS version: 2 updated: 2001/12/30 19:09:58
++dnl ---------------
++dnl Conditionally add to $CFLAGS and $CPPFLAGS values which are derived from
++dnl a build-configuration such as imake. These have the pitfall that they
++dnl often contain compiler-specific options which we cannot use, mixed with
++dnl preprocessor options that we usually can.
++AC_DEFUN([CF_CHECK_CFLAGS],
++[
++CF_VERBOSE(checking additions to CFLAGS)
++cf_check_cflags="$CFLAGS"
++cf_check_cppflags="$CPPFLAGS"
++CF_ADD_CFLAGS($1,yes)
++if test "$cf_check_cflags" != "$CFLAGS" ; then
++AC_TRY_LINK([#include <stdio.h>],[printf("Hello world");],,
++ [CF_VERBOSE(test-compile failed. Undoing change to \$CFLAGS)
++ if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
++ CF_VERBOSE(but keeping change to \$CPPFLAGS)
++ fi
++ CFLAGS="$cf_check_flags"])
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHECK_ERRNO version: 9 updated: 2001/12/30 18:03:23
++dnl --------------
++dnl Check for data that is usually declared in <stdio.h> or <errno.h>, e.g.,
++dnl the 'errno' variable. Define a DECL_xxx symbol if we must declare it
++dnl ourselves.
++dnl
++dnl $1 = the name to check
++AC_DEFUN([CF_CHECK_ERRNO],
++[
++AC_CACHE_CHECK(if external $1 is declared, cf_cv_dcl_$1,[
++ AC_TRY_COMPILE([
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
++#include <stdio.h>
++#include <sys/types.h>
++#include <errno.h> ],
++ [long x = (long) $1],
++ [cf_cv_dcl_$1=yes],
++ [cf_cv_dcl_$1=no])
++])
++
++if test "$cf_cv_dcl_$1" = no ; then
++ CF_UPPER(cf_result,decl_$1)
++ AC_DEFINE_UNQUOTED($cf_result)
++fi
++
++# It's possible (for near-UNIX clones) that the data doesn't exist
++CF_CHECK_EXTERN_DATA($1,int)
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHECK_EXTERN_DATA version: 3 updated: 2001/12/30 18:03:23
++dnl --------------------
++dnl Check for existence of external data in the current set of libraries. If
++dnl we can modify it, it's real enough.
++dnl $1 = the name to check
++dnl $2 = its type
++AC_DEFUN([CF_CHECK_EXTERN_DATA],
++[
++AC_CACHE_CHECK(if external $1 exists, cf_cv_have_$1,[
++ AC_TRY_LINK([
++#undef $1
++extern $2 $1;
++],
++ [$1 = 2],
++ [cf_cv_have_$1=yes],
++ [cf_cv_have_$1=no])
++])
++
++if test "$cf_cv_have_$1" = yes ; then
++ CF_UPPER(cf_result,have_$1)
++ AC_DEFINE_UNQUOTED($cf_result)
++fi
++
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CHECK_FD_SET version: 4 updated: 2002/10/09 20:00:37
++dnl ---------------
++dnl Check if the fd_set type and corresponding macros are defined.
++AC_DEFUN([CF_CHECK_FD_SET],
++[
++AC_REQUIRE([CF_TYPE_FD_SET])
++AC_CACHE_CHECK([for fd_set macros],cf_cv_macros_fd_set,[
++AC_TRY_COMPILE([
++#include <sys/types.h>
++#if USE_SYS_SELECT_H
++# include <sys/select.h>
++#else
++# ifdef HAVE_SYS_TIME_H
++# include <sys/time.h>
++# ifdef TIME_WITH_SYS_TIME
++# include <time.h>
++# endif
++# else
++# include <time.h>
++# endif
++#endif
++],[
++ fd_set read_bits;
++ FD_ZERO(&read_bits);
++ FD_SET(0, &read_bits);],
++ [cf_cv_macros_fd_set=yes],
++ [cf_cv_macros_fd_set=no])])
++test $cf_cv_macros_fd_set = yes && AC_DEFINE(HAVE_TYPE_FD_SET)
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CRYPT_FUNC version: 4 updated: 2007/04/28 09:15:55
++dnl -------------
++dnl Check if we have a working crypt() function
++AC_DEFUN([CF_CRYPT_FUNC],
++[
++AC_CACHE_CHECK(for crypt function,cf_cv_crypt_func,[
++cf_cv_crypt_func=
++AC_TRY_LINK([],[crypt()],[
++ cf_cv_crypt_func=yes],[
++ cf_save_LIBS="$LIBS"
++ LIBS="-lcrypt $LIBS"
++ AC_TRY_LINK([],[crypt()],[
++ cf_cv_crypt_func="-lcrypt"],[
++ cf_cv_crypt_func=no])
++ LIBS="$cf_save_LIBS"
++ ])
++])
++if test "$cf_cv_crypt_func" != no ; then
++ cf_save_LIBS="$LIBS"
++ test "$cf_cv_crypt_func" != yes && LIBS="$cf_cv_crypt_func $LIBS"
++AC_CACHE_CHECK(if crypt works,cf_cv_crypt_works,[
++AC_TRY_RUN([
++#include <string.h>
++extern char *crypt();
++int main() {
++ char *s = crypt("vi-crypt", "vi");
++ ${cf_cv_main_return-return}(strcmp("vi6r2tczBYLvM", s) != 0);
++}
++ ],[
++ cf_cv_crypt_works=yes],[
++ cf_cv_crypt_works=no],[
++ cf_cv_crypt_works=unknown])
++ LIBS="$cf_save_LIBS"])
++ if test "$cf_cv_crypt_works" != no ; then
++ AC_DEFINE(HAVE_CRYPT)
++ if test "$cf_cv_crypt_func" != yes ; then
++ LIBS="$cf_cv_crypt_func $LIBS"
++ fi
++ fi
++fi
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CURSES_CONFIG version: 2 updated: 2006/10/29 11:06:27
++dnl ----------------
++dnl Tie together the configure-script macros for curses. It may be ncurses,
++dnl but unless asked, we do not make a special search for ncurses. However,
++dnl still check for the ncurses version number, for use in other macros.
++AC_DEFUN([CF_CURSES_CONFIG],
++[
++CF_CURSES_CPPFLAGS
++CF_NCURSES_VERSION
++CF_CURSES_LIBS
++])dnl
++dnl ---------------------------------------------------------------------------
++dnl CF_CURSES_CPPFLAGS version: 9 updated: 2006/02/04 19:44:43
++dnl ------------------
++dnl Look for the curses headers.
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/vile-nolibs.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list