]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/idtest.c
adjust project settings
[openldap] / libraries / liblber / idtest.c
index 937cfd5f14e4a1342334ca52fa37c395f13e1fb8..6a5f9b2ed350b6e361d9184d47f103b48e51f261 100644 (file)
@@ -1,5 +1,9 @@
 /* idtest.c - ber decoding test program using isode libraries */
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/* Portions
  * Copyright (c) 1990 Regents of the University of Michigan.
  * All rights reserved.
  *
 #include "portable.h"
 
 #include <stdio.h>
+
+#ifdef HAVE_PSAP_H
 #include <psap.h>
 #include <quipu/attr.h>
+#endif
 
-static usage( char *name )
-{
-       fprintf( stderr, "usage: %s\n", name );
-}
-
+int
 main( int argc, char **argv )
 {
+#ifdef HAVE_PSAP_H
        PE      pe;
        PS      psin, psout, pserr;
 
@@ -61,4 +65,8 @@ main( int argc, char **argv )
        }
 
        exit( 0 );
+#else
+       fprintf(stderr, "requires ISODE X.500 distribution.\n");
+       exit( 1 );
+#endif
 }