]> git.cworth.org Git - fips/blobdiff - configure
configure: Fix configure check to look for egl.h in the correct directory
[fips] / configure
index 3a6a597fabdc05a7d2a4e3856297c20ce328917f..ef8aed015e7080a38512a4c229ba5eebd7cef869 100755 (executable)
--- a/configure
+++ b/configure
@@ -308,14 +308,14 @@ else
 fi
 rm -f glx-minimal glx-minimal.c
 
-printf "       Checking for GL/egl.h... "
+printf "       Checking for EGL/egl.h... "
 have_egl=No
 if pkg-config --exists egl; then
     printf "Yes.\n"
     have_egl=Yes
     egl_cflags=$(pkg-config --cflags egl)
 else
-    printf "#include <GL/egl.h>\nint main(void){return 0;}\n" > egl-minimal.c
+    printf "#include <EGL/egl.h>\nint main(void){return 0;}\n" > egl-minimal.c
     if ${CC} -o egl-minimal egl-minimal.c ${gl_cflags} > /dev/null 2>&1
     then
        printf "Yes.\n"
@@ -540,10 +540,10 @@ AS_NEEDED_LDFLAGS = ${as_needed_ldflags}
 
 # Flags needed to compile the fips binary
 FIPS_CFLAGS = \$(WARN_CFLAGS) \$(TALLOC_CFLAGS) \$(LIBELF_CFLAGS)
-FIPS_LDFLAGS = \$(WARN_CFLAGS) \$(TALLOC_LDFLAGS) \$(LIBELF_LDFLAGS)
+FIPS_LDFLAGS = \$(TALLOC_LDFLAGS) \$(LIBELF_LDFLAGS)
 
 # Flags needed to compile the libfips libraries
-LIBFIPS_CFLAGS = \$(GL_CFLAGS) \$(EGL_CFLAGS)
+LIBFIPS_CFLAGS = \$(WARN_CFLAGS) \$(GL_CFLAGS) \$(EGL_CFLAGS)
 LIBFIPS_LDFLAGS =
 EOF