1 --- configure.orig 2014-10-03 19:25:46 UTC
3 @@ -85,10 +85,6 @@ exec 3>&1
5 # Parse command-line arguments
7 -if echo "$configure_options" | grep -q -e '--\?[a-zA-Z0-9-]\+='; then
8 - err "Arguments to this script look like '-prefix /foo/bar', not '-prefix=/foo/bar' (note the '=')."
14 @@ -659,7 +659,8 @@ if test $with_sharedlibs = "yes"; then
15 mksharedlib="$flexlink"
16 mkmaindll="$flexlink -maindll"
17 shared_libraries_supported=true;;
18 - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-freebsd[1-9][0-9]*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*|*-*-haiku*)
19 + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-freebsd[1-9][0-9]*| \
20 + *-*-dragonfly*|*-*-openbsd*|*-*-netbsd*|*-*-gnu*|*-*-haiku*)
21 sharedcccompopts="-fPIC"
22 mksharedlib="$bytecc -shared"
23 bytecclinkopts="$bytecclinkopts -Wl,-E"
24 @@ -761,11 +758,13 @@ if test $with_sharedlibs = "yes"; then
26 x86_64-*-darwin*) natdynlink=true;;
27 powerpc*-*-linux*) natdynlink=true;;
28 + powerpc*-*-freebsd*) natdynlink=true;;
29 sparc*-*-linux*) natdynlink=true;;
30 i686-*-kfreebsd*) natdynlink=true;;
31 x86_64-*-kfreebsd*) natdynlink=true;;
32 i[3456]86-*-freebsd*) natdynlink=true;;
33 x86_64-*-freebsd*) natdynlink=true;;
34 + x86_64-*-dragonfly*) natdynlink=true;;
35 i[3456]86-*-openbsd*) natdynlink=true;;
36 x86_64-*-openbsd*) natdynlink=true;;
37 i[3456]86-*-netbsd*) natdynlink=true;;
38 @@ -815,6 +814,7 @@ case "$target" in
39 i[3456]86-*-gnu*) arch=i386; system=gnu;;
40 i[3456]86-*-mingw*) arch=i386; system=mingw;;
41 powerpc*-*-linux*) arch=power; model=ppc; system=elf;;
42 + powerpc-*-freebsd*) arch=power; model=ppc; system=bsd_elf;;
43 powerpc-*-netbsd*) arch=power; model=ppc; system=elf;;
44 powerpc-*-openbsd*) arch=power; model=ppc; system=bsd_elf;;
45 powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
46 @@ -833,6 +833,7 @@ case "$target" in
47 zaurus*-*-openbsd*) arch=arm; system=bsd;;
48 x86_64-*-linux*) arch=amd64; system=linux;;
49 x86_64-*-gnu*) arch=amd64; system=gnu;;
50 + x86_64-*-dragonfly*) arch=amd64; system=dragonfly;;
51 x86_64-*-freebsd*) arch=amd64; system=freebsd;;
52 x86_64-*-netbsd*) arch=amd64; system=netbsd;;
53 x86_64-*-openbsd*) arch=amd64; system=openbsd;;
54 @@ -905,6 +908,8 @@ case "$arch,$system" in
55 aspp="${TOOLPREF}cc -c";;
56 *,freebsd) as="${TOOLPREF}as"
57 aspp="${TOOLPREF}cc -c";;
58 + *,dragonfly) as="as"
60 amd64,*|arm,*|arm64,*|i386,*|power,bsd*|sparc,*)
62 aspp="${TOOLPREF}gcc -c";;
63 @@ -1390,7 +1395,7 @@ if test "$pthread_wanted" = "yes"; then
64 bytecccompopts="$bytecccompopts -D_REENTRANT"
65 nativecccompopts="$nativecccompopts -D_REENTRANT"
68 + *-*-freebsd*|*-*-dragonfly*)
69 bytecccompopts="$bytecccompopts -D_THREAD_SAFE"
70 nativecccompopts="$nativecccompopts -D_THREAD_SAFE";;
72 @@ -1560,6 +1565,7 @@ if test "$x11_include" = "not found"; th
76 + *-*-freebsd*|*-*-dragonfly*) x11_link="-L$dir -lX11";;
77 *-kfreebsd*-gnu) x11_link="-L$dir -lX11";;
78 *-*-*bsd*) x11_link="-R$dir -L$dir -lX11";;
79 *) x11_link="-L$dir -lX11";;