Ignore:
Timestamp:
Feb 1, 2007, 11:33:07 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Reimplemented getopt_long. We use our replacement even if simple getopt is available on the operating system.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1731 r1733  
    5858AC_DEFINE_UNQUOTED(RECV_T, $ac_v_recv_t, [Define to the recv() return type])
    5959
     60ac_cv_have_getopt_long="no"
    6061AC_CHECK_FUNCS(getopt_long,
    61  [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
     62 [ac_cv_have_getopt_long="yes"],
    6263 [AC_CHECK_LIB(gnugetopt, getopt_long,
    63    [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     64   [ac_cv_have_getopt_long="yes"
    6465    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
     66if test "$ac_cv_have_getopt_long" != "no"; then
     67  AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     68fi
     69AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
    6570AC_SUBST(GETOPT_LIBS)
    6671
Note: See TracChangeset for help on using the changeset viewer.