Last change
on this file since 1453 was
1453,
checked in by orlov, 17 years ago
|
- Fixed -gmp_lib and -gmp_inc configure options.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
896 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # $Id: config.functions 1453 2004-06-14 01:55:49Z orlov $ |
---|
4 | # |
---|
5 | |
---|
6 | config_functions=1 |
---|
7 | |
---|
8 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
9 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
10 | ac_n= ac_c=' |
---|
11 | ' ac_t=' ' |
---|
12 | else |
---|
13 | ac_n=-n ac_c= ac_t= |
---|
14 | fi |
---|
15 | else |
---|
16 | ac_n= ac_c='\c' ac_t= |
---|
17 | fi |
---|
18 | |
---|
19 | echon () |
---|
20 | { |
---|
21 | echo $ac_n "$*"$ac_c |
---|
22 | } |
---|
23 | |
---|
24 | merge_lists () |
---|
25 | { |
---|
26 | res="$1" |
---|
27 | for arg1 in $2; do |
---|
28 | match=no |
---|
29 | for arg2 in $1; do |
---|
30 | if [ "$arg1" = "$arg2" ]; then |
---|
31 | match=yes |
---|
32 | fi |
---|
33 | done |
---|
34 | if [ "$match" = "no" ]; then res="$res $arg1"; fi |
---|
35 | done |
---|
36 | echo $res |
---|
37 | } |
---|
38 | |
---|
39 | absolute_path () |
---|
40 | { |
---|
41 | case "$1" in |
---|
42 | /*) dir="$1";; |
---|
43 | *) dir="`pwd`/$1";; |
---|
44 | esac |
---|
45 | while [ "$tmp_dir" != "$dir" ]; do |
---|
46 | tmp_dir="$dir" |
---|
47 | dir="`echo $dir | sed 's@/\.\?/@/@g'`" |
---|
48 | done |
---|
49 | tmp_dir="" |
---|
50 | while [ "$tmp_dir" != "$dir" ]; do |
---|
51 | tmp_dir="$dir" |
---|
52 | dir="`echo $dir | sed 's@\(.*\)/.*/\.\.\(.*\)@\1\2@'`" |
---|
53 | done |
---|
54 | echo "$dir" |
---|
55 | } |
---|
56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.