]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/libopts/m4/liboptschk.m4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / libopts / m4 / liboptschk.m4
1 # liboptschk.m4 serial 2 (autogen - 5.11.4)
2 dnl Copyright (C) 2005-2015 by Bruce Korb - all rights reserved
3 dnl
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl
8 AC_DEFUN([ag_FIND_LIBOPTS],
9   [if test "X${ac_cv_header_autoopts_options_h}" = Xno
10   then :
11   else
12     f=`autoopts-config cflags` 2>/dev/null
13     if test X"${f}" = X
14     then
15       :
16     else
17       AC_DEFINE([HAVE_LIBOPTS],[1],[define if we can find libopts])
18       CFLAGS="${CFLAGS} ${f}"
19       ao_CFLAGS="${f}"
20       AC_SUBST(ao_CFLAGS)
21
22       f=`autoopts-config ldflags` 2>/dev/null
23       LIBS="${LIBS} ${f}"
24       ao_LIBS="${f}"
25       AC_SUBST(ao_LIBS)
26     fi
27   fi])