summaryrefslogtreecommitdiff
blob: aa927ec166f3a47351a957ea967bd08b5b72fa05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- configure.old	2009-11-20 12:36:51.000000000 +0900
+++ configure	2012-07-14 10:18:19.000000000 +0900
@@ -3,12 +3,6 @@
 # ======================================================================
 #  A configure script for Geant4Py
 # ======================================================================
-export LANG=C
-
-IFS='
- 	'
-PATH=/bin:/usr/bin
-export PATH
 
 # ======================================================================
 # testing the echo features
@@ -323,15 +317,18 @@ echo "lib${clhep_lib}.${shlib}"
 
 # ---
 echo $ac_n "Checking for Python include dir (pyconfig.h) ... $ac_c"
-# check version
-set python python2.6 python2.5 python2.4 python2.3 python2.2
-for aincdir in $*
-do
-  if [ -d /usr/include/"$aincdir" ]; then
-    python_incdir=/usr/include/$aincdir
-    break
-  fi
-done
+
+if [ ! -d "$python_incdir" ]; then
+  # check version
+  set python python2.6 python2.5 python2.4 python2.3 python2.2
+  for aincdir in $*
+  do
+    if [ -d /usr/include/"$aincdir" ]; then
+      python_incdir=/usr/include/$aincdir
+      break
+    fi
+  done
+fi
 
 if [ ! -f "$python_incdir"/pyconfig.h ]; then
   echo "no"