X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=configure.in;h=15999cc999cb1be34581404f505b65b954e5be1d;hb=0784a8a882e7b98299fb6a90f0f9a7ebb322562b;hp=84c57c3ddb0806ace1354013689144cbe99ba6bd;hpb=9e7d4008772b44f816d4be6088db4b4a1b283be5;p=swftools.git diff --git a/configure.in b/configure.in index 84c57c3..15999cc 100644 --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ AC_ARG_ENABLE(lame, [ --disable-lame don't compile any L.A.M.E. mp3 encoding code in], DISABLE_LAME=true) PACKAGE=swftools -VERSION=0.8.0 +VERSION=2007-12-11-1640 # ------------------------------------------------------------------ @@ -60,6 +60,10 @@ else CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS" fi fi + +CFLAGS="-fPIC $CFLAGS" +CXXFLAGS="-fPIC $CFLAGS" + #OLDGCC=1 #if test "x$OLDGCC" '!=' "x";then # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic" @@ -208,7 +212,6 @@ if test "x$ZLIBMISSING" = "xtrue";then fi AC_CHECK_LIB(jpeg, jpeg_write_raw_data,, JPEGLIBMISSING=true) -AC_CHECK_LIB(t1, T1_LoadFont,, T1LIBMISSING=true) AC_CHECK_LIB(ungif, DGifOpen,, UNGIFMISSING=true) if test "$UNGIFMISSING";then UNGIFMISSING= @@ -226,7 +229,7 @@ dnl Checks for header files. AC_CONFIG_HEADER(config.h) AC_HEADER_DIRENT AC_HEADER_STDC - AC_CHECK_HEADERS(zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h) + AC_CHECK_HEADERS(zlib.h gif_lib.h io.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h) AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") @@ -243,24 +246,19 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T AC_STRUCT_TM AC_CHECK_TYPE(boolean,int) #needed for jpeglib - dnl AC_CHECK_TYPE(bool,char) - dnl AC_CHECK_TYPE(uchar,unsigned char) - dnl AC_CHECK_TYPE(schar,signed char) - dnl AC_CHECK_TYPE(word,unsigned short int) - dnl AC_CHECK_TYPE(sword,unsigned short int) - dnl AC_CHECK_TYPE(uint,unsigned long int) - -dnl Checks for library functions. AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time) -# ------------------------------------------------------------------ +AC_CHECK_SIZEOF([signed]) +AC_CHECK_SIZEOF([unsigned]) +AC_CHECK_SIZEOF([signed long]) +AC_CHECK_SIZEOF([unsigned long]) +AC_CHECK_SIZEOF([signed long long]) +AC_CHECK_SIZEOF([unsigned long long]) RFX_CHECK_FREETYPE #RFX_CHECK_FONTCONFIG -# ------------------------------------------------------------------ - lame_objects= lame_makefile= if test "x${DISABLE_LAME}" = "xtrue"; then @@ -343,9 +341,9 @@ if test "x$JPEGLIBMISSING" = "xtrue";then DISABLEJPEG2SWF=true PARTIAL=true fi -if test "x$T1LIBMISSING" = "xtrue";then - MISSINGLIBS="${MISSINGLIBS} t1lib" -fi +#if test "x$T1LIBMISSING" = "xtrue";then +# MISSINGLIBS="${MISSINGLIBS} t1lib" +#fi if test "x$UNGIFMISSING" = "xtrue";then DISABLEGIF2SWF=true MISSINGLIBS="${MISSINGLIBS} ungif" @@ -363,9 +361,9 @@ if test "x$HAVE_FREETYPE" '!=' "x1"; then MISSINGLIBS="${MISSINGLIBS} freetype" PARTIAL=true fi -if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then - MISSINGLIBS="${MISSINGLIBS} t1lib.h" -fi +#if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then +# MISSINGLIBS="${MISSINGLIBS} t1lib.h" +#fi if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then DISABLEGIF2SWF=true MISSINGLIBS="${MISSINGLIBS} gif_lib.h" @@ -452,9 +450,8 @@ fi # ------------------------------------------------------------------ if test -f "release.in"; then release_in="./release"; fi -FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile" - -dnl old autoconf +if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi +FILES="$release_in $wx_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/swf/Makefile" AC_OUTPUT(${FILES}) dnl new autoconf