comparison configure @ 51905:0bab97b183c0

Check for posix_memalign.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 14 Jul 2003 02:21:29 +0000
parents 6a3cc9d03391
children b4346da6617f
comparison
equal deleted inserted replaced
51904:1c1e0c947a63 51905:0bab97b183c0
1660 ;; 1660 ;;
1661 1661
1662 ## NetBSD ports 1662 ## NetBSD ports
1663 *-*-netbsd* ) 1663 *-*-netbsd* )
1664 opsys=netbsd 1664 opsys=netbsd
1665 if test -f /usr/lib/crti.o; then
1666 AC_DEFINE(HAVE_CRTIN)
1667 fi
1668
1665 case "${canonical}" in 1669 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;; 1670 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;; 1671 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*) 1672 m68k-*-netbsd*)
1669 # This is somewhat bogus. 1673 # This is somewhat bogus.
3394 (eval $ac_try) 2>&5 3398 (eval $ac_try) 2>&5
3395 ac_status=$? 3399 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then 3401 (exit $ac_status); }; }; then
3398 for ac_declaration in \ 3402 for ac_declaration in \
3399 '' \ 3403 ''\
3404 '#include <stdlib.h>' \
3400 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3405 'extern "C" void std::exit (int) throw (); using std::exit;' \
3401 'extern "C" void std::exit (int); using std::exit;' \ 3406 'extern "C" void std::exit (int); using std::exit;' \
3402 'extern "C" void exit (int) throw ();' \ 3407 'extern "C" void exit (int) throw ();' \
3403 'extern "C" void exit (int);' \ 3408 'extern "C" void exit (int);' \
3404 'void exit (int);' 3409 'void exit (int);'
3408 /* confdefs.h. */ 3413 /* confdefs.h. */
3409 _ACEOF 3414 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext 3415 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF 3416 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */ 3417 /* end confdefs.h. */
3418 #include <stdlib.h>
3413 $ac_declaration 3419 $ac_declaration
3414 #include <stdlib.h>
3415 int 3420 int
3416 main () 3421 main ()
3417 { 3422 {
3418 exit (42); 3423 exit (42);
3419 ; 3424 ;
11339 11344
11340 11345
11341 11346
11342 11347
11343 11348
11349
11344 for ac_func in gethostname getdomainname dup2 \ 11350 for ac_func in gethostname getdomainname dup2 \
11345 rename closedir mkdir rmdir sysinfo \ 11351 rename closedir mkdir rmdir sysinfo \
11346 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 11352 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11347 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 11353 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11348 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ 11354 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11349 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 11355 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11350 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 11356 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11351 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ 11357 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11352 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen 11358 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11353 do 11359 do
11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 echo "$as_me:$LINENO: checking for $ac_func" >&5 11361 echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then 11363 if eval "test \"\${$as_ac_var+set}\" = set"; then