Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
779a116f
Commit
779a116f
authored
Dec 16, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support building with legacy zlib versions that do not ship a pkg-config file.
parent
e92c2a87
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
nx-macros.m4
m4/nx-macros.m4
+18
-0
Imakefile
nx-X11/programs/Xserver/Imakefile
+1
-1
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+2
-2
Imakefile
nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile
+1
-1
configure.ac
nxcomp/configure.ac
+1
-1
No files found.
m4/nx-macros.m4
View file @
779a116f
...
@@ -424,3 +424,21 @@ else
...
@@ -424,3 +424,21 @@ else
the JPEG shared library and header files are installed.])
the JPEG shared library and header files are installed.])
fi
fi
]) # LIBJPEG_FALLBACK_CHECK
]) # LIBJPEG_FALLBACK_CHECK
AC_DEFUN([ZLIB_FALLBACK_CHECK],[
AC_MSG_CHECKING([for zlib shared libary file and headers])
AC_CHECK_LIB([z], [inflateEnd],
[have_zlib_lib=yes], [have_zlib_lib=no])
AC_CHECK_HEADERS([zlib.h],
[have_zlib_headers=yes], [have_zlib_headers=no])
if test x"$have_zlib_lib" = "xyes" && test x"$have_zlib_headers" = "xyes"; then
AC_MSG_RESULT([yes])
Z_CFLAGS=""
Z_LIBS="-lz"
else
AC_MSG_RESULT([no])
AC_MSG_FAILURE([Could not find zlib on your system, make sure
the zlib shared library and header files are installed.])
fi
]) # ZLIB_FALLBACK_CHECK
nx-X11/programs/Xserver/Imakefile
View file @
779a116f
...
@@ -292,7 +292,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
...
@@ -292,7 +292,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
XPMLIB = -lXpm
XPMLIB = -lXpm
XMLLIB = `pkg-config --libs libxml-2.0`
XMLLIB = `pkg-config --libs libxml-2.0`
PIXMANLIB = `pkg-config --libs pixman-1`
PIXMANLIB = `pkg-config --libs pixman-1`
ZLIB =
`pkg-config --libs zlib`
ZLIB =
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz")
PNGLIB = `pkg-config --libs libpng`
PNGLIB = `pkg-config --libs libpng`
JPEGLIB = -ljpeg
JPEGLIB = -ljpeg
...
...
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
779a116f
...
@@ -175,7 +175,7 @@ INCLUDES = \
...
@@ -175,7 +175,7 @@ INCLUDES = \
$(VFBINCLUDES) \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I zlib`
\
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz")
\
`pkg-config --cflags-only-I libpng` \
`pkg-config --cflags-only-I libpng` \
$(NULL)
$(NULL)
#else
#else
...
@@ -199,7 +199,7 @@ INCLUDES = \
...
@@ -199,7 +199,7 @@ INCLUDES = \
$(VFBINCLUDES) \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I zlib`
\
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz")
\
`pkg-config --cflags-only-I libpng` \
`pkg-config --cflags-only-I libpng` \
$(NULL)
$(NULL)
#endif
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile
View file @
779a116f
...
@@ -34,7 +34,7 @@ OBJS = \
...
@@ -34,7 +34,7 @@ OBJS = \
-I$(XBUILDINCDIR) \
-I$(XBUILDINCDIR) \
-I../../../../../lib/include/X11 \
-I../../../../../lib/include/X11 \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I zlib`
\
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz")
\
`pkg-config --cflags-only-I libpng` \
`pkg-config --cflags-only-I libpng` \
$(NULL)
$(NULL)
...
...
nxcomp/configure.ac
View file @
779a116f
...
@@ -40,7 +40,7 @@ m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
...
@@ -40,7 +40,7 @@ m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR],
PKG_CHECK_MODULES([JPEG], [libjpeg], [], [LIBJPEG_FALLBACK_CHECK])
PKG_CHECK_MODULES([JPEG], [libjpeg], [], [LIBJPEG_FALLBACK_CHECK])
PKG_CHECK_MODULES([PNG], [libpng])
PKG_CHECK_MODULES([PNG], [libpng])
PKG_CHECK_MODULES([Z], [zlib])
PKG_CHECK_MODULES([Z], [zlib]
, [], [ZLIB_FALLBACK_CHECK]
)
AC_LANG([C++])
AC_LANG([C++])
NX_COMPILER_BRAND
NX_COMPILER_BRAND
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment