Просмотр исходного кода

* deactivated OLE loader and short-lived DeVIL stuff.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@440 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 20 лет назад
Родитель
Сommit
a6f00a050a
2 измененных файлов: 26 добавлений и 13 удалений
  1. +14
    -7
      configure.ac
  2. +12
    -6
      src/Makefile.am

+ 14
- 7
configure.ac Просмотреть файл

@@ -20,12 +20,19 @@ AC_TYPE_SIZE_T

AC_CHECK_FUNCS(getopt_long)

# Use DevIL?
#AC_CHECK_HEADERS(IL/il.h,
# [ac_cv_my_have_il="yes"],
# [ac_cv_my_have_il="no"])
#CPPFLAGS="${save_CPPFLAGS}"
#AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes")

# Use Windows?
AC_CHECK_HEADERS(olectl.h,
[ac_cv_my_have_ole="yes"],
[ac_cv_my_have_ole="no"])
CPPFLAGS="${save_CPPFLAGS}"
AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")
#AC_CHECK_HEADERS(olectl.h,
# [ac_cv_my_have_ole="yes"],
# [ac_cv_my_have_ole="no"])
#CPPFLAGS="${save_CPPFLAGS}"
#AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")

# Use SDL?
ac_cv_my_have_sdl="no"
@@ -66,8 +73,8 @@ AC_CHECK_HEADERS(Imlib2.h,
CPPFLAGS="${save_CPPFLAGS}"
AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")

if test "${ac_cv_my_have_sdl}" = "yes" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
AC_MSG_ERROR([[cannot find SDL_Image, Imlib2 or OpenCV, please install one of them]])
if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
fi

AC_OUTPUT([


+ 12
- 6
src/Makefile.am Просмотреть файл

@@ -18,11 +18,16 @@ pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6
pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS)
pwntcha_LDADD = $(ADDITIONAL_LDADD)

if USE_OLE
ADDITIONAL_CFLAGS =
ADDITIONAL_LDFLAGS =
ADDITIONAL_LDADD = -luuid -loleaut32 -lole32 -lgdi32
else
#if USE_DEVIL
#ADDITIONAL_CFLAGS =
#ADDITIONAL_LDFLAGS =
#ADDITIONAL_LDADD = -lDevIL
#else
#if USE_OLE
#ADDITIONAL_CFLAGS =
#ADDITIONAL_LDFLAGS =
#ADDITIONAL_LDADD = -luuid -loleaut32 -lole32 -lgdi32
#else
if USE_SDL
ADDITIONAL_CFLAGS = `sdl-config --cflags`
ADDITIONAL_LDFLAGS = `sdl-config --libs` -lSDL_image
@@ -44,5 +49,6 @@ ADDITIONAL_LDADD =
endif
endif
endif
endif
#endif
#endif


Загрузка…
Отмена
Сохранить