Set up configure.ac so autoheader works; removed some obsolescent

macros. Partly the suggestion of Tiziano Mueller.
This commit is contained in:
William McBrine
2006-08-23 19:31:01 +00:00
parent df22064f01
commit d6416152f7
3 changed files with 357 additions and 440 deletions

View File

@@ -1,94 +1,133 @@
/* Define if you have the vsnprintf function. */
#undef HAVE_VSNPRINTF
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* Define as the system defined limit for number of signals */
#undef PDC_MAX_SIGNALS
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define if you have the poll function. */
#undef HAVE_POLL
/* Define if you have the usleep function. */
#undef HAVE_USLEEP
/* Define if you have the vsscanf function. */
#undef HAVE_VSSCANF
/* Define if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* following manually added as autoheader can't recognise them */
/* Define if you have the <DECkeySym.h> header file. */
/* Define if you have the <DECkeySym.h> header file */
#undef HAVE_DECKEYSYM_H
/* Define if you have the <Sunkeysym.h> header file. */
/* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <Sunkeysym.h> header file */
#undef HAVE_SUNKEYSYM_H
/* Define if you have the <xpm.h> header file. */
#undef HAVE_XPM_H
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_DELETE
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_INSERT
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_END
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_DOWN
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_NEXT
/* Define to 1 if you have the `usleep' function. */
#undef HAVE_USLEEP
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_LEFT
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_RIGHT
/* Define to 1 if you have the `vsscanf' function. */
#undef HAVE_VSSCANF
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_HOME
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_UP
/* Define if you have this defined in <keysym.h>. */
#undef HAVE_XK_KP_PRIOR
/* Define if you have this defined in <keysym.h>. */
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_BEGIN
/* Define if you want to use Xaw3d library */
#undef USE_XAW3D
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_DELETE
/* Define if you want to use neXtaw library */
#undef USE_NEXTAW
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_DOWN
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_END
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_HOME
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_INSERT
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_LEFT
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_NEXT
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_PRIOR
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_RIGHT
/* Define if you have this defined in <keysym.h> */
#undef HAVE_XK_KP_UP
/* Define if you have the <xpm.h> header file */
#undef HAVE_XPM_H
/* Define if you want to include LATIN1 key support */
#undef INCLUDE_LATIN1
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define as the system defined limit for number of signals */
#undef PDC_MAX_SIGNALS
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define if you want to use neXtaw library */
#undef USE_NEXTAW
/* Define if you want to use Xaw3d library */
#undef USE_XAW3D
/* Define XPointer is typedefed in X11/Xlib.h */
#undef XPOINTER_TYPEDEFED

514
configure vendored
View File

@@ -1,6 +1,8 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
# Generated by GNU Autoconf 2.59 for PDCurses 3.0.
#
# Report bugs to <wmcbrine@users.sf.net>.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
@@ -265,11 +267,11 @@ SHELL=${CONFIG_SHELL-/bin/sh}
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
PACKAGE_NAME='PDCurses'
PACKAGE_TARNAME='PDCurses'
PACKAGE_VERSION='3.0'
PACKAGE_STRING='PDCurses 3.0'
PACKAGE_BUGREPORT='wmcbrine@users.sf.net'
ac_unique_file="curspriv.h"
# Factoring default headers for most tests.
@@ -778,7 +780,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.
\`configure' configures PDCurses 3.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -839,7 +841,9 @@ _ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of PDCurses 3.0:";;
esac
cat <<\_ACEOF
Optional Features:
@@ -868,6 +872,7 @@ Some influential environment variables:
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <wmcbrine@users.sf.net>.
_ACEOF
fi
@@ -963,6 +968,8 @@ fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
PDCurses configure 3.0
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
@@ -975,7 +982,7 @@ cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
It was created by PDCurses $as_me 3.0, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1298,6 +1305,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -2232,131 +2247,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking for library containing strerror" >&5
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
if test "${ac_cv_search_strerror+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_func_search_save_LIBS=$LIBS
ac_cv_search_strerror=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strerror ();
int
main ()
{
strerror ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_strerror="none required"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_strerror" = no; then
for ac_lib in cposix; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char strerror ();
int
main ()
{
strerror ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_strerror="-l$ac_lib"
break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
echo "${ECHO_T}$ac_cv_search_strerror" >&6
if test "$ac_cv_search_strerror" != no; then
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
fi
ac_config_headers="$ac_config_headers config.h"
ac_aux_dir=
@@ -2509,7 +2399,8 @@ if test "${mh_cv_max_signals+set}" = set; then
else
mh_found="no"
for mh_sigs in NSIG __sys_nsig; do
cat >conftest.$ac_ext <<_ACEOF
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -3456,9 +3347,9 @@ echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2
echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
## ------------------------------------ ##
## Report this to wmcbrine@users.sf.net ##
## ------------------------------------ ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
@@ -3495,13 +3386,9 @@ fi
for ac_header in fcntl.h \
sys/time.h \
sys/select.h \
dlfcn.h \
dl.h \
errno.h
do
@@ -3623,9 +3510,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
## ------------------------------------ ##
## Report this to wmcbrine@users.sf.net ##
## ------------------------------------ ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
@@ -3652,7 +3539,6 @@ fi
done
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
@@ -3929,205 +3815,6 @@ _ACEOF
for ac_func in vprintf
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $ac_func ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif
int
main ()
{
return f != $ac_func;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_var=no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
echo "$as_me:$LINENO: checking for _doprnt" >&5
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
if test "${ac_cv_func__doprnt+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define _doprnt innocuous__doprnt
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _doprnt (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef _doprnt
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
{
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _doprnt ();
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__doprnt) || defined (__stub____doprnt)
choke me
#else
char (*f) () = _doprnt;
#endif
#ifdef __cplusplus
}
#endif
int
main ()
{
return f != _doprnt;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func__doprnt=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_func__doprnt=no
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
if test $ac_cv_func__doprnt = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_DOPRNT 1
_ACEOF
fi
fi
done
@@ -4644,9 +4331,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
## ------------------------------------ ##
## Report this to wmcbrine@users.sf.net ##
## ------------------------------------ ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
@@ -4850,7 +4537,8 @@ else
with_latin1=no
fi;
if test "$with_latin1" = yes; then
cat >>confdefs.h <<\_ACEOF
cat >>confdefs.h <<\_ACEOF
#define INCLUDE_LATIN1 1
_ACEOF
@@ -4890,7 +4578,8 @@ else
with_xaw3d=no
fi;
if test "$with_xaw3d" = yes; then
cat >>confdefs.h <<\_ACEOF
cat >>confdefs.h <<\_ACEOF
#define USE_XAW3D 1
_ACEOF
@@ -4905,7 +4594,8 @@ else
with_nextaw=no
fi;
if test "$with_nextaw" = yes; then
cat >>confdefs.h <<\_ACEOF
cat >>confdefs.h <<\_ACEOF
#define USE_NEXTAW 1
_ACEOF
@@ -5097,7 +4787,7 @@ echo "$as_me:$LINENO: checking compiler flags for a dynamic object" >&5
echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6
cat > conftest.$ac_ext <<EOF
#line 5100 "configure"
#line 4790 "configure"
int a=0
EOF
@@ -5136,7 +4826,7 @@ echo "${ECHO_T}none of $mh_cv_flags supported" >&6
mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
cat > conftest.$ac_ext <<EOF
#line 5139 "configure"
#line 4829 "configure"
int foo()
{
return(0);
@@ -5610,7 +5300,7 @@ _ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by $as_me, which was
This file was extended by PDCurses $as_me 3.0, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -5670,7 +5360,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
PDCurses config.status 3.0
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
@@ -6426,3 +6116,117 @@ echo "${ECHO_T}renaming x11/Makefile.aix to x11/Makefile" >&6
*)
;;
esac
cat >>confdefs.h <<\_ACEOF
#define PDC_MAX_SIGNALS
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_DECKEYSYM_H
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_SUNKEYSYM_H
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XPM_H
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_DELETE
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_INSERT
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_END
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_DOWN
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_NEXT
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_LEFT
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_RIGHT
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_HOME
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_UP
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_PRIOR
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_XK_KP_BEGIN
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define USE_XAW3D
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define USE_NEXTAW
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define INCLUDE_LATIN1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define XPOINTER_TYPEDEFED
_ACEOF

View File

@@ -1,11 +1,10 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_INIT(PDCurses, 3.0, wmcbrine@users.sf.net, PDCurses)
AC_CONFIG_SRCDIR([curspriv.h])
AC_SUBST(prefix)
AC_PROG_CC
AC_ISC_POSIX
AC_CONFIG_HEADER(config.h)
dnl Checks for system first
@@ -67,24 +66,17 @@ dnl Checks for libraries.
AC_CHECK_HEADERS(fcntl.h \
sys/time.h \
sys/select.h \
dlfcn.h \
dl.h \
errno.h
)
)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl AC_C_CONST
dnl AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl AC_CHECK_TYPE(fd_set,int)
MH_CHECK_LIB(socket nls)
AC_SUBST(MH_EXTRA_LIBS)
MH_CHECK_CC_O
dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(vsscanf usleep poll vsnprintf)
dnl Check for X includes and X libraries
@@ -147,7 +139,9 @@ AC_ARG_ENABLE(latin1,
[with_latin1=no],
)
if test "$with_latin1" = yes; then
AC_DEFINE(INCLUDE_LATIN1)
AC_DEFINE([INCLUDE_LATIN1], [1],
[Define if you want to include LATIN1 key support]
)
fi
dnl --------------- check for wide character support ----------------
@@ -183,7 +177,9 @@ AC_ARG_WITH(xaw3d,
[with_xaw3d=no],
)
if test "$with_xaw3d" = yes; then
AC_DEFINE(USE_XAW3D)
AC_DEFINE([USE_XAW3D], [1],
[Define if you want to use Xaw3d library]
)
fi
dnl ---------------------- check for neXtaw library -------------------
@@ -194,7 +190,9 @@ AC_ARG_WITH(nextaw,
[with_nextaw=no],
)
if test "$with_nextaw" = yes; then
AC_DEFINE(USE_NEXTAW)
AC_DEFINE([USE_NEXTAW], [1],
[Define if you want to use neXtaw library]
)
fi
dnl --------------- Check how to make shared libraries -------------------
@@ -212,3 +210,79 @@ case "$target" in
*)
;;
esac
AC_DEFINE([PDC_MAX_SIGNALS], [],
[Define as the system defined limit for number of signals]
)
AC_DEFINE([HAVE_DECKEYSYM_H], [],
[Define if you have the <DECkeySym.h> header file]
)
AC_DEFINE([HAVE_SUNKEYSYM_H], [],
[Define if you have the <Sunkeysym.h> header file]
)
AC_DEFINE([HAVE_XPM_H], [],
[Define if you have the <xpm.h> header file]
)
AC_DEFINE([HAVE_XK_KP_DELETE], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_INSERT], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_END], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_DOWN], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_NEXT], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_LEFT], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_RIGHT], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_HOME], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_UP], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_PRIOR], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([HAVE_XK_KP_BEGIN], [],
[Define if you have this defined in <keysym.h>]
)
AC_DEFINE([USE_XAW3D], [],
[Define if you want to use Xaw3d library]
)
AC_DEFINE([USE_NEXTAW], [],
[Define if you want to use neXtaw library]
)
AC_DEFINE([INCLUDE_LATIN1], [],
[Define if you want to include LATIN1 key support]
)
AC_DEFINE([XPOINTER_TYPEDEFED], [],
[Define XPointer is typedefed in X11/Xlib.h]
)