| 83 |
83 |
| 84 # help text |
84 # help text |
| 85 printhelp() |
85 printhelp() |
| 86 { |
86 { |
| 87 echo "Usage: $0 [OPTIONS]..." |
87 echo "Usage: $0 [OPTIONS]..." |
| 88 echo 'Configuration:' |
88 if [ $has_config_vars__ -eq 1 ] ; then |
| |
89 echo |
| |
90 echo "Configuration:" |
| |
91 fi |
| 89 if true \ |
92 if true \ |
| 90 ; then |
93 ; then |
| 91 : |
94 : |
| 92 if test -z "$prefix__described__"; then |
95 if [ -z "$prefix__described__" ] ; then |
| 93 prefix__described__=1 |
96 prefix__described__=1 |
| 94 cat << '__EOF__' |
97 cat << '__EOF__' |
| 95 --prefix path prefix for architecture-independent files [/usr] |
98 --prefix path prefix for architecture-independent files [/usr] |
| 96 __EOF__ |
99 __EOF__ |
| 97 fi |
100 fi |
| 98 if test -z "$exec_prefix__described__"; then |
101 if [ -z "$exec_prefix__described__" ] ; then |
| 99 exec_prefix__described__=1 |
102 exec_prefix__described__=1 |
| 100 cat << '__EOF__' |
103 cat << '__EOF__' |
| 101 --exec-prefix path prefix for architecture-dependent files [PREFIX] |
104 --exec-prefix path prefix for architecture-dependent files [PREFIX] |
| 102 __EOF__ |
105 __EOF__ |
| 103 fi |
106 fi |
| 104 if test -z "$libdir__described__"; then |
107 if [ -z "$libdir__described__" ] ; then |
| 105 libdir__described__=1 |
108 libdir__described__=1 |
| 106 cat << '__EOF__' |
109 cat << '__EOF__' |
| 107 --libdir object code libraries [EPREFIX/lib] |
110 --libdir object code libraries [EPREFIX/lib] |
| 108 __EOF__ |
111 __EOF__ |
| 109 fi |
112 fi |
| 143 fi |
146 fi |
| 144 touch "$TEMP_DIR/options" |
147 touch "$TEMP_DIR/options" |
| 145 touch "$TEMP_DIR/features" |
148 touch "$TEMP_DIR/features" |
| 146 |
149 |
| 147 # config variables |
150 # config variables |
| |
151 has_config_vars__=0 |
| 148 if true \ |
152 if true \ |
| 149 ; then |
153 ; then |
| 150 : |
154 : |
| 151 if test -z "$prefix__initialized__"; then |
155 if [ -z "$prefix__initialized__" ] ; then |
| |
156 has_config_vars__=1 |
| 152 prefix__initialized__=1 |
157 prefix__initialized__=1 |
| 153 prefix='/usr' |
158 prefix='/usr' |
| 154 fi |
159 fi |
| 155 if test -z "$exec_prefix__initialized__"; then |
160 if [ -z "$exec_prefix__initialized__" ] ; then |
| |
161 has_config_vars__=1 |
| 156 exec_prefix__initialized__=1 |
162 exec_prefix__initialized__=1 |
| 157 exec_prefix='' |
163 exec_prefix='' |
| 158 fi |
164 fi |
| 159 if test -z "$libdir__initialized__"; then |
165 if [ -z "$libdir__initialized__" ] ; then |
| |
166 has_config_vars__=1 |
| 160 libdir__initialized__=1 |
167 libdir__initialized__=1 |
| 161 libdir='' |
168 libdir='' |
| 162 fi |
169 fi |
| 163 if test -z "$HOST__initialized__"; then |
170 if [ -z "$HOST__initialized__" ] ; then |
| |
171 has_config_vars__=1 |
| 164 HOST__initialized__=1 |
172 HOST__initialized__=1 |
| 165 HOST=`uname -n` |
173 HOST=`uname -n` |
| 166 fi |
174 fi |
| 167 fi |
175 fi |
| 168 if true \ |
176 if true \ |
| 169 && notisplatform "mingw" \ |
177 && notisplatform "mingw" \ |
| 170 ; then |
178 ; then |
| 171 : |
179 : |
| 172 if test -z "$PWD__initialized__"; then |
180 if [ -z "$PWD__initialized__" ] ; then |
| |
181 has_config_vars__=1 |
| 173 PWD__initialized__=1 |
182 PWD__initialized__=1 |
| 174 PWD='pwd' |
183 PWD='pwd' |
| 175 fi |
184 fi |
| 176 fi |
185 fi |
| 177 if true \ |
186 if true \ |
| 178 && isplatform "mingw" \ |
187 && isplatform "mingw" \ |
| 179 ; then |
188 ; then |
| 180 : |
189 : |
| 181 if test -z "$PWD__initialized__"; then |
190 if [ -z "$PWD__initialized__" ] ; then |
| |
191 has_config_vars__=1 |
| 182 PWD__initialized__=1 |
192 PWD__initialized__=1 |
| 183 PWD='pwd -W' |
193 PWD='pwd -W' |
| 184 fi |
194 fi |
| 185 fi |
195 fi |
| 186 |
196 |
| 683 echo " word size: $TOOLCHAIN_WSIZE bit" |
693 echo " word size: $TOOLCHAIN_WSIZE bit" |
| 684 fi |
694 fi |
| 685 if [ -n "$TOOLCHAIN_CSTD" ]; then |
695 if [ -n "$TOOLCHAIN_CSTD" ]; then |
| 686 echo " default C std: $TOOLCHAIN_CSTD" |
696 echo " default C std: $TOOLCHAIN_CSTD" |
| 687 fi |
697 fi |
| 688 echo |
698 if [ $has_config_vars__ -eq 1 ]; then |
| 689 echo "Config:" |
699 echo |
| 690 printf ' %-16s' 'prefix:' |
700 echo "Config:" |
| 691 echo "$prefix" |
701 if [ -n "$prefix__initialized__" ]; then |
| 692 printf ' %-16s' 'exec-prefix:' |
702 printf ' %-16s' 'prefix:' |
| 693 echo "$exec_prefix" |
703 echo "$prefix" |
| 694 printf ' %-16s' 'libdir:' |
704 fi |
| 695 echo "$libdir" |
705 if [ -n "$exec_prefix__initialized__" ]; then |
| |
706 printf ' %-16s' 'exec-prefix:' |
| |
707 echo "$exec_prefix" |
| |
708 fi |
| |
709 if [ -n "$libdir__initialized__" ]; then |
| |
710 printf ' %-16s' 'libdir:' |
| |
711 echo "$libdir" |
| |
712 fi |
| |
713 fi |
| 696 echo |
714 echo |
| 697 echo "Features:" |
715 echo "Features:" |
| 698 printf ' %-16s' 'pg:' |
716 printf ' %-16s' 'pg:' |
| 699 if [ -n "$FEATURE_PG" ]; then |
717 if [ -n "$FEATURE_PG" ]; then |
| 700 echo 'on' |
718 echo 'on' |