Changeset 3139 for libcaca/trunk


Ignore:
Timestamp:
Oct 29, 2008, 8:10:20 PM (12 years ago)
Author:
Sam Hocevar
Message:

Clean up configure.ac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r3045 r3139  
    112112    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
    113113if test "$ac_cv_have_getopt_long" != "no"; then
    114   AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     114  AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the ‘getopt_long’ function.)
    115115fi
    116116AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
     
    120120AC_TRY_COMPILE([#include <windows.h>],[Sleep(42);],
    121121 [AC_MSG_RESULT(yes)
    122   AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the `Sleep' function.])],
     122  AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the ‘Sleep’ function.])],
    123123 [AC_MSG_RESULT(no)])
    124124
    125125AC_MSG_CHECKING(for fsin/fcos)
    126 AC_TRY_COMPILE([],[double x; asm volatile("fsin\n\tfcos":"=t"(x):);],
     126AC_TRY_COMPILE([],[double x; asm volatile("fsin; fcos":"=t"(x):);],
    127127 [AC_MSG_RESULT(yes)
    128   AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' instructions.])],
     128  AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the ‘fsin’ and ‘fcos’ instructions.])],
    129129 [AC_MSG_RESULT(no)])
    130130
     
    132132AC_TRY_COMPILE([],[double x; asm volatile("fldln2; fldln2; fxch; fyl2x":"=t"(x):);],
    133133 [AC_MSG_RESULT(yes)
    134   AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating point instructions.])],
     134  AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the ‘fldln2’ and other floating point instructions.])],
    135135 [AC_MSG_RESULT(no)])
    136136
     
    182182    AC_DEFINE(USE_SLANG, 1, Define to 1 to activate the slang backend driver)
    183183    AC_CHECK_LIB(slang, SLsmg_utf8_enable,
    184      [AC_DEFINE(HAVE_SLSMG_UTF8_ENABLE, 1, Define to 1 if you have the `SLsmg_utf8_enable' function.)])
     184     [AC_DEFINE(HAVE_SLSMG_UTF8_ENABLE, 1, Define to 1 if you have the ‘SLsmg_utf8_enable’ function.)])
    185185    CPPFLAGS="${CPPFLAGS} -DOPTIMISE_SLANG_PALETTE=1"
    186186    CACA_LIBS="${CACA_LIBS} -lslang"
     
    215215   [AC_CHECK_HEADERS(GL/glut.h,
    216216     [AC_CHECK_LIB(glut, glutCloseFunc,
    217        [AC_DEFINE(HAVE_GLUTCLOSEFUNC, 1, Define to 1 if you have the `glutCloseFunc' function.)])
     217       [AC_DEFINE(HAVE_GLUTCLOSEFUNC, 1, Define to 1 if you have the ‘glutCloseFunc’ function.)])
    218218      AC_CHECK_LIB(glut, glutMainLoopEvent,
    219219       [ac_cv_my_have_gl="yes"])
    220220      AC_CHECK_LIB(glut, glutCheckLoop,
    221221       [ac_cv_my_have_gl="yes"
    222         AC_DEFINE(HAVE_GLUTCHECKLOOP, 1, Define to 1 if you have the `glutCheckLoop' function.)])])
     222        AC_DEFINE(HAVE_GLUTCHECKLOOP, 1, Define to 1 if you have the ‘glutCheckLoop’ function.)])])
    223223      break])
    224224  if test "${ac_cv_my_have_gl}" = "yes"; then
Note: See TracChangeset for help on using the changeset viewer.