Lines 87-93
Link Here
|
87 |
EOF |
87 |
EOF |
88 |
|
88 |
|
89 |
if [ x"$CC" = x ]; then |
89 |
if [ x"$CC" = x ]; then |
90 |
echo -n 'Looking for a C compiler... ' |
90 |
printf %s 'Looking for a C compiler... ' |
91 |
for TRY in egcs gcc g++ CC c++ cc; do |
91 |
for TRY in egcs gcc g++ CC c++ cc; do |
92 |
( |
92 |
( |
93 |
$TRY __conftest.c -o __conftest || exit 1; |
93 |
$TRY __conftest.c -o __conftest || exit 1; |
Lines 104-110
Link Here
|
104 |
fi |
104 |
fi |
105 |
echo "$CC" |
105 |
echo "$CC" |
106 |
else |
106 |
else |
107 |
echo -n 'Checking if C compiler works... ' |
107 |
printf %s 'Checking if C compiler works... ' |
108 |
if ( |
108 |
if ( |
109 |
$CC __conftest.c -o __conftest || exit 1 |
109 |
$CC __conftest.c -o __conftest || exit 1 |
110 |
./__conftest || exit 1 |
110 |
./__conftest || exit 1 |
Lines 118-124
Link Here
|
118 |
fi |
118 |
fi |
119 |
fi |
119 |
fi |
120 |
|
120 |
|
121 |
echo -n "Checking if $CC accepts gcc warnings... " |
121 |
printf %s "Checking if $CC accepts gcc warnings... " |
122 |
if ( |
122 |
if ( |
123 |
$CC $WARNINGS __conftest.c -o __conftest || exit 1 |
123 |
$CC $WARNINGS __conftest.c -o __conftest || exit 1 |
124 |
) >/dev/null 2>&1; then |
124 |
) >/dev/null 2>&1; then |
Lines 129-135
Link Here
|
129 |
fi |
129 |
fi |
130 |
|
130 |
|
131 |
if [ x$DEBUG = x ]; then |
131 |
if [ x$DEBUG = x ]; then |
132 |
echo -n "Checking if $CC accepts -O2... " |
132 |
printf %s "Checking if $CC accepts -O2... " |
133 |
if ( |
133 |
if ( |
134 |
$CC -O2 __conftest.c -o __conftest |
134 |
$CC -O2 __conftest.c -o __conftest |
135 |
) >/dev/null 2>&1; then |
135 |
) >/dev/null 2>&1; then |
Lines 137-143
Link Here
|
137 |
CFLAGS="$CFLAGS -O2" |
137 |
CFLAGS="$CFLAGS -O2" |
138 |
else |
138 |
else |
139 |
echo 'no' |
139 |
echo 'no' |
140 |
echo -n "Checking if $CC accepts -O... " |
140 |
printf %s "Checking if $CC accepts -O... " |
141 |
if ( |
141 |
if ( |
142 |
$CC -O __conftest.c -o __conftest |
142 |
$CC -O __conftest.c -o __conftest |
143 |
) >/dev/null 2>&1; then |
143 |
) >/dev/null 2>&1; then |
Lines 149-155
Link Here
|
149 |
fi |
149 |
fi |
150 |
|
150 |
|
151 |
else |
151 |
else |
152 |
echo -n "Checking if $CC accepts -g... " |
152 |
printf %s "Checking if $CC accepts -g... " |
153 |
if ( |
153 |
if ( |
154 |
$CC -g __conftest.c -o __conftest |
154 |
$CC -g __conftest.c -o __conftest |
155 |
) >/dev/null 2>&1; then |
155 |
) >/dev/null 2>&1; then |
Lines 168-174
Link Here
|
168 |
|
168 |
|
169 |
################################################## |
169 |
################################################## |
170 |
|
170 |
|
171 |
echo -n 'Checking for BSD signal semantics... ' |
171 |
printf %s 'Checking for BSD signal semantics... ' |
172 |
cat <<EOF >__conftest.c |
172 |
cat <<EOF >__conftest.c |
173 |
#include <unistd.h> |
173 |
#include <unistd.h> |
174 |
#include <signal.h> |
174 |
#include <signal.h> |
Lines 208-214
Link Here
|
208 |
|
208 |
|
209 |
################################################## |
209 |
################################################## |
210 |
|
210 |
|
211 |
echo -n 'Checking for socklen_t... ' |
211 |
printf %s 'Checking for socklen_t... ' |
212 |
cat <<EOF >__conftest.c |
212 |
cat <<EOF >__conftest.c |
213 |
#include <sys/types.h> |
213 |
#include <sys/types.h> |
214 |
#include <sys/socket.h> |
214 |
#include <sys/socket.h> |
Lines 249-255
Link Here
|
249 |
|
249 |
|
250 |
################################################## |
250 |
################################################## |
251 |
|
251 |
|
252 |
echo -n 'Checking for snprintf declaration... ' |
252 |
printf %s 'Checking for snprintf declaration... ' |
253 |
cat <<EOF >__conftest.c |
253 |
cat <<EOF >__conftest.c |
254 |
#include <stdio.h> |
254 |
#include <stdio.h> |
255 |
int main() { |
255 |
int main() { |
Lines 277-283
Link Here
|
277 |
fi |
277 |
fi |
278 |
rm -f __conftest* |
278 |
rm -f __conftest* |
279 |
|
279 |
|
280 |
echo -n 'Checking for snprintf implementation... ' |
280 |
printf %s 'Checking for snprintf implementation... ' |
281 |
cat <<EOF >__conftest.c |
281 |
cat <<EOF >__conftest.c |
282 |
#include <stdio.h> |
282 |
#include <stdio.h> |
283 |
#include <string.h> |
283 |
#include <string.h> |
Lines 333-339
Link Here
|
333 |
|
333 |
|
334 |
echo 'Generating MCONFIG...' |
334 |
echo 'Generating MCONFIG...' |
335 |
( |
335 |
( |
336 |
echo -n '# Generated by configure (confgen version 2) on ' |
336 |
printf %s '# Generated by configure (confgen version 2) on ' |
337 |
date |
337 |
date |
338 |
echo '#' |
338 |
echo '#' |
339 |
echo |
339 |
echo |