AC_INIT(plugger.c) AC_PROG_CC() AC_PROG_INSTALL() AC_PROG_MAKE_SET() AC_PATH_XTRA() LD=$CC case "`uname -a`" in Linux*) XCFLAGS=-fPIC XLDFLAGS=-shared ;; IRIX*) XCFLAGS=-fpic LD=ld XLDFLAGS='-shared -n32' ;; AIX*) XCFLAGS=-fpic LD=ld XLDFLAGS='-G -bexpall' ;; HP-UX*) LD=ld if test "$GCC" = "yes"; then XCFLAGS=-fpic XLDFLAGS=-b else XCFLAGS='-Aa +z' XLDFLAGS='-b +e NP_GetValue +e NP_Initialize +e NP_Shutdown +e NP_GetMIMEDescription' fi ;; SunOS*) XLIBS='-lX11 -lsocket -lnsl' LD=ld XLDFLAGS=-G if test "$GCC" = "yes"; then XCFLAGS=-fpic fi ;; OSF1*) LD=ld XLDFLAGS='-expect_unresolved "*" -shared -msym -O3' ;; FreeBSD) case "`file /bin/ls`" in *ELF*) XCFLAGS=-fpic XLDFLAGS=-shared ;; *) XCFLAGS='-fpic -aout' XLDFLAGS='-shared -aout' ;; esac ;; *) AC_MSG_WARN([OS not recognized, providing some generic settings!]) XCFLAGS=-fpic XLDFLAGS=-shared ;; esac if test "$GCC" = "yes"; then XLIBS="$XLIBS -R$x_libraries" fi AC_CHECK_LIB(dl,atexit) AC_SUBST(XCFLAGS) AC_SUBST(XLDFLAGS) AC_SUBST(LD) if test "x${x_includes-}" = x; then AC_MSG_ERROR(Unable to find X11 libraries) fi AC_SUBST(x_includes) AC_SUBST(x_libraries) AC_OUTPUT(Makefile)