File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / sntp / libopts / m4 / liboptschk.m4
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 2 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

# liboptschk.m4 serial 2 (autogen - 5.11.4)
dnl Copyright (c) 2005-2011 by Bruce Korb - all rights reserved
dnl
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl
dnl Time-stamp:        "2010-12-07 12:57:56 bkorb"
dnl
AC_DEFUN([ag_FIND_LIBOPTS],
  [if test "X${ac_cv_header_autoopts_options_h}" = Xno
  then :
  else
    f=`autoopts-config cflags` 2>/dev/null
    if test X"${f}" = X
    then
      :
    else
      AC_DEFINE([HAVE_LIBOPTS],[1],[define if we can find libopts])
      CFLAGS="${CFLAGS} ${f}"
      ao_CFLAGS="${f}"
      AC_SUBST(ao_CFLAGS)

      f=`autoopts-config ldflags` 2>/dev/null
      LIBS="${LIBS} ${f}"
      ao_LIBS="${f}"
      AC_SUBST(ao_LIBS)
    fi
  fi])

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>