+#include <yaz/sc.h>
+
+static char *path_override = 0;
+
+void child_handler(void *data)
+{
+ struct conf_config *config = (struct conf_config *) data;
+ config_read_settings(config, path_override);
+
+ pazpar2_event_loop();
+}
+
+static void show_version(void)
+{
+ char yaz_version_str[80];
+ printf("Pazpar2 " PACKAGE_VERSION
+#ifdef PAZPAR2_VERSION_SHA1
+ " "
+ PAZPAR2_VERSION_SHA1
+#endif
+"\n");
+
+ yaz_version(yaz_version_str, 0);
+
+ printf("Configuration:");
+#if YAZ_HAVE_ICU
+ printf(" icu:?");
+#endif
+ printf(" yaz:%s", yaz_version_str);
+ printf("\n");
+ exit(0);
+}
+
+#ifdef WIN32
+static int tcpip_init (void)