Permalink
Browse files

Switching to Autotools

  • Loading branch information...
1 parent 4dce2ff commit a0e728a4f63df5160ca5cfb687b9fb366a5424a5 @codebrainz committed Dec 12, 2010
Showing with 257 additions and 4 deletions.
  1. +71 −0 .gitignore
  2. +1 −4 CHANGES → ChangeLog
  3. +13 −0 Makefile.am
  4. 0 Makefile → Makefile.orig
  5. +117 −0 config.h.in
  6. +29 −0 configure.ac
  7. +10 −0 ftplib.pc.in
  8. +11 −0 html/Makefile.am
  9. +1 −0 m4/libtool.m4
  10. +1 −0 m4/ltoptions.m4
  11. +1 −0 m4/ltsugar.m4
  12. +1 −0 m4/ltversion.m4
  13. +1 −0 m4/lt~obsolete.m4
View
@@ -0,0 +1,71 @@
+#
+# .gitignore for libfg2
+#
+
+# Compiled
+*.o
+*.os
+*.so
+*.a
+*.com
+*.class
+*.dll
+*.exe
+*.pyc
+*.lo
+*.la
+
+# Packages
+*.7z
+*.dmg
+*.gz
+*.iso
+*.jar
+*.rar
+*.tar
+*.zip
+
+# Logs and db
+*.log
+*.sql
+*.sqlite
+*.dblite
+
+# OS files
+.DS_Store?
+ehthumbs.db
+Icon?
+Thumbs.db
+
+# New sub-projects
+src/gtkcamera
+src/pyfg2
+
+# Autotools stuff
+
+*~
+
+Makefile
+Makefile.in
+
+aclocal.m4
+autom4te.cache/
+
+config.guess
+config.log
+config.status
+config.sub
+
+configure
+
+config.h
+stamp-h1
+
+install-sh
+libtool
+ltmain.sh
+missing
+depcomp
+
+.deps
+.libs
View
@@ -2,10 +2,7 @@ The obligatory revision history...
Changes from .... (V3.1) to 12/5/2010 (V3.1.2)
-1) Removed Microsoft build stuff and created a simple Makefile.
-2) Removed legacy README files, renamed others.
-3) Removed getopt.c and getopt.h.
-4) No base code changes made.
+1) Created an Autotools project.
------------------------------------------------------------------------
View
@@ -0,0 +1,13 @@
+AUTOMAKE_OPTIONS = foreign
+SUBDIRS = html
+ACLOCAL_AMFLAGS = -I m4
+
+lib_LTLIBRARIES = libftp.la
+libftp_la_SOURCES = ftplib.c
+libftp_la_LD_FLAGS = -version-info @PACKAGE_VERSION@
+
+libftp_ladir = $(datadir)/doc/@PACKAGE@
+libftp_la_DATA = ChangeLog INSTALL README README.qftp RFC959.txt
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = ftplib.pc
File renamed without changes.
View
@@ -0,0 +1,117 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#undef HAVE_ARPA_INET_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#undef HAVE_GETHOSTBYNAME
+
+/* Define to 1 if you have the `gethostname' function. */
+#undef HAVE_GETHOSTNAME
+
+/* Define to 1 if you have the `getpass' function. */
+#undef HAVE_GETPASS
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+ to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `memset' function. */
+#undef HAVE_MEMSET
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#undef HAVE_NETINET_IN_H
+
+/* Define to 1 if you have the `select' function. */
+#undef HAVE_SELECT
+
+/* Define to 1 if you have the `socket' function. */
+#undef HAVE_SOCKET
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#undef HAVE_SYS_SOCKET_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#undef LT_OBJDIR
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
View
@@ -0,0 +1,29 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.68])
+AC_INIT([ftplib], [3.1.2], [mbrush@leftclick.ca])
+AC_CONFIG_SRCDIR([ftplib.c])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+
+AM_INIT_AUTOMAKE
+LT_INIT
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS([gethostbyname gethostname getpass memset select socket strchr strdup strerror strstr])
+
+#AC_CONFIG_FILES([Makefile])
+AC_OUTPUT([Makefile html/Makefile ftplib.pc])
View
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: FTPLib
+Description: FTP client library
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lftp
+Cflags: -I${includedir}
View
@@ -0,0 +1,11 @@
+
+htmldir = $(datadir)/doc/@PACKAGE@
+
+html_DATA = FtpAccess.html FtpInit.html FtpPut.html FtpSysType.html \
+ FtpCDUp.html FtpLastResponse.html FtpPwd.html FtpWrite.html \
+ FtpChdir.html ftplib.html FtpQuit.html Makefile.am \
+ FtpClose.html FtpLogin.html FtpRead.html model.html \
+ FtpConnect.html FtpMkdir.html FtpRename.html qftp.html \
+ FtpDelete.html FtpModDate.html FtpRmdir.html FtpDir.html \
+ FtpNlst.html FtpSite.html FtpGet.html FtpOptions.html FtpSize.html
+
View
View
View
View
View

0 comments on commit a0e728a

Please sign in to comment.