test/acinclude.m4
changeset 170 9427fb48592a
parent 1 cf2af46e9e2a
child 172 37e3ca9254c7
equal deleted inserted replaced
169:8039a5b760b9 170:9427fb48592a
    56 dnl
    56 dnl
    57 dnl Now check if the installed SDL is sufficiently new. (Also sanity
    57 dnl Now check if the installed SDL is sufficiently new. (Also sanity
    58 dnl checks the results of sdl-config to some extent
    58 dnl checks the results of sdl-config to some extent
    59 dnl
    59 dnl
    60       rm -f conf.sdltest
    60       rm -f conf.sdltest
       
    61       case "$target" in
       
    62           *-*-darwin*)
       
    63             cp -r `$SDL_CONFIG --nib` .
       
    64             dnl create an Info.plist file, unless one exists
       
    65             if test -f Info.plist ; then
       
    66              :
       
    67             else
       
    68              cp `$SDL_CONFIG --plist` .
       
    69             fi
       
    70               ;;
       
    71       esac
    61       AC_TRY_RUN([
    72       AC_TRY_RUN([
    62 #include <stdio.h>
    73 #include <stdio.h>
    63 #include <stdlib.h>
    74 #include <stdlib.h>
    64 #include <string.h>
    75 #include <string.h>
    65 #include "SDL.h"
    76 #include "SDL.h"
   167      SDL_LIBS=""
   178      SDL_LIBS=""
   168      ifelse([$3], , :, [$3])
   179      ifelse([$3], , :, [$3])
   169   fi
   180   fi
   170   AC_SUBST(SDL_CFLAGS)
   181   AC_SUBST(SDL_CFLAGS)
   171   AC_SUBST(SDL_LIBS)
   182   AC_SUBST(SDL_LIBS)
       
   183       case "$target" in
       
   184           *-*-darwin*)
       
   185               SDL_APPLE_CREATOR="????"
       
   186               AC_SUBST(SDL_APPLE_CREATOR)
       
   187               ;;
       
   188       esac
   172   rm -f conf.sdltest
   189   rm -f conf.sdltest
   173 ])
   190 ])