aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/psi/files/patch-configure
blob: 4a00387f8cab4ce9eea0e3e5ba140d1d117fafe5 (plain) (blame)
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
--- configure.orig  Sat Nov 20 16:05:03 2004
+++ configure   Mon Mar 28 02:12:08 2005
@@ -94,6 +94,8 @@
            shift
            ;;
        --help) show_usage; exit ;;
+       --with-*)
+           shift ;;
        *) show_usage; exit ;;
    esac
 done
@@ -882,9 +884,14 @@
            "}\n";
 
        QString extra;
+       QString pthread_cflags = getenv("PTHREAD_CFLAGS");
+       QString pthread_ldflags = getenv("PTHREAD_LDFLAGS");
+
        if(!path.isEmpty())
            extra += QString("-L") + path + ' ';
        extra += QString("-l") + name;
+       extra += ' ' + pthread_cflags + ' ' + pthread_ldflags + ' ';
+
        if(!doCompileAndLink(str, extra))
            return false;
        return true;
@@ -1110,14 +1117,6 @@
    echo
    exit 1;
 fi
-cat >Makefile.tmp <<EOT
-export QTDIR = $QTDIR
-export PATH = $QTDIR/bin:$PATH
-EOT
-cat Makefile >> Makefile.tmp
-rm -f Makefile
-cp -f Makefile.tmp Makefile
-rm -f Makefile.tmp
 
 echo
 echo Good, your configure finished.  Now run \'make\'.