Index: gnopernicus/configure.in
===================================================================
RCS file: /cvs/gnome/gnopernicus/configure.in,v
retrieving revision 1.171
diff -u -r1.171 configure.in
--- gnopernicus/configure.in	18 May 2005 16:07:11 -0000	1.171
+++ gnopernicus/configure.in	21 Jun 2005 09:04:19 -0000
@@ -120,45 +120,41 @@
 dnl ***************************************************************************
 dnl *               deal with diffrent OSs for BRAILLE (serial port)          *
 dnl ***************************************************************************
-AC_MSG_CHECKING([system version (for braille's serial port name)])
-system=`uname -s`-`uname -r`
-#if test "$status"=1 ; then
-#    AC_MSG_RESULT([unknown (can't find uname command)]
-#    system=unknown
-#else
-    #Special checks for weird systems ( MP_RAS ) :
-    # uname returns weird results, and the version is kept in special file)
-
-#    if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-#	system=MP-RAS-`awk '{print $3}' /etc/.relid'`
-#    fi
-
+AC_ARG_WITH(braille_port, [  --with-braille-port=port Specify port for braille device])
+if test x$with_braille_port != x ; then
+    TTYNAME_0="$with_braille_port"0
+    TTYNAME_1="$with_braille_port"1
+    TTYNAME_2="$with_braille_port"2
+    TTYNAME_3="$with_braille_port"3    
+else
+    AC_MSG_CHECKING([system version (for braille's serial port name)])
+    system=`uname -s`-`uname -r`
     AC_MSG_RESULT($system)
-#fi
-case $system in
-    Linux-*)
-	TTYNAME_0="/dev/ttyS0"
-	TTYNAME_1="/dev/ttyS1"
-	TTYNAME_2="/dev/ttyS2"
-	TTYNAME_3="/dev/ttyS3"
-	;;
-    SunOS-*)
-	TTYNAME_0="/dev/cua/a"
-	TTYNAME_1="/dev/cua/b"
-	TTYNAME_2="/dev/cua/c"
-	TTYNAME_3="/dev/cua/d"
-	;;
-    FreeBSD-*)
-	TTYNAME_0="/dev/cuaa0"
-	TTYNAME_1="/dev/cuaa1"
-	TTYNAME_2="/dev/cuaa2"
-	TTYNAME_3="/dev/cuaa3"
-	;;
-    *)
-	echo "Can't figure out the name of the serial port on this OS"
-	;;
-esac
 
+    case $system in
+	Linux-*)
+	    TTYNAME_0="/dev/ttyS0"
+	    TTYNAME_1="/dev/ttyS1"
+	    TTYNAME_2="/dev/ttyS2"
+	    TTYNAME_3="/dev/ttyS3"
+	    ;;
+	SunOS-*)
+	    TTYNAME_0="/dev/cua/a"
+	    TTYNAME_1="/dev/cua/b"
+	    TTYNAME_2="/dev/cua/c"
+	    TTYNAME_3="/dev/cua/d"
+	    ;;
+	FreeBSD-*)
+	    TTYNAME_0="/dev/cuaa0"
+	    TTYNAME_1="/dev/cuaa1"
+	    TTYNAME_2="/dev/cuaa2"
+	    TTYNAME_3="/dev/cuaa3"
+	    ;;
+	*)
+	    echo "Can't figure out the name of the serial port on this OS"
+	    ;;
+    esac
+fi
 AC_SUBST(TTYNAME_0)
 AC_SUBST(TTYNAME_1)
 AC_SUBST(TTYNAME_2)
