Ignore:
Timestamp:
Feb 29, 2008, 11:29:08 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Don't use mygetopt.c in img2txt if the system has getopt_long.
  • Fix invalid pointer/int cast (Closes #39).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2144 r2248  
    9292AC_CHECK_FUNCS(usleep gettimeofday)
    9393
     94ac_cv_have_getopt_long="no"
    9495AC_CHECK_FUNCS(getopt_long,
    95  [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
     96 [ac_cv_have_getopt_long="yes"],
    9697 [AC_CHECK_LIB(gnugetopt, getopt_long,
    97    [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     98   [ac_cv_have_getopt_long="yes"
    9899    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
     100if test "$ac_cv_have_getopt_long" != "no"; then
     101  AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     102fi
     103AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
    99104AC_SUBST(GETOPT_LIBS)
    100105
Note: See TracChangeset for help on using the changeset viewer.