OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../kbd/configure-trust_gcc.patch.cross
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./configure.orig 2004-01-03 14:53:39.000000000 +0000
  17. +++ ./configure 2008-03-15 20:30:20.000000000 +0000
  18. @@ -140,7 +140,7 @@
  19. main(){ exit(0); }
  20. " > conftest.c
  21. eval $compile
  22. -if test -s conftest && ./conftest 2>/dev/null; then
  23. +if test $? -eq 0; then
  24. echo "#define HAVE_locale_h" >> defines.h
  25. echo "You have <locale.h>"
  26. else
  27. @@ -151,6 +151,7 @@
  28. #
  29. # 2. For lib/nls.h: do we have <libintl.h> and gettext() ?
  30. #
  31. +if [ $nls = 1 ]; then
  32. echo '
  33. #include <libintl.h>
  34. main(int a, char **v){
  35. @@ -160,8 +161,7 @@
  36. }
  37. ' > conftest.c
  38. eval $compile
  39. -if [ $nls = 1 ]; then
  40. - if test -s conftest && ./conftest 2>/dev/null; then
  41. + if test $? -eq 0; then
  42. echo '#define HAVE_libintl_h' >> defines.h
  43. echo "You have <libintl.h> and gettext()"
  44. echo '#define ENABLE_NLS' >> defines.h