Try to fix linux for installations that don't have openssl includes.
This commit is contained in:
+1
-2
@@ -240,6 +240,7 @@
|
|||||||
#define GREPPATH "/bin/grep"
|
#define GREPPATH "/bin/grep"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NOCRASHREPORT
|
||||||
# ifndef CRASHREPORT
|
# ifndef CRASHREPORT
|
||||||
# ifdef MACOS
|
# ifdef MACOS
|
||||||
# define CRASHREPORT "/usr/bin/open"
|
# define CRASHREPORT "/usr/bin/open"
|
||||||
@@ -254,8 +255,6 @@
|
|||||||
# define CRASHREPORT /* builtin helper */
|
# define CRASHREPORT /* builtin helper */
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#ifdef MSDOS
|
|
||||||
# undef CRASHREPORT
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CRASHREPORT
|
#ifdef CRASHREPORT
|
||||||
|
|||||||
@@ -110,7 +110,13 @@ endif #HAVE_NCURSESW
|
|||||||
endif #MAKEFILE_SRC
|
endif #MAKEFILE_SRC
|
||||||
endif #USE_CURSESLIB
|
endif #USE_CURSESLIB
|
||||||
|
|
||||||
|
# autodetect missing openssl header needed for CRASHREPORT
|
||||||
|
CROK=$(shell ls /usr/include/openssl/md4.h 2>/dev/null | wc -l )
|
||||||
|
ifeq "$(CROK)" "1"
|
||||||
AUTOLIBS=$(shell (../util/makedefs --grep-defined CRASHREPORT && echo "-lcrypto" ) || true )
|
AUTOLIBS=$(shell (../util/makedefs --grep-defined CRASHREPORT && echo "-lcrypto" ) || true )
|
||||||
|
else
|
||||||
|
NHCFLAGS+=-DNOCRASHREPORT
|
||||||
|
endif
|
||||||
|
|
||||||
# NetHack sources control
|
# NetHack sources control
|
||||||
NHCFLAGS+=-DDLB
|
NHCFLAGS+=-DDLB
|
||||||
|
|||||||
Reference in New Issue
Block a user