From: Roland McGrath Date: Mon, 30 Dec 2002 00:53:11 +0000 (+0000) Subject: Removed in automake update X-Git-Tag: v4.5.18~916 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64f793ad3f22035ed28dc2fb9cda3fc085287428;p=strace Removed in automake update --- diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index cfa7d460..00000000 --- a/Makefile.in +++ /dev/null @@ -1,114 +0,0 @@ -# Makefile.in -- strace Makefile prototype -*- Makefile -*- -# -# $Id$ -# - -srcdir = @srcdir@ -VPATH = @srcdir@ - -CC = @CC@ - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -DEFS = @DEFS@ -LDLIBS = @LIBS@ - -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -WARNFLAGS = @WARNFLAGS@ - -# OS is one of `linux', `sunos4', `svr4', or `freebsd'. -OS = @opsys@ -# ARCH is one of `i386', `m68k', `sparc', `arm', `mips' or `ia64'. -ARCH = @arch@ -# OSARCH is OS/ARCH if it exists, otherwise just OS. -OSARCH = @osarch@ - -# You may define any of MAX_PROCS, DEFAULT_STRLEN, DEFAULT_ACOLUMN, -# or DEFAULT_SORTBY here. -EXTRA_DEFS = - -# Where include files are located, useful for cross-compiling. -includedir = @includedir@ - -# Where to install the program: -# I recommend `/usr' for Linux, `/usr/local' for the others. -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -bindir = @bindir@ -mandir = @mandir@ -man1dir = $(mandir)/man1 -man1ext = .1 - -SHELL = /bin/sh - -INCLUDES = -I. -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) \ - -I$(srcdir)/$(OS) -SUBDIRS = $(OSARCH) - -ALL_SUBDIRS = test linux linux/alpha linux/powerpc sunos4 svr4 \ - linux/s390 linux/s390x freebsd/i386 -OBJ = strace.o version.o syscall.o util.o desc.o file.o ipc.o \ - io.o ioctl.o mem.o net.o process.o bjm.o \ - resource.o signal.o sock.o system.o term.o time.o \ - proc.o stream.o - -all: strace - -headers: - -$(MAKE) -C $(OSARCH) headers - -strace: headers $(OBJ) - $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS) - -install: all - $(INSTALL_PROGRAM) strace $(bindir)/strace - $(INSTALL_PROGRAM) $(srcdir)/strace-graph $(bindir)/strace-graph - $(INSTALL_DATA) $(srcdir)/strace.1 $(man1dir)/strace$(man1ext) - -clean: clean-local - for i in $(ALL_SUBDIRS); do \ - (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \ - done; exit 0 - -clean-local: - rm -f *.o a.out core strace make.out - -distclean: distclean-local - for i in $(ALL_SUBDIRS); do \ - (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \ - done; exit 0 - -distclean-local: clean-local - rm -f machine - rm -f Makefile config.h config.status config.cache config.log - -maintainer-clean: maintainter-clean-local - for i in $(ALL_SUBDIRS); do \ - (test -f $$i/Makefile && cd ./$$i && $(MAKE) $@ || true); \ - done; exit 0 - -maintainer-clean-local: distclean-local - -.c.o: - $(CC) $(WARNFLAGS) $(DEFS) $(EXTRA_DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $< - -desc.o: desc.c defs.h config.h -file.o: file.c defs.h config.h -io.o: io.c defs.h config.h -ioctl.o: ioctl.c defs.h config.h -mem.o: mem.c defs.h config.h -net.o: net.c defs.h config.h -process.o: process.c defs.h config.h -resource.o: resource.c defs.h config.h -signal.o: signal.c defs.h config.h -socket.o: socket.c defs.h config.h -strace.o: strace.c defs.h config.h -syscall.o: syscall.c defs.h config.h -system.o: system.c defs.h config.h -time.o: time.c defs.h config.h -util.o: util.c defs.h config.h diff --git a/acconfig.h b/acconfig.h deleted file mode 100644 index a3939b6b..00000000 --- a/acconfig.h +++ /dev/null @@ -1,130 +0,0 @@ - -/* Define if this is running the Linux operating system. */ -#undef LINUX - -/* Define if this is running the SunOS 4.x operating system. */ -#undef SUNOS4 - -/* Define if this is running the System V release 4 operating system - or a derivative like Solaris 2.x or Irix 5.x. */ -#undef SVR4 - -/* Define if this is running the FreeBSD operating system. */ -#undef FREEBSD - -/* Define for UnixWare systems. */ -#undef UNIXWARE - -/* Define if this is an hppa architecture */ -#undef HPPA - -/* Define if this is an i386, i486 or pentium architecture. */ -#undef I386 - -/* Define if this is an ia64 architecture. */ -#undef IA64 - -/* Define if this is an m68k architecture. */ -#undef M68K - -/* Define if this is a sparc architecture. */ -#undef SPARC - -/* Define if this is a mips architecture. */ -#undef MIPS - -/* Define if this is an alpha architecture. */ -#undef ALPHA - -/* Define if this is an arm architecture. */ -#undef ARM - -/* Define if this is a powerpc architecture. */ -#undef POWERPC - -/* Define if this is a S390 architecture. */ -#undef S390 - -/* Define if this is a SH architecture. */ -#undef SH - -/* Define if this is a x86-64 architecture. */ -#undef X86_64 - -/* Define if this is a S390X architecture. */ -#undef S390X - -/* Define if you have a SVR4 MP type procfs. I.E. /dev/xxx/ctl, - /dev/xxx/status. Also implies that you have the pr_lwp - member in prstatus. */ -#undef HAVE_MP_PROCFS - -/* Define if you have SVR4 and the poll system call works on /proc files. */ -#undef HAVE_POLLABLE_PROCFS - -/* Define if you have SVR4_MP and you need to use the poll hack - to avoid unfinished system calls. */ -#undef POLL_HACK - -/* Define if the prstatus structure in sys/procfs.h has a pr_syscall member. */ -#undef HAVE_PR_SYSCALL - -/* Define if you are have a SPARC with SUNOS4 and your want a version - of strace that will work on sun4, sun4c and sun4m kernel architectures. - Only useful if you have a symbolic link from machine to /usr/include/sun4 - in the compilation directory. */ -#undef SUNOS4_KERNEL_ARCH_KLUDGE - -/* Define if signal.h defines the type sig_atomic_t. */ -#undef HAVE_SIG_ATOMIC_T - -/* Define if signal.h defines the type siginfo_t. */ -#undef HAVE_SIGINFO_T - -/* Define if sys_errlist is declared. */ -#undef SYS_ERRLIST_DECLARED - -/* Define if the msghdr structure has a msg_control member. */ -#undef HAVE_MSG_CONTROL - -/* Define if stat64 is available in asm/stat.h. */ -#undef HAVE_STAT64 - -/* Define if your compiler knows about long long */ -#undef HAVE_LONG_LONG - -/* Define if off_t is a long long */ -#undef HAVE_LONG_LONG_OFF_T - -/* Define if rlim_t is a long long */ -#undef HAVE_LONG_LONG_RLIM_T - -/* Define if struct sockaddr_in6 contains sin6_scope_id field. */ -#undef HAVE_SIN6_SCOPE_ID - -/* Define if linux struct sockaddr_in6 contains sin6_scope_id fiels. */ -#undef HAVE_SIN6_SCOPE_ID_LINUX - -/* Define if have st_flags in struct stat */ -#undef HAVE_ST_FLAGS - -/* Define if have st_aclcnt in struct stat */ -#undef HAVE_ST_ACLCNT - -/* Define if have st_level in struct stat */ -#undef HAVE_ST_LEVEL - -/* Define if have st_fstype in struct stat */ -#undef HAVE_ST_FSTYPE - -/* Define if have st_gen in struct stat */ -#undef HAVE_ST_GEN - -/* Define if have little endiang long long */ -#undef HAVE_LITTLE_ENDIAN_LONG_LONG - -/* Define if sys/socket.h defines the struct opthdr. */ -#undef HAVE_OPTHDR - -/* Define if sys/tiuser.h defines the struct t_opthdr. */ -#undef HAVE_T_OPTHDR diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index 6d1ad192..00000000 --- a/aclocal.m4 +++ /dev/null @@ -1,558 +0,0 @@ -dnl ### A macro to find the include directory, useful for cross-compiling. -AC_DEFUN(AC_INCLUDEDIR, -[AC_REQUIRE([AC_PROG_AWK])dnl -AC_SUBST(includedir) -AC_MSG_CHECKING(for primary include directory) -includedir=/usr/include -if test -n "$GCC" -then - >conftest.c - new_includedir=` - $CC -v -E conftest.c 2>&1 | $AWK ' - /^End of search list/ { print last; exit } - { last = [$]1 } - ' - ` - rm -f conftest.c - if test -n "$new_includedir" && test -d "$new_includedir" - then - includedir=$new_includedir - fi -fi -AC_MSG_RESULT($includedir) -]) - -dnl ### A macro to automatically set different CC and HOSTCC if using gcc. -define(AC_PROG_HOSTCC, -[AC_SUBST(HOSTCC)dnl -if test -z "$HOSTCC" -then - HOSTCC="$CC" - if test -n "$GCC" - then - # Find out if gcc groks our host. - worked= - last= - for i in $1 - do - test "x$i" = "x$last" && continue - last="$i" - CC="$HOSTCC -b $i" - AC_MSG_CHECKING([for working $CC]) - AC_TRY_LINK(,, - worked=1 - break - ) - AC_MSG_RESULT(no) - done - if test -z "$worked" - then - CC="$HOSTCC" - else - AC_MSG_RESULT(yes) - fi - fi -fi -]) - -dnl ### A macro to set gcc warning flags. -define(AC_WARNFLAGS, -[AC_SUBST(WARNFLAGS) -if test -z "$WARNFLAGS" -then - if test -n "$GCC" - then - # If we're using gcc we want warning flags. - WARNFLAGS=-Wall - fi -fi -]) - -dnl ### A macro to determine if we have a "MP" type procfs -AC_DEFUN(AC_MP_PROCFS, -[AC_MSG_CHECKING(for MP procfs) -AC_CACHE_VAL(ac_cv_mp_procfs, -[AC_TRY_RUN([ -#include -#include -#include - -main() -{ - int pid; - char proc[32]; - FILE *ctl; - FILE *status; - int cmd; - struct pstatus pstatus; - - if ((pid = fork()) == 0) { - pause(); - exit(0); - } - sprintf(proc, "/proc/%d/ctl", pid); - if ((ctl = fopen(proc, "w")) == NULL) - goto fail; - sprintf(proc, "/proc/%d/status", pid); - if ((status = fopen (proc, "r")) == NULL) - goto fail; - cmd = PCSTOP; - if (write (fileno (ctl), &cmd, sizeof cmd) < 0) - goto fail; - if (read (fileno (status), &pstatus, sizeof pstatus) < 0) - goto fail; - kill(pid, SIGKILL); - exit(0); -fail: - kill(pid, SIGKILL); - exit(1); -} -], -ac_cv_mp_procfs=yes, -ac_cv_mp_procfs=no, -[ -# Guess or punt. -case "$host_os" in -svr4.2*|svr5*) - ac_cv_mp_procfs=yes - ;; -*) - ac_cv_mp_procfs=no - ;; -esac -])]) -AC_MSG_RESULT($ac_cv_mp_procfs) -if test "$ac_cv_mp_procfs" = yes -then - AC_DEFINE(HAVE_MP_PROCFS) -fi -]) - -dnl ### A macro to determine if procfs is pollable. -AC_DEFUN(AC_POLLABLE_PROCFS, -[AC_MSG_CHECKING(for pollable procfs) -AC_CACHE_VAL(ac_cv_pollable_procfs, -[AC_TRY_RUN([ -#include -#include -#include -#include -#include - -#ifdef HAVE_MP_PROCFS -#define PIOCSTOP PCSTOP -#define POLLWANT POLLWRNORM -#define PROC "/proc/%d/ctl" -#define PROC_MODE "w" -int IOCTL (int fd, int cmd, int arg) { - return write (fd, &cmd, sizeof cmd); -} -#else -#define POLLWANT POLLPRI -#define PROC "/proc/%d" -#define PROC_MODE "r+" -#define IOCTL ioctl -#endif - -main() -{ - int pid; - char proc[32]; - FILE *pfp; - struct pollfd pfd; - - if ((pid = fork()) == 0) { - pause(); - exit(0); - } - sprintf(proc, PROC, pid); - if ((pfp = fopen(proc, PROC_MODE)) == NULL) - goto fail; - if (IOCTL(fileno(pfp), PIOCSTOP, NULL) < 0) - goto fail; - pfd.fd = fileno(pfp); - pfd.events = POLLWANT; - if (poll(&pfd, 1, 0) < 0) - goto fail; - if (!(pfd.revents & POLLWANT)) - goto fail; - kill(pid, SIGKILL); - exit(0); -fail: - kill(pid, SIGKILL); - exit(1); -} -], -ac_cv_pollable_procfs=yes, -ac_cv_pollable_procfs=no, -[ -# Guess or punt. -case "$host_os" in -solaris2*|irix5*|svr4.2uw*|svr5*) - ac_cv_pollable_procfs=yes - ;; -*) - ac_cv_pollable_procfs=no - ;; -esac -])]) -AC_MSG_RESULT($ac_cv_pollable_procfs) -if test "$ac_cv_pollable_procfs" = yes -then - AC_DEFINE(HAVE_POLLABLE_PROCFS) -fi -]) - -dnl ### A macro to determine if the prstatus structure has a pr_syscall member. -AC_DEFUN(AC_STRUCT_PR_SYSCALL, -[AC_MSG_CHECKING(for pr_syscall in struct prstatus) -AC_CACHE_VAL(ac_cv_struct_pr_syscall, -[AC_TRY_COMPILE([#include ], -[#ifdef HAVE_MP_PROCFS -pstatus_t s; -s.pr_lwp.pr_syscall -#else -prstatus_t s; -s.pr_syscall -#endif], -ac_cv_struct_pr_syscall=yes, -ac_cv_struct_pr_syscall=no)]) -AC_MSG_RESULT($ac_cv_struct_pr_syscall) -if test "$ac_cv_struct_pr_syscall" = yes -then - AC_DEFINE(HAVE_PR_SYSCALL) -fi -]) - -dnl ### A macro to detect the presence of the sig_atomic_t in signal.h -AC_DEFUN(AC_SIG_ATOMIC_T, -[AC_MSG_CHECKING(for sig_atomic_t in signal.h) -AC_CACHE_VAL(ac_cv_sig_atomic_t, -[AC_TRY_COMPILE([#include ], -[sig_atomic_t x;], -ac_cv_sig_atomic_t=yes, -ac_cv_sig_atomic_t=no)]) -AC_MSG_RESULT($ac_cv_sig_atomic_t) -if test "$ac_cv_sig_atomic_t" = yes -then - AC_DEFINE(HAVE_SIG_ATOMIC_T) -fi -]) - -dnl ### A macro to detect the presence of the siginfo_t in signal.h -AC_DEFUN(AC_SIGINFO_T, -[AC_MSG_CHECKING(for siginfo_t in signal.h) -AC_CACHE_VAL(ac_cv_siginfo_t, -[AC_TRY_COMPILE([#include ], -[siginfo_t x;], -ac_cv_siginfo_t=yes, -ac_cv_siginfo_t=no)]) -AC_MSG_RESULT($ac_cv_siginfo_t) -if test "$ac_cv_siginfo_t" = yes -then - AC_DEFINE(HAVE_SIGINFO_T) -fi -]) - -dnl ### A macro to determine if sys_errlist is declared. -AC_DEFUN(AC_DECL_SYS_ERRLIST, -[AC_MSG_CHECKING([for sys_errlist declaration]) -AC_CACHE_VAL(ac_cv_decl_sys_errlist, -[AC_TRY_COMPILE([#include -#include -#include -/* Somebody might declare sys_errlist in unistd.h. */ -#ifdef HAVE_UNISTD_H -#include -#endif], [char *msg = *(sys_errlist + 1);], - ac_cv_decl_sys_errlist=yes, ac_cv_decl_sys_errlist=no)])dnl -AC_MSG_RESULT($ac_cv_decl_sys_errlist) -if test $ac_cv_decl_sys_errlist = yes; then - AC_DEFINE(SYS_ERRLIST_DECLARED) -fi -]) - -dnl ### A macro to determine if _sys_siglist is declared. -AC_DEFUN(AC_DECL__SYS_SIGLIST, -[AC_MSG_CHECKING([for _sys_siglist declaration]) -AC_CACHE_VAL(ac_cv_decl__sys_siglist, -[AC_TRY_COMPILE([#include -#include -/* Somebody might declare _sys_siglist in unistd.h. */ -#ifdef HAVE_UNISTD_H -#include -#endif], [char *msg = *(_sys_siglist + 1);], - ac_cv_decl__sys_siglist=yes, ac_cv_decl__sys_siglist=no)])dnl -AC_MSG_RESULT($ac_cv_decl__sys_siglist) -if test $ac_cv_decl__sys_siglist = yes; then - AC_DEFINE(SYS_SIGLIST_DECLARED) -fi -]) - -dnl ### A macro to determine if the msghdr structure has a msg_control member. -AC_DEFUN(AC_STRUCT_MSG_CONTROL, -[AC_MSG_CHECKING(for msg_control in struct msghdr) -AC_CACHE_VAL(ac_cv_struct_msg_control, -[AC_TRY_COMPILE([#include -#include ], -[#undef msg_control -struct msghdr m; m.msg_control;], -ac_cv_struct_msg_control=yes, -ac_cv_struct_msg_control=no)]) -AC_MSG_RESULT($ac_cv_struct_msg_control) -if test "$ac_cv_struct_msg_control" = yes -then - AC_DEFINE(HAVE_MSG_CONTROL) -fi -]) - -dnl ### A macro to determine whether stat64 is defined. -AC_DEFUN(AC_STAT64, -[AC_MSG_CHECKING(for stat64 in (asm|sys)/stat.h) -AC_CACHE_VAL(ac_cv_type_stat64, -[AC_TRY_COMPILE([#ifdef LINUX -#include -#include -#else -#include -#endif], -[struct stat64 st;], -ac_cv_type_stat64=yes, -ac_cv_type_stat64=no)]) -AC_MSG_RESULT($ac_cv_type_stat64) -if test "$ac_cv_type_stat64" = yes -then - AC_DEFINE(HAVE_STAT64) -fi -]) - -dnl ### A macro to determine whether we have long long -AC_DEFUN(AC_LONG_LONG, -[AC_MSG_CHECKING(for long long) -AC_CACHE_VAL(ac_cv_type_long_long, -[AC_TRY_COMPILE([], -[long long x = 20;], -ac_cv_type_long_long=yes, -ac_cv_type_long_long=no)]) -AC_MSG_RESULT($ac_cv_type_long_long) -if test "$ac_cv_type_long_long" = yes -then - AC_DEFINE(HAVE_LONG_LONG) -fi -]) - -dnl ### A macro to determine if off_t is a long long -AC_DEFUN(AC_OFF_T_IS_LONG_LONG, -[AC_MSG_CHECKING(for long long off_t) -AC_CACHE_VAL(ac_cv_have_long_long_off_t, -[AC_TRY_RUN([#include -main () { - if (sizeof (off_t) == sizeof (long long) && - sizeof (off_t) > sizeof (long)) - return 0; - return 1; -} -], -ac_cv_have_long_long_off_t=yes, -ac_cv_have_long_long_off_t=no, -[# Should try to guess here -ac_cv_have_long_long_off_t=no -])]) -AC_MSG_RESULT($ac_cv_have_long_long_off_t) -if test "$ac_cv_have_long_long_off_t" = yes -then - AC_DEFINE(HAVE_LONG_LONG_OFF_T) -fi -]) - -dnl ### A macro to determine if rlim_t is a long long -AC_DEFUN(AC_RLIM_T_IS_LONG_LONG, -[AC_MSG_CHECKING(for long long rlim_t) -AC_CACHE_VAL(ac_cv_have_long_long_rlim_t, -[AC_TRY_RUN([#include -#include -#include -main () { - if (sizeof (rlim_t) == sizeof (long long) && - sizeof (rlim_t) > sizeof (long)) - return 0; - return 1; -} -], -ac_cv_have_long_long_rlim_t=yes, -ac_cv_have_long_long_rlim_t=no, -[# Should try to guess here -ac_cv_have_long_long_rlim_t=no -])]) -AC_MSG_RESULT($ac_cv_have_long_long_rlim_t) -if test "$ac_cv_have_long_long_rlim_t" = yes -then - AC_DEFINE(HAVE_LONG_LONG_RLIM_T) -fi -]) - -dnl ### A macro to determine whether sin6_scope_id is available. -AC_DEFUN(AC_SIN6_SCOPE_ID, -[AC_MSG_CHECKING(for sin6_scope_id in sockaddr_in6) -AC_CACHE_VAL(ac_cv_have_sin6_scope_id, -[AC_TRY_COMPILE([#include ], -[ struct sockaddr_in6 s; s.sin6_scope_id = 0; ], -ac_cv_have_sin6_scope_id=yes, -ac_cv_have_sin6_scope_id=no)]) -AC_MSG_RESULT($ac_cv_have_sin6_scope_id) -if test "$ac_cv_have_sin6_scope_id" = "yes" ; then - AC_DEFINE(HAVE_SIN6_SCOPE_ID) -else - AC_MSG_CHECKING(for sin6_scope_id in linux sockaddr_in6) - AC_CACHE_VAL(ac_cv_have_sin6_scope_id_linux, - [AC_TRY_COMPILE([#include ], - [ struct sockaddr_in6 s; s.sin6_scope_id = 0; ], - ac_cv_have_sin6_scope_id_linux=yes, - ac_cv_have_sin6_scope_id_linux=no)]) - AC_MSG_RESULT($ac_cv_have_sin6_scope_id_linux) - if test "$ac_cv_have_sin6_scope_id_linux" = "yes" ; then - AC_DEFINE(HAVE_SIN6_SCOPE_ID) - AC_DEFINE(HAVE_SIN6_SCOPE_ID_LINUX) - fi -fi -]) - -dnl ### A macro to check for st_flags in struct stat -AC_DEFUN(AC_ST_FLAGS, -[AC_MSG_CHECKING(for st_flags in struct stat) -AC_CACHE_VAL(ac_cv_have_st_flags, -[AC_TRY_COMPILE([#include ], -[struct stat buf; -buf.st_flags = 0;], -ac_cv_have_st_flags=yes, -ac_cv_have_st_flags=no)]) -AC_MSG_RESULT($ac_cv_have_st_flags) -if test "$ac_cv_have_st_flags" = yes -then - AC_DEFINE(HAVE_ST_FLAGS) -fi -]) - -dnl ### A macro to check for st_aclcnt in struct stat -AC_DEFUN(AC_ST_ACLCNT, -[AC_MSG_CHECKING(for st_aclcnt in struct stat) -AC_CACHE_VAL(ac_cv_have_st_aclcnt, -[AC_TRY_COMPILE([#include ], -[struct stat buf; -buf.st_aclcnt = 0;], -ac_cv_have_st_aclcnt=yes, -ac_cv_have_st_aclcnt=no)]) -AC_MSG_RESULT($ac_cv_have_st_aclcnt) -if test "$ac_cv_have_st_aclcnt" = yes -then - AC_DEFINE(HAVE_ST_ACLCNT) -fi -]) - -dnl ### A macro to check for st_level in struct stat -AC_DEFUN(AC_ST_LEVEL, -[AC_MSG_CHECKING(for st_level in struct stat) -AC_CACHE_VAL(ac_cv_have_st_level, -[AC_TRY_COMPILE([#include ], -[struct stat buf; -buf.st_level = 0;], -ac_cv_have_st_level=yes, -ac_cv_have_st_level=no)]) -AC_MSG_RESULT($ac_cv_have_st_level) -if test "$ac_cv_have_st_level" = yes -then - AC_DEFINE(HAVE_ST_LEVEL) -fi -]) - -dnl ### A macro to check for st_fstype in struct stat -AC_DEFUN(AC_ST_FSTYPE, -[AC_MSG_CHECKING(for st_fstype in struct stat) -AC_CACHE_VAL(ac_cv_have_st_fstype, -[AC_TRY_COMPILE([#include ], -[struct stat buf; -buf.st_fstype[0] = 0;], -ac_cv_have_st_fstype=yes, -ac_cv_have_st_fstype=no)]) -AC_MSG_RESULT($ac_cv_have_st_fstype) -if test "$ac_cv_have_st_fstype" = yes -then - AC_DEFINE(HAVE_ST_FSTYPE) -fi -]) - -dnl ### A macro to check for st_gen in struct stat -AC_DEFUN(AC_ST_GEN, -[AC_MSG_CHECKING(for st_gen in struct stat) -AC_CACHE_VAL(ac_cv_have_st_gen, -[AC_TRY_COMPILE([#include ], -[struct stat buf; -buf.st_gen = 0;], -ac_cv_have_st_gen=yes, -ac_cv_have_st_gen=no)]) -AC_MSG_RESULT($ac_cv_have_st_gen) -if test "$ac_cv_have_st_gen" = yes -then - AC_DEFINE(HAVE_ST_GEN) -fi -]) - -dnl ### A macro to determine endianness of long long -AC_DEFUN(AC_LITTLE_ENDIAN_LONG_LONG, -[AC_MSG_CHECKING(for little endian long long) -AC_CACHE_VAL(ac_cv_have_little_endian_long_long, -[AC_TRY_RUN([ -int main () { - union { - long long ll; - long l [2]; - } u; - u.ll = 0x12345678; - if (u.l[0] == 0x12345678) - return 0; - return 1; -} -], -ac_cv_have_little_endian_long_long=yes, -ac_cv_have_little_endian_long_long=no, -[# Should try to guess here -ac_cv_have_little_endian_long_long=no -])]) -AC_MSG_RESULT($ac_cv_have_little_endian_long_long) -if test "$ac_cv_have_little_endian_long_long" = yes -then - AC_DEFINE(HAVE_LITTLE_ENDIAN_LONG_LONG) -fi -]) - -dnl ### A macro to determine if we have struct opthdr in sys/socket.h -AC_DEFUN(AC_STRUCT_OPTHDR, -[AC_MSG_CHECKING(for struct opthdr in sys/socket.h) -AC_CACHE_VAL(ac_cv_struct_opthdr, -[AC_TRY_COMPILE([#include ], -[struct opthdr fred; -&fred;], -ac_cv_struct_opthdr=yes, -ac_cv_struct_opthdr=no)]) -AC_MSG_RESULT($ac_cv_struct_opthdr) -if test "$ac_cv_struct_opthdr" = yes -then - AC_DEFINE(HAVE_OPTHDR) -fi -]) - -dnl ### A macro to determine if we have struct t_opthdr in sys/tiuser.h -AC_DEFUN(AC_STRUCT_T_OPTHDR, -[AC_MSG_CHECKING(for struct t_opthdr in sys/tiuser.h) -AC_CACHE_VAL(ac_cv_struct_t_opthdr, -[AC_TRY_COMPILE([#include ], -[struct t_opthdr fred; -&fred;], -ac_cv_struct_t_opthdr=yes, -ac_cv_struct_t_opthdr=no)]) -AC_MSG_RESULT($ac_cv_struct_t_opthdr) -if test "$ac_cv_struct_t_opthdr" = yes -then - AC_DEFINE(HAVE_T_OPTHDR) -fi -]) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 4668adcf..00000000 --- a/autogen.sh +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/sh - -PROJECT=strace - -DIE=0 - -(autoconf --version) < /dev/null > /dev/null 2>&1 || { - echo - echo "You must have autoconf installed to compile $PROJECT." - echo "Download the appropriate package for your distribution," - echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" - DIE=1 -} - -if test "$DIE" -eq 1; then - exit 1 -fi - -autoheader -autoconf - - diff --git a/configure.in b/configure.in deleted file mode 100644 index e8cd279b..00000000 --- a/configure.in +++ /dev/null @@ -1,183 +0,0 @@ -AC_INIT(strace.c) -AC_CANONICAL_SYSTEM() -AC_MSG_CHECKING(for supported operating system) - -case "$host_os" in -linux*) - opsys=linux - ;; -sunos4*) - opsys=sunos4 - ;; -solaris2*) - opsys=svr4 - ;; -sysv4*) - opsys=svr4 - ;; -sysv5*) - opsys=svr4 - ;; -irix[[56]]*) - opsys=svr4 - ;; -freebsd*) - opsys=freebsd - ;; -*) - AC_MSG_ERROR(this operating system is not yet supported by strace) - ;; -esac -AC_MSG_RESULT($opsys) - -# Autoheader trick. Heh, heh. -opsys_list=' -@@@syms="$syms LINUX SUNOS4 SVR4 FREEBSD"@@@ -' - -AC_MSG_CHECKING(for supported architecture) -case "$target_cpu" in -i[[3456]]86|pentium) - arch=i386 - ;; -ia64) - arch=ia64 - ;; -m68k) - arch=m68k - ;; -sparc*) - arch=sparc - ;; -mips*) - arch=mips - ;; -alpha*) - arch=alpha - ;; -ppc|powerpc) - arch=powerpc - ;; -arm) - arch=arm - ;; -s390) - arch=s390 - ;; -s390x) - arch=s390x - ;; -hppa*|parisc*) - arch=hppa - ;; -sh) - arch=sh - ;; -x86?64*) - arch=x86_64 - ;; -*) - AC_MSG_ERROR(this architecture is not yet supported by strace) - ;; -esac -AC_MSG_RESULT($arch) - -# Autoheader trick. Heh, heh. -arch_list=' -@@@syms="$syms I386 IA64 M68K SPARC MIPS ALPHA ARM POWERPC S390 S390X HPPA SH X86_64"@@@ -' - -osarch="$opsys" -if test -d "$srcdir/$opsys/$arch"; then - osarch="$opsys/$arch" -fi - -OPSYS=`echo $opsys | tr '[[a-z]]' '[[A-Z]]'` -ARCH=`echo $arch | tr '[[a-z]]' '[[A-Z]]'` - -CFLAGS="-D_GNU_SOURCE $CFLAGS" -AC_CONFIG_HEADER(config.h) -AC_SUBST(opsys) -AC_DEFINE_UNQUOTED($OPSYS) -case "$host_os" in -sysv4.2uw*) - AC_DEFINE(UNIXWARE, 2) - ;; -sysv5*) - AC_DEFINE(UNIXWARE, 7) - ;; -esac -AC_SUBST(arch) -AC_DEFINE_UNQUOTED($ARCH) -AC_SUBST(osarch) -AC_PROG_CC -AC_PROG_HOSTCC($host_alias $host) -AC_MP_PROCFS -AC_POLLABLE_PROCFS -AC_STRUCT_PR_SYSCALL -AC_STRUCT_MSG_CONTROL -AC_INCLUDEDIR -if test "x$OPSYS" = "xSUNOS4" && test "x$ARCH" = "xSPARC" -then - AC_MSG_CHECKING(for valid machine include directory) - if test -d "$includedir/sun4" - then - rm -f machine - ln -s $includedir/sun4 machine - AC_MSG_RESULT(yes) - AC_DEFINE(SUNOS4_KERNEL_ARCH_KLUDGE) - else - AC_MSG_RESULT(no) - fi -fi -AC_WARNFLAGS -if test "x$OPSYS" = "xSUNOS4" -then - if test -n "$GCC" - then - # SunOS 4.x header files don't declare int functions. - WARNFLAGS="$WARNFLAGS -Wno-implicit" - fi -fi -AC_PROG_CPP -AC_PROG_GCC_TRADITIONAL -AC_PROG_INSTALL -AC_C_CONST -AC_HEADER_STDC -AC_HEADER_DIRENT -AC_TYPE_SIGNAL -AC_STRUCT_ST_BLKSIZE -AC_STRUCT_ST_BLOCKS -AC_STRUCT_ST_RDEV -AC_HEADER_STAT -AC_TYPE_UID_T -AC_TYPE_MODE_T -AC_TYPE_GETGROUPS -AC_HEADER_MAJOR -AC_SIG_ATOMIC_T -AC_SIGINFO_T -AC_STAT64 -AC_SIN6_SCOPE_ID -AC_LONG_LONG -AC_LITTLE_ENDIAN_LONG_LONG -AC_OFF_T_IS_LONG_LONG -AC_RLIM_T_IS_LONG_LONG -AC_ST_FLAGS -AC_ST_ACLCNT -AC_ST_LEVEL -AC_ST_FSTYPE -AC_ST_GEN -AC_STRUCT_OPTHDR -AC_STRUCT_T_OPTHDR -if test x$OPSYS != xLINUX; then -AC_CHECK_LIB(nsl, main) -fi -AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname) -AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h poll.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h sys/nscsys.h) -AC_DECL_SYS_ERRLIST -AC_DECL_SYS_SIGLIST -AC_DECL__SYS_SIGLIST -if test ! -d $osarch; then - mkdir -p $osarch -fi -AC_OUTPUT(Makefile $osarch/Makefile)