[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [leafnode-list] RH 6.0 ./configure help !!

Sorry, Cornelius, still gives the same error :-(

[root@rattler leafnode-1.10b2]# ./configure
loading cache ./config.cache
checking for mawk... (cached) mawk
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar 
checking for rpm... (cached) /bin/rpm
checking for gzip... (cached) /usr/bin/gzip
checking for flex... (cached) /usr/bin/flex
checking for autoconf... (cached) /usr/bin/autoconf
checking paths for rpm... done
checking flex... done
checking for dirent.h that defines DIR... (cached) yes
checking for -ldir... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for fnmatch.h... (cached) yes
checking for getopt.h... (cached) yes
checking for limits.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for ap_config.h... (cached) no
checking for working const... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking return type of signal handlers... (cached) void
checking for -lintl... (cached) no
checking for strftime... (cached) yes
checking whether utime accepts a null argument... (cached) yes
checking for fnmatch... (cached) yes
checking for getcwd... (cached) yes
checking for gethostname... (cached) yes
checking for mkdir... (cached) yes
checking for mktime... (cached) yes
checking for regcomp... (cached) yes
checking for rmdir... (cached) yes
checking for socket... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strstr... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for gethostent... (cached) yes
checking for setsockopt... (cached) yes
creating ./config.status
creating Makefile
sed: file conftest.subs line 35: Unknown option to 's'
creating config.h
config.h is unchanged
[root@rattler leafnode-1.10b2]# 



> If somebody out there has autoconf installed and is willing to give it
> a try, I would appreciate a test of the following configure.in instead
> of the old one. It has a different approach of detecting RPM 
> configuration
> paths.
> ---cut here---
> dnl autoconf script for leafnode
> dnl written by Cornelius Krasel, 1999
> dnl Process this file with autoconf to produce a configure script.
> AC_INIT(leafnode.h)
> AC_CONFIG_HEADER(config.h)
> dnl Checks for programs.
> AC_CHECK_PROG( AR, ar, ar )
> AC_PATH_PROG( RPM, rpm )
> AC_PATH_PROG( GZIP, gzip )
> AC_PATH_PROG( FLEX, flex )
> if [ ! test -x "$FLEX" ] ; then
>   AC_PATH_PROG( FLEX, lex )
> fi
> AC_PATH_PROG( AUTOCONF, autoconf )
> dnl rpm stuff
> if test -x "$RPM" ; then
>  AC_MSG_CHECKING(paths for rpm)
>  RPMSOURCEDIR=`$RPM --showrc | grep ^sourcedir | $AWK '{ 
> printf("%s",$3); }'`
>  SPECDIR=`$RPM --showrc | grep ^specdir | $AWK '{ printf("%s",$3); }'`
>  BUILDDIR=`$RPM --showrc | grep ^builddir | $AWK '{ 
> printf("%s",$3); }'`
>  RPMCMD="@./makerpm.sh ${RPM} 
> ${SPECDIR}"'/leafnode-$(VERSION).spec'" 
> ${RPMSOURCEDIR}"'/leafnode-$(VERSION).filelist'" ${BUILDDIR} 
>  AC_MSG_RESULT(done)
> else
>  RPMCMD="@echo Unable to locate rpm"
>  AC_MSG_RESULT(failed)
> fi
> dnl flex stuff
> if test -x "$FLEX" ; then
>  FILTERUTILSRC='filterutil.l'
>  FILTERUTILPROD='filterutil.o:	'"${FILTERUTILSRC}"' leafnode.h'
>  FILTERUTILCMD1='	$(FLEX) -is -ofilterutil.c '"${FILTERUTILSRC}"
>  FILTERUTILCMD2='	$(CC) -c $(CFLAGS) filterutil.c'
>  AC_MSG_RESULT(done)
> else
>  FILTERUTILSRC='filterutil.c'
>  FILTERUTILPROD='filterutil.o:	'"${FILTERUTILSRC}"' leafnode.h'
> fi
> dnl Checks for libraries.
> dnl Replace `main' with a function in -llnutil:
> dnl AC_CHECK_LIB(main)
> dnl Checks for header files.
> AC_CHECK_HEADERS(errno.h fcntl.h fnmatch.h getopt.h limits.h 
> sys/time.h syslog.h unistd.h ap_config.h)
> dnl Checks for typedefs, structures, and compiler characteristics.
> dnl Checks for library functions.
> AC_CHECK_FUNCS(fnmatch getcwd gethostname mkdir mktime 
> regcomp rmdir socket strdup strerror strstr strtol strtoul)
> # Whenever both -lsocket and -lnsl are needed, it seems to be 
> always the
> # case that gethostbyname requires -lnsl.  So, check -lnsl 
> first, for it
> # to be in LIBS before the setsockopt checks are performed.  
> *However*,
> # on SINIX-N 5.43, this is false, and gethostent seems to be a better
> # candidate. So, let's use it below instead of gethostbyname, and see.
> # Stolen from GNU tar 1.12
> AC_CHECK_FUNC(gethostent)
> if test $ac_cv_func_gethostent = no; then
>   AC_CHECK_LIB(nsl, gethostent)
> fi
> AC_CHECK_FUNC(setsockopt)
> if test $ac_cv_func_setsockopt = no; then
>   AC_CHECK_LIB(socket, setsockopt)
> fi
> AC_OUTPUT(Makefile)
> ---cut here---

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list