diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-01-22 15:54:41 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-01-22 15:54:41 -0800 |
commit | 43042c25b61593352f793ce328360e09eb9aada0 (patch) | |
tree | 34e0e82a4a2ce3fb1552827cfe4b2b00700cbada | |
parent | 3e9c9d61e403c80770ddd0d01180df3efacbafe1 (diff) |
Don't build Motif apps if <Xm/Print.h> isn't found
Fixes build on Solaris, which has Motif 2.1 without XPrint support
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 21ea522..4d5ca9e 100644 --- a/configure.ac +++ b/configure.ac @@ -54,14 +54,17 @@ if test x$build_motifapps = xyes ; then if [[ ! -z $motif_includes ]] ; then MOTIF_CFLAGS=-I$motif_includes fi + AC_CHECK_HEADER([Xm/Print.h], [], [build_motifapps=no]) +fi +if test x$build_motifapps = xyes ; then if [[ ! -z $motif_libs ]] ; then MOTIF_LIBS="-L$motif_libs -lXm" else MOTIF_LIBS="-lXm" fi else - echo motif library not found + echo Xprint-aware Motif library not found fi echo build: Build Motif Applications: $build_motifapps |