1 Star 1 Fork 0

YuYunSong/xbill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
configure.in 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
yunsong yu 提交于 2022-04-02 10:07 . xbill2.1
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Bucket.h)
AC_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_YACC
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LEX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_CXX
dnl Checks for header files.
AC_PATH_XTRA
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_ARG_ENABLE(motif,
[ --enable-motif build with the Motif widget set])
if test "$enable_motif" != "no"; then
saved_cflags="$CFLAGS"
saved_libs="$LIBS"
CFLAGS="$CFLAGS $X_CFLAGS"
LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
AC_CHECK_LIB(Xm, XmGetPixmap, motif=yes, , -lXt -lX11)
if test "X$motif" = X"yes"; then
AC_DEFINE(USE_MOTIF)
WIDGET_LIBS="$WIDGET_LIBS -lXm"
if test "X$libxp" = X"yes"; then
WIDGET_LIBS="$WIDGET_LIBS -lXp -lXext"
fi
WIDGET_OBJS="$WIDGET_OBJS x11-motif.o"
fi
CFLAGS=$saved_cflags
LIBS=$saved_libs
fi
AC_ARG_ENABLE(athena,
[ --enable-athena build with the Athena widget set])
if test "$enable_athena" != "no"; then
saved_cflags="$CFLAGS"
saved_libs="$LIBS"
CFLAGS="$CFLAGS $X_CFLAGS"
LIBS="$LIBS $X_LIBS $X_PRE_LIBS"
AC_CHECK_LIB(Xaw3d, XawInitializeWidgetSet,
[athena=yes athena3d=yes], ,
-lXmu -lXt -lX11)
if test "X$athena" != X"yes"; then
AC_CHECK_LIB(Xaw, XawInitializeWidgetSet, athena=yes, ,
-lXmu -lXt -lX11)
fi
if test "X$athena" = X"yes"; then
AC_DEFINE(USE_ATHENA)
if test "X$athena3d" = X"yes"; then
xawlib=-lXaw3d
else
xawlib=-lXaw
fi
WIDGET_LIBS="$WIDGET_LIBS $xawlib -lXmu"
WIDGET_OBJS="$WIDGET_OBJS x11-athena.o"
fi
CFLAGS=$saved_cflags
LIBS=$saved_libs
fi
if test "X$motif" = X"yes" -o "X$athena" = X"yes"; then
WIDGET_LIBS="$WIDGET_LIBS -lXt -lXpm -lX11"
WIDGET_OBJS="$WIDGET_OBJS x11.o"
AC_SUBST(WIDGET_LIBS)
AC_SUBST(WIDGET_OBJS)
fi
AC_ARG_ENABLE(gtk,
[ --enable-gtk build with the GTK widget set])
if test "$enable_gtk" != "no"; then
echo "enable_gtk"
AC_CHECK_PROG(GTKCONFIG, gtk-config, yes, no)
if test "X$GTKCONFIG" = X"yes"; then
AC_DEFINE(USE_GTK)
GTK_CFLAGS="`gtk-config --cflags`"
WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`"
WIDGET_OBJS="$WIDGET_OBJS gtk.o"
fi
fi
AC_SUBST(GTK_CFLAGS)
AC_OUTPUT(Makefile)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yunsongyu/xbill.git
git@gitee.com:yunsongyu/xbill.git
yunsongyu
xbill
xbill
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385