-UNIX_THREAD=gtk/threadno.cpp
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:3770: checking for pthread_create in -lpthread" >&5
-ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
+
+
+USE_THREADS=1
+THREADS_LINK=""
+UNIX_THREAD=""
+
+# Check whether --with-threads or --without-threads was given.
+if test "${with_threads+set}" = set; then
+ withval="$with_threads"
+ USE_THREADS="$withval"
+fi
+
+
+if test "$USE_THREADS" = "1"; then
+ UNIX_THREAD="gtk/threadno.cpp"
+
+
+ echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
+echo "configure:3788: checking for pthread_create in -lpthread-0.7" >&5
+ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`