Lines 15-22
Link Here
|
15 |
dnl Mingw, because it doesnt have a standard file tree. Maybe if ming do this |
15 |
dnl Mingw, because it doesnt have a standard file tree. Maybe if ming do this |
16 |
dnl else do -I/usr/include. Or some shit. You figure it out. |
16 |
dnl else do -I/usr/include. Or some shit. You figure it out. |
17 |
|
17 |
|
18 |
LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/lib" |
|
|
19 |
|
20 |
dnl -- Same thing here. |
18 |
dnl -- Same thing here. |
21 |
|
19 |
|
22 |
AC_CANONICAL_SYSTEM |
20 |
AC_CANONICAL_SYSTEM |
Lines 84-90
Link Here
|
84 |
CFLAGS="$CFLAGS -I$opengl_prefix/include" |
82 |
CFLAGS="$CFLAGS -I$opengl_prefix/include" |
85 |
LDFLAGS-"$LDFLAGS -L$opengl_prefix/lib" |
83 |
LDFLAGS-"$LDFLAGS -L$opengl_prefix/lib" |
86 |
fi |
84 |
fi |
|
|
85 |
if test x$x_libraries != x; then |
87 |
LDFLAGS="$LDFLAGS -L$x_libraries" |
86 |
LDFLAGS="$LDFLAGS -L$x_libraries" |
|
|
87 |
fi |
88 |
AC_CHECK_LIB(GL, glGetError,found_opengl="yes",,) |
88 |
AC_CHECK_LIB(GL, glGetError,found_opengl="yes",,) |
89 |
if test x$found_opengl = xyes; then |
89 |
if test x$found_opengl = xyes; then |
90 |
echo checking for OpenGL... yes |
90 |
echo checking for OpenGL... yes |
Lines 112-151
Link Here
|
112 |
dnl It is actually easier to debug zsnes with no optimization |
112 |
dnl It is actually easier to debug zsnes with no optimization |
113 |
dnl enabled. |
113 |
dnl enabled. |
114 |
|
114 |
|
115 |
CFLAGS="$CFLAGS -DDEBUG -O0 -fno-omit-frame-pointer -ggdb3" |
115 |
CFLAGS="$CFLAGS -DDEBUG -fno-omit-frame-pointer -ggdb3" |
116 |
NFLAGS="$NFLAGS -DDEBUG -g -s -O1" dnl -O0 doesnt work |
116 |
NFLAGS="$NFLAGS -DDEBUG -g -s -O1" dnl -O0 doesnt work |
117 |
ZSNESEXE="zsnesd" |
117 |
ZSNESEXE="zsnesd" |
118 |
else |
118 |
else |
119 |
AC_MSG_RESULT(no) |
119 |
AC_MSG_RESULT(no) |
120 |
|
120 |
|
121 |
CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s" |
|
|
122 |
NFLAGS="$NFLAGS -O1" |
123 |
ZSNESEXE="zsnes" |
121 |
ZSNESEXE="zsnes" |
124 |
fi |
|
|
125 |
|
122 |
|
126 |
AC_MSG_CHECKING(which processor class to optimize for) |
123 |
AC_ARG_ENABLE(release, [ --enable-release Build ultra-optimized binary (zsnes) ],release=$enableval) |
127 |
if test x$debug != xyes; then |
124 |
AC_MSG_CHECKING(if you want crazy optimizations) |
128 |
case "$target" in |
125 |
|
129 |
i486-*-*) |
126 |
if test x$release = xyes; then |
130 |
CFLAGS="$CFLAGS -march=i486" |
127 |
AC_MSG_RESULT(yes) |
131 |
AC_MSG_RESULT(486) |
128 |
NFLAGS="$NFLAGS -O99999999" |
132 |
;; |
129 |
else |
133 |
i586-*-*) |
130 |
AC_MSG_RESULT(no) |
134 |
CFLAGS="$CFLAGS -march=pentium" |
131 |
NFLAGS="$NFLAGS -O1" |
135 |
AC_MSG_RESULT(586) |
132 |
fi |
136 |
;; |
133 |
|
137 |
i686-*-*) |
|
|
138 |
CFLAGS="$CFLAGS -march=pentiumpro" |
139 |
dnl CFLAGS="$CFLAGS -march=pentium3 -mmmx -msse -mfpmath=sse,387" |
140 |
AC_MSG_RESULT(686) |
141 |
;; |
142 |
*) |
143 |
AC_MSG_RESULT(386) |
144 |
AC_MSG_WARN(*** This is probably not what you want use --target) |
145 |
;; |
146 |
esac |
147 |
else |
148 |
AC_MSG_RESULT(no optimization because debug enabled) |
149 |
fi |
134 |
fi |
150 |
|
135 |
|
151 |
dnl Checks for header files. |
136 |
dnl Checks for header files. |