Added LIBINTL to more Makefile targets.
authorWerner Koch <wk@gnupg.org>
Tue, 30 Jan 2007 20:16:28 +0000 (20:16 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 30 Jan 2007 20:16:28 +0000 (20:16 +0000)
doc/
* com-certs.pem: Added the current root certifcates of D-Trust and
S-Trust.

g10/
* status.c (write_status_begin_signing): New.
* sign.c (sign_file, sign_symencrypt_file): Call it.
* textfilter.c (copy_clearsig_text): Call it.

* call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
required.

* gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
warning.
* misc.c (obsolete_option): New.

23 files changed:
AUTHORS
NEWS
THANKS
doc/ChangeLog
doc/DETAILS
doc/com-certs.pem
doc/gpg.texi
g10/ChangeLog
g10/call-agent.c
g10/gpg.c
g10/main.h
g10/misc.c
g10/pkclist.c
g10/sign.c
g10/status.c
g10/status.h
g10/textfilter.c
kbx/ChangeLog
kbx/Makefile.am
scd/ChangeLog
scd/Makefile.am
sm/ChangeLog
sm/Makefile.am

diff --git a/AUTHORS b/AUTHORS
index e5d9f13..799a2ae 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -17,6 +17,8 @@ Daniel Resare  <daniel@resare.com> Translations [sv]
 Per Tunedal    <per@clipanish.com> Translations [sv]
 Daniel Nylander <po@danielnylander.se> Translations [sv]
 
+Daiki Ueno <ueno@unixuser.org>  Assigns Past and Future Changes.
+
 David Shaw <dshaw@jabberwocky.com> Assigns past and future changes.
     (all in keyserver/,
      a lot of changes in g10/ see the ChangeLog,
diff --git a/NEWS b/NEWS
index 16313fb..af8ecf3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@ Noteworthy changes in version 2.0.2 (unreleased)
  * A warning is displayed if a new passphrase is too short.  New
    option --min-passphrase-len defaults to 8.
 
+ * The status code BEGIN_SIGNING now show the used hash algorithm.
 
 Noteworthy changes in version 2.0.1 (2006-11-28)
 ------------------------------------------------
diff --git a/THANKS b/THANKS
index 4e076e8..aa68f22 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -18,7 +18,8 @@ Anthony Mulcahy          anthony at kcn.ne.jp
 Ariel T Glenn             ariel at columbia.edu
 ARIGA Seiji                ariga at os.rim.or.jp
 Bernhard Herzog            bh at intevation.de
-Bernhard Reiter            bernhard de intevation.de
+Bernhard Reiter            bernhard at intevation.de
+Billy Halsey               bshalsey at paxoo.com
 Bob Dunlop                 bob at xyzzy.org.uk
 Bob Mathews                bobmathews at mindspring.com
 Bodo Moeller              Bodo_Moeller at public.uni-hamburg.de
index 173991c..826ea3d 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-30  Werner Koch  <wk@g10code.com>
+
+       * com-certs.pem: Added the current root certifcates of D-Trust and
+       S-Trust.
+
 2007-01-18  David Shaw  <dshaw@jabberwocky.com>
 
        * gpg.texi, specify-user-id.texi: Only some of the mentions of
index cf49757..5dda751 100644 (file)
@@ -316,7 +316,7 @@ more arguments in future versions.
     TRUST_ULTIMATE
        For good signatures one of these status lines are emitted
        to indicate how trustworthy the signature is.  The error token
-        values are currently only emiited by gpgsm.
+        values are currently only emitted by gpgsm.
 
     PKA_TRUST_GOOD <mailbox>
     PKA_TRUST_BAD  <mailbox>
index a05f072..60394fd 100644 (file)
@@ -197,3 +197,148 @@ BiskAwMBAgUAA4GBADnITH+fLD0qsWcAncwPztzTAnqUw9O0+yvfmxvEU0zcJRuF
 Tl8DK+/aKp4SwVhRJZlWxenHzkjWynsUXBUv878gizllRpA7265REyHQki4NnxAi
 OGxEVGe/NbGeU88Pgnk7alhtdA/Ty8/WX9a3U/0G4pLaJppxGSm+ypQZ0XOY
 -----END CERTIFICATE-----
+
+
+
+Issuer ...: /CN=D-TRUST Qualified Root CA 1 2006:PN/O=D-Trust GmbH/C=DE
+Serial ...: 00B95F
+Subject ..: /CN=D-TRUST Qualified Root CA 1 2006:PN/O=D-Trust GmbH/C=DE
+    aka ..: info@d-trust.net
+    aka ..: (uri http://www.d-trust.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HQ8BAf8EBAMCAQYwggEABgNVHR8E
+gfgwgfUwgfKgge+ggeyGgaVsZGFwOi8vZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NO
+PUQtVFJVU1QlMjBRdWFsaWZpZWQlMjBSb290JTIwQ0ElMjAxJTIwMjAwNiUzQVBO
+LE89RC1UcnVzdCUyMEdtYkgsQz1ERT9jZXJ0aWZpY2F0ZXJldm9jYXRpb25saXN0
+P2Jhc2U/b2JqZWN0Q2xhc3M9Y3JsRGlzdHJpYnV0aW9uUG9pbnSGQmh0dHA6Ly93
+d3cuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3RfcXVhbGlmaWVkX3Jvb3RfY2FfMV8y
+MDA2X3BuLmNybDANBgkqhkiG9w0BAQUFAAOCAQEABsVNHg5zVMB+A4swJ8/vW+RV
+mW8KZiJb5AVytFzBeZkkF2+DXFMtursZ0sICIcRCSsNyAQcqHqzcgnDWCHASlu4o
+Em3TeBsmWo8r/uGpbFVAOhjq2VOFwjjIr3TC7zmMoLE+WGBRSuZh4/5wnxQ+NNbY
+8HHE52UPI6VyV7RZeE0IZfbjkejw8WpvNtRfc6NxOCxf1LYibiCUaYs+EBDD+eod
+lWwpmHwPSj4GCzR9wBdbWML/GQZ6iFVOuEmApm2B11KEn4hvKtRMEp1CdHIn8Jwx
+51E89XcjJOIitO0lUozimqvlUb0lEynXe1/CUOhAsiAnLvq0GbnjFN6+9GRnqg==
+-----END CERTIFICATE-----
+
+Issuer ...: /CN=D-TRUST Qualified Root CA 2 2006:PN/O=D-Trust GmbH/C=DE
+Serial ...: 00B960
+Subject ..: /CN=D-TRUST Qualified Root CA 2 2006:PN/O=D-Trust GmbH/C=DE
+    aka ..: info@d-trust.net
+    aka ..: (uri http://www.d-trust.net)
+
+-----BEGIN CERTIFICATE-----
+MIIFBjCCA+6gAwIBAgIDALlgMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNVBAYTAkRF
+MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxL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QSUyMDIlMjAyMDA2JTNBUE4s
+Tz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRlcmV2b2NhdGlvbmxpc3Q/
+YmFzZT9vYmplY3RDbGFzcz1jcmxEaXN0cmlidXRpb25Qb2ludIY/aHR0cDovL3d3
+dy5kLXRydXN0Lm5ldC9jcmwvZC10cnVzdF9xdWFsaWZpZWRfcm9vdF9jYV8yXzIw
+MDYuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQB/TeSQASSUVjLVpTMB+S2bEYZWL04N
+5UO5sIdV5MQFxmbmQNam4odnkOx/GjHy0uuf14Pz7lztlLh4EMvEZbvoQ8wRsrrl
+vMjWBUSnhTMPhohj4gUCEJDBq50qi0057Jos9DF4iLaFgiWBER+FeSHD8uEy6WGG
+UrQ9fw8wRa+CRUeZldtZ25VSR++wxBuX3bkF/hRBuSk9PzT6jZojZDWKsqhPGo0W
+dK4V81hS4Zri3b3gSD/3iOAJ4EO8jdyeSVomw/u1UOapVFnWhpN7H6Nwekij66eO
+4WNzbeTNgJtkdOlzW2AcsWe3mS43BE286z7l/DzDs8JK36va/TRHb29p
+-----END CERTIFICATE-----
+
+
+Issuer ...: /CN=S-TRUST Qualified Root CA 2006-001:PN
+            /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+            /ST=Baden-Wuerttemberg (BW)/C=DE
+Serial ...: 00DF749F80AA51F0EDC0CB1FC183E97EE2
+Subject ..: /CN=S-TRUST Qualified Root CA 2006-001:PN
+            /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+            /ST=Baden-Wuerttemberg (BW)/C=DE
+
+-----BEGIN CERTIFICATE-----
+MIIETDCCAzSgAwIBAgIRAN90n4CqUfDtwMsfwYPpfuIwDQYJKoZIhvcNAQEFBQAw
+gZ4xCzAJBgNVBAYTAkRFMSAwHgYDVQQIExdCYWRlbi1XdWVydHRlbWJlcmcgKEJX
+KTESMBAGA1UEBxMJU3R1dHRnYXJ0MSkwJwYDVQQKEyB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7Fvf3kOu
++f67smpShBvEkrHy+ThvezBUtLfSSd1HzvaPnfwu86DMVnTIOkEcl0KLrpc/ZjEt
+u81iHuiHBemf6gWdTCApiJ+CN4tARi3irvWcjhz/IIcA/ZwAaCW22Z1ysDklCIPS
+9OnX9ki1f73PR+kdo4G7Dfo7TbuvV5Kzeh54sZ77A5utdvKer4ZHBmn9CGmk4VeI
+BWdFlE7Fispzm+jZCduF0TcazvP/tYontx71GQnHRwLfiY4xnuzXEoSNXoaHzhzO
+-----END CERTIFICATE-----
+
+Issuer ...: /CN=S-TRUST Qualified Root CA 2007-001:PN
+            /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+            /ST=Baden-Wuerttemberg (BW)/C=DE
+Serial ...: 00BC098E0402E92956B8D7DE74977E26F7
+Subject ..: /CN=S-TRUST Qualified Root CA 2007-001:PN
+            /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+            /ST=Baden-Wuerttemberg (BW)/C=DE
+
+# Currently disabled because latest SVN versions of libgcrypt and
+# libksba a required to use this certificate.
+#-----BEGIN CERTIFICATE-----
+#MIIESzCCAzOgAwIBAgIRALwJjgQC6SlWuNfedJd+JvcwDQYJKoZIhvcNAQELBQAw
+#gZ4xCzAJBgNVBAYTAkRFMSAwHgYDVQQIExdCYWRlbi1XdWVydHRlbWJlcmcgKEJX
+#KTESMBAGA1UEBxMJU3R1dHRnYXJ0MSkwJwYDVQQKEyBEZXV0c2NoZXIgU3Bhcmth
+#c3NlbiBWZXJsYWcgR21iSDEuMCwGA1UEAxMlUy1UUlVTVCBRdWFsaWZpZWQgUm9v
+#dCBDQSAyMDA3LTAwMTpQTjAeFw0wNzAxMDEwMDAwMDBaFw0xMTEyMzAyMzU5NTla
+#MIGeMQswCQYDVQQGEwJERTEgMB4GA1UECBMXQmFkZW4tV3VlcnR0ZW1iZXJnIChC
+#VykxEjAQBgNVBAcTCVN0dXR0Z2FydDEpMCcGA1UEChMgRGV1dHNjaGVyIFNwYXJr
+#YXNz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jv3aPew=
+#-----END CERTIFICATE-----
index db78819..0c029c2 100644 (file)
@@ -1455,9 +1455,15 @@ passphrase. @option{--no-use-agent} disables this option.
 @end ifset
 
 @item --gpg-agent-info
+@ifclear gpgone
+This is dummy option. It has no effect when used with @command{gpg2}.
+@end ifclear
+@ifset gpgone
 Override the value of the environment variable
 @samp{GPG_AGENT_INFO}. This is only used when @option{--use-agent} has
-been given
+been given.  Given that this option is not anymore used by
+@command{gpg2}, it should be avoided if possible.
+@end gpgone
 
 @item --lock-once
 Lock the databases the first time a lock is requested
index 69e4361..e5bc8e8 100644 (file)
@@ -1,3 +1,20 @@
+2007-01-30  Werner Koch  <wk@g10code.com>
+
+       * status.c (write_status_begin_signing): New.
+       * sign.c (sign_file, sign_symencrypt_file): Call it.
+       * textfilter.c (copy_clearsig_text): Call it.
+
+       * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
+       required.
+
+       * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
+       warning.  
+       * misc.c (obsolete_option): New.
+
+2007-01-29  Werner Koch  <wk@g10code.com>
+
+       * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code. 
+
 2007-01-15  Werner Koch  <wk@g10code.com>
 
        * parse-packet.c (read_protected_v3_mpi): Make sure to stop
index 30b46fa..b5e76fd 100644 (file)
@@ -668,7 +668,9 @@ agent_scd_pksign (const char *serialno, int hashalgo,
     snprintf (line, DIM(line)-1, "SCD PKAUTH %s", serialno);
   else
 #endif
-   snprintf (line, DIM(line)-1, "SCD PKSIGN %s", serialno);
+    snprintf (line, DIM(line)-1, "SCD PKSIGN %s%s",
+              hashalgo == GCRY_MD_RMD160? "--hash=rmd160 " : "",
+              serialno);
   line[DIM(line)-1] = 0;
   rc = assuan_transact (agent_ctx, line, membuf_data_cb, &data,
                         NULL, NULL, NULL, NULL);
index 05ea390..e8e83c2 100644 (file)
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2134,10 +2134,20 @@ main (int argc, char **argv )
            opt.list_options|=LIST_SHOW_UNUSABLE_SUBKEYS;
            break;
 
-         case oBatch: opt.batch = 1; nogreeting = 1; break;
+         case oBatch:
+            opt.batch = 1;
+            nogreeting = 1;
+            break;
+
           case oUseAgent: /* Dummy. */
-          case oNoUseAgent: /* Dummy. */ break;
-         case oGpgAgentInfo: opt.gpg_agent_info = pargs.r.ret_str; break;
+            break;
+          case oNoUseAgent:
+           obsolete_option (configname, configlineno, "--no-use-agent");
+            break;
+         case oGpgAgentInfo: 
+           obsolete_option (configname, configlineno, "--gpg-agent-info");
+            break;
+
          case oAnswerYes: opt.answer_yes = 1; break;
          case oAnswerNo: opt.answer_no = 1; break;
          case oKeyring: append_to_strlist( &nrings, pargs.r.ret_str); break;
index 478e56d..1860853 100644 (file)
@@ -105,6 +105,8 @@ char *pct_expando(const char *string,struct expando_args *args);
 void deprecated_warning(const char *configname,unsigned int configlineno,
                        const char *option,const char *repl1,const char *repl2);
 void deprecated_command (const char *name);
+void obsolete_option (const char *configname, unsigned int configlineno, 
+                      const char *name);
 
 int string_to_cipher_algo (const char *string);
 int string_to_digest_algo (const char *string);
index bf32228..50bb6af 100644 (file)
@@ -469,6 +469,10 @@ openpgp_pk_algo_usage ( int algo )
 int
 openpgp_md_test_algo( int algo )
 {
+  /* Note: If the list of actual supported OpenPGP algorithms changes,
+     make sure that our hard coded values at
+     print_status_begin_signing() gets updated. */
+
   if (algo < 0 || algo > 110)
     return gpg_error (GPG_ERR_DIGEST_ALGO);
   return gcry_md_test_algo (algo);
@@ -737,6 +741,19 @@ deprecated_command (const char *name)
 }
 
 
+void
+obsolete_option (const char *configname, unsigned int configlineno, 
+                 const char *name)
+{
+  if(configname)
+    log_info (_("%s:%u: obsolete option \"%s\" - it has no effect\n"),
+              configname, configlineno, name);
+  else
+    log_info (_("WARNING: \"%s\" is an obsolete option - it has no effect\n"),
+              name);
+}
+
+
 /*
  * Wrapper around gcry_cipher_map_name to provide a fallback using the
  * "Sn" syntax as used by the preference strings.
index 6588802..82abe3f 100644 (file)
@@ -464,6 +464,18 @@ do_we_trust_pre( PKT_public_key *pk, unsigned int trustlevel )
 
       tty_printf("\n");
 
+      
+      if (is_status_enabled ())
+        {
+          u32 kid[2];
+          char *hint_str;
+          
+          keyid_from_pk (pk, kid);
+          hint_str = get_long_user_id_string ( kid );
+          write_status_text ( STATUS_USERID_HINT, hint_str );
+          xfree (hint_str);
+        }
+
       if( cpr_get_answer_is_yes("untrusted_key.override",
                                _("Use this key anyway? (y/N) "))  )
        rc = 1;
index 8ae9c0b..062fa9f 100644 (file)
@@ -503,6 +503,7 @@ only_old_style( SK_LIST sk_list )
 }
 
 
+
 static void
 print_status_sig_created ( PKT_secret_key *sk, PKT_signature *sig, int what )
 {
@@ -983,7 +984,7 @@ sign_file( strlist_t filenames, int detached, strlist_t locusr,
             goto leave;
     }
 
-    write_status (STATUS_BEGIN_SIGNING);
+    write_status_begin_signing (mfx.md);
 
     /* Setup the inner packet. */
     if( detached ) {
@@ -1361,7 +1362,7 @@ sign_symencrypt_file (const char *fname, strlist_t locusr)
             goto leave;
     }
 
-    write_status (STATUS_BEGIN_SIGNING);
+    write_status_begin_signing (mfx.md);
 
     /* Pipe data through all filters; i.e. write the signed stuff */
     /*(current filters: zip - encrypt - armor)*/
index b0d0cd7..83a28cd 100644 (file)
@@ -323,6 +323,39 @@ write_status_buffer ( int no, const char *buffer, size_t len, int wrap )
 }
 
 
+/* Print the BEGIN_SIGNING status message.  If MD is not NULL it is
+   used retrieve the hash algorithms used for the message. */
+void
+write_status_begin_signing (gcry_md_hd_t md)
+{
+  if (md)
+    {
+      char buf[100];
+      size_t buflen;
+      int i;
+      
+      /* We use a hard coded list of possible algorithms.  Using other
+         algorithms than specified by OpenPGP does not make sense
+         anyway.  We do this out of performance reasons: Walking all
+         the 110 allowed Ids is not a good idea given the way the
+         check is implemented in libgcrypt.  Recall that the only use
+         of this status code is to create the micalg algorithm for
+         PGP/MIME. */
+      buflen = 0;
+      for (i=1; i <= 11; i++)
+        if (i < 4 || i > 7)
+          if ( gcry_md_is_enabled (md, i) && buflen < DIM(buf) )
+            {
+              snprintf (buf+buflen, DIM(buf) - buflen - 1, 
+                        "%sH%d", buflen? " ":"",i);
+              buflen += strlen (buf+buflen);
+            }
+      write_status_text ( STATUS_BEGIN_SIGNING, buf );
+    }
+  else
+    write_status ( STATUS_BEGIN_SIGNING );
+}
+
 
 static int
 myread(int fd, void *buf, size_t count)
index b5dbe74..6fad17a 100644 (file)
@@ -131,6 +131,9 @@ void write_status_buffer ( int no,
 void write_status_text_and_buffer ( int no, const char *text,
                                     const char *buffer, size_t len, int wrap );
 
+void write_status_begin_signing (gcry_md_hd_t md);
+
+
 int cpr_enabled(void);
 char *cpr_get( const char *keyword, const char *prompt );
 char *cpr_get_no_help( const char *keyword, const char *prompt );
index daa57de..dc34aa2 100644 (file)
@@ -178,7 +178,7 @@ copy_clearsig_text( IOBUF out, IOBUF inp, gcry_md_hd_t md,
     if( !escape_dash )
        escape_from = 0;
 
-    write_status (STATUS_BEGIN_SIGNING);
+    write_status_begin_signing (md);
 
     for(;;) {
        maxlen = MAX_LINELEN;
index bb1a38a..e83c265 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-25  Werner Koch  <wk@g10code.com>
+
+       * Makefile.am (kbxutil_LDADD): Added LIBICONV.  Noted by Billy
+       Halsey.
+
 2006-11-15  Werner Koch  <wk@g10code.com>
 
        * kbxutil.c (dump_openpgp_key): Cast printf argument.
index 2d9223b..92dd1e4 100644 (file)
@@ -48,6 +48,6 @@ libkeybox_a_SOURCES = $(common_sources)
 kbxutil_SOURCES = kbxutil.c $(common_sources)
 kbxutil_LDADD   = ../jnlib/libjnlib.a ../gl/libgnu.a \
                  $(KSBA_LIBS) $(LIBGCRYPT_LIBS) \
-                  -lgpg-error $(LIBINTL) ../common/libcommon.a
+                  -lgpg-error $(LIBINTL) ../common/libcommon.a $(LIBICONV)
 
 $(PROGRAMS) : ../jnlib/libjnlib.a ../gl/libgnu.a ../common/libcommon.a
index 6d71dc1..9c69001 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-25  Werner Koch  <wk@g10code.com>
+
+       * Makefile.am (scdaemon_LDADD): Added LIBICONV.  Noted by Billy
+       Halsey.
+
 2006-12-21  Werner Koch  <wk@g10code.com>
 
        * app-openpgp.c (verify_chv2): Factored most code out into...
index 405a611..4482116 100644 (file)
@@ -46,7 +46,8 @@ scdaemon_SOURCES = \
 
 scdaemon_LDADD = ../jnlib/libjnlib.a ../common/libcommonpth.a ../gl/libgnu.a \
        $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
-       $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(DL_LIBS) $(NETLIBS)
+       $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
+        $(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV)
 
 # Removed for now: We need to decide whether it makes sense to
 # continue it at all, given that gpg has now all required
index f249c73..a364e3b 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-25  Werner Koch  <wk@g10code.com>
+
+       * Makefile.am (gpgsm_LDADD): Add LIBICONV.  Noted by Billy Halsey.
+
 2007-01-05  Werner Koch  <wk@g10code.com>
 
        * certchain.c (unknown_criticals): Add subjectAltName.
index 75c4988..0fce48a 100644 (file)
@@ -58,7 +58,7 @@ common_libs = ../jnlib/libjnlib.a ../kbx/libkeybox.a \
 
 gpgsm_LDADD = $(common_libs) \
               $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) \
-              $(GPG_ERROR_LIBS) $(LIBINTL) $(ZLIBS)
+              $(GPG_ERROR_LIBS) $(LIBINTL) $(ZLIBS) $(LIBICONV)
 
 # Make sure that all libs are build before we use them.  This is
 # important for things like make -j2.