test/configure

changeset 8
82cd9f1d94cb
parent 7
686991ae6e2f
child 9
ebdecbbb2f79
--- a/test/configure	Sat Aug 03 13:46:43 2019 +0200
+++ b/test/configure	Sat Aug 03 17:45:03 2019 +0200
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-HOST=xxx
-INSTALL_DIR=yyy
-PREFIX=`pwd`
+HOST=`uname -n`
+PREFIX=`pwd`/work
+INSTALL_DIR=$PREFIX
 
 EPREFIX=$PREFIX
 
@@ -195,8 +195,8 @@
 
 # general vars
 HOST=$HOST
+PREFIX=$PREFIX
 INSTALL_DIR=$INSTALL_DIR
-PREFIX=$PREFIX
 
 EPREFIX=$EPREFIX
 
@@ -311,79 +311,9 @@
 LDFLAGS=
 while true
 do
-    if ! isplatform "linux"; then
-        break
-    fi
-    while true
-    do
-        
-        CFLAGS+="-DLINUX"    
-        LDFLAGS+="-lpthread -ldl -lm -lldap"    
-		cat >> $TEMP_DIR/make.mk << __EOF__
-# platform dependend source files
-PLATFORM_DAEMONOBJ = event_linux.o
-
-# platform dependend vars
-OBJ_EXT = .o
-LIB_EXT = .so
-APP_EXT =
-
-__EOF__
-        
-        break
-    done
-    
-    break
-done
-while true
-do
-    if ! isplatform "bsd"; then
-        break
-    fi
-    if isplatform "macos"; then
-        break
-    fi
     while true
     do
         
-        CFLAGS+="-DBSD"    
-        LDFLAGS+="-lpthread -lm -lldap"    
-		cat >> $TEMP_DIR/make.mk << __EOF__
-# platform dependend source files
-PLATFORM_DAEMONOBJ = event_bsd.o
-
-# platform dependend vars
-OBJ_EXT = .o
-LIB_EXT = .so
-APP_EXT =
-
-__EOF__
-        
-        break
-    done
-    
-    break
-done
-while true
-do
-    if ! isplatform "solaris"; then
-        break
-    fi
-    while true
-    do
-        
-        CFLAGS+="-DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"    
-        LDFLAGS+="-lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap"    
-		cat >> $TEMP_DIR/make.mk << __EOF__
-# platform dependend source files
-PLATFORM_DAEMONOBJ = event_solaris.o
-
-# platform dependend vars
-OBJ_EXT = .o
-LIB_EXT = .so
-APP_EXT =
-
-__EOF__
         
         break
     done

mercurial