diff options
author | LAN-TW <lantw44@gmail.com> | 2013-04-11 22:53:54 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-04-11 23:11:15 +0800 |
commit | 0180ca539206b19fd3a37fe002ebe5470e5cf006 (patch) | |
tree | 15fa3b8006f94c87acd20326276a3cb54d921818 | |
parent | 962be8a7de5035e7d86b9274962f7d6fe3315fdd (diff) | |
download | taiwan-online-judge-lantw44-0180ca539206b19fd3a37fe002ebe5470e5cf006.tar.gz taiwan-online-judge-lantw44-0180ca539206b19fd3a37fe002ebe5470e5cf006.tar.zst taiwan-online-judge-lantw44-0180ca539206b19fd3a37fe002ebe5470e5cf006.zip |
Add (currently unusable) GNU autotool and libtool
-rw-r--r-- | .gitignore | 24 | ||||
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | COPYING (renamed from LICENSE.txt) | 0 | ||||
-rw-r--r-- | ChangeLog | 0 | ||||
-rw-r--r-- | INSTALL | 0 | ||||
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 0 | ||||
-rwxr-xr-x | autogen.sh | 10 | ||||
-rw-r--r-- | configure.ac | 49 |
10 files changed, 84 insertions, 1 deletions
@@ -1,3 +1,4 @@ +*~ *.o *.so *.ko @@ -7,6 +8,27 @@ .tmp_versions Module.symvers modules.order +aclocal.m4 autoscan.log -configure.scan +autom4te.cache +config.log +config.sub +config.guess +config.status configure +configure.scan +compile +install-sh +libtool +libtool.m4 +ltmain.sh +lt~obsolete.m4 +ltoptions.m4 +ltsugar.m4 +ltversion.m4 +missing +stamp-h1 +/Makefile +/Makefile.in +/include/config.h +/include/config.h.in diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ChangeLog diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..9159a96 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,2 @@ +ACLOCAL_AMFLAGS = -I m4 +SUBDIR = judge diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..8cdc09e --- /dev/null +++ b/autogen.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -x + +libtoolize --install --copy +aclocal +autoconf +autoheader +automake --add-missing --copy +automake diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e6f3715 --- /dev/null +++ b/configure.ac @@ -0,0 +1,49 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_INIT([taiwan-online-judge], [0.1], [BUG-REPORT-ADDRESS]) +AM_INIT_AUTOMAKE([foreign -Wall]) +AM_SILENT_RULES([yes]) +AC_CONFIG_SRCDIR([include/judge_def.h]) +AC_CONFIG_HEADERS([include/config.h]) +AC_CONFIG_MACRO_DIR([m4]) + +# Checks for programs. +AC_PROG_CC +AM_PROG_CC_C_O +AC_PROG_CXX +AC_PROG_LIBTOOL + +# Checks for libraries. +# FIXME: Replace `main' with a function in `-lbz2': +AC_CHECK_LIB([bz2], [main]) +# FIXME: Replace `main' with a function in `-lcurl': +AC_CHECK_LIB([curl], [main]) +# FIXME: Replace `main' with a function in `-ldl': +AC_CHECK_LIB([dl], [main]) +# FIXME: Replace `main' with a function in `-ljson': +AC_CHECK_LIB([json], [main]) +# FIXME: Replace `main' with a function in `-lpq': +AC_CHECK_LIB([pq], [main]) +# FIXME: Replace `main' with a function in `-ltar': +AC_CHECK_LIB([tar], [main]) + +# Checks for header files. +AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T + +# Checks for library functions. +AC_FUNC_FORK +AC_FUNC_MALLOC +AC_FUNC_MMAP +AC_CHECK_FUNCS([dup2 getcwd memset mkdir munmap realpath rmdir socket]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |