diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2004-09-24 00:35:14 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2004-09-24 00:35:14 +0000 |
commit | 2a7f35e54eec30a7db7e32a6ecaecfb9de5a4d73 (patch) | |
tree | 806d7a9d03bd5efb03a01ca3babc5946aa7a0e2d /comms/hylafax/files | |
parent | - the GS_NO_X11 case in configure script needs more work (diff) |
Commit maintainer's update to 4.2.0 from 4.1.8, unbreak -current.
PR: ports/71521
Submitted by: Paul Everlund (maintainer)
Approved by: portmgr (marcus)
Notes
Notes:
svn path=/head/; revision=118363
Diffstat (limited to 'comms/hylafax/files')
-rw-r--r-- | comms/hylafax/files/patch-configure | 252 |
1 files changed, 245 insertions, 7 deletions
diff --git a/comms/hylafax/files/patch-configure b/comms/hylafax/files/patch-configure index 59dc20e4d0e7..01c147b44d7d 100644 --- a/comms/hylafax/files/patch-configure +++ b/comms/hylafax/files/patch-configure @@ -1,5 +1,5 @@ ---- configure.orig Mon May 24 15:24:35 2004 -+++ configure Mon May 24 17:44:28 2004 +--- configure.orig Fri Sep 3 14:08:03 2004 ++++ configure Fri Sep 3 14:14:34 2004 @@ -43,8 +43,8 @@ DIR_LIB=/usr/local/lib DIR_LIBEXEC=$DIR_SBIN @@ -24,7 +24,236 @@ DSO=auto GETTY=auto HTML=no -@@ -2604,7 +2604,7 @@ +@@ -384,7 +384,7 @@ + -srcdir=*|--srcdir=*) SRCDIR="$ac_optarg";; + -target|--target) ac_prev=TARGET;; + -target=*|--target=*) TARGET="$ac_optarg" ;; +- -disable-pam|--disable-pam) DISABLE_PAM="yes" ;; ++ -disable-pam|--disable-pam) DISABLE_PAM="yes" ;; + -version|--version) + echo "This is HylaFAX configure $Revision: 1.102 $" + exit 0 +@@ -1519,10 +1519,16 @@ + # + CheckForLibrary() + { ++ incls=$1; shift ++ vars=$1; shift + f=$1; shift + libs="$@"; +- cat>t.c<<EOF +-int t() { $f(); return 0; } ++ echo "">t.c ++ for i in $incls; do ++ echo "#include "$i>>t.c ++ done ++ cat>>t.c<<EOF ++int t() { $vars $f; return 0; } + int main(){ t(); return 0; } + EOF + capture cat t.c +@@ -1542,39 +1548,41 @@ + } + + if [ "$SGI2FAX" = auto ]; then +- if CheckForLibrary iopen -limage && CheckForIncludeFile gl/image.h; then ++ if CheckForLibrary "<gl/image.h>" "char *a,*b;" "iopen(a,b)" -limage && CheckForIncludeFile gl/image.h; then + Note "Looks like there is support for SGI RGB images, configuring sgi2fax." + SGI2FAX=yes + else + SGI2FAX=no + fi + fi +-if [ "$LIBMALLOC" = auto ]; then +- if CheckForLibrary mallopt -lmalloc; then +- Note "Looks like -lmalloc is here, using it for memory allocation." +- LIBMALLOC=yes +- else ++### FreeBSD have malloc in -lc, which is checked elsewhere. ++#if [ "$LIBMALLOC" = auto ]; then ++# if CheckForLibrary mallopt -lmalloc; then ++# Note "Looks like -lmalloc is here, using it for memory allocation." ++# LIBMALLOC=yes ++# else + LIBMALLOC=no +- fi +-fi +-if [ "$LIBSUN" = auto ]; then +- if CheckForLibrary getpwnam -lsun; then +- Note "Looks like -lsun is here, using it for NIS passwd & group stuff." +- LIBSUN=yes +- else ++# fi ++#fi ++### FreeBSD have getpwnam in -lc, which is checked elsewhere. ++#if [ "$LIBSUN" = auto ]; then ++# if CheckForLibrary getpwnam -lsun; then ++# Note "Looks like -lsun is here, using it for NIS passwd & group stuff." ++# LIBSUN=yes ++# else + LIBSUN=no +- fi +-fi ++# fi ++#fi + HAVE_PAM="/*#define HAVE_PAM 1*/" + PAMLIBS="" + if [ "$DISABLE_PAM" != "yes" ]; then + Note "Checking for PAM (Pluggable Authentication Module) support" +- CheckForLibrary pam_authenticate -lpam && +- CheckForLibrary misc_conv -lpam_misc -lpam && ++ CheckForLibrary "<sys/types.h> <security/pam_appl.h>" "pam_handle_t *a; int b;" "pam_authenticate(a,b)" -lpam && ++ CheckForLibrary "<security/pam_misc.h>" "int a; const struct pam_message **b; struct pam_response **c; void *d;" "misc_conv(a,b,c,d)" -lpam && + CheckForIncludeFile security/pam_appl.h && + CheckForIncludeFile security/pam_misc.h && { + HAVE_PAM="#define HAVE_PAM 1" +- PAMLIBS="-lpam -lpam_misc" ++ PAMLIBS="-lpam" + } + if [ "x$PAMLIBS" = "x" ]; then + Note "... not found. Disabling PAM support" +@@ -1584,25 +1592,25 @@ + else + Note "Disabling PAM support" + fi +-CheckForLibrary crypt -lc || { ++CheckForLibrary "<unistd.h>" "const char *a,*b;" "crypt(a,b)" -lc || { + # + # FreeBSD-2.1 in particular needs -lcrypt. + # SCO sometime has -lcrypt_d (domestic) and + # sometimes -lcrypt_i (import?) + # + for i in -lcrypt -lcrypt_d -lcrypt_i; do +- if CheckForLibrary crypt $i; then ++ if CheckForLibrary "" "" "crypt()" $i; then + Note "Looks like $i is needed for crypt." + MACHDEPLIBS="$MACHDEPLIBS $i" + break; + fi + done + } +-CheckForLibrary strftime -lc || { ++CheckForLibrary "<sys/types.h> <time.h>" "char *a; size_t b; const char *c; const struct tm *d;" "strftime(a,b,c,d)" -lc || { + # + # SCO has strftime in -lintl. + # +- if CheckForLibrary strftime -lintl; then ++ if CheckForLibrary "" "" "strftime()" -lintl; then + Note "Looks like -lintl is needed for strftime." + MACHDEPLIBS="$MACHDEPLIBS -lintl" + else +@@ -1620,18 +1628,18 @@ + boom + fi + } +-CheckForLibrary socket -lc || { ++CheckForLibrary "<sys/types.h> <sys/socket.h>" "int a,b,c;" "socket(a,b,c)" -lc || { + # + # Socket support is not in normal C library, check + # for SVR4-style networking w/ -lsocket & -lnsl + # +- if CheckForLibrary socket -lsocket -lnsl; then ++ if CheckForLibrary "" "" "socket()" -lsocket -lnsl; then + Note "Looks like -lsocket & -lnsl are needed for socket support." + MACHDEPLIBS="$MACHDEPLIBS -lsocket -lnsl" +- elif CheckForLibrary socket -linet -lnsl_s; then ++ elif CheckForLibrary "" "" "socket()" -linet -lnsl_s; then + Note "Looks like -linet & -lnsl_s are needed for socket support." + MACHDEPLIBS="$MACHDEPLIBS -linet -lnsl_s" +- elif CheckForLibrary socket -lsocket; then ++ elif CheckForLibrary "" "" "socket()" -lsocket; then + Note "Looks like -lsocket is needed for socket support." + MACHDEPLIBS="$MACHDEPLIBS -lsocket" + else +@@ -1650,39 +1658,43 @@ + boom + fi + } +-if CheckForLibrary logwtmp -lutil; then ++if CheckForLibrary "<sys/types.h> <libutil.h>" "const char *a,*b,*c;" "logwtmp(a,b,c)" -lutil; then + Note "Looks like -lutil is needed for wtmp file logging." + MACHDEPLIBS="$MACHDEPLIBS -lutil" + HAS_LOGWTMP=yes + else + HAS_LOGWTMP=no + fi +-CheckForLibrary ftruncate -lc || { +- CheckForLibrary chsize -lx && { ++CheckForLibrary "<unistd.h>" "int a; off_t b;" "ftruncate(a,b)" -lc || { ++ CheckForLibrary "" "" "chsize()" -lx && { + Note "Looks like -lx is needed for chsize (used to emulate ftruncate)." + MACHDEPLIBS="$MACHDEPLIBS -lx" + } + } +-CheckForLibrary flock -lc || { +- CheckForLibrary flock -lbsd && { ++CheckForLibrary "<sys/file.h>" "int a,b;" "flock(a,b)" -lc || { ++ CheckForLibrary "" "" "flock()" -lbsd && { + Note "Looks like -lbsd is needed for flock." + MACHDEPLIBS="$MACHDEPLIBS -lbsd" + } + } +-for f in openlog pututxline; do +- CheckForLibrary $f -lc || { +- CheckForLibrary $f -lgen && { +- Note "Looks like -lgen is needed for $f." +- MACHDEPLIBS="$MACHDEPLIBS -lgen" +- break; +- } ++CheckForLibrary "<syslog.h> <stdarg.h>" "const char *a; int b,c;" "openlog(a,b,c)" -lc || { ++ CheckForLibrary "" "" "openlog()" -lgen && { ++ Note "Looks like -lgen is needed for openlog." ++ MACHDEPLIBS="$MACHDEPLIBS -lgen" + } +-done ++} ++### FreeBSD do not have pututxline. ++#CheckForLibrary pututxline -lc || { ++# CheckForLibrary pututxline -lgen && { ++# Note "Looks like -lgen is needed for pututxline." ++# MACHDEPLIBS="$MACHDEPLIBS -lgen" ++# } ++#} + if [ "$ISGXX" = yes ]; then + if [ -z "$CXXRUNTIME" ]; then +- for f in memmove strdup; do +- CheckForLibrary $f -lc || { +- CheckForLibrary $f -lg++ && { ++ for f in "memmove(a,b,c)" "strdup(d)"; do ++ CheckForLibrary "<string.h>" "void *a; const void *b; size_t c; const char *d;" $f -lc || { ++ CheckForLibrary "" "" "$f()" -lg++ && { + Note "Looks like we need -lg++ for $f" + MACHDEPLIBS="$MACHDEPLIBS -lg++" + break; +@@ -1690,9 +1702,9 @@ + } + done + fi +- for f in strtoul strerror memmove random; do +- CheckForLibrary $f -lc || { +- CheckForLibrary $f -liberty && { ++ for f in "strtoul(a,b,c)" "strerror(c)" "memmove(d,e,f)" "random()"; do ++ CheckForLibrary "<stdlib.h> <limits.h> <string.h>" "const char *a; char **b; int c; void *d; const void *e; size_t f;" $f -lc || { ++ CheckForLibrary "" "" "$f()" -liberty && { + Note "Looks like we need -liberty for $f" + MACHDEPLIBS="$MACHDEPLIBS -liberty" + break; +@@ -1700,12 +1712,12 @@ + } + done + fi +-CheckForLibrary floor -lm && { ++CheckForLibrary "<math.h>" "double a;" "floor(a)" -lm && { + Note "Looks like -lm is the library for math functions." + MACHDEPLIBS="$MACHDEPLIBS -lm" + } + MACHDEPLIBS="$MACHDEPLIBS $CXXRUNTIME" +-test "$LIBSUN" = yes && MACHDEPLIBS="$MACHDEPLIBS -lsun" ++test "$LIBSUN" = yes && MACHDEPLIBS="$MACHDEPLIBS -lc" + test "$LIBMALLOC" = yes && MACHDEPLIBS="$MACHDEPLIBS -lmalloc" + + # +@@ -2640,7 +2652,7 @@ } CheckFuncDecl unlink 'extern int unlink(const char*);' unistd.h CheckFuncDecl read 'extern int read(int, const void*, unsigned int);' unistd.h @@ -33,7 +262,16 @@ CheckForFunc fchown && { echo '#define HAS_FCHOWN 1' Note "... configure use of fchown" -@@ -4245,18 +4245,8 @@ +@@ -2852,7 +2864,7 @@ + AddFuncDecl logwtmp \ + 'int logwtmp(const char*, const char*, const char*);' + } +- CheckForLibrary logout -lutil && { ++ CheckForLibrary "<sys/types.h> <libutil.h>" "const char *a;" "logout(a)" -lutil && { + echo '#define HAS_LOGOUT 1' + Note "... configure use of logout (BSD-style utmp support)" + CheckForFuncDecl logout utmp.h || { +@@ -4307,18 +4319,8 @@ HylaFAX configuration parameters (part 1 of 2) are: @@ -52,7 +290,7 @@ [13] Default page size: $PAGESIZE [14] Default vertical res (lpi): $DEFVRES -@@ -4272,16 +4262,9 @@ +@@ -4334,16 +4336,9 @@ [15] Location of getty program: $PATH_GETTY [16] Location of voice getty program: $PATH_VGETTY [17] Location of sendmail program: $PATH_SENDMAIL @@ -72,7 +310,7 @@ EOF } -@@ -4382,7 +4365,7 @@ +@@ -4444,7 +4439,7 @@ ok=skip while [ "$ok" != y ] && [ "$ok" != yes ]; do if [ "$ok" != skip ]; then @@ -81,7 +319,7 @@ promptForParameter $i; done fi -@@ -4411,7 +4394,7 @@ +@@ -4473,7 +4468,7 @@ ok=skip while [ "$ok" != y ] && [ "$ok" != yes ]; do if [ "$ok" != skip ]; then |