mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
Improve libintl.h search and add a --gettext-prefix configure option.
Update a couple copyright dates that slipped through earlier. Spell GTK as GTK+ in a couple of places.
This commit is contained in:
parent
6ddb247689
commit
a13a6fbb4e
6 changed files with 21 additions and 8 deletions
2
NEWS
2
NEWS
|
@ -4,7 +4,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
|
||||||
- Only uses one port for all torrents
|
- Only uses one port for all torrents
|
||||||
- Rewritten choking algorithm
|
- Rewritten choking algorithm
|
||||||
- Remembers download and upload sizes from one launch to another
|
- Remembers download and upload sizes from one launch to another
|
||||||
- New GTK interface
|
- New GTK+ interface
|
||||||
- New BeOS interface
|
- New BeOS interface
|
||||||
- OS X: Dock badging
|
- OS X: Dock badging
|
||||||
- OS X: Shows the file icon in the list
|
- OS X: Shows the file icon in the list
|
||||||
|
|
2
README
2
README
|
@ -6,7 +6,7 @@ simple, intuitive interface on top on an efficient, cross-platform
|
||||||
back-end.
|
back-end.
|
||||||
|
|
||||||
Transmission is open source (MIT license) and runs on Mac OS X (Cocoa
|
Transmission is open source (MIT license) and runs on Mac OS X (Cocoa
|
||||||
interface), Linux/NetBSD/FreeBSD/OpenBSD (GTK interface) and BeOS
|
interface), Linux/NetBSD/FreeBSD/OpenBSD (GTK+ interface) and BeOS
|
||||||
(native interface).
|
(native interface).
|
||||||
|
|
||||||
For more information (including build instructions), please consult the
|
For more information (including build instructions), please consult the
|
||||||
|
|
19
configure
vendored
19
configure
vendored
|
@ -10,6 +10,7 @@ usage()
|
||||||
OpenSSL options:
|
OpenSSL options:
|
||||||
--disable-openssl Disable OpenSSL, use built-in SHA1 implementation
|
--disable-openssl Disable OpenSSL, use built-in SHA1 implementation
|
||||||
--openssl-prefix=PATH Location of OpenSSL headers and library
|
--openssl-prefix=PATH Location of OpenSSL headers and library
|
||||||
|
--gettext-prefix=PATH Location of the Gettext header and library
|
||||||
--disable-gtk Don't build the GTK+ GUI
|
--disable-gtk Don't build the GTK+ GUI
|
||||||
--prefix=PATH Install here instead of $INSTALL_PREFIX
|
--prefix=PATH Install here instead of $INSTALL_PREFIX
|
||||||
|
|
||||||
|
@ -53,14 +54,23 @@ gettext_test()
|
||||||
gettext("");
|
gettext("");
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ -n "$GETTEXT_PREFIX" ] && $CC "-I$GETTEXT_PREFIX/include" "-Wl,-R$GETTEXT_PREFIX/lib" "-L$GETTEXT_PREFIX/lib" -lintl -liconv -o testconf testconf.c >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
GTKCCFLAGS="-I$GETTEXT_PREFIX/include $GTKCCFLAGS"
|
||||||
|
GTKLINKLIBS="-Wl,-R$GETTEXT_PREFIX/lib -L$GETTEXT_PREFIX/lib -lintl -liconv $GTKLINKLIBS"
|
||||||
|
rm -f testconf.c testconf
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
if $CC $GTKCCFLAGS $GTKLINKLIBS -o testconf testconf.c > /dev/null 2>&1
|
if $CC $GTKCCFLAGS $GTKLINKLIBS -o testconf testconf.c > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
rm -f testconf.c testconf
|
rm -f testconf.c testconf
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# XXX there has to be a better way than this
|
for intl_testdir in $INSTALL_PREFIX/include \
|
||||||
for intl_testdir in /usr/local/include /usr/X11R6/include /usr/pkg/include
|
/usr/local/include /usr/X11R6/include /usr/pkg/include
|
||||||
do
|
do
|
||||||
if $CC $GTKCCFLAGS -I$intl_testdir $GTKLINKLIBS -o testconf testconf.c > /dev/null 2>&1
|
if $CC $GTKCCFLAGS -I$intl_testdir $GTKLINKLIBS -o testconf testconf.c > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
|
@ -98,7 +108,7 @@ EOF
|
||||||
else
|
else
|
||||||
GTKCCFLAGS=
|
GTKCCFLAGS=
|
||||||
GTKLINKLIBS=
|
GTKLINKLIBS=
|
||||||
echo "GTK+: no, could not find libintl.h"
|
echo "GTK+: no, could not find gettext libintl.h"
|
||||||
GTK=no
|
GTK=no
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -150,6 +160,9 @@ while [ $# -ne 0 ]; do
|
||||||
x--openssl-prefix=*)
|
x--openssl-prefix=*)
|
||||||
OPENSSL_PREFIX="$param";
|
OPENSSL_PREFIX="$param";
|
||||||
;;
|
;;
|
||||||
|
x--gettext-prefix=*)
|
||||||
|
GETTEXT_PREFIX="$param";
|
||||||
|
;;
|
||||||
x--disable-gtk)
|
x--disable-gtk)
|
||||||
gtk_disable="1";
|
gtk_disable="1";
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2005 Joshua Elsasser. All rights reserved.
|
Copyright (c) 2005-2006 Joshua Elsasser. All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2005 Joshua Elsasser. All rights reserved.
|
Copyright (c) 2005-2006 Joshua Elsasser. All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2005 Joshua Elsasser. All rights reserved.
|
Copyright (c) 2005-2006 Joshua Elsasser. All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
Loading…
Add table
Reference in a new issue