1
0
mirror of https://github.com/nu774/fdkaac.git synced 2024-12-27 07:42:39 +01:00

more tweak on configure.ac and Makefile.am (take care of getopt_long)

This commit is contained in:
nu774 2013-01-06 14:07:01 +09:00
parent 7222b0b5ac
commit d5a9697e47
3 changed files with 10 additions and 2 deletions

View File

@ -24,6 +24,12 @@ if FDK_PLATFORM_WIN32
src/compat_win32.c
endif
if FDK_NO_GETOPT_LONG
fdkaac_SOURCES += \
missings/getopt.c
AM_CPPFLAGS = -Imissings
endif
EXTRA_DIST = \
src/*.h \
missings/*.c \

View File

@ -12,7 +12,7 @@ AM_INIT_AUTOMAKE
AC_PROG_CC
AM_PROG_CC_C_O
AC_CHECK_HEADERS([getopt.h sys/time.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([localcharset.h langinfo.h endian.h byteswap.h])
AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
AC_MSG_ERROR([libfdk-aac is required]))
@ -33,6 +33,8 @@ AC_CHECK_TYPES([ptrdiff_t])
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
AC_CHECK_FUNCS([gettimeofday nl_langinfo strdup])
AC_CHECK_FUNC(getopt_long)
AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
AC_SEARCH_LIBS([aacEncOpen],[fdk-aac])
AC_CANONICAL_HOST

View File

@ -1,4 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
const char *fdkaac_version = "0.0.3";
const char *fdkaac_version = "0.0.4";
#endif