]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Xcode: fix detection of host OS, vendor, and CPU
authorAlexander Barton <alex@barton.de>
Wed, 27 Mar 2013 11:47:12 +0000 (12:47 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 27 Mar 2013 11:47:12 +0000 (12:47 +0100)
contrib/MacOSX/config.h

index f4838276ecfddcb8bccd5a42b7fb1fc410d64a5d..9374ab59e27839de4a3b5cec3b19c8490992213b 100644 (file)
  */
 
 #define PACKAGE_NAME "ngIRCd"
  */
 
 #define PACKAGE_NAME "ngIRCd"
-#define PACKAGE "ngircd"
+# define PACKAGE "ngircd"
 #ifndef VERSION
 #ifndef VERSION
-#define VERSION "??("__DATE__")"
+# define VERSION "??("__DATE__")"
 #endif
 #endif
-#define SYSCONFDIR "/etc/ngircd"
-#define DOCDIR "/usr/share/doc/ngircd"
 
 
-#ifndef TARGET_VENDOR
-#define TARGET_VENDOR "apple"
-#define TARGET_OS "darwin"
+#ifndef HOST_VENDOR
+# define HOST_VENDOR "apple"
+# define HOST_OS "darwin"
+# ifdef __x86_64
+#  define HOST_CPU "x86_64"
+# endif
 #endif
 
 #endif
 
+#define SYSCONFDIR "/etc/ngircd"
+#define DOCDIR "/usr/share/doc/ngircd"
+
 /* -- Build options -- */
 
 /* Define if debug-mode should be enabled */
 /* -- Build options -- */
 
 /* Define if debug-mode should be enabled */