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.4 by cebix, 2003-07-01T19:30:24Z vs.
Revision 1.5 by cebix, 2003-07-09T13:51:47Z

# Line 17 | Line 17 | if [[ x"$GXX" = "xyes" ]]; then
17    CFLAGS="$CFLAGS -fomit-frame-pointer -fno-exceptions"
18   fi
19  
20 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
21 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
22
23 HPUX_REV=0
24 if [[ x$UNAME_SYSTEM = "xHP-UX" ]]; then
25  HPUX_REV=`echo $UNAME_RELEASE | sed -e 's/[^.]*.[0B]*//' -e 's/\..*$//'`
26 fi
27
20   AC_AIX
21   AC_ISC_POSIX
22  
# Line 95 | Line 87 | else
87    LIBS="$LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
88   fi
89  
98 dnl Find out some things about the system
99 dnl  - whether we have GCC 2.7 or better.
100 dnl  - what CPU we have (to use some assembly hacks on the x86)
101
102 HAVEGCC27=n
103 HAVEI386=n
104
105 cat >conftest.cpp << EOF
106 #include <stdio.h>
107 int main()
108 {
109 #if defined(__GNUC__) && defined(__GNUC_MINOR__)
110 #if __GNUC__ > 2 || __GNUC_MINOR__ > 6
111 printf("GNU\n");
112 #endif
113 #endif
114 return 0;
115 }
116 EOF
117
118 $CXX conftest.cpp -c -o conftest.o
119 $CXX conftest.o -o conftest
120 ./conftest >conftest.file
121 if grep GNU conftest.file >/dev/null; then
122  HAVEGCC27=y
123  echo "Good news. Found GCC 2.7 or better."
124 elif [[ "$CC" = "gcc" ]]; then
125  echo "I suggest you upgrade to at least version 2.7 of GCC"
126 else
127  echo "Couldn't find GCC. Frodo may or may not compile and run correctly."
128 fi
129
130 cat >conftest.c << EOF
131 #include <stdio.h>
132 int main()
133 {
134 #ifdef __i386__
135 printf("386\n");
136 #endif
137 return 0;
138 }
139 EOF
140
141 $CC conftest.c -c -o conftest.o
142 $CC conftest.o -o conftest
143 ./conftest >conftest.file
144 if grep 386 conftest.file >/dev/null; then
145  HAVEI386=y
146  echo "You seem to be using a x86 CPU"
147 else
148  echo "No special hacks for your CPU, sorry."
149 fi
150
151 rm -f conftest*
152
153 if [[ "$HAVEGCC27" = "y" -a "$HAVEI386" = "y" ]]; then
154  CFLAGS="$CFLAGS -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
90   AC_SUBST(TARGET)
91   AC_SUBST(SET_MAKE)
92   AC_SUBST(top_srcdir)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines