/[autoconf]/autoconf/tests/wrapsh.in
ViewVC logotype

Diff of /autoconf/tests/wrapsh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by akim, Fri Dec 14 17:57:29 2001 UTC revision 1.3 by akim, Wed Apr 10 15:58:21 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Running `$0' as if it were installed.  ## --------------------- ##
3    ## M4sh Initialization.  ##
4    ## --------------------- ##
5    
6    # Be Bourne compatible
7    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8      emulate sh
9      NULLCMD=:
10      # Zsh performs word splitting on ${1+"$@"}, which is contrary to
11      # our usage.  Disable this feature.
12      alias -g '${1+"$@"}'='"$@"'
13    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14      set -o posix
15    fi
16    
17    # NLS nuisances.
18    # Support unset when possible.
19    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20      as_unset=unset
21    else
22      as_unset=false
23    fi
24    
25    (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
26        { $as_unset LANG || test "${LANG+set}" != set; } ||
27          { LANG=C; export LANG; }
28    (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
29        { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
30          { LC_ALL=C; export LC_ALL; }
31    (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
32        { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
33          { LC_TIME=C; export LC_TIME; }
34    (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
35        { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
36          { LC_CTYPE=C; export LC_CTYPE; }
37    (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
38        { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
39          { LANGUAGE=C; export LANGUAGE; }
40    (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
41        { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
42          { LC_COLLATE=C; export LC_COLLATE; }
43    (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
44        { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
45          { LC_NUMERIC=C; export LC_NUMERIC; }
46    (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
47        { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
48          { LC_MESSAGES=C; export LC_MESSAGES; }
49    
50    
51    # Required to use basename.
52    if expr a : '\(a\)' >/dev/null 2>&1; then
53      as_expr=expr
54    else
55      as_expr=false
56    fi
57    
58  me=`echo "$0" | sed -e 's,.*[\\/],,'`  if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59      as_basename=basename
60    else
61      as_basename=false
62    fi
63    
64    
65    # Name of the executable.
66    as_me=`$as_basename "$0" ||
67    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68             X"$0" : 'X\(//\)$' \| \
69             X"$0" : 'X\(/\)$' \| \
70             .     : '\(.\)' 2>/dev/null ||
71    echo X/"$0" |
72        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73              /^X\/\(\/\/\)$/{ s//\1/; q; }
74              /^X\/\(\/\).*/{ s//\1/; q; }
75              s/.*/./; q'`
76    
77    
78    
79    # Running `$0' as if it were installed.
80    me=`echo "$0" | sed -e 's,.*\\/,,'`
81    
82  exec @abs_top_builddir@/bin/$me --include @abs_top_builddir@/lib ${1+"$@"}  exec @abs_top_builddir@/bin/$me --include @abs_top_builddir@/lib ${1+"$@"}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26