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:
parent
7222b0b5ac
commit
d5a9697e47
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user