Commit 4e637084 authored by Marek Vavruša's avatar Marek Vavruša

autotools, stub files

parent e66ea935
......@@ -2,6 +2,21 @@
*.a
*.so
*.so.*
*.in
*.Plo
*.swp
.libs
autom4te.cache/*
config.*
configure
ar-lib
Makefile
libtool
missing
compile
depcomp
install-sh
stamp-h1
# CMake files
/CMakeCache.txt
......
marek.vavrusa@nic.cz
jan.vcelak@nic.cz
Copyright 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
NEWS
\ No newline at end of file
This diff is collapsed.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib
README.md
\ No newline at end of file
......@@ -2,9 +2,5 @@
## Compilation
mkdir _build
cd _build
cmake ..
./configure
make
Run cmake with '-DCMAKE_BUILD_TYPE=Debug' parameter to disable optimizations and enable asserts.
AC_PREREQ(2.60)
# Version/identifiers
m4_define([VERSION_MAJOR],[0])
m4_define([VERSION_MINOR],[0])
m4_define([VERSION_MICRO],[1])
AC_INIT(knot-resolver, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), knot-dns@lists.nic.cz, knot-resolver)
AM_INIT_AUTOMAKE([gnits subdir-objects dist-xz -Wall -Werror])
AM_SILENT_RULES([yes])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Set compiler compatibility flags
AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_CPP_WERROR
# Default compiler flags
CFLAGS="$CFLAGS -Wall -Werror=format-security"
# Checks for programs.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) # call AM_PROG_AR only if available
# Initialize libtool
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
LT_INIT
# Use pkg-config
PKG_PROG_PKG_CONFIG
# Check headers
AC_CHECK_HEADERS([stdlib.h],,, [AC_INCLUDES_DEFAULT])
# Search libraries
AC_SEARCH_LIBS([socket], [socket])
# Config files
AC_CONFIG_FILES([Makefile
lib/Makefile
])
# Output
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
Target: $host_os $host_cpu
Compiler: ${CC}
CFlags: ${CFLAGS} ${CPPFLAGS}
LDFlags: ${LDFLAGS}
Libs: ${LIBS}
Continue with 'make' command
])
SUBDIRS = .
lib_LTLIBRARIES = libknotresolve.la
libknotresolve_la_SOURCES = \
context.h \
context.c
#include "kgetdns.h"
void getdns_context_destroy(getdns_context *context)
{
}
#include <stdlib.h>
#include "kgetdns.h"
getdns_dict *getdns_context_get_api_information(getdns_context *context)
{
/*
* version_string (bindata)
* implementation string (bindata)
* resolver_type (int)
* all_context (dict)
*/
return NULL;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment