X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=b63103eaa697a25822d7a481b8629991af77b8e9;hb=cef8e846eb37daa0a03cd57b187c624d3f7d1494;hp=a79960700aeb0fa44ebdcd20da0452fd296e75a4;hpb=b1570730174c0efe6431e8b032c5d408c7367a21;p=fips diff --git a/configure b/configure index a799607..b63103e 100755 --- a/configure +++ b/configure @@ -192,13 +192,58 @@ EOF errors=0 +printf "Checking for pkg-config... " if pkg-config --version > /dev/null 2>&1; then - have_pkg_config=1 + printf "Yes.\n" else - have_pkg_config=0 + printf "No.\n" + cat < minimal.c +if ${CC} -o minimal minimal.c > /dev/null 2>&1 +then + printf "Yes.\n" +else + printf "No.\n" + cat <\nint main(void){return 0;}\n" > glx-minimal.c if ${CC} -o glx-minimal glx-minimal.c ${gl_cflags} > /dev/null 2>&1 @@ -263,7 +308,7 @@ else fi rm -f glx-minimal glx-minimal.c -printf " Checking for GL/egl.h... " +printf " Checking for GL/egl.h... " have_egl=No if pkg-config --exists egl; then printf "Yes.\n" @@ -332,26 +377,6 @@ Or on Fedora and similar systems: On other systems, similar commands can be used, but the details of the package names may be different. -EOF - if [ $have_pkg_config -eq 0 ]; then -cat <