-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
97 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
chinadns | ||
*.cmake | ||
*.dSYM | ||
*.exp | ||
*.la | ||
*.lo | ||
*.log | ||
*.o | ||
*.plist | ||
*.scan | ||
*.sdf | ||
*.status | ||
*.tar.* | ||
*~ | ||
.DS_Store | ||
.deps | ||
.dirstamp | ||
.done | ||
.libs | ||
Build | ||
Makefile | ||
Makefile.in | ||
aclocal.m4 | ||
autom4te.cache | ||
build | ||
compile | ||
confdefs.h | ||
config.* | ||
configure | ||
depcomp | ||
android-toolchain | ||
install-sh | ||
libtool | ||
ltmain.sh | ||
m4/argz.m4 | ||
m4/libtool.m4 | ||
m4/ltoptions.m4 | ||
m4/ltsugar.m4 | ||
m4/ltversion.m4 | ||
m4/lt~obsolete.m4 | ||
src/chinadns | ||
missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.67]) | ||
AC_INIT([ChinaDNS-C], [1.0.1], [[email protected]]) | ||
AC_CONFIG_SRCDIR([src/chinadns.c]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
AM_INIT_AUTOMAKE([foreign -Wall]) | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
AC_PROG_INSTALL | ||
|
||
# Checks for libraries. | ||
# FIXME: Replace `main' with a function in `-lresolv': | ||
AC_CHECK_LIB([resolv], [main]) | ||
|
||
# Checks for header files. | ||
AC_HEADER_RESOLV | ||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h]) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
AC_TYPE_SIZE_T | ||
AC_TYPE_SSIZE_T | ||
AC_TYPE_UINT16_T | ||
|
||
# Checks for library functions. | ||
AC_FUNC_MALLOC | ||
AC_FUNC_REALLOC | ||
AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup]) | ||
|
||
AC_CONFIG_FILES([Makefile src/Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bin_PROGRAMS = chinadns | ||
|
||
chinadns_SOURCES = chinadns.c | ||
|
||
chinadns_LDADD = -lresolv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters