Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
2c7e99b9
Commit
2c7e99b9
authored
May 22, 1999
by
Michael Graff
Browse files
for ptl2, don't tweak the incolude paths, use ptlgcc as CC instead
parent
4db368e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure
View file @
2c7e99b9
#! /bin/sh
# From configure.in Revision: 1.2
5
# From configure.in Revision: 1.2
6
...
...
@@ -766,9 +766,7 @@ fi
;;
no+yes
)
echo
"
$ac_t
""PTL2"
1>&6
pkg
=
"/usr/pkg/PTL"
LIBS
=
"-L/usr/pkg/lib -lPTL
$LIBS
"
STD_CINCLUDES
=
"-nostdinc -idirafter
$pkg
/include"
CC
=
ptlgcc
;;
*
)
{
echo
"configure: error: no thread library.
...
...
@@ -786,7 +784,7 @@ esac
# Extract the first word of "gcc", so it can be a program name with args.
set
dummy gcc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:7
90
: checking for
$ac_word
"
>
&5
echo
"configure:7
88
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -815,7 +813,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set
dummy cc
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:81
9
: checking for
$ac_word
"
>
&5
echo
"configure:81
7
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_CC
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -863,7 +861,7 @@ fi
fi
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works""...
$ac_c
"
1>&6
echo
"configure:86
7
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
echo
"configure:86
5
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) works"
>
&5
ac_ext
=
c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
...
...
@@ -873,11 +871,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
cross_compiling
=
$ac_cv_prog_cc_cross
cat
>
conftest.
$ac_ext
<<
EOF
#line 87
7
"configure"
#line 87
5
"configure"
#include "confdefs.h"
main(){return(0);}
EOF
if
{
(
eval echo
configure:8
81
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:8
79
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
ac_cv_prog_cc_works
=
yes
# If we can't run a trivial program, we are probably using a cross compiler.
if
(
./conftest
;
exit
)
2>/dev/null
;
then
...
...
@@ -897,12 +895,12 @@ if test $ac_cv_prog_cc_works = no; then
{
echo
"configure: error: installation or configuration problem: C compiler cannot create executables."
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler""...
$ac_c
"
1>&6
echo
"configure:
901
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"configure:
899
: checking whether the C compiler (
$CC
$CFLAGS
$LDFLAGS
) is a cross-compiler"
>
&5
echo
"
$ac_t
""
$ac_cv_prog_cc_cross
"
1>&6
cross_compiling
=
$ac_cv_prog_cc_cross
echo
$ac_n
"checking whether we are using GNU C""...
$ac_c
"
1>&6
echo
"configure:90
6
: checking whether we are using GNU C"
>
&5
echo
"configure:90
4
: checking whether we are using GNU C"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_gcc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -911,7 +909,7 @@ else
yes;
#endif
EOF
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:91
5
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep
yes
>
/dev/null 2>&1
;
then
if
{
ac_try
=
'${CC-cc} -E conftest.c'
;
{
(
eval echo
configure:91
3
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
;
}
| egrep
yes
>
/dev/null 2>&1
;
then
ac_cv_prog_gcc
=
yes
else
ac_cv_prog_gcc
=
no
...
...
@@ -926,7 +924,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
echo
$ac_n
"checking whether
${
CC
-cc
}
accepts -g""...
$ac_c
"
1>&6
echo
"configure:9
30
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
echo
"configure:9
28
: checking whether
${
CC
-cc
}
accepts -g"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_cc_g
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -955,7 +953,7 @@ fi
echo
$ac_n
"checking how to run the C preprocessor""...
$ac_c
"
1>&6
echo
"configure:95
9
: checking how to run the C preprocessor"
>
&5
echo
"configure:95
7
: checking how to run the C preprocessor"
>
&5
# On Suns, sometimes $CPP names a directory.
if
test
-n
"
$CPP
"
&&
test
-d
"
$CPP
"
;
then
CPP
=
...
...
@@ -970,13 +968,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat
>
conftest.
$ac_ext
<<
EOF
#line 97
4
"configure"
#line 97
2
"configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:98
0
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:9
7
8:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -987,13 +985,13 @@ else
rm
-rf
conftest
*
CPP
=
"
${
CC
-cc
}
-E -traditional-cpp"
cat
>
conftest.
$ac_ext
<<
EOF
#line 99
1
"configure"
#line 9
8
9 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:99
7
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:99
5
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
:
...
...
@@ -1016,12 +1014,12 @@ fi
echo
"
$ac_t
""
$CPP
"
1>&6
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:10
20
: checking for ANSI C header files"
>
&5
echo
"configure:10
18
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 102
5
"configure"
#line 102
3
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -1029,7 +1027,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:103
3
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:103
1
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1046,7 +1044,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 10
50
"configure"
#line 10
48
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -1064,7 +1062,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 106
8
"configure"
#line 106
6
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -1085,7 +1083,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 108
9
"configure"
#line 108
7
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -1096,7 +1094,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:1
100
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:1
098
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -1123,17 +1121,17 @@ for ac_hdr in fcntl.h sys/time.h unistd.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:112
7
: checking for
$ac_hdr
"
>
&5
echo
"configure:112
5
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 113
2
"configure"
#line 113
0
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:113
7
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:113
5
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -1161,12 +1159,12 @@ done
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:116
5
: checking for working const"
>
&5
echo
"configure:116
3
: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 11
70
"configure"
#line 11
68
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -1215,7 +1213,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:121
9
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:121
7
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -1236,21 +1234,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:12
40
: checking for inline"
>
&5
echo
"configure:12
38
: checking for inline"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_cv_c_inline
=
no
for
ac_kw
in
inline __inline__ __inline
;
do
cat
>
conftest.
$ac_ext
<<
EOF
#line 124
7
"configure"
#line 124
5
"configure"
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:125
4
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:125
2
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -1276,12 +1274,12 @@ EOF
esac
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:128
0
: checking for size_t"
>
&5
echo
"configure:12
7
8: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 128
5
"configure"
#line 128
3
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -1309,12 +1307,12 @@ EOF
fi
echo
$ac_n
"checking whether time.h and sys/time.h may both be included""...
$ac_c
"
1>&6
echo
"configure:131
3
: checking whether time.h and sys/time.h may both be included"
>
&5
echo
"configure:131
1
: checking whether time.h and sys/time.h may both be included"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_time
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 131
8
"configure"
#line 131
6
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
...
...
@@ -1323,7 +1321,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
if
{
(
eval echo
configure:132
7
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:132
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_header_time
=
yes
else
...
...
@@ -1345,7 +1343,7 @@ fi
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:134
9
: checking for pthread_create in -lpthread"
>
&5
echo
"configure:134
7
: checking for pthread_create in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1353,7 +1351,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 135
7
"configure"
#line 135
5
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1364,7 +1362,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:136
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:136
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1390,7 +1388,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for __pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:139
4
: checking for __pthread_create in -lpthread"
>
&5
echo
"configure:139
2
: checking for __pthread_create in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
__pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1398,7 +1396,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 140
2
"configure"
#line 140
0
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1409,7 +1407,7 @@ int main() {
__pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:141
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:141
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1437,7 +1435,7 @@ else
fi
echo
$ac_n
"checking for __pthread_create_system in -lpthread""...
$ac_c
"
1>&6
echo
"configure:14
41
: checking for __pthread_create_system in -lpthread"
>
&5
echo
"configure:14
39
: checking for __pthread_create_system in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
__pthread_create_system |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1445,7 +1443,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 144
9
"configure"
#line 144
7
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1456,7 +1454,7 @@ int main() {
__pthread_create_system()
; return 0; }
EOF
if
{
(
eval echo
configure:14
60
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:14
58
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1488,7 +1486,7 @@ fi
echo
$ac_n
"checking for sigwait in -lpthread""...
$ac_c
"
1>&6
echo
"configure:149
2
: checking for sigwait in -lpthread"
>
&5
echo
"configure:149
0
: checking for sigwait in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
sigwait |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1496,7 +1494,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
500
"configure"
#line 1
498
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1507,7 +1505,7 @@ int main() {
sigwait()
; return 0; }
EOF
if
{
(
eval echo
configure:15
11
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:15
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1529,7 +1527,7 @@ EOF
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for _Psigwait in -lpthread""...
$ac_c
"
1>&6
echo
"configure:153
3
: checking for _Psigwait in -lpthread"
>
&5
echo
"configure:153
1
: checking for _Psigwait in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
_Psigwait |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1537,7 +1535,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 15
41
"configure"
#line 15
39
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1548,7 +1546,7 @@ int main() {
_Psigwait()
; return 0; }
EOF
if
{
(
eval echo
configure:155
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:155
0
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1604,7 +1602,7 @@ case "$host" in
;;
*
)
echo
$ac_n
"checking for socket in -lsocket""...
$ac_c
"
1>&6
echo
"configure:160
8
: checking for socket in -lsocket"
>
&5
echo
"configure:160
6
: checking for socket in -lsocket"
>
&5
ac_lib_var
=
`
echo
socket
'_'
socket |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1612,7 +1610,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lsocket
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 161
6
"configure"
#line 161
4
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1623,7 +1621,7 @@ int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:162
7
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:162
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1651,7 +1649,7 @@ else
fi
echo
$ac_n
"checking for inet_ntoa in -lnsl""...
$ac_c
"
1>&6
echo
"configure:165
5
: checking for inet_ntoa in -lnsl"
>
&5
echo
"configure:165
3
: checking for inet_ntoa in -lnsl"
>
&5
ac_lib_var
=
`
echo
nsl
'_'
inet_ntoa |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1659,7 +1657,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnsl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 166
3
"configure"
#line 166
1
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1670,7 +1668,7 @@ int main() {
inet_ntoa()
; return 0; }
EOF
if
{
(
eval echo
configure:167
4
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:167
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1701,12 +1699,12 @@ fi
esac
echo
$ac_n
"checking for inet_ntop""...
$ac_c
"
1>&6
echo
"configure:170
5
: checking for inet_ntop"
>
&5
echo
"configure:170
3
: checking for inet_ntop"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_ntop
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 17
1
0 "configure"
#line 170
8
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_ntop(); below. */
...
...
@@ -1729,7 +1727,7 @@ inet_ntop();
; return 0; }
EOF
if
{
(
eval echo
configure:173
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:173
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_ntop=yes"
else
...
...
@@ -1756,12 +1754,12 @@ EOF
fi
echo
$ac_n
"checking for inet_pton""...
$ac_c
"
1>&6
echo
"configure:17
60
: checking for inet_pton"
>
&5
echo
"configure:17
58
: checking for inet_pton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_pton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 176
5
"configure"
#line 176
3
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); below. */
...
...
@@ -1784,7 +1782,7 @@ inet_pton();
; return 0; }
EOF
if
{
(
eval echo
configure:178
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:178
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_pton=yes"
else
...
...
@@ -1811,12 +1809,12 @@ EOF
fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:181
5
: checking for inet_aton"
>
&5
echo
"configure:181
3
: checking for inet_aton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 18
20
"configure"
#line 18
18
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -1839,7 +1837,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:184
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:184
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -1906,9 +1904,9 @@ esac
echo
$ac_n
"checking for sa_len in struct sockaddr""...
$ac_c
"
1>&6
echo
"configure:19
1
0: checking for sa_len in struct sockaddr"
>
&5
echo
"configure:190
8
: checking for sa_len in struct sockaddr"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 191
2
"configure"
#line 191
0
"configure"
#include "confdefs.h"
#include <sys/socket.h>
EOF
...
...
configure.in
View file @
2c7e99b9
...
...
@@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE.
AC_REVISION($Revision: 1.2
6
$)
AC_REVISION($Revision: 1.2
7
$)
AC_PREREQ(2.12)
...
...
@@ -105,9 +105,10 @@ case "$host" in
;;
no+yes)
AC_MSG_RESULT(PTL2)
pkg="/usr/pkg/PTL"
LIBS="-L/usr/pkg/lib -lPTL $LIBS"
STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
dnl pkg="/usr/pkg/PTL"
dnl LIBS="-L/usr/pkg/lib -lPTL $LIBS"
dnl STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
CC=ptlgcc
;;
*)
AC_MSG_ERROR([no thread library.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment