automake
[Top][All Lists]
Advanced

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

autoconf automake and aclocal


From: Lol Durst
Subject: autoconf automake and aclocal
Date: Wed, 30 Apr 2003 09:48:04 +0000

I really don't know anything about automake, autoconf
and aclocal but i have some problems with it. I have
installed an personal application which works. i've
benn told so but the point is that there is a bug when
i try ./configure.

Here are my files  :

autom4te.cache  interproc.h     neposeSetEnv.sh
net_log.c        net_udp.c~
COM.h           lancer_nepose   net_chk.c
net_log.o        net_udp.o
confdefs.h      lan_net.h       net_chk.o
net_main.c       NEWS
config.log      lan-pcap.c      net_ctx.c
net_main.c~      options.h
configure       lan-pcap.o      net_ctx.o
net_main.o       pcap-int.h
configure.in    lib_idmef       net_dbm.c
net_mdc.c        pcaputil.c
configure.scan  LICENSE         net_dbm.o
net_mdc.o        pcaputil.h
CVS             liste.h         net.h
net_msg.c        permit.dmp
dbm.h           Makefile        net_icmp.c
net_msg.o        permitted.dmp
debug.h         Makefile.in     net_icmp.o
net_syn.c        policy2.c
denied.dmp      mask.c          net_ident.c
net_syn.o        policy2.o
devt.h          mask.h          net_ident.o
net_tcp.c        policy.h
dream.conf      mask.o          net_interrupt.c
net_tcp.c~       services.h
global.h        messages_ext.h  net_interrupt.o
net_tcp.o        starNePoSe.sh
Image.tmpl      messages.h      net_ip.c
net_trace.c      tcp_raw.c
Imakefile       missing         net_ip.o
net_trace.c.old  tcp_raw.h
Imake.tmpl      nepose          net_liste.c
net_trace.o      tcp_traffic.dmp
install-sh      nepose_         net_liste.o
net_udp.c

when i do a ./configure here is what i get :
configure: error: can not find sources in . or ..

if i try an autoconf from the configure.in file i get
:
configure.in:7: error: m4_defn: undefined macro:
_m4_divert_diversion
autoconf/c.m4:471: AC_PROG_CC is expanded from...
configure.in:7: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

an automake gives me that :
configure.in:7: error: m4_defn: undefined macro:
_m4_divert_diversion
autoconf/c.m4:471: AC_PROG_CC is expanded from...
configure.in:7: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
configure.in: `AM_INIT_AUTOMAKE' must be used
configure.in: required file `./mkinstalldirs' not
found
configure.in: required file `./missing' not found
automake: no `Makefile.am' found or specified

here is my configure.in :

# Process this file with autoconf to produce a
configure script.
AM_INIT_AUTOMAKE(FULL-PACKAGE-NAME, VERSION,
BUG-REPORT-ADDRESS)
AM_CONFIG_SRCDIR([net_main.c])
AM_CONFIG_HEADER([acconfig.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lX11':
AC_CHECK_LIB([X11], [main])
# FIXME: Replace `main' with a function in `-lXmu':
AC_CHECK_LIB([Xmu], [main])

# Checks for header files.
AC_PATH_X
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h limits.h
malloc.h memory.h netdb.h netinet/in.h stdlib.h
string.h sys/ioctl.h sys/param.h sys/socket.h
sys/time.h syslog.h unistd.h])

# Checks for typedefs, structures, and compiler
characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM

# Checks for library functions.
AC_FUNC_FORK
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([alarm floor gethostbyaddr gethostname
inet_ntoa isascii memchr memmove memset regcomp select
socket strcasecmp strchr strcspn strdup strerror
strncasecmp strrchr strstr strtol strtoul])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

here it is, sorry to give you so much code in a single
post.
if you have any ideas or need some more details in
order to help me don't hesitate
ps : i use automake 1.7.3 and autoconf 2.57


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail





reply via email to

[Prev in Thread] Current Thread [Next in Thread]