mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Separate the checks for building dirent.c and fnmatch.c.
ps3's libc has opendir and friends, but not fnmatch.
This commit is contained in:
parent
5613b272da
commit
ee27c49e70
2 changed files with 22 additions and 2 deletions
|
@ -59,6 +59,17 @@ AC_TRY_LINK(
|
|||
)
|
||||
AM_CONDITIONAL(BUILD_FNMATCH, test "x$BUILD_FNMATCH" = "xyes")
|
||||
|
||||
AC_MSG_CHECKING(for opendir)
|
||||
AC_TRY_LINK(
|
||||
[],
|
||||
[opendir();],
|
||||
BUILD_DIRENT=no
|
||||
AC_MSG_RESULT(yes),
|
||||
BUILD_DIRENT=yes
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
AM_CONDITIONAL(BUILD_DIRENT, test "x$BUILD_DIRENT" = "xyes")
|
||||
|
||||
AC_MSG_CHECKING(for getopt_long)
|
||||
AC_TRY_LINK(
|
||||
[],
|
||||
|
|
|
@ -23,8 +23,16 @@ noinst_LTLIBRARIES= $(asm)
|
|||
libasm_la_SOURCES= math.S sys_ia32.S
|
||||
|
||||
|
||||
fnmatch_src= fnmatch.c dirent.c
|
||||
dirent_src= dirent.c
|
||||
fnmatch_src= fnmatch.c
|
||||
getopt_src= getopt.c getopt1.c
|
||||
|
||||
if BUILD_DIRENT
|
||||
dirent= $(dirent_src)
|
||||
else
|
||||
dirent=
|
||||
endif
|
||||
|
||||
if BUILD_FNMATCH
|
||||
fnmatch= $(fnmatch_src)
|
||||
else
|
||||
|
@ -45,6 +53,7 @@ libQFutil_la_SOURCES= \
|
|||
fendian.c hash.c idparse.c info.c link.c llist.c \
|
||||
mathlib.c mdfour.c msg.c pakfile.c plugin.c qargs.c qendian.c \
|
||||
qfplist.c quakefs.c quakeio.c riff.c script.c sizebuf.c string.c sys.c \
|
||||
va.c ver_check.c vrect.c wad.c wadfile.c zone.c $(fnmatch) $(getopt)
|
||||
va.c ver_check.c vrect.c wad.c wadfile.c zone.c $(dirent) $(fnmatch) \
|
||||
$(getopt)
|
||||
|
||||
EXTRA_DIST= $(fnmatch_src) $(getopt_src)
|
||||
|
|
Loading…
Reference in a new issue