ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/configure.ac
(Generate patch)

Comparing Frodo4/Src/configure.ac (file contents):
Revision 1.2 by cebix, 2003-07-01T18:10:55Z vs.
Revision 1.8 by cebix, 2004-01-13T19:52:49Z

# Line 10 | Line 10 | AC_PROG_CC
10   AC_PROG_CXX
11   AC_PROG_CPP
12   AC_PROG_MAKE_SET
13 + AC_PROG_INSTALL
14  
15 < dnl Don't want the default "-O2 -g" that autoconf uses for gcc.
15 > dnl -fomit-frame-pointer makes things faster
16   if [[ x"$GXX" = "xyes" ]]; then
17 <  CFLAGS="-O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format"
17 < fi
18 <
19 < UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
20 < UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
21 <
22 < HPUX_REV=0
23 < if [[ x$UNAME_SYSTEM = "xHP-UX" ]]; then
24 <  HPUX_REV=`echo $UNAME_RELEASE | sed -e 's/[^.]*.[0B]*//' -e 's/\..*$//'`
17 >  CFLAGS="$CFLAGS -fomit-frame-pointer -fno-exceptions"
18   fi
19  
20   AC_AIX
21   AC_ISC_POSIX
22  
23   dnl Checks for libraries.
31 HAVE_BEBOX=no
32 AC_CHECK_LIB(amiga, OpenLibrary, HAVE_AMIGA_LIB=yes, HAVE_AMIGA_LIB=no)
24   AC_CHECK_LIB(vga, vga_setmode, HAVE_SVGA_LIB=yes, HAVE_SVGA_LIB=no)
25   AM_PATH_SDL(1.2.0, HAVE_SDL=yes, HAVE_SDL=no)
26 + HAVE_GLADE=no
27 + PKG_CHECK_MODULES(GLADE, libglade-2.0 libgnomeui-2.0 >= 1.110.0, HAVE_GLADE=yes)
28 + if [[ $HAVE_GLADE = yes ]]; then
29 +  AC_DEFINE(HAVE_GLADE, 1, [Glade support is enabled])
30 + fi
31  
32   AC_PATH_XTRA
33  
34   AC_HEADER_DIRENT
35   AC_HEADER_STDC
36   AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h)
37 < AC_CHECK_HEADERS(sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h linux/joystick.h)
37 > AC_CHECK_HEADERS(sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h)
38  
39 + dnl Checks for types.
40   AC_CHECK_SIZEOF(char)
41   AC_CHECK_SIZEOF(short)
42   AC_CHECK_SIZEOF(int)
# Line 66 | Line 63 | AC_ARG_ENABLE(kbd-lang-de,[  --enable-kb
63   AC_ARG_ENABLE(kbd-lang-us,[  --enable-kbd-lang-us    Use american keyboard layout],[KBD_LANG=0],[])
64  
65   AC_MSG_CHECKING(which target to use)
66 < if [[ x"$HAVE_BEBOX" = "xyes" ]]; then
70 <  AC_MSG_RESULT([BeBox])
71 <  TARGET=be
72 < elif [[ x"$HAVE_AMIGA_LIB" = "xyes" ]]; then
73 <  AC_MSG_RESULT([AmigaOS])
74 <  TARGET=amigaos
75 < elif [[ x"$no_x" = "xyes" ]]; then
66 > if [[ x"$no_x" = "xyes" ]]; then
67    if [[ x"$HAVE_SVGA_LIB" = "xyes" ]]; then
68      AC_MSG_RESULT([SVGAlib])
69      TARGET=svgalib
# Line 94 | Line 85 | else
85    LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
86   fi
87  
97 dnl Find out some things about the system
98 dnl  - whether we have GCC 2.7 or better.
99 dnl  - what CPU we have (to use some assembly hacks on the x86)
100
101 HAVEGCC27=n
102 HAVEI386=n
103
104 cat >conftest.cpp << EOF
105 #include <stdio.h>
106 int main()
107 {
108 #if defined(__GNUC__) && defined(__GNUC_MINOR__)
109 #if __GNUC__ > 2 || __GNUC_MINOR__ > 6
110 printf("GNU\n");
111 #endif
112 #endif
113 return 0;
114 }
115 EOF
116
117 $CXX conftest.cpp -c -o conftest.o
118 $CXX conftest.o -o conftest
119 ./conftest >conftest.file
120 if grep GNU conftest.file >/dev/null; then
121  HAVEGCC27=y
122  echo "Good news. Found GCC 2.7 or better."
123 elif [[ "$CC" = "gcc" ]]; then
124  echo "I suggest you upgrade to at least version 2.7 of GCC"
125 else
126  echo "Couldn't find GCC. Frodo may or may not compile and run correctly."
127 fi
128
129 cat >conftest.c << EOF
130 #include <stdio.h>
131 int main()
132 {
133 #ifdef __i386__
134 printf("386\n");
135 #endif
136 return 0;
137 }
138 EOF
139
140 $CC conftest.c -c -o conftest.o
141 $CC conftest.o -o conftest
142 ./conftest >conftest.file
143 if grep 386 conftest.file >/dev/null; then
144  HAVEI386=y
145  echo "You seem to be using a x86 CPU"
146 else
147  echo "No special hacks for your CPU, sorry."
148 fi
149
150 rm -f conftest*
151
152 if [[ "$HAVEGCC27" = "y" -a "$HAVEI386" = "y" ]]; then
153 # Don't want strength-reduce on the i386, makes the code slower usually.
154  CFLAGS="$CFLAGS -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
155 elif [[ "$TARGET" = "amigaos" ]]; then
156  CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regargs(4)))\" "
157 else
158  CFLAGS="$CFLAGS -DREGPARAM="
159 fi
160
161 CC=$CXX
162
88   AC_SUBST(TARGET)
89   AC_SUBST(SET_MAKE)
90   AC_SUBST(top_srcdir)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines