X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=configure.in;h=145ea610bf11167d6aad2f1b4928f2f49b669587;hp=7071cacae60b09bac17761805914ea4148d6ff79;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b diff --git a/configure.in b/configure.in index 7071caca..145ea610 100644 --- a/configure.in +++ b/configure.in @@ -535,6 +535,20 @@ if test $with_xshm = yes; then AC_CHECK_X_HEADER(sys/shm.h, [have_xshm=yes]) fi + # AIX is pathological, as usual: apparently it's normal for the Xshm headers + # to exist, but the library code to not exist. And even better, the library + # code is in its own library: libXextSam.a. So, if we're on AIX, and that + # lib doesn't exist, give up. + # + case "$host" in + *-aix*) + have_xshm=no + AC_CHECK_X_LIB(XextSam, XShmQueryExtension, + [have_xshm=yes; SAVER_LIBS="$SAVER_LIBS -lXextSam"], + [], -lX11 -lXext -lm) + ;; + esac + # if that succeeded, then we've really got it. if test $have_xshm = yes; then AC_DEFINE(HAVE_XSHM_EXTENSION)