Index: /trunk/Ohana/Configure.in
===================================================================
--- /trunk/Ohana/Configure.in	(revision 2832)
+++ /trunk/Ohana/Configure.in	(revision 2833)
@@ -23,2 +23,8 @@
 # prefered C compiler
 CC   = gcc -g -O
+
+# select the appropriate version of ranlib
+RANLIB-sol = touch
+RANLIB-linux = ranlib
+RANLIB-lin64 = ranlib
+RANLIB = $(RANLIB-$(ARCH))
Index: /trunk/Ohana/Makefile
===================================================================
--- /trunk/Ohana/Makefile	(revision 2832)
+++ /trunk/Ohana/Makefile	(revision 2833)
@@ -72,7 +72,10 @@
 LIBS-lin64 = libfits libohana libdummy
 LIBS-sid   = libfits libohana libdummy
+LIBS-sol   = libfits libohana
 
 # general build targets:
 libs:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	mkdir -p $(LINC)
 	mkdir -p $(LLIB)
@@ -90,4 +93,6 @@
 
 clean:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.clean || exit; done
 	for i in $(PROGRAM); do make $$i.clean || exit; done
@@ -95,8 +100,12 @@
 
 dist:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.dist || exit; done
 	for i in $(PROGRAM); do make $$i.dist || exit; done
 
 install:
+	@if [ "$(ARCH)" = "" ]; then echo ""; echo " *** please define ARCH ***"; echo; exit 1; fi
+	@if [ "$(LIBS-$(ARCH))" = "" ]; then echo; echo " *** LIBS-$(ARCH) is missing"; echo; exit 1; fi
 	for i in $(LIBS-$(ARCH)); do make $$i.install || exit; done
 	for i in $(PROGRAM); do make $$i.install || exit; done
@@ -107,12 +116,12 @@
 # standard rules: targets are foo, foo.clean, foo.install, foo.dist
 $(PROGRAM) $(LIBS-$(ARCH)) $(EXTRAS): 
-	if [ -e "src/$@" ]; then (cd src/$@ && make); fi
+	if [ -d "src/$@" ]; then (cd src/$@ && make); fi
 
 %.install:
 	mkdir -p bin/$(ARCH)
-	if [ -e "src/$*" ]; then (cd src/$* && make install); fi
+	if [ -d "src/$*" ]; then (cd src/$* && make install); fi
 
 %.clean:
-	if [ -e "src/$*" ]; then (cd src/$* && make clean); fi
+	if [ -d "src/$*" ]; then (cd src/$* && make clean); fi
 
 %.dist:
Index: /trunk/Ohana/configure
===================================================================
--- /trunk/Ohana/configure	(revision 2832)
+++ /trunk/Ohana/configure	(revision 2833)
@@ -11,4 +11,5 @@
 # libpng.a
 # libjpeg.a
+# libz.a
 # libreadline.a
 # libtermcap.a
@@ -84,5 +85,5 @@
 # check for basic libraries
 set fail = 0
-foreach f ( libpng.a libjpeg.a libreadline.a libtermcap.a $sockets )
+foreach f ( libpng.a libz.a libjpeg.a libreadline.a libtermcap.a $sockets )
     foreach g ( /usr/lib $lib )
 	set name = "$g/$f"
Index: /trunk/Ohana/src/gastro2/Makefile
===================================================================
--- /trunk/Ohana/src/gastro2/Makefile	(revision 2832)
+++ /trunk/Ohana/src/gastro2/Makefile	(revision 2833)
@@ -14,5 +14,5 @@
 #  
 INCS	= 	-I$(INC) -I$(LINC) -I$(XINC)
-LIBS	= 	-L$(LLIB) -lFITS -lohana -lm 
+LIBS	= 	-L$(LLIB) -lFITS -lsocket -lnsl -lohana -lm 
 CFLAGS	=	-o $*.$(ARCH).o $(INCS)
 CCFLAGS	=	$(INCS) $(LIBS) 
Index: /trunk/Ohana/src/libdummy/Makefile
===================================================================
--- /trunk/Ohana/src/libdummy/Makefile	(revision 2832)
+++ /trunk/Ohana/src/libdummy/Makefile	(revision 2833)
@@ -16,8 +16,8 @@
 	gcc -c -o dummy.o dummy.c
 	ar rcv libsocket.a dummy.o
-	ranlib libsocket.a
+	$(RANLIB) libsocket.a
 	cp libsocket.a $(DESTLIB)
 	ar rcv libnsl.a dummy.o
-	ranlib libnsl.a
+	$(RANLIB) libnsl.a
 	cp libnsl.a $(DESTLIB)
 
Index: /trunk/Ohana/src/libfits/Makefile
===================================================================
--- /trunk/Ohana/src/libfits/Makefile	(revision 2832)
+++ /trunk/Ohana/src/libfits/Makefile	(revision 2833)
@@ -69,5 +69,5 @@
 	rm -f $(LIB)/libFITS.$(ARCH).a
 	ar rcv $(LIB)/libFITS.$(ARCH).a $(LIBOBJ)
-	ranlib $(LIB)/libFITS.$(ARCH).a
+	$(RANLIB) $(LIB)/libFITS.$(ARCH).a
 
 $(DESTLIB)/libFITS.a: $(LIB)/libFITS.$(ARCH).a 
Index: /trunk/Ohana/src/libohana/Makefile
===================================================================
--- /trunk/Ohana/src/libohana/Makefile	(revision 2832)
+++ /trunk/Ohana/src/libohana/Makefile	(revision 2833)
@@ -39,5 +39,5 @@
 	rm -f $(LIB)/libohana.$(ARCH).a
 	ar rcv $(LIB)/libohana.$(ARCH).a $(LOBJ)
-	ranlib $(LIB)/libohana.$(ARCH).a
+	$(RANLIB) $(LIB)/libohana.$(ARCH).a
 
 $(LOBJ): $(DESTINC)/ohana.h $(DESTINC)/loneos.h
Index: /trunk/Ohana/src/opihi/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/Makefile	(revision 2833)
@@ -33,12 +33,12 @@
 
 $(PROGRAM) $(LIBS) $(EXTRAS):
-	if [ -e "$@" ]; then (cd $@ && make); fi
+	if [ -d "$@" ]; then (cd $@ && make); fi
 
 %.install:
-	if [ -e "$*" ]; then make $*; fi
-	if [ -e "$*" ]; then (cd $* && make install); fi
+	if [ -d "$*" ]; then make $*; fi
+	if [ -d "$*" ]; then (cd $* && make install); fi
 
 %.clean:
-	if [ -e "$*" ]; then (cd $* && make clean); fi
+	if [ -d "$*" ]; then (cd $* && make clean); fi
 
 .PHONY: $(PROGRAM) $(LIBS)
Index: /trunk/Ohana/src/opihi/cmd.astro/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/cmd.astro/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/cmd.astro/Makefile	(revision 2833)
@@ -76,5 +76,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/cmd.basic/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/cmd.basic/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/cmd.basic/Makefile	(revision 2833)
@@ -76,5 +76,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/cmd.data/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/cmd.data/Makefile	(revision 2833)
@@ -138,5 +138,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/dimm/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/dimm/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/dimm/Makefile	(revision 2833)
@@ -85,5 +85,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/dvo/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/dvo/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/dvo/Makefile	(revision 2833)
@@ -117,5 +117,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/dvo2/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/dvo2/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/dvo2/Makefile	(revision 2833)
@@ -65,5 +65,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/lib.data/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/lib.data/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/lib.data/Makefile	(revision 2833)
@@ -60,5 +60,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/lib.shell/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/lib.shell/Makefile	(revision 2833)
@@ -85,5 +85,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/lib.shell/stack_math.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/stack_math.c	(revision 2832)
+++ /trunk/Ohana/src/opihi/lib.shell/stack_math.c	(revision 2833)
@@ -1114,8 +1114,8 @@
   if (!strcmp (op, "sqrt"))  {    *out = sqrt (*M1);          }
 
-  if (!strcmp (op, "sinh"))  {    *out = sinhf (*M1);         }
-  if (!strcmp (op, "cosh"))  {    *out = coshf (*M1);         }
-  if (!strcmp (op, "asinh")) {    *out = asinhf (*M1);        }
-  if (!strcmp (op, "acosh")) {    *out = acoshf (*M1);        }
+  if (!strcmp (op, "sinh"))  {    *out = sinh (*M1);         }
+  if (!strcmp (op, "cosh"))  {    *out = cosh (*M1);         }
+  if (!strcmp (op, "asinh")) {    *out = asinh (*M1);        }
+  if (!strcmp (op, "acosh")) {    *out = acosh (*M1);        }
 
   if (!strcmp (op, "sin"))   {    *out = sin (*M1);           }
@@ -1170,8 +1170,8 @@
   if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = sqrt(*M1);         }}
 
-  if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinhf(*M1);       }}
-  if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = coshf(*M1);       }}
-  if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinhf(*M1);      }}
-  if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acoshf(*M1);      }}
+  if (!strcmp (op, "sinh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sinh(*M1);       }}
+  if (!strcmp (op, "cosh"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = cosh(*M1);       }}
+  if (!strcmp (op, "asinh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = asinh(*M1);      }}
+  if (!strcmp (op, "acosh"))  { for (i = 0; i < Nx; i++, out++, M1++) { *out = acosh(*M1);      }}
 
   if (!strcmp (op, "sin"))   { for (i = 0; i < Nx; i++, out++, M1++) { *out = sin(*M1);          }}
@@ -1235,8 +1235,8 @@
   if (!strcmp (op, "sqrt"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sqrt(*M1);         }}
 
-  if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinhf(*M1);        }}
-  if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = coshf(*M1);        }}
-  if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinhf(*M1);       }}
-  if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acoshf(*M1);       }}
+  if (!strcmp (op, "sinh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sinh(*M1);        }}
+  if (!strcmp (op, "cosh"))  { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = cosh(*M1);        }}
+  if (!strcmp (op, "asinh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = asinh(*M1);       }}
+  if (!strcmp (op, "acosh")) { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = acosh(*M1);       }}
 
   if (!strcmp (op, "sin"))   { for (i = 0; i < Nx*Ny; i++, out++, M1++) { *out = sin(*M1);          }}
Index: /trunk/Ohana/src/opihi/mana/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/mana/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/mana/Makefile	(revision 2833)
@@ -77,5 +77,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/opihi/pantasks/Makefile
===================================================================
--- /trunk/Ohana/src/opihi/pantasks/Makefile	(revision 2832)
+++ /trunk/Ohana/src/opihi/pantasks/Makefile	(revision 2833)
@@ -71,5 +71,5 @@
 	rm -f $@
 	ar rcv $@ $^ 
-	ranlib $@
+	$(RANLIB) $@
 	@echo "compiled library $*"
 	@echo ""
Index: /trunk/Ohana/src/relphot/Makefile
===================================================================
--- /trunk/Ohana/src/relphot/Makefile	(revision 2832)
+++ /trunk/Ohana/src/relphot/Makefile	(revision 2833)
@@ -15,5 +15,5 @@
 #
 INCS	= 	-I$(INC) -I$(LINC) -I$(XINC)
-LIBS	= 	-L$(LLIB) -lohana -lFITS -lm 
+LIBS	= 	-L$(LLIB) -lsocket -lnsl -lohana -lFITS -lm 
 CFLAGS	=	-o $*.$(ARCH).o $(INCS)
 CCFLAGS	=	$(INCS) $(LIBS) 
Index: /trunk/Ohana/src/skycalc/Makefile
===================================================================
--- /trunk/Ohana/src/skycalc/Makefile	(revision 2832)
+++ /trunk/Ohana/src/skycalc/Makefile	(revision 2833)
@@ -33,5 +33,5 @@
 	rm -f $(LIB)/libskycalc.$(ARCH).a
 	ar rcv $(LIB)/libskycalc.$(ARCH).a $(OBJ)
-	ranlib $(LIB)/libskycalc.$(ARCH).a
+	$(RANLIB) $(LIB)/libskycalc.$(ARCH).a
 
 $(DESTLIB)/libskycalc.a: $(LIB)/libskycalc.$(ARCH).a 
